check_snmp setup questions
Mark Haney
mhaney at ercbroadband.org
Fri Jun 29 19:49:08 CEST 2007
I have just setup a check_snmp service in Nagios v2.9 to be able to
check a new temperature/humidity sensor in our data center. I tested it
from the command line like this:
./check_snmp -H 192.168.0.16 -o .1.3.6.1.4.1.16174.1.1.3.3.1.6.0 -C
public -w 60 -c 71
And it works perfectly that way. However, when I set it up in Nagios
it's not working. Here's what I did. I setup a check command
definition like this:
#check_snmp_POP_Temp command
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS -o $ARG1$ -C
$ARG2$ -w $ARG3$ -c $ARG4$
And in the host config file I have this:
check_command
check_snmp!.1.3.6.1.4.1.16174.1.1.3.3.1.3.0!public!80!90
Nagios didn't complain about this during the preflight check, but when I
restarted it, I'm getting this:
check_snmp: Invalid warning threshold: %s
So obviously I've got something wrong in the setup. Can someone help me
out?
--
Da mihi sis bubulae frustrum assae, solana tuberosa in modo gallico
fricta, ac quassum lactatum coagulatum crassum
Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
Call (866) ERC-7110 for after hours support
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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