SNMP - Hair Pulling Error :)
Tony Holmes <[email protected]>
| Newsgroups | gmane.os.freebsd.isp |
|---|---|
| Message-ID | <[email protected]> |
After a slow start and a couple private conversations (THANKS!)
I have gotten net-snmpd compiled, configured, running.
I ran into an error and went to the simplest config I could and still
get the "No Such Instance currently exists at this OID" error.
Details:
FreeBSD 4.10 cannot upgrade
net-snmp-5.1.1_1 yes, old
ipfw with counter rules installed 100 - 520ish
/usr/local/etc/snmp/snmp.conf:
rocommunity public
syslocation here
syscontact me
pass .1.3.6.1.4.1.3027.1 /root/bytecount 100 .1.3.6.1.4.1.3027.1
/root/bytecount:
#!/bin/sh
echo "$2"
echo "integer"
/bin/expr `ipfw -a list $1 | /usr/bin/awk '{ print $3 }'` % 4294967295
Run bytecount test (pulled from snmp debug):
# /root/bytecount 100 .1.3.6.1.4.1.3027.1 -g .1.3.6.1.4.1.3027.1
.1.3.6.1.4.1.3027.1
counter
7151484
Run the snmpget:
# snmpget -v 2c -c public localhost .1.3.6.1.4.1.3027.1
SNMPv2-SMI::enterprises.3027.1 = No Such Instance currently exists at this OID
The net-snmp shows the call being made. According to the docs I have the
format right for the output of /root/bytecount.
Googling lead me to this simple config and still I get the error and now
sit stumped.
Leads? Urls?
TIA
--
Tony Holmes
Ph: (416) 993-1219
Founder and Senior Systems Architect
Crosswinds Internet Communications Inc.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "[email protected]"