is possivel to put Different collor in hosts with 2 links??

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.
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: is possivel to put Different collor in hosts with 2 link

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: is possivel to put Different collor in hosts with 2 link

Post 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.
Former Nagios employee
almirf
Posts: 31
Joined: Tue Apr 29, 2014 1:23 pm

Re: is possivel to put Different collor in hosts with 2 link

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: is possivel to put Different collor in hosts with 2 link

Post 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.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: is possivel to put Different collor in hosts with 2 link

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: is possivel to put Different collor in hosts with 2 link

Post by tmcdonald »

almirf, were the links and eloyd's post helpful? We haven't heard from you in a while - just checking in.
Former Nagios employee
Locked