check_snmp syntax
Burton, Steven
steve at sliderule.demon.co.uk
Tue Oct 28 11:38:52 CET 2003
Hi,
I'm having trouble (I i.e. totally failing) in checking available swap space
on a remote server.
I tried check check_snmp (nagios_plugins 1.3.1) 1.24.2.2 and (nagios_plugins
1.3.0) 1.24 .
My results:
# snmpget -v 1 -c public sclcache1 .1.3.6.1.2.1.25.2.3.1.6.2
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 512
# ./check_snmp -w 1:100000 -P 1 -H sclcache1 -o .1.3.6.1.2.1.25.2.3.1.6.2 ;
echo $?
SNMP WARNING - 512
1
# ./check_snmp -w 1000:100000 -P 1 -H sclcache1 -o
.1.3.6.1.2.1.25.2.3.1.6.2 ; echo $?
SNMP WARNING - *512*
1
In fact, it always returns 1 unless I use the -c and such parameters as to
make it critical.
It seems that OK and WARNING both return 1 but WARNING puts '*' around the
variable value.
Am I doing something wrong or is this a known problem?
If necessary I'll burrow into the source but I *useless* at reading other
peoples C.
Steve.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
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