Create SNMP self scripts
-
Dear all,
I want to pop state table usage MRTG graphic. Therefore, I added the below configuration in my pfsense snmpd.config file.
exec sstable /sbin/pfctl -ss |wc -l
In my mrtg server, I run the snmpwalk -v2c -cpublic pfsenseip ucdavis. I cannot find the state table value. :-[
-
pfSense uses bsnmpd, not net-snmpd. bsnmpd does not support exec statements in that way.
For pf-related stats from bsnmpd, see https://raw.githubusercontent.com/pfsense/FreeBSD-src/devel/usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.