Hostgroup within a hostgroup
Posted: Tue Mar 22, 2016 7:40 am
Hi there,
I have a question about nested host groups. This is somewhat working on our XI 5.2.5 installation on CentOS6.
Essentially, I make a hostgroup for each "customer site" with their address information, a notes field etc that is passed in the email alert.
I then group THOSE hostgroups by the type of service -- in our case, let's just say "INTERNET CUSTOMERS".
Here is an example of how I have set things up:
- Created host group ABC, populated details like notes, etc.
- Host ABC - 1.2.3.4, clicked 'Managed Host Groups', added Host ABC to Host Group ABC.
- Opened existing host group 'INTERNET CUSTOMERS', clicked 'Manage Host Groups', and added host group ABC.
In most cases, NAGIOS will show me the information from 'Host group ABC' when I get the email alert which is what we want. However, some times I'll get the information from the 'INTERNET CUSTOMERS' host group.
Example of a good alert/email. It pulled the information from Hostgroup ABC and displayed it correctly in the alert.
Example of a bad alert, where the information is pulled from hostgroup 'INTERNET CUSTOMERS':
I have a question about nested host groups. This is somewhat working on our XI 5.2.5 installation on CentOS6.
Essentially, I make a hostgroup for each "customer site" with their address information, a notes field etc that is passed in the email alert.
I then group THOSE hostgroups by the type of service -- in our case, let's just say "INTERNET CUSTOMERS".
Here is an example of how I have set things up:
- Created host group ABC, populated details like notes, etc.
- Host ABC - 1.2.3.4, clicked 'Managed Host Groups', added Host ABC to Host Group ABC.
- Opened existing host group 'INTERNET CUSTOMERS', clicked 'Manage Host Groups', and added host group ABC.
In most cases, NAGIOS will show me the information from 'Host group ABC' when I get the email alert which is what we want. However, some times I'll get the information from the 'INTERNET CUSTOMERS' host group.
Example of a good alert/email. It pulled the information from Hostgroup ABC and displayed it correctly in the alert.
Code: Select all
Nagios has detected this host has recovered.
Notification Type: RECOVERY
Customer Information:
Hostgroup: ABC Company
Site Address: 1234 Front Road, City, State
Sharepoint URL: http://someurl
Notes: ISP Order #: EMC-66-01
Host Information:
Host: ABC Company - Internet Modem
State: UP
Address: 10.40.100.218
Info: OK - 10.40.100.218: rta 12.650ms, lost 0%
Date/Time: 2016-02-10 01:59:07
Code: Select all
Nagios has detected a problem with this host.
Notification Type: PROBLEM
Customer Information:
Hostgroup: Internet Customers
Site Address: Internet Customers
Sharepoint URL:
Notes:
Host Information:
Host: ABC Company - Internet Modem
State: DOWN
Address: 10.40.100.194
Info: CRITICAL - 10.40.100.194: rta nan, lost 100%
Date/Time: 2016-03-22 08:18:33