[Nagios-users] number of notifications
All, Is there anyway to control the total number of notification that nagios sends for hosts or services? I did not see any indication of such parameter in object definition documentation. Please advise on this. Thanks -- Cordially, Shadhin Rahman -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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
[Nagios-users] Number of Notifications!?
Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of host template to use host_name STSSTOSIG alias STSSTOSIG address 111.111.111.111 check_command check-host-alive max_check_attempts 10 notification_interval 0 notification_period 24x7 notification_options d,u,r, notifications_enabled 1 contact_groups admins } define service {use generic-service ; check_ping host_name STSSTOSIG service_description PING is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 contact_groups oas-hd,admins notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1check_command check_ping!100.0,20%!500.0,60% } This is what i have in my minimal:) Something should be wrong...or? Thanks Lelle __\/__ . / ^ ^ \ . |\| (o)(o) |/| #-.OOOoO0oOOO.---# # Lennart Kvam # # Softronic AB, Ringvägen 100, 118 60 Stockholm ## Tel: 0708-813279 Vx:08-51909000 # # [
[Nagios-users] number of notifications?
Hi all Where do i set the number of email-notifications when a service is critical? I keep getting one email every second minute!? Heres some of my config! minimal.cfg define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of host template to use host_name arnwin0136 alias arnwin0136 address 192.168.103.10 check_command check-host-alive max_check_attempts 10 notification_interval 960 notification_period 24x7 notification_options d,u,r, notifications_enabled 1 contact_groups admins } define service {use generic-service ; check_disk_smb host_name arnwin0136 service_description C-Disk is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 contact_groups admins,jour notification_interval 960 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 check_command check_disk_smb!nagios!$USER10$!$USER11$ } Thanks Lennart ** Lennart Kvam Softronic AB, Ringvägen 100, 118 60 Stockholm Tel: 0708-813279 Vx:08-51909000 [EMAIL PROTECTED] **
Re: [Nagios-users] number of notifications
2009/8/26 shadih rahman : > All, > Is there anyway to control the total number of notification that nagios > sends for hosts or services? I did not see any indication of such parameter > in object definition documentation. Please advise on this. Thanks You can achieve this using escalations. http://nagios.sourceforge.net/docs/3_0/escalations.html hth, Jim -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Number of Notifications!?
go and look in your nagios.cfg file for which config files it's actually using, I don't think most people use minimal, but you won't know until you look there. then find the service definition and change line notification_interval 0 to notification_interval 60 to have it email you once an hour when a service is down (assuming you haven't changed the default interval length in nagios.cfg) That should sort it [EMAIL PROTECTED] wrote: Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of host template to use host_name STSSTOSIG alias STSSTOSIG address 111.111.111.111 check_command check-host-alive max_check_attempts 10 notification_interval 0 notification_period 24x7 notification_options d,u,r, notifications_enabled 1 contact_groups admins } define service { use generic-service ; check_ping host_name STSSTOSIG service_description PING is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 contact_groups oas-hd,admins notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 check_command check_ping!100.0,20%!500.0,60% } This is what i have in my minimal:) Somet
Re: [Nagios-users] Number of Notifications!?
Title: Nachricht Are you sure your service isn´t flapping? have you checked the event-log? Greetz,Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: [EMAIL PROTECTED] -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED]Gesendet: Donnerstag, 31. August 2006 13:02An: nagios-users@lists.sourceforge.netBetreff: [Nagios-users] Number of Notifications!? Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of host template to use host_name STSSTOSIG alias STSSTOSIG address 111.111.111.111 check_command check-host-alive max_check_attempts 10 notification_interval 0 notification_period 24x7 notification_options d,u,r, notifications_enabled 1 contact_groups admins } define service {use generic-service ; check_ping host_name STSSTOSIG service_description PING is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 proc
Re: [Nagios-users] Number of Notifications!?
Hi! thanks for a fast answer! Here are the configfiles i`m using # Plugin commands (service and host check commands)# Arguments are likely to change between different releases of the# plugins, so you should use the same config file provided with the# plugin release rather than the one provided with Nagios.cfg_file=/usr/local/nagios/etc/checkcommands.cfg # Misc commands (notification and event handler commands, etc)cfg_file=/usr/local/nagios/etc/misccommands.cfg # You can split other types of object definitions across several# config files if you wish (as done here), or keep them all in a# single config file. cfg_file=/usr/local/nagios/etc/minimal.cfgcfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/contactgroups.cfg#cfg_file=/usr/local/nagios/etc/contacts.cfg#cfg_file=/usr/local/nagios/etc/dependencies.cfg#cfg_file=/usr/local/nagios/etc/hostgroups.cfg#cfg_file=/usr/local/nagios/etc/hosts.cfg#cfg_file=/usr/local/nagios/etc/services.cfg#cfg_file=/usr/local/nagios/etc/timeperiods.cfg # Extended host/service info definitions are now stored along with# other object definitions:cfg_file=/usr/local/nagios/etc/hostextinfo.cfgcfg_file=/usr/local/nagios/etc/serviceextinfo.cfg I will try this nowi`ll let you know if it works:) Thanks Lelle Från: Hari Sekhon [mailto:[EMAIL PROTECTED] Skickat: den 31 augusti 2006 13:06Till: Kvam LennartKopia: nagios-users@lists.sourceforge.netÄmne: Re: [Nagios-users] Number of Notifications!? go and look in your nagios.cfg file for which config files it's actually using, I don't think most people use minimal, but you won't know until you look there.then find the service definition and change line notification_interval 0to notification_interval 60to have it email you once an hour when a service is down (assuming you haven't changed the default interval length in nagios.cfg)That should sort it[EMAIL PROTECTED] wrote: Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of
Re: [Nagios-users] Number of Notifications!?
no, that did not work:( Now i get mail every 4:th minute:) I only want one... someone ? Regards Lelle Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För [EMAIL PROTECTED]Skickat: den 31 augusti 2006 13:38Till: [EMAIL PROTECTED]Kopia: nagios-users@lists.sourceforge.netÄmne: Re: [Nagios-users] Number of Notifications!? Hi! thanks for a fast answer! Here are the configfiles i`m using # Plugin commands (service and host check commands)# Arguments are likely to change between different releases of the# plugins, so you should use the same config file provided with the# plugin release rather than the one provided with Nagios.cfg_file=/usr/local/nagios/etc/checkcommands.cfg # Misc commands (notification and event handler commands, etc)cfg_file=/usr/local/nagios/etc/misccommands.cfg # You can split other types of object definitions across several# config files if you wish (as done here), or keep them all in a# single config file. cfg_file=/usr/local/nagios/etc/minimal.cfgcfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/contactgroups.cfg#cfg_file=/usr/local/nagios/etc/contacts.cfg#cfg_file=/usr/local/nagios/etc/dependencies.cfg#cfg_file=/usr/local/nagios/etc/hostgroups.cfg#cfg_file=/usr/local/nagios/etc/hosts.cfg#cfg_file=/usr/local/nagios/etc/services.cfg#cfg_file=/usr/local/nagios/etc/timeperiods.cfg # Extended host/service info definitions are now stored along with# other object definitions:cfg_file=/usr/local/nagios/etc/hostextinfo.cfgcfg_file=/usr/local/nagios/etc/serviceextinfo.cfg I will try this nowi`ll let you know if it works:) Thanks Lelle Från: Hari Sekhon [mailto:[EMAIL PROTECTED] Skickat: den 31 augusti 2006 13:06Till: Kvam LennartKopia: nagios-users@lists.sourceforge.netÄmne: Re: [Nagios-users] Number of Notifications!? go and look in your nagios.cfg file for which config files it's actually using, I don't think most people use minimal, but you won't know until you look there.then find the service definition and change line notification_interval 0to notification_interval 60to have it email you once an hour when a service is down (assuming you haven't changed the default interval length in nagios.cfg)That should sort it[EMAIL PROTECTED] wrote: Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_infor
Re: [Nagios-users] Number of Notifications!?
[EMAIL PROTECTED] wrote: no, that did not work:( Now i get mail every 4:th minute:) I only want one... someone ? Regards Lelle Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] För [EMAIL PROTECTED] Skickat: den 31 augusti 2006 13:38 Till: [EMAIL PROTECTED] Kopia: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] Number of Notifications!? Hi! thanks for a fast answer! Here are the configfiles i`m using # Plugin commands (service and host check commands) # Arguments are likely to change between different releases of the # plugins, so you should use the same config file provided with the # plugin release rather than the one provided with Nagios. cfg_file=/usr/local/nagios/etc/checkcommands.cfg # Misc commands (notification and event handler commands, etc) cfg_file=/usr/local/nagios/etc/misccommands.cfg # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. cfg_file=/usr/local/nagios/etc/minimal.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/contactgroups.cfg #cfg_file=/usr/local/nagios/etc/contacts.cfg #cfg_file=/usr/local/nagios/etc/dependencies.cfg #cfg_file=/usr/local/nagios/etc/hostgroups.cfg #cfg_file=/usr/local/nagios/etc/hosts.cfg #cfg_file=/usr/local/nagios/etc/services.cfg #cfg_file=/usr/local/nagios/etc/timeperiods.cfg # Extended host/service info definitions are now stored along with # other object definitions: cfg_file=/usr/local/nagios/etc/hostextinfo.cfg cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg I will try this nowi`ll let you know if it works:) Thanks Lelle Från: Hari Sekhon [mailto:[EMAIL PROTECTED]] Skickat: den 31 augusti 2006 13:06 Till: Kvam Lennart Kopia: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] Number of Notifications!? go and look in your nagios.cfg file for which config files it's actually using, I don't think most people use minimal, but you won't know until you look there. then find the service definition and change line notification_interval 0 to notification_interval 60 to have it email you once an hour when a service is down (assuming you haven't changed the default interval length in nagios.cfg) That should sort it [EMAIL PROTECTED] wrote: Hello all Nagios gurus! I have a irritating problem, when a service goes down/critical i get a notification every second minute! Thats irritating:) I`w also read the docs on notifications but still ì havent solved it! Can anyone help me please?:) Here are som of my config: snip Nagios.cfg: command_check_interval=-1 log_notifications=1 interval_length=60 enable_notifications=1 status_update_interval=15 Minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonst
Re: [Nagios-users] Number of Notifications!?
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Thursday, August 31, 2006 6:02 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Number of Notifications!? > > Hello all Nagios gurus! > > I have a irritating problem, when a service goes down/critical i get a > notification every second minute! Thats irritating:) > > I`w also read the docs on notifications but still ì havent solved it! Can > anyone help me please?:) > Here are som of my config: snip [chop] > define service { > use generic-service ; check_ping > host_name STSSTOSIG > service_description PING > is_volatile 1 Here you're telling nagios to notify for every check received that is not OK. Your normal_check_interval is 1 so you receive a notification every minute when the service is not OK. Remove this line or set it to 0. http://nagios.sourceforge.net/docs/2_0/volatileservices.html -- Marc - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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] Number of Notifications!?
Thanks Marc...works like charm now:-) //Lelle -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Marc Powell Skickat: den 31 augusti 2006 20:57 Till: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] Number of Notifications!? > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Thursday, August 31, 2006 6:02 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Number of Notifications!? > > Hello all Nagios gurus! > > I have a irritating problem, when a service goes down/critical i get a > notification every second minute! Thats irritating:) > > I`w also read the docs on notifications but still ì havent solved it! > Can anyone help me please?:) Here are som of my config: snip [chop] > define service { > use generic-service ; check_ping > host_name STSSTOSIG > service_description PING > is_volatile 1 Here you're telling nagios to notify for every check received that is not OK. Your normal_check_interval is 1 so you receive a notification every minute when the service is not OK. Remove this line or set it to 0. http://nagios.sourceforge.net/docs/2_0/volatileservices.html -- Marc - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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] number of notifications?
Hello,the period is defined by notification_interval 960, you can try to put 0 if you want to be alert only one time.I used to not get notifications for Warning so i have notification_options u,c,r instead of notification_options w,u,c,r2006/2/15, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: Hi all Where do i set the number of email-notifications when a service is critical? I keep getting one email every second minute!? Heres some of my config! minimal.cfg define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host ; Name of host template to use host_name arnwin0136 alias arnwin0136 address 192.168.103.10 check_command check-host-alive max_check_attempts 10 notification_interval 960 notification_period 24x7 notification_options d,u,r, notifications_enabled 1 contact_groups admins } define service {use generic-service ; check_disk_smb host_name arnwin0136 service_description C-Disk is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 contact_groups admins,jour notification_interval 960 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 check_command check_disk_smb!nagios!$USER10$!$USER11$ } Thanks Lennart ** Lennart Kvam Softronic AB, Ringv�gen 100, 118 60 Stockholm Tel: 0708-813279 Vx:08-51909000 [EMAIL PROTECTED] ** -- Le bon sens est la chose du monde la mieux partagée.
Re: [Nagios-users] number of notifications?
The configuration you need to look in is in the escalations.cfg file define serviceescalation{ host_name foo.bar service_description check_http *first_notification 1 **last_notification 60 notification_interval 10 contact_groups Myself escalation_period 24x7 escalation_options w,u,c,r } * tells the system when to start sending you notifications - this one says - send after the first test cycle . ** this tell the system to keep sending notifications until it reaches this number of notifications/test cycles on that host/service Assaf [EMAIL PROTECTED] wrote: Hi all Where do i set the number of email-notifications when a service is critical? I keep getting one email every second minute!? Heres some of my config! minimal.cfg define host{ namegeneric-host; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ namegeneric-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define host{ use generic-host; Name of host template to use host_name arnwin0136 alias arnwin0136 address 192.168.103.10 check_command check-host-alive max_check_attempts 10 notification_interval 960 notification_period 24x7 notification_optionsd,u,r, notifications_enabled 1 contact_groups admins } define service { use generic-service; check_disk_smb host_name arnwin0136 service_description C-Disk is_volatile 1 max_check_attempts 5 normal_check_interval 2 retry_check_interval1 active_checks_enabled 1 passive_checks_enabled 1 check_period24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 420 event_handler_enabled 1 low_flap_threshold 0 high_flap_threshold 0 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information0 contact_groups admins,jour notification_interval 960 notification_period 24x7 notification_optionsw,u,c,r notifications_enabled 1 register1 check_command check_disk_smb!nagios!$USER10$!$USER11$ } Thanks Lennart *Lennart Kvam* Softronic AB, Ringvägen 100, 118 60 Stockholm Tel: 0708-81327