[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with pfstat



Hi all,

I've a little problem with pfstat. I'm running a OpenBSD-3.2 on a SPARC with a self compiled pfstat-1.1 (from the ports tree).

My first problem was that I didn't find the switch for pfctl "-l", as described on the pfstat-site:

Note that in order to collect interface statistics, interface logging has to be enabled using 'pfctl -l iface' (3.1-stable and prior) or 'set loginterface iface' (-current).

But the file /var/log/pfstat is created by the appropriate line at my crontab. Here is a sample of the pfstat file in /var/log:

[...]
1038672781 1036682337 0 0 0 0 0 0 0 0 0 0 0 0 21 122539 1657 1636 26057 0 0 0 0 0
1038672841 1036682337 0 0 0 0 0 0 0 0 0 0 0 0 14 122716 1659 1645 26086 0 0 0 0 0
[...]


And my pfstat.conf looks like:

image "/var/www/htdocs/pfstat1.jpg" {
from 1 hours to now
width 200 height 100
left
graph bytes_v4_in label "incoming" color 0 192 0 filled,
graph bytes_v4_out label "outgoing" color 0 0 255
right
graph states_entries label "states" color 255 0 0
}


The problem is, that the pfstat process runs for at least 15min without producing any picture :-(

I found that it stucks in the function "draw":

gdImageLine(im, x+dx+1, y+h-1, x+dx+1, y+h-1-dy,
color);

The compilation runs without any problems, so any hint for that problem would be very nice.

Regards,
	Sven