From sglasser at visp.net Fri Sep 2 02:09:43 2011 From: sglasser at visp.net (Steve Glasser) Date: Thu, 01 Sep 2011 17:09:43 -0700 Subject: servicedependency not working properly Message-ID: <4E601EC7.4000502@visp.net> Hi list, We often have nagios checks time out when servers are under heavy load. One check tests nrpe, if that fails or times out I want notifications for other services on the same host to be suppressed. To do this I am using servicedepenency. Looking at nagios logs I can see that all other checks, both nrpe and remote, are running before test_nrpe. That means, at least for the first cycle of failed checks, that notifications for all services will be sent. Is it possible to control the order in which nagios checks run? Or am I just doing something wrong? Please see sample config below: define servicedependency { host_name vm-foo2 service_description test_nrpe dependent_host_name vm-foo2 dependent_service_description nrpe_check_load,nrpe_check_ntp_time,nrpe_check_root,nrpe_check_swap,nrpe_check_ro_mounts notification_failure_criteria c,u execution_failure_criteria n } Thanks, -- Steve Glasser | System Administrator | visp.net Direct: 541-955-6903 | Fax: 541-471-0821 ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Sep 2 03:44:26 2011 From: patrick.morris at hp.com (Morris, Patrick) Date: Fri, 2 Sep 2011 01:44:26 +0000 Subject: Passive host count In-Reply-To: References: Message-ID: On Wed, Aug 24, 2011 at 11:01 AM, trm asn wrote: > Hi List, > > I have one Active+Passive checks nagios server . Under tac.cgi , the passive host checks count is 0. > > # Active Host / Service Checks:??? 584 / 44 > # Passive Host / Service Checks:??? 0 / 2544 > > Is there any workaround to make this fix. Are you actually sending passive checks for any hosts? That would be somewhat unusual, and I suspect Nagios is reporting those numbers correctly. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6231 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mloiselle at chan-nh.org Fri Sep 2 16:59:11 2011 From: mloiselle at chan-nh.org (Michael Loiselle) Date: Fri, 2 Sep 2011 10:59:11 -0400 Subject: Notifications for Services that are "Up" Message-ID: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Fri Sep 2 19:10:00 2011 From: work at paul.dubuc.org (Paul M Dubuc) Date: Fri, 02 Sep 2011 13:10:00 -0400 Subject: servicedependency not working properly In-Reply-To: <4E601EC7.4000502@visp.net> References: <4E601EC7.4000502@visp.net> Message-ID: <4E610DE8.3080203@paul.dubuc.org> Steve Glasser wrote: > Hi list, > > We often have nagios checks time out when servers are under heavy load. One check tests nrpe, if that fails or times out I want notifications for other services on the same host to be suppressed. To do this I am using servicedepenency. > > Looking at nagios logs I can see that all other checks, both nrpe and remote, are running before test_nrpe. That means, at least for the first cycle of failed checks, that notifications for all services will be sent. > > Is it possible to control the order in which nagios checks run? Or am I just doing something wrong? Please see sample config below: > > define servicedependency { > host_name vm-foo2 > service_description test_nrpe > dependent_host_name vm-foo2 > dependent_service_description nrpe_check_load,nrpe_check_ntp_time,nrpe_check_root,nrpe_check_swap,nrpe_check_ro_mounts > notification_failure_criteria c,u > execution_failure_criteria n > } > > Thanks, I think the problem is that you have 'n' set for the execution_failure_criteria. That means the dependent services will always be checked. Try setting this to 'c,u' instead (same as notification_failure_critera) From the documentation: http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#servicedependency > execution_failure_criteria: This directive is used to specify the > criteria that determine when the dependent service should not be > actively checked. If the master service is in one of the failure > states we specify, the dependent service will not be actively > checked. Valid options are a combination of one or more of the > following (multiple options are separated with commas): o = fail on > an OK state, w = fail on a WARNING state, u = fail on an UNKNOWN > state, c = fail on a CRITICAL state, and p = fail on a pending state > (e.g. the service has not yet been checked). >>>> If you specify n (none) > as an option, the execution dependency will never fail and checks of > the dependent service will always be actively checked (if other > conditions allow for it to be).<<<< Example: If you specify o,c,u in this > field, the dependent service will not be actively checked if the > master service is in either an OK, a CRITICAL, or an UNKNOWN state. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trm.nagios at gmail.com Fri Sep 2 19:38:42 2011 From: trm.nagios at gmail.com (trm asn) Date: Fri, 2 Sep 2011 23:08:42 +0530 Subject: Passive host count In-Reply-To: References: Message-ID: On Fri, Sep 2, 2011 at 7:14 AM, Morris, Patrick wrote: > On Wed, Aug 24, 2011 at 11:01 AM, trm asn wrote: > > Hi List, > > > > I have one Active+Passive checks nagios server . Under tac.cgi , the > passive host checks count is 0. > > > > # Active Host / Service Checks: 584 / 44 > > # Passive Host / Service Checks: 0 / 2544 > > > > Is there any workaround to make this fix. > > Are you actually sending passive checks for any hosts? That would be > somewhat unusual, and I suspect Nagios is reporting those numbers > correctly. > > I have made under the host deceleration , eventhough I am getting passive_host count = 0 active_checks_enabled 0 passive_checks_enabled 1 Any suggestion . /\ dE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-nagios at 5dninja.net Fri Sep 2 20:32:06 2011 From: mike-nagios at 5dninja.net (Mike Lindsey) Date: Fri, 02 Sep 2011 11:32:06 -0700 Subject: Notifications for Services that are "Up" In-Reply-To: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> References: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> Message-ID: <4E612126.1060702@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? 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From terry at cnysupport.com Fri Sep 2 21:07:47 2011 From: terry at cnysupport.com (Terry Carmen) Date: Fri, 02 Sep 2011 15:07:47 -0400 Subject: Notifications for Services that are "Up" In-Reply-To: <4E612126.1060702@5dninja.net> References: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> <4E612126.1060702@5dninja.net> Message-ID: <20110902150747.879704f60j32z9ms@www.cnysupport.com> Quoting Mike Lindsey : > 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Sep 2 21:47:06 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 2 Sep 2011 20:47:06 +0100 Subject: Notifications for Services that are "Up" In-Reply-To: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> References: <76E9CCB928BA9642A9E2C8DEED9F27A82417B77B8B@lhc-ems01.chandom.internal> Message-ID: On 2 September 2011 15:59, Michael Loiselle 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fndabunguye86 at yahoo.fr Sat Sep 3 11:33:56 2011 From: fndabunguye86 at yahoo.fr (Ndabunguye Frederic) Date: Sat, 3 Sep 2011 10:33:56 +0100 (BST) Subject: ssuport Message-ID: <1315042436.35402.YahooMailNeo@web29613.mail.ird.yahoo.com> i have install and configure Nagios. nagios? is starting fine and I am getting no errors at all under logs. On the other hand I am getting the following error via the web interface nagios problen: could not read host and service status information! if some one know the steps to resolve this error he/she can help me thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fndabunguye86 at yahoo.fr Sat Sep 3 11:42:36 2011 From: fndabunguye86 at yahoo.fr (Ndabunguye Frederic) Date: Sat, 3 Sep 2011 10:42:36 +0100 (BST) Subject: demand for information Message-ID: <1315042956.49567.YahooMailNeo@web29614.mail.ird.yahoo.com> nagios need? database in order to monitor router,switch,ftpand smtp thanks for support -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From terry at cnysupport.com Sat Sep 3 14:55:08 2011 From: terry at cnysupport.com (Terry Carmen) Date: Sat, 03 Sep 2011 08:55:08 -0400 Subject: demand for information In-Reply-To: <1315042956.49567.YahooMailNeo@web29614.mail.ird.yahoo.com> References: <1315042956.49567.YahooMailNeo@web29614.mail.ird.yahoo.com> Message-ID: <20110903085508.25035dxsox2o9boc@www.cnysupport.com> Quoting Ndabunguye Frederic : > nagios need? database in order to monitor router,switch,ftpand smtp > thanks for support > Nagios does not require an external database. However, if you want to keep your data in a database, look here: http://exchange.nagios.org/directory/Addons/Database-Backends Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at tuxforge.com Sat Sep 3 17:44:58 2011 From: nagios at tuxforge.com (Daniele "Lethe" Catanesi) Date: Sat, 03 Sep 2011 17:44:58 +0200 Subject: ssuport In-Reply-To: <1315042436.35402.YahooMailNeo@web29613.mail.ird.yahoo.com> References: <1315042436.35402.YahooMailNeo@web29613.mail.ird.yahoo.com> Message-ID: <4E624B7A.3000504@tuxforge.com> On 09/03/2011 11:33 AM, Ndabunguye Frederic wrote: > > i have install and configure Nagios. nagios is starting fine Are you using the init script to start Nagios? > and I am getting no errors at all under logs. > On the other hand I am getting the following error via the > web interface > nagios problen: could not read host and service status information! if > some one know the steps to resolve this error he/she can help me thanks > Having a bit more of information would help (OS, Nagios Version and so on) anyhow what comes on top of my mind reading the error is verifying that Nagios process is actually running as from the error you are getting it seems to me that is not started at all a "ps -ef | grep nagios" should quickly tell you. Daniele. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at catsnest.co.uk Sun Sep 4 00:06:49 2011 From: mail at catsnest.co.uk (mail at catsnest.co.uk) Date: Sat, 3 Sep 2011 23:06:49 +0100 Subject: ssuport In-Reply-To: <1315042436.35402.YahooMailNeo@web29613.mail.ird.yahoo.com> References: <1315042436.35402.YahooMailNeo@web29613.mail.ird.yahoo.com> Message-ID: On Sat, Sep 3, 2011 at 10:33 AM, Ndabunguye Frederic wrote: > > i have install and configure Nagios. nagios? is starting fine and I am > getting no errors at all under logs. > On the other hand I am getting the following error via the web interface > nagios problen: could not read host and service status information! if some > one know the steps to resolve this error he/she can help me thanks > > Try adding the httpd user to the Nagios group... Ritchie, -- <-- http://23.me.uk/2 --> <--Time flies like an arrow; fruit flies like a banana. --> > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Sun Sep 4 02:19:23 2011 From: a31modela at hotmail.com (steve f) Date: Sat, 3 Sep 2011 20:19:23 -0400 Subject: Email notifications not getting Out Message-ID: Running nagios Core on SUSE linux 11. Nothing changed.... at LEAST to Nagios, and everything was working fine. Had an alert happen but never got an email for the alert. Verified in nagios.log, the notification was created but nothing ever shows up in /var/log/mail. Last time I show something in /var/log/mail, was Aug 23. Here is notification in nagios.log : [1314995299] SERVICE NOTIFICATION: nagiosadmin;localhost;Check BI Web;CRITICAL;notify-service-by-email;RESPONSE: CRITICAL - XXXXXXX.pepboys.com/ddddd/ does not contain any data ( I tweaked the check to fail on purpose ) And as I said, nothing goes into /var/log/mail and our sendmail does not see the email request. I can send a mail message from the command line from the nagios server with no problem using the mail command. I have done a verify & restart of Nagios but still no email. Is there anything else I can check from the Nagios side as to why the notification is not getting out? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From terry at cnysupport.com Sun Sep 4 03:53:45 2011 From: terry at cnysupport.com (Terry Carmen) Date: Sat, 03 Sep 2011 21:53:45 -0400 Subject: Email notifications not getting Out In-Reply-To: References: Message-ID: <20110903215345.18266oeqmt5506ko@www.cnysupport.com> > Verified in nagios.log, the notification was created but nothing ever shows > up in /var/log/mail.? Last time I show something in /var/log/mail, > was Aug 23. What does your? etc/objects/commands.cfg notify-service-by-email command definition look like? What does "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" say when it runs? Terry -- Terry Carmen CNY Support, LLC Web. Database. Business. http://www.cnysupport.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dey.ranjib at gmail.com Sun Sep 4 07:59:54 2011 From: dey.ranjib at gmail.com (ranjib dey) Date: Sun, 4 Sep 2011 11:29:54 +0530 Subject: Email notifications not getting Out In-Reply-To: <20110903215345.18266oeqmt5506ko@www.cnysupport.com> References: <20110903215345.18266oeqmt5506ko@www.cnysupport.com> Message-ID: also, check if sendmail is running, On Sun, Sep 4, 2011 at 7:23 AM, Terry Carmen wrote: > ** > > > Verified in nagios.log, the notification was created but nothing ever > shows > > up in /var/log/mail. Last time I show something in /var/log/mail, > > was Aug 23. > > What does your etc/objects/commands.cfg notify-service-by-email command > definition look like? > > What does "/usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg" say when it runs? > > Terry > > > > -- > Terry Carmen > CNY Support, LLC > Web. Database. Business. > http://www.cnysupport.com > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Sun Sep 4 11:53:20 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Sun, 4 Sep 2011 12:53:20 +0300 Subject: check_snmp_int - No usable data on file Message-ID: Hello, I am using check_snmp_plugin to monitor a couple of switches. The command template I use is: $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $USER5$ -2 -r -n $ARG1$ -fY -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$ And the particular one for a certain port/device is: # Monitor bandwidth and port status - port 23 define service{ use generic-service ; Inherit values from a template Host_name switch1 Service_description Port 23. Check_command check_snmp_int!"GigabitEthernet0/23"!600000,600000,100,100,100000,10!800000,800000,200,200,200000,20!11 Normal_check_interval 2 ; Check the service every 2 units under normal conditions retry_check_interval<-->1 ; Re-check the service every one unit until its final/hard state is determined } The interval length in nagios.cfg is set to: interval_length=10 Can you please let me know a good value for the -d parameter in order to tweak the check_snmp_int.pl script properly? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Sun Sep 4 11:42:05 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Sun, 4 Sep 2011 12:42:05 +0300 Subject: check_snmp_int - No usable data on file Message-ID: Hello, I am using check_snmp_plugin to monitor a couple of switches. The command template I use is: $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $USER5$ -2 -r -n $ARG1$ -fY -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$ And the particular one for a certain port/device is: # Monitor bandwidth and port status - port 23 define service{ use generic-service ; Inherit values from a template Host_name switch1 Service_description Port 23. Check_command check_snmp_int!"GigabitEthernet0/23"!600000,600000,100,100,100000,10!800000,800000,200,200,200000,20!11 Normal_check_interval 2 ; Check the service every 2 units under normal conditions retry_check_interval<-->1 ; Re-check the service every one unit until its final/hard state is determined } The interval length in nagios.cfg is set to: interval_length=10 Can you please let me know a good value for the -d parameter in order to tweak the check_snmp_int.pl script properly? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sun Sep 4 12:25:52 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Sun, 4 Sep 2011 11:25:52 +0100 Subject: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: On 4 September 2011 10:53, wrote: > Hello, > > I am using check_snmp_plugin to monitor a couple of switches. The command > template I use is: > > ?$USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $USER5$ -2 -r -n $ARG1$ -fY > -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$ > > And the particular one for a certain port/device is: > > # Monitor bandwidth and port status - port 23 > define service{ > ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ?generic-service ? ? ? ? ? ? ? ?; Inherit > values from a template > ? ? ? ? Host_name ? ? ? ? ? ? ? ?switch1 > ? ? ? ? Service_description ? ? ? ?Port 23. > ? ? ? ? Check_command > ?check_snmp_int!"GigabitEthernet0/23"!600000,600000,100,100,100000,10!800000,800000,200,200,200000,20!11 > ? ? ? ? Normal_check_interval ? ? ? ?2 ? ? ? ? ? ? ? ?; Check the service > every 2 units under normal conditions > ? ? ? ? retry_check_interval<-->1 ? ? ? ? ? ? ? ?; Re-check the service > every one unit until its final/hard state is determined > ? ? ? ? } > > > The interval length in nagios.cfg is set to: > > interval_length=10 > > Can you please let me know a good value for the -d parameter in order to > tweak the check_snmp_int.pl script properly? I believe that with check_interval of 2 minutes, you need -d 120. With the plugin working in this way, you need to set your retry_interval to be the same as your check_interval, otherwise the -d value won't be correct for the interval when the check starts retrying! Note that in Nagios 3, the syntax "normal_check_interval" and "retry_check_interval" is deprecated. The equivalent directives are now simply "check_interval" and "retry_interval". See: http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service If you are still having problems with the "No usable data on file" error, make sure the files created by the plugin are writeable by the user 'nagios' (if I recall they are under /tmp or maybe /var/tmp - I don't have my nagios system to hand to check for sure). If you have been testing the plugin from the command line while logged in as another user, it's quite likely the files will have the wrong ownership/permissions in which case you can simply delete them to let nagios recreate them next time it runs the plugin. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Sun Sep 4 12:42:47 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Sun, 4 Sep 2011 13:42:47 +0300 Subject: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: Hello Jim and thanks for your answer! I have double checked the files in /tmp created by the script and they are all owned by nagios group and nagios user, so fully writeable. The actual check interval of the port is 20 seconds ( I check every 2 units and the time unit is 10 seconds in the nagios.cfg). The correct value for the plugin time is in this case 20s? I will give it a try with making the normal check interval and retry interval at the same value. Cheers! Von: Jim Avery An: Nagios Users List Datum: 09/04/2011 01:27 PM Betreff: Re: [Nagios-users] check_snmp_int - No usable data on file > Hello, > > I am using check_snmp_plugin to monitor a couple of switches. The command > template I use is: > > $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $USER5$ -2 -r -n $ARG1$ -fY > -kqB -g -w $ARG2$ -c $ARG3$ -d $ARG4$ > > And the particular one for a certain port/device is: > > # Monitor bandwidth and port status - port 23 > define service{ > use generic-service ; Inherit > values from a template > Host_name switch1 > Service_description Port 23. > Check_command > check_snmp_int!"GigabitEthernet0/23"!600000,600000,100,100,100000,10!800000,800000,200,200,200000,20!11 > Normal_check_interval 2 ; Check the service > every 2 units under normal conditions > retry_check_interval<-->1 ; Re-check the service > every one unit until its final/hard state is determined > } > > > The interval length in nagios.cfg is set to: > > interval_length=10 > > Can you please let me know a good value for the -d parameter in order to > tweak the check_snmp_int.pl script properly? I believe that with check_interval of 2 minutes, you need -d 120. With the plugin working in this way, you need to set your retry_interval to be the same as your check_interval, otherwise the -d value won't be correct for the interval when the check starts retrying! Note that in Nagios 3, the syntax "normal_check_interval" and "retry_check_interval" is deprecated. The equivalent directives are now simply "check_interval" and "retry_interval". See: http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service If you are still having problems with the "No usable data on file" error, make sure the files created by the plugin are writeable by the user 'nagios' (if I recall they are under /tmp or maybe /var/tmp - I don't have my nagios system to hand to check for sure). If you have been testing the plugin from the command line while logged in as another user, it's quite likely the files will have the wrong ownership/permissions in which case you can simply delete them to let nagios recreate them next time it runs the plugin. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sun Sep 4 13:32:09 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Sun, 4 Sep 2011 12:32:09 +0100 Subject: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: On 4 September 2011 11:42, wrote: > Hello Jim and thanks for your answer! > > I have double checked the files in /tmp created by the script and they are > all owned by nagios group and nagios user, so fully writeable. > > The actual check interval of the port is 20 seconds ( I check every 2 units > and the time unit is 10 seconds in the nagios.cfg). The correct value for > the plugin time is in this case 20s? I see, yes, in that case you should use "-d 20". > I will give it a try with making the normal check interval and retry > interval at the same value. I think that will most likely solve your problem. Cheers, Jim ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Mon Sep 5 08:49:48 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Mon, 5 Sep 2011 09:49:48 +0300 Subject: Antwort: Re: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: Hello again Jim, I have followed your suggestion and seems better. However, from time to time, for short periods ( which take 1-2 checks) the status flaps to unknown and afterwards gets back to normal. Any more clues, please? Thanks! Von: Jim Avery An: Nagios Users List Datum: 09/04/2011 02:34 PM Betreff: Re: [Nagios-users] Antwort: Re: check_snmp_int - No usable data on file > Hello Jim and thanks for your answer! > > I have double checked the files in /tmp created by the script and they are > all owned by nagios group and nagios user, so fully writeable. > > The actual check interval of the port is 20 seconds ( I check every 2 units > and the time unit is 10 seconds in the nagios.cfg). The correct value for > the plugin time is in this case 20s? I see, yes, in that case you should use "-d 20". > I will give it a try with making the normal check interval and retry > interval at the same value. I think that will most likely solve your problem. Cheers, Jim ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Sep 5 09:09:57 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 5 Sep 2011 08:09:57 +0100 Subject: Antwort: Re: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: On 5 September 2011 07:49, wrote: > Hello again Jim, > > I have followed your suggestion and seems better. However, from time to > time, for short periods ( which take 1-2 checks) the status flaps to unknown > and afterwards gets back to normal. Any more clues, please? > > Thanks! The documentation page seems to suggest that the -d option should be a slightly longer than the check interval. http://nagios.manubulon.com/snmp_int.html If there's anything in your nagios system which will cause the nagios daemon to do something other than scheduling checks for a few seconds, then with a 10s standard interval it wouldn't take much to throw the plugin off kilter. I don't know for sure which activities would do this, but suspect one would be writing to the status.dat file and another might be processing the command file. Having said that, with the check_snmp_int.pl plugin allowing up to 300% of the -d value before complaining, it should be fairly forgiving. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Mon Sep 5 09:13:59 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Mon, 5 Sep 2011 10:13:59 +0300 Subject: Antwort: Re: Antwort: Re: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: So your suggestion is to have the -d option set to 60s for a 20s check interval? Von: Jim Avery An: Nagios Users List Datum: 09/05/2011 10:11 AM Betreff: Re: [Nagios-users] Antwort: Re: Antwort: Re: check_snmp_int - No usable data on file > Hello again Jim, > > I have followed your suggestion and seems better. However, from time to > time, for short periods ( which take 1-2 checks) the status flaps to unknown > and afterwards gets back to normal. Any more clues, please? > > Thanks! The documentation page seems to suggest that the -d option should be a slightly longer than the check interval. http://nagios.manubulon.com/snmp_int.html If there's anything in your nagios system which will cause the nagios daemon to do something other than scheduling checks for a few seconds, then with a 10s standard interval it wouldn't take much to throw the plugin off kilter. I don't know for sure which activities would do this, but suspect one would be writing to the status.dat file and another might be processing the command file. Having said that, with the check_snmp_int.pl plugin allowing up to 300% of the -d value before complaining, it should be fairly forgiving. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Sep 5 09:33:33 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 5 Sep 2011 08:33:33 +0100 Subject: Antwort: Re: Antwort: Re: Antwort: Re: check_snmp_int - No usable data on file In-Reply-To: References: Message-ID: On 5 September 2011 08:13, wrote: > So your suggestion is to have the -d option set to 60s for a 20s check > interval? No. The plugin will allow an interval of up to 300% above the -d value, but only 10% below the -d value. This implies you could go up to -d = 21 . This would mean it will allow a gap of up to 63 seconds rather than 60. I suppose to be honest that's not likely to make much difference to you! I would look at what it is in your config which might cause the nagios daemon to stop running scheduled checks for 60 seconds or more. One indicator which is useful in assessing this sort of thing is the service check latency. Moving status.dat on to a ramdisk might help - it didn't work for me, as I suffered locking issues, but with a different Linux distro it might work better. I was using Ubuntu 8.04 LTS. Alternatively you could maybe look at running these checks using check_snmp instead. The very latest version has the options you need to record the delta rather than absolute values. If you can increase the check interval even only a little that would help. I use a 5 minute check interval for these interface checks, and usually only see the same errors whenever I reload the Nagios config. You might also consider configuring Nagios in a hierarchical setup, with each slave Nagios server handling fewer checks. I would think DNX would be an easy way to set that up ( http://dnx.sourceforge.net/ ), but I've not tried it yet myself. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rosenski at wave-computer.de Mon Sep 5 09:34:51 2011 From: rosenski at wave-computer.de (Axel Rosenski) Date: Mon, 5 Sep 2011 09:34:51 +0200 Subject: Different notification behaviour depending on daytime? Message-ID: <201109050934.52048.rosenski@wave-computer.de> Hi, I want to know whats the "best" or common way to get different notification behaviour depending on the time of day. For some checks I want to receive warning notifications during business hours but outside normal working hours I only want critical notifications. Do I need a second service definition for each check or can this be done with different contact groups? Any help is appreciated. Regards, Axel Rosenski -- Axel Rosenski - Administration - ______________________________ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Gesch?ftsf?hrer: Carsten Kellmann Registergericht Gie?en HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosenski at wave-computer.de http://www.wave-computer.de ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Mon Sep 5 09:47:13 2011 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Mon, 5 Sep 2011 17:47:13 +1000 Subject: Different notification behaviour depending on daytime? In-Reply-To: <201109050934.52048.rosenski@wave-computer.de> References: <201109050934.52048.rosenski@wave-computer.de> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB6091FCD3BB@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Axel Rosenski [mailto:rosenski at wave-computer.de] > Sent: Monday, 5 September 2011 5:35 PM > To: Nagios Users List > Subject: [Nagios-users] Different notification behaviour depending on > daytime? > > Hi, > > I want to know whats the "best" or common way to get different > notification > behaviour depending on the time of day. > > For some checks I want to receive warning notifications during business > hours but outside normal working hours I only want critical notifications. > > Do I need a second service definition for each check or can this be done > with different contact groups? > Any help is appreciated. > > > Regards, > Axel Rosenski Same service definition is fine, but extra contacts. The extra contacts are your pager/SMS/whatever *_notification_commands, but with *_notification_period set to your out of hours' time period. Stuart ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Alan.Pipitone.Guest at saipem.com Mon Sep 5 10:32:41 2011 From: Alan.Pipitone.Guest at saipem.com (Pipitone Alan (External)) Date: Mon, 5 Sep 2011 10:32:41 +0200 Subject: Observing latency In-Reply-To: References: Message-ID: Hi All Let me tell you our experience about Nagios service latency. We had about 1000 hosts and 6500 services on one Nagios server. Our service latency was about 600 seconds for each service (!!!). Also, some services were scheduled in the future, three/four days after the regular scheduled check interval (!!!). We read the guide "Tuning Nagios For Maximum Performance" but we couldn't solve the problem. Then (after many tests) we disable pnp4nagios for all services. The latency decreased from 600 seconds to about 15 seconds. This extraordinary result can be explained by the fact that we use pnp4nagios synchronously. Probably our disk (or the controller) couldn't handle the workload (but our tests didn't reveal any details on this critical aspect). Now we have a total of 1200 hosts and 7000 services, we use Merlin to distribuite Nagios between two server and we use pnp4nagios asynchronous. Now our latency is about 0.3 seconds and there are no more services scheduled in the future. I hope this helps. Bye Alan Pipitone http://www.alan-pipitone.com/ -----Original Message----- From: Jim Avery [mailto:jim at jimavery.me.uk] Sent: mercoled? 31 agosto 2011 13:20 To: Nagios Users List Subject: Re: [Nagios-users] Observing latency On 31 August 2011 09:13, trm asn wrote: > Please suggest , how I can reduce the latency .. One not-so-obvious thing I found that reduces latency on my heavily-loaded system is to stop and then start the Nagios daemon (don't just do a reload) once a week or so. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ****************************************************************************************** CONFIDENTIALITY NOTICE This e-mail and any attachment are confidential and may be privileged or otherwise protected from disclosure. It is solely intended for the person(s) named above. If you are not the intended recipient, any reading, use, disclosure, copying or distribution of all or parts of this e-mail or associated attachments is strictly prohibited. If you are not an intended recipient, please notify the sender immediately by replying to this message or by telephone and delete this e-mail and any attachments permanently from your 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Mon Sep 5 13:53:56 2011 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Mon, 5 Sep 2011 11:53:56 +0000 Subject: Observing latency In-Reply-To: References: Message-ID: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> We also had to do some tuning with our pnp4nagios for latency. I ended up using a ramdisk for the perfdata folder (that it uses while processing data, not the rrd's) and modified it to run with a nice of 20 to make sure that Nagios always had enough priority to get its work done (which is already running with a nice of -15) and sometimes pnp lags a little but it's still acceptable. Dan -----Original Message----- From: Pipitone Alan (External) [mailto:Alan.Pipitone.Guest at saipem.com] Sent: Monday, September 05, 2011 3:33 AM To: Nagios Users List Subject: Re: [Nagios-users] Observing latency Hi All Let me tell you our experience about Nagios service latency. We had about 1000 hosts and 6500 services on one Nagios server. Our service latency was about 600 seconds for each service (!!!). Also, some services were scheduled in the future, three/four days after the regular scheduled check interval (!!!). We read the guide "Tuning Nagios For Maximum Performance" but we couldn't solve the problem. Then (after many tests) we disable pnp4nagios for all services. The latency decreased from 600 seconds to about 15 seconds. This extraordinary result can be explained by the fact that we use pnp4nagios synchronously. Probably our disk (or the controller) couldn't handle the workload (but our tests didn't reveal any details on this critical aspect). Now we have a total of 1200 hosts and 7000 services, we use Merlin to distribuite Nagios between two server and we use pnp4nagios asynchronous. Now our latency is about 0.3 seconds and there are no more services scheduled in the future. I hope this helps. Bye Alan Pipitone http://www.alan-pipitone.com/ -----Original Message----- From: Jim Avery [mailto:jim at jimavery.me.uk] Sent: mercoled? 31 agosto 2011 13:20 To: Nagios Users List Subject: Re: [Nagios-users] Observing latency On 31 August 2011 09:13, trm asn wrote: > Please suggest , how I can reduce the latency .. One not-so-obvious thing I found that reduces latency on my heavily-loaded system is to stop and then start the Nagios daemon (don't just do a reload) once a week or so. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ****************************************************************************************** CONFIDENTIALITY NOTICE This e-mail and any attachment are confidential and may be privileged or otherwise protected from disclosure. It is solely intended for the person(s) named above. If you are not the intended recipient, any reading, use, disclosure, copying or distribution of all or parts of this e-mail or associated attachments is strictly prohibited. If you are not an intended recipient, please notify the sender immediately by replying to this message or by telephone and delete this e-mail and any attachments permanently from your 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Sep 5 14:28:43 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 5 Sep 2011 13:28:43 +0100 Subject: Observing latency In-Reply-To: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> References: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: On 5 September 2011 12:53, Daniel Wittenberg wrote: > We also had to do some tuning with our pnp4nagios for latency. ?I ended up using a ramdisk for the perfdata folder (that it uses while processing data, not the rrd's). > Thanks for that - good idea I must try it. I don't have a problem with latency at the moment, but I suspect that anything I can do to improve disk performance will improve the responsiveness of the Nagios CGIs. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Mon Sep 5 14:40:38 2011 From: pitchfork at ederdrom.de (=?iso-8859-1?Q?J=F6rg_Linge?=) Date: Mon, 5 Sep 2011 14:40:38 +0200 Subject: Observing latency In-Reply-To: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> References: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: Am 05.09.2011 um 13:53 schrieb Daniel Wittenberg: > We also had to do some tuning with our pnp4nagios for latency. I ended up using a ramdisk for the perfdata folder (that it uses while processing data, not the rrd's) and modified it to run with a nice of 20 to make sure that Nagios always had enough priority to get its work done (which is already running with a nice of -15) and sometimes pnp lags a little but it's still acceptable. OT: using the rrdcached might be a better solution. Joerg ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagiostool at gmail.com Mon Sep 5 16:13:56 2011 From: nagiostool at gmail.com (nag ios) Date: Mon, 5 Sep 2011 19:43:56 +0530 Subject: Email notifications not getting Out In-Reply-To: References: Message-ID: The error which i'm getting has been attached please take a look and let me know any thing to be changed I have attached both my error and mail settings screenshots please check them out -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.jpeg Type: image/jpeg Size: 117662 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mail_settings.jpeg Type: image/jpeg Size: 160306 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.friedrich at univie.ac.at Mon Sep 5 16:30:50 2011 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Mon, 05 Sep 2011 16:30:50 +0200 Subject: Email notifications not getting Out In-Reply-To: References: Message-ID: <4E64DD1A.3050603@univie.ac.at> nag ios wrote: > The error which i'm getting has been attached please take a look and > let me know > any thing to be changed > > I have attached both my error and mail settings screenshots please > check them out 1.) do not attach images on this mailinglist 2.) since this is nagiosxi related, refer to their support at support.nagios.com > > > > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Icinga Core& IDOUtils Developer http://www.icinga.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxs at webwizarddesign.com Mon Sep 5 16:40:27 2011 From: maxs at webwizarddesign.com (Max Schubert) Date: Mon, 5 Sep 2011 10:40:27 -0400 Subject: Observing latency In-Reply-To: References: <4288A518A157EC4C8873FEE74F778BF0030307@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: RAM disk for the NPCD queue + rrdcached is a necessity for scaling a PNP backend - PNP in asynchonous mode is a must as well, preferrably on a server other than the primary pollers - for example, use merlin to distribute events and then designate one server or more to purely processing PNP's RRD-based graphs. - Max ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Tue Sep 6 07:52:31 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Tue, 6 Sep 2011 08:52:31 +0300 Subject: Aggregate multiple interfaces/services/hosts Message-ID: Hello, I would like to monitor a couple of devices ( servers and witches) that are connected to the network via at least two interfaces. Nagios server is connected as well over two interfaces to the LAN. My question is: Is there any way to aggregate the monitored services/hosts into a single object that gives the critical status only when all aggregated objects have this status? For example: the Nagios system has two network interfaces: 192.168.0.1 and 192.168.1.1. I would like to monitor a DNS server connected to the network via 192.168.0.2 and 192.168.1.2 IP addresses. Of course I can reach the DNS server from Nagios two ways: either via the 192.168.0.1 interface or via 192.168.1.1. My target is to issue a warning/critical signal only when Nagios cannot query the DNS server on none of the IP addresses. Same should apply for hosts and network equipment and the service group should also provide performance data. I have already gave a shot with Nagios BPI, but unfortunately I cannot use the service group to map it in PNP4Nagios. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Sep 6 18:25:33 2011 From: a31modela at hotmail.com (steve f) Date: Tue, 6 Sep 2011 12:25:33 -0400 Subject: Email notifications not getting Out - RESOLVED In-Reply-To: References: , <20110903215345.18266oeqmt5506ko@www.cnysupport.com>, Message-ID: Appreciate the support for this problem. Got it fixed and wanted to put the info here hoping it helps someone in the future. Problem was a missing double quote from the notify-service-by-email command. I could see the Notification being generated in nagios.log but thats all. >From the command line as the Nagios user, I ran the following exactly as is with the addition of a $CONTACTEMAIL$: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $ SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAddition al Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $S ERVICESTATE$ **" $CONTACTEMAIL$ The result was a " > " prompt. I the ran the same command up to the pipe for/usr/sbin/mail and still got the " > " prompt. Once I added the " after the n$SERVICEOUTPUT$\n", it worked. I did run a verify a couple of times (/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ) during troubleshooting but the verify did not pick up the error. Thanks Again for the help, hope this helps someone in the future. Steve Date: Sun, 4 Sep 2011 11:29:54 +0530 From: dey.ranjib at gmail.com To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Email notifications not getting Out also, check if sendmail is running, On Sun, Sep 4, 2011 at 7:23 AM, Terry Carmen wrote: > Verified in nagios.log, the notification was created but nothing ever shows > up in /var/log/mail. Last time I show something in /var/log/mail, > was Aug 23. What does your etc/objects/commands.cfg notify-service-by-email command definition look like? What does "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" say when it runs? Terry -- Terry Carmen CNY Support, LLC Web. Database. Business. http://www.cnysupport.com ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ 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 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joehoot at gmail.com Tue Sep 6 18:36:06 2011 From: joehoot at gmail.com (Joe Hoot) Date: Tue, 6 Sep 2011 12:36:06 -0400 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 Message-ID: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> Hi all, I recently upgraded from Nagios Core 3.0.2 to 3.3.1. Once upgraded, I noticed that my nagiosgraph wasn't graphing data from some custom checks that I wrote. After further investigation, it turns out that nagiosgraph isn't seeing of the output from my check commands. This information used to go to my service_perfdata_file. I have the following template setup: service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ And that has worked just fine for nagiosgraph to pull that information and parse it in order to fill rrd data. But now that I've upgraded to 3.3.1, I don't appear to be seeing any of my custom commands (ones that don't have perfdata) in that file. And upon investigating more, if I include perfdata in my custom commands, it sends to that perfdata_file just fine. but if the performance data isn't there, it doesn't show up in that file. Is this a bug? Thanks in advance for any assistance. Joe ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.friedrich at univie.ac.at Tue Sep 6 19:01:40 2011 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 06 Sep 2011 19:01:40 +0200 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 In-Reply-To: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> References: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> Message-ID: <4E6651F4.3020206@univie.ac.at> On 06.09.2011 18:36, Joe Hoot wrote: > Hi all, > > I recently upgraded from Nagios Core 3.0.2 to 3.3.1. Once upgraded, I noticed that my nagiosgraph wasn't graphing data from some custom checks that I wrote. After further investigation, it turns out that nagiosgraph isn't seeing of the output from my check commands. This information used to go to my service_perfdata_file. > > I have the following template setup: > > service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ > > > And that has worked just fine for nagiosgraph to pull that information and parse it in order to fill rrd data. But now that I've upgraded to 3.3.1, I don't appear to be seeing any of my custom commands (ones that don't have perfdata) in that file. And upon investigating more, if I include perfdata in my custom commands, it sends to that perfdata_file just fine. but if the performance data isn't there, it doesn't show up in that file. nagios 3.3.1 does not process empty perfdata macros anymore which causes those results not to be put onto the perfdata channel. so all your plugins not returning perfdata won't even be put over there where nagiosgraph and other addons might calculate their perfdata from the output themselves. > > Is this a bug? i consider it a bug as it breaks compatibility. previous discussions on nagios-* mailinglists can be found in the archive. dunno when this will get fixed. http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg36537.html http://comments.gmane.org/gmane.network.nagios.devel/8128 i'd suggest downgrading onto 3.2.3 and wait for a properly tested 3.3.x release. kind regards, Michael -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joehoot at gmail.com Tue Sep 6 21:35:47 2011 From: joehoot at gmail.com (Joe Hoot) Date: Tue, 6 Sep 2011 15:35:47 -0400 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 In-Reply-To: <4E6651F4.3020206@univie.ac.at> References: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> <4E6651F4.3020206@univie.ac.at> Message-ID: Yep. I had seen your post earlier and was hoping that there was an additional variable that I could add to tell nagios to include non-perfdata information in that file. This is a shame. In the past, my Nagios upgrades have went very smoothly. Thanks for the reply. I am now happily up and running again on 3.2.3 On Sep 6, 2011, at 1:01 PM, Michael Friedrich wrote: > > > On 06.09.2011 18:36, Joe Hoot wrote: >> Hi all, >> >> I recently upgraded from Nagios Core 3.0.2 to 3.3.1. Once upgraded, I noticed that my nagiosgraph wasn't graphing data from some custom checks that I wrote. After further investigation, it turns out that nagiosgraph isn't seeing of the output from my check commands. This information used to go to my service_perfdata_file. >> >> I have the following template setup: >> >> service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ >> >> >> And that has worked just fine for nagiosgraph to pull that information and parse it in order to fill rrd data. But now that I've upgraded to 3.3.1, I don't appear to be seeing any of my custom commands (ones that don't have perfdata) in that file. And upon investigating more, if I include perfdata in my custom commands, it sends to that perfdata_file just fine. but if the performance data isn't there, it doesn't show up in that file. > > nagios 3.3.1 does not process empty perfdata macros anymore which causes > those results not to be put onto the perfdata channel. so all your > plugins not returning perfdata won't even be put over there where > nagiosgraph and other addons might calculate their perfdata from the > output themselves. > >> >> Is this a bug? > > i consider it a bug as it breaks compatibility. previous discussions on > nagios-* mailinglists can be found in the archive. dunno when this will > get fixed. > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg36537.html > http://comments.gmane.org/gmane.network.nagios.devel/8128 > > i'd suggest downgrading onto 3.2.3 and wait for a properly tested 3.3.x > release. > > kind regards, > Michael > > -- > DI (FH) Michael Friedrich > > Vienna University Computer Center > Universitaetsstrasse 7 A-1010 Vienna, Austria > > email: michael.friedrich at univie.ac.at > phone: +43 1 4277 14359 > mobile: +43 664 60277 14359 > fax: +43 1 4277 14338 > web: http://www.univie.ac.at/zid > http://www.aco.net > > Icinga Core& IDOUtils Developer > http://www.icinga.org > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alexus at gmail.com Tue Sep 6 23:53:59 2011 From: alexus at gmail.com (alexus) Date: Tue, 6 Sep 2011 17:53:59 -0400 Subject: nagios.spec that comes w/ 3.3.1 is BROKEN! Message-ID: [root at uftwfnagios ~]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.3.1.tar.gz --2011-09-06 17:43:11-- http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.3.1.tar.gz Resolving prdownloads.sourceforge.net... 216.34.181.59 Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz [following] --2011-09-06 17:43:11-- http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz Resolving downloads.sourceforge.net... 216.34.181.59 Reusing existing connection to prdownloads.sourceforge.net:80. HTTP request sent, awaiting response... 302 Found Location: http://surfnet.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz [following] --2011-09-06 17:43:11-- http://surfnet.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz Resolving surfnet.dl.sourceforge.net... 130.59.138.21, 2001:620:0:1b::21 Connecting to surfnet.dl.sourceforge.net|130.59.138.21|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1714630 (1.6M) [application/x-gzip] Saving to: ?nagios-3.3.1.tar.gz? 100%[===================================================================================================================================================================================================>] 1,714,630 1.42M/s in 1.1s 2011-09-06 17:43:12 (1.42 MB/s) - ?nagios-3.3.1.tar.gz? saved [1714630/1714630] [root at uftwfnagios ~]# rpmbuild -tb nagios-3.3.1.tar.gz warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1B8XpT + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf nagios-3.3.1 + /usr/bin/gzip -dc /root/nagios-3.3.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nagios-3.3.1 /var/tmp/rpm-tmp.1B8XpT: line 34: cd: nagios-3.3.1: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.1B8XpT (%prep) RPM build errors: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp Bad exit status from /var/tmp/rpm-tmp.1B8XpT (%prep) [root at uftwfnagios ~]# ---- [root at uftwfnagios ~]# tar -zxf nagios-3.3.1.tar.gz [root at uftwfnagios ~]# ls -ld nagios drwxr-xr-x 16 nagios nagios 4096 Jul 25 17:20 nagios [root at uftwfnagios ~]# mv nagios nagios-3.3.1 [root at uftwfnagios ~]# tar -cf nagios-3.3.1.tar.gz nagios-3.3.1^C [root at uftwfnagios ~]# mv nagios-3.3.1.tar.gz nagios-3.3.1.tar.gz.1 [root at uftwfnagios ~]# tar -czf nagios-3.3.1.tar.gz nagios-3.3.1 [root at uftwfnagios ~]# rpmbuild -tb nagios-3.3.1.tar.gz warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wi8zWR + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf nagios-3.3.1 + /usr/bin/gzip -dc /root/nagios-3.3.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nagios-3.3.1 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.13SH1H + umask 022 + cd /root/rpmbuild/BUILD + cd nagios-3.3.1 + export PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin + PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin + CFLAGS='-O2 -g' + CXXFLAGS='-O2 -g' + ./configure --with-init-dir=/etc/init.d --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-lockfile=/var/run/nagios.pid --with-nagios-user=nagios --with-nagios-group=nagios --prefix=/usr --exec-prefix=/usr/sbin --bindir=/usr/sbin --sbindir=/usr/lib/nagios/cgi --libexecdir=/usr/lib/nagios/plugins --datarootdir=/usr/share/nagios --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios --with-file-perfdata --with-gd-lib=/usr/lib --with-gd-inc=/usr/include --with-template-objects --with-template-extinfo configure: error: unrecognized option: --datarootdir=/usr/share/nagios Try `./configure --help' for more information. error: Bad exit status from /var/tmp/rpm-tmp.13SH1H (%build) RPM build errors: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp Bad exit status from /var/tmp/rpm-tmp.13SH1H (%build) [root at uftwfnagios ~]# cd nagios-3.3.1 [root at uftwfnagios nagios-3.3.1]# ./configure --help | grep -i datarootdir [root at uftwfnagios nagios-3.3.1]# cd ../nagios-3.2.3 [root at uftwfnagios nagios-3.2.3]# ./configure --help | grep -i datarootdir --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] [root at uftwfnagios nagios-3.2.3]# -- http://alexus.org/ ------------------------------------------------------------------------------ Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From narayan.thenkondar at googlemail.com Wed Sep 7 10:34:35 2011 From: narayan.thenkondar at googlemail.com (Narayan Thenkondar) Date: Wed, 7 Sep 2011 10:34:35 +0200 Subject: n2rrd 1.4.4 Message-ID: Hi, We are using n2rrd (http://n2rrd.diglinks.com) to store performance data and use rrd2graph to display them. works great for us. 1) We would like to upgrade from 1.4.3 to 1.4.4, but would like to know anyone out there have already upgraded to the latest release. 2) any one has tried the new graph templates dir (see http://n2rrd-wiki.diglinks.com/display/n2rrd/Directory+and+Files) - */etc/n2rrd/templates/graph/plugins/custom/* - **/etc/n2rrd/templates/graph/plugins/default/* I assume this way 1) we need to create once a template for a check command alias 2) and this graph template will be used by all services using this command alias 3) good part is: service names could be different 4) Such that we don't have to create symlinks links e.g. eth.t to eth1.t, eth2.t etc.. Thanks in advance, nt * -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.friedrich at univie.ac.at Wed Sep 7 11:08:18 2011 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Wed, 07 Sep 2011 11:08:18 +0200 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 In-Reply-To: References: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> <4E6651F4.3020206@univie.ac.at> Message-ID: <4E673482.5080107@univie.ac.at> On 2011-09-06 21:35, Joe Hoot wrote: > Yep. I had seen your post earlier and was hoping that there was an additional variable that I could add to tell nagios to include non-perfdata information in that file. This is a shame. In the past, my Nagios upgrades have went very smoothly. > > Thanks for the reply. I am now happily up and running again on 3.2.3 I've been tracking down this problem already in Icinga 1.3.x and provided a proper fix for our users. Unless there's a properly tested 3.3.x release you might wanna check my github branches for nagios 3.3.1 fixes. it's nothing official, but just a little help from the "other evil side named Icinga" me being a core dev there too. https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes feel free to test and/or use that and provide feedback on the nagios lists if any. kind regards, michael > On Sep 6, 2011, at 1:01 PM, Michael Friedrich wrote: > >> >> On 06.09.2011 18:36, Joe Hoot wrote: >>> Hi all, >>> >>> I recently upgraded from Nagios Core 3.0.2 to 3.3.1. Once upgraded, I noticed that my nagiosgraph wasn't graphing data from some custom checks that I wrote. After further investigation, it turns out that nagiosgraph isn't seeing of the output from my check commands. This information used to go to my service_perfdata_file. >>> >>> I have the following template setup: >>> >>> service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ >>> >>> >>> And that has worked just fine for nagiosgraph to pull that information and parse it in order to fill rrd data. But now that I've upgraded to 3.3.1, I don't appear to be seeing any of my custom commands (ones that don't have perfdata) in that file. And upon investigating more, if I include perfdata in my custom commands, it sends to that perfdata_file just fine. but if the performance data isn't there, it doesn't show up in that file. >> nagios 3.3.1 does not process empty perfdata macros anymore which causes >> those results not to be put onto the perfdata channel. so all your >> plugins not returning perfdata won't even be put over there where >> nagiosgraph and other addons might calculate their perfdata from the >> output themselves. >> >>> Is this a bug? >> i consider it a bug as it breaks compatibility. previous discussions on >> nagios-* mailinglists can be found in the archive. dunno when this will >> get fixed. >> >> http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg36537.html >> http://comments.gmane.org/gmane.network.nagios.devel/8128 >> >> i'd suggest downgrading onto 3.2.3 and wait for a properly tested 3.3.x >> release. >> >> kind regards, >> Michael >> >> -- >> DI (FH) Michael Friedrich >> >> Vienna University Computer Center >> Universitaetsstrasse 7 A-1010 Vienna, Austria >> >> email: michael.friedrich at univie.ac.at >> phone: +43 1 4277 14359 >> mobile: +43 664 60277 14359 >> fax: +43 1 4277 14338 >> web: http://www.univie.ac.at/zid >> http://www.aco.net >> >> Icinga Core& IDOUtils Developer >> http://www.icinga.org >> >> >> ------------------------------------------------------------------------------ >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tonvoon at gmail.com Wed Sep 7 11:26:49 2011 From: tonvoon at gmail.com (Ton Voon) Date: Wed, 7 Sep 2011 10:26:49 +0100 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 In-Reply-To: <4E673482.5080107@univie.ac.at> References: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> <4E6651F4.3020206@univie.ac.at> <4E673482.5080107@univie.ac.at> Message-ID: On 7 Sep 2011, at 10:08, Michael Friedrich wrote: > On 2011-09-06 21:35, Joe Hoot wrote: >> Yep. I had seen your post earlier and was hoping that there was an additional variable that I could add to tell nagios to include non-perfdata information in that file. This is a shame. In the past, my Nagios upgrades have went very smoothly. >> >> Thanks for the reply. I am now happily up and running again on 3.2.3 > > I've been tracking down this problem already in Icinga 1.3.x and > provided a proper fix for our users. Unless there's a properly tested > 3.3.x release you might wanna check my github branches for nagios 3.3.1 > fixes. it's nothing official, but just a little help from the "other > evil side named Icinga" me being a core dev there too. > > https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes > > feel free to test and/or use that and provide feedback on the nagios > lists if any. Thanks for finding this Michael. I was going to change this so that enable_performance_processing=0 would not write anything, enable_performance_processing=1 does the old way (everything) and a new enable_performance_processing=2 would do this new behaviour. If you could amend your change to work in this way, I'll commit to core. If not, let me know and I'll look at it later. Ton ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan.gazeley at bristol.ac.uk Wed Sep 7 14:18:51 2011 From: jonathan.gazeley at bristol.ac.uk (Jonathan Gazeley) Date: Wed, 07 Sep 2011 13:18:51 +0100 Subject: Unable to move file to check results queue Message-ID: <4E67612B.3080904@bristol.ac.uk> Hi list, I've used Nagios for a few years now, largely without any problems, but since I just rebuilt my Nagios server I'm having a problem. My nagios log file is full of entries like this, that recur every few seconds: Error: Unable to rename file '/var/log/nagios/spool/checkresults/checkf8zhrH' to '/var/log/nagios/spool/checkresults/c8M6TqA': No such file or directory Warning: Unable to move file '/var/log/nagios/spool/checkresults/checkf8zhrH' to check results queue. Error: Unable to rename file '/var/log/nagios/spool/checkresults/check3OnQ7y' to '/var/log/nagios/spool/checkresults/cKzmO7d': No such file or directory Warning: Unable to move file '/var/log/nagios/spool/checkresults/check3OnQ7y' to check results queue. Error: Unable to rename file '/var/log/nagios/spool/checkresults/checkbsjxap' to '/var/log/nagios/spool/checkresults/c6TEIkd': No such file or directory Warning: Unable to move file '/var/log/nagios/spool/checkresults/checkbsjxap' to check results queue. Error: Unable to rename file '/var/log/nagios/spool/checkresults/checkyHICiz' to '/var/log/nagios/spool/checkresults/c28Thaw': No such file or directory Warning: Unable to move file '/var/log/nagios/spool/checkresults/checkyHICiz' to check results queue. Error: Unable to rename file '/var/log/nagios/spool/checkresults/checknXxstZ' to '/var/log/nagios/spool/checkresults/cNhpsRH': No such file or directory Warning: Unable to move file '/var/log/nagios/spool/checkresults/checknXxstZ' to check results queue. I see from searching for the problem online that it can be caused by multiple running instances of nagios. When I do a "ps -ef | grep nagios" there are usually 4 processes - one that seems persistent (2337 in this case) and the other 3 that disappear and reappear with new pids. Killing the 3 "extra" processes makes them just reappear. Is this normal? [root at monitor ~]# ps -ef | grep \/usr\/sbin\/nagios nagios 2337 1 0 13:05 ? 00:00:02 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 15453 1 0 13:12 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 15621 1 0 13:12 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 15707 1 0 13:12 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg root 15744 6284 0 13:12 pts/0 00:00:00 grep /usr/sbin/nagios This is a 64-bit CentOS 6.0 virtual machine. It was running SELinux but I disabled it for debugging in case it was causing problems. Permissions on ls -la /var/log/nagios/spool/checkresults/ and parents are traversable and writable by the nagios user. I also saw online that sometimes permissions on /dev/null can cause this problem, but in my case /dev/null is world-writable so I can't see a problem. I adjusted max_check_result_file_age to 0 in case my checkresult files were being deleted prematurely, but the problem persists. So, I have no idea what to look at next while troubleshooting this. Can anyone suggest a pointer? Many thanks, Jonathan ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.friedrich at univie.ac.at Wed Sep 7 22:38:50 2011 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Wed, 07 Sep 2011 22:38:50 +0200 Subject: perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1 In-Reply-To: References: <1B054B3F-B152-48E2-93D0-3A94BD3B17AE@gmail.com> <4E6651F4.3020206@univie.ac.at> <4E673482.5080107@univie.ac.at> Message-ID: <4E67D65A.5090406@univie.ac.at> On 2011-09-07 11:26, Ton Voon wrote: > On 7 Sep 2011, at 10:08, Michael Friedrich wrote: > >> On 2011-09-06 21:35, Joe Hoot wrote: >>> Yep. I had seen your post earlier and was hoping that there was an additional variable that I could add to tell nagios to include non-perfdata information in that file. This is a shame. In the past, my Nagios upgrades have went very smoothly. >>> >>> Thanks for the reply. I am now happily up and running again on 3.2.3 >> I've been tracking down this problem already in Icinga 1.3.x and >> provided a proper fix for our users. Unless there's a properly tested >> 3.3.x release you might wanna check my github branches for nagios 3.3.1 >> fixes. it's nothing official, but just a little help from the "other >> evil side named Icinga" me being a core dev there too. >> >> https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes >> >> feel free to test and/or use that and provide feedback on the nagios >> lists if any. > Thanks for finding this Michael. > > I was going to change this so that enable_performance_processing=0 would not write anything, enable_performance_processing=1 does the old way (everything) and a new enable_performance_processing=2 would do this new behaviour. > > If you could amend your change to work in this way, I'll commit to core. If not, let me know and I'll look at it later. sounds good. tommorrow will be an icinga hack session here in nuremberg, so i think i'll check that out too. i like the proposal of reusing the enable_perfdata_processing better than my initial config variable attempt. thanks for the hint and stay tuned ;-) kind regards, michael > Ton > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax: +43 1 4277 14338 web: http://www.univie.ac.at/zid http://www.aco.net Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Samuel.Kidman at panres.com Thu Sep 8 09:52:05 2011 From: Samuel.Kidman at panres.com (Samuel Kidman) Date: Thu, 8 Sep 2011 15:52:05 +0800 Subject: Return code of 9 is out of bounds when plugin is run in nagios, but return code is 0 when run from shell Message-ID: <2017228CAF598D4F8B68E7555B95876101F3681D@pr-pro-exch01-3.SMY.local> Hello I am having an issue with a plugin I just wrote where the Nagios says the return code is 9. If I do the following: lnm at PR-LNM-CR-NAG01:/usr/local/nagios/libexec$ sudo -u nagios ./check_snmp_mw_local_rx_power.pl --hostname 192.168.27.140 --rocommunity EMSOLUTIONS --snmp-version 1 CHECK_RX_POWER OK - Local RX Power OK (-47.5dBm), |'local_RX_Power'=-47.5;-67;-100;; lnm at PR-LNM-CR-NAG01:/usr/local/nagios/libexec$ echo $? 0 It suggests the return code is 0. I have disabled the embedded perl interpreter. Can anyone tell what is going wrong? Plugin source code below: #!/usr/bin/perl =pod =head1 NAME Name of plugin and a sentence explaining function -head2 SYNOPSIS Detailed explanation of what the check does, any caveats, etc. =cut sub check_snmp_mw_rx_power { use strict; use FindBin; use RRDs; use lib "$FindBin::Bin/lib"; use lib "/usr/local/nagios/perl/lib"; use Nagios::Plugin::SNMP; use Nenm::Utils; my $USAGE = <new( 'shortname' => $LABEL, 'usage' => $USAGE ); $plugin->add_arg( spec => 'warning|w=s', help => "-w, --warning=INTEGER:INTEGER\n" . "Minimum and maximum number of allowable result, outside of which a warning will be generated.\n", default => -67 ); $plugin->add_arg( spec => 'critical|c=s', help => "-c, --critical=INTEGER:INTEGER\n" . "Minimum and maximum number of allowable result, outside of which a critical will be generated.\n", default => -100 ); $plugin->add_arg( spec => 'host|H=s', help => "-H, --host=STRING\n" . "IP address of Host to check\n" ); #example add_arg # $plugin->add_arg( # 'spec' => 'interface|i=s', # 'help' => "--interface, -i: Name of the interface to use; use the\n" . # " description as returned by ifDescr.\n", # 'required' => 0, # 'default' = 'eth0/0' # ); #add arguments here $plugin->getopts; my $critical = $plugin->opts->critical; my $warning = $plugin->opts->warning; my $message; my $perfdata; my $LocalRXPower_OID = '.1.3.6.1.4.1.10132.9.1.4.12.0'; my $LocalRXPower; my $local_return; my $result = $plugin->get($LocalRXPower_OID); $LocalRXPower = $result->{$LocalRXPower_OID} / 10; if ($LocalRXPower < $critical) { $message = "CRITICAL: Local RX Power to low to maintain link. (${LocalRXPower}dBm), "; $local_return = 2; } elsif ($LocalRXPower < $warning) { $message = "WARNING: Local RX Power to low to maintain 32-QAM Modulation. (${LocalRXPower}dBm), "; $local_return = 1; } else { $message = "Local RX Power OK (${LocalRXPower}dBm), "; $local_return = 0; } $perfdata = "'local_RX_Power'=$LocalRXPower;$warning;$critical;;"; $plugin->nagios_exit($local_return, $message . "|" . $perfdata); } exit check_snmp_mw_rx_power(); Sam Kidman IT Support Officer -------------------------- T: 08 9225 0944 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 18659 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From member at linkedin.com Thu Sep 8 11:03:47 2011 From: member at linkedin.com (Guy-Serge NTOUGHE via LinkedIn) Date: Thu, 8 Sep 2011 09:03:47 +0000 (UTC) Subject: Invitation to connect on LinkedIn Message-ID: <933396815.4960782.1315472627046.JavaMail.app@ela4-app0132.prod> LinkedIn ------------ Guy-Serge NTOUGHE requested to add you as a connection on LinkedIn: ------------------------------------------ Lei, I'd like to add you to my professional network on LinkedIn. - Guy-Serge Accept invitation from Guy-Serge NTOUGHE http://www.linkedin.com/e/y49s6u-gsbifr6r-2z/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1682164760_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP0SdPgScj8Udz59bP9PlDFLqD9EbP8VdzkTdzAOcjgLrCBxbOYWrSlI/EML_comm_afe/?hs=false&tok=10JryqhmO_yAU1 View invitation from Guy-Serge NTOUGHE http://www.linkedin.com/e/y49s6u-gsbifr6r-2z/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1682164760_3/3dvc3oTd3oNczwSckALqnpPbOYWrSlI/svi/?hs=false&tok=0e62By5DK_yAU1 ------------------------------------------ Why might connecting with Guy-Serge NTOUGHE be a good idea? Guy-Serge NTOUGHE's connections could be useful to you: After accepting Guy-Serge NTOUGHE's invitation, check Guy-Serge NTOUGHE's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From member at linkedin.com Thu Sep 8 11:06:24 2011 From: member at linkedin.com (Guy-Serge NTOUGHE via LinkedIn) Date: Thu, 8 Sep 2011 09:06:24 +0000 (UTC) Subject: Invitation to connect on LinkedIn Message-ID: <1894257151.4959178.1315472784289.JavaMail.app@ela4-app0133.prod> LinkedIn ------------ Guy-Serge NTOUGHE requested to add you as a connection on LinkedIn: ------------------------------------------ Lei, I'd like to add you to my professional network on LinkedIn. - Guy-Serge Accept invitation from Guy-Serge NTOUGHE http://www.linkedin.com/e/y49s6u-gsbij4im-2o/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1682170686_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPoUdz0Tcj8Udz59bP9PlDFLqD9EbP8VdzkTdzAOcjgLrCBxbOYWrSlI/EML_comm_afe/?hs=false&tok=2_1PO4NrP2yAU1 View invitation from Guy-Serge NTOUGHE http://www.linkedin.com/e/y49s6u-gsbij4im-2o/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1682170686_3/3dvdzwSc3sNczwSckALqnpPbOYWrSlI/svi/?hs=false&tok=01nj_blL32yAU1 ------------------------------------------ Why might connecting with Guy-Serge NTOUGHE be a good idea? Guy-Serge NTOUGHE's connections could be useful to you: After accepting Guy-Serge NTOUGHE's invitation, check Guy-Serge NTOUGHE's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gilberto.nunes at selbetti.com.br Thu Sep 8 15:32:36 2011 From: gilberto.nunes at selbetti.com.br (Gilberto Nunes) Date: Thu, 8 Sep 2011 10:32:36 -0300 Subject: Availability Reports Message-ID: <201109081032.36300.gilberto.nunes@selbetti.com.br> Hi buddies.. That's my first post. I'm beat confused about Availability Reports from Nagios... I have some hosts that performer passive checks, was setting up like that: define host { host_name SERVER-01 alias SERVER-01 address 0.0.0.0 max_check_attempts 15 check_interval 1 retry_interval 1 active_checks_enabled 0 passive_checks_enabled 1 check_period 24x7 check_freshness 0 event_handler notify-service-by-email flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 contacts Administradores contact_groups admins # notification_interval 30 # notification_period 24x7 # notification_options d # notifications_enabled 1 icon_image win7logo.png register 1 } And, the services was setting up like: define service { host_name SERVER-01 service_description Spooler-Service active_checks_enabled 0 passive_checks_enabled 1 check_freshness 1 freshness_threshold 300 check_command no-return max_check_attempts 5 check_interval 5 retry_interval 2 check_period 24x7 event_handler notify-service-by-email event_handler_enabled 1 notification_interval 120 notification_period 24x7 notification_options w,c notifications_enabled 1 contacts Administradores contact_groups admins register 1 } The no-return check_command, sound like that: ... ... define command { command_name no-return command_line $USER1$/no-return $HOSTNAME$ } ... ... In that script, no-return, I add this content: #!/bin/bash echo "CRITICAL: No return from NC_Net Client" exit 2 NC_Net is a app that I have installed on remote server. This app send passive check, through nsca connection. But, when I attempt take some Availability Report, the report show useless information... My question is: There's some way to improve this report?? Sorry bad english and long post.... I hope someone can help with this... Thanks a lot -- Gilberto Nunes Ferreira NetWork Admin ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at catsnest.co.uk Thu Sep 8 17:04:39 2011 From: mail at catsnest.co.uk (mail at catsnest.co.uk) Date: Thu, 8 Sep 2011 16:04:39 +0100 Subject: Unable to move file to check results queue In-Reply-To: <4E67612B.3080904@bristol.ac.uk> References: <4E67612B.3080904@bristol.ac.uk> Message-ID: On Wed, Sep 7, 2011 at 1:18 PM, Jonathan Gazeley wrote: > Hi list, > > I've used Nagios for a few years now, largely without any problems, but > since I just rebuilt my Nagios server I'm having a problem. > > My nagios log file is full of entries like this, that recur every few > seconds: > > Error: Unable to rename file > '/var/log/nagios/spool/checkresults/checkf8zhrH' to > '/var/log/nagios/spool/checkresults/c8M6TqA': No such file or directory > Warning: Unable to move file > '/var/log/nagios/spool/checkresults/checkf8zhrH' to check results queue. > Error: Unable to rename file > '/var/log/nagios/spool/checkresults/check3OnQ7y' to > '/var/log/nagios/spool/checkresults/cKzmO7d': No such file or directory > Warning: Unable to move file > '/var/log/nagios/spool/checkresults/check3OnQ7y' to check results queue. > Error: Unable to rename file > '/var/log/nagios/spool/checkresults/checkbsjxap' to > '/var/log/nagios/spool/checkresults/c6TEIkd': No such file or directory > Warning: Unable to move file > '/var/log/nagios/spool/checkresults/checkbsjxap' to check results queue. > Error: Unable to rename file > '/var/log/nagios/spool/checkresults/checkyHICiz' to > '/var/log/nagios/spool/checkresults/c28Thaw': No such file or directory > Warning: Unable to move file > '/var/log/nagios/spool/checkresults/checkyHICiz' to check results queue. > Error: Unable to rename file > '/var/log/nagios/spool/checkresults/checknXxstZ' to > '/var/log/nagios/spool/checkresults/cNhpsRH': No such file or directory > Warning: Unable to move file > '/var/log/nagios/spool/checkresults/checknXxstZ' to check results queue. > > > I see from searching for the problem online that it can be caused by > multiple running instances of nagios. When I do a "ps -ef | grep nagios" > there are usually 4 processes - one that seems persistent (2337 in this > case) and the other 3 that disappear and reappear with new pids. Killing > the 3 "extra" processes makes them just reappear. Is this normal? > > [root at monitor ~]# ps -ef | grep \/usr\/sbin\/nagios > nagios ? ?2337 ? ? 1 ?0 13:05 ? ? ? ? ?00:00:02 /usr/sbin/nagios -d > /etc/nagios/nagios.cfg > nagios ? 15453 ? ? 1 ?0 13:12 ? ? ? ? ?00:00:00 /usr/sbin/nagios -d > /etc/nagios/nagios.cfg > nagios ? 15621 ? ? 1 ?0 13:12 ? ? ? ? ?00:00:00 /usr/sbin/nagios -d > /etc/nagios/nagios.cfg > nagios ? 15707 ? ? 1 ?0 13:12 ? ? ? ? ?00:00:00 /usr/sbin/nagios -d > /etc/nagios/nagios.cfg > root ? ? 15744 ?6284 ?0 13:12 pts/0 ? ?00:00:00 grep /usr/sbin/nagios > It is usual for the mutiple process (at least on our systems anyway ;) Little confused about your PPids though, eg should they not be owned by the original Nagios process? ~# ps -ef | grep nagios.cfg root 22219 22001 0 16:00:50 pts/9 0:00 grep nagios.cfg nagios 22192 9808 0 16:00:49 ? 0:00 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nagios 22207 9808 0 16:00:50 ? 0:00 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nagios 22213 9808 0 16:00:50 ? 0:00 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nagios 9808 19242 3 14:27:08 ? 5:57 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nagios 22212 9808 0 16:00:50 ? 0:00 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nag03 ~]# ps -ef | grep nagios.cfg nagios 757 1 24 Aug15 ? 5-20:20:43 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 27004 757 0 16:02 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 28460 757 0 16:02 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 29513 757 0 16:02 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 29760 757 0 16:02 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg nagios 30516 757 0 16:02 ? 00:00:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg hth -- ritchie > > This is a 64-bit CentOS 6.0 virtual machine. It was running SELinux but > I disabled it for debugging in case it was causing problems. > > Permissions on ls -la /var/log/nagios/spool/checkresults/ and parents > are traversable and writable by the nagios user. > > I also saw online that sometimes permissions on /dev/null can cause this > problem, but in my case /dev/null is world-writable so I can't see a > problem. > > I adjusted max_check_result_file_age to 0 in case my checkresult files > were being deleted prematurely, but the problem persists. > > So, I have no idea what to look at next while troubleshooting this. Can > anyone suggest a pointer? > > Many thanks, > Jonathan > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tocoro at yahoo.com Thu Sep 8 19:31:05 2011 From: tocoro at yahoo.com (Tony) Date: Thu, 8 Sep 2011 10:31:05 -0700 (PDT) Subject: Prevent current state from being logged to event log during daily log rollover? Message-ID: <1315503065.2293.YahooMailNeo@web30804.mail.mud.yahoo.com> Greetings all, is it possible to configure nagios from logging the existing state of hosts each time the log rolls over? Currently we have the log set to roll over daily and with the number of hosts we have it causes tons of informational messages at the beginning of each log rollover event..not a huge deal but it is a bit annoying that the number of log entries increases the amount of time it takes to paint the page when we click the http://nagios-host/nagios/cgi-bin/showlog.cgi?link. ? Example states that get logged on the log rollover.. ================================ [09-08-2011 00:00:00] CURRENT HOST STATE: cdf;1;OK - 10.198.142.41: rta 85.968ms, lost 0% [09-08-2011 00:00:00] CURRENT HOST STATE: abc;UP;HARD;1;OK - Certificate will expire on 06/16/2015 11:47. [09-08-2011 00:00:00] CURRENT HOST STATE: xyz;UP;HARD;1;OK - Certificate will expire on 07/03/2014 12:50. [09-08-2011 00:00:00] LOG VERSION: 2.0 [09-08-2011 00:00:00] LOG ROTATION: DAILY ================================ I tried setting the following in the nagios.cfg file?but it did not stop the existing state of the hosts from being logged on the rollover of the log at midnight (not sure if it is supposed to or not)? # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1.? If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option.? In # this case, set the value to 0. log_initial_states=0 Thanks much for any insight anyone on the list can provide. --TR??????? ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kim at conviva.com Fri Sep 9 01:00:08 2011 From: kim at conviva.com (Kimberly McKinnis) Date: Thu, 8 Sep 2011 23:00:08 +0000 Subject: Aggregate multiple interfaces/services/hosts In-Reply-To: References: Message-ID: Could you use the check_dns plugin? Then if you couldn't resolve the host through either interface, it would alarm. It doesn't require an expected-address. I check a round-robin DNS entry this way, making sure it just resolves to something. C O N V I V A Kimberly McKinnis | Systems Engineer, Service Delivery | kim at conviva.com | Mobile: 724.612.2716 | 2 WATERS PARK DRIVE | SUITE 150 | SAN MATEO | CA | 94403 | www.conviva.com | From: > Reply-To: Nagios Users List > Date: Tue, 6 Sep 2011 08:52:31 +0300 To: > Subject: [Nagios-users] Aggregate multiple interfaces/services/hosts Hello, I would like to monitor a couple of devices ( servers and witches) that are connected to the network via at least two interfaces. Nagios server is connected as well over two interfaces to the LAN. My question is: Is there any way to aggregate the monitored services/hosts into a single object that gives the critical status only when all aggregated objects have this status? For example: the Nagios system has two network interfaces: 192.168.0.1 and 192.168.1.1. I would like to monitor a DNS server connected to the network via 192.168.0.2 and 192.168.1.2 IP addresses. Of course I can reach the DNS server from Nagios two ways: either via the 192.168.0.1 interface or via 192.168.1.1. My target is to issue a warning/critical signal only when Nagios cannot query the DNS server on none of the IP addresses. Same should apply for hosts and network equipment and the service group should also provide performance data. I have already gave a shot with Nagios BPI, but unfortunately I cannot use the service group to map it in PNP4Nagios. Thank you!------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohsin4real at yahoo.com Fri Sep 9 07:59:02 2011 From: mohsin4real at yahoo.com (syed raza) Date: Thu, 8 Sep 2011 22:59:02 -0700 (PDT) Subject: How To Use Nagios With Microsoft Server 2003?? Message-ID: <1315547942.82248.YahooMailNeo@web39705.mail.mud.yahoo.com> ? Hi, i am new to Nagios but now i am a part of Nagios i wanna use Nagios Network Map? ? ?i have searched for it a lot but now i have come to know that Nagios work on Linux or Unix But my question from all the users of nagios is to suggest me that what should i do such that i have asp.net application using google map and i am showing my data on that map what should i do so that i can use Nagios in my application where i am using server 2003 OS ?? is it possible? ? ?Or what are the alternate methods for doing this ? Hopes for your suggestions ... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From badri at diglinks.com Fri Sep 9 08:34:09 2011 From: badri at diglinks.com (Badri Pillai) Date: Fri, 9 Sep 2011 08:34:09 +0200 Subject: n2rrd 1.4.4 In-Reply-To: References: Message-ID: <6ecfa84a4ff9f63c314fe0fae7bf8208.squirrel@www.diglinks.com> Hi, >.. > works great for us. Thanks, good to know. > > 1) We would like to upgrade from 1.4.3 to 1.4.4, but would like to know > anyone out there have already upgraded to the latest release. well we have upgraded some customer sites and until now seen no problems. if you notice any please let us know. > 2) any one has tried the new graph templates dir (see Ahmm, we know we are still behind documenting new features in 1.4.4. In a weeks time the document will be upto date, as far as n2rrd features are concerned. > http://n2rrd-wiki.diglinks.com/display/n2rrd/Directory+and+Files) > - */etc/n2rrd/templates/graph/plugins/custom/* > - **/etc/n2rrd/templates/graph/plugins/default/* > I assume this way > 1) we need to create once a template for a check command alias > 2) and this graph template will be used by all services using this > command alias > 3) good part is: service names could be different > 4) Such that we don't have to create symlinks links e.g. eth.t to > eth1.t, eth2.t etc.. > Exactly. Regards, dev team ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailing.lists.addr at gmail.com Fri Sep 9 17:01:39 2011 From: mailing.lists.addr at gmail.com (Mailing Lists) Date: Fri, 9 Sep 2011 11:01:39 -0400 Subject: Nagios.log not updating Message-ID: I currently have a centreon / nagios setup with one central centreon box with three pollers. The newest poller is working fine with in terms of updating the central centreon system. However, the one issue I am running into and haven't been able to find an answer to is that the newest poller isn't logging to the nagios.log when a service is checked. It logs the initial service state and that's it. Any idea what could cause this? I have googled for hours. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Sep 9 18:35:36 2011 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 9 Sep 2011 17:35:36 +0100 Subject: Nagios.log not updating In-Reply-To: References: Message-ID: On 9 September 2011 16:01, Mailing Lists wrote: > I currently have a centreon / nagios setup with one central centreon box > with three pollers. The newest poller is working fine with in terms of > updating the central centreon system. However, the one issue I am running > into and haven't been able to find an answer to is that the newest poller > isn't logging to the nagios.log when a service is checked. It logs the > initial service state and that's it. Any idea what could cause this? I have > googled for hours. Have you checked the various option in nagios.cfg? See:- http://nagios.sourceforge.net/docs/nagioscore/3/en/configmain.html log_service_retries and log_passive_checks etc,. ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailing.lists.addr at gmail.com Fri Sep 9 19:07:34 2011 From: mailing.lists.addr at gmail.com (Mailing Lists) Date: Fri, 9 Sep 2011 13:07:34 -0400 Subject: Nagios.log not updating In-Reply-To: References: Message-ID: Yeah, this is setup exactly like the other pollers. Below you will find the relevant parts of the config... [root@ etc]# grep -i log nagios.cfg log_file=/usr/local/nagios/var/nagios.log status_file=/usr/local/nagios/var/status.log log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives/ use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=1 log_external_commands=1 On Fri, Sep 9, 2011 at 12:35 PM, Jim Avery wrote: > On 9 September 2011 16:01, Mailing Lists > wrote: > > I currently have a centreon / nagios setup with one central centreon box > > with three pollers. The newest poller is working fine with in terms of > > updating the central centreon system. However, the one issue I am running > > into and haven't been able to find an answer to is that the newest poller > > isn't logging to the nagios.log when a service is checked. It logs the > > initial service state and that's it. Any idea what could cause this? I > have > > googled for hours. > > Have you checked the various option in nagios.cfg? See:- > http://nagios.sourceforge.net/docs/nagioscore/3/en/configmain.html > log_service_retries and log_passive_checks etc,. > > > ------------------------------------------------------------------------------ > Why Cloud-Based Security and Archiving Make Sense > Osterman Research conducted this study that outlines how and why cloud > computing security and archiving is rapidly being adopted across the IT > space for its ease of implementation, lower cost, and increased > reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailing.lists.addr at gmail.com Fri Sep 9 19:13:34 2011 From: mailing.lists.addr at gmail.com (Mailing Lists) Date: Fri, 9 Sep 2011 13:13:34 -0400 Subject: Nagios.log not updating In-Reply-To: References: Message-ID: mysql> select log_notifications,log_service_retries, log_host_retries,log_event_handlers,log_initial_states,log_external_commands,log_passive_checks from cfg_nagios; +-------------------+---------------------+------------------+--------------------+--------------------+-----------------------+--------------------+ | log_notifications | log_service_retries | log_host_retries | log_event_handlers | log_initial_states | log_external_commands | log_passive_checks | +-------------------+---------------------+------------------+--------------------+--------------------+-----------------------+--------------------+ | 1 | 1 | 1 | 1 | 1 | 1 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | 2 | | 1 | 1 | 1 | 1 | 1 | 1 | 2 | +-------------------+---------------------+------------------+--------------------+--------------------+-----------------------+--------------------+ On Fri, Sep 9, 2011 at 1:07 PM, Mailing Lists wrote: > Yeah, this is setup exactly like the other pollers. Below you will find the > relevant parts of the config... > > [root@ etc]# grep -i log nagios.cfg > log_file=/usr/local/nagios/var/nagios.log > status_file=/usr/local/nagios/var/status.log > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives/ > use_syslog=0 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=1 > log_external_commands=1 > > > > On Fri, Sep 9, 2011 at 12:35 PM, Jim Avery wrote: > >> On 9 September 2011 16:01, Mailing Lists >> wrote: >> > I currently have a centreon / nagios setup with one central centreon box >> > with three pollers. The newest poller is working fine with in terms of >> > updating the central centreon system. However, the one issue I am >> running >> > into and haven't been able to find an answer to is that the newest >> poller >> > isn't logging to the nagios.log when a service is checked. It logs the >> > initial service state and that's it. Any idea what could cause this? I >> have >> > googled for hours. >> >> Have you checked the various option in nagios.cfg? See:- >> http://nagios.sourceforge.net/docs/nagioscore/3/en/configmain.html >> log_service_retries and log_passive_checks etc,. >> >> >> ------------------------------------------------------------------------------ >> Why Cloud-Based Security and Archiving Make Sense >> Osterman Research conducted this study that outlines how and why cloud >> computing security and archiving is rapidly being adopted across the IT >> space for its ease of implementation, lower cost, and increased >> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dsanville at ll.mit.edu Fri Sep 9 21:21:35 2011 From: dsanville at ll.mit.edu (Dan Sanville) Date: Fri, 9 Sep 2011 15:21:35 -0400 Subject: Passive checks sent with send_nrdp.php not being processed by nagios Message-ID: <4E6A673F.7080500@ll.mit.edu> An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adam.mclean at rbc.com Fri Sep 9 21:32:16 2011 From: adam.mclean at rbc.com (Mclean, Adam) Date: Fri, 9 Sep 2011 15:32:16 -0400 Subject: Passive checks sent with send_nrdp.php not beingprocessed by nagios In-Reply-To: <4E6A673F.7080500@ll.mit.edu> References: <4E6A673F.7080500@ll.mit.edu> Message-ID: We've been using NRDP here for months now. No concerns. Try adding a trailing / at the end of your URL. As an FYI I recently posted a perl client that acts as a dropin replacement for send_ncsa to make the transition easier for nsca shops, or for shops that don't have php on their monitored hosts. It has some features that we've needed in nsca that weren't originally present like sending to multiple hosts, and caching failed result sends for retry later. http://exchange.nagios.org/directory/Addons/Passive-Checks/send_nrdp-Perl-Client/details ________________________________ From: Dan Sanville [mailto:dsanville at ll.mit.edu] Sent: 2011, September, 09 3:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Passive checks sent with send_nrdp.php not beingprocessed by nagios Good afternoon, I am trying to use NRDP, specifically send_nrdp.php from a nagios client system, to send passive checks to a nagios core server and no matter what I try nagios never receives my passive checks. I was wondering if anyone has successfully setup NRDP to send passive checks to nagios and if they can offer any suggestions. Also the only real documentation I can find is a four page "NRDP - Overview" pdf and I was wondering if someone has or can point me to more in depth documentation? I followed the instructions in the four page pdf and nrdp seemed to setup just fine. http://abc.def.ghi.jkl/nrdp brings up the web page exactly as the documentation shows. I filled out the webpage, added in my token, hit submit and I received the following: 0 OK ? 2 checks processed. I am not 100% sure this is what I should receive but it looked good. On the client I ran the following command: usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url=http://abc.def.ghi.jkl/nrdp --token=mysecrettoken --host=nagios-test-client --service=Check_Passive --state=2 --output="test1234567890" via tcpdump looking at port 80 I see the command sends data to my nagios server but from here I am at a loss for what happens. My passive checks stays in "unknown" status and I see very little in nagios.log. I would be grateful for any insight as to what is supposed to happen, what I should be looking for in a logfile, or any suggestions/thoughts. thanks Dan Sanville -- Dan Sanville System Administrator MIT Lincoln Laboratory 244 Wood Street, Lexington, MA 02420 Office: 781-981-1601 _______________________________________________________________________ This email may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this email or the information it contains by other than an intended recipient is unauthorized. If you received this email in error, please advise the sender (by return email or otherwise) immediately. You have consented to receive the attached electronically at the above-noted email address; please retain a copy of this confirmation for future reference. Ce courriel est confidentiel et prot?g?. L'exp?diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce courriel ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d?sign?(s) est interdite. Si vous recevez ce courriel par erreur, veuillez en aviser l?exp?diteur imm?diatement, par retour de courriel ou par un autre moyen. Vous avez accept? de recevoir le(s) document(s) ci-joint(s) par voie ?lectronique ? l?adresse courriel indiqu?e ci-dessus; veuillez conserver une copie de cette confirmation pour les fins de reference future. ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Radu.Popa at technomatic.de Sun Sep 11 09:43:22 2011 From: Radu.Popa at technomatic.de (Radu.Popa at technomatic.de) Date: Sun, 11 Sep 2011 10:43:22 +0300 Subject: Antwort: Re: Aggregate multiple interfaces/services/hosts In-Reply-To: References: Message-ID: Thanks for the tip, but the DNS monitoring was only one example. There are also some other queries like WMI, SNMP, agent monitoring aso. Cheers! An: Nagios Users List Datum: 09/09/2011 02:03 AM Betreff: Re: [Nagios-users] Aggregate multiple interfaces/services/hosts Could you use the check_dns plugin? Then if you couldn't resolve the host through either interface, it would alarm. It doesn't require an expected-address. I check a round-robin DNS entry this way, making sure it just resolves to something. C O N V I V A Kimberly McKinnis | Systems Engineer, Service Delivery | kim at conviva.com | Mobile: 724.612.2716 | 2 WATERS PARK DRIVE | SUITE 150 | SAN MATEO | CA | 94403 | www.conviva.com | Reply-To: Nagios Users List Date: Tue, 6 Sep 2011 08:52:31 +0300 To: Subject: [Nagios-users] Aggregate multiple interfaces/services/hosts Hello, I would like to monitor a couple of devices ( servers and witches) that are connected to the network via at least two interfaces. Nagios server is connected as well over two interfaces to the LAN. My question is: Is there any way to aggregate the monitored services/hosts into a single object that gives the critical status only when all aggregated objects have this status? For example: the Nagios system has two network interfaces: 192.168.0.1 and 192.168.1.1. I would like to monitor a DNS server connected to the network via 192.168.0.2 and 192.168.1.2 IP addresses. Of course I can reach the DNS server from Nagios two ways: either via the 192.168.0.1 interface or via 192.168.1.1. My target is to issue a warning/critical signal only when Nagios cannot query the DNS server on none of the IP addresses. Same should apply for hosts and network equipment and the service group should also provide performance data. I have already gave a shot with Nagios BPI, but unfortunately I cannot use the service group to map it in PNP4Nagios. Thank you! ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/_______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From miskobs at yahoo.com Sun Sep 11 19:33:02 2011 From: miskobs at yahoo.com (Bratislav Stojkovic) Date: Sun, 11 Sep 2011 10:33:02 -0700 (PDT) Subject: (no subject) Message-ID: <1315762382.81315.YahooMailMobile@web160713.mail.bf1.yahoo.com> http://www.firedupcatholics.com/wp-content/uploads/mywork.php?html39 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtuecks at googlemail.com Sun Sep 11 21:24:50 2011 From: dtuecks at googlemail.com (Daniel Tuecks) Date: Sun, 11 Sep 2011 21:24:50 +0200 Subject: Antwort: Re: Aggregate multiple interfaces/services/hosts In-Reply-To: References: Message-ID: Have a look at: http://bp-addon.monitoringexchange.org/ http://mathias-kettner.de/checkmk_bi.html 2011/9/11 : > Thanks for the tip, but the DNS monitoring was only one example. There are > also some other queries like WMI, SNMP, agent monitoring aso. > > Cheers! > > > > > An: ? ? ? ?Nagios Users List > Datum: ? ? ? ?09/09/2011 02:03 AM > Betreff: ? ? ? ?Re: [Nagios-users] Aggregate multiple > interfaces/services/hosts > ________________________________ > > > Could you use the check_dns plugin? Then if you couldn't resolve the host > through either interface, it would alarm. It doesn't require an > expected-address. I check a round-robin DNS entry this way, making sure it > just resolves to something. > > C O N V I V A > Kimberly McKinnis | Systems Engineer, Service Delivery | kim at conviva.com | > Mobile: 724.612.2716 | > 2 WATERS PARK DRIVE ?| ?SUITE 150 ?| ?SAN MATEO ?| ?CA ?| ?94403 ?| > www.conviva.com | > > Reply-To: Nagios Users List > Date: Tue, 6 Sep 2011 08:52:31 +0300 > To: > Subject: [Nagios-users] Aggregate multiple interfaces/services/hosts > > Hello, > > I would like to monitor a couple of devices ( servers and witches) that are > connected to the network via at least two interfaces. Nagios server is > connected as well over two interfaces to the LAN. My question is: > > Is there any way to aggregate the monitored services/hosts into a single > object that gives the critical status only when all aggregated objects have > this status? > > For example: the Nagios system has two network interfaces: 192.168.0.1 and > 192.168.1.1. I would like to monitor a DNS server connected to the network > via 192.168.0.2 and 192.168.1.2 IP addresses. Of course I can reach the DNS > server from Nagios two ways: either via the 192.168.0.1 interface or via > 192.168.1.1. My target is to issue a warning/critical signal only when > Nagios cannot query the DNS server on none of the IP addresses. Same should > apply for hosts and network equipment and the service group should also > provide performance data. > > I have already gave a shot with Nagios BPI, but unfortunately I cannot use > the service group to map it in PNP4Nagios. > > Thank > you!------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include > Nagios version, plugin version (-v) and OS when reporting any issue. ::: > Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? ? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop > model.http://www.accelacomm.com/jaw/sfnl/114/51426474/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Samuel.Kidman at panres.com Tue Sep 13 07:53:24 2011 From: Samuel.Kidman at panres.com (Samuel Kidman) Date: Tue, 13 Sep 2011 13:53:24 +0800 Subject: Return code of 9 is out of bounds when plugin is runin nagios, but return code is 0 when run from shell Message-ID: <2017228CAF598D4F8B68E7555B95876101F36952@pr-pro-exch01-3.SMY.local> Hi Does anyone know what's causing this error? I am utterly stumped. From: Samuel Kidman [mailto:Samuel.Kidman at panres.com] Sent: Thursday, 8 September 2011 3:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Return code of 9 is out of bounds when plugin is runin nagios, but return code is 0 when run from shell Hello I am having an issue with a plugin I just wrote where the Nagios says the return code is 9. If I do the following: lnm at PR-LNM-CR-NAG01:/usr/local/nagios/libexec$ sudo -u nagios ./check_snmp_mw_local_rx_power.pl --hostname 192.168.27.140 --rocommunity EMSOLUTIONS --snmp-version 1 CHECK_RX_POWER OK - Local RX Power OK (-47.5dBm), |'local_RX_Power'=-47.5;-67;-100;; lnm at PR-LNM-CR-NAG01:/usr/local/nagios/libexec$ echo $? 0 It suggests the return code is 0. I have disabled the embedded perl interpreter. Can anyone tell what is going wrong? Plugin source code below: #!/usr/bin/perl =pod =head1 NAME Name of plugin and a sentence explaining function -head2 SYNOPSIS Detailed explanation of what the check does, any caveats, etc. =cut sub check_snmp_mw_rx_power { use strict; use FindBin; use RRDs; use lib "$FindBin::Bin/lib"; use lib "/usr/local/nagios/perl/lib"; use Nagios::Plugin::SNMP; use Nenm::Utils; my $USAGE = <new( 'shortname' => $LABEL, 'usage' => $USAGE ); $plugin->add_arg( spec => 'warning|w=s', help => "-w, --warning=INTEGER:INTEGER\n" . "Minimum and maximum number of allowable result, outside of which a warning will be generated.\n", default => -67 ); $plugin->add_arg( spec => 'critical|c=s', help => "-c, --critical=INTEGER:INTEGER\n" . "Minimum and maximum number of allowable result, outside of which a critical will be generated.\n", default => -100 ); $plugin->add_arg( spec => 'host|H=s', help => "-H, --host=STRING\n" . "IP address of Host to check\n" ); #example add_arg # $plugin->add_arg( # 'spec' => 'interface|i=s', # 'help' => "--interface, -i: Name of the interface to use; use the\n" . # " description as returned by ifDescr.\n", # 'required' => 0, # 'default' = 'eth0/0' # ); #add arguments here $plugin->getopts; my $critical = $plugin->opts->critical; my $warning = $plugin->opts->warning; my $message; my $perfdata; my $LocalRXPower_OID = '.1.3.6.1.4.1.10132.9.1.4.12.0'; my $LocalRXPower; my $local_return; my $result = $plugin->get($LocalRXPower_OID); $LocalRXPower = $result->{$LocalRXPower_OID} / 10; if ($LocalRXPower < $critical) { $message = "CRITICAL: Local RX Power to low to maintain link. (${LocalRXPower}dBm), "; $local_return = 2; } elsif ($LocalRXPower < $warning) { $message = "WARNING: Local RX Power to low to maintain 32-QAM Modulation. (${LocalRXPower}dBm), "; $local_return = 1; } else { $message = "Local RX Power OK (${LocalRXPower}dBm), "; $local_return = 0; } $perfdata = "'local_RX_Power'=$LocalRXPower;$warning;$critical;;"; $plugin->nagios_exit($local_return, $message . "|" . $perfdata); } exit check_snmp_mw_rx_power(); Sam Kidman IT Support Officer -------------------------- T: 08 9225 0944 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 18659 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kim at conviva.com Tue Sep 13 19:39:28 2011 From: kim at conviva.com (Kimberly McKinnis) Date: Tue, 13 Sep 2011 17:39:28 +0000 Subject: Return code of 9 is out of bounds when plugin is runin nagios, but return code is 0 when run from shell In-Reply-To: <2017228CAF598D4F8B68E7555B95876101F36952@pr-pro-exch01-3.SMY.local> References: <2017228CAF598D4F8B68E7555B95876101F36952@pr-pro-exch01-3.SMY.local> Message-ID: I got something similar when my script didn't have permission to run as the nagios user. It looks like you've ruled that out by running it by hand as nagios. Are you piping this through nrpe and calling it from the nagios server? Can you call nrpe to the client machine from the nagios server on the command line? I.e. check_nrpe -H -n -c /usr/lib/nagios/plugins/