Monitoring ipfw dynamic rules with Cacti & net-snmp
June 20th, 2005
You'll need a fairly recent install of net-snmp for this, as it uses the 'extend' MIB.In snmpd.conf:
# so we can track dynamic-rule count extend fw-dyn-rules /usr/local/bin/snmp-fw-dynrules
#!/bin/sh sysctl -n net.inet.ip.fw.dyn_count sysctl -n net.inet.ip.fw.dyn_max
- Current rules:
- .1.3.6.1.4.1.8072.1.3.2.4.1.2.12.102.119.45.100.121.110.45.114.117.108.101.115.1
- Maximum rules:
- .1.3.6.1.4.1.8072.1.3.2.4.1.2.12.102.119.45.100.121.110.45.114.117.108.101.115.2
Here's an export from our cacti install, which should include all of that.