Setting up notifications for switches
Posted: Fri Dec 06, 2019 6:04 pm
Hello,
I have added a few switches to Nagios and I am having it monitor uptime and pinging it. It is working but the question I have is when I turn off the switch it does send me a email but where is that configured?
I have servers setup and have the contacts I have added to the contacts.cfg then in the ncpa.cfg I have contacts and contact_groups. I don't see and reference to the switches in the contacts.cfg file. And in the switch.cfg file i have a HOST GROUP DEFINITIONS setup as:
So Under my contacts.cfg I have it setup to get phone calls if certain servers go down and email if I get warning on disk space etc. I am trying to set this up for the switches so if they go down I would like to use the same contact group I use for phone calls. When I add the switches host group name to the contacts file under the group for calling I get this error:
I am not sure how to setup the contacts for switches?
I have added a few switches to Nagios and I am having it monitor uptime and pinging it. It is working but the question I have is when I turn off the switch it does send me a email but where is that configured?
I have servers setup and have the contacts I have added to the contacts.cfg then in the ncpa.cfg I have contacts and contact_groups. I don't see and reference to the switches in the contacts.cfg file. And in the switch.cfg file i have a HOST GROUP DEFINITIONS setup as:
Code: Select all
define hostgroup{
hostgroup_name switches ; The name of the hostgroup
alias Network_Switches ; Long name of the group
}Code: Select all
Error: Could not find any contact matching 'switches' (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 114)
Error: Failed to expand contacts for contactgroup 'calls' (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting at line 114)
Error processing object config files!