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.
is not possible to put orange if im have one ok (Green) and another Down (Red) ?
Thanks
almir
tmcdonald wrote:The colors are not arbitrary, but rather indications of the state of a host or service. Green is OK, Yellow is Warning, Red is Critical, and Orange is Unknown.
The only way you could get around this is if you had a custom plugin that output the proper status, but then you might run into problems where the Unknown status needs to be treated as a second Warning state.
As I had said in my last post, the colors are only used to indicate a host or service state, and are not configurable. The only way you could get an Unknown (orange) state for a host or service is if you had a plugin that specifically knew to exit with the Unknown status. Doing so will work, but will mess with the state logic built into Nagios.
Hmmmmm reat, and how im can use orange collor to specify this?
in my nagmap im use different gifs
Thanks
Almir
tmcdonald wrote:As I had said in my last post, the colors are only used to indicate a host or service state, and are not configurable. The only way you could get an Unknown (orange) state for a host or service is if you had a plugin that specifically knew to exit with the Unknown status. Doing so will work, but will mess with the state logic built into Nagios.
The colors truly are not what you control in Core - it is the plugin exit code that determines the color used. They could be purple, pink, black, and teal and yet the OK/WARNING/CRITICAL/UNKNOWN status would remain unchanged.
Honestly, I think you get into dangerous waters if you want to use the UNKNOWN state to signify something other than UNKNOWN. I might suggest using green (OK) if everything is fine, yellow (WARNING) if you have high traffic rates, and red (CRITICAL) if you have broken links. You could then use a dependency to only notify if BOTH LINKS are down or something like that.
Relying on a return code of UNKNOWN to mean something other than UNKNOWN is not standard and may get you into trouble.