Re: [Nagios-users] Notifications question
On 11/02/2012 12:53 PM, Bruno Martins wrote: Ok, I see that nothing appears on the log file. Now, why? The command is the same for both services. Remove environment macros and get rid of SERVICEGROUP_NAMES and SERVICEGROUP_MEMBERS macros in the output. Also grep for 'Warning: ' in nagios.log. I have Nagios embedded perl disabled. From: Bruno Martins Sent: sexta-feira, 2 de Novembro de 2012 09:48 To: Nagios Users List Subject: RE: [Nagios-users] Notifications question 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.ran...@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.mart...@gruporumos.commailto:bruno.mart...@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_enabled1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period24x7 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 u...@domain.commailto:u...@domain.com register1 } This contact is part of WISESRV-critical group. This host is sending out notifications: define host { host_nameFLAGSRV_imagina alias DC da Flag address x.y.z.q parentsRUMOSRD_rlxfw01-rumos useServer register1 } 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
Re: [Nagios-users] Notifications question
Hi, I have changed enable_environment_macros variable to 0 with no luck. I have also cleared all services I had on service groups and still no luck. Now I've changed debug level in Nagios to be in Notifications level, and I get this on /var/log/nagios/nagios.debug: [1351859880.332512] [032.0] [pid=15799] ** Service Notification Attempt ** Host: 'RUMOSSRV_flxis01', Service: 'CPU Load', Type: 99, Options: 0, Current State: 0, Last Notification: Thu Jan 1 01:00:00 1970 [1351859880.335799] [032.0] [pid=15799] Notification viability test passed. [1351859880.335845] [032.1] [pid=15799] Current notification number: 0 (unchanged) [1351859880.335884] [032.2] [pid=15799] Creating list of contacts to be notified. [1351859880.335914] [032.1] [pid=15799] Service notification will NOT be escalated. [1351859880.335942] [032.1] [pid=15799] Adding normal contacts for service to notification list. [1351859880.335968] [032.2] [pid=15799] Adding members of contact group 'WISESRV-critical' for service to notification list. [1351859880.336003] [032.2] [pid=15799] ** Checking service notification viability for contact 'helpdesk'... [1351859880.350829] [032.2] [pid=15799] Adding contact 'helpdesk' to notification list. [1351859880.353521] [032.2] [pid=15799] ** Notifying contact 'helpdesk' [1351859880.353595] [032.2] [pid=15799] Raw notification command: my notification command [1351859880.353730] [032.2] [pid=15799] Processed notification command: my notification command [1351859880.555686] [032.0] [pid=15799] 1 contacts were notified. And I get this on the /var/log/Nagios/Nagios.log: [1351859880] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;RUMOSSRV_flxis01;CPU Load;0;Helpdesk User;teste [1351859880] SERVICE NOTIFICATION: helpdesk;RUMOSSRV_flxis01;CPU Load;CUSTOM (OK);notify-by-email;CPU Load 2% (5 min average);Helpdesk User;teste Best regards, Bruno Martins -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: sexta-feira, 2 de Novembro de 2012 12:16 To: Nagios Users List Cc: Bruno Martins Subject: Re: [Nagios-users] Notifications question On 11/02/2012 12:53 PM, Bruno Martins wrote: Ok, I see that nothing appears on the log file. Now, why? The command is the same for both services. Remove environment macros and get rid of SERVICEGROUP_NAMES and SERVICEGROUP_MEMBERS macros in the output. Also grep for 'Warning: ' in nagios.log. -- 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 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Notifications question
Whats the corresponding maillog output? On Nov 1, 2012 12:13 AM, Bruno Martins bruno.mart...@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_enabled1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period24x7 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 emailu...@domain.com** ** register1 } ** ** This contact is part of WISESRV-critical group. ** ** This host is sending out notifications: define host { host_nameFLAGSRV_imagina alias DC da Flag address x.y.z.q parents RUMOSRD_rlxfw01-rumos useServer register1 } *** * ** ** 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_enabled1 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_enabled1 notification_interval 60 notification_period 24x7** ** notification_options d,r notifications_enabled1 register 0 } ** ** …and this is also using another host template: define host { name advance8x5-host use generic-host event_handler_enabled1 contacts helpdesk notification_interval 60
[Nagios-users] NOTIFICATIONS - Question...
Good Morning all, I have a question about notification setup. I have few devices that are defined with enable_notification set to 0. However, we have a weekly maintenance period where the SE will disable notifications by groups.. When they re-enable notifications, it appears that even the ones that I have set to disable notification send out notifications... Is this the way the software is designed to work? Am I doing somethign wrong? is there a way to keep these devices from sending notifications? thanks. Luis - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] NOTIFICATIONS - Question...
On Aug 28, 2008, at 9:06 AM, Luis Fernando Lacayo wrote: Good Morning all, I have a question about notification setup. I have few devices that are defined with enable_notification set to 0. However, we have a weekly maintenance period where the SE will disable notifications by groups.. When they re-enable notifications, it appears that even the ones that I have set to disable notification send out notifications... Is this the way the software is designed to work? Am I doing somethign wrong? is there a way to keep these devices from sending notifications? Yes, that's by design. Changes made through the GUI/external commands intentionally override config file settings. There's no way to prevent that from happening that I am aware of short of disabling external commands entirely. If you don't use state retention, specifically retain_nonstatus_information, then a reload/restart of nagios will reset all values to their config defaults. If you do retain_nonstatus_information then nagios will remember the new setting even across restarts. A better solution might be to create a notification period that excludes your maintenance windows so that the SE doesn't need to manually disable notifications. -- Marc - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] NOTIFICATIONS - Question...
On 28-Aug-2008, at 10:36 , Marc Powell wrote: A better solution might be to create a notification period that excludes your maintenance windows so that the SE doesn't need to manually disable notifications. Alternatively, if your maintenance windows don't happen at predictable times (or don't run for a consistent length every time) the SE could use the Schedule Downtime command for affected devices, rather than manually disabling notifications. PGP.sig Description: This is a digitally signed message part - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Nagios-users mailing list Nagios-users@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