I have the snmpd running on a client box. I have nagois monitoring this
box without any issues. I decided to implement a new plugin I found,
check_snmp_storage.pl. From the "nagios server" I can issue this
command to the client box, and I get a valid response, e.g.
[EMAIL PROTECTED] ]# su - nagois
-sh-3.00$ cd /usr/lib64/nagios/plugins
-sh-3.00$ ./check_snmp_storage.pl -H star -C public -m /temp -w 95 -c
98 -f
/temp: 2%used(35MB/1984MB) (<95%) : OK | '/temp'=35MB;1885;1945:0:1984
-sh-3.00$
But, when I implement this plugin in Nagios, I get the following
response: "Put snmp login info!"
Why does the plugin work from the shell prompt, but fails when run from
Nagios?
My service is defined as:
define service{
use generic-service
host_name star
service_description snmp /temp Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 1440
notification_period 24x7
notification_options w,u,c,r
check_command check_snmp_storage!-C public -m /temp -w 95 -c
98 -f!
}
My command is defined as:
define command{
command_name check_snmp_storage
command_line $USER$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$
}
Can anyone help me here?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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