Check_snmp Issue
Dean Bishop
dbishop at ehvert.com
Fri May 16 15:52:38 CEST 2003
Good morning,
Why not check something with a more static value. if you do a
./check_snmp -H 192.168.0.1 -C public -o sysName.0
it will return the system name. This, if SNMP is enabled, will result in an
OK return code each time.
later,
dean
-----Original Message-----
From: Aaron Conaway [mailto:Aaron.Conaway at HOSystems.com]
Sent: Friday, May 16, 2003 8:05 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Check_snmp Issue
I've checked the archives and online for this problem, but any solution
I have found does not work for me. My ultimate goal is to just check if
SNMP is running on a box; I could care less what any SNMP value is.
As you can see below, if I do an snmpget on ifNumber.0, it returns 107.
That's fine and dandy since I don't really care what the value is. If I
do a check_snmp to the same OID, I get 107, but it is a warning status.
If I set the warning range to 108:, it returns a warning state, but the
value of 107 is between asterisks. If I set the critical range to 108:,
I get a critical state with the value of 107 between asterisks.
I know just enough SNMP to be dangerous, but I am obviously missing
something basic here. Can anyone help?
[nagios at palpatine libexec]$ snmpget -c ******** -v 1 ******** ifNumber.0
RFC1213-MIB::ifNumber.0 = INTEGER: 107
[nagios at palpatine libexec]$ ./check_snmp -H ******** -C ******** -o
ifNumber.0
SNMP WARNING - 107
[nagios at palpatine libexec]$ ./check_snmp -H ******** -C ******** -o
ifNumber.0 -w 108:
SNMP WARNING - *107*
[nagios at palpatine libexec]$ ./check_snmp -H ******** -C ******** -o
ifNumber.0 -c 108:
SNMP CRITICAL - *107*
[nagios at palpatine libexec]$ ./check_snmp -V
check_snmp (nagios-plugins 1.3.0) 1.24
[nagios at palpatine libexec]$ ../bin/nagios -V
Nagios 1.0
----------
Aaron Conaway
Network Engineer III
Verisign, Inc. -- Telecom Services Division
http://www.verisign.com
Office: 912.527.4343
Fax: 912.527.4014
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list