Page 1 of 1

Hostgroup warning state

Posted: Tue Dec 08, 2015 10:47 am
by Atria
I'm currently using nagvis as my primary alerting screen, with hostgroups containing all of the hosts located at each of our branches. Unfortunately with the way nagios is alerting, if a single host is down in the hostgroup, the hostgroup status goes to critical. Can this behavior be modified?

Re: Hostgroup warning state

Posted: Tue Dec 08, 2015 3:54 pm
by rkennedy
Can you post a screenshot as an example, and also the definitions that correspond to one of the hosts / services in that host group?

Re: Hostgroup warning state

Posted: Tue Dec 08, 2015 4:22 pm
by Atria
Image

As you can see, the hostgroup status is returned as down, despite only one of the hosts being down. I would prefer for the status to return as warning, like it does when a service is warning or critical, unless all the hosts are down.

Each hostgroup defines one of our branch locations, and the hosts are defined like so

Code: Select all

define host {
        host_name                       cr311-10311-Stratford
        use                             00-Community Router-Host-SLA-48Hr,00-Template-Host-CheckInt-5min,00-Template-Host-CheckType-Ping
        address                         172.16.1.1
        hostgroups                      10311-Stratford-Hostgroup-Network,11-Cisco-Hostgroup-Network,11-Router-Cisco-1841-Hostgroup-Network
        register                        1
        }

Re: Hostgroup warning state

Posted: Wed Dec 09, 2015 11:05 am
by lmiltchev
As you can see, the hostgroup status is returned as down, despite only one of the hosts being down.
You could try creating BPI groups and set up health thresholds that make sense to you, i.e. change state to warning only if health is lower than 20% and to critical - if lower than 10%.

https://assets.nagios.com/downloads/nag ... BPI_v2.pdf

Let us know if this helped.

Re: Hostgroup warning state

Posted: Thu Dec 10, 2015 9:15 am
by Atria
While BPI groups are helpful, I can't display those in nagvis, as I specified in the original request.

Re: Hostgroup warning state

Posted: Thu Dec 10, 2015 10:20 am
by WillemDH
You should be able to make a service linking to the BPI group with the BPI wizard. It is possible to show the service in NagVis.

Re: Hostgroup warning state

Posted: Thu Dec 10, 2015 12:07 pm
by lmiltchev
You should be able to make a service linking to the BPI group with the BPI wizard. It is possible to show the service in NagVis.
This is correct. There shouldn't be a problem showing these services in NagVis.

Re: Hostgroup warning state

Posted: Fri Dec 11, 2015 1:17 pm
by Atria
Ok I am trying to set this up by creating a host whose check uses the check_bpi service and for $ARG1$ I have $HOSTGROUPNAME$. The only hostgroup the host is a member of is the hostgroup I have the BPI set up for. Initially this worked without issue, but when I cloned it I started getting an error "Unknown BPI Group Index" I have tried specifying the hostgroup name directly in the ARG1 field without using the $HOSTGROUPNAME$ variable and still get the same error. A search of the message boards indicates that this error was occuring in a previous version but was supposed to be patched. Any idea what might be wrong?

Re: Hostgroup warning state

Posted: Fri Dec 11, 2015 3:16 pm
by tmcdonald
Can you please confirm your XI and NagVis versions?