Страница 1 из 1

nagios, notifications

Добавлено: 2013-11-12 9:51:50
dmtr
непонятно почему не работают для некоторых сервисов notifications.
например два сервиса:

Код: Выделить всё

define service{                                                                                                                             
        use                             generic-service         ; Name of service template to use                                           
        host_name                       StatsServer1                                                                                        
        service_description             Module HadoopReportsRunner                                                                          
        check_command                   check_nrpe!check_HadoopReportsRunner                                                                
        contact_groups                  admins                                                                                              
        }

define service{                                                                                                                             
        use                             generic-service         ; Name of service template to use                                           
        host_name                       AdReplacer1                                                                                         
        service_description             Nginx_error                                                                                         
        check_command                   check_nrpe!check_nginx_crit                                                                         
        contact_groups                  admins                                                                                              
        }
Для первого письма приходят (в nagios.log пишется и SERVICE ALERT и SERVICE NOTIFICATION), для второго нет (в nagios.log пишется только SERVICE ALERT ). В status.dat

Код: Выделить всё

notifications_enabled=1
Для второго сервиса отключал-включал notifications в веб-морде. С этим не связано?

Куда копать?

Re: nagios, notifications

Добавлено: 2013-11-12 11:03:00
dmtr
руками из веб-морды уведомление отправляется

Re: nagios, notifications

Добавлено: 2013-11-13 8:46:43
dmtr
нашел. дело в State Type - http://nagios.sourceforge.net/docs/3_0/statetypes.html