Change status from ok to actual value

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
Sydnguyen
Posts: 1
Joined: Wed Feb 17, 2016 10:45 pm

Change status from ok to actual value

Post by Sydnguyen »

Hi all,

Just wonder there is a way to change status on server details from ok to actual value???
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Change status from ok to actual value

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Change status from ok to actual value

Post by rkennedy »

Thanks @eloyd!

@Sydnguyen - does this answer your question?
Former Nagios Employee
Locked