check_nt Memory Threshold

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

check_nt Memory Threshold

Post 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
}
Attachments
mem.jpg
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt Memory Threshold

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: check_nt Memory Threshold

Post by braindope »

Hi Box,

Thank you very much, you're really awesome :D
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt Memory Threshold

Post 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:
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked