Hostgroup warning state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Hostgroup warning state

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Hostgroup warning state

Post 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?
Former Nagios Employee
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Re: Hostgroup warning state

Post 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
        }
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroup warning state

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Re: Hostgroup warning state

Post by Atria »

While BPI groups are helpful, I can't display those in nagvis, as I specified in the original request.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Hostgroup warning state

Post 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.
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroup warning state

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Re: Hostgroup warning state

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

Re: Hostgroup warning state

Post by tmcdonald »

Can you please confirm your XI and NagVis versions?
Former Nagios employee
Locked