Re: Hostgroup within a hostgroup
Posted: Mon Mar 28, 2016 10:31 am
Sorry for the delay... been swamped lately. I found 2 hosts/hostgroups that produced alerts 1 day apart. 1 good, 1 bad. I'll list them here, but I'm going to try to scape out any of the clients info.
Example 1:
Host produces an alert, but in the alert I received it showed hostgroup information for the OVERALL host group.
Host:
Hostgroup:
This is how the email/alert was received - you will see it shows Host Group info from the group "PPPoE CUSTOMERS"
Now, here is EXample 2, where the alert showed the correct hostgroup information inside of it:
Host:
Hostrgroup:
And finally, how the email/alert was received -- contains correct info from host group "Company 2"
---------------------
This is how I have the Host to Hostgroup relationship setup:
Open Host1, click MANAGE HOSTGROUPS, and add the host to Hostgroup COMPANY 1. Then I go to the 'overall' hostgroup "PPPoE Customers" and click MANAGE HOSTGROUPS. Here, I add each customers Host Group.
Summary of problem:
Sometimes the alert shows the data from hostgroup "Company X", which is what is desired. But other times, it will show data from hostgroup "PPPoE Customers", which is not desired as I'm simply using that as a way to 'group' customers with a similar paid-service from me.
I hope this helps.
Example 1:
Host produces an alert, but in the alert I received it showed hostgroup information for the OVERALL host group.
Host:
Code: Select all
define host {
host_name Company 1 - Windsor - Smart RG
address 10.40.100.246
hostgroups Company 1 - Windsor
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 1
retry_interval 1
check_period 24x7
contacts nagiosadmin
contact_groups PPPoE Customers
notification_interval 15
notification_period 24x7
notification_options d,u,r,
notifications_enabled 1
icon_image cable_modem.png
statusmap_image cable_modem.png
register 1
}
Code: Select all
define hostgroup {
hostgroup_name Company 1 - Windsor
alias 1234 Main Street, Windsorr, ON
notes Bell Order #: EMC-151-01
notes_url https://mywebsite.com
}
Code: Select all
Nagios has detected a problem with this host.
Notification Type: PROBLEM
Customer Information:
Hostgroup: PPPoE Customers
Site Address: PPPoE Customers
Sharepoint URL:
Notes:
Host Information:
Host: Company 1 - Windsor - SmartRG
State: DOWN
Address: 10.40.100.246
Info: CRITICAL - 10.40.100.246: rta nan, lost 100%
Date/Time: 2016-03-26 05:28:20
Host:
Code: Select all
define host {
host_name Company 2
use xiwizard_passive_host
address Company 2
hostgroups Company 2
check_command check_freshness_host!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
check_freshness 1
freshness_threshold 120
contacts nagiosadmin,tech
notification_interval 20
notification_period xi_timeperiod_24x7
notification_options d,u,r,
notifications_enabled 1
icon_image passiveobject.png
statusmap_image passiveobject.png
_xiwizard passiveobject
register 1
}
Code: Select all
define hostgroup {
hostgroup_name Company 2
alias 5555 Centre Street, Scarborough, ON
notes Bell Order #: EMC-174-01, Rogers Internet Primary WAN
notes_url https://somedomain.com
}
Code: Select all
Nagios has detected a problem with this service.
Notification Type: PROBLEM
Customer Information:
Hostgroup: Company 2
Site Address: 5555 Centre Street, Scarborough, ON
Sharepoint URL: https://somedomain.com
Notes: Bell Order #: EMC-174-01, Rogers Internet Primary WAN
Service Information:
Service: Outside Ping
Host: Company 2
Address: Company 2
State: CRITICAL
Info:
PING CRITICAL - Packet loss = 100%
Date/Time: 2016-03-27 17:14:38
This is how I have the Host to Hostgroup relationship setup:
Open Host1, click MANAGE HOSTGROUPS, and add the host to Hostgroup COMPANY 1. Then I go to the 'overall' hostgroup "PPPoE Customers" and click MANAGE HOSTGROUPS. Here, I add each customers Host Group.
Summary of problem:
Sometimes the alert shows the data from hostgroup "Company X", which is what is desired. But other times, it will show data from hostgroup "PPPoE Customers", which is not desired as I'm simply using that as a way to 'group' customers with a similar paid-service from me.
I hope this helps.