Page 1 of 2

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

Posted: Fri Jun 13, 2014 8:53 am
by almirf
Dear Friends

I have a host that has two different circuits. when a're running turns green and when he is in trouble turns red.

is it possible to place orange if I have a problem with running and another.

Thanks
Almir

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

Posted: Fri Jun 13, 2014 10:18 am
by tmcdonald
So something like this?
connection.png

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

Posted: Fri Jun 13, 2014 10:21 am
by eloyd
Edit: Just noticed @tmcdonald's reply came in slightly before mine. I still think my advice below holds. :-)

Dependencies are your answer. http://nagios.sourceforge.net/docs/3_0/ ... ncies.html

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

Posted: Fri Jun 13, 2014 12:32 pm
by tmcdonald
Dependencies might not be the answer here if OP is talking about having two possible routes for a ping to make. BPI would be a possibility if each link can be tested individually. But I would rather use a single check in this case.

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

Posted: Fri Jun 13, 2014 12:55 pm
by eloyd
I guess I need more information (or better translation) as to what the requester is asking for. My interpretation is that if the first link is down, he wants to go yellow, but only go red if the second link is also down.

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

Posted: Fri Jun 13, 2014 12:59 pm
by almirf
yes....
but im want to see yellow when have one lin down + another one link up
is possible?
tmcdonald wrote:So something like this?
connection.png

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

Posted: Fri Jun 13, 2014 1:12 pm
by eloyd
My diagram isn't as nice as Trevor's, but here it is.

Assuming that it is GREEN if both links are ok, and RED if both links are down, what color do you want for the other two states?
Image

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

Posted: Fri Jun 13, 2014 1:49 pm
by tmcdonald
I believe that's when he would warn a yellow WARNING state. So unless the individual lines are monitored and set as depends, BPI or a custom plugin is the answer here.

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

Posted: Fri Jun 13, 2014 2:14 pm
by almirf
nono
Green - All link is UP
Yellow - one of the link is down
Orange - one of the link have ore than 80% of traffic usage (if is possible)
Red - all link is down

eloyd wrote:My diagram isn't as nice as Trevor's, but here it is.

Assuming that it is GREEN if both links are ok, and RED if both links are down, what color do you want for the other two states?
Image

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

Posted: Mon Jun 16, 2014 8:55 am
by tmcdonald
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.