is it possible to set an default contact_group in hostsgroup and modify (redefine) this contact_group later in the service. Or by another way.
Background: We use nagios to monitor near 100 Hosts and near 1000 services. For easy configuration we defined hostgroups with default checks and default contactgroups. But there are more and more services on special server that must have other contactgroups.
Config-Example that shows what we want, but it doesn't work... (Last Part - Redefine)
####################
## HOST GROUP
####################
define hostgroup{
hostgroup_name WINDOWS
alias Windows Server
}
####################
## SERVICE
####################
define service{
use generic-service
name RDP-CHECK-TCP-PORT
hostgroup_name WINDOWS
service_description RDP - Check TCP Port
check_command check_rdp
contact_groups Admin_Alarm
}
define service{
use generic-service
name DF-CHECK
hostgroup_name WINDOWS
service_description HD - Disk free
check_command check_df_win
contact_groups Admin_Alarm
}
####################
## HOST
####################
define host{
use generic-urgent-host
host_name server1
hostgroups WINDOWS
alias Server1
address 1.2.3.1
}
define host{
use generic-urgent-host
host_name server2
hostgroups WINDOWS
alias Server2
address 1.2.3.2
}
define host{
use generic-urgent-host
host_name server3
hostgroups WINDOWS
alias Server3
address 1.2.3.3
}
####################
## Redefine Contactgroups
####################
define service{
host server1
service_description RDP - Check TCP Port
contact_groups No_Alarm
}
define service{
host server2
service_description RDP - Check TCP Port
contact_groups Urgent_Admin_SMS_Alarm, Customer_Admin_Alarm
}