Согласно http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact
Для вашего Контакта используйте эту схему Меняйте звездообразные части по вашему желанию. Вам нужен один сервисный контакт для каждого администратора и установите его в качестве контакта в конкретной службе, для которой вы хотите получать электронную почту. (помните: вы можете указать более одного контакта, разделяя их запятыми)
Шаблон без уведомлений:
define contact{
name no-notifications
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands notifications-disabled
service_notification_commands notifications-disabled
host_notification_options n
service_notification_options n
host_notifications_enabled 0
service_notifications_enabled 0
register 0
}
Шаблон для критически важных сервисов:
define contact{
name service-only
host_notification_period **TIMEPERIOD**
service_notification_period **TIMEPERIOD**
host_notification_commands notifications-disabled
service_notification_commands notify-service-by-email
host_notification_options n
service_notification_options c
host_notifications_enabled 0
service_notifications_enabled 1
register 0
}
Ваш блокирующий контакт:
define contact{
contact_name nohost
use no-notifications
}
Ваш сервисный контакт:
define contact{
contact_name **Admin Name**
use service-only
}
Ваша конфигурация хоста:
define host{
use host-template-linux
host_name Bezeqint2
hostgroups **if you have any**
address **the IP**
contacts nohost
}
Ваша конфигурация сервиса
define service {
use generic-service ; defined in templates
host_name Bezeqint2
service_description VI
check_command check_http3! -H usabrm.dainfo.com -u /Anti-Aging/Template1/Pages/LoginPageBRM.aspx -s "txtUserName"
contacts **Admin Name**
}
person
Yunalescar
schedule
02.12.2013