Hostgroup warning state
Hostgroup warning state
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
Can you post a screenshot as an example, and also the definitions that correspond to one of the hosts / services in that host group?
Former Nagios Employee
Re: Hostgroup warning state

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
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%.As you can see, the hostgroup status is returned as down, despite only one of the hosts being down.
https://assets.nagios.com/downloads/nag ... BPI_v2.pdf
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hostgroup warning state
While BPI groups are helpful, I can't display those in nagvis, as I specified in the original request.
Re: Hostgroup warning state
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.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Hostgroup warning state
This is correct. There shouldn't be a problem showing these services in NagVis.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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hostgroup warning state
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
Can you please confirm your XI and NagVis versions?
Former Nagios employee