Hello,
I have the following snmpd.conf file on a freshly installed Debian server:
###########################################################################
rouser admin
smuxpeer .1.3.6.1.4.1.674.10892.1
extend drbd “/usr/lib/nagios/plugins/check_drbd -d Configured"
extend bonds “/usr/lib/nagios/plugins/check_linux_bonding -s”
These “extends” are called by a Nagios server.
As you might guess, the bonds-extend checks, if all the bonds are up and not
degraded.
This check is done, at least for quite some time, only once and then, only
values from some kind of cache are returned. Meaning, I can disconnect a cable
of the bond and Net-SNMP still says, that everything is ok.
So you might say, that I should change extend to extendfix. Then, my Nagios
plugin returns the following error:
ERROR: retrieving OID 1.3.6.1.4.1.8072.1.3.2.4.1.2.5.98.111.110.100.115 table:
The requested table is empty or does not exist.
But when I prepend an extend bonds… line just before the extendfix bonds…, like
this:
###########################################################################
rouser admin
smuxpeer .1.3.6.1.4.1.674.10892.1
extend drbd “/usr/lib/nagios/plugins/check_drbd -d Configured"
extend bonds “/usr/lib/nagios/plugins/check_linux_bonding -s”
extendfix bonds “/usr/lib/nagios/plugins/check_linux_bonding -s”
everything works flawlessly: I can disconnect or re-connect a cable and Nagios
detects it immediately.
Could anybody explain me what happens?
Thanks a lot
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users