Date: Mon, 11 Dec 2006 20:29:45 +0100 From: "Lars Wittebrood" <lars@socruel.nu> To: <freebsd-ports@freebsd.org> Subject: RE: Pfstat trouble, no data in database file Message-ID: <302F75DC2739FB43B236373398A8C599299F@saturnus.intra.socruel.nu>
next in thread | raw e-mail | index | archive | help
Hello list, After some more troubleshooting I've come a step further. I have run the '/usr/local/bin/pfstat -q' command from a shell and found some problems with my /usr/local/etc/pfstat.conf file. After solving these problems I get the following message issueing the '/usr/local/bin/pfstat -q' command: root@servername etc # /usr/local/bin/pfstat -q ioctl: DIOCGETALTQS: Operation not supported by device pf_query: query_queues() failed I couldn't find anything usefull on these strings via Google. Any help is much appreciated. MTIA Cheers, Lars. > _____________________________________________=20 > From: Lars Wittebrood =20 > Sent: Sunday, December 10, 2006 9:51 PM > To: 'freebsd-ports@freebsd.org' > Subject: Pfstat trouble, no data in database file >=20 > Hello list, >=20 > I've installed and configure the Pfstat port on a FreeBSD 6.1 RELEASE > system acting as a firewall based on PF. >=20 > FreeBSD servername 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Fri Nov > 24 13:33:18 CET 2006 root@servername:/usr/obj/usr/src/sys/ALPHA > i386 >=20 > The trouble I have is that I get no data at all in the Pfstat data > file! >=20 > My Pfstat /etc/crontab entries > # > # Gather Pfstat output continually > * * * * * root /usr/local/bin/pfstat > -q >> /var/db/pfstat.db > # > # Generate Pfstat graphs every 5 minutes > */5 * * * * root /usr/local/bin/pfstat > -c /etc/pfstat.conf -d /var/db/pfstat.db > # > # Glean old Pfstat data > 1 1 1 * * root /usr/local/bin/pfstat > -t 31:365 >=20 > Entries from my cron log: > Dec 10 21:40:00 servername /usr/sbin/cron[39679]: (root) CMD ( > /usr/libexec/atrun) > Dec 10 21:41:00 servername /usr/sbin/cron[502]: (*system*) RELOAD > (/etc/crontab) > Dec 10 21:41:00 servername /usr/sbin/cron[39687]: (root) CMD > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) > Dec 10 21:42:00 servername /usr/sbin/cron[39696]: (root) CMD > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) > Dec 10 21:43:00 servername /usr/sbin/cron[39701]: (root) CMD > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) > Dec 10 21:44:00 servername /usr/sbin/cron[39714]: (root) CMD > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) > Dec 10 21:44:00 servername /usr/sbin/cron[39715]: (operator) CMD > (/usr/libexec/save-entropy) > Dec 10 21:45:00 servername /usr/sbin/cron[39734]: (root) CMD > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) > Dec 10 21:45:00 servername /usr/sbin/cron[39735]: (root) CMD ( > /usr/libexec/atrun) > Dec 10 21:45:00 servername /usr/sbin/cron[39733]: (root) CMD > (/usr/local/bin/pfstat -c /etc/pfstat.conf -d /var/db/pfstat.db) >=20 > root@servername db # ll /var/db/pfstat.db > -rw-r--r-- 1 root wheel 0 Dec 10 21:21 > /var/db/pfstat.db >=20 > As you can see pfstat.db stays zero bytes! Anyone any idea why this is > happening? My /etc/pf.conf has a set loginterface entry! >=20 > MTIA. >=20 > Cheers, > Lars.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?302F75DC2739FB43B236373398A8C599299F>