Re: [Nagios-users] check_snmp_storage fails on 2003 box, works manually
AA, after over 6+ hours of editing CLI code, my eyes failed me. I changed these simple flags and it works great. Sorry for the newb false alarm. Chris Serafin Security Engineer [EMAIL PROTECTED] On Nov 12, 2007 12:58 AM, Hugo van der Kooij [EMAIL PROTECTED] wrote: -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_namecheck_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. - -- [EMAIL PROTECTED] 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@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 - 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@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
[Nagios-users] check_snmp_storage fails on 2003 box, works manually
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 C:\ Label: Serial Number d0d8a583: 66%used(9055MB/13774MB) (80%) : OK This is how I defined the command and service: define command{ command_namecheck_snmp_storage_windrive command_line$USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ } define service{ use generic-service host_name Bunker01_Win2003-01 service_description Check Drive C Memory check_command check_snmp_storage_windrive!pUBLIC!^C!90!100! } The host is running Ubuntu 7.x and Nagios 3.0b5 Chris Serafin Security Engineer [EMAIL PROTECTED] - 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@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
Re: [Nagios-users] check_snmp_storage fails on 2003 box, works manually
-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_namecheck_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. - -- [EMAIL PROTECTED] 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@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