[Nagiosplug-help] problem with check_snmp_mem.pl
Michał Panasiewicz
wolvverine at tarchomin.pl
Mon Jun 5 06:32:28 CEST 2006
plugin from: http://www.manubulon.com/nagios/dev/check_snmp_mem.pl
In mail write me:
***** Nagios *****
Notification Type: PROBLEM
Service: Memory RAM+SWAP
Host: Serwer1
Address: 192.168.0.1
State: CRITICAL
Date/Time: Sat May 6 17:01:43 CEST 2006
Additional Info:
(Return code of 13 is out of bounds)
#########################################################
from command line:
---------------------------------------------------
$ LC_ALL=C LANG=C /usr/lib/nagios/plugins/check_snmp_mem.pl -H 127.0.0.1
-C xkancelax642 -2 -N -w 80,20 -c 90,30
Ram : 23%, Swap : 0% : ; OK
---------------------------------------------------
configuration from nagios:
in /etc/nagios/services_serwer.cfg
---------------------------------------------------
define service{
use comp_serwer
service_description Memory RAM+SWAP
check_command check_snmp_lin_mem!public!80,20!
90,30
}
----------------------------------------------------
in /etc/nagios/checkcommands.cfg :
---------------------------------------------------
# Check Linux memoryRAM,SWAP -w ram,swap -c ram,swap
define command {
command_name check_snmp_lin_mem
command_line LC_ALL=C LANG=C $USER1$/check_snmp_mem.pl -f -H
$HOSTADDRESS$ -C $ARG1$ -2 -w $ARG2$ -c $ARG3$
}
---------------------------------------------------
--
Michał Panasiewicz - PLD Linux Distribution Developer http://www.pld-linux.org & GnomePL Developer http://www.gnomepl.org
e-mail: wolvverine[at]tlen[dot]pl wolvverine[at]pld-linux[dot]org
jabber: wolvverine[at]chrome[dot]pl gg: 747212
More information about the Help
mailing list