Email notifications only going to nagiosadmin contact
Re: Email notifications only going to nagiosadmin contact
The templates seem to be leveraging the admins contact group, but it's not immediately clear who is in that contact group or what hosts/services are using these templates.
Can you also send over your contactgroups definitions as well as a sample host+service file you would expect someone other than nagiosadmin to receive notifications for?
Can you also send over your contactgroups definitions as well as a sample host+service file you would expect someone other than nagiosadmin to receive notifications for?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Email notifications only going to nagiosadmin contact
I sent the contacts file via PM to dwhitfield. I'll PM a host file to you. Thanks.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Email notifications only going to nagiosadmin contact
There is a contact group in contacts.cfg, but perhaps you also have a /usr/local/nagios/etc/contactgroups.cfg? I think that's what @mcapra seeks.
Re: Email notifications only going to nagiosadmin contact
Oh. No, that file doesn't exist. Just contacts.cfg.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Email notifications only going to nagiosadmin contact
There are a few ways to solve this, but probably the easiest is to add automation (and whoever else) to the admins contract group in contacts.cfg.
You could also add the contact directly to the templates, but that means changing all the templates.
You could also add the contact directly to the templates, but that means changing all the templates.
Re: Email notifications only going to nagiosadmin contact
Also, the host you sent me only appears to have "automation" defined under the contacts:
It also inherits this from the generic-switch template:
And nothing from the switches hostgroup, unless that exists somewhere other than contacts.cfg. So, I can't see anywhere where this particular host should be receiving notifications for nagiosadmin; Just automation.
Code: Select all
define host {
use generic-switch ; Inherit default values from a template
host_name ProCurve202 ; The name we're giving to this switch
alias HP ProCurve 3500-24-PoE in 5th Floor Mens Room
address 156.121.62.202 ; IP address of the switch
parents ProCurveFibre
contacts automation
}
Code: Select all
contacts automation
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Email notifications only going to nagiosadmin contact
And that's the weird thing. Mail only goes to the nagiosadmin contact, even with these settings.
Re: Email notifications only going to nagiosadmin contact
Well I already had that automation contact in one of the templates but still any notifications only go to nagiosadmin.dwhitfield wrote:There are a few ways to solve this, but probably the easiest is to add automation (and whoever else) to the admins contract group in contacts.cfg.
You could also add the contact directly to the templates, but that means changing all the templates.
Re: Email notifications only going to nagiosadmin contact
Can you do a service nagios restart and send over the contents of your objects.cache file? It's typically (but not always) found here:
Code: Select all
/usr/local/nagios/var/objects.cache
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Email notifications only going to nagiosadmin contact
I've already PM'd that to dwhitfield. Do you still want it again?