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
[Nagios-users] Notifications
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 -- 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
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
[Nagios-users] Notifications: host vs service notification time
In short, if a host is set with notification from 8am-5pm, and a service that checks that host is set to 24hrs, will a failed service check notify anyone outside of 8am-5pm? In a bit more detail, looking at http://nagios.sourceforge.net/docs/3_0/notifications.html and the paragraph about The fourth host or service filter does the notification only go out on the intersection of the two schedules? Or does the service notification schedule apply for service check and the host notification schedule apply for host check, and the two have nothing to do with each other otherwise? As a concrete example, I want to do a simple check_load on two hosts, one development server and one production server. The dev server, I only want to get paged on check_load between 8a-5p, whereas the production server I want to be paged 24x7. I create two hosts, devserver and prodserver, w/a notification schedule of 8a-5p, and 24x7, respectively for host check. Right now, I also have two separate service checks: check_load_dev and check_load_prod, the first w/a notification schedule of 8a-5p and the other 24x7. I'm basically shooting to only have one check_load service check, it'll clean up my nagios services listing alot, not to have one -dev and one -prod check for the same thing, w/the only difference being the service check's notification time. Thank you, PH == Paul Hirose -- 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
[Nagios-users] Notifications when STATE is OK
Hi - I've had a request to perform a logfile check on a server 3 times a day, the requestor though has stated that they would like an email notification if the plugin runs successfully and as such the return code will be zero (0). To me this seems a little back to front - they want the email notification just for the comfort factor that something was ok in the early hours of the morning when no one is actually in the office to see the monitoring screens. The plugin would for example run at 1:15am and check a logfile for a given string of text and if found return a 0 / OK STATE - if this happens we want an email notification to be sent out. So does anyone know if this is possible or have done something like this and if so how was this done? Thanks - Julian. Julian Grunnell | Unix Analyst, Infrastructure | TD Direct Investing T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 --- Consider the environment: Please don't print this e-mail unless you really need to. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure that they are actually virus-free. Brokerage services provided by TD Direct Investing (Europe) Limited (a subsidiary of The Toronto-Dominion Bank). Authorised and regulated by the Financial Services Authority (FSA registered number 141282), member of the London Stock Exchange and the PLUS market. Incorporated in England and Wales under registration number 2101863. Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX. Banking services provided by TD Bank N.V. authorised and regulated by De Nederlandsche Bank and the Financial Services Authority for UK Business (FSA registered number 216791). Incorporated in the Netherlands and registered as a branch in England and Wales under branch registration number BR006780. -- 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
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
[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 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
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
[Nagios-users] Notifications for Services that are Up
Hello, 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. Thanks, Mike The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. -- 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 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
[Nagios-users] Notifications configuration problem
Hi, I hope I am on the right place and if not please accept my apologies and simply ignore. I am usuing Nagios Core version 3.2.3 with check_mk v1.1.9i7 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? Thanks Michael -- 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 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
[Nagios-users] Notifications and Escalations and Notification_intervals, oh my!
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? Thanks! ~~Mike -- 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 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
[Nagios-users] Notifications on passive service checks
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? -- 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
[Nagios-users] Notifications problem?!?
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 -- 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
[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
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
[Nagios-users] Notifications not being sent
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. Running Nagios Version 3.2.0 And here is a snippet from my configuration files, all hosts/services are set up identically: define contact { contact_name nagiosadmin alias Nagios Admin host_notification_options d,u,r,f,n service_notification_options w,u,c,r,f,n email supp...@mowisp.com pager ch...@mowisp.net host_notification_period 24x7 service_notification_period 24x7 host_notification_commandsnotify-host-by-email service_notification_commands notify-service-by-email } define contactgroup { contactgroup_name admins alias Nagios Administrators members nagiosadmin } define host { name Default_timeperiod_interval_5 register 0 max_check_attempts2 check_interval5 retry_interval1 notification_interval 60 notification_options d,u,r,f,s,n active_checks_enabled 1 passive_checks_enabled0 notifications_enabled 1 check_freshness 0 } define service { name Default_timeperiod_interval_5 register 0 max_check_attempts2 check_interval5 retry_interval1 notification_interval 60 notification_options w,u,c,r,f,s,n active_checks_enabled 1 passive_checks_enabled0 notifications_enabled 1 check_freshness 0 } define timeperiod { timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday00:00-24:00 monday00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday00:00-24:00 saturday 00:00-24:00 } define host { host_name Miller Silo 900 Sector 1 address 10.90.16.1 check_command check-host-alive notification_interval 60 notification_options d,u,r,f,n max_check_attempts3 active_checks_enabled 1 passive_checks_enabled0 notifications_enabled 1 check_period 24x7 notification_period 24x7 contact_groupsadmins parents Miller Silo CMM use Default_timeperiod_interval_5 } define service { service_description check_ping check_command check_ping!20,80%!30,90% host_name Miller Silo 900 Sector 1 check_period
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
[Nagios-users] Notifications
I had the following situation come up last week and cannot figure why it happen, so I am hoping that someone out there can shed some light. I have some services that were in scheduled downtime last Saturday. During the scheduled downtime we had a network issue where our core tried to fail over to the secondary. My question is, why did we get pages from Nagios for services that were in downtime mode when this happened? Management is asking. Thanks, Ed P Please consider the environment before printing this e-mail -- 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
[Nagios-users] notifications not being sent on host down/unreachable
I have a nagios setup consisting of 2 distributed servers and one master using nsca. I'm having an issue where notifications aren't being sent for hosts going down or becoming unreachable but I see them in that state in the GUI and the logs. If a service check fails the notification is sent fine but if the whole box dies I'm never seeing a host down/unreachable alert. In fact there is no notification listed in the notification history so it seems to be a config issue. But I've looked through all of the configs multiple times and just can't figure this out. 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 } define service{ namestandard-service max_check_attempts 3 check_interval 5 retry_interval 3 check_period24x7 notification_interval 10 notification_period 24x7 notification_optionsu,c,r contactsops register0 check_freshness 1 freshness_threshold 300 } define contact{ namestandard-contact host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period24x7 service_notification_period 24x7 host_notification_options d,u,r service_notification_optionsc,u,r host_notification_commands host-notify-by-email service_notification_commands notify-by-email-verbose register0 } -- 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 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
[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
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
[Nagios-users] notifications
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$ } define service { name alarm notification_interval0 notification_period 247 notification_options w,u,r,c,f,s notifications_enabled1 contact_groups staff register 0 } define service { name check max_check_attempts 3 check_interval 2 retry_interval 1 check_period 247 register 0 } define contactgroup { contactgroup_name staff alias XX members XXX } define contact { contact_namedc alias sprint host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period247 service_notification_period 247 host_notification_options d,u,r,f,s service_notification_optionsw,u,c,r,f,s host_notification_commands notify-host-by-email,notify-host-by-pager service_notification_commands notify-service-by-email,notify-service-by-pager email xxx...@xx.org pager xxx...@messaging.sprintpcs.com } define command { command_name notify-host-by-email command_line /usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ** $CONTACTEMAIL$ } define command { command_name notify-host-by-pager command_line /usr/bin/printf %b Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$ | /usr/bin/mail $CONTACTPAGER$ } define command { command_name notify-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\nAdditional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } define command { command_name notify-service-by-pager command_line /usr/bin/printf %b Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/mail $CONTACTPAGER$ } d -- 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 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
[Nagios-users] Notifications severely impacting Nagios performance. Ideas?
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
[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
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
[Nagios-users] Notifications configuration
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? Thanks, B -- 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 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
[Nagios-users] Notifications when CRITICAL-WARNING, but not OK-WARNING
Hi, is it possible, to get notifications, if a service switches from CRITICAL back to WARNING, but not OK to WARNING? Background: We only want critical messages on our pager at night but if a service exeeds a critical threshold and falls back to warning, we get no back to WARNING-message. This especially annoying, if the CRITICAL was not because of a threshold-problem, but because of a temporary refused connection of NRPE... Any ideas? Klaus -- BOFH excuse #270: Someone has messed up the kernel pointers -- 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
[Nagios-users] Notifications only to service contacts, not to host contacts?
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. 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. The contact_group is defined for this host in the host-template. define service{ use service-template hostgroup_name check_zypper service_description check for updates check_command check_nrpe!check_zypper 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? Greetings, Christian -- 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 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
[Nagios-users] notifications not triggered
hello all, I'm using nagios 2.11 on fedora I think I configured correctly (but obviously not) the notification for the host, service and contacts in the web interface Notifications : ENABLED however notifications never trigger I configured to have notifications logged, but I don't see any in the log Is there a way to track more precisely the notification filter process to find out where they are discarded ? many thanks Nicolas -- 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
[Nagios-users] Notifications to unknown user for services with disabled notify
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: 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. All configured contacts have mailadresses and get notified as configured. At least i did not see anything else. I've updated from nagios 3.0.3 to nagios 3.0.6 to get rid of this nasty behavior. But the problem still exists. The following contacts are configured: ServiceCenter, governikusadmins, mschreier , nagiosadmin, neumann, nowatzki, owinkelmann, reiher, reuleke, thegovadm All contacts have mailaddresses. And the following contact-groups: ServiceCenter: neumann , reuleke , ServiceCenter governikus-admins: governikusadmins iuk: owinkelmann , reiher nagios-admins: mschreier ocs-admins: nowatzki ziv-admins: thegovadm The problem happens with at least 8 different Services. Most of them have passive checks enabled, one is an active check. - This does not seem relevant. I've the impression, notifications to $ are only send out, in notification-disabled state. Most of the services have notifications disabled. One has notifications enabled but the service-time is disabling notifications on night time. My notify-by-email command looks like this: notify-service-by-email /bin/sh $USER1$/service_notification.template | /usr/bin/mail -s $NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ is $SERVICESTATE$ on $HOSTALIAS$ $CONTACTEMAIL$ notify-host-by-email /usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$ ($HOSTNAME$)\nState: $HOSTSTATE$ (vorher $LASTHOSTSTATE$)\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /usr/bin/mail -s $NOTIFICATIONTYPE$ Host Alert: $HOSTALIAS$ ($HOSTDISPLAYNAME$) is $HOSTSTATE$ $CONTACTEMAIL$ Why are there notifications being send if disabled for this service? Where does the mailadress $ come from? thanks in advance, Markus @list-moderator: I've posted a similar email yesterday, but my account was not ready jet. Sorry for being impatient. -- Markus Schreier Erfurt, Germany -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger -- 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
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
[Nagios-users] Notifications not working [was: Re: '$' symbol being appended to command_line?]
On 22:56:13 Tue 06-Jan-09, Marc Powell wrote: Does your mail log on the nagios host show the message being received and then sent further on? i created a wrapper shell script around esmtp to allow me to call it with the -X option, which allows one to log all mail traffic to a file. Running the contents of command_line manually whilst su'd to user 'nagios' works, with the log file containing the expected traffic info. But when command_line is called by nagios itself as part of the notification process, the log file is empty (and despite the '-v' [i.e. verbose] option being used in the wrapper script). i then moved on to trying to get notifications via IM - specifically XMPP - using freetalk. This results in the same problem: the contents of command_line work fine when run manually whilst su'd to nagios, but don't when run as part of the notification process. And again, i can confirm that command_line is being called, because: 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$ | cat /var/log/nagios/output.txt results the notification process creating output.txt at the desired location, containing the correct information. Any suggestions as to what's going on here would be very much appreciated! 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
[Nagios-users] Notifications of Children
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. It's my understanding that if nagios can not talk to a service, it then checks to see if the host running the service is up. If the host is down as well, and the host has a parent defined it will then check to see if the parent is running. It will keep following it up the chain and send unreachable notifications for the children and a down for the parent closest to nagios that is down. 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). Why does nagios still send notifications for the children? -- 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 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
[Nagios-users] Notifications if a servicegroup is down on more than 1 server
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
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
[Nagios-users] Notifications based on hostname?
Is there an easy way to segment notifications based on host name? Instead of breaking our host groups into different definitions we would like (love) to be able to say: Jane Doe will get only NYC host service notifications and Admins * or all. Is this possible? Something new for 3.x maybe? -- Stephen P. Luke Sales Engineer TruePath Technologies Inc. Phone: 585-672-5443 Email: [EMAIL PROTECTED] Web: http://www.truepathtechnologies.com -- Stephen P. Luke Sales Engineer TruePath Technologies Inc. Phone: 585-672-5443 Email: [EMAIL PROTECTED] Web: http://www.truepathtechnologies.com - 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
[Nagios-users] Notifications sent out when they shouldn't be
I'm trying to set up two types of notifications, namely emails and sms messages using gnokii. I want the emails to go 24x7, but the sms only to go out of work hours. The problem is, no matter what I try nagios sends out sms messages 24x7. I have tried commenting out the notification_period in the hosts.cfg and services.cfg file. A subset of my config files is below (addresses and names changed). Can anyone see what I've missed? -- hosts.cfg # 'host1' host definition define host{ use generic-host; Name of host template to use host_name host1 parents main_switch alias host1 definition address aaa.bbb.ccc.ddd check_command check-host-alive max_check_attempts 10 notification_interval 0 notification_period24x7 notification_optionsd,u,r } --- services.cfg define service{ use generic-service ; Name of service template to use host_name host1 service_description PING is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval1 contact_groups server-admins notification_interval 120 notification_period24x7 notification_optionsc,r check_command check_ping!250.0,33%!2000.0,80% } -- hostgroups.cfg # 'server-admins group definition define hostgroup{ hostgroup_name server-admins alias Servers members host1,host2 } - contactgroups.cfg # 'server-admins' contact group definition define contactgroup{ contactgroup_name server-admins alias Server Administrators members bob,bobbysms } contacts.cfg # 'bob'' contact definition define contact{ contact_name bob alias bob service_notification_period 24x7 host_notification_period24x7 service_notification_optionsc,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [EMAIL PROTECTED] } # 'bobbysms' contact definition define contact{ contact_namebobsms alias bob service_notification_period ournonworkhours host_notification_periodournonworkhours service_notification_optionsc,r host_notification_options d,r service_notification_commands notify-by-gnokii-queue host_notification_commands host-notify-by-gnokii-queue pager 123456789 } -- timeperiods.cfg # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } # 'ournonworkhours' timeperiod definition define timeperiod{ timeperiod_name ournonworkhours alias Our Non-Work Hours inc. NZ holidays december 25 - january 5 00:00-24:00 ; Christmas february 6 00:00-24:00 ; Waitangi day 2009 april 1000:00-24:00 ; Good Friday 2009 april 1300:00-24:00 ; Easter Monday 2009 april 2500:00-24:00 ; ANZAC day 2009 june 1 00:00-24:00 ; Queens Birthday 2009 october 26 00:00-24:00 ; Labour Day 2009 january 26 00:00-24:00 ; Auckland Ann. 2009 january 19 00:00-24:00 ; Wellington Ann. 2009 november 14 00:00-24:00 ; Canterbury Ann. 2008 sunday 00:00-24:00 monday 00:00-08:00,17:00-24:00 tuesday 00:00-08:00,17:00-24:00 wednesday 00:00-08:00,17:00-24:00 thursday00:00-08:00,17:00-24:00 friday 00:00-08:00,17:00-24:00
[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
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