Notifications question

Bruno Martins bruno.martins at gruporumos.com
Fri Nov 2 10:47:53 CET 2012


Hi,

There is no entry in maillog because I'm not using the default Linux mail client, but a perl script called sendEmail.pl.
I'm going to raise logging level to see if there's anything wrong.

By the way, I've checked and even two services from the same host (using the same template) are giving me problems, since one service notifies me, but the other doesn't.

I'm testing with custom notifications, but happens the same when I do passive checks to automatically generate notifications.

Best regards,

Bruno Martins

From: Ranjib Dey [mailto:dey.ranjib at gmail.com]
Sent: quarta-feira, 31 de Outubro de 2012 19:09
To: Nagios Users List
Subject: Re: [Nagios-users] Notifications question


Whats the corresponding maillog output?
On Nov 1, 2012 12:13 AM, "Bruno Martins" <bruno.martins at gruporumos.com<mailto:bruno.martins at gruporumos.com>> wrote:
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<mailto: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

------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20121102/1b9c5a41/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
-------------- 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