All,
I’m new to Nagios so please bear with me. I have a specific mailing address that I want a certain group of servers to alert to, but the alerts are going to the wrong mailing address.
my contacts.cfg file is configured as follows:
**define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generi
c-contact template (defined above)
alias Nagios Admin ; Full name of user
email [[email protected]](mailto:[email protected]) ; <<***** CHANGE THIS TO YOUR EMAIL
ADDRESS ******
}
define contact{
contact_name cacssupport ; Short name of user
use generic-contact ; Inherit default values from generi
c-contact template (defined above)
alias CACS Support ; Full name of user
email [[email protected]](mailto:[email protected]) ; <<***** CHANGE THIS TO YOUR EMAIL
ADDRESS ******
}
define contact{
contact_name system.dbalerts ; Short name of user
use generic-contact ; Inherit default values from generi
c-contact template (defined above)
alias DB Alerts ; Full name of user
email [[email protected]](mailto:[email protected]) ; <<***** CHANGE THIS TO YOU
R EMAIL ADDRESS ******
}
define contact{
contact_name netc.alerts ; Short name of user
use generic-contact ; Inherit default values from generi
c-contact template (defined above)
alias Netcredit Alerts ; Full name of user
email [[email protected]](mailto:[email protected]) ; <<***** CHANGE THIS TO YOUR EMAIL
ADDRESS ******
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
define contactgroup{
contactgroup_name cacs_ops
alias CACS Operators
members cacssupport
}
define contactgroup{
contactgroup_name dba
alias Oracle Operators
members system.dbalerts
}
define contactgroup{
contactgroup_name netcredit
alias Netcredit Operators
members netc.alerts
}
From above, anything in my server group that is to alert to the “netcredit” group goes to (I’m assuming) the defualt “dtvalerts” group. The other 2 mailing lists work perfectly fine. Below is an example of one of my server.cfg files with the mailing group specified.
define host{
use windows-server ; Inherit default values from a template
host_name netcwls1
alias netcwls1
address 192.168.x.x
contact_groups netcredit
}
Can anyone explain to me why this isn’t working or what I’m missing? Any assistance is greatly appreciated!**