check_snmp_mem.pl
Alex Dehaini
alexdehaini at gmail.com
Tue Mar 4 10:46:40 CET 2008
Hi Guys,
I am having difficulties using this plugin. I can't get it to work. Can you
guys help me please. What is syntax in the commands.cfg file and in the
service file of the cisco router I intend to monitor. This is what I have
commands.cfg
define command{
command_name check_snmp_mem_v1
command_line $USER1$/check_snmp_mem.pl -H $HOSTADDRESS$ $USER7$ $ARG1$ -w
$ARG2$ -c $ARG3$ $ARG4$
}
In my service definition file
define service{
use core-rservice
host_name core
service_description Memory
check_command check_snmp_mem_v1!communitystring!-I!80!98
}
This is the result I get in nagios web cgi
Memory<http://nagios.teledataict.com/nagios/cgi-bin/extinfo.cgi?type=2&host=core&service=Memory>
CRITICAL03-04-2008 09:29:570d 14h 2m 0s6/6(Return code of 127 is out of
bounds - plugin may be missing)
I reckon I am not doing something right because the plugin works from the
command line i.e.
snmp:/usr/local/nagios/libexec# ./check_snmp_mem.pl -H 41.211.3.218 -C
communitystring -I -w 40% -c 90%
Processor:24%,I/O:60% : 28% : > 40 ; WARNING
What am I doing wrong?
--
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - alexdehaini at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080304/b17995ee/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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