Nesting hostgroups and the web interface

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.
Locked
jdsolmed
Posts: 2
Joined: Thu Jul 23, 2015 3:44 pm

Nesting hostgroups and the web interface

Post by jdsolmed »

Hello,

We are monitoring devices across our office and two labs. Currently in Nagios Core, I have everything organized into hostgroups by device category (Windows Servers, Network Devices, SAN Devices, etc.). I want to break it down further so that when I look at the web interface, I see everything separated by location first, then by category. I thought Hostgroup nesting would do the trick, but what this seems to do is create a bunch of groups with redundant host data. Is there a better way of nesting groups in the web interface, and keeping it tidy? I'm guessing I am just missing something simple, but I didn't come up with anything when I did a Google search.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nesting hostgroups and the web interface

Post by jolson »

Is there a better way of nesting groups in the web interface, and keeping it tidy
You might consider parent relationships, which tend to tidy up maps (and provide the additional benefit of reducing the potential for alert storms!)

Lets say you have four locations:

A (nagios lives here)
B
C
D

These locations will all appear next to one another on the map with no parents defined. If you made B C and D depend upon the Nagios Server or perhaps location A, the map would adjust accordingly.

I don't know if this will fit your purpose, but it's worth noting that parental relationships _do_ change map behaviors, and it might be enough to solve your issue. Let me know, thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jdsolmed
Posts: 2
Joined: Thu Jul 23, 2015 3:44 pm

Re: Nesting hostgroups and the web interface

Post by jdsolmed »

Interesting. Reducing Nagios "spam" will be a useful side effect. Last night I got about 50 emails after changing a couple of IPs.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nesting hostgroups and the web interface

Post by rkennedy »

Do you have monitoring setup using DNS or IPs? As Nagios cannot detect a change in IPs, this could be the cause for your alerts.
Former Nagios Employee
Locked