try: /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 -r ok
Giovanni Natalie Aloi wrote: > I am trying to get something to work in Nagios and my command generates > a response of unknown, but the snmpwalk generates a value of 2 > I also tried another oid and the values generated are identical for the > snmpwalk and the snmpget > > (the one for the upsBatteryStatus is the one I am curious about) > > [r...@nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 > SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds > > [r...@nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) > [r...@nagios mibwalk]# > > Data from snmpwalk is below: > > UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) > UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds > > Natalie > > Experis Data Center LLC > 8209 Valley Pike > PO Box 535 > Middletown,VA 22645 > phone:540-869-8702 > cell:240-988-3267 > fax:540-869-8710 > e-mail:na...@experisdatacenters.com > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null