Notifications question

Bruno Martins bruno.martins at gruporumos.com
Wed Oct 31 19:10:12 CET 2012


Hello list,

I have a server running Nagios 3.4.1 under CentOS 6.3 and I have spent some hours trying to find why some (but not all) service notifications simply don't get to my mailbox, even though they appear in nagios.log file.

This is my contact definition:
define contact {
                contact_name                                  helpdesk
                alias                                      Helpdesk User
                host_notifications_enabled        1
                service_notifications_enabled  1
                host_notification_period             24x7
                service_notification_period        24x7
                host_notification_options           d,r
                service_notification_options      w,c,r
                host_notification_commands                   host-notify-by-email
                service_notification_commands               notify-by-email
                can_submit_commands               1
                email                                    user at domain.com
                register                                1
                }

This contact is part of WISESRV-critical group.

This host is sending out notifications:
define host {
                host_name                        FLAGSRV_imagina
                alias                                      DC da Flag
                address                               x.y.z.q
                parents                                RUMOSRD_rlxfw01-rumos
                use                                        Server
                register                                1
}

And this host is not:
define host {
                host_name                                                 RUMOSSRV_rlxfs01
                alias                                                               Servidor de partilha de ficheiros
                address                                                        x.y.z.q
                parents                                                        RUMOSRD_FLXSWCORE01
                check_command                                     check-host-alive
                use                                                                Server
                contact_groups                                        WISESRV-critical
                notes                                                            rlxfs01
                icon_image_alt                                         rlxfs01
                vrml_image                                                FileServer.png
                register                                                        1
}
And this is the host template used by both hosts:
define host {
                name                                                            Server
                alias                                                               Server Template
                check_command                                     check-host-alive
                use                                                                advance24x7-host
                max_check_attempts                             5
                contact_groups                                        WISESRV-critical
                notification_interval                               60
                notification_period                                 24x7
                notification_options                               d,u,r
                notifications_enabled                            1
                icon_image                                                 FileServer.png
                vrml_image                                                FileServer.png
                statusmap_image                                    FileServer.png
                register                                                        0
}

This host template uses other host templates, as the 'use' parameter states.
define host {
                name                                                            advance24x7-host
                use                                                                generic-host
                event_handler_enabled                        1
                notification_interval                               60
                notification_period                                 24x7
                notification_options                               d,r
                notifications_enabled                            1
                register                                                        0
}

...and  this is also using another host template:
define host {
                name                                                            advance8x5-host
                use                                                                generic-host
                event_handler_enabled                        1
                contacts                                                      helpdesk
                notification_interval                               60
                notification_period                                 8x5
                notification_options                               d,r
                notifications_enabled                            1
                register                                                        0
}

Regarding to services, I have this two set:
define service {
                #NAGIOSQL_CONFIG_NAME              FLAGSRV_imagina
                host_name                                                 FLAGSRV_imagina
                service_description                                 PING
                use                                                                service-WISESRV
                check_command                                     check_ping!100.0,20%!500.0,60%
                register                                                        1
}

define service {
                #NAGIOSQL_CONFIG_NAME              RUMOSSRV_rlxfs01
                host_name                                                 RUMOSSRV_rlxfs01
                service_description                                 Disk Space Usage
                use                                                                service-WISESRV
                check_command                                     check_nt_disk!secret!C!95!99
                contact_groups                                        WISESRV-critical
                register                                                        1
}

Using this service templates:
define service {
                name                                                            service-WISESRV
                service_description                                 Template de servicos
                use                                                                advance24x7-service
                max_check_attempts                             3
                check_interval                                           3
                retry_interval                                            1
                notification_interval                               45
                notification_period                                 24x7
                notification_options                               w,c,r
                notifications_enabled                            1
                contact_groups                                        WISESRV-critical
                register                                                        0
}

define service {
                name                                                            advance24x7-service
                use                                                                generic-service
                max_check_attempts                             5
                check_interval                                           5
                retry_interval                                            1
                check_period                                             24x7
                notification_interval                               60
                notification_period                                 24x7
                notification_options                               w,c,r
                notifications_enabled                            1
                contact_groups                                        WISESRV-critical
                stalking_options                                      w,c
                register                                                        0
}

define service {
                name                                                            generic-service
                is_volatile                                                    0
                max_check_attempts                             5
                check_interval                                           60
                retry_interval                                            15
                active_checks_enabled                          1
                passive_checks_enabled                       1
                check_period                                             none
                parallelize_check                                      1
                obsess_over_service                              1
                check_freshness                                      0
                event_handler_enabled                        1
                flap_detection_enabled                        1
                process_perf_data                                  1
                retain_status_information                   1
                retain_nonstatus_information           1
                notification_interval                               60
                notification_period                                 none
                notification_options                               w,u,c,r
                notifications_enabled                            1
                contact_groups                                        admins
                stalking_options                                      o,w,u,c
                failure_prediction_enabled                  1
                register                                                        0
}

Can you please point me in the right direction? Am I misreading something?

And sorry for the long post. I should have used some web "pasting" tool. Just remembered. :)

Best regards,

Bruno Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20121031/8ee2b6d6/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list