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

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

Post 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
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 »

So something like this?
connection.png
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 »

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
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 »

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.
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 »

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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
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 »

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
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 »

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
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 »

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.
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 »

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
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 »

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.
Former Nagios employee
Locked