[Nagiosplug-devel] check_snmp_mem.pl - allways bee critical because linux all free RAM reserwed for buffers/cache
Michał Panasiewicz
wolvverine at tarchomin.pl
Thu May 11 02:21:05 CEST 2006
Dnia 19-03-2006, nie o godzinie 17:45 +0100, Patrick Proy napisał(a):
> Hi,
>
> You can find here the latest version of check_snmp_mem.pl wich doesn't include cached memory in the used memory (derived from a patch of Erik Romijn) :
> http://www.manubulon.com/nagios/dev/check_snmp_mem.pl
> There is still an option to include it if needed (-m).
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)
other info:
# 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
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$
}
More information about the Devel
mailing list