Page 1 of 1

check_nt Memory Threshold

Posted: Wed Nov 11, 2015 7:57 pm
by braindope
Hi,

Can someone tell me how to set the threshold graph display of warning and critical in check_nt? i need it to show that the warning = 80% and critical = 90%, the red and yellow line is not present on the graph.

command.cfg

define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s pasword -v $ARG1$ $ARG2$
}

server.cgf

define service{
use generic-service,srv-pnp
host_name Server
service_description Memory
check_command check_nt!MEMUSE!-w 80 -c 90
}

Re: check_nt Memory Threshold

Posted: Wed Nov 11, 2015 9:50 pm
by Box293
This is a limitation of check_nt and there is nothing you can do about it ... without creating pnp templates that re-calculate what the percentages should be.

You should switch to using the NRPE module in NSClient++ as this has more complex checks that will show percentages.

Code: Select all

Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll type=physical MaxWarn=80% MaxCrit=90%

Output:
OK: physical memory: 800M|'physical memory %'=39%;80;90 'physical memory'=799.68M;1637.99;1842.74;0;2047.49
You can see it outputs two datasources, one using percentages and the other with M values.

I have a bunch of examples here:
http://sites.box293.com/nagios/guides/c ... mory-usage
And how to install NSClient++ and enable the NRPE module:
http://sites.box293.com/nagios/guides/n ... dows/0-4-x

Re: check_nt Memory Threshold

Posted: Thu Nov 12, 2015 6:45 pm
by braindope
Hi Box,

Thank you very much, you're really awesome :D

Re: check_nt Memory Threshold

Posted: Thu Nov 12, 2015 7:48 pm
by Box293
Glad I could help :D

I maintain that website because I hate re-inventing the wheel and having to think too much :lol: