check_snmp_storage fails on 2003 box, works manually
Hugo van der Kooij
hvdkooij at vanderkooij.org
Mon Nov 12 07:58:42 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
chris serafin wrote:
> I'm having an issue with getting some SNMP commands to work.
>
> When issuing the check_snmp_storage.pl manually, I get perfect results,
> but once I put it in Nagios 3.0b5, I get critical alerts: (Return code
> of 127 is out of bounds - plugin may be missing)
>
> This is the manual command I enter and the result:
>
> $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c 95
Great for root. But what about the account that Nagios is running as?
Did you test it too? And where did you put check_snmp_storage.pl exactly?
./ is a rather relative distinction. But I think it does not matter ....
> This is how I defined the command and service:
> define command{
> command_name check_snmp_storage_windrive
> command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C
> $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$
Hold on. Why are you afraid to come out and tell nagios it is a perl script?
$USER1$/check_snmp_storage !!= ./check_snmp_storage.pl
For those unaware of pseudo code: !!= stands for 'is most definitly
NOT'. Pretty much as !~= stands for 'almost but not quite unlike`;-)
Hugo.
- --
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHN/mgBvzDRVjxmYERAmt3AKCD35Rz1k7aT3POzEvQPYUNEQXo4ACfUa0H
Mg/Qj9Pt1/o0/6T4xxwwxZg=
=GD0Z
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.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