Page 2 of 2
Re: is possivel to put Different collor in hosts with 2 link
Posted: Mon Jun 16, 2014 3:22 pm
by almirf
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.
Re: is possivel to put Different collor in hosts with 2 link
Posted: Mon Jun 16, 2014 3:29 pm
by tmcdonald
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.
Re: is possivel to put Different collor in hosts with 2 link
Posted: Mon Jun 16, 2014 4:55 pm
by almirf
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.
Re: is possivel to put Different collor in hosts with 2 link
Posted: Mon Jun 16, 2014 5:02 pm
by tmcdonald
I would take a look at some of the Core documentation
http://nagios.sourceforge.net/docs/3_0/pluginapi.html
https://nagios-plugins.org/doc/guidelines.html
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.
Re: is possivel to put Different collor in hosts with 2 link
Posted: Mon Jun 16, 2014 6:16 pm
by eloyd
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.
Re: is possivel to put Different collor in hosts with 2 link
Posted: Thu Jun 26, 2014 12:03 pm
by tmcdonald
almirf, were the links and eloyd's post helpful? We haven't heard from you in a while - just checking in.