Re: [Nagios-users] Notifications
On 1/3/2013 6:31 AM, Keith Edmunds wrote: In case it isn't clear: imagine three servers, alpha, bravo and charlie. Alpha and bravo are in the AB hostgroup; all three servers run Apache. If Nagios detects a problem with Apache on any of the servers, it should notify the apache-contact-group. If the problem is on alpha or bravo, it should also notify the ab-contact-group; however, if the problem is on charlie, the ab-contact-group should not be notified. Can Nagios do this? Nagios is very flexible in this regard. If your Apache service check definition contains a directive like contact_groups apache-contact-group, try changing it to contact_groups +apache-contact-group instead. This signals Nagios to add the services's contact groups to the ones the service inherits from the host, rather than replace them. See Implied Inheritance and Additive Inheritance here: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ 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
Keith Edmunds wrote: Aim: to have any service or host notifications on a defined subset of hosts be sent to a specific contact group. Using host groups, we are able to send notifications of host problems to a specific contact group. We want to send notifications of service problems on those hosts to the same contact group. There doesn't seem to be a way to specify the contact group to notify for service problems according to the host group that the affected server belongs to. In case it isn't clear: imagine three servers, alpha, bravo and charlie. Alpha and bravo are in the AB hostgroup; all three servers run Apache. If Nagios detects a problem with Apache on any of the servers, it should notify the apache-contact-group. If the problem is on alpha or bravo, it should also notify the ab-contact-group; however, if the problem is on charlie, the ab-contact-group should not be notified. Can Nagios do this? Thanks, Keith Take a look at Nagios Business Process Intelligence (BPI). It might be what you need: http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-%28BPI%29/details It lets you define a service that is an aggregate of any combination of hosts and services that you define. All I think you would need to do then is define the appropriate contact for the aggregate services that you specify. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ 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 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
Re: [Nagios-users] notifications
C. Bensend benny at bennyvision.com writes: I am using Nagios 3.3.1 I have got notifications by SMS working now Is there a way of defining what notifications go to email, what go to SMS and what can go to both. I personally would also find it interesting for SMS alerts only to notify a critical state *once* (even if emails are sent repeatedly due to notification_interval greater than 0). The SMS notifications obviously should include a recovery message. Not sure how to do this without setting up two completely separate service checks... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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
Marki, I use the following host and service escalations to do exactly that. It makes the first notification a text and email and subsequent problem alerts email only, then an email and SMS for recovery Don't know if it's the right way to do it but it works fine for me define hostescalation{ host_nameABC first_notification 1 last_notification 4 notification_interval 20 contact_groups Website Email escalation_options d,r } define hostescalation{ host_nameABC first_notification 1 last_notification 1 notification_interval 20 contact_groups Website sms escalation_options d } define hostescalation{ host_nameABC first_notification 1 last_notification 4 notification_interval 20 contact_groups Website sms escalation_options r } define hostescalation{ host_nameABC first_notification 5 last_notification 0 notification_interval 0 contact_groups Website Email escalation_options d,r } define hostescalation{ host_nameABC first_notification 5 last_notification 0 notification_interval 0 contact_groups Website sms escalation_options r } define serviceescalation{ host_nameABC service_descriptionSITE TRAWL first_notification 1 last_notification 4 notification_interval 20 contact_groups Website Email escalation_options c,r } define serviceescalation{ host_nameABC service_descriptionSITE TRAWL first_notification 1 last_notification 1 notification_interval 20 contact_groups Website sms escalation_options c } define serviceescalation{ host_nameABC service_descriptionSITE TRAWL first_notification 1 last_notification 4 notification_interval 20 contact_groups Website sms escalation_options r } define serviceescalation{ host_nameABC service_descriptionSITE TRAWL first_notification 5 last_notification 0 notification_interval 0 contact_groups Website Email escalation_options c,r } define serviceescalation{ host_nameABC service_descriptionSITE TRAWL first_notification 5 last_notification 0 notification_interval 0 contact_groups Website sms escalation_options r } -Original Message- From: Marki [mailto:jm+nagios-us...@roth.lu] Sent: 03 May 2012 16:45 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] notifications C. Bensend benny at bennyvision.com writes: I am using Nagios 3.3.1 I have got notifications by SMS working now Is there a way of defining what notifications go to email, what go to SMS and what can go to both. I personally would also find it interesting for SMS alerts only to notify a critical state *once* (even if emails are sent repeatedly due to notification_interval greater than 0). The SMS notifications obviously should include a recovery message. Not sure how to do this without setting up two completely separate service checks... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list mailto:Nagios-users@lists.sourceforge.net Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users 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 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions
Re: [Nagios-users] notifications
have a try on this: http://exchange.nagios.org/directory/Addons/Notifications/*-Notification-Managers/Rule-2DBased-Notifier/details On Tue, May 1, 2012 at 6:04 PM, Nick Price np...@hotmail.com wrote: I am using Nagios 3.3.1 I have got notifications by SMS working now Is there a way of defining what notifications go to email, what go to SMS and what can go to both. I would like this to apply to escalations as well if possible Regards Nick -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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
I am using Nagios 3.3.1 I have got notifications by SMS working now Is there a way of defining what notifications go to email, what go to SMS and what can go to both. I would like this to apply to escalations as well if possible I create two Nagios contacts for each person at my site, one for email alerts and one for SMS alerts. I then place the appropriate contacts in each contactgroup, according to which type of alert should be sent. Then, for each host/service, I include the appropriate contactgroups. For example, my Exchange servers' CPU services get the exchange-admins-email contactgroup, which only sends email to their contacts. The Exchange servers' database services, however, get the exchange-admins-pagers group, so they get SMS'ed for database problems. Benny -- The problem with quotes on the internet is that it's very hard to verify their authenticity. -- Abraham Lincoln -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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 for Services that are Up
On 9/2/11 7:59 AM, Michael Loiselle wrote: I am currently running Nagios 3.3.1 on Ubuntu 10.04 and everything is working great. I am monitoring 30 Windows servers with NSClient++, and that is working as well. Is it possible to receive a notification for a specific service that is in the up position? In other words, I would like to get a notification every 4 hours, confirming that a service is actually running. If it stops on Friday evening, I do not want to wait until Monday morning to find out it is not running. I would personally rather receive a message every four hours. Notifications are currently set up and working flawlessly, so I just need to know what I need to change in the config files to get this to work. Any help is appreciated. Not entirely sure what you're trying to solve here? Generally it is good if you can get to a place where you trust your monitoring system. It should be telling you if something has broken, but if something continues to run well, the monitoring system should shut up and not bother you. If it stops on Friday evening, you should get an email immediately (or as soon as Nagios notices it...) If by it stops you mean Nagios stops then that's a separate problem - I have a secondary system that ONLY monitors my primary Nagios infrastructure. If the primary system fails, the secondary system emails me - well, pages me, my secondary, all of ProdOps, etc. TL;DR: No easy way to have an OK service automatically email. Nagios makes noise when things are broken, not when they're working. -- Mike Lindsey -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ 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 for Services that are Up
Quoting Mike Lindsey mike-nag...@5dninja.net: On 9/2/11 7:59 AM, Michael Loiselle wrote: I am currently running Nagios 3.3.1 on Ubuntu 10.04 and everything is working great. I am monitoring 30 Windows servers with NSClient++, and that is working as well. Is it possible to receive a notification for a specific service that is in the up position? Just to toss another fly in the ointment, it's dangerous to test a service by examining what Windows thinks it's doing. Many times a service says it's up but is actually dead. It would be more reliable to write a plugin that would actually examine the service to see if it can/is actually working. For example, with a database, you can do a SELECT on a known quantity and compare the result to what it should be. What specific service are you trying to monitor? Terry -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ 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 for Services that are Up
On 2 September 2011 15:59, Michael Loiselle mloise...@chan-nh.org wrote: Is it possible to receive a notification for a specific service that is in the “up” position? If you really must do that, then assuming the check is an active one, then it should be pretty trivial to run the plugin from cron and email you whatever based on the exit code. All that is done completely outside Nagios. -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ 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 configuration problem
On 2011-06-02, at 01:44, Michael Vaknine wrote: I am monitoring some servers on a different site and usuing ADSL line for this. I have problems with the ADSL Each time I get a notification that a server is down and then after 5seconds I get a notification that the server is up again. Is there a way to configure a notification that Nagios will think that it has a problem only if it is persistent more than 5 minutes or so? For this you use max_check_attempts. This tells nagios how many times in a row the check must be in a non-OK state before it sends an alert. Combining max_check_attempts with the two interval settings (check_interval, retry_interval) determines how much time passes while those checks are being done. http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ 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 and Escalations and Notification_intervals, oh my!
On Fri, Nov 19, 2010 at 8:34 PM, Mike Neimoyer m...@summersault.com wrote: Hello, all! I'm trying to understand how notification intervals work when it comes to basic service definitions and serviceescalation definitions. Does Nagios disregard the initial notification_interval of a service definition, once it reaches an escalation, in favor of the escalation's notification_interval? Example: I have a service's notification_interval set to 15, so that once a state change occurs, a notification is sent out, then another after 15 minutes, and another after 15 minutes, etc... With Nagios counting the notifications as they get sent. Now, I want to define an escalation for that service so that on notification number 2 Nagios notifies a different contact_group. I have the notification_interval for the escalation set to 10 minutes. How does the notification_interval work in this instance, where the period is different? Hey Mike, If there is a matching escalation definition that will take precedence over the service definition. In cases where you have conflicting notification_interval values that are all valid, Nagios will use the smallest interval. http://nagios.sourceforge.net/docs/3_0/escalations.html Regards Martin Melin -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 on passive service checks
After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 on passive service checks
Hi all, I noticed the same strange behavior, but I don't think it's the right behavior. Operating in this way, a linkDown trap will be notified only once (in fact the sender device will generate a single trap in response to state change). Is it possibile to modify this behavior? Hall, JC wrote: After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.meniche...@tai.it http://www.tai.it --- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ 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 on passive service checks
Escalations can resolve this - if you set an escalation to trigger at notification 1 and set a re-notify interval in the escalation you will be re-notified at the set interval while the service remains in the configured alarm state. - Max On Tue, Nov 16, 2010 at 4:41 PM, Alberto Menichetti alb.meniche...@tai.it wrote: Hi all, I noticed the same strange behavior, but I don't think it's the right behavior. Operating in this way, a linkDown trap will be notified only once (in fact the sender device will generate a single trap in response to state change). Is it possibile to modify this behavior? Hall, JC wrote: After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.meniche...@tai.it http://www.tai.it --- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 on passive service checks
Just use the built in feature for this: is_volatile. See http://nagios.sourceforge.net/docs/2_0/volatileservices.html Regards, Martin Melin On Tue, Nov 16, 2010 at 10:41 PM, Alberto Menichetti alb.meniche...@tai.it wrote: Hi all, I noticed the same strange behavior, but I don't think it's the right behavior. Operating in this way, a linkDown trap will be notified only once (in fact the sender device will generate a single trap in response to state change). Is it possibile to modify this behavior? Hall, JC wrote: After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.meniche...@tai.it http://www.tai.it --- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 on passive service checks
In my opinion it'useless in this scenario; the official doc says: Volatile services differ from normal services in three important ways. */Each time/ they are checked* when they are in a hard non-OK state, and the check returns a non-OK state (i.e. no state change has occurred)... But in my setup passive services are never checked (they are trap collectors, and my devices send traps on state change). Let's suppose this scenario: 1. interface Gi0/1 on catalyst switch goes down 2. the switch sends a linkDown trap to the manager 3. the manager decodes the event and submits the alert via nagios.cmd 4. the service associated with that switch changes it's state to critical 5. the contacts are notified (the first time) 6. that's all...contacts will never be notified again until a new linkDown trap is processed Martin Melin wrote: Just use the built in feature for this: is_volatile. See http://nagios.sourceforge.net/docs/2_0/volatileservices.html Regards, Martin Melin On Tue, Nov 16, 2010 at 10:41 PM, Alberto Menichetti alb.meniche...@tai.it wrote: Hi all, I noticed the same strange behavior, but I don't think it's the right behavior. Operating in this way, a linkDown trap will be notified only once (in fact the sender device will generate a single trap in response to state change). Is it possibile to modify this behavior? Hall, JC wrote: After some testing, it looks like it will only re-notify after receiving another passive check result. It won't simply re-notify because it's still in a non-ok state after the notification_interval has expired. So to combat this I just used the check freshness attribute to re-execute my external script and feed the passive check result into nagios and thus re-sending a non-ok notification at what would have been the interval for notifications. So technically my external scripts are running at every interval to check the freshnes, not only when it's called for by my event_handler from another active service check... which I'm ok with. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, November 12, 2010 5:00 AM To: Nagios Users List Cc: Hall, JC Subject: Re: [Nagios-users] Notifications on passive service checks On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- TAI S.r.l. Alberto Menichetti Area Mercato - Ingegneria dei Sistemi System Engineer 50141 Firenze - Via Pazzagli, 2 Voice: +39 055 42661 - Fax +39 055 4266356 56125 Pisa - Viale Gramsci, 12 Voice: +39 050 220221 - Fax: +39 050 24421 e-mail: alb.meniche...@tai.it http://www.tai.it --- COMUNICAZIONE AI SENSI LEGGE 196/03 Il presente messaggio di posta elettronica viene inviato al Vostro indirizzo email, che abbiamo acquisito da Vostre Visite, da incontri commerciali, elenchi di pubblico dominio, Vostre precedenti comunicazioni. Il Vostro dato in questione e' in possesso di TAI S.r.l., che lo ha immagazzinato in formato elettronico. Tali informazioni non saranno divulgate a terzi. Se desiderate verificare, cancellare o modificare i dati in nostro possesso, inviate fax al numero 0554266356. -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please
Re: [Nagios-users] Notifications on passive service checks
On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ 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 on passive service checks
Actually , the fact that the check is passive or active is some what irrelevant in this context. The place that will determine the notification policy is you central nagios , and what you defined in your service/host notifications directive . if you also define an escalation for that service - that will kick off the notifications . On 12/11/10 12:00, Andreas Ericsson wrote: On 11/11/2010 11:27 PM, Hall, JC wrote: Is it accurate that Nagios will only send 1 notification for a passive service check? IE, the notification_interval definition for a passively checked service won't instruct Nagios to re-send a notification such as with actively checked services? To be honest, I haven't got the faintest idea. An educated guess is that it will re-send the notification if it receives another passive check-result and enough time has passed though, or that it simply re-sends the notification when enough time has passed. If you try and find out, let me know either way and I'll amend the docs. -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ 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 problem?!?
This is the normal procedure we handle checks (if they are important) - work hours - sms + email - off work hours - email But for this check the customer doesn't want to read emails first in the morning to know if there were issues - he wants a sms if there was a notification over night and if so he will read his emails. That's unfortunately the requirement ... Cheers Joern -Original Message- From: Jim Avery [mailto:j...@jimavery.me.uk] Sent: Wednesday, October 13, 2010 10:33 PM To: Nagios Users List Subject: Re: [Nagios-users] Notifications problem?!? On 13 October 2010 15:42, Gaertner, Joern joern.gaert...@wirecard.com wrote: Hi, I have a nagios check that needs a special kind of notification. The check runs 24/7 but there should only be notifications during business hours (8-18) – so far no problem. But the user wants to also get a notification at the start of the business hours if there was any problem noticed by the check during the non-notification time. Is there an elegant solution of this problem in any of your minds? Cheers Jörn Send the notifications out-of-hours by email. The user will pick up the email when they login in the morning! I'm sorry if that sounds a bit trite, but I've thought the same thing myself in the past and then thought duh! -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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 problem?!?
On 14 October 2010 10:55, Gaertner, Joern joern.gaert...@wirecard.com wrote: This is the normal procedure we handle checks (if they are important) - work hours - sms + email - off work hours - email But for this check the customer doesn't want to read emails first in the morning to know if there were issues - he wants a sms if there was a notification over night and if so he will read his emails. That's unfortunately the requirement ... Some people are just so difficult to please! I don't think there's anything in Nagios itself which will do that for you. I would set up a different notification command which writes all out of hours notifications overnight to a file, then have an ordinary cron job which runs first thing each morning and sends the SMS message (or sends a passive check to Nagios so it can send the message) if there is anything in that file. Alternatively, if you run NDO then you could script a plugin which runs from cron each morning and does a query of the nagios MySQL database to see if there were any notifications out of hours... cheers, Jim -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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 problem?!?
On 13 October 2010 15:42, Gaertner, Joern joern.gaert...@wirecard.com wrote: Hi, I have a nagios check that needs a special kind of notification. The check runs 24/7 but there should only be notifications during business hours (8-18) – so far no problem. But the user wants to also get a notification at the start of the business hours if there was any problem noticed by the check during the non-notification time. Is there an elegant solution of this problem in any of your minds? Cheers Jörn Send the notifications out-of-hours by email. The user will pick up the email when they login in the morning! I'm sorry if that sounds a bit trite, but I've thought the same thing myself in the past and then thought duh! -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ 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 for a passive Nagios check
On 3 March 2010 10:43, wadud.m...@stfc.ac.uk wrote: I have a Nagios passive check which doesn't send out any alerts when it's in a critical status: define service{ name hpcsg-service register 0 max_check_attempts 3 normal_check_interval 30 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled 1 check_period 24x7 check_freshness 0 obsess_over_service 0 notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups hpcsg } define service{ use hpcsg-service name r89-service register 0 contact_groups r89 check_freshness 0 active_checks_enabled 0 passive_checks_enabled 1 notifications_enabled 1 } define service{ use r89-service host_name r89-trap.esc.rl.ac.uk service_description hpd-crac-07 check_command none } define command{ command_name none command_line /bin/true } The GCI shows that the hpd-crac-07 check has notifications enabled, but when I view notifications for this service, it hasn't sent any. We have similar checks in place that do send notifications, but the key difference here is that the above check is a purely passive one, i.e. it only receives check results. Is the service still in a soft state? Notifications are only usually sent when the service goes in to a hard state. If the passive check is only sent once to indicate a critital or warning state, I believe you will need to set max_check_attempts to 1. To make sure your templates are being applied correctly, take a look at what does the service definition looks like in your objects.cache file. hth, Jim -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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 for a passive Nagios check
I've found the fault. It was the max_check_attempts, which I should have set to unity! -Original Message- From: wadud.m...@stfc.ac.uk [mailto:wadud.m...@stfc.ac.uk] Sent: 03 March 2010 10:44 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] notifications for a passive Nagios check I have a Nagios passive check which doesn't send out any alerts when it's in a critical status: define service{ name hpcsg-service register 0 max_check_attempts3 normal_check_interval 30 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled1 check_period 24x7 check_freshness 0 obsess_over_service 0 notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groupshpcsg } define service{ use hpcsg-service name r89-service register 0 contact_groupsr89 check_freshness 0 active_checks_enabled 0 passive_checks_enabled1 notifications_enabled 1 } define service{ use r89-service host_name r89-trap.esc.rl.ac.uk service_description hpd-crac-07 check_command none } define command{ command_namenone command_line/bin/true } The GCI shows that the hpd-crac-07 check has notifications enabled, but when I view notifications for this service, it hasn't sent any. We have similar checks in place that do send notifications, but the key difference here is that the above check is a purely passive one, i.e. it only receives check results. Thanks in advance. Wadud Miah Scientific Computing Systems Support, eScience Rutherford Appleton Laboratory, STFC -- Scanned by iCritical. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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 -- Scanned by iCritical. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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 not being sent
Christopher Tyler wrote: First, thank you all for any help that you can provide. Here is the problem that I am having, I hope someone can help point out something obvious that I have missed. 1) Hosts are being monitored just fine, status map shows red when a host goes down, event log shows alerts like it should. 2) Timeframes are set for 24/7 3) All host and service notifications are enabled 4) email address is correct 5) All hosts services are, at a minimum, set for w,c,u,r 6) If I go to a service or host and click on the link Send custom host notification it will send the notification without forcing it so I know that the timeframes are being read correctly and this also verifies the email address is correct and the mail send is working. 7) The event log doesn't show that it's even trying to send a notification when something alerts. Take the N (do not notify) option out of your contact configs. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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 not being sent on host down/unreachable
On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: My host, service and contacts are defined with the following templates: define host{ namestandard-host max_check_attempts 3 check_interval 15 retry_interval 5 check_command check-host-alive check_period24x7 notifications_enabled 1 retain_status_information 1 retain_nonstatus_information1 contactsops notification_interval 15 notification_period 24x7 check_freshness 1 freshness_threshold 300 register0 } Hello, This is just a template and not a complete host definition. In fact, they were all just templates and missing critical pieces of information or may have parts that are overridden in the full definition. You should post the entire definition for the host, contact group and contact as found in objects.cache. At first glance, you don't specify any notification_options for the host. With Nagios-3, this will mean that all states will result in a notification but under 2.x I believe that behavior is different. I'd go ahead and specify the specific states to you want to receive notifications for. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 not being sent on host down/unreachable
I included the template because the actual host definitions only include the server specific information. I'm not overriding anything. For example... define host{ use standard-host host_name server1 hostgroups +servers alias server1 address server1.domain.com } The same goes for contacts everything else. On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell m...@ena.com wrote: On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: My host, service and contacts are defined with the following templates: define host{ namestandard-host max_check_attempts 3 check_interval 15 retry_interval 5 check_command check-host-alive check_period24x7 notifications_enabled 1 retain_status_information 1 retain_nonstatus_information1 contactsops notification_interval 15 notification_period 24x7 check_freshness 1 freshness_threshold 300 register0 } Hello, This is just a template and not a complete host definition. In fact, they were all just templates and missing critical pieces of information or may have parts that are overridden in the full definition. You should post the entire definition for the host, contact group and contact as found in objects.cache. At first glance, you don't specify any notification_options for the host. With Nagios-3, this will mean that all states will result in a notification but under 2.x I believe that behavior is different. I'd go ahead and specify the specific states to you want to receive notifications for. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ 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 not being sent on host down/unreachable
So this is working now but I'm not sure why. I deleted the objects.cache file and restarted and got a host down alert as soon as nagios came up. On a whim I deleted the cache file and restarted nagios and it sent out a host down alert. I didn't change anything else. On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke neuf...@gmail.com wrote: I included the template because the actual host definitions only include the server specific information. I'm not overriding anything. For example... define host{ use standard-host host_name server1 hostgroups +servers alias server1 address server1.domain.com } The same goes for contacts everything else. On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell m...@ena.com wrote: On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: My host, service and contacts are defined with the following templates: define host{ namestandard-host max_check_attempts 3 check_interval 15 retry_interval 5 check_command check-host-alive check_period24x7 notifications_enabled 1 retain_status_information 1 retain_nonstatus_information1 contactsops notification_interval 15 notification_period 24x7 check_freshness 1 freshness_threshold 300 register0 } Hello, This is just a template and not a complete host definition. In fact, they were all just templates and missing critical pieces of information or may have parts that are overridden in the full definition. You should post the entire definition for the host, contact group and contact as found in objects.cache. At first glance, you don't specify any notification_options for the host. With Nagios-3, this will mean that all states will result in a notification but under 2.x I believe that behavior is different. I'd go ahead and specify the specific states to you want to receive notifications for. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ 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 not being sent on host down/unreachable
On Oct 6, 2009, at 1:38 PM, Noel Platzke wrote: So this is working now but I'm not sure why. I deleted the objects.cache file and restarted and got a host down alert as soon as nagios came up. This tells me that nagios wasn't running with the configuration you thought it was (unless you also deleted status.dat, which may have settings overrides your object definitions). Seeing what was in objects.cache (and status.dat) might have explained the issue. On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke neuf...@gmail.com wrote: I included the template because the actual host definitions only include the server specific information. I'm not overriding anything. For example... Then you should tell us this at the least. We're not mind readers and when you provide something that is incomplete, with no comment that it's known incomplete and why, we have to assume you don't know what you gave us. ;) IMHO, you (as in anyone reporting problems) should provide *all* related information for any problem regardless of what bits you think are needed. Usually the problem is not in what you know you need, but in what you don't know you need. =) -- Marc -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ 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 during network outage
Sure it is. The official documentation has a great section on this, which ends with: By default, Nagios will notify contacts about both DOWN and UNREACHABLE host states. As an admin/tech, you might not want to get notifications about hosts that are UNREACHABLE. You know your network structure, and if Nagios notifies you that your router/firewall is down, you know that everything behind it is unreachable. If you want to spare yourself from a flood of UNREACHABLE notifications during network outages, you can exclude the unreachable (u) option from the *notification_options* directive in your hosthttp://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostdefinitions and/or the *host_notification_options* directive in your contacthttp://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactdefinitions. http://nagios.sourceforge.net/docs/3_0/networkreachability.html On Mon, Sep 28, 2009 at 7:00 PM, John Andrunas j...@andrunas.net wrote: I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when you look at the overview, but the mass of email generated is not useful. What config change should I make? It doesn't seem like removing the notification option for unreachable is the correct answer but I can't think of what other things would possibly fix email spam if you will. -- John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ 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 during network outage
Can you create a check on the 'link between the main site and remote site' and use that as a parent for all of the remote hosts? -Original Message- From: John Andrunas [mailto:j...@andrunas.net] Sent: Monday, September 28, 2009 1:00 PM To: Nagios Users Mail-list Subject: [Nagios-users] Notifications during network outage I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when you look at the overview, but the mass of email generated is not useful. What config change should I make? It doesn't seem like removing the notification option for unreachable is the correct answer but I can't think of what other things would possibly fix email spam if you will. -- John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 during network outage
On 9/28/09 1:00 PM, John Andrunas wrote: I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when you look at the overview, but the mass of email generated is not useful. What config change should I make? It doesn't seem like removing the notification option for unreachable is the correct answer but I can't think of what other things would possibly fix email spam if you will. Try removing 'u' from 'host_notification_options' in your contact definition: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact -- Mathieu -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 during network outage
After reading that, I realize that I had misinterpeted the u flag, thanks I suspect that will help. 2009/9/28 Mathieu Gagné mga...@iweb.com: On 9/28/09 1:00 PM, John Andrunas wrote: I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when you look at the overview, but the mass of email generated is not useful. What config change should I make? It doesn't seem like removing the notification option for unreachable is the correct answer but I can't think of what other things would possibly fix email spam if you will. Try removing 'u' from 'host_notification_options' in your contact definition: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact -- Mathieu -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
On Sun, Sep 20, 2009 at 7:49 AM, Jim Avery j...@jimavery.me.uk wrote: 2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register 1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } If you are using the standard check_disk plugin, I expect it needs some options to tell it what the warning and critical thresholds are and which disk you want to check. Run check_disk --help from the command line to see which options are required. if it passed through NRPE, on the other side i can configure to work without passing anything and the NRPE side will have all appropriate parameters, plus nagios reports me disk usage so it's obviously working the way it should Do other notifications work okay from your Nagios system, or are you not getting any at all? Can you send emails using /usr/bin/mail from the command line? and yes some of the services works fine and some aren't -- http://alexus.org/ -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
On Sun, Sep 20, 2009 at 10:34 PM, Drex devans3...@gmail.com wrote: Increase your nagios logging to include at least notifications, verify that notifications are at least trying to be sent out. If you see the mail notification in your nagios.log, you should be able to run the exact command via command line. Also to verify you check_nrpe1 command run the exact command from command line. If there are syntax errors, you should see them via command line. On Sun, Sep 20, 2009 at 6:49 AM, Jim Avery j...@jimavery.me.uk wrote: 2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register 1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } If you are using the standard check_disk plugin, I expect it needs some options to tell it what the warning and critical thresholds are and which disk you want to check. Run check_disk --help from the command line to see which options are required. Do other notifications work okay from your Nagios system, or are you not getting any at all? Can you send emails using /usr/bin/mail from the command line? -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Drex my debug level is -1, which means debug everything... there is no notification trying to be sent out thats the problem because if they were it would be super easy to solve, the problem is nagios doesn't generate any alerts to be send and thats where i stumble and need other's help ... -- http://alexus.org/ -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } You don't have notifications configured properly. Seriously though, this is not enough information to provide even a guess what you've done wrong. There are many more variables than what you've detailed here and nothing you've provided says anything about your notification configuration. For starters, do you have the correct notification options for the service? For the contact? Is the timeperiod valid for both? Is the service reaching an alertable, HARD state? If you want help with this, post the following-- *From objects.cache* -- host definition service definition contactgroup definition contact definition the service notification command{} definition for the contact all referenced timeperiod definitions From nagios.log -- all entries related to this host or service around the time you expect a notification to be sent. From maillog -- any entries related to messages for the contact Also, verify in the web interface that notifications are enabled for the host and service and that it is not in a period of scheduled downtime. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
On Thu, Sep 24, 2009 at 12:19 PM, Marc Powell m...@ena.com wrote: 2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register 1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } You don't have notifications configured properly. Seriously though, this is not enough information to provide even a guess what you've done wrong. There are many more variables than what you've detailed here and nothing you've provided says anything about your notification configuration. For starters, do you have the correct notification options for the service? For the contact? Is the timeperiod valid for both? Is the service reaching an alertable, HARD state? If you want help with this, post the following-- *From objects.cache* -- host definition define host { host_name jothost.j alias alexusbiz corp. (jothost) address 64.52.58.58 parents jothost.j.gw check_period247 contact_groups staff notification_period 247 initial_state o check_interval 5.00 retry_interval 1.00 max_check_attempts 3 active_checks_enabled 1 passive_checks_enabled 1 obsess_over_host1 event_handler_enabled 1 low_flap_threshold 0.00 high_flap_threshold 0.00 flap_detection_enabled 1 flap_detection_options o,d,u freshness_threshold 0 check_freshness 0 notification_optionsd,u,r,f,s notifications_enabled 1 notification_interval 0.00 first_notification_delay0.00 stalking_optionsn process_perf_data 1 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information1 } service definition define service { host_name jothost.j service_description dummy check_period247 check_command check_dummy!2 contact_groups staff notification_period 247 initial_state o check_interval 2.00 retry_interval 1.00 max_check_attempts 3 is_volatile 0 parallelize_check 1 active_checks_enabled 1 passive_checks_enabled 1 obsess_over_service 1 event_handler_enabled 1 low_flap_threshold 0.00 high_flap_threshold 0.00 flap_detection_enabled 1 flap_detection_options o,w,u,c freshness_threshold 0 check_freshness 0 notification_optionsu,w,c,r,f,s notifications_enabled 1 notification_interval 0.00 first_notification_delay0.00 stalking_optionsn process_perf_data 1 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information1 } contactgroup definition define contactgroup { contactgroup_name staff alias alexusbiz corp. members dmitry chorine } contact definition define contact { contact_namedmitry chorine alias sprint service_notification_period 247 host_notification_period247 service_notification_optionsw,u,c,r,f,s host_notification_options d,u,r,f,s service_notification_commands notify-service-by-email,notify-service-by-pager host_notification_commands notify-host-by-email,notify-host-by-pager email xxx...@xx.xxx pager xxx...@messaging.sprintpcs.com host_notifications_enabled 1 service_notifications_enabled 1 can_submit_commands 1 retain_status_information 1 retain_nonstatus_information1 } the service notification command{} definition for the contact define command { command_namenotify-service-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAddit ional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } define command { command_namenotify-service-by-pager command_line/usr/bin/printf %b Notification Type:
Re: [Nagios-users] notifications
On Sep 24, 2009, at 12:05 PM, alexus wrote: On Thu, Sep 24, 2009 at 12:19 PM, Marc Powell m...@ena.com wrote: 2009/9/19 alexus ale...@gmail.com: *From objects.cache* -- host definition define host { looks good service definition define service { looks good. contactgroup definition define contactgroup { contactgroup_name staff alias alexusbiz corp. members dmitry chorine I haven't seen anyone use contact names with spaces in them but I'm not aware of any reason it wouldn't work. contact definition define contact { This looks good as well. the service notification command{} definition for the contact define command { Fine. all referenced timeperiod definitions define timeperiod { Here too... Nothing obviously wrong with the object configs that I can see. From nagios.log -- all entries related to this host or service around the time you expect a notification to be sent. -bash-3.2# grep dummy nagios.log [1253764800] CURRENT SERVICE STATE: jothost.j;dummy;CRITICAL;HARD; 3;CRITICAL [1253807636] SERVICE ALERT: jothost.j;dummy;CRITICAL;SOFT;1;CRITICAL [1253807696] SERVICE ALERT: jothost.j;dummy;CRITICAL;SOFT;2;CRITICAL [1253807756] SERVICE ALERT: jothost.j;dummy;CRITICAL;HARD;3;CRITICAL Yet nagios doesn't believe that it's supposed to attempt a notification Also, verify in the web interface that notifications are enabled for the host and service and that it is not in a period of scheduled downtime. Did you check the web interface to verify that notifications for the specific service are enabled? You should also check under 'Process Info' to make sure notifications are enabled program wide (enable_notifications 1 in nagios.cfg). Both of these options can be disabled in the web interface. Since you appear to be using retention, those settings will be remembered between restarts and will take precedence over config file/ objects.cache settings. You can see the current settings for these types of things in the status.dat file but using the web interface is usually easier. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
On Thu, Sep 24, 2009 at 1:49 PM, Marc Powell m...@ena.com wrote: On Sep 24, 2009, at 12:05 PM, alexus wrote: On Thu, Sep 24, 2009 at 12:19 PM, Marc Powell m...@ena.com wrote: 2009/9/19 alexus ale...@gmail.com: *From objects.cache* -- host definition define host { looks good service definition define service { looks good. contactgroup definition define contactgroup { contactgroup_name staff alias alexusbiz corp. members dmitry chorine I haven't seen anyone use contact names with spaces in them but I'm not aware of any reason it wouldn't work. contact definition define contact { This looks good as well. the service notification command{} definition for the contact define command { Fine. all referenced timeperiod definitions define timeperiod { Here too... Nothing obviously wrong with the object configs that I can see. From nagios.log -- all entries related to this host or service around the time you expect a notification to be sent. -bash-3.2# grep dummy nagios.log [1253764800] CURRENT SERVICE STATE: jothost.j;dummy;CRITICAL;HARD; 3;CRITICAL [1253807636] SERVICE ALERT: jothost.j;dummy;CRITICAL;SOFT;1;CRITICAL [1253807696] SERVICE ALERT: jothost.j;dummy;CRITICAL;SOFT;2;CRITICAL [1253807756] SERVICE ALERT: jothost.j;dummy;CRITICAL;HARD;3;CRITICAL Yet nagios doesn't believe that it's supposed to attempt a notification Also, verify in the web interface that notifications are enabled for the host and service and that it is not in a period of scheduled downtime. Did you check the web interface to verify that notifications for the specific service are enabled? You should also check under 'Process Info' to make sure notifications are enabled program wide (enable_notifications 1 in nagios.cfg). through web i see notifications is enabled if this would be disabled i wouldn't get any notifications, yet some of notifications i'm getting and some not... -bash-3.2# grep enable_notifications ~nagios/etc/nagios.cfg enable_notifications=1 -bash-3.2# Both of these options can be disabled in the web interface. Since you appear to be using retention, those settings will be remembered between restarts and will take precedence over config file/ objects.cache settings. You can see the current settings for these types of things in the status.dat file but using the web interface is usually easier. this is from status.dat servicestatus { host_name=jothost.j service_description=dummy modified_attributes=0 check_command=check_dummy!2 check_period=247 notification_period=247 check_interval=2.00 retry_interval=1.00 event_handler= has_been_checked=1 should_be_scheduled=1 check_execution_time=0.006 check_latency=0.221 check_type=0 current_state=2 last_hard_state=2 last_event_id=0 current_event_id=3158 current_problem_id=1526 last_problem_id=0 current_attempt=3 max_attempts=3 state_type=1 last_state_change=1253807626 last_hard_state_change=1253807746 last_time_ok=0 last_time_warning=0 last_time_unknown=0 last_time_critical=1253824786 plugin_output=CRITICAL long_plugin_output= performance_data= last_check=1253824786 next_check=1253824906 check_options=0 current_notification_number=0 current_notification_id=0 last_notification=0 next_notification=0 no_more_notifications=0 notifications_enabled=1 active_checks_enabled=1 passive_checks_enabled=1 event_handler_enabled=1 problem_has_been_acknowledged=0 acknowledgement_type=0 flap_detection_enabled=1 failure_prediction_enabled=1 process_performance_data=1 obsess_over_service=1 last_update=1253824866 is_flapping=0 percent_state_change=0.00 scheduled_downtime_depth=0 } -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- http://alexus.org/ -- Come build with us! The
Re: [Nagios-users] notifications
On Sep 24, 2009, at 3:42 PM, alexus wrote: this is from status.dat servicestatus { Hrmm. Good as well... Certainly getting into the long tail of obscure issues now (unless I missed something)... Do you have any service escalations defined? Could they apply to this service? And to cover it, make sure you don't have multiple nagios daemons running at the same time (stop nagios, kill any that remain, restart nagios). There could be contention over the status.dat file with the values changing as each daemon wrote the file and you only see the values of the last one to write it. Beyond that, my next recourse would be to enable debug mode and follow that for clues. -- Marc -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register 1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } If you are using the standard check_disk plugin, I expect it needs some options to tell it what the warning and critical thresholds are and which disk you want to check. Run check_disk --help from the command line to see which options are required. Do other notifications work okay from your Nagios system, or are you not getting any at all? Can you send emails using /usr/bin/mail from the command line? -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
Increase your nagios logging to include at least notifications, verify that notifications are at least trying to be sent out. If you see the mail notification in your nagios.log, you should be able to run the exact command via command line. Also to verify you check_nrpe1 command run the exact command from command line. If there are syntax errors, you should see them via command line. On Sun, Sep 20, 2009 at 6:49 AM, Jim Avery j...@jimavery.me.uk wrote: 2009/9/19 alexus ale...@gmail.com: why this won't work? i dont get notifications define service { hostgroup_name nrpe-disk service_description disk use alarm,check check_command check_nrpe1!check_disk register1 } define command { command_name check_nrpe1 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } If you are using the standard check_disk plugin, I expect it needs some options to tell it what the warning and critical thresholds are and which disk you want to check. Run check_disk --help from the command line to see which options are required. Do other notifications work okay from your Nagios system, or are you not getting any at all? Can you send emails using /usr/bin/mail from the command line? -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Drex -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ 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 severely impacting Nagios performance. Ideas?
2009/8/25 Ryan Bowlby rbowlb...@yahoo.com: Hello Everyone, We are experiencing issues with Nagios notifications. Apparently when a large amount of services become critical and trigger notifications the system all but stops processing new service check results (passive). The last check times in the web interface stop updating until notifications are disabled. Tailing the nagios.log file during this issue shows mostly notifications and hardly any check results being processed. As soon as I temporarily disable notifications - system wide - the passive check results literally fly off the screen, and all the stale results in the web interface clear up quickly. How does everyone handle this issue? Obviously the notifications are a bottleneck. Has anyone configured notifications to be dropped in a file or fifo to be processed by an external daemon? Something like OCP daemon if anyone is familiar with it. Obviously parent child relationships would prove useful in curbing the notifications, but implementation of relationships is a while off (5 D.C.s lot's a data to have to collect). Any suggestions would be greatly appreciated! If you have set retry_check_interval to a very low value compared with normal_check_interval, then inevitably Nagios will be working a lot harder if a lot of hosts are down at the same time. hth (a bit), 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] Notifications severely impacting Nagios performance. Ideas?
On Aug 24, 2009, at 9:43 PM, Ryan Bowlby wrote: Hello Everyone, We are experiencing issues with Nagios notifications. Apparently when a large amount of services become critical and trigger notifications the system all but stops processing new service check results (passive). The last check times in the web interface stop updating until notifications are disabled. Tailing the nagios.log file during this issue shows mostly notifications and hardly any check results being processed. As soon as I temporarily disable notifications - system wide - the passive check results literally fly off the screen, and all the stale results in the web interface clear up quickly. I can confirm this behavior, at least under 2.x. I haven't had a major outage under 3.x yet to see if it still happens. My previous speculation on the issue is at the link below. I don't have enough knowledge of the code to be certain that's what's really happening though. Since then, I've come to suspect that it might actually be the logic to determine who gets notified rather than the actual notification itself. http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg10803.html How does everyone handle this issue? I tried backgrounding the notification script but that didn't help. We recognize that in the event of a major outage, we don't want to receive those notifications anyway so we disable notifications program- wide until the outage is over. Not a fix, per-se, but a workable process for us. It just doesn't happen often enough to really troubleshoot or spend a lot of time on. -- Marc -- 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] Notifications severely impacting Nagios performance. Ideas?
Hello Ryan, I do not know what is organization of your network, but maybe you could take a look into service/host dependency. It depends on your network organization, but I think it could help http://nagios.sourceforge.net/docs/2_0/dependencies.html its purpose is to suppress notifications in case main host is down, in such case you get only notification about that problem. As I beleive that you have some gateway/router and in case it has some problems you are getting many notifications, and I think it is rara that many hosts have some local problem at same time Hope this helps Nice regards, Arlen On Tue, Aug 25, 2009 at 4:43 AM, Ryan Bowlbyrbowlb...@yahoo.com wrote: Hello Everyone, We are experiencing issues with Nagios notifications. Apparently when a large amount of services become critical and trigger notifications the system all but stops processing new service check results (passive). The last check times in the web interface stop updating until notifications are disabled. Tailing the nagios.log file during this issue shows mostly notifications and hardly any check results being processed. As soon as I temporarily disable notifications - system wide - the passive check results literally fly off the screen, and all the stale results in the web interface clear up quickly. How does everyone handle this issue? Obviously the notifications are a bottleneck. Has anyone configured notifications to be dropped in a file or fifo to be processed by an external daemon? Something like OCP daemon if anyone is familiar with it. Obviously parent child relationships would prove useful in curbing the notifications, but implementation of relationships is a while off (5 D.C.s lot's a data to have to collect). Any suggestions would be greatly appreciated! -Ryan B. == FreeBSD 7.0-RELEASE amd64, Nagios 3.0 w/ NDO2DB 1.4b7 Total Hosts: 3741, Total Services: 9321 -- 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 -- 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] Notifications severely impacting Nagios performance. Ideas?
Ryan Bowlby wrote: How does everyone handle this issue? Obviously the notifications are a bottleneck. Has anyone configured notifications to be dropped in a file or fifo to be processed by an external daemon? Something like OCP daemon if anyone is familiar with it. I've experienced the exact same behavior on both 2.x and 3.x when remote sites go down. Since each passive result takes 10s to time out, the queue just becomes so backed up it stops being useful. OCP Daemon fixed it for me. -- Sean McAfee System Engineer -- 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] Notifications
On Apr 6, 2009, at 10:31 AM, Grant Lowe wrote: Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? I see that you're applying service monitoring to hostgroups in addition to specific hosts. Is it possible that these new servers are in the 'solaris-servers' hostgroup or a different hostgroup that receives the additional monitoring? -- Marc -- ___ 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
Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric - Original Message - From: Grant Lowe gl...@sbcglobal.net To: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? -- ___ 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 Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. -- ___ 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
Grant Lowe (gl...@sbcglobal.net) scritto: hostgroup_name solaris-servers hostgroup_name solaris-servers Any ideas on why all the extra monitoring? Check wether the extra monitors are configured to hostgroup level. If you put a host in solaris-server group and you have, let's say, disk check defined at the hostgroup level, all the hosts in that hostgroup will have the disk check applied. Giorgio -- ___ 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
I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric - Original Message - From: Grant Lowe gl...@sbcglobal.net To: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? -- ___ 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 Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. -- ___ 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
Yes, that seems like the problem. But the way nagios is setup, I don't think I understand its setup. I see in my templates a host definition that has these lines: name solaris-servers hostgroups solaris-server In the hosts.cfg, services.cfg, and hostgroups file, this definition: hostgroup_name solaris-servers alias solaris-servers It looks the problem is there. But I'm not sure why. Please help me out. Thanks, Marc. - Original Message From: Marc Powell m...@ena.com To: nagios-users Mail-list nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:49:17 AM Subject: Re: [Nagios-users] Notifications On Apr 6, 2009, at 10:31 AM, Grant Lowe wrote: Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? I see that you're applying service monitoring to hostgroups in addition to specific hosts. Is it possible that these new servers are in the 'solaris-servers' hostgroup or a different hostgroup that receives the additional monitoring? -- Marc -- ___ 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 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
On Apr 6, 2009, at 11:39 AM, Grant Lowe wrote: Yes, that seems like the problem. But the way nagios is setup, I don't think I understand its setup. I see in my templates a host definition that has these lines: name solaris-servers hostgroups solaris-server Any host using this template is added to the group 'solaris-servers'. In the hosts.cfg, services.cfg, and hostgroups file, this definition: hostgroup_name solaris-servers alias solaris-servers For what definitions? This would only make sense for hostgroup definitions and is just creating the hostgroup container used by the host template above. It looks the problem is there. But I'm not sure why. Please help me out. Thanks, Marc. define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } It's actually a combination. The service definition above says it should be applied to specific hosts (host_name line) *and* all hosts in the hostgroup 'solaris-servers' (hostgroup_name). Since the hosts are put into the solaris-servers hostgroup courtesy of their use of the template that says they should be, this service is applied to them. If you don't want to apply this service to those devices, remove them from the solaris-servers hostgroup _or_ remove the hostgroup_name line in the service definition and specify the individual host_names that the service _should_ apply to. -- Marc -- ___ 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
ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ use generic-service hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } # perform service check on hostgroup but not on the new servers define service{ use generic-service host_name !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } - Original Message - From: Grant Lowe gl...@sbcglobal.net To: Eric Parker epar...@scoe.org Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric - Original Message - From: Grant Lowe gl...@sbcglobal.net To: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period24x7 notification_optionsw,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? -- ___ 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 Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. -- ___ 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
Yes, Eric, ditto what Mark said. Great minds agree :-). Thanks for the help, guys. Nagios is now back to it's happy self. I ended up doing the second one, to exclude certain hosts from the service. That way, I can include services and hosts as they come on-line, one-by-one - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 10:01:43 AM Subject: Re: [Nagios-users] Notifications ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ use generic-service hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } # perform service check on hostgroup but not on the new servers define service{ use generic-service host_name !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } - Original Message - From: Grant Lowe gl...@sbcglobal.net To: Eric Parker epar...@scoe.org Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric - Original Message - From: Grant Lowe gl...@sbcglobal.net To: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? -- ___ 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 Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete
Re: [Nagios-users] Notifications
Well, I think I spoke a little soon, but in a weird sort of way. The GUI is not showing unconfigured services, but I'm still getting notifications about the unconfigured services. The notifications were just delayed. What should I check now? - Original Message From: Grant Lowe gl...@sbcglobal.net To: Eric Parker epar...@scoe.org Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 1:56:35 PM Subject: Re: [Nagios-users] Notifications Yes, Eric, ditto what Mark said. Great minds agree :-). Thanks for the help, guys. Nagios is now back to its happy self. I ended up doing the second one, to exclude certain hosts from the service. That way, I can include services and hosts as they come on-line, one-by-one - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 10:01:43 AM Subject: Re: [Nagios-users] Notifications ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ use generic-service hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } # perform service check on hostgroup but not on the new servers define service{ use generic-service host_name !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } - Original Message - From: Grant Lowe gl...@sbcglobal.net To: Eric Parker epar...@scoe.org Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. - Original Message From: Eric Parker epar...@scoe.org To: Grant Lowe gl...@sbcglobal.net Cc: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric - Original Message - From: Grant Lowe gl...@sbcglobal.net To: nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v
Re: [Nagios-users] Notifications
On Apr 6, 2009, at 4:33 PM, Grant Lowe wrote: Well, I think I spoke a little soon, but in a weird sort of way. The GUI is not showing unconfigured services, but I'm still getting notifications about the unconfigured services. The notifications were just delayed. What should I check now? Most likely: you have multiple nagios daemons running at the same time; one with the old config and one with the new config. 2nd most: your mail server queued the messages for a long time (headers/logs should show that). -- Marc -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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
Thanks, Marc. It was the former. - Original Message From: Marc Powell m...@ena.com To: Nagios Users Mailinglist nagios-users@lists.sourceforge.net Sent: Monday, April 6, 2009 2:46:05 PM Subject: Re: [Nagios-users] Notifications On Apr 6, 2009, at 4:33 PM, Grant Lowe wrote: Well, I think I spoke a little soon, but in a weird sort of way. The GUI is not showing unconfigured services, but I'm still getting notifications about the unconfigured services. The notifications were just delayed. What should I check now? Most likely: you have multiple nagios daemons running at the same time; one with the old config and one with the new config. 2nd most: your mail server queued the messages for a long time (headers/logs should show that). -- Marc -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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 -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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 configuration
On Mar 3, 2009, at 10:45 AM, Burton Simonds wrote: I am setting up my first nagios instance, and I am trying to figure out how to set up the notifications. I would like to have any service that is a warning send an email, while any service that is critical send a page. I can not find in the configurations where I can set that threshold. Can someone please point me in the right direction? Nagios doesn't implement that type of logic. Some options that come to mind -- 1) Create a contact per status. contact1 that sends e-mails only does so for critical services; contact2 that sends pages only does so for warning services. 2) Have one contact but multiple notification commands (service_notification_commands service-notify-by-email,service-notify- by-pager). -by-email and -by-pager contain simple logic to only work for critical or warning respectively. 3) Create one contact with one notification command. That notification command contains the simple logic to send an e-mail or send a page depending on the notification type. 4) ... 5) Profit! This kind of configuration is discussed somewhat frequently on the list. The archives might provide more information. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 only to service contacts, not to host contacts?
On Feb 16, 2009, at 3:49 AM, Christian Schneemann wrote: Hi, I have some services defined, that are just interesting for some people, especially not for all contacts defined for the host. So the service has a single contact defined. Nagios expects this kind of notification granularity. Now the problem is, that the notifications are not only send to the contact defined for this service, they are also send to the contacts (contact_group) defined for the host this service is defined for. Nagios will not do this unless you specifically configure it to do so. Nagios has been told that it should. Are they service notifications or host notifications? Is there anything else unusual about the notifications or their content? What does nagios.log show related to these notifications? The contact_group is defined for this host in the host-template. define service{ contactscontact1 } define host{ use example-template host_name hostname.example.org alias example host address hostname.example.org hostgroups example-hosts, check_zypper } What am I doing wrong? Any suggestions? Who are the host contacts? Please post the entire host and service definitions, including the templates with the important bits. You might want to grab the definitions from objects.cache. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 only to service contacts, not to host contacts?
On Monday February 16 2009 03:13:00 pm Marc Powell wrote: On Feb 16, 2009, at 3:49 AM, Christian Schneemann wrote: Hi, I have some services defined, that are just interesting for some people, especially not for all contacts defined for the host. So the service has a single contact defined. [...] What am I doing wrong? Any suggestions? Who are the host contacts? Please post the entire host and service definitions, including the templates with the important bits. You might want to grab the definitions from objects.cache. Thanks for the hint with the objects.cache. The contact_group is defined in the template for the service. so a define service { ... contactscontact1 contact_groups } unsets the value and I hope it will work now. Thanks for helping :) -- Marc --- --- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 to unknown user for services with disabled notify
On Jan 16, 2009, at 3:46 AM, Markus Schreier wrote: Hello all, i'm new to the list even though i'm not new to nagios. I've taken over an installation on an ubuntu -linux and made local emails (to root or to nagios) being forwarded to some administration account. This made me realize some enormous email-traffic: Hello and welcome. =) My nagios-service sends notify-mails to the Mailadresse $ on the local host. This happens even for services with disabled notifications. Host and service-notifications are affected. Why are there notifications being send if disabled for this service? Where does the mailadress $ come from? A complete example host and service definition would be helpful. My guess is that you have your notification commands specified as an event_handler. http://thread.gmane.org/gmane.network.nagios.user/58877 -- Marc -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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 to unknown user for services with disabled notify
Hello Marc, thanks for your reply. yes you are wright. My notify-commands are put in as event-handler for all hosts and all services. I will just remove the event_handler line. I also set event_handler_enabled to 0 and all should be fine. Again, thank you best regards, Markus I put in a host and a service definition, just to be complete: define host { host_name hostname.domain.de alias Serviceportal VIP address x.y.z parents kp-sp-proxy check_command check_http_proxy_ping max_check_attempts 3 active_checks_enabled 1 passive_checks_enabled 0 check_period24x7 obsess_over_host1 check_freshness 1 event_handler notify-host-by-email event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 0 retain_status_information 1 retain_nonstatus_information1 contact_groups nagios-admins,ServiceCenter,ziv-admins notification_interval 60 notification_period arbeitszeitrufbereit notification_optionsd,u,r,f notifications_enabled 1 register1 } define service { host_name hostname.domain.de service_description Serviceportal Login VIP servicegroups webbased is_volatile 0 check_command check_serviceplattform!serviceplattform_eprtlogin.conf max_check_attempts 3 normal_check_interval 5 retry_check_interval2 active_checks_enabled 1 passive_checks_enabled 0 check_period24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler notify-service-by-email event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 contact_groups nagios-admins,ServiceCenter,ziv-admins notification_interval 60 notification_period arbeitszeitrufbereit notification_optionsw,u,c,r,f notifications_enabled 1 register1 } Original-Nachricht Datum: Fri, 16 Jan 2009 07:21:28 -0600 Von: Marc Powell m...@ena.com An: nagios-users Mailinglist nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] Notifications to unknown user for services with disabled notify On Jan 16, 2009, at 3:46 AM, Markus Schreier wrote: Hello all, i'm new to the list even though i'm not new to nagios. I've taken over an installation on an ubuntu -linux and made local emails (to root or to nagios) being forwarded to some administration account. This made me realize some enormous email-traffic: Hello and welcome. =) My nagios-service sends notify-mails to the Mailadresse $ on the local host. This happens even for services with disabled notifications. Host and service-notifications are affected. Why are there notifications being send if disabled for this service? Where does the mailadress $ come from? A complete example host and service definition would be helpful. My guess is that you have your notification commands specified as an event_handler. http://thread.gmane.org/gmane.network.nagios.user/58877 -- Marc -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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 -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
Re: [Nagios-users] Notifications not working [was: Re: '$' symbol being appended to command_line?]
On 11:27:09 Thu 08-Jan-09, Alexis Hazell wrote: Doing this showed that you are correct about it being a permissions issue: nagios is running as user 'nagios' and group 'nagios', but the /bin/mail and /usr/bin/freetalk commands are being run in an environment where it seems that HOME=/root/ - the commands attempt to access /root/.esmtprc and /root/.freetalk/, respectively, rather than attempting to access /var/log/nagios/.esmtprc and /var/log/nagios/.freetalk/ (where /var/log/nagios is HOME for user nagios). Obvious kludges are: * copy the respective dot files to /root/ and either chmod them o+r or chown them root.nagios; * modify the command_line to use sudo to ensure /bin/mail and /usr/bin/freetalk are run as user 'nagios'. But surely there's a better alternative? What am i missing? Okay, for future reference for anyone else who might face the same problem, i couldn't get either of the above kludges to work. Instead, what worked was setting the HOME var: command_lineecho 'Nagios notification --- Type: $NOTIFICATIONTYPE$, Service: $SERVICEDESC$, Host: $HOSTALIAS$, Address: $HOSTADDRESS$, State: $SERVICESTATE$, Date/Time: $LONGDATETIME$, Additional Info: $SERVICEOUTPUT$' | HOME=/var/log/nagios /usr/bin/freetalk -s /var/log/nagios/notify.scm where the contents of /var/log/nagios/notify.scm are: (use-modules (ice-9 rdelim)) (define msg (read-line)) (ft-set-jid! [sender-JID]) (ft-set-server! talk.google.com) (ft-set-password! [sender-password]) (ft-set-sslconn! #t) (ft-set-port! 5223) (if (ft-login-blocking) (begin (ft-send-message [recipient-JID] msg) (ft-disconnect)) (display Could not connect\n)) Alexis. -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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 not working [was: Re: '$' symbol being appended to command_line?]
On 07:28:01 Wed 07-Jan-09, Marc Powell wrote: What's the real command_line that you're using for notifications? For email: command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /bin/mail -s ** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ For XMPP: command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/freetalk -s /var/log/nagios/notify.scm You could also redirect STDOUT/STDERR to a file to see if anything is being reported there by adding '/tmp/output.txt 21' to the end of the command_line. Doing this showed that you are correct about it being a permissions issue: nagios is running as user 'nagios' and group 'nagios', but the /bin/mail and /usr/bin/freetalk commands are being run in an environment where it seems that HOME=/root/ - the commands attempt to access /root/.esmtprc and /root/.freetalk/, respectively, rather than attempting to access /var/log/nagios/.esmtprc and /var/log/nagios/.freetalk/ (where /var/log/nagios is HOME for user nagios). Obvious kludges are: * copy the respective dot files to /root/ and either chmod them o+r or chown them root.nagios; * modify the command_line to use sudo to ensure /bin/mail and /usr/bin/freetalk are run as user 'nagios'. But surely there's a better alternative? What am i missing? Alexis. -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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 of Children
On Dec 18, 2008, at 1:16 PM, Sam Stelfox wrote: After searching both google and to the extent I was able to the archive (it kept timing out when I'd run a search). I'm asking these two questions to the list. Thanks for researching first! It's my understanding that if nagios can not talk to a service, ... Correct. I turned off unreachable notifications, but nagios thinks that some of the children are in a down state while a couple of them say unreachable. Why does nagios consider some down and some unreachable (they are all using the same template only thing different is there name's and addresses and the parents have the same template as well). What is the state of the immediate parent of a 'down' host? Are you sure it's parent is what you think it is? I would say that the 'down' host either has no parent or the parent's status is 'ok', or was at the time the on-demand check happened. If you're using nagios-3, cached host checks could certainly be at play here -- http://nagios.sourceforge.net/docs/3_0/cachedchecks.html Why does nagios still send notifications for the children? For which, down or unreachable? Based on your disabling of unreachable notifications, you should not receive those. You may receive down notifications if you've elected to receive those. -- Marc -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 if a servicegroup is down on more than 1 server
[EMAIL PROTECTED] schrieb: Hi, I have a strange configuration that I have to applied to my Nagios and I cannot find the way to do it. Since I have a load balancer that monitor the apache status on the servers, I don’t want to send alerts if one of then is DOWN, I prefer to wait until I have at least 2 of them DOWN and specific services on them. For example: I have 5 hosts with 5 services each. I want to send notifications of Critical if: --- Service 1, Service 2, and Service 3 are DOWN on at least 2 of the 5 hosts. Someone knows if it is possible and how to apply it on Nagios 2? Have a look on check_cluster http://nagios.sourceforge.net/docs/2_0/clusters.html Kind regards Joerg - 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 if a servicegroup is down on more than 1 server
I'd probably write a check that doesn't send any notifications when an apache server is down, but that increments a counter in a file somewhere. Another service to monitor the file and alarm if over some number, in your case 2. [EMAIL PROTECTED] wrote: Hi, I have a strange configuration that I have to applied to my Nagios and I cannot find the way to do it. Since I have a load balancer that monitor the apache status on the servers, I don’t want to send alerts if one of then is DOWN, I prefer to wait until I have at least 2 of them DOWN and specific services on them. For example: I have 5 hosts with 5 services each. I want to send notifications of Critical if: --- Service 1, Service 2, and Service 3 are DOWN on at least 2 of the 5 hosts. Someone knows if it is possible and how to apply it on Nagios 2? Thanks, Charly Yahoo! Cocina Recetas prácticas y comida saludable http://ar.mujer.yahoo.com/cocina/ - 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 - 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
Hi James If you grep your main nagios log for the hostname you'll be able to see the results of nagios checks on the host, and whether the host was detected as up or not. It's likely that flap detection suppressed the notifications. Thanks, Traiano -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Tue 9/23/2008 3:36 PM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] notifications I got a host down notification but no host up notification. I had flapping detection on the host but no notification on the contact. I wonder if the host was detected as flapping which is why there was no host up notification. - 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 - 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
On Tue, September 23, 2008 10:18 am, Traiano Welcome wrote: Hi James 20080923 - 0.02 hour - stale cpServer lock If you grep your main nagios log for the hostname you'll be able to see the results of nagios checks on the host, and whether the host was detected as up or not. It's likely that flap detection suppressed the notifications. There host is up but there was never a host up notification (there was a host down notification). Thanks, Traiano -Original Message- From: James [mailto:[EMAIL PROTECTED] Sent: Tue 9/23/2008 3:36 PM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] notifications I got a host down notification but no host up notification. I had flapping detection on the host but no notification on the contact. I wonder if the host was detected as flapping which is why there was no host up notification. - 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 - 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 are sent, even if Notifications are diabled.
2008/9/16 Marc Powell [EMAIL PROTECTED] On Sep 16, 2008, at 3:37 AM, Klaus Umbach wrote: Hi, I have the following problem: The notifications for a host are disabled, but I get the host down and th host up for the host... This does not seem to happen with all hosts... Without specific config snippets and assuming that they're really disabled, my only suggestion would be to verify that you don't have multiple nagios daemons running... Here are the snipplets. This HOST gets rebooted every night at 5am, and I get the notifications, although the timeperiod is set. define host { host_nameHOST aliaseasy-xbase addressIP_ADDRESS usegeneric-host parentsnagios-satellit check_periodHOST_daily notification_periodHOST_daily } define timeperiod{ timeperiod_name HOST_daily alias HOST_daily monday 00:00-04:30,05:30-24:00 tuesday 00:00-04:30,05:30-24:00 wednesday 00:00-04:30,05:30-24:00 thursday00:00-04:30,05:30-24:00 friday 00:00-04:30,05:30-24:00 saturday00:00-04:30,05:30-24:00 sunday 00:00-04:30,05:30-24:00 } -- First Official Internetdenier - 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 are sent, even if Notifications are diabled.
Klaus Umbach wrote: 2008/9/16 Marc Powell [EMAIL PROTECTED] On Sep 16, 2008, at 3:37 AM, Klaus Umbach wrote: Hi, I have the following problem: The notifications for a host are disabled, but I get the host down and th host up for the host... This does not seem to happen with all hosts... Without specific config snippets and assuming that they're really disabled, my only suggestion would be to verify that you don't have multiple nagios daemons running... Here are the snipplets. This HOST gets rebooted every night at 5am, and I get the notifications, although the timeperiod is set. For misconfiguration issues: Are the two machines synced to the same NTP server? When do the alerts go out (wallclock time)? What does Nagios think the time is by then? Have you (stupid, yes I know) reloaded the configuration since you modified it? If you're using Nagios 3 with precached configuration, have you regenerated the precache since you modified it? For bughunting issues (assumes all of the above are yes or inside the specified timeperiod): Are you using escalations? Are you using timeperiods with 'exclude' directive, excluding the mentioned timeperiod (any timeperiod)? Are you using timeperiods with exceptions (any timeperiod)? If the misconfiguration checkup is ok, please send me your config and I'll see what I can get out of it. define host { host_nameHOST aliaseasy-xbase addressIP_ADDRESS usegeneric-host parentsnagios-satellit check_periodHOST_daily notification_periodHOST_daily } define timeperiod{ timeperiod_name HOST_daily alias HOST_daily monday 00:00-04:30,05:30-24:00 tuesday 00:00-04:30,05:30-24:00 wednesday 00:00-04:30,05:30-24:00 thursday00:00-04:30,05:30-24:00 friday 00:00-04:30,05:30-24:00 saturday00:00-04:30,05:30-24:00 sunday 00:00-04:30,05:30-24:00 } The object definitions are correct. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - 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 are sent, even if Notifications are diabled.
On Sep 16, 2008, at 3:37 AM, Klaus Umbach wrote: Hi, I have the following problem: The notifications for a host are disabled, but I get the host down and th host up for the host... This does not seem to happen with all hosts... Without specific config snippets and assuming that they're really disabled, my only suggestion would be to verify that you don't have multiple nagios daemons running... -- 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 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
Re: [Nagios-users] Notifications sent in scheduled downtime
Forgot to mention this is Nagios 3.0.3 running on Debian 4.0. Thanks, Andy Andy Shellam wrote: Hi, I have 3 services - Director Scheduler Agent, Director Storage Agent, and Director Client Agent. I had to upgrade these 3 services, so I scheduled fixed downtime for an hour on the scheduler agent, and fixed downtime on the storage and client agent setting triggered by to the downtime record of the scheduler. However, the storage and client agent still keep sending out notifications even though they are in downtime. Also, there is no downtime (Zzzz) icon next to the storage and client agent in the Services Overview. In the service details, it shows the downtime record as a comment, but says in scheduled downtime is NO: In Scheduled Downtime? NO This is my scheduled downtime grid for services: Sydney http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=1host=Sydney Director Storage Agent http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=2host=Sydneyservice=Director+Storage+Agent 30-07-2008 21:09:55 sysadminDirector is being upgraded 30-07-2008 21:09:38 30-07-2008 22:09:38 Fixed 0d 1h 0m 0s 18 20 http://control.net-station.co.uk/nagios/cgi-bin/cmd.cgi?cmd_typ=79down_id=18 Sydney http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=1host=Sydney Director Client Agent http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=2host=Sydneyservice=Director+Client+Agent 30-07-2008 21:10:37 sysadminDirector is being upgraded 30-07-2008 21:10:30 30-07-2008 22:10:30 Fixed 0d 1h 0m 0s 19 20 http://control.net-station.co.uk/nagios/cgi-bin/cmd.cgi?cmd_typ=79down_id=19 Sydney http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=1host=Sydney Director Scheduler Agent http://control.net-station.co.uk/nagios/cgi-bin/extinfo.cgi?type=2host=Sydneyservice=Director+Scheduler+Agent 30-07-2008 21:10:55 sysadminDirector is being upgraded 30-07-2008 21:10:47 30-07-2008 22:10:47 Fixed 0d 1h 0m 0s 20 N/A http://control.net-station.co.uk/nagios/cgi-bin/cmd.cgi?cmd_typ=79down_id=20 The scheduler agent says In Scheduled Downtime? YES but the other 2 are not, even though the times are virtually the same. Is this a bug? Thanks, Andy Shellam - 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 - 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 via CDMA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/05/08 12:27 AM, Douglas K. Rand wrote: Doug I've been looking around for a way of delivering notifications Doug directly via a wireless [CDMA] modem. If we had GSM service it Doug seems that this is a very easy thing: get smstools3 and one of Doug any of a number of GSM modems. Thomas Can't you just send an email to some special address of your Thomas provider? Thomas Every phone I ever came across were able to receive SMS trough Thomas email, both in US and Canada. Well, that works great unless the notification I'm trying to send out is that my Internet service is down. Then I need an out of band means of sending the notification. Sure. If you can afford a second monitoring server in a different location that will do it though... I.e. monitoring your monitoring server. There's also many services that monitor your network from the outside world - they could be useful too. Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFILCSl6dZ+Kt5BchYRAtVEAJ9erx2A4WSjBP+A2xcuvfpTCu2O3wCg6+s2 5pEEcD/2KXILgoolVjZH2es= =2sjH -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 via CDMA
Thomas Sure. If you can afford a second monitoring server in a Thomas different location that will do it though... I.e. monitoring Thomas your monitoring server. This is a good idea anyway, and we have a Nagios install at our colocation facility monitoring our main facility, and vice versa. It makes good sense anyway. But I'm still using SMTP to an external service to send notifications. It usually works fine, but not always. (We have a service we sell sending text messages to several different providers for several hundred users for events (unrelated to Nagios) and on the order of 3-5 percent of these are bounced back from the SMTP service of the provider. While our success rate for IXO/TAP delivery is in excess of 99.5%. Thomas There's also many services that monitor your network from the Thomas outside world - they could be useful too. Right, but I'd like to keep it in house. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 via CDMA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/05/08 05:06 PM, Douglas K. Rand wrote: I'm a Verizon customer in North Dakota (United States) and the only cell network available to us is CDMA. (Just in the last 6 months did we get EVDO.) Right now we use a modem and dial in to the IXO/TAP number for Verizon. This works, but I'm concerned about how long Verizon will maintain a IXO/TAP terminal. (And as a minor point, messages sent via the IXO/TAP terminal are counted as out of network messages by Verizon.) I've been looking around for a way of delivering notifications directly via a wireless modem. If we had GSM service it seems that this is a very easy thing: get smstools3 and one of any of a number of GSM modems. I was wondering if anybody had suggestions for accomplishing this with Verizon and their CDMA network. I've found the MultiTech CDMA MultiModem (MTCBA-C-N3-NAM) but no software to drive it. (We run Nagios on FreeBSD.) And from what I can tell you can't send messages on a CDMA network anywhere as easily as you can with GSM. Can't you just send an email to some special address of your provider? Every phone I ever came across were able to receive SMS trough email, both in US and Canada. Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIK6BZ6dZ+Kt5BchYRAhUqAJ9YzuHCZQVoVhzYu9WZu+edYZhHgwCgqZKv wLcgTzMkJotwk68/+H2hbgU= =JWLe -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 via CDMA
Doug I've been looking around for a way of delivering notifications Doug directly via a wireless [CDMA] modem. If we had GSM service it Doug seems that this is a very easy thing: get smstools3 and one of Doug any of a number of GSM modems. Thomas Can't you just send an email to some special address of your Thomas provider? Thomas Every phone I ever came across were able to receive SMS trough Thomas email, both in US and Canada. Well, that works great unless the notification I'm trying to send out is that my Internet service is down. Then I need an out of band means of sending the notification. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 config help
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Trey Bachner Sent: Wednesday, May 07, 2008 9:05 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Notifications config help I have notifications setup and working for the most part. I am now trying to address an issue with how the emails are structured. When they are received they not only get sent to the correct address but also have a long list of root directories as recipients. I am running Version 3.0rc2 on Ubuntu Server 7.10. Here is a a list of the additional email addresses being included. [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] I will admit that I am pretty new to using Ubuntu server and the configuration of it's mail services but I cannot find anywhere in the It's not an Ubuntu thing. I'm going to guess that your service/host notification command has a * or something similar at the end. Can you post the relevant command definition? -- Marc - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 for downed services
Marc Powell wrote: On Mar 3, 2008, at 10:56 PM, Artyom Khmelnitsky wrote: Hello everyone, Hello. Did you see that you sent this to the list 6 times so far? I have just configured some service checks for services such as http, smtp, etc.. The commands are defined in the commands.cfg file and then called in the services.cfg file. The following is an example of how a commands.cfg and services.cfg looks: big chop, thanks The contacts are setup correctly since our check_ping which is declared in the hosts.cfg file works perfectly fine and we do get the correct alerts ...for the host definitions. Could someone point me in the right direction of what I'm doing wrong here? I can't seem to get emails if a service is down. It's most likely in my syntax, but I'm not sure where since I get no errors when reloading Nagios. You don't have any contact_groups defined for the services that I can see. no contacts == no notifications. With nagios-2, they're not automagically inherited from the hosts. I expect that nagios is complaining with warnings though in nagios.log or when using -v. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -- marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Marc, Thanks for the explanation. That makes sense. I'll have to recheck that. Once again, apologies for the multiple submissions earlier. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 for downed services
Well, here's what I have in its entirety. My services.cfg looks like this: Generic services template define service{ name generic-service; active_checks_enabled 1; obsess_over_service 1; check_freshness 0; notifications_enabled 1; event_handler_enabled 1; flap_detection_enabled 1; retain_status_information 1; retain_nonstatus_information 1; register 0; } define service{ use generic-service namebasic-service is_volatile 0 check_period24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval1 notification_interval 20 notification_period 24x7 register0 } define service{ use basic-service name dns-service check_command check_dns max_check_attempts 10 check_period 24x7 notification_interval 20 notification_period 24x7 notification_options c,r contact_groups localadmin register 0 } HOST01 ## define service{ use dns-service host_name host01 servicegroups mygroup service_description DNS contact_groups localadmin } So, to me, that looks correct. Host01's service check should inherit everything through 'use dns-service' line. checkcommands.cfg file for DNS: # 'check_dns' command definition define command{ command_namecheck_dns command_line$USER1$/check_dns -H $HOSTADDRESS$ } contactgroups.cfg: define contactgroup{ contactgroup_name localadmin alias Site Administrator members nagios } contacts.cfg: define contact{ contact_name nagios alias admin host_notification_period 24x7 service_notification_period 24x7 service_notification_options w,u,c,r,f host_notification_options d,u,r,f service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [EMAIL PROTECTED] } I believe the above should be correct since I have host and service to be notified by email. Obviously I'm overlooking something. Marc, if you meant something else by setting up the contact_group for services, please let me know. Thanks Marc Powell wrote: On Mar 3, 2008, at 10:56 PM, Artyom Khmelnitsky wrote: Hello everyone, Hello. Did you see that you sent this to the list 6 times so far? I have just configured some service checks for services such as http, smtp, etc.. The commands are defined in the commands.cfg file and then called in the services.cfg file. The following is an example of how a commands.cfg and services.cfg looks: big chop, thanks The contacts are setup correctly since our check_ping which is declared in the hosts.cfg file works perfectly fine and we do get the correct alerts ...for the host definitions. Could someone point me in the right direction of what I'm doing wrong here? I can't seem to get emails if a service is down. It's most likely in my syntax, but I'm not sure where since I get no errors when reloading Nagios. You don't have any contact_groups defined for the services that I can see. no contacts == no notifications. With nagios-2, they're not automagically inherited from the hosts. I expect that nagios is complaining with warnings though in nagios.log or when using -v. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -- marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[EMAIL PROTECTED] wrote on 03/04/2008 04:21:46 PM: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am unable to get nagios to send out notifications. I have postfix and mailx installed. I have checked all my settings and have been unable to get it to work. I check the mail log and it appears that the notification attempts have been made but I cannot receive the notifications. Kevin It truly is vague question day on the list. If the messages are making it to the maillog then it is most likely, in fact I am certain, not a Nagios issue. I suspect it is somewhere in your mailer configuration. Without more information there is precious little I can say. Check the Nagios logs to see if they are sent from Nagios, check the maillog to see what is happening there. If Nagios is sending them and they are making it to your mailer then Nagios is working and your mailer needs troubleshooting. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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 for downed services
On Mar 3, 2008, at 10:56 PM, Artyom Khmelnitsky wrote: Hello everyone, Hello. Did you see that you sent this to the list 6 times so far? I have just configured some service checks for services such as http, smtp, etc.. The commands are defined in the commands.cfg file and then called in the services.cfg file. The following is an example of how a commands.cfg and services.cfg looks: big chop, thanks The contacts are setup correctly since our check_ping which is declared in the hosts.cfg file works perfectly fine and we do get the correct alerts ...for the host definitions. Could someone point me in the right direction of what I'm doing wrong here? I can't seem to get emails if a service is down. It's most likely in my syntax, but I'm not sure where since I get no errors when reloading Nagios. You don't have any contact_groups defined for the services that I can see. no contacts == no notifications. With nagios-2, they're not automagically inherited from the hosts. I expect that nagios is complaining with warnings though in nagios.log or when using -v. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -- marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
In the last couple of months emails to our [EMAIL PROTECTED] accounts have started taking up to 72 hours as well. This seems to be a problem with the cell phone company and not nagios, as switching to [EMAIL PROTECTED] the problem, albeit with the increased headache of SMS. Hope this helps, Scott On 1/28/08, Mike Welsh [EMAIL PROTECTED] wrote: I have inherited the Nagios project at the company that I just started working for and have a few questions. Sometimes when one of the services goes down and notifications are sent out, we will receive them immediately via email but the phone/pager alerts are sometimes taking up to 72 hours to arrive. Is this a result of the Nagios setup or of the cell phone companies text messaging service? If it is our Nagios setup, what can be done to speed this process? If it is the cell phone companies text messaging service, is there anything that can be done? Thanks Mike - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Welsh wrote: | I have inherited the Nagios project at the company that I just started | working for and have a few questions. As a hint. Take the nagios manual and browse through it cover to cover. Then you get a good feel for it and you an dig into the issues in the manual first. I sure there are subject in there that you may not understand even if you read it a couple of times but in those cases you should be able to be rather specific in your questions. (I know I did not have that many questions with Nagios but the whole concept of a CMS like WebGUI for example did not land at all with me untill someone took me on a small tour sitting side by side.) | Sometimes when one of the services goes down and notifications are sent | out, we will receive them immediately via email but the phone/pager | alerts are sometimes taking up to 72 hours to arrive. Is this a result | of the Nagios setup or of the cell phone companies text messaging | service? If it is our Nagios setup, what can be done to speed this | process? If it is the cell phone companies text messaging service, is | there anything that can be done? Check the logs and you will know if the notification was send in time. If it ain't a nagios issue then I am afraid you should considere switching (phone) services. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHnlskBvzDRVjxmYERAuqFAKCbbO6fm00GgA5mTpU/g3e7eBlR3gCdFeX9 W1iK+3bHPYn0T/HA/m3CNzY= =MexG -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
Jerad Riggin wrote: I have a quick question. I have a host template that disables notifications and I have about 53 hosts using it. If the notifications are disabled, why then does it still require that I have values for notification_interval, _period, and _options? Because you can dynamically enable notifications by an external command. That wouldn't be possible for hosts with none of those options. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
What are your notification options set to? In 2.9 the default is none so if you didn't specify them for that service, it won't alert. If that's not the answer, perhaps you can paste your the definitions for your service, contact, and notification command? -Aaron Jerad Riggin wrote: I have a nagios 2.9 install. I have one host with multiple services being monitored. On the 16th the host didn't respond to a ping (the server rebooted), and recovered within 3 minutes. I received an e-mail for both the failure and recovery. I am also monitoring some windows services on the same box using NsClient++. It shows on the same day that after it recovered the TrendMicro virus process was down for 6 hours. I didn't receive an e-mail during this entire time. It is set at 5 max attempts, 3 normal check, and 1 retry with a notification interval of 15 minutes. It should have at least notified once but it didn't. Any ideas? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
define service{ namegeneric-service ; Generic service name 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 (Don't disable) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; 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 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 - NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service namewindows-service is_volatile 0 check_period24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval1 notification_interval 15 notification_period 24x7 register0 } define service{ use windows-service namecheck-trend notification_optionsw,u,c,r check_command check_nt!SERVICESTATE!-d SHOWALL -l ofcservice register0 } define service{ use check-trend service_description TrendMicro contact_groups mis # hostgroup_namewindows-clients host_name lg03 } On Nov 19, 2007 3:11 PM, Aaron Devey [EMAIL PROTECTED] wrote: What are your notification options set to? In 2.9 the default is none so if you didn't specify them for that service, it won't alert. If that's not the answer, perhaps you can paste your the definitions for your service, contact, and notification command? -Aaron Jerad Riggin wrote: I have a nagios 2.9 install. I have one host with multiple services being monitored. On the 16th the host didn't respond to a ping (the server rebooted), and recovered within 3 minutes. I received an e-mail for both the failure and recovery. I am also monitoring some windows services on the same box using NsClient++. It shows on the same day that after it recovered the TrendMicro virus process was down for 6 hours. I didn't receive an e-mail during this entire time. It is set at 5 max attempts, 3 normal check, and 1 retry with a notification interval of 15 minutes. It should have at least notified once but it didn't. Any ideas? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
Forgot to include the list in the CC. Aaron Devey wrote: I don't see any obvious problems with your service definitions. Did you find out TrendMicro was down for 6 hours by reviewing the nagios logs? If so, that means nagios at least saw the service had a problem. If you found out it was down by some other means, perhaps you can check the nagios logs to make sure nagios saw a critical or warning problem with the service. Also, If you have log_notifications turned on, try examining the logs of the timeperiod it was down. If you don't see any attempts to send a notification for TrendMicro on lg03, then it's likely a configuration problem somewhere. Finding it is the hard part. :) The first places I would check are the service_notification_period, service_notification_options, and service_notification_commands for the contacts in the 'mis' group. Follow the service_notification_commands to make sure the command it points to is set up correctly as well. If there are no problems there, I'd make sure there are no service escalations for that service. If that doesn't help, I have no idea what the problem could be. :) Good luck, -Aaron Jerad Riggin wrote: define service{ namegeneric-service ; Generic service name 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 (Don't disable) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; 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 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 - NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service namewindows-service is_volatile 0 check_period24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval1 notification_interval 15 notification_period 24x7 register0 } define service{ use windows-service namecheck-trend notification_optionsw,u,c,r check_command check_nt!SERVICESTATE!-d SHOWALL -l ofcservice register0 } define service{ use check-trend service_description TrendMicro contact_groups mis # hostgroup_namewindows-clients host_name lg03 } - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
I found out via nagios. It said the duration was 6 hours for the outage, and I couldn't match it up with any alerts that were sent to my mailbox. Thanks for the tips On Nov 19, 2007 3:48 PM, Aaron Devey [EMAIL PROTECTED] wrote: I don't see any obvious problems with your service definitions. Did you find out TrendMicro was down for 6 hours by reviewing the nagios logs? If so, that means nagios at least saw the service had a problem. If you found out it was down by some other means, perhaps you can check the nagios logs to make sure nagios saw a critical or warning problem with the service. Also, If you have log_notifications turned on, try examining the logs of the timeperiod it was down. If you don't see any attempts to send a notification for TrendMicro on lg03, then it's likely a configuration problem somewhere. Finding it is the hard part. :) The first places I would check are the service_notification_period, service_notification_options, and service_notification_commands for the contacts in the 'mis' group. Follow the service_notification_commands to make sure the command it points to is set up correctly as well. If there are no problems there, I'd make sure there are no service escalations for that service. If that doesn't help, I have no idea what the problem could be. :) Good luck, -Aaron Jerad Riggin wrote: define service{ namegeneric-service ; Generic service name 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 (Don't disable) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; 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 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 - NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service namewindows-service is_volatile 0 check_period24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval1 notification_interval 15 notification_period 24x7 register0 } define service{ use windows-service namecheck-trend notification_optionsw,u,c,r check_command check_nt!SERVICESTATE!-d SHOWALL -l ofcservice register0 } define service{ use check-trend service_description TrendMicro contact_groups mis # hostgroup_namewindows-clients host_name lg03 } - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 3.0b3 not working.
This problem has been solved. There was no issue at all with my config or setup. What I did was decided to move onto release 3.0b4 from 3. As soon as I started the service after the upgrade my service and host notifications came straight through. On another note. I really do appreciate those of you who read my email and replied trying to assist. This is what mailing lists are about. I do understand that a lot of the time you get people that do not do things themselves and expect all the answers for no work. I am not one of those people. I appreciate the apology Andreas thank you On the other hand, I am confused by Arno's reply. If you read my first and second and then third post you may have not rambled on in a totally unhelpful and I think embarrassing way. On the first point. I was not bitter at not getting any replies, you get that in this situation. I was actually a little annoyed at a post that suggested that I stop wasting everyone's time if I was not prepared to try things. I ended up getting an apology for that which I was grateful. I think that this will be my last post on this list, I have found that only two replies were in good faith, the remainder were.uncalled for. I think we should think to ourselves, if we have nothing good to say, don't reply. On that note I will take my own advice and go off to enjoy my notifications working. - Ken Lee (kenlee) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=4896 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 3.0b3 not working.
Ken Lee wrote: This problem has been solved. There was no issue at all with my config or setup. What I did was decided to move onto release 3.0b4 from 3. As soon as I started the service after the upgrade my service and host notifications came straight through. On another note. I really do appreciate those of you who read my email and replied trying to assist. This is what mailing lists are about. I do understand that a lot of the time you get people that do not do things themselves and expect all the answers for no work. I am not one of those people. I appreciate the apology Andreas thank you On the other hand, I am confused by Arno's reply. If you read my first and second and then third post you may have not rambled on in a totally unhelpful and I think embarrassing way. I believe he fell into the same trap I did, by only reading my reply to you and the mail I replied to. For future reference, replying to your own email to make sure issues haven't just been overlooked would have made me see my error before hitting that send-button the first time, which would have saved me the embarrassment of assuming too much and you the annoyance of getting an undeserved rude reply. Again, my apologies. On the first point. I was not bitter at not getting any replies, you get that in this situation. I was actually a little annoyed at a post that suggested that I stop wasting everyone's time if I was not prepared to try things. I ended up getting an apology for that which I was grateful. I think that this will be my last post on this list, I have found that only two replies were in good faith, the remainder were.uncalled for. I think we should think to ourselves, if we have nothing good to say, don't reply. On that note I will take my own advice and go off to enjoy my notifications working. Wise words. Check back in if you need a hand later :) -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 3.0b3 not working.
Ken Lee wrote: Hi, Just wondering if anyone has any idea's on my issue. It's beta. Don't run it unless you can figure out a few things on your own, or at least do some amount of testing (such as echoing all arguments from your notification-command to a file to make sure it's actually running). -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 3.0b3 not working.
thanks for your wisdom Andreas, perhaps I should purchase Op5 monitor? Not. - Ken Lee (kenlee) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=4893 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 3.0b3 not working.
Hi, 02.10.2007 08:34,, Ken Lee wrote:: thanks for your wisdom Andreas, perhaps I should purchase Op5 monitor? Not. While I can (kind of) understand your bitterness about not getting any replies yet, I think Andreas has made a good point here... Nagios 3 *IS* beta, and it is supposed to be used by people who will actively help getting it fixed. If you need a stable Nagios, use the 2.something versions. While I know that it's usually a good thing to prepare migration to a new version as early as possible, a complete switch to beta software in a production environment is surely not what I recommend to my customers. If you want reliable support, using Op5 would definitely be one of your options. I guess that you could agree on a contract where any sort of malfunctioning will make Op5 very busy fixing your issues... Arno - Ken Lee (kenlee) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=4893 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 3.0b3 not working.
Ken Lee wrote: thanks for your wisdom Andreas, perhaps I should purchase Op5 monitor? Not. Ach, soz. I wrote the first reply on a different computer and failed to see that you actually had tried a few tricks on your own. My apologies. Try this: ---%---%---%--- notify-to-file.sh ---%---%---%--- #!/bin/sh outfile=/tmp/nagios-notify.log echo $outfile echo $@ $outfile echo $outfile env $outfile echo $outfile ---%---%---%--- notify-to-file.sh ---%---%---%--- define command{ command_name notify-to-file command_line /path/to/notify-to-file.sh cut and paste all nagios macros here } define contact{ contact_name always_notified aliasladida service_notification_timeperiod 24x7 service_notification_options c,w,r,f host_notification_options d,u,r host_notification_timeperiod 24x7 contactgroups * host_notification_commandsnotify-to-file service_notification_commands notify-to-file contact_email [EMAIL PROTECTED] } and see what happens. You may have to fiddle with the contact object a bit. I wrote it from memory, and it's still a bit early in the morning for me. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 3.0b3 not working.
On Fri, 2007-09-28 at 04:54 +0200, Ken Lee wrote: Mate, there are no lines similar to this in the messages file, in fact no mention of smtp at all in the latest one. I have also looked in the mail log and the only nagios entries are the tests that I have done. You said you didn't see any SERVICE ALERT lines in /var/log/messages, but did you also check /usr/local/nagios/var/nagios.log? From the configs you posted, that should be where those types of messages go. (You'll have to excuse me if you already checked that file. I just wasn't sure based on your response if you have looked there as well.) -- Rick Mohr Systems Developer Ohio Supercomputer Center - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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