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
}
check_nt Memory Threshold
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_nt Memory Threshold
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.
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
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.49I 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.
Re: check_nt Memory Threshold
Hi Box,
Thank you very much, you're really awesome
Thank you very much, you're really awesome
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_nt Memory Threshold
Glad I could help
I maintain that website because I hate re-inventing the wheel and having to think too much
I maintain that website because I hate re-inventing the wheel and having to think too much
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.