В вашем Contact.cfg создайте 2 группы:
define contactgroup{
contactgroup_name alert_Email
service_notification_commands notify-service-by-email
alias Alert temrerature group
members user1, user2
}
define contactgroup{
contactgroup_name alert_Email_SMS
service_notification_commands notify-service-by-email,notify-service-by-sms
alias Alert temrerature group
members user1, user2
}
А в вашем хосте conf (или шаблон зависит от того, как вы настроили nagios) просто поместите правильную группу ex:
define service{
use generic-service ; Name of service template to use
host_name BladeCenter_test
service_description SSH
check_command check_ssh
contact_groups alert_Email
}
define service{
use generic-service ; Name of service template to use
host_name BladeCenter
service_description SSH
check_command check_ssh
contact_groups alert_Email_SMS
}