Page 1 of 1
Change status from ok to actual value
Posted: Sat Feb 20, 2016 4:34 pm
by Sydnguyen
Hi all,
Just wonder there is a way to change status on server details from ok to actual value???
Re: Change status from ok to actual value
Posted: Sun Feb 21, 2016 4:13 pm
by eloyd
"Actual value" means different things to different people. Checking memory usage generally means percentage free, but checking time to resolve a web page means seconds (or milliseconds). This information is included in the extended status information returned by the Nagios plugin, and is generally displayed on the screen along with the OK, WARNING, or CRITICAL.
Nagios only really pays attention to one return value from the plugin: zero, one, or two (OK, WARNING, and CRITICAL). It then takes any output from the plugin and displays it as status information.
You can learn more at
https://assets.nagios.com/downloads/nag ... inapi.html
So basically, the result will always be OK, WARNING, or CRITICAL, but a well-written plugin should show you the actual results as well.
Re: Change status from ok to actual value
Posted: Mon Feb 22, 2016 10:18 am
by rkennedy
Thanks @eloyd!
@Sydnguyen - does this answer your question?