From jmoseley at corp.xanadoo.com Thu Jan 1 00:20:06 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 31 Dec 2008 17:20:06 -0600 Subject: icons not displaying on Nagios 3.0.6 status map Message-ID: Been using Nagios 2.x for years and never had this problem. Just upgraded a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems to work fine, except that icons do not display on the status map. I basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. The icons display just fine in the host detail, hostgroup overview, etc. Yes, per upgrade instructions, this extended host info has been moved into the hosts config. Sample looks like: icon_image firewall_router.png vrml_image firewall_router.png statusmap_image firewall_router.gd2 2d_coords 100,200 Attached is screen shot. Anyone else seen this? (Embedded image moved to file: pic28703.jpg) James Moseley -------------- next part -------------- A non-text attachment was scrubbed... Name: pic28703.jpg Type: image/jpeg Size: 93337 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 jon at netdork.net Fri Jan 2 07:03:08 2009 From: jon at netdork.net (Jon Angliss) Date: Fri, 02 Jan 2009 00:03:08 -0600 Subject: icons not displaying on Nagios 3.0.6 status map References: Message-ID: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > >Been using Nagios 2.x for years and never had this problem. Just upgraded >a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >to work fine, except that icons do not display on the status map. I >basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >The icons display just fine in the host detail, hostgroup overview, etc. >Yes, per upgrade instructions, this extended host info has been moved into >the hosts config. Sample looks like: > > icon_image firewall_router.png > vrml_image firewall_router.png > statusmap_image firewall_router.gd2 > 2d_coords 100,200 > >Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html ), whilst the images in the status maps are imported using the GD libraries if I remember correctly. -- Jon Angliss ------------------------------------------------------------------------------ _______________________________________________ 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 jon at netdork.net Fri Jan 2 07:09:37 2009 From: jon at netdork.net (Jon Angliss) Date: Fri, 02 Jan 2009 00:09:37 -0600 Subject: Monitoring Hosts without use plugins References: <7a6c90940812310435w3fe81345x6e5d2bd3e6c23b1b@mail.gmail.com> <495B7C0E.4070700@collaborativefusion.com> Message-ID: On Wed, 31 Dec 2008 09:05:02 -0500, Sean McAfee wrote: >Hugo Canalli wrote: >> Hello, >> I need to monitor to see if hosts are UP or DOWN, but my hosts are >> network devices that can not be installed any plugin for nagios as the >> NCSA. >> What we need is that the nagios track every time and let a message >> (sends a message by email or cell phone) if the host is down (without >> using any type of plugin for the device monitored. On the server >> management can be installed plugins nagios if necessary.) >> Do it possible with nagios? >> >> Version used: 3.0.6 nagios >> >> -- >> -t- >The only difference between host and service checks are that host checks >are not schedule and are only execed when a service check fails. In the >end, generic-host-alive will still be using check_ping. Are you sure this is still the case? I'm pretty sure 3.x does host checks on a scheduled basis now. At least I'm seeing pings to all my hosts every minute. I believe that theory might have been correct for 2.x, but from what I have read the same does not apply for 3.x (see 17 in the what's new for v3). -- Jon Angliss ------------------------------------------------------------------------------ _______________________________________________ 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 jon at netdork.net Fri Jan 2 07:21:18 2009 From: jon at netdork.net (Jon Angliss) Date: Fri, 02 Jan 2009 00:21:18 -0600 Subject: Monitoring CPU temperature, fan velocity, smart hdd on Windows XP/NT... References: Message-ID: On Mon, 29 Dec 2008 20:24:01 +0100, "44kbps 44kbps" <44kbps at gmail.com> wrote: >Hi people! First of all, sorry for my bad english... > >I'm new on nagios3. I follow the instruccions about instalation and >configuring, and I had no problems. > >Now, I monitor a Linux machine and a Windows XP with NSClient++. >But I have a little limitations with the NSClient++: >I would like to monitor the CPU temperature, the fan velocity, S.M.A.R.T. >messages of the HD, and other "hardware" variables. >Is it possible to do this with NSClient++? I have found no documentation >about this options on NSClient++'s wiki. > >Are there another software for monitoring this variables? http://trac.nakednuns.org/nscp/wiki/CheckWMIValue http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true You can play around in Microsoft's script center, and find a bunch of useful goodies. As NSClient++ can run the WMI calls directly, you can call them like the example on the wiki. You should be able to google around for apps that will get you the WMI queries for all kinds of hardware related stuff, from CPU temp to fans etc. -- Jon Angliss ------------------------------------------------------------------------------ _______________________________________________ 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 hugocanalli at gmail.com Fri Jan 2 11:50:13 2009 From: hugocanalli at gmail.com (Hugo Canalli) Date: Fri, 2 Jan 2009 08:50:13 -0200 Subject: Monitoring Hosts without use plugins In-Reply-To: References: <7a6c90940812310435w3fe81345x6e5d2bd3e6c23b1b@mail.gmail.com> <495B7C0E.4070700@collaborativefusion.com> Message-ID: <7a6c90940901020250j4c4d97c9sd58d803c4ec9abbc@mail.gmail.com> ...same does not apply for 3.x... :( On Fri, Jan 2, 2009 at 4:09 AM, Jon Angliss wrote: > On Wed, 31 Dec 2008 09:05:02 -0500, Sean McAfee > wrote: > > >Hugo Canalli wrote: > >> Hello, > >> I need to monitor to see if hosts are UP or DOWN, but my hosts are > >> network devices that can not be installed any plugin for nagios as the > >> NCSA. > >> What we need is that the nagios track every time and let a message > >> (sends a message by email or cell phone) if the host is down (without > >> using any type of plugin for the device monitored. On the server > >> management can be installed plugins nagios if necessary.) > >> Do it possible with nagios? > >> > >> Version used: 3.0.6 nagios > >> > >> -- > >> -t- > >The only difference between host and service checks are that host checks > >are not schedule and are only execed when a service check fails. In the > >end, generic-host-alive will still be using check_ping. > > Are you sure this is still the case? I'm pretty sure 3.x does host > checks on a scheduled basis now. At least I'm seeing pings to all my > hosts every minute. I believe that theory might have been correct for > 2.x, but from what I have read the same does not apply for 3.x (see 17 > in the what's new for v3). > > -- > Jon Angliss > > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > -- -t- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 marc at ena.com Fri Jan 2 14:22:23 2009 From: marc at ena.com (Marc Powell) Date: Fri, 2 Jan 2009 07:22:23 -0600 Subject: Monitoring Hosts without use plugins In-Reply-To: References: <7a6c90940812310435w3fe81345x6e5d2bd3e6c23b1b@mail.gmail.com> <495B7C0E.4070700@collaborativefusion.com> Message-ID: On Jan 2, 2009, at 12:09 AM, Jon Angliss wrote: > Are you sure this is still the case? I'm pretty sure 3.x does host > checks on a scheduled basis now. Only if you've configured nagios to do so. http://nagios.sourceforge.net/docs/3_0/hostchecks.html "Regularly scheduled host checks are optional. If you set the check_interval option in your host definition to zero (0), Nagios will not perform checks of the hosts on a regular basis. It will, however, still perform on-demand checks of the host as needed for other parts of the monitoring logic." -- Marc ------------------------------------------------------------------------------ _______________________________________________ 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 th.granier at free.fr Fri Jan 2 16:10:07 2009 From: th.granier at free.fr (Thierry Granier) Date: Fri, 2 Jan 2009 16:10:07 +0100 Subject: Nagios sources Message-ID: <4A5BBCA5E4694FFB9356CA66FDBC97B7@thierrylaptop> Hi everybody does somebody know where i can find the sources of Nagios? Many thanks T Granier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 kenneho.ndu at gmail.com Fri Jan 2 16:45:19 2009 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Fri, 2 Jan 2009 16:45:19 +0100 Subject: check_ntp_time : "Offset Unknown" for any host since yesterday In-Reply-To: <495A7D9D.80106@aei.ca> References: <495A5E13.5050408@medi.fr> <495A7D9D.80106@aei.ca> Message-ID: We too have the same issue. Is there any way we can resolve it without upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, and if I'm not mistaking one cannot upgrade only the nagios-plugins-ntp package one would be required to upgrade nagios-plugins (and hence also all the other nagios-plugins-* packages due to the depency to nagios-plugins). On 12/30/08, Thomas Guyot-Sionnest wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 30/12/08 12:44 PM, Toussaint OTTAVI wrote: > > Hi, > > > > I've been using check_ntp_time plugin to check the time offset of all my > > time servers. It's been working perfectly for a while. > > > > Last night (29 to 30/12 at 00:00), all the checks start having the same > > behavior quite at the same time. All of them return : > > " NTP CRITICAL: Offset unknown" > > > > Of course, all the time servers are running, and their time is accurate. > > I can't understand why all the checks start failing all at the same time. > > This is likely caused by a bug in versions 1.4.10 and 1.4.11 of > check_ntp and check_ntp_time that is triggered when a leap second is > inserted (which is the case this year). Fortunately I spotted it a while > ago and you should be OK if you upgrade to 1.4.12 or later :) > > - -- > Thomas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJWn2d6dZ+Kt5BchYRAlMYAKDIy89BiVaxxeBeuLQqKUyk5EyNzgCdH9uf > YcQIMgjp0Sp4IHQnXzcZbcs= > =DtDy > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > ------------------------------------------------------------------------------ _______________________________________________ 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 marc at ena.com Fri Jan 2 16:51:14 2009 From: marc at ena.com (Marc Powell) Date: Fri, 2 Jan 2009 09:51:14 -0600 Subject: Nagios sources In-Reply-To: <4A5BBCA5E4694FFB9356CA66FDBC97B7@thierrylaptop> References: <4A5BBCA5E4694FFB9356CA66FDBC97B7@thierrylaptop> Message-ID: <407626CA-B444-423C-A498-526BDA2A37E7@ena.com> On Jan 2, 2009, at 9:10 AM, Thierry Granier wrote: > Hi everybody > does somebody know where i can find the sources of Nagios? www.nagios.org. -- Marc ------------------------------------------------------------------------------ _______________________________________________ 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 marc at ena.com Fri Jan 2 16:54:26 2009 From: marc at ena.com (Marc Powell) Date: Fri, 2 Jan 2009 09:54:26 -0600 Subject: check_ntp_time : "Offset Unknown" for any host since yesterday In-Reply-To: References: <495A5E13.5050408@medi.fr> <495A7D9D.80106@aei.ca> Message-ID: <7AFF5C01-EFEF-4E98-BD3F-8DC1176636D8@ena.com> On Jan 2, 2009, at 9:45 AM, Kenneth Holter wrote: > We too have the same issue. Is there any way we can resolve it without > upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, ... Download the plugins source code. Compile. cp check_ntp_time /path/to/ nagios/plugins. =) -- Marc ------------------------------------------------------------------------------ _______________________________________________ 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 dermoth at aei.ca Fri Jan 2 18:44:19 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Jan 2009 12:44:19 -0500 Subject: check_ntp_time : "Offset Unknown" for any host since yesterday In-Reply-To: <7AFF5C01-EFEF-4E98-BD3F-8DC1176636D8@ena.com> References: <495A5E13.5050408@medi.fr> <495A7D9D.80106@aei.ca> <7AFF5C01-EFEF-4E98-BD3F-8DC1176636D8@ena.com> Message-ID: <495E5273.7080304@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/01/09 10:54 AM, Marc Powell wrote: > On Jan 2, 2009, at 9:45 AM, Kenneth Holter wrote: > >> We too have the same issue. Is there any way we can resolve it without >> upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, ... > > Download the plugins source code. Compile. cp check_ntp_time /path/to/ > nagios/plugins. =) It won't happen often anyways... Last leap second was inserted in 2005, you'll likely have it upgraded by the time they insert a new leap second :) - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXlJz6dZ+Kt5BchYRAomqAJ4xi87VYrIMHgZFXwMRYxuafu+LuACgtqJX hH6M1IrI8zJKsHDPjnvaFco= =MEmo -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Fri Jan 2 19:10:20 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 2 Jan 2009 12:10:20 -0600 Subject: icons not displaying on Nagios 3.0.6 status map In-Reply-To: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> References: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> Message-ID: Jon Angliss To 01/02/2009 12:03 nagios-users at lists.sourceforge.net AM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: >>Been using Nagios 2.x for years and never had this problem. Just upgraded >>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >>to work fine, except that icons do not display on the status map. I >>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >>The icons display just fine in the host detail, hostgroup overview, etc. >>Yes, per upgrade instructions, this extended host info has been moved into >>the hosts config. Sample looks like: >> >> icon_image firewall_router.png >> vrml_image firewall_router.png >> statusmap_image firewall_router.gd2 >> 2d_coords 100,200 >> >>Attached is screen shot. Anyone else seen this? >You probably don't have the related GD libraries installed that were >used to build the RPM. All the other locations are simply links to >the image (html ), whilst the images in the status maps are >imported using the GD libraries if I remember correctly. > >-- >Jon Angliss I thought of this myself. The odd thing is that the status map function in the 2.9 Nagios package produced by the same repository maintainer worked just fine with the current installed GD library, which is 2.0.33. That GD library was not upgraded prior to the Nagios upgrade. If no one else has seen this same problem, then I'll contact the repository maintainer. FYI, this is on a CentOS 5 system using the nagios-3.0.6-1.el5.rf DAG Apt rpm. Thanks, James ------------------------------------------------------------------------------ _______________________________________________ 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 jon at netdork.net Fri Jan 2 20:12:47 2009 From: jon at netdork.net (Jon Angliss) Date: Fri, 02 Jan 2009 13:12:47 -0600 Subject: icons not displaying on Nagios 3.0.6 status map References: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> Message-ID: <8gpsl4ptvrh0snlqto4jnlhngbkgukb2mi@4ax.com> On Fri, 2 Jan 2009 12:10:20 -0600, jmoseley at corp.xanadoo.com wrote: > > Jon Angliss > > To > 01/02/2009 12:03 nagios-users at lists.sourceforge.net > AM cc > > Subject > Re: [Nagios-users] icons not > displaying on Nagios 3.0.6 status > map > >On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > > >>>Been using Nagios 2.x for years and never had this problem. Just upgraded >>>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >>>to work fine, except that icons do not display on the status map. I >>>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >>>The icons display just fine in the host detail, hostgroup overview, etc. >>>Yes, per upgrade instructions, this extended host info has been moved into >>>the hosts config. Sample looks like: >>> >>> icon_image firewall_router.png >>> vrml_image firewall_router.png >>> statusmap_image firewall_router.gd2 >>> 2d_coords 100,200 >>> >>>Attached is screen shot. Anyone else seen this? >>You probably don't have the related GD libraries installed that were >>used to build the RPM. All the other locations are simply links to >>the image (html ), whilst the images in the status maps are >>imported using the GD libraries if I remember correctly. >I thought of this myself. The odd thing is that the status map function in >the 2.9 Nagios package produced by the same repository maintainer worked >just fine with the current installed GD library, which is 2.0.33. That GD >library was not upgraded prior to the Nagios upgrade. If no one else has >seen this same problem, then I'll contact the repository maintainer. You could see what's different in the statusmap.cgi file using ldd to see what it's mapped against? ldd statusmap.cgi You may find a missing library. Also, you may not have upgraded your GD libraries, but if the package maintainer did for some reason, there might be conflicts there. -- Jon Angliss ------------------------------------------------------------------------------ _______________________________________________ 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 joe.hartley at retailsolutions.com Fri Jan 2 20:24:51 2009 From: joe.hartley at retailsolutions.com (Joe Hartley) Date: Fri, 2 Jan 2009 11:24:51 -0800 Subject: check_ntp_time : "Offset Unknown" for any host since yesterday In-Reply-To: <495E5273.7080304@aei.ca> References: <495A5E13.5050408@medi.fr><495A7D9D.80106@aei.ca> <7AFF5C01-EFEF-4E98-BD3F-8DC1176636D8@ena.com> <495E5273.7080304@aei.ca> Message-ID: <580CB599E684764C84C5CCFA64A929B4013012CE@EXVBE011-2.exch011.intermedia.net> Thomas Guyot-Sionnest wrote: > It won't happen often anyways... Last leap second was inserted in 2005, > you'll likely have it upgraded by the time they insert a new leap second :) Not true, there was one inserted 2 days ago (Dec 31, 2008). That might very well have affected people with the wrong version of the plugin! -- Joe Hartley | Sr. Linux SysAdmin Retail Solutions, Inc. (formerly VeriSign RDS) 40 Sharpe Drive Cranston, RI 02920 joe.hartley at retailsolutions.com +1 401.824.5040 (o) | +1 401.824.5002 (f) ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Fri Jan 2 20:29:40 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 2 Jan 2009 13:29:40 -0600 Subject: icons not displaying on Nagios 3.0.6 status map In-Reply-To: <8gpsl4ptvrh0snlqto4jnlhngbkgukb2mi@4ax.com> References: <8gpsl4ptvrh0snlqto4jnlhngbkgukb2mi@4ax.com> Message-ID: Jon Angliss To 01/02/2009 01:12 nagios-users at lists.sourceforge.net PM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Fri, 2 Jan 2009 12:10:20 -0600, jmoseley at corp.xanadoo.com wrote: > > Jon Angliss > > To > 01/02/2009 12:03 nagios-users at lists.sourceforge.net > AM cc > > Subject > Re: [Nagios-users] icons not > displaying on Nagios 3.0.6 status > map > >On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > > >>>Been using Nagios 2.x for years and never had this problem. Just upgraded >>>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >>>to work fine, except that icons do not display on the status map. I >>>basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >>>The icons display just fine in the host detail, hostgroup overview, etc. >>>Yes, per upgrade instructions, this extended host info has been moved into >>>the hosts config. Sample looks like: >>> >>> icon_image firewall_router.png >>> vrml_image firewall_router.png >>> statusmap_image firewall_router.gd2 >>> 2d_coords 100,200 >>> >>>Attached is screen shot. Anyone else seen this? >>You probably don't have the related GD libraries installed that were >>used to build the RPM. All the other locations are simply links to >>the image (html ), whilst the images in the status maps are >>imported using the GD libraries if I remember correctly. >I thought of this myself. The odd thing is that the status map function in >the 2.9 Nagios package produced by the same repository maintainer worked >just fine with the current installed GD library, which is 2.0.33. That GD >library was not upgraded prior to the Nagios upgrade. If no one else has >seen this same problem, then I'll contact the repository maintainer. -You could see what's different in the statusmap.cgi file using ldd to -see what it's mapped against? - - ldd statusmap.cgi - -You may find a missing library. Also, you may not have upgraded your -GD libraries, but if the package maintainer did for some reason, there -might be conflicts there. --- -Jon Angliss Thank's for the suggestions. No missing libraries. At this point, I am assuming that the GD libraries the maintainer used when building the rpm conflict with the latest GD library provided by CentOS. James ------------------------------------------------------------------------------ _______________________________________________ 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 dermoth at aei.ca Sat Jan 3 05:11:31 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Jan 2009 23:11:31 -0500 Subject: check_ntp_time : "Offset Unknown" for any host since yesterday In-Reply-To: <580CB599E684764C84C5CCFA64A929B4013012CE@EXVBE011-2.exch011.intermedia.net> References: <495A5E13.5050408@medi.fr><495A7D9D.80106@aei.ca> <7AFF5C01-EFEF-4E98-BD3F-8DC1176636D8@ena.com> <495E5273.7080304@aei.ca> <580CB599E684764C84C5CCFA64A929B4013012CE@EXVBE011-2.exch011.intermedia.net> Message-ID: <495EE573.8050604@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/01/09 02:24 PM, Joe Hartley wrote: > Thomas Guyot-Sionnest wrote: >> It won't happen often anyways... Last leap second was inserted in > 2005, >> you'll likely have it upgraded by the time they insert a new leap > second :) > > Not true, there was one inserted 2 days ago (Dec 31, 2008). That might > very well have affected people with the wrong version of the plugin! That's what I'm saying... 2005 -> 2008 is 3 years, and the last broken version is already > 1 year old... If we get another leap second in three years that release will be > 4 years old. Also FYI leap seconds are only added/removed on fixed dates every 6 month (end of Dec or end of June). Moreover, any linux distribution that still maintain this version (i.e. in long term supports version or similar) can get the patch in and make a bugfix release. I can't change the past, I'm just saying the this problem likely won't affect many users when the next leap second is inserted. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXuVz6dZ+Kt5BchYRAi/tAKDMNGoypbnYzi31DZgD76lEGI7WQgCg3Ihs fv3mBRsqPbtYCnEJ8k62yrE= =KspN -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ 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 dermoth at aei.ca Sat Jan 3 05:48:16 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 02 Jan 2009 23:48:16 -0500 Subject: 3 doubts on SMS alert system for Nagios : by kannel SMS gateway In-Reply-To: <60b5635b0812300536l2475fc12q4b3ffa47cded2827@mail.gmail.com> References: <60b5635b0812300536l2475fc12q4b3ffa47cded2827@mail.gmail.com> Message-ID: <495EEE10.5040007@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/12/08 08:36 AM, KK CHN wrote: > Hi all ; > > I followed this tutorial > http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1855.html > > [...] > > define command{ > command_name service_notify_with_sms > command_line $USER1$/notify_sms -a MY_MOBILE_NUMBER -u > MY_USER_NAME -p > MY_PASSWORD -m \ '$NOTIFICATIONTYPE$:$HOSTNAME$ is $SERVICESTATE$ > ($SERVICEOUTPUT$)\' -t $CONTACTPAGER$ > } > > > I have 3 doubts > > doubt 1) is the above configuration correct ? > > [...] I don't know about this tool, so all I can suggest is to dead the doc... > doubt 2 ) why I have to add again the following config section ? i > mean the purpose of the following lines ? > > define command{ > > | command_name host_notify_with_sms > command_line /usr/lib/nagios/plugins/notify_sms -a 1012345 -u myusername_for_gw -p mypassword_for_gw -m \'$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($HOSTOUTPUT$)\' -t $CONTACTPAGER$ > > > | > > } One is for service and the other for host notification, as some macros differs. The host one (above) seems OK, but in the service one (top of email) seems to be missing the service name macro: you will know that something is WARNING/CRITICAL/UNKNOWN about a service of your host but it won't tell you which service it is... which is usually kind of useful. :) > > doubt 3) if I added the 2 define command sections in commands.cfg > as in the website , can I get an sms alert ?anything else I have to > add in localhost.cfg ? (where I have services to check > ssh,ping,http in the localhost . ) Don't forget to use the commands above in your contact definitions for host and service alerts. If you wish to receive emails as well, you will need the contacts twice (one for email and one for alerts). You can also play with the notification options; for instance I receive all WARNING/CRITICAL/OK/DOWN/UP alerts on email, but only CRITICAL/DOWN on pager, so I don't wake up in the middle of the night for something that doesn't require immediate attention. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXu4Q6dZ+Kt5BchYRAp7ZAJ4lIN87ZAKVOdt9dtfXOJfci8PiMwCdG4bQ CxyBSh4GG2Dx0F0U4hHUGRY= =Qu2J -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ 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 jamsda_1 at yahoo.com Sun Jan 4 03:55:16 2009 From: jamsda_1 at yahoo.com (jimj) Date: Sat, 3 Jan 2009 18:55:16 -0800 (PST) Subject: NRPE vs. check_by_ssh Message-ID: <203231.72990.qm@web50905.mail.re2.yahoo.com> I'm looking to monitor remote disk, cpu, mem etc and wondering if there's a way to pick your crypto with nrpe like with nsca? Otherwise thinking check_by_ssh, don't want to have to deal with all the keying. Is nrpe secure, if so comparable to ssh? Thanks, Jim ------------------------------------------------------------------------------ _______________________________________________ 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 uwe at kubosch.no Sun Jan 4 14:46:45 2009 From: uwe at kubosch.no (Uwe Kubosch) Date: Sun, 04 Jan 2009 14:46:45 +0100 Subject: Availability report: What does scheduled/unscheduled OK time mean Message-ID: <1231076805.21204.45.camel@pippin> Hi all! In the availability report there are rows for scheduled and unscheduled uptime (OK). What does this actually mean? I schedule downtime for a service, and I expect the availability report to list warning and critical times in a scheduled downtime period in the "scheduled" rows for warning and critical, but I have no idea what the "scheduled" and "unscheduled" times for OK mean. Can anybody clarify? -- With kind regards, Uwe Kubosch Kubosch Consulting Norway -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 jmoseley at corp.xanadoo.com Sun Jan 4 22:34:01 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sun, 4 Jan 2009 15:34:01 -0600 Subject: icons not displaying on Nagios 3.0.6 status map In-Reply-To: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> References: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> Message-ID: FYI, compiled Nagios 3.0.6 from source against the GD libraries that are available via the RHEL5/CentOS 5 repository. This is GD releaes 2.0.33. I still have the same problem with images being displayed on the status map. Wondering if this is a problem with GD packages, I complied GD 2.0.35 from source and then recompiled Nagios against the new GD 2.0.35 libraries. Still no dice. There does not appear to be a problem with my Nagios configuration and this worked flawlessly in Nagios 2.8 and 2.9. The images also display correctly when viewing the 3D status map. James Moseley Jon Angliss To 01/02/2009 12:03 nagios-users at lists.sourceforge.net AM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > >Been using Nagios 2.x for years and never had this problem. Just upgraded >a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >to work fine, except that icons do not display on the status map. I >basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >The icons display just fine in the host detail, hostgroup overview, etc. >Yes, per upgrade instructions, this extended host info has been moved into >the hosts config. Sample looks like: > > icon_image firewall_router.png > vrml_image firewall_router.png > statusmap_image firewall_router.gd2 > 2d_coords 100,200 > >Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html ), whilst the images in the status maps are imported using the GD libraries if I remember correctly. -- Jon Angliss ------------------------------------------------------------------------------ _______________________________________________ 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 lars.k.klykken at met.no Mon Jan 5 08:30:34 2009 From: lars.k.klykken at met.no (Lars Kristian Klykken) Date: Mon, 5 Jan 2009 08:30:34 +0100 Subject: Availability report: What does scheduled/unscheduled OK time mean In-Reply-To: <1231076805.21204.45.camel@pippin> References: <1231076805.21204.45.camel@pippin> Message-ID: <20090105073033.GB14088@met.no> Hi Uwe! > In the availability report there are rows for scheduled and unscheduled > uptime (OK). What does this actually mean? I schedule downtime for a > service, and I expect the availability report to list warning and > critical times in a scheduled downtime period in the "scheduled" rows > for warning and critical, but I have no idea what the "scheduled" and > "unscheduled" times for OK mean. If your service is in an OK state in a scheduled downtime window, I would expect this state to be logged as OK in the "scheduled" row. .../Bosse -- Lars Kristian (Bosse) Klykken, Senior Engineer Tel. +47 22963068 Linux Team / Server Operations / IT Department Fax. +47 22696355 Norwegian Meteorological Institute http://www.met.no P.O. Box 43 Blindern, 0313 Oslo, NORWAY -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 shaibn at gmail.com Mon Jan 5 08:28:35 2009 From: shaibn at gmail.com (Shai) Date: Mon, 5 Jan 2009 09:28:35 +0200 Subject: send warnings to one group and critical to another Message-ID: Hi, I have two different user groups. I have a service which is currently sending both WARNING and CRITICAL notifications to both. I would like WARNING and CRITICAL to be sent to group A and CRITICAL only to group B. How can I accomplish this? Shai -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 challenger_joseph at yahoo.com.mx Mon Jan 5 18:13:57 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Mon, 5 Jan 2009 09:13:57 -0800 (PST) Subject: Setting up NRPE on HP UX Message-ID: <650705.35606.qm@web36501.mail.mud.yahoo.com> Hi All! I have 2 machines with Unix HP UX, and I'd like to monitoring them?installing nrpe, but I haven't found documentation or how to's about it. On Linux plataform is working very well, but it's a kind of difficult to do it on UNIX (HP UX) Does any body know how can perform this? Thanks in advance ?Todo sobre Amor y Sexo! La gu?a completa para tu vida en Mujer de Hoy. http://mx.mujer.yahoo.com/ ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Mon Jan 5 19:03:54 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 5 Jan 2009 12:03:54 -0600 Subject: Setting up NRPE on HP UX In-Reply-To: <650705.35606.qm@web36501.mail.mud.yahoo.com> References: <650705.35606.qm@web36501.mail.mud.yahoo.com> Message-ID: Good documentation can be found at: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf Basically, you have to install NRPE on the host you want monitored *and* any plugins that NRPE daemon on that host will call. If you want to monitor things specific to HP UX, then you'll have to write custom plugins. You will also have to configure nrpe.cfg on the monitored host in order to define check commands, which Nagios hosts(s) are allowed to talk to the NRPE daemon, etc. Then you have to install the check_nrpe plugin on the Nagios host doing the monitoring. Next, in the services config on the Nagios host, you have to define that you are checking a particular service via NRPE. For example: check_command check_nrpe!!check_nagios That tells Nagios that you want to check host 'host.abc.com' via NRPE and that the NRPE daemon on remote host.abc.com should call the check_nagios plugin (in order to see if Nagios is running on the remote host). This should get you started... James Moseley Christian I?iguez To nagios-users at lists.sourceforge.net 01/05/2009 11:13 cc AM Subject [Nagios-users] Setting up NRPE on HP UX Hi All! I have 2 machines with Unix HP UX, and I'd like to monitoring them?installing nrpe, but I haven't found documentation or how to's about it. On Linux plataform is working very well, but it's a kind of difficult to do it on UNIX (HP UX) Does any body know how can perform this? Thanks in advance ?Todo sobre Amor y Sexo! La gu?a completa para tu vida en Mujer de Hoy. http://mx.mujer.yahoo.com/ ------------------------------------------------------------------------------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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 AHKAPLAN at PARTNERS.ORG Mon Jan 5 19:16:29 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 5 Jan 2009 13:16:29 -0500 Subject: Setting up NRPE on HP UX In-Reply-To: <650705.35606.qm@web36501.mail.mud.yahoo.com> References: <650705.35606.qm@web36501.mail.mud.yahoo.com> Message-ID: Hi there -- I would check out the following URL: http://www.bennyvision.com/projects/nagios/index.php I have used the files that are available there with great success. -----Original Message----- From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] Sent: Monday, January 05, 2009 12:14 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up NRPE on HP UX Hi All! I have 2 machines with Unix HP UX, and I'd like to monitoring them?installing nrpe, but I haven't found documentation or how to's about it. On Linux plataform is working very well, but it's a kind of difficult to do it on UNIX (HP UX) Does any body know how can perform this? Thanks in advance ?Todo sobre Amor y Sexo! La gu?a completa para tu vida en Mujer de Hoy. http://mx.mujer.yahoo.com/ ------------------------------------------------------------------------------ _______________________________________________ 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 The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ _______________________________________________ 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 kyleodonnell at gmail.com Mon Jan 5 19:41:57 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Mon, 5 Jan 2009 13:41:57 -0500 Subject: Setting up NRPE on HP UX In-Reply-To: References: <650705.35606.qm@web36501.mail.mud.yahoo.com> Message-ID: <2274b9c30901051041s1a8b2caah1d5a532a8029b152@mail.gmail.com> ive compiled them for 10.20 and 11.00 (works with 11.11) http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2559.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2556.html;d=1 On 1/5/09, Kaplan, Andrew H. wrote: > Hi there -- > > I would check out the following URL: > > http://www.bennyvision.com/projects/nagios/index.php > > I have used the files that are available there with great success. > > -----Original Message----- > From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] > Sent: Monday, January 05, 2009 12:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Setting up NRPE on HP UX > > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them installing > nrpe, but I haven't found documentation or how to's about it. > > On Linux plataform is working very well, but it's a kind of difficult to do > it > on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Mon Jan 5 20:12:07 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 5 Jan 2009 13:12:07 -0600 Subject: Nagios 3.x spews debug output on configuration verify on RHEL3 systems In-Reply-To: References: Message-ID: This same issue was posted on the users list back in March, but didn't generate any interest. Essentially, the problem doesn't exist on RHEL 4 or 5 systems and shows up only when Nagios is compiled with ePN support. On RHEL3, when verifying configuration, I get: Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... LEN: 79, END: 77, BUF=############################################################################## BUFNOW: ############################################################################## LEN: 2, END: 0, BUF=# BUFNOW: # LEN: 51, END: 49, BUF=# NAGIOS.CFG - Sample Main Config File for Nagios BUFNOW: # NAGIOS.CFG - Sample Main Config File for Nagios * * * The original poster posted a patch that seemed to fix the issue: include/epn_nagios.h #include ++ #undef DEBUG #undef ctime /* don't need perl's threaded version */ #undef printf /* can't use perl's printf until initialized */ Not sure if this works... Anyone have any insight? Thanks, James Moseley ------------------------------------------------------------------------------ _______________________________________________ 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 benny at bennyvision.com Mon Jan 5 20:50:51 2009 From: benny at bennyvision.com (C. Bensend) Date: Mon, 5 Jan 2009 13:50:51 -0600 (CST) Subject: Setting up NRPE on HP UX In-Reply-To: References: <650705.35606.qm@web36501.mail.mud.yahoo.com> Message-ID: <4799b41de22019ac740542b294830d02.squirrel@webmail.stinkweasel.net> :) Please keep in mind, the versions there are *old*. I don't work at that job any longer, so I do not have an environment to build new ones. Benny > Hi there -- > > I would check out the following URL: > > http://www.bennyvision.com/projects/nagios/index.php > > I have used the files that are available there with great success. > > -----Original Message----- > From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] > Sent: Monday, January 05, 2009 12:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Setting up NRPE on HP UX > > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them?installing > nrpe, but I haven't found documentation or how to's about it. > > On Linux plataform is working very well, but it's a kind of difficult to > do it > on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > > > The information in this e-mail is intended only for the person to whom it > is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > -- "This is /my/ kung fu. And it is strong." -- Rat, "The Core" ------------------------------------------------------------------------------ _______________________________________________ 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 mirde at oppy.com Tue Jan 6 03:06:44 2009 From: mirde at oppy.com (Mirza Dedic) Date: Mon, 5 Jan 2009 18:06:44 -0800 Subject: check_by_ssh for new linxux users.. shed some light... Message-ID: Hello, I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I am able to get Nagios to monitor all the things I need on a Win32 box (using NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work for me. I have previously never used check_by_ssh; I am also fairly new to the linux OS. My OS is Ubuntu and many of the servers I want to monitor are RHEL4 or Fedora. I know that to get check_by_ssh to work, I need to create a private/public certificate on the client/server; anyone shed some light on how to create this? Do I create the key on my Nagios box? Under the same user that was used when compiling Nagios? For the remote host (monitored linux server); what do I need to do? Create the same user-id? How do I apply the certificate from my Nagios Host to the monitored Host so that my shell scripts can connect to the Host B without a password prompt? Please if you could, shed some light for a beginner. Also, our environment is using Kerberos, all the servers use SSH/Kerberos, this way when users are created in Active Directory they are replicated across the linux servers (is this why I can't find authorized_keys file?) Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 patrick.morris at hp.com Tue Jan 6 03:41:49 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 5 Jan 2009 18:41:49 -0800 Subject: check_by_ssh for new linxux users.. shed some light... In-Reply-To: References: Message-ID: <20090106024149.GB26044@bakgwai.americas.hpqcorp.net> On Tue, 06 Jan 2009, Mirza Dedic wrote: > Hello, > > I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I am able to get Nagios to monitor all the things I need on a Win32 box (using NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work for me. > > I have previously never used check_by_ssh; I am also fairly new to the linux OS. My OS is Ubuntu and many of the servers I want to monitor are RHEL4 or Fedora. > > I know that to get check_by_ssh to work, I need to create a private/public certificate on the client/server; anyone shed some light on how to create this? > > Do I create the key on my Nagios box? Under the same user that was used when compiling Nagios? > > For the remote host (monitored linux server); what do I need to do? Create the same user-id? How do I apply the certificate from my Nagios Host to the monitored Host so that my shell scripts can connect to the Host B without a password prompt? > > Please if you could, shed some light for a beginner. > > Also, our environment is using Kerberos, all the servers use SSH/Kerberos, this way when users are created in Active Directory they are replicated across the linux servers (is this why I can?t find authorized_keys file?) This doc's not bad. You'll want to create a key for the user Nagios runs as on the Nagios box. The user on the other end doesn't matter so much, as long as the Nagios user's key is authorized to log in on the other side as that user. http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/ ------------------------------------------------------------------------------ _______________________________________________ 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 satishkumarp2k1 at gmail.com Tue Jan 6 05:18:54 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Tue, 6 Jan 2009 09:48:54 +0530 Subject: check_by_ssh for new linxux users.. shed some light... In-Reply-To: References: Message-ID: On Tue, Jan 6, 2009 at 7:36 AM, Mirza Dedic wrote: > Hello, > > I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I > am able to get Nagios to monitor all the things I need on a Win32 box (using > NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work > for me. I have previously never used check_by_ssh; I am also fairly new to the linux > OS. My OS is Ubuntu and many of the servers I want to monitor are RHEL4 or > Fedora. I know that to get check_by_ssh to work, I need to create a private/public > certificate on the client/server; anyone shed some light on how to create > this? > > Do I create the key on my Nagios box? Under the same user that was used when > compiling Nagios? For the remote host (monitored linux server); what do I need to do? Create > the same user-id? How do I apply the certificate from my Nagios Host to the > monitored Host so that my shell scripts can connect to the Host B without a > password prompt? Please if you could, shed some light for a beginner. > > Also, our environment is using Kerberos, all the servers use SSH/Kerberos, > this way when users are created in Active Directory they are replicated > across the linux servers (is this why I can't find authorized_keys file?) The key based authentication works if you enable RSAAuthentication (or equivalent) in your SSH server's configuration on Linux servers. I am not really sure how things work out if you enable both Kerberos and Key based authentication. But you could give it a try with one server. You could create the private and public key pair using a command, ssh-keygen (from a Linux machine) or puttygen (on windows). Next the user account that runs Nagios should use the private and public key pairs generated. You can create a new user account on the target Linux server or use existing account also. Place the newly generated public key in the ~/.ssh/authorized_keys file on the target Linux server, Then you could verify the setup by trying a SSH session from the Nagios server to the target Linux server. If you are not being asked for a password etc. and if you get the remote shell immediately, the setup should be proper. Then you can configure a new command definition by specifying the login identity etc. for check_by_ssh command. If you do not to get into the hassles of these things, I would suggest to try out check_ssh plugin to check the sanity of SSH daemons running on Linux servers. HTH. ------------------------------------------------------------------------------ _______________________________________________ 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 d.hill at yournetplus.com Tue Jan 6 05:31:49 2009 From: d.hill at yournetplus.com (Duane Hill) Date: Tue, 6 Jan 2009 04:31:49 +0000 (UTC) Subject: Return code of 141 is out of bounds - SMTP Monitor Message-ID: Every once in a while I will get a critical alert stating: Notification Type: PROBLEM Service: SMTP Host: Secondary Spam Filter Address: 192.168.1.50 State: CRITICAL Date/Time: Tue Jan 6 00:43:01 UTC 2009 Additional Info: (Return code of 141 is out of bounds) I have the SMTP service defined as such: define service { ; smtp port 25 use ynp-services-duane host_name sec_spam_filt service_description SMTP check_command check_smtp!-p 25 -t 60 } I've checked list archives and have not found anything that closely resembles the issue at hand. What should I be looking for to correct this? Perhaps this is a FreeBSD port issue that needs to be reported to the port maintainer. Nagios version is v3.0.5 running on FreeBSD v6.3. -d ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Tue Jan 6 05:48:11 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 5 Jan 2009 22:48:11 -0600 Subject: Return code of 141 is out of bounds - SMTP Monitor In-Reply-To: References: Message-ID: First, the syntax of the check_command should be: check_smtp!25!60 And for that to work, the entry in your checkcommands.cfg would look like: # 'check_smtp' command definition define command{ command_name check_smtp command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p $ARG1$ -t $ARG2$ } James Moseley Duane Hill To Nagios-users at lists.sourceforge.net 01/05/2009 10:31 cc PM Subject [Nagios-users] Return code of 141 Please respond to is out of bounds - SMTP Monitor d.hill at yournetplu s.com Every once in a while I will get a critical alert stating: Notification Type: PROBLEM Service: SMTP Host: Secondary Spam Filter Address: 192.168.1.50 State: CRITICAL Date/Time: Tue Jan 6 00:43:01 UTC 2009 Additional Info: (Return code of 141 is out of bounds) I have the SMTP service defined as such: define service { ; smtp port 25 use ynp-services-duane host_name sec_spam_filt service_description SMTP check_command check_smtp!-p 25 -t 60 } I've checked list archives and have not found anything that closely resembles the issue at hand. What should I be looking for to correct this? Perhaps this is a FreeBSD port issue that needs to be reported to the port maintainer. Nagios version is v3.0.5 running on FreeBSD v6.3. -d ------------------------------------------------------------------------------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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 flrenegado at gmail.com Tue Jan 6 07:23:56 2009 From: flrenegado at gmail.com (fernando renegado) Date: Tue, 6 Jan 2009 14:23:56 +0800 Subject: nagios not sending sms through gnokii Message-ID: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> Hi, It's been weeks since I've been experimenting on gnokii to send sms alerts from nagios. I'm using nokia 5210 xpress music cell connected to my nagios on Centos box. When I tried to send sms at the terminal it works fine. But when I enable nagios to send sms, it doesn't. I tried to chmod and chown the port being used by gnokii but to no avail. Please help! fearnone -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 hvdkooij at vanderkooij.org Tue Jan 6 07:47:45 2009 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 06 Jan 2009 07:47:45 +0100 Subject: nagios not sending sms through gnokii In-Reply-To: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> Message-ID: <4962FE91.3090605@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fernando renegado wrote: > Hi, > > It's been weeks since I've been experimenting on gnokii to send sms > alerts from nagios. I'm using nokia 5210 xpress music cell connected to > my nagios on Centos box. When I tried to send sms at the terminal it > works fine. But when I enable nagios to send sms, it doesn't. I tried to > chmod and chown the port being used by gnokii but to no avail. Please help! What other ways did you test this? Did you test as the nagios user? Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith i'w gyfieithu. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkli/pAACgkQBvzDRVjxmYHBNQCgo10gVnRbl8+dMPuNDvkWZz/n lBIAnAvAwZRmhxPpfbUS2WvzEBRY/acG =SYjJ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ 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 uwe at kubosch.no Tue Jan 6 08:56:11 2009 From: uwe at kubosch.no (Uwe Kubosch) Date: Tue, 06 Jan 2009 08:56:11 +0100 Subject: Availability report: What does scheduled/unscheduled OK time mean In-Reply-To: <20090105073033.GB14088@met.no> References: <1231076805.21204.45.camel@pippin> <20090105073033.GB14088@met.no> Message-ID: <1231228571.4239.1.camel@pippin> On Mon, 2009-01-05 at 08:30 +0100, Lars Kristian Klykken wrote: > Hi Uwe! > > > In the availability report there are rows for scheduled and unscheduled > > uptime (OK). What does this actually mean? I schedule downtime for a > > service, and I expect the availability report to list warning and > > critical times in a scheduled downtime period in the "scheduled" rows > > for warning and critical, but I have no idea what the "scheduled" and > > "unscheduled" times for OK mean. > > If your service is in an OK state in a scheduled downtime window, I > would expect this state to be logged as OK in the "scheduled" row. Does anybody need this? It would simplify the report if the OK state was on one row only. -- With kind regards, Uwe Kubosch Kubosch Consulting Norway -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- 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 lmeier at ajc.com Tue Jan 6 14:34:58 2009 From: lmeier at ajc.com (Layne Meier) Date: Tue, 6 Jan 2009 08:34:58 -0500 Subject: Email priority Message-ID: Is there a way to define in Nagios to send email alerts with high or low priority notification? Several of our users want to be able to set their Blackberries to alert them a different way if a high priority email comes in, rather than just a regular email. Layne Meier Atlanta Journal-Constitution A Cox Newspaper ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Tue Jan 6 15:24:04 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 6 Jan 2009 08:24:04 -0600 Subject: Email priority In-Reply-To: References: Message-ID: >Is there a way to define in Nagios to send email alerts with high or >low priority notification? Several of our users want to be able to >set their Blackberries to alert them a different way if a high >priority email comes in, rather than just a regular email. > >Layne Meier Not that I am aware of, no. James ------------------------------------------------------------------------------ _______________________________________________ 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 d.hill at yournetplus.com Tue Jan 6 15:41:49 2009 From: d.hill at yournetplus.com (Duane Hill) Date: Tue, 6 Jan 2009 14:41:49 +0000 (UTC) Subject: Return code of 141 is out of bounds - SMTP Monitor In-Reply-To: References: Message-ID: On Mon, 5 Jan 2009, jmoseley at corp.xanadoo.com wrote: > First, the syntax of the check_command should be: > > check_smtp!25!60 > > And for that to work, the entry in your checkcommands.cfg would look like: > > # 'check_smtp' command definition > define command{ > command_name check_smtp > command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p $ARG1$ -t > $ARG2$ > } Thanks for clearing that up. I was getting the commandline parameters confused with the way Nagios is configured within. ------------------------------------------------------------------------------ _______________________________________________ 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 paul.weaver at bbc.co.uk Tue Jan 6 15:43:52 2009 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Tue, 6 Jan 2009 14:43:52 -0000 Subject: Email priority In-Reply-To: References: Message-ID: > Is there a way to define in Nagios to send email alerts with > high or low priority notification? Several of our users want > to be able to set their Blackberries to alert them a > different way if a high priority email comes in, rather than > just a regular email. > > Layne Meier > Atlanta Journal-Constitution > A Cox Newspaper Yes, you need to change the outgoing mail command. If you are using the default "mail" command, add a new entry to commands.cfg which is the same, but has printf .....|mail -a "Priority: Urgent" -a "Importance: high" -a "X-Priority: 1" -s subject contact Instead of printf .....|mail -s subject contact As to what the blackberry does with an urgent email, that's another matter. If you use a different mailing system (mailx for example), you need to add the Priority headers. -- Paul Weaver Systems Development Engineer News Production Facilities, BBC News ------------------------------------------------------------------------------ _______________________________________________ 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.Cherrington at rhul.ac.uk Tue Jan 6 15:51:10 2009 From: Stuart.Cherrington at rhul.ac.uk (Cherrington Stuart) Date: Tue, 6 Jan 2009 14:51:10 -0000 Subject: icons not displaying on Nagios 3.0.6 status map In-Reply-To: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> References: <4cbrl4tedtqqh8julkpvfqf1pkkrq5l19o@4ax.com> Message-ID: <5332CCE6B7DACF4CA514A1F8141A5D28027F7FD1@EXCH-DB-04.cc.rhul.local> James, I had this issue on a 3.0.x on Debian a while ago when I added custom made png's. It could be the relation of the png files to were the webserver expects it. My Nagios apache config says DocumentRoot /usr/share/nagios2/htdocs, and my images are stored in /usr/share/nagios2/htdocs/images/logos/stuart in the extinfo.cfg I had to specify icon_image stuart/emc.png so Ngaios map was drawn correctly. Thanks, Stuart Cherrington Unix Systems Admin Royal Holloway University Mobile: 07756 857607 -----Original Message----- From: Jon Angliss [mailto:jon at netdork.net] Sent: 02 January 2009 06:03 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > >Been using Nagios 2.x for years and never had this problem. Just upgraded >a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems >to work fine, except that icons do not display on the status map. I >basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. >The icons display just fine in the host detail, hostgroup overview, etc. >Yes, per upgrade instructions, this extended host info has been moved into >the hosts config. Sample looks like: > > icon_image firewall_router.png > vrml_image firewall_router.png > statusmap_image firewall_router.gd2 > 2d_coords 100,200 > >Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html ), whilst the images in the status maps are imported using the GD libraries if I remember correctly. -- Jon Angliss ------------------------------------------------------------------------ ------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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 jmoseley at corp.xanadoo.com Tue Jan 6 15:53:51 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 6 Jan 2009 08:53:51 -0600 Subject: Return code of 141 is out of bounds - SMTP Monitor In-Reply-To: References: Message-ID: Duane Hill wrote: >Thanks for clearing that up. I was getting the commandline parameters >confused with the way Nagios is configured within. You're welcome. James ------------------------------------------------------------------------------ _______________________________________________ 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 gavin.henry at gmail.com Tue Jan 6 17:45:34 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Tue, 6 Jan 2009 16:45:34 +0000 Subject: $SERVICEOUTPUT$ empty in e-mail notifications Message-ID: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> Hi All, We're having a problem where the $SERVICEOUTPUT$ variable in the stock notify-by-email command is empty. When a notify-by-jabber is issued at the same time as the email only the jabber has this variable populated. Any ideas why the email isn't getting anything in $SERVICEOUTPUT$? Thanks. -- http://www.suretecsystems.com/services/openldap/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 nadiakheffache at yahoo.fr Tue Jan 6 17:52:29 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Tue, 6 Jan 2009 16:52:29 +0000 (GMT) Subject: install Message-ID: <210488.45246.qm@web25505.mail.ukl.yahoo.com> Hello, I want to install nagios in /usr/local/nagios/ with command group nagcmd, but i dont know the real syntax. in the document whe have ./configure --with-command-group=nagcm, so wante to change the $install_dir like: . / configure - prefix = / usr / local / nagios, but I do not know how i do thank you for your help ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 6 18:11:37 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 11:11:37 -0600 Subject: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> Message-ID: <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> On Jan 6, 2009, at 10:45 AM, Gavin Henry wrote: > Hi All, > > We're having a problem where the $SERVICEOUTPUT$ variable in the stock > notify-by-email command is empty. When a notify-by-jabber is issued at > the same time as the email only the jabber has this variable > populated. > > Any ideas why the email isn't getting anything in $SERVICEOUTPUT$? There have never been bugs related to macro substitution that I can remember so I think there are three possibilities. There's not enough information yet to determine which -- 1) The macro isn't included in the notification command being used by that contact. 2) The macro is mis-typed in that notification command. 3) The macro isn't valid for the notification type being sent (i.e. a host notification). Please post the nagios version and how installed (package or source), service definition, contactgroup definition, contact definition and notification command so we can help narrow it down. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 6 18:15:08 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 11:15:08 -0600 Subject: install In-Reply-To: <210488.45246.qm@web25505.mail.ukl.yahoo.com> References: <210488.45246.qm@web25505.mail.ukl.yahoo.com> Message-ID: <1077AD5A-76B4-45EF-8FB6-897082694093@ena.com> On Jan 6, 2009, at 10:52 AM, nadia kheffache wrote: > Hello, > > I want to install nagios in /usr/local/nagios/ with command group > nagcmd, but i dont know the real syntax. > in the document whe have ./configure --with-command-group=nagcm, so > wante to change the $install_dir like: > > . / configure - prefix = / usr / local / nagios, but I do not know > how i do /usr/local/nagios is the default location if none is specified but if you wanted to do so -- ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd './configure --help' will show all possible flags that can be passed to the configure command. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Tue Jan 6 18:20:28 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 6 Jan 2009 11:20:28 -0600 Subject: install In-Reply-To: <210488.45246.qm@web25505.mail.ukl.yahoo.com> References: <210488.45246.qm@web25505.mail.ukl.yahoo.com> Message-ID: nadia kheffache wrote: >Hello, > >I want to install nagios in /usr/local/nagios/ with command group nagcmd, but i dont know the real syntax. >in the document whe have ./configure --with-command-group=nagcm, so wante to change the $install_dir like: > >. / configure - prefix = / usr / local / nagios, but I do not know how i do > >thank you for your help By default, it installs in /usr/local/nagios - so you shouldn't have to do anything. There are other prefix arguments as well. Look at the configure file in the source to see what other arguments exists. But for the above, it would be: ./configure -prefix=/usr/local James ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 frankm505 at gmail.com Tue Jan 6 19:43:14 2009 From: frankm505 at gmail.com (Frank M) Date: Tue, 6 Jan 2009 11:43:14 -0700 Subject: Critical - Socket Timeout After 10 Seconds Message-ID: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> I am running Nagios 3.0.6 with Nagios Plugins 1.4.13 on Suse Linux 11.1. Windows servers have NSClient++ 0.2.7 Every few minutes Nagios detects that a servers/service is down because it times out and in the status information shows: Critical - Socket Timeout After 10 Seconds. Once it redoes its check on those particular servers/services it shows that it is all good and other servers/services show "Critical - Socket Timeout After 10 Seconds". I looked for a place to change the timeout from 10 seconds to 20 but could not find one. Any help would be appreciated. Thank you, Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 matt at conundrum.com Tue Jan 6 19:50:04 2009 From: matt at conundrum.com (Matthew Pounsett) Date: Tue, 6 Jan 2009 13:50:04 -0500 Subject: Critical - Socket Timeout After 10 Seconds In-Reply-To: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> References: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> Message-ID: <284E4973-D90F-4779-AA2B-F2866A012E11@conundrum.com> On 06-Jan-2009, at 13:43 , Frank M wrote: > I am running Nagios 3.0.6 with Nagios Plugins 1.4.13 on Suse Linux > 11.1. Windows servers have NSClient++ 0.2.7 > > Every few minutes Nagios detects that a servers/service is down > because it times out and in the status information shows: Critical - > Socket Timeout After 10 Seconds. Once it redoes its check on those > particular servers/services it shows that it is all good and other > servers/services show "Critical - Socket Timeout After 10 Seconds". > I looked for a place to change the timeout from 10 seconds to 20 but > could not find one. Any help would be appreciated. The timeout may be coming from the plugin rather than nagios itself. For example, I occasional see check_by_ssh time out if packet loss gets a bit high, or if there's a DNS issue somewhere. In that case, the timeout is set as part of the command line, and I've modified my check commands accordingly so that I can tune it: define command { command_name check_disk_remote command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -t $USER4$ - C "$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$" } The '-t' on check_by_ssh alters its timeout value. Check the help for the plugins which you see reporting timeouts to see if you can tweak their timeout values. HTH, Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 ssimmons at cymfony.com Tue Jan 6 19:54:31 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Tue, 6 Jan 2009 13:54:31 -0500 Subject: Critical - Socket Timeout After 10 Seconds In-Reply-To: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> References: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB10D507B@buf-ex01.cymfony.com> use -t 20 to increase the timeout to 20 seconds (or whatever you want); most plug-ins have that switch example /usr/local/nagios/libexec/check_http -H myserver -p 80 -t 20 do a --help for verbose switch usage (example /usr/local/nagios/libexec/check_http --help) From: Frank M [mailto:frankm505 at gmail.com] Sent: Tuesday, January 6, 2009 1:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Critical - Socket Timeout After 10 Seconds I am running Nagios 3.0.6 with Nagios Plugins 1.4.13 on Suse Linux 11.1. Windows servers have NSClient++ 0.2.7 Every few minutes Nagios detects that a servers/service is down because it times out and in the status information shows: Critical - Socket Timeout After 10 Seconds. Once it redoes its check on those particular servers/services it shows that it is all good and other servers/services show "Critical - Socket Timeout After 10 Seconds". I looked for a place to change the timeout from 10 seconds to 20 but could not find one. Any help would be appreciated. Thank you, Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Tue Jan 6 20:10:33 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 13:10:33 -0600 Subject: Critical - Socket Timeout After 10 Seconds In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB10D507B@buf-ex01.cymfony.com> References: <110765300901061043xf9d5cd6ud98ffafac8364502@mail.gmail.com> <4881ECF1AB752843908A20CEE07A8EB10D507B@buf-ex01.cymfony.com> Message-ID: On Jan 6, 2009, at 12:54 PM, Seth Simmons wrote: > use ?t 20 to increase the timeout to 20 seconds (or whatever you > want); most plug-ins have that switch Also make sure that the master timeout value nagios uses for service checks (specified in nagios.cfg) is greater than this value or nagios will kill the check before the individual plugin timeout is reached. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 nadiakheffache at yahoo.fr Tue Jan 6 22:24:38 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Tue, 6 Jan 2009 21:24:38 +0000 (GMT) Subject: install Message-ID: <119982.49219.qm@web25503.mail.ukl.yahoo.com> thank you for your response, i think that i can do this : ./configure --prefix=$install_dir --with-command-group=nagcmd. thank you Marc --- En date de?: Mar 6.1.09, jmoseley at corp.xanadoo.com a ?crit?: > De: jmoseley at corp.xanadoo.com > Objet: Re: [Nagios-users] install > ?: nadiakheffache at yahoo.fr > Cc: nagios-users at lists.sourceforge.net > Date: Mardi 6 Janvier 2009, 18h20 > nadia kheffache wrote: > > >Hello, > > > >I want to install nagios in /usr/local/nagios/ with > command group nagcmd, > but i dont know the real syntax. > >in the document whe have ./configure > --with-command-group=nagcm, so wante > to change the $install_dir like: > > > >. / configure - prefix = / usr / local / nagios, but I > do not know how i > do > > > >thank you for your help > > By default, it installs in /usr/local/nagios - so you > shouldn't have to do > anything. There are other prefix arguments as well. Look > at the configure > file in the source to see what other arguments exists. > > But for the above, it would be: ./configure > -prefix=/usr/local > > James ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 gavin.henry at gmail.com Tue Jan 6 23:07:22 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Tue, 6 Jan 2009 22:07:22 +0000 Subject: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> Message-ID: <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> > 1) The macro isn't included in the notification command being used by > that contact. > 2) The macro is mis-typed in that notification command. > 3) The macro isn't valid for the notification type being sent (i.e. a > host notification). > > Please post the nagios version and how installed (package or source), > service definition, contactgroup definition, contact definition and > notification command so we can help narrow it down. Version: /opt/nagios/bin/nagios -V Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Installed by source with --prefix=opt/nagios Example service definition (all services have the same problem): define service{ use generic-service host_name host.example.com service_description PING check_command check_ping!100.0,20%!500.0,60% } Contact Group: define contactgroup{ contactgroup_name admins alias Nagios Administrators members nagiosadmin } Contact: define contact{ contact_name nagiosadmin use generic-contact alias gavin.henry email ghenry at suretecsystems.com pager 07930323266 } Service Email notification: define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Jabber one which has $SERVICEOUT$ populated: define command{ command_name notify-by-jabber command_line /opt/nagios/libexec/notify_via_jabber $CONTACTALIAS$ "$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$" } Thanks. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 bwann-nagios at wann.net Tue Jan 6 23:23:34 2009 From: bwann-nagios at wann.net (Bryan Wann) Date: Tue, 6 Jan 2009 16:23:34 -0600 (CST) Subject: Growing CPU utilization Message-ID: Hi list, I'm trying to debug a problem where CPU usage (specifically system%) of my Nagios host increase over time, about 0.5% an hour. Continuously watching the Nagios root process in "ps auxww' shows process %CPU increasing, while VSZ and RSS stay constant. Based on VSZ/RSS, it doesn't look like a memory leak. If I completely stop and re-start Nagios, it goes away. If it's unchecked, after several days CPU hits 99% and service latencies skyrocket. Through process of elimination, I think I've tracked it down to perl plugins. ePN is in use. I'm tracking 11,309 services on 1,364 hosts, 26% of those service checks are perl (manubulon.com's check_snmp_mem, check_snmp_load) and the rest are C (check_icmp, check_snmp). Any way I can analyze the perl plug-ins for issues or see what's happening with the embedded perl intepreter? Or anyone have any other insight into the process CPU utilization? I'm running Nagios 3.0.6. This happens on different CentOS kernels (2.6.18-92.1.10.el5PAE and 2.6.18-53.1.14.el5). Both systems have 8 GB memory and it's never hitting swap. If memory serves right, it's default config except for using use_large_installation_tweaks=1 and enable_environment_macros=0. Met vriendelijke groet/kind regards, bryan ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 7 00:00:09 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 17:00:09 -0600 Subject: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> Message-ID: <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> On Jan 6, 2009, at 4:07 PM, Gavin Henry wrote: > Version: > > /opt/nagios/bin/nagios -V > > Nagios 3.0.6 Thanks. > Example service definition (all services have the same problem): I was hoping to get a more complete picture of the information below but you seem to have all of the really key parts within inherited templates that weren't included. I'm at first trying to review your configuration and logic for errors. define service{ > use generic-service > host_name host.example.com > service_description PING > check_command check_ping!100.0,20%!500.0,60% > } What are the contacts/contact_groups for this service defined in the template? Please post the generic-service template. > Contact: > > define contact{ > contact_name nagiosadmin > use generic-contact > alias gavin.henry > email ghenry at suretecsystems.com > pager 07930323266 > } Please post the generic-contact template. It includes the service_notification_commands and host_notification_commands specifications that needs to be verified. > Service Email notification: > > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > } Assuming that this is the service_notification_command specified for nagiosadmin and the notification is a SERVICE NOTIFICATION, this looks ok. You _may_ have a typo at "Service Alert: $HOSTALIAS$/ $SERVICEDESC $" but the extra spaces may have been inadvertently added within the email to the list(?). Please post nagios.log NOTIFICATION examples where the problem has occurred for this contact. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 7 00:14:12 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 17:14:12 -0600 Subject: Growing CPU utilization In-Reply-To: References: Message-ID: <50C705AA-860C-4E38-AE12-449B8C7EB767@ena.com> On Jan 6, 2009, at 4:23 PM, Bryan Wann wrote: > Through process of elimination, I think I've tracked it down to perl > plugins. ePN is in use. I'm tracking 11,309 services on 1,364 > hosts, 26% > of those service checks are perl (manubulon.com's check_snmp_mem, > check_snmp_load) and the rest are C (check_icmp, check_snmp). Unless those perl plugins have been designed specifically to work with ePN, then I wouldn't be too surprised to see oddness. ePN transforms the plugin in a way that can cause unexpected breakage if the author wasn't expecting it. http://nagios.sourceforge.net/docs/3_0/embeddedperl.html and http://nagios.sourceforge.net/docs/3_0/epnplugins.html as well as most archive postings by Stanley Hopcroft can provide insight as well as some troubleshooting hints (like using contrib/ mini_epn for testing, though I have doubts it would show a gradual problem such as this). The simplest troubleshooting path may be to use the '# nagios: -epn' flag to disable ePN processing on individual plugins (or all, then add them back individually) to help identify the plugin that's causing the issue. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jon at netdork.net Wed Jan 7 01:15:52 2009 From: jon at netdork.net (Jon Angliss) Date: Tue, 06 Jan 2009 18:15:52 -0600 Subject: Email priority References: Message-ID: On Tue, 6 Jan 2009 08:34:58 -0500, Layne Meier wrote: >Is there a way to define in Nagios to send email alerts with high or >low priority notification? Several of our users want to be able to >set their Blackberries to alert them a different way if a high >priority email comes in, rather than just a regular email. I have a rule setup on my blackberry to mark all messages from "nagios at mydomain.tld" as a "Level 1" message. I then set the profile I normally use to make extra loud noises for level 1 messages. That way I can tell the difference between an important message, and a critical nagios alert. As for setting the priority, Paul detailed how to do that just nicely. -- Jon Angliss ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jon at netdork.net Wed Jan 7 01:17:35 2009 From: jon at netdork.net (Jon Angliss) Date: Tue, 06 Jan 2009 18:17:35 -0600 Subject: nagios not sending sms through gnokii References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> Message-ID: On Tue, 6 Jan 2009 14:23:56 +0800, "fernando renegado" wrote: >Hi, > >It's been weeks since I've been experimenting on gnokii to send sms alerts >from nagios. I'm using nokia 5210 xpress music cell connected to my nagios >on Centos box. When I tried to send sms at the terminal it works fine. But >when I enable nagios to send sms, it doesn't. I tried to chmod and chown the >port being used by gnokii but to no avail. Please help! You'll need to provide more details, like the script you're using the execute the sms send, and how you performed the additional tests. As Hugo mentioned, did you test as the nagios user? Are you at least seeing a notification entry in the log files saying it has attempted to execute the command? Are there any errors there? -- Jon Angliss ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 th.granier at free.fr Wed Jan 7 03:43:52 2009 From: th.granier at free.fr (Thierry Granier) Date: Wed, 7 Jan 2009 03:43:52 +0100 Subject: nagios sources Message-ID: Hi everybody i 'm looking for the sources of nagios on nagios.org and i don't find them!!! can somebody give me the appropriate links? Many thanks T Granier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 alexis.hazell at gmail.com Wed Jan 7 05:16:27 2009 From: alexis.hazell at gmail.com (Alexis Hazell) Date: Wed, 7 Jan 2009 15:16:27 +1100 Subject: '$' symbol being appended to command_line? Message-ID: <20090107041627.GY29220@ada.78net> Hi all, i've been having major problems getting email notifications to work with nagios 3.0.6 on Mandriva Linux 2009.0. As part of my attempts to isolate the problem, i've modified commands.cfg thus: define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | cat > /var/log/nagios/mail-$(date +%k:%M.%N).log } This produces the required .log file with the request contents - but oddly, the name of the file has an '$' symbol appended to it. If '$' is being appended to the end of the command line, that might well explain why email notifications aren't working: the contact email address would be getting '$' appended to it. i've tested the essentials of the notify-service-by-email command_line by su'ing to the nagios user and running: /usr/bin/printf "%b" "Notification test" | /bin/mail -s "Notification test" my.email at domain . . . . which works fine. Any help or suggestions regarding a fix or workaround for this issue would be greatly appreciated. :-) Thanks in advance, Alexis. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 finchs at stgeorge.com.au Wed Jan 7 04:54:27 2009 From: finchs at stgeorge.com.au (Simon Finch) Date: Wed, 07 Jan 2009 14:54:27 +1100 Subject: nagios sources In-Reply-To: References: Message-ID: <4964C22A.B47D.0048.0@stgeorge.com.au> http://sourceforge.net/project/downloading.php?groupname=nagios&filename=nagios-3.0.6.tar.gz >>> "Thierry Granier" 07/01/2009 1:43 pm >>> Hi everybody i 'm looking for the sources of nagios on nagios.org and i don't find them!!! can somebody give me the appropriate links? Many thanks T Granier *** This is an automatically appended message from St. George ITP. If this email is SPAM please register it with WebSense MailControl by clicking here ( https://www.mailcontrol.com/sr/DPJIhx58H9PTndxI!oX7UpRUG+IHZ5e6vj4BwKp78VNLPBhYNSy!vJ9MNHh4Joetlix6XF6!8X!02A3zwbO5JA== ). *** ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Wed Jan 7 05:42:01 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 22:42:01 -0600 Subject: nagios sources In-Reply-To: References: Message-ID: <31358A8A-CA0E-4422-BAB0-A2333366236C@ena.com> On Jan 6, 2009, at 8:43 PM, Thierry Granier wrote: > Hi everybody > i 'm looking for the sources of nagios on nagios.org and i don't > find them!!! > can somebody give me the appropriate links http://www.nagios.org -> Downloads -> Get Nagios -> Go -> Agree to the License -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 7 05:56:13 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Jan 2009 22:56:13 -0600 Subject: '$' symbol being appended to command_line? In-Reply-To: <20090107041627.GY29220@ada.78net> References: <20090107041627.GY29220@ada.78net> Message-ID: <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> On Jan 6, 2009, at 10:16 PM, Alexis Hazell wrote: > Hi all, > > i've been having major problems getting email notifications to work > with nagios 3.0.6 on Mandriva Linux 2009.0. As part of my attempts > to isolate the problem, i've modified commands.cfg thus: > > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n > \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$ > \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n > \nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" > | cat > /var/log/nagios/mail-$(date +%k:%M.%N).log > } > > This produces the required .log file with the request contents - > but oddly, the name of the file has an '$' symbol appended to it. If > '$' is being appended to the end of the command line, that might > well explain why email notifications aren't working: This is only happening in your test case because you have an unbalanced, un-escaped $ in the command_line (/var/log/nagios/mail-$ (date...)) Nagios uses $'s as macro boundaries. To use a literal $ in a command_line, use $$ instead. (/var/log/nagios/mail-$$(date...)). As for your notification problem, does nagios.log show a notification being sent? Does your mail log on the nagios host show the message being received and then sent further on? Can you run the command_line above, substituting in reasonable values for the $MACROS$, as the nagios user successfully? -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 asam30 at gmail.com Wed Jan 7 06:42:05 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Wed, 7 Jan 2009 11:12:05 +0530 Subject: Setting up NRPE on HP UX In-Reply-To: <650705.35606.qm@web36501.mail.mud.yahoo.com> References: <650705.35606.qm@web36501.mail.mud.yahoo.com> Message-ID: <25251aec0901062142w2416d003n3222d1ddbe0110b3@mail.gmail.com> Hi, The installation of nrpe on most Unices is pretty easy and outlined in the README of the source code tarball. Once the nrpe is installed or binraies downloaded from http://www.bennyvision.com/projects/nagios/index.php or nagiosexchange site, you need to follow these things The common way is to have nrpe started by inetd. Add a line like this to your service: # grep nrpe /etc/services nrpe 5666/tcp # Nagios Remote Plug-in Executor Then configure your inetd similar to this. Make sure that the paths to the nrpe binary and nrpe.cfg file are correct and make a choice under what user nrpe should be run. # grep nrpe /etc/inetd.conf nrpe stream tcp nowait nagios /usr/local/nagios/libexec/nrpe nrpe -c /usr/local/nagios/libexec/nrpe.cfg -i If all looks correct make inetd reload its conf. # /usr/sbin/inetd -c and check that it registered the new service # tail /var/adm/syslog/syslog.log # netstat -an -f inet|grep LISTEN|grep 5666 The most configuration part involves adapting nrpe.cfg to your needs and checks that work on hpux. You can start trying with some of the more common ones like $ /opt/iexpress/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_total_procs PROCS CRITICAL: 369 processes hope this helps -Shankar On Mon, Jan 5, 2009 at 10:43 PM, Christian I?iguez < challenger_joseph at yahoo.com.mx> wrote: > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them installing nrpe, but I haven't found documentation or how to's about > it. > > On Linux plataform is working very well, but it's a kind of difficult to do > it on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 paul.weaver at bbc.co.uk Wed Jan 7 09:58:14 2009 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Wed, 7 Jan 2009 08:58:14 -0000 Subject: nagios sources In-Reply-To: <31358A8A-CA0E-4422-BAB0-A2333366236C@ena.com> References: <31358A8A-CA0E-4422-BAB0-A2333366236C@ena.com> Message-ID: > http://www.nagios.org -> Downloads -> Get Nagios -> Go -> > Agree to the License Hmm : You must agree to the Nagios license before you are allowed to use it. Click the back button on your browser to return to the license.. Any specific reason? The GPL isn't a runtime license, it's a distribution license. This kind of click-through in GPL programs or websites really grinds my gears :( :: 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jvc_dvl557 at hotmail.com Wed Jan 7 10:01:57 2009 From: jvc_dvl557 at hotmail.com (J.VC) Date: Wed, 7 Jan 2009 10:01:57 +0100 Subject: nagios not sending sms through gnokii In-Reply-To: References: Message-ID: Fernando, Which Nagios version are you using? 3.0.3? I've had the same problem untill i updated my Nagios installation to the latest version (december, 3.0.6). Kind regards, Dennis de Vries. -------------------------------------------------- From: Sent: Tuesday, January 06, 2009 7:43 PM To: Subject: Nagios-users Digest, Vol 32, Issue 2 > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. Setting up NRPE on HP UX (Christian I?iguez) > 2. Re: Setting up NRPE on HP UX (jmoseley at corp.xanadoo.com) > 3. Re: Setting up NRPE on HP UX (Kaplan, Andrew H.) > 4. Re: Setting up NRPE on HP UX (Kyle O'Donnell) > 5. Nagios 3.x spews debug output on configuration verify on > RHEL3 systems (jmoseley at corp.xanadoo.com) > 6. Re: Setting up NRPE on HP UX (C. Bensend) > 7. check_by_ssh for new linxux users.. shed some light... > (Mirza Dedic) > 8. Re: check_by_ssh for new linxux users.. shed some light... > (Patrick Morris) > 9. Re: check_by_ssh for new linxux users.. shed some light... > (Satish Kumar P) > 10. Return code of 141 is out of bounds - SMTP Monitor (Duane Hill) > 11. Re: Return code of 141 is out of bounds - SMTP Monitor > (jmoseley at corp.xanadoo.com) > 12. nagios not sending sms through gnokii (fernando renegado) > 13. Re: nagios not sending sms through gnokii (Hugo van der Kooij) > 14. Re: Availability report: What does scheduled/unscheduled OK > time mean (Uwe Kubosch) > 15. Email priority (Layne Meier) > 16. Re: Email priority (jmoseley at corp.xanadoo.com) > 17. Re: Return code of 141 is out of bounds - SMTP Monitor > (Duane Hill) > 18. Re: Email priority (Paul Weaver) > 19. Re: icons not displaying on Nagios 3.0.6 status map > (Cherrington Stuart) > 20. Re: Return code of 141 is out of bounds - SMTP Monitor > (jmoseley at corp.xanadoo.com) > 21. $SERVICEOUTPUT$ empty in e-mail notifications (Gavin Henry) > 22. install (nadia kheffache) > 23. Re: $SERVICEOUTPUT$ empty in e-mail notifications (Marc Powell) > 24. Re: install (Marc Powell) > 25. Re: install (jmoseley at corp.xanadoo.com) > 26. Critical - Socket Timeout After 10 Seconds (Frank M) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 5 Jan 2009 09:13:57 -0800 (PST) > From: Christian I?iguez > Subject: [Nagios-users] Setting up NRPE on HP UX > To: nagios-users at lists.sourceforge.net > Message-ID: <650705.35606.qm at web36501.mail.mud.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them?installing nrpe, but I haven't found documentation or how to's about > it. > > On Linux plataform is working very well, but it's a kind of difficult to > do it on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > > > ------------------------------ > > Message: 2 > Date: Mon, 5 Jan 2009 12:03:54 -0600 > From: jmoseley at corp.xanadoo.com > Subject: Re: [Nagios-users] Setting up NRPE on HP UX > To: Christian I?iguez > Cc: nagios-users at lists.sourceforge.net > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > Good documentation can be found at: > > http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf > > Basically, you have to install NRPE on the host you want monitored *and* > any plugins that NRPE daemon on that host will call. If you want to > monitor things specific to HP UX, then you'll have to write custom > plugins. > You will also have to configure nrpe.cfg on the monitored host in order to > define check commands, which Nagios hosts(s) are allowed to talk to the > NRPE daemon, etc. > > Then you have to install the check_nrpe plugin on the Nagios host doing > the > monitoring. > > Next, in the services config on the Nagios host, you have to define that > you are checking a particular service via NRPE. For example: > > check_command check_nrpe!!check_nagios > > That tells Nagios that you want to check host 'host.abc.com' via NRPE and > that the NRPE daemon on remote host.abc.com should call the check_nagios > plugin (in order to see if Nagios is running on the remote host). > > This should get you started... > > > James Moseley > > > > > > Christian I?iguez > h at yahoo.com.mx> To > nagios-users at lists.sourceforge.net > 01/05/2009 11:13 cc > AM > Subject > [Nagios-users] Setting up NRPE on > HP UX > > > > > > > > > > > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them?installing nrpe, but I haven't found documentation or how to's about > it. > > On Linux plataform is working very well, but it's a kind of difficult to > do > it on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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 > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 5 Jan 2009 13:16:29 -0500 > From: "Kaplan, Andrew H." > Subject: Re: [Nagios-users] Setting up NRPE on HP UX > To: Christian I?iguez , > > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi there -- > > I would check out the following URL: > > http://www.bennyvision.com/projects/nagios/index.php > > I have used the files that are available there with great success. > > -----Original Message----- > From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] > Sent: Monday, January 05, 2009 12:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Setting up NRPE on HP UX > > Hi All! > > I have 2 machines with Unix HP UX, and I'd like to monitoring > them?installing > nrpe, but I haven't found documentation or how to's about it. > > On Linux plataform is working very well, but it's a kind of difficult to > do it > on UNIX (HP UX) > > Does any body know how can perform this? > > Thanks in advance > > > ?Todo sobre Amor y Sexo! > La gu?a completa para tu vida en Mujer de Hoy. > http://mx.mujer.yahoo.com/ > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > > > The information in this e-mail is intended only for the person to whom it > is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > > > > ------------------------------ > > Message: 4 > Date: Mon, 5 Jan 2009 13:41:57 -0500 > From: "Kyle O'Donnell" > Subject: Re: [Nagios-users] Setting up NRPE on HP UX > To: "Kaplan, Andrew H." > Cc: nagios-users at lists.sourceforge.net > Message-ID: > <2274b9c30901051041s1a8b2caah1d5a532a8029b152 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > ive compiled them for 10.20 and 11.00 (works with 11.11) > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2559.html;d=1 > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2556.html;d=1 > > > > On 1/5/09, Kaplan, Andrew H. wrote: >> Hi there -- >> >> I would check out the following URL: >> >> http://www.bennyvision.com/projects/nagios/index.php >> >> I have used the files that are available there with great success. >> >> -----Original Message----- >> From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] >> Sent: Monday, January 05, 2009 12:14 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Setting up NRPE on HP UX >> >> Hi All! >> >> I have 2 machines with Unix HP UX, and I'd like to monitoring >> them installing >> nrpe, but I haven't found documentation or how to's about it. >> >> On Linux plataform is working very well, but it's a kind of difficult to >> do >> it >> on UNIX (HP UX) >> >> Does any body know how can perform this? >> >> Thanks in advance >> >> >> ?Todo sobre Amor y Sexo! >> La gu?a completa para tu vida en Mujer de Hoy. >> http://mx.mujer.yahoo.com/ >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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 >> >> >> The information in this e-mail is intended only for the person to whom it >> is >> addressed. If you believe this e-mail was sent to you in error and the >> e-mail >> contains patient information, please contact the Partners Compliance >> HelpLine at >> http://www.partners.org/complianceline . If the e-mail was sent to you in >> error >> but does not contain patient information, please contact the sender and >> properly >> dispose of the e-mail. >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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 >> > > > > ------------------------------ > > Message: 5 > Date: Mon, 5 Jan 2009 13:12:07 -0600 > From: jmoseley at corp.xanadoo.com > Subject: [Nagios-users] Nagios 3.x spews debug output on configuration > verify on RHEL3 systems > To: Nagios Users List > Message-ID: > > > Content-Type: text/plain; charset=US-ASCII > > This same issue was posted on the users list back in March, but didn't > generate any interest. Essentially, the problem doesn't exist on RHEL 4 > or > 5 systems and shows up only when Nagios is compiled with ePN support. > > On RHEL3, when verifying configuration, I get: > > Nagios 3.0.6 > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) > Last Modified: 12-01-2008 > License: GPL > > Reading configuration data... > > LEN: 79, END: 77, > BUF=############################################################################## > BUFNOW: > ############################################################################## > LEN: 2, END: 0, BUF=# > BUFNOW: # > LEN: 51, END: 49, BUF=# NAGIOS.CFG - Sample Main Config File for Nagios > BUFNOW: # NAGIOS.CFG - Sample Main Config File for Nagios > * > * > * > > The original poster posted a patch that seemed to fix the issue: > > include/epn_nagios.h > > #include > ++ #undef DEBUG > #undef ctime /* don't need perl's threaded version */ > #undef printf /* can't use perl's printf until initialized */ > > Not sure if this works... > > Anyone have any insight? > > Thanks, > > > James Moseley > > > > > > ------------------------------ > > Message: 6 > Date: Mon, 5 Jan 2009 13:50:51 -0600 (CST) > From: "C. Bensend" > Subject: Re: [Nagios-users] Setting up NRPE on HP UX > To: nagios-users at lists.sourceforge.net > Message-ID: > <4799b41de22019ac740542b294830d02.squirrel at webmail.stinkweasel.net> > Content-Type: text/plain;charset=iso-8859-1 > > > :) > > Please keep in mind, the versions there are *old*. I don't work > at that job any longer, so I do not have an environment to build > new ones. > > Benny > > >> Hi there -- >> >> I would check out the following URL: >> >> http://www.bennyvision.com/projects/nagios/index.php >> >> I have used the files that are available there with great success. >> >> -----Original Message----- >> From: Christian I?iguez [mailto:challenger_joseph at yahoo.com.mx] >> Sent: Monday, January 05, 2009 12:14 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Setting up NRPE on HP UX >> >> Hi All! >> >> I have 2 machines with Unix HP UX, and I'd like to monitoring >> them?installing >> nrpe, but I haven't found documentation or how to's about it. >> >> On Linux plataform is working very well, but it's a kind of difficult to >> do it >> on UNIX (HP UX) >> >> Does any body know how can perform this? >> >> Thanks in advance >> >> >> ?Todo sobre Amor y Sexo! >> La gu?a completa para tu vida en Mujer de Hoy. >> http://mx.mujer.yahoo.com/ >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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 >> >> >> The information in this e-mail is intended only for the person to whom it >> is >> addressed. If you believe this e-mail was sent to you in error and the >> e-mail >> contains patient information, please contact the Partners Compliance >> HelpLine at >> http://www.partners.org/complianceline . If the e-mail was sent to you in >> error >> but does not contain patient information, please contact the sender and >> properly >> dispose of the e-mail. >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> 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 >> > > > -- > "This is /my/ kung fu. And it is strong." -- Rat, "The Core" > > > > > ------------------------------ > > Message: 7 > Date: Mon, 5 Jan 2009 18:06:44 -0800 > From: Mirza Dedic > Subject: [Nagios-users] check_by_ssh for new linxux users.. shed some > light... > To: "'Nagios-users at lists.sourceforge.net'" > > Message-ID: > > Content-Type: text/plain; charset="us-ascii" > > Hello, > > I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I > am able to get Nagios to monitor all the things I need on a Win32 box > (using NSClient++ & Check_NT); I am having difficulty getting check_by_ssh > to work for me. > > I have previously never used check_by_ssh; I am also fairly new to the > linux OS. My OS is Ubuntu and many of the servers I want to monitor are > RHEL4 or Fedora. > > I know that to get check_by_ssh to work, I need to create a private/public > certificate on the client/server; anyone shed some light on how to create > this? > > Do I create the key on my Nagios box? Under the same user that was used > when compiling Nagios? > > For the remote host (monitored linux server); what do I need to do? Create > the same user-id? How do I apply the certificate from my Nagios Host to > the monitored Host so that my shell scripts can connect to the Host B > without a password prompt? > > Please if you could, shed some light for a beginner. > > Also, our environment is using Kerberos, all the servers use SSH/Kerberos, > this way when users are created in Active Directory they are replicated > across the linux servers (is this why I can't find authorized_keys file?) > > Thank you. > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 8 > Date: Mon, 5 Jan 2009 18:41:49 -0800 > From: Patrick Morris > Subject: Re: [Nagios-users] check_by_ssh for new linxux users.. shed > some light... > To: Mirza Dedic > Cc: "'Nagios-users at lists.sourceforge.net'" > > Message-ID: <20090106024149.GB26044 at bakgwai.americas.hpqcorp.net> > Content-Type: text/plain; charset=us-ascii > > > On Tue, 06 Jan 2009, Mirza Dedic wrote: > >> Hello, >> >> I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while >> I am able to get Nagios to monitor all the things I need on a Win32 box >> (using NSClient++ & Check_NT); I am having difficulty getting >> check_by_ssh to work for me. >> >> I have previously never used check_by_ssh; I am also fairly new to the >> linux OS. My OS is Ubuntu and many of the servers I want to monitor are >> RHEL4 or Fedora. >> >> I know that to get check_by_ssh to work, I need to create a >> private/public certificate on the client/server; anyone shed some light >> on how to create this? >> >> Do I create the key on my Nagios box? Under the same user that was used >> when compiling Nagios? >> >> For the remote host (monitored linux server); what do I need to do? >> Create the same user-id? How do I apply the certificate from my Nagios >> Host to the monitored Host so that my shell scripts can connect to the >> Host B without a password prompt? >> >> Please if you could, shed some light for a beginner. >> >> Also, our environment is using Kerberos, all the servers use >> SSH/Kerberos, this way when users are created in Active Directory they >> are replicated across the linux servers (is this why I can?t find >> authorized_keys file?) > > This doc's not bad. You'll want to create a key for the user Nagios runs > as on the Nagios box. The user on the other end doesn't matter so much, > as long as the Nagios user's key is authorized to log in on the other side > as that user. > > http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/ > > > > ------------------------------ > > Message: 9 > Date: Tue, 6 Jan 2009 09:48:54 +0530 > From: "Satish Kumar P" > Subject: Re: [Nagios-users] check_by_ssh for new linxux users.. shed > some light... > To: "Mirza Dedic" > Cc: "Nagios-users at lists.sourceforge.net" > > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Tue, Jan 6, 2009 at 7:36 AM, Mirza Dedic wrote: >> Hello, >> >> I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while >> I >> am able to get Nagios to monitor all the things I need on a Win32 box >> (using >> NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to >> work >> for me. I have previously never used check_by_ssh; I am also fairly new >> to the linux >> OS. My OS is Ubuntu and many of the servers I want to monitor are RHEL4 >> or >> Fedora. I know that to get check_by_ssh to work, I need to create a >> private/public >> certificate on the client/server; anyone shed some light on how to create >> this? >> >> Do I create the key on my Nagios box? Under the same user that was used >> when >> compiling Nagios? For the remote host (monitored linux server); what do I >> need to do? Create >> the same user-id? How do I apply the certificate from my Nagios Host to >> the >> monitored Host so that my shell scripts can connect to the Host B without >> a >> password prompt? Please if you could, shed some light for a beginner. >> >> Also, our environment is using Kerberos, all the servers use >> SSH/Kerberos, >> this way when users are created in Active Directory they are replicated >> across the linux servers (is this why I can't find authorized_keys file?) > > The key based authentication works if you enable RSAAuthentication (or > equivalent) in your SSH server's configuration on Linux servers. I am > not really sure how things work out if you enable both Kerberos and > Key based authentication. But you could give it a try with one server. > > You could create the private and public key pair using a command, > ssh-keygen (from a Linux machine) or puttygen (on windows). Next the > user account that runs Nagios should use the private and public key > pairs generated. You can create a new user account on the target Linux > server or use existing account also. Place the newly generated public > key in the ~/.ssh/authorized_keys file on the target > Linux server, > > Then you could verify the setup by trying a SSH session from the > Nagios server to the target Linux server. If you are not being asked > for a password etc. and if you get the remote shell immediately, the > setup should be proper. Then you can configure a new command > definition by specifying the login identity etc. for check_by_ssh > command. > > If you do not to get into the hassles of these things, I would suggest > to try out check_ssh plugin to check the sanity of SSH daemons running > on Linux servers. HTH. > > > > ------------------------------ > > Message: 10 > Date: Tue, 6 Jan 2009 04:31:49 +0000 (UTC) > From: Duane Hill > Subject: [Nagios-users] Return code of 141 is out of bounds - SMTP > Monitor > To: Nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII > > Every once in a while I will get a critical alert stating: > > Notification Type: PROBLEM > > Service: SMTP > Host: Secondary Spam Filter > Address: 192.168.1.50 > State: CRITICAL > > Date/Time: Tue Jan 6 00:43:01 UTC 2009 > > Additional Info: > > (Return code of 141 is out of bounds) > > I have the SMTP service defined as such: > > define service { ; smtp port 25 > use ynp-services-duane > host_name sec_spam_filt > service_description SMTP > check_command check_smtp!-p 25 -t 60 > } > > I've checked list archives and have not found anything that closely > resembles the issue at hand. > > What should I be looking for to correct this? Perhaps this is a FreeBSD > port issue that needs to be reported to the port maintainer. > > Nagios version is v3.0.5 running on FreeBSD v6.3. > > -d > > > > ------------------------------ > > Message: 11 > Date: Mon, 5 Jan 2009 22:48:11 -0600 > From: jmoseley at corp.xanadoo.com > Subject: Re: [Nagios-users] Return code of 141 is out of bounds - SMTP > Monitor > To: d.hill at yournetplus.com > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > > > Content-Type: text/plain; charset=US-ASCII > > First, the syntax of the check_command should be: > > check_smtp!25!60 > > And for that to work, the entry in your checkcommands.cfg would look like: > > # 'check_smtp' command definition > define command{ > command_name check_smtp > command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p $ARG1$ -t > $ARG2$ > } > > > James Moseley > > > > > > Duane Hill > us.com> To > Nagios-users at lists.sourceforge.net > 01/05/2009 10:31 cc > PM > Subject > [Nagios-users] Return code of 141 > Please respond to is out of bounds - SMTP Monitor > d.hill at yournetplu > s.com > > > > > > > > > Every once in a while I will get a critical alert stating: > > Notification Type: PROBLEM > > Service: SMTP > Host: Secondary Spam Filter > Address: 192.168.1.50 > State: CRITICAL > > Date/Time: Tue Jan 6 00:43:01 UTC 2009 > > Additional Info: > > (Return code of 141 is out of bounds) > > I have the SMTP service defined as such: > > define service { ; smtp port 25 > use ynp-services-duane > host_name sec_spam_filt > service_description SMTP > check_command check_smtp!-p 25 -t 60 > } > > I've checked list archives and have not found anything that closely > resembles the issue at hand. > > What should I be looking for to correct this? Perhaps this is a FreeBSD > port issue that needs to be reported to the port maintainer. > > Nagios version is v3.0.5 running on FreeBSD v6.3. > > -d > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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 > > > > > > ------------------------------ > > Message: 12 > Date: Tue, 6 Jan 2009 14:23:56 +0800 > From: "fernando renegado" > Subject: [Nagios-users] nagios not sending sms through gnokii > To: Nagios-users at lists.sourceforge.net > Message-ID: > <543c8f860901052223x130c9a06j35082a6a50061f09 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > It's been weeks since I've been experimenting on gnokii to send sms alerts > from nagios. I'm using nokia 5210 xpress music cell connected to my nagios > on Centos box. When I tried to send sms at the terminal it works fine. But > when I enable nagios to send sms, it doesn't. I tried to chmod and chown > the > port being used by gnokii but to no avail. Please help! > > fearnone > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 13 > Date: Tue, 06 Jan 2009 07:47:45 +0100 > From: Hugo van der Kooij > Subject: Re: [Nagios-users] nagios not sending sms through gnokii > To: Nagios Users Mailinglist > Message-ID: <4962FE91.3090605 at vanderkooij.org> > Content-Type: text/plain; charset=ISO-8859-1 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > fernando renegado wrote: >> Hi, >> >> It's been weeks since I've been experimenting on gnokii to send sms >> alerts from nagios. I'm using nokia 5210 xpress music cell connected to >> my nagios on Centos box. When I tried to send sms at the terminal it >> works fine. But when I enable nagios to send sms, it doesn't. I tried to >> chmod and chown the port being used by gnokii but to no avail. Please >> help! > > What other ways did you test this? > Did you test as the nagios user? > > Hugo. > > - -- > hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ > PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc > > A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. > >>>Q: Why is top posting frowned upon? > > Bored? Click on http://spamornot.org/ and rate those images. > > Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith i'w gyfieithu. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iEYEARECAAYFAkli/pAACgkQBvzDRVjxmYHBNQCgo10gVnRbl8+dMPuNDvkWZz/n > lBIAnAvAwZRmhxPpfbUS2WvzEBRY/acG > =SYjJ > -----END PGP SIGNATURE----- > > > > ------------------------------ > > Message: 14 > Date: Tue, 06 Jan 2009 08:56:11 +0100 > From: Uwe Kubosch > Subject: Re: [Nagios-users] Availability report: What does > scheduled/unscheduled OK time mean > To: Lars Kristian Klykken > Cc: nagios-users at lists.sourceforge.net > Message-ID: <1231228571.4239.1.camel at pippin> > Content-Type: text/plain; charset="us-ascii" > > On Mon, 2009-01-05 at 08:30 +0100, Lars Kristian Klykken wrote: >> Hi Uwe! >> >> > In the availability report there are rows for scheduled and unscheduled >> > uptime (OK). What does this actually mean? I schedule downtime for a >> > service, and I expect the availability report to list warning and >> > critical times in a scheduled downtime period in the "scheduled" rows >> > for warning and critical, but I have no idea what the "scheduled" and >> > "unscheduled" times for OK mean. >> >> If your service is in an OK state in a scheduled downtime window, I >> would expect this state to be logged as OK in the "scheduled" row. > > Does anybody need this? It would simplify the report if the OK state > was on one row only. > > -- > With kind regards, > Uwe Kubosch > Kubosch Consulting > Norway > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 197 bytes > Desc: This is a digitally signed message part > > ------------------------------ > > Message: 15 > Date: Tue, 6 Jan 2009 08:34:58 -0500 > From: Layne Meier > Subject: [Nagios-users] Email priority > To: Nagios Users Mailinglist > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Is there a way to define in Nagios to send email alerts with high or > low priority notification? Several of our users want to be able to > set their Blackberries to alert them a different way if a high > priority email comes in, rather than just a regular email. > > Layne Meier > Atlanta Journal-Constitution > A Cox Newspaper > > > > > > > ------------------------------ > > Message: 16 > Date: Tue, 6 Jan 2009 08:24:04 -0600 > From: jmoseley at corp.xanadoo.com > Subject: Re: [Nagios-users] Email priority > To: Layne Meier , Nagios Users Mailinglist > > Message-ID: > > > Content-Type: text/plain; charset=US-ASCII > > > > > >>Is there a way to define in Nagios to send email alerts with high or >>low priority notification? Several of our users want to be able to >>set their Blackberries to alert them a different way if a high >>priority email comes in, rather than just a regular email. >> >>Layne Meier > > Not that I am aware of, no. > > James > > > > > > ------------------------------ > > Message: 17 > Date: Tue, 6 Jan 2009 14:41:49 +0000 (UTC) > From: Duane Hill > Subject: Re: [Nagios-users] Return code of 141 is out of bounds - SMTP > Monitor > To: Nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > On Mon, 5 Jan 2009, jmoseley at corp.xanadoo.com wrote: > >> First, the syntax of the check_command should be: >> >> check_smtp!25!60 >> >> And for that to work, the entry in your checkcommands.cfg would look >> like: >> >> # 'check_smtp' command definition >> define command{ >> command_name check_smtp >> command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p $ARG1$ -t >> $ARG2$ >> } > > Thanks for clearing that up. I was getting the commandline parameters > confused with the way Nagios is configured within. > > > > ------------------------------ > > Message: 18 > Date: Tue, 6 Jan 2009 14:43:52 -0000 > From: "Paul Weaver" > Subject: Re: [Nagios-users] Email priority > To: "Layne Meier" , "Nagios Users Mailinglist" > > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > >> Is there a way to define in Nagios to send email alerts with >> high or low priority notification? Several of our users want >> to be able to set their Blackberries to alert them a >> different way if a high priority email comes in, rather than >> just a regular email. >> >> Layne Meier >> Atlanta Journal-Constitution >> A Cox Newspaper > > Yes, you need to change the outgoing mail command. If you are using the > default "mail" command, add a new entry to commands.cfg which is the > same, but has > > printf .....|mail -a "Priority: Urgent" -a "Importance: high" -a > "X-Priority: 1" -s subject contact > Instead of > printf .....|mail -s subject contact > > As to what the blackberry does with an urgent email, that's another > matter. > > If you use a different mailing system (mailx for example), you need to > add the Priority headers. > -- > Paul Weaver > Systems Development Engineer > News Production Facilities, BBC News > > > > ------------------------------ > > Message: 19 > Date: Tue, 6 Jan 2009 14:51:10 -0000 > From: "Cherrington Stuart" > Subject: Re: [Nagios-users] icons not displaying on Nagios 3.0.6 > status map > To: > Message-ID: > <5332CCE6B7DACF4CA514A1F8141A5D28027F7FD1 at EXCH-DB-04.cc.rhul.local> > Content-Type: text/plain; charset="us-ascii" > > > James, > > I had this issue on a 3.0.x on Debian a while ago when I added custom > made png's. It could be the relation of the png files to were the > webserver expects it. > > My Nagios apache config says > > DocumentRoot /usr/share/nagios2/htdocs, > > and my images are stored in > /usr/share/nagios2/htdocs/images/logos/stuart > > in the extinfo.cfg I had to specify > > icon_image stuart/emc.png > > so Ngaios map was drawn correctly. > > Thanks, > > Stuart Cherrington > Unix Systems Admin > Royal Holloway University > > Mobile: 07756 857607 > > > -----Original Message----- > From: Jon Angliss [mailto:jon at netdork.net] > Sent: 02 January 2009 06:03 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status > map > > On Wed, 31 Dec 2008 17:20:06 -0600, jmoseley at corp.xanadoo.com wrote: > >> >>Been using Nagios 2.x for years and never had this problem. Just > upgraded >>a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything > seems >>to work fine, except that icons do not display on the status map. I >>basically get a blank square, regardless if I use .png, .jpg, .gd2, > etc. >>The icons display just fine in the host detail, hostgroup overview, > etc. >>Yes, per upgrade instructions, this extended host info has been moved > into >>the hosts config. Sample looks like: >> >> icon_image firewall_router.png >> vrml_image firewall_router.png >> statusmap_image firewall_router.gd2 >> 2d_coords 100,200 >> >>Attached is screen shot. Anyone else seen this? > > You probably don't have the related GD libraries installed that were > used to build the RPM. All the other locations are simply links to > the image (html ), whilst the images in the status maps are > imported using the GD libraries if I remember correctly. > > -- > Jon Angliss > > > ------------------------------------------------------------------------ > ------ > _______________________________________________ > 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 > > > > ------------------------------ > > Message: 20 > Date: Tue, 6 Jan 2009 08:53:51 -0600 > From: jmoseley at corp.xanadoo.com > Subject: Re: [Nagios-users] Return code of 141 is out of bounds - SMTP > Monitor > To: d.hill at yournetplus.com > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > > > Content-Type: text/plain; charset=US-ASCII > > > > > > Duane Hill wrote: > > >>Thanks for clearing that up. I was getting the commandline parameters >>confused with the way Nagios is configured within. > > You're welcome. > > James > > > > > > ------------------------------ > > Message: 21 > Date: Tue, 6 Jan 2009 16:45:34 +0000 > From: "Gavin Henry" > Subject: [Nagios-users] $SERVICEOUTPUT$ empty in e-mail notifications > To: Nagios-users at lists.sourceforge.net > Message-ID: > <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi All, > > We're having a problem where the $SERVICEOUTPUT$ variable in the stock > notify-by-email command is empty. When a notify-by-jabber is issued at > the same time as the email only the jabber has this variable > populated. > > Any ideas why the email isn't getting anything in $SERVICEOUTPUT$? > > Thanks. > > -- > http://www.suretecsystems.com/services/openldap/ > > > > ------------------------------ > > Message: 22 > Date: Tue, 6 Jan 2009 16:52:29 +0000 (GMT) > From: nadia kheffache > Subject: [Nagios-users] install > To: nagios-users at lists.sourceforge.net > Message-ID: <210488.45246.qm at web25505.mail.ukl.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > Hello, > > I want to install nagios in /usr/local/nagios/ with command group nagcmd, > but i dont know the real syntax. > in the document whe have ./configure --with-command-group=nagcm, so wante > to change the $install_dir like: > > . / configure - prefix = / usr / local / nagios, but I do not know how i > do > > thank you for your help > > > > > > > > > ------------------------------ > > Message: 23 > Date: Tue, 6 Jan 2009 11:11:37 -0600 > From: Marc Powell > Subject: Re: [Nagios-users] $SERVICEOUTPUT$ empty in e-mail > notifications > To: nagios-user Mailinglist > Message-ID: <72AD44CE-70F3-49AA-92FC-CBA303E92C12 at ena.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Jan 6, 2009, at 10:45 AM, Gavin Henry wrote: > >> Hi All, >> >> We're having a problem where the $SERVICEOUTPUT$ variable in the stock >> notify-by-email command is empty. When a notify-by-jabber is issued at >> the same time as the email only the jabber has this variable >> populated. >> >> Any ideas why the email isn't getting anything in $SERVICEOUTPUT$? > > There have never been bugs related to macro substitution that I can > remember so I think there are three possibilities. There's not enough > information yet to determine which -- > > 1) The macro isn't included in the notification command being used by > that contact. > 2) The macro is mis-typed in that notification command. > 3) The macro isn't valid for the notification type being sent (i.e. a > host notification). > > Please post the nagios version and how installed (package or source), > service definition, contactgroup definition, contact definition and > notification command so we can help narrow it down. > > -- > Marc > > > > ------------------------------ > > Message: 24 > Date: Tue, 6 Jan 2009 11:15:08 -0600 > From: Marc Powell > Subject: Re: [Nagios-users] install > To: nagios-user Mailinglist > Message-ID: <1077AD5A-76B4-45EF-8FB6-897082694093 at ena.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Jan 6, 2009, at 10:52 AM, nadia kheffache wrote: > >> Hello, >> >> I want to install nagios in /usr/local/nagios/ with command group >> nagcmd, but i dont know the real syntax. >> in the document whe have ./configure --with-command-group=nagcm, so >> wante to change the $install_dir like: >> >> . / configure - prefix = / usr / local / nagios, but I do not know >> how i do > > > /usr/local/nagios is the default location if none is specified but if > you wanted to do so -- > > ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd > > > './configure --help' will show all possible flags that can be passed > to the configure command. > > -- > Marc > > > > ------------------------------ > > Message: 25 > Date: Tue, 6 Jan 2009 11:20:28 -0600 > From: jmoseley at corp.xanadoo.com > Subject: Re: [Nagios-users] install > To: nadiakheffache at yahoo.fr > Cc: nagios-users at lists.sourceforge.net > Message-ID: > > > Content-Type: text/plain; charset=US-ASCII > > > > > > nadia kheffache wrote: > >>Hello, >> >>I want to install nagios in /usr/local/nagios/ with command group nagcmd, > but i dont know the real syntax. >>in the document whe have ./configure --with-command-group=nagcm, so wante > to change the $install_dir like: >> >>. / configure - prefix = / usr / local / nagios, but I do not know how i > do >> >>thank you for your help > > By default, it installs in /usr/local/nagios - so you shouldn't have to do > anything. There are other prefix arguments as well. Look at the > configure > file in the source to see what other arguments exists. > > But for the above, it would be: ./configure -prefix=/usr/local > > James > > > > > > ------------------------------ > > Message: 26 > Date: Tue, 6 Jan 2009 11:43:14 -0700 > From: "Frank M" > Subject: [Nagios-users] Critical - Socket Timeout After 10 Seconds > To: nagios-users at lists.sourceforge.net > Message-ID: > <110765300901061043xf9d5cd6ud98ffafac8364502 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I am running Nagios 3.0.6 with Nagios Plugins 1.4.13 on Suse Linux 11.1. > Windows servers have NSClient++ 0.2.7 > > Every few minutes Nagios detects that a servers/service is down because it > times out and in the status information shows: Critical - Socket Timeout > After 10 Seconds. Once it redoes its check on those particular > servers/services it shows that it is all good and other servers/services > show "Critical - Socket Timeout After 10 Seconds". I looked for a place > to > change the timeout from 10 seconds to 20 but could not find one. Any help > would be appreciated. > > > > > Thank you, > > > Frank > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 32, Issue 2 > ******************************************* > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 gavin.henry at gmail.com Wed Jan 7 10:21:13 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Wed, 7 Jan 2009 09:21:13 +0000 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> Message-ID: <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> ---------- Forwarded message ---------- From: Gavin Henry Date: 2009/1/7 Subject: Re: [Nagios-users] $SERVICEOUTPUT$ empty in e-mail notifications To: Marc Powell 2009/1/6 Marc Powell : > > On Jan 6, 2009, at 4:07 PM, Gavin Henry wrote: > >> Version: >> >> /opt/nagios/bin/nagios -V >> >> Nagios 3.0.6 > > Thanks. > >> Example service definition (all services have the same problem): > > I was hoping to get a more complete picture of the information below > but you seem to have all of the really key parts within inherited > templates that weren't included. I'm at first trying to review your > configuration and logic for errors. OK. Just to point out, the onlt new notification is the jabber one, everything else is as per a default source install of Nagios. > define service{ >> use generic-service >> host_name host.example.com >> service_description PING >> check_command check_ping!100.0,20%!500.0,60% >> } > > What are the contacts/contact_groups for this service defined in the > template? Please post the generic-service template. As per defaults: # Generic service definition template - This is NOT a real service, just a template! define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state normal_check_interval 10 ; Check the service every 10 minutes under normal conditions retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined contact_groups admins ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } >> Contact: >> >> define contact{ >> contact_name nagiosadmin >> use generic-contact >> alias gavin.henry >> email ghenry at suretecsystems.com >> pager 07930323266 >> } > > Please post the generic-contact template. It includes the > service_notification_commands and host_notification_commands > specifications that needs to be verified. # Generic contact definition template - This is NOT a real contact, just a template! define contact{ name generic-contact ; The name of this contact template service_notification_period 24x7 ; service notifications can be sent anytime host_notification_period 24x7 ; host notifications can be sent anytime service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events service_notification_commands notify-service-by-email,notify-by-jabber ; send service notifications via email host_notification_commands notify-host-by-email,host-notify-by-jabber ; send host notifications via email register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } >> Service Email notification: >> >> define command{ >> command_name notify-service-by-email >> command_line /usr/bin/printf "%b" "***** Nagios >> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: >> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: >> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ >> Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" >> $CONTACTEMAIL$ >> } > > Assuming that this is the service_notification_command specified for > nagiosadmin and the notification is a SERVICE NOTIFICATION, this looks > ok. You _may_ have a typo at "Service Alert: $HOSTALIAS$/ > $SERVICEDESC $" but the extra spaces may have been inadvertently > added within the email to the list(?). Yeah, added within the email, I've double checked the command. > Please post nagios.log NOTIFICATION examples where the problem has > occurred for this contact. There doesn't appear to be a problem in the logs: [1231294590] SERVICE NOTIFICATION: nagiosadmin;mail.suretecgroup.com;HTTP;OK;notify-by-jabber;HTTP OK - HTTP/1.1 302 Found - 0.002 second response time [1231294590] SERVICE NOTIFICATION: nagiosadmin;mail.suretecgroup.com;HTTP;OK;notify-service-by-email;HTTP OK - HTTP/1.1 302 Found - 0.002 second response time only with the email out? -- http://www.suretecsystems.com/services/openldap/ -- http://www.suretecsystems.com/services/openldap/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 gavin.henry at gmail.com Wed Jan 7 10:22:56 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Wed, 7 Jan 2009 09:22:56 +0000 Subject: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> Message-ID: <13ca621c0901070122n4689fd8ele14b9848b4efe872@mail.gmail.com> Example email notification: ***** Nagios ***** Notification Type: RECOVERY Service: /var Free Space Host: Suretec Office Server Address: xxx.xxx.xxx.xxx State: OK Date/Time: Mon Jan 5 15:15:29 UTC 2009 Additional Info: $SERVICEOUTPUT$ should be below "Additional Info:" which *is* populated in the jabber message. Thanks. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 alexis.hazell at gmail.com Wed Jan 7 11:48:35 2009 From: alexis.hazell at gmail.com (Alexis Hazell) Date: Wed, 7 Jan 2009 21:48:35 +1100 Subject: Notifications not working [was: Re: '$' symbol being appended to command_line?] In-Reply-To: <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> References: <20090107041627.GY29220@ada.78net> <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> Message-ID: <20090107104835.GB3513@ada.78net> On 22:56:13 Tue 06-Jan-09, Marc Powell wrote: > Does your mail log on the nagios host show the message > being received and then sent further on? i created a wrapper shell script around esmtp to allow me to call it with the -X option, which allows one to log all mail traffic to a file. Running the contents of command_line manually whilst su'd to user 'nagios' works, with the log file containing the expected traffic info. But when command_line is called by nagios itself as part of the notification process, the log file is empty (and despite the '-v' [i.e. verbose] option being used in the wrapper script). i then moved on to trying to get notifications via IM - specifically XMPP - using freetalk. This results in the same problem: the contents of command_line work fine when run manually whilst su'd to nagios, but don't when run as part of the notification process. And again, i can confirm that command_line is being called, because: command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | cat > /var/log/nagios/output.txt results the notification process creating output.txt at the desired location, containing the correct information. Any suggestions as to what's going on here would be very much appreciated! Alexis. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 farislinux at yahoo.com Wed Jan 7 12:00:30 2009 From: farislinux at yahoo.com (faris) Date: Wed, 7 Jan 2009 03:00:30 -0800 (PST) Subject: Nagios 3 Fails to play sound in browser Message-ID: <618500.49082.qm@web33208.mail.mud.yahoo.com> Dear All, ? I was using Nagios 2.x fine and it can play sound files when there is an alert. But nagios 3.x fails to play any sound files in my browser when there is an alert. Also i noticed that nagios 3.x does not comes with?relevent wave files and i have enable it in the cgi.cfg file to play files and placed wav files in /usr/local/nagios/share/media/ directory. Still i nagios 3.x fails to play when there is a Alert! ? Can?anybody help me to fix this sound play issue in my nagios 3.x ? ? Your help appreciated ! ? Thanks ! ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Wed Jan 7 14:28:01 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Jan 2009 07:28:01 -0600 Subject: Notifications not working [was: Re: '$' symbol being appended to command_line?] In-Reply-To: <20090107104835.GB3513@ada.78net> References: <20090107041627.GY29220@ada.78net> <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> <20090107104835.GB3513@ada.78net> Message-ID: <6885A58A-0C25-4266-9534-B46A3AECE51D@ena.com> On Jan 7, 2009, at 4:48 AM, Alexis Hazell wrote: > On 22:56:13 Tue 06-Jan-09, Marc Powell wrote: >> Does your mail log on the nagios host show the message >> being received and then sent further on? > > i created a wrapper shell script around esmtp to allow me to call > it with the -X option, which allows one to log all mail traffic to > a file. Running the contents of command_line manually whilst su'd to > user 'nagios' works, with the log file containing the expected traffic > info. But when command_line is called by nagios itself as part of > the notification process, the log file is empty (and despite the '-v' > [i.e. verbose] option being used in the wrapper script). > Any suggestions as to what's going on here would be very much > appreciated! What's the real command_line that you're using for notifications? It sounds to me like a permissions or path issue. Either nagios isn't allowed to execute the program or can't find it. Ensure that permissions are correct on the program and directories above and that you're using /fully/qualified/paths everywhere. You could also redirect STDOUT/STDERR to a file to see if anything is being reported there by adding '>/tmp/output.txt 2>&1' to the end of the command_line. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 7 14:31:00 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Jan 2009 07:31:00 -0600 Subject: Nagios 3 Fails to play sound in browser In-Reply-To: <618500.49082.qm@web33208.mail.mud.yahoo.com> References: <618500.49082.qm@web33208.mail.mud.yahoo.com> Message-ID: <622843D3-2678-4455-9B54-7E115E462988@ena.com> On Jan 7, 2009, at 5:00 AM, faris wrote: > Dear All, > > I was using Nagios 2.x fine and it can play sound files when there > is an alert. But nagios 3.x fails to play any sound files in my > browser when there is an alert. There was a known issue fixed in 3.0.6. What specific version are you using? 3.0.6 - 12/01/2008 * Fix for CGI submission of external commands (writing newlines and submitting service comments) * Fix for Apache group membership in RPM spec file * Fix for improper notification propagation command processing * Better out-of-disk-space error handling when writing retention and status files * Disabled adaptive check and eventhandler commands for security reasons * Fix for reading output from system commands (event handlers, etc) that have timed out * Added wildcard host matching in CGIs ** * Fixes for playing audio alerts in CGIs * Fix for incorrect host status links in status CGI when viewing hostgroup summary * Added support for x509 cert authentication in the CGIs -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 7 14:47:40 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Jan 2009 07:47:40 -0600 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> Message-ID: <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> On Jan 7, 2009, at 3:21 AM, Gavin Henry wrote: > OK. Just to point out, the onlt new notification is the jabber one, > everything else is as per a default source install of Nagios. Many of the people who are best able to help you have been using nagios for so long with customized configs that they don't really know what the most recent default templates look like, and aren't likely to go research it. It's easier to assume that they're customized in some way anyway since that's the normal case. > service_notification_commands > notify-service-by-email,notify-by-jabber ; send service > notifications > via email >>> Service Email notification: >>> >>> define command{ >>> command_name notify-service-by-email >>> command_line /usr/bin/printf "%b" "***** Nagios >>> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: >>> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: >>> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >>> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ >>> Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" >>> $CONTACTEMAIL$ >>> } > [1231294590] SERVICE NOTIFICATION: > nagiosadmin;mail.suretecgroup.com;HTTP;OK;notify-service-by-email;HTTP > OK - HTTP/1.1 302 Found - 0.002 second response time I'm not seeing anything obviously wrong (but could be missing it). strange stuff. I would try simplifying the notification command as much as possible to test -- command_line /usr/bin/printf "%b" "output: $SERVICEOUTPUT$" > /tmp/ output.txt See if /tmp/output.txt contains the expected text, then if successful, try the same with your notification command all the way through '...\n \n$SERVICEOUTPUT$"' to eliminate /usr/bin/mail as a factor. If not successful, try /bin/echo instead of '/usr/bin/printf "%b"'. Using nagios-3, you also have easy access to debug mode which should provide useful information by setting debug_file and debug_level in nagios.cfg. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jpratt at norwich.edu Wed Jan 7 23:40:13 2009 From: jpratt at norwich.edu (James Pratt) Date: Wed, 7 Jan 2009 17:40:13 -0500 Subject: Nagios 3 Fails to play sound in browser In-Reply-To: <20090108083803.A1115@mippet.ci.com.au> References: <618500.49082.qm@web33208.mail.mud.yahoo.com><622843D3-2678-4455-9B54-7E115E462988@ena.com> <20090108083803.A1115@mippet.ci.com.au> Message-ID: <8147CCE3C4A8764DA9980125EE70E8236BE399@nuexchg.norwich.edu> > -----Original Message----- > From: Dave Horsfall [mailto:daveh at coreng.com.au] > Sent: Wednesday, January 07, 2009 4:39 PM > To: Nagios Users > Subject: Re: [Nagios-users] Nagios 3 Fails to play sound in browser > > On Wed, 7 Jan 2009, Marc Powell wrote: > > > There was a known issue fixed in 3.0.6. What specific version are you > > using? > > > > 3.0.6 - 12/01/2008 > > Seeing as today is 8/1/09, I'm guessing you mean 1/12/08 :-) > > -- > Dave Horsfall DTM VK2KFU Ph: +61 2 9552-5509 (direct) +61 2 9552-5500 (switch) > Corinthian Eng'ng P/L, Ste 54 Jones Bay Whf, 26-32 Pirrama Rd, Pyrmont 2009, AU Yes, that is what he meant - we North American's do it backwards... it's 1/7/09 here... (Talk about annoying, huh?) ;) Cheers, jamie ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 Wed Jan 7 23:38:55 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Wed, 7 Jan 2009 14:38:55 -0800 Subject: Nagios 3 Fails to play sound in browser In-Reply-To: <20090108083803.A1115@mippet.ci.com.au> References: <618500.49082.qm@web33208.mail.mud.yahoo.com> <622843D3-2678-4455-9B54-7E115E462988@ena.com> <20090108083803.A1115@mippet.ci.com.au> Message-ID: <20090107223855.GI26044@bakgwai.americas.hpqcorp.net> On Wed, 07 Jan 2009, Dave Horsfall wrote: > On Wed, 7 Jan 2009, Marc Powell wrote: > > > There was a known issue fixed in 3.0.6. What specific version are you > > using? > > > > 3.0.6 - 12/01/2008 > > Seeing as today is 8/1/09, I'm guessing you mean 1/12/08 :-) We do things strangely here in the states. I'm guessing he meant 12/01/2008. :) ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 baron at percona.com Wed Jan 7 23:54:46 2009 From: baron at percona.com (Baron Schwartz) Date: Wed, 07 Jan 2009 17:54:46 -0500 Subject: Looking for a Nagios answering service Message-ID: <496532B6.7040006@percona.com> My company is looking for an answering service who would: * watch Nagios email or SMS alerts 24/7 * filter out obvious spam * response time must be on the order of minutes * call our on-call engineer, and once our engineer acks, the job is done. This seems like it could be a great business opportunity, but I can't find anyone doing this. There are tons of companies who'll do it for medical doctors. This is very similar, but we need someone who is marginally technical. Anyone know of anything like this? Regards, Baron -- Baron Schwartz, Director of Consulting, Percona Inc. Tel: +1 888 401 3401 ext 507 (Timezone: EST5EDT; GMT-5/GMT-4) Skype: baron.schwartz AIM: bps7j 24/7 Emergency Line +1 888 401 3401 ext 911 Our Services: http://www.percona.com/services.html Our Blog: http://www.mysqlperformanceblog.com/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 8 00:13:28 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Jan 2009 17:13:28 -0600 Subject: Nagios 3 Fails to play sound in browser In-Reply-To: <20090107223855.GI26044@bakgwai.americas.hpqcorp.net> References: <618500.49082.qm@web33208.mail.mud.yahoo.com> <622843D3-2678-4455-9B54-7E115E462988@ena.com> <20090108083803.A1115@mippet.ci.com.au> <20090107223855.GI26044@bakgwai.americas.hpqcorp.net> Message-ID: On Jan 7, 2009, at 4:38 PM, Patrick Morris wrote: > On Wed, 07 Jan 2009, Dave Horsfall wrote: > >> On Wed, 7 Jan 2009, Marc Powell wrote: >> >>> There was a known issue fixed in 3.0.6. What specific version are >>> you >>> using? >>> >>> 3.0.6 - 12/01/2008 >> >> Seeing as today is 8/1/09, I'm guessing you mean 1/12/08 :-) > > We do things strangely here in the states. I'm guessing he meant > 12/01/2008. :) Thanks for coming to my 'defense' but I actually didn't mean anything :P I just copied it straight out of the changelog. -- Marc p.s. Didn't date-format jokes/trolls go out of style in like 788918400? ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Thu Jan 8 00:57:51 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 7 Jan 2009 17:57:51 -0600 Subject: Looking for a Nagios answering service In-Reply-To: <496532B6.7040006@percona.com> References: <496532B6.7040006@percona.com> Message-ID: On Wed, Jan 7, 2009 at 4:54 PM, Baron Schwartz wrote: > > * watch Nagios email or SMS alerts 24/7 > * filter out obvious spam > * response time must be on the order of minutes > * call our on-call engineer, and once our engineer acks, the job is done. > Maybe I am missing something. But what's the additional "service" provided by this intermediate company, again? I'm just curious. Why cannot an appropriately set notification-scheme directly targeting your on-call engineer work? Isn't that the purpose of notification policies? -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jpratt at norwich.edu Thu Jan 8 01:09:27 2009 From: jpratt at norwich.edu (James Pratt) Date: Wed, 7 Jan 2009 19:09:27 -0500 Subject: Looking for a Nagios answering service In-Reply-To: <496532B6.7040006@percona.com> References: <496532B6.7040006@percona.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E8236BE3A9@nuexchg.norwich.edu> > -----Original Message----- > From: Baron Schwartz [mailto:baron at percona.com] > Sent: Wednesday, January 07, 2009 5:55 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Looking for a Nagios answering service > > My company is looking for an answering service who would: > > * watch Nagios email or SMS alerts 24/7 > * filter out obvious spam > * response time must be on the order of minutes > * call our on-call engineer, and once our engineer acks, the job is done. > > This seems like it could be a great business opportunity, but I can't find > anyone doing this. There are tons of companies who'll do it for medical > doctors. This is very similar, but we need someone who is marginally technical. > > Anyone know of anything like this? > > Regards, > Baron > > -- I tend to side with Rahul - if you cannot effectively utilize your monitoring solution, you may as well let someone else do it *all* for you - as noted, it's kind of redundant - I don't see a large business model here... :\ ... Or.. Perhaps people develop their own inhouse solution(s) using voip and asterix(?) http://www.voip-info.org/wiki/view/Use+Asterisk+for+Nagios+Notifications in any case, there were a few google hits on these guys, but I think it's outdated: http://www.frontline-is.com/ not sure if they still do Nagios though... - jamie ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 alexis.hazell at gmail.com Thu Jan 8 01:27:09 2009 From: alexis.hazell at gmail.com (Alexis Hazell) Date: Thu, 8 Jan 2009 11:27:09 +1100 Subject: Notifications not working [was: Re: '$' symbol being appended to command_line?] In-Reply-To: <6885A58A-0C25-4266-9534-B46A3AECE51D@ena.com> References: <20090107041627.GY29220@ada.78net> <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> <20090107104835.GB3513@ada.78net> <6885A58A-0C25-4266-9534-B46A3AECE51D@ena.com> Message-ID: <20090108002708.GC3513@ada.78net> On 07:28:01 Wed 07-Jan-09, Marc Powell wrote: > What's the real command_line that you're using for notifications? For email: command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ For XMPP: command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/freetalk -s /var/log/nagios/notify.scm > You could also redirect STDOUT/STDERR to a file to see if anything is > being reported there by adding '>/tmp/output.txt 2>&1' to the end of > the command_line. Doing this showed that you are correct about it being a permissions issue: nagios is running as user 'nagios' and group 'nagios', but the /bin/mail and /usr/bin/freetalk commands are being run in an environment where it seems that HOME=/root/ - the commands attempt to access /root/.esmtprc and /root/.freetalk/, respectively, rather than attempting to access /var/log/nagios/.esmtprc and /var/log/nagios/.freetalk/ (where /var/log/nagios is HOME for user nagios). Obvious kludges are: * copy the respective dot files to /root/ and either chmod them o+r or chown them root.nagios; * modify the command_line to use sudo to ensure /bin/mail and /usr/bin/freetalk are run as user 'nagios'. But surely there's a better alternative? What am i missing? Alexis. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 mgargiullo at pivotpointsecurity.com Thu Jan 8 02:51:00 2009 From: mgargiullo at pivotpointsecurity.com (Michael Gargiullo) Date: Wed, 7 Jan 2009 20:51:00 -0500 Subject: Nagios 3 Fails to play sound in browser In-Reply-To: References: <618500.49082.qm@web33208.mail.mud.yahoo.com><622843D3-2678-4455-9B54-7E115E462988@ena.com><20090108083803.A1115@mippet.ci.com.au><20090107223855.GI26044@bakgwai.americas.hpqcorp.net> Message-ID: -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Wednesday, January 07, 2009 6:13 PM To: Nagios Users Subject: Re: [Nagios-users] Nagios 3 Fails to play sound in browser -- Marc p.s. Didn't date-format jokes/trolls go out of style in like 788918400? ------------------------------------------------------------------------ Nah, they got a new lease on life on 946684800. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 trek5200trek at yahoo.com Thu Jan 8 04:20:41 2009 From: trek5200trek at yahoo.com (Mahmoud Hanafi) Date: Wed, 7 Jan 2009 19:20:41 -0800 (PST) Subject: service/host dependency question Message-ID: <491933.45242.qm@web33107.mail.mud.yahoo.com> I would like to set up a service that can run on 3 different hosts. But I only want the service check to run on 1 host at a time (kinda a inverse host dependency). Run service check on host1. Only run service check on host2 if host 1 is down Only run service check on host3 if host1 and host2 is down Can this be done via nagios? Thanks, Mahmoud -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 ebm at swervinghead.com Thu Jan 8 03:56:07 2009 From: ebm at swervinghead.com (Eric Marquez) Date: Wed, 7 Jan 2009 18:56:07 -0800 Subject: nagios and check_snmp Message-ID: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> I have a question and I need to understanding around the IF-MIB::ifOutOctets.x mib. Here's what I'm doing... I have nagios setup with check_snmp I want it to do this check_snmp --oid="IF-MIB::ifInOctets.235" -P 2c -l -C 'community' -H switch.example.com it returns back the following value. OK - 2840686911 | IF-MIB::ifInOctets.235=2840686911c;;;; I need to set a warning and critical alert at a certain level. what does 2840686911 represent bits per second? I need nagios to start warning at 75 Mbs and go critical at 95 Mbs. I can't get a handle on what the ifInOctets is telling me about the interface. Can somebody straighten me out. Thanks in advance. ebm -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 stpierre at NebrWesleyan.edu Thu Jan 8 04:28:50 2009 From: stpierre at NebrWesleyan.edu (Chris St. Pierre) Date: Wed, 7 Jan 2009 21:28:50 -0600 (CST) Subject: nagios and check_snmp In-Reply-To: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> References: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> Message-ID: On Wed, 7 Jan 2009, Eric Marquez wrote: > it returns back the following value. > OK - 2840686911 | IF-MIB::ifInOctets.235=2840686911c;;;; > > I need to set a warning and critical alert at a certain level. > what does 2840686911 represent bits per second? > > I need nagios to start warning at 75 Mbs and go critical at 95 Mbs. I can't > get a handle on what the ifInOctets is telling me about the interface. Can > somebody straighten me out. ifInOctets represents the number of octets that have been processed since counting started (or last overflowed). It does not represent bits per second. You'd have to track the rate of change in ifInOctets if you wanted to get bits per second, and that'd be a much more complicated plugin. Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 farislinux at yahoo.com Thu Jan 8 05:34:28 2009 From: farislinux at yahoo.com (faris) Date: Wed, 7 Jan 2009 20:34:28 -0800 (PST) Subject: Nagios 3.0.6 Fails to play sound in browser! Message-ID: <358077.15136.qm@web33202.mail.mud.yahoo.com> Hi, ? I was?trying?3.0.6 version of nagios, didnt work out :( ? Any help ! ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 dermoth at aei.ca Thu Jan 8 06:05:13 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 08 Jan 2009 00:05:13 -0500 Subject: Growing CPU utilization In-Reply-To: <50C705AA-860C-4E38-AE12-449B8C7EB767@ena.com> References: <50C705AA-860C-4E38-AE12-449B8C7EB767@ena.com> Message-ID: <49658989.2070309@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/01/09 06:14 PM, Marc Powell wrote: > On Jan 6, 2009, at 4:23 PM, Bryan Wann wrote: > >> Through process of elimination, I think I've tracked it down to perl >> plugins. ePN is in use. I'm tracking 11,309 services on 1,364 >> hosts, 26% >> of those service checks are perl (manubulon.com's check_snmp_mem, >> check_snmp_load) and the rest are C (check_icmp, check_snmp). > > Unless those perl plugins have been designed specifically to work with > ePN, then I wouldn't be too surprised to see oddness. ePN transforms > the plugin in a way that can cause unexpected breakage if the author > wasn't expecting it. > > http://nagios.sourceforge.net/docs/3_0/embeddedperl.html and http://nagios.sourceforge.net/docs/3_0/epnplugins.html > as well as most archive postings by Stanley Hopcroft can provide > insight as well as some troubleshooting hints (like using contrib/ > mini_epn for testing, though I have doubts it would show a gradual > problem such as this). > > The simplest troubleshooting path may be to use the '# nagios: -epn' > flag to disable ePN processing on individual plugins (or all, then add > them back individually) to help identify the plugin that's causing the > issue. I noticed the same thing; the system CPU time increase is directly attributable to the memory leaks in Nagios and/or ePN. That said, the speed at which memory leaks in Nagios 3.0 with the same configuration and scripts is tremendously higher. There is very likely some important leak(s) that got shipped with the 3.0.x release. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJZYmI6dZ+Kt5BchYRAp3WAJ9SmUSQpYgGBRLk6GXIXtfHq9NU+QCgqEmY 8JaMF8NGrB0WlRACrmLW4y0= =bYoW -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 beckerz at navigatorrt.hu Thu Jan 8 08:52:56 2009 From: beckerz at navigatorrt.hu (=?iso-8859-2?Q?Becker_Zolt=E1n?=) Date: Thu, 8 Jan 2009 08:52:56 +0100 Subject: service/host dependency question In-Reply-To: <491933.45242.qm@web33107.mail.mud.yahoo.com> References: <491933.45242.qm@web33107.mail.mud.yahoo.com> Message-ID: Hi, I think, Nagios can't do that. There is no solution for host depend service check. Regards, zoli ________________________________________ From: Mahmoud Hanafi [mailto:trek5200trek at yahoo.com] Sent: Thursday, January 08, 2009 4:21 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] service/host dependency question I would like to set up a service that can run on 3 different hosts. But I only want the service check to run on 1 host at a time (kinda a inverse host dependency). Run service check on host1. Only run service check on host2 if host 1 is down Only run service check on host3 if host1 and host2 is down Can this be done via nagios? Thanks, Mahmoud ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 gavin.henry at gmail.com Thu Jan 8 10:06:43 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Thu, 8 Jan 2009 09:06:43 +0000 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> Message-ID: <13ca621c0901080106v6a793a13r264b92c6f4288681@mail.gmail.com> 2009/1/7 Marc Powell : > > On Jan 7, 2009, at 3:21 AM, Gavin Henry wrote: > >> OK. Just to point out, the onlt new notification is the jabber one, >> everything else is as per a default source install of Nagios. > > Many of the people who are best able to help you have been using > nagios for so long with customized configs that they don't really know > what the most recent default templates look like, and aren't likely to > go research it. It's easier to assume that they're customized in some > way anyway since that's the normal case. Thanks Marc. I just found it strange as it's a default setup, but I understand your points. >> service_notification_commands >> notify-service-by-email,notify-by-jabber ; send service >> notifications >> via email > >>>> Service Email notification: >>>> >>>> define command{ >>>> command_name notify-service-by-email >>>> command_line /usr/bin/printf "%b" "***** Nagios >>>> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: >>>> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: >>>> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >>>> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ >>>> Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" >>>> $CONTACTEMAIL$ >>>> } > >> [1231294590] SERVICE NOTIFICATION: >> nagiosadmin;mail.suretecgroup.com;HTTP;OK;notify-service-by-email;HTTP >> OK - HTTP/1.1 302 Found - 0.002 second response time > > I'm not seeing anything obviously wrong (but could be missing it). > strange stuff. I would try simplifying the notification command as > much as possible to test -- > > command_line /usr/bin/printf "%b" "output: $SERVICEOUTPUT$" > /tmp/ > output.txt > > See if /tmp/output.txt contains the expected text, then if successful, > try the same with your notification command all the way through '...\n > \n$SERVICEOUTPUT$"' to eliminate /usr/bin/mail as a factor. > > If not successful, try /bin/echo instead of '/usr/bin/printf "%b"'. > > Using nagios-3, you also have easy access to debug mode which should > provide useful information by setting debug_file and debug_level in > nagios.cfg. Will do, thanks. -- http://www.suretecsystems.com/services/openldap/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 treibholz at sozial-inkompetent.de Thu Jan 8 10:44:16 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Thu, 8 Jan 2009 10:44:16 +0100 Subject: status.cgi-parameter question Message-ID: <20090108094416.GA11288@umbach-racing.de> Hi, I want status.cgi to show me the following: All hosts and services in the status (NOT ok OR flapping) NOT (acknowleded OR scheduled_downtime) Right now I have "NOT ok NOT (acknowleded OR scheduled_downtime)" with the following parameters: host=all type=detail servicestatustype=16 hoststatustype=6 hostprobs=10 serviceprobs=42 servicestatustypes=28 With my unterstanding, to get what I want, I just have to add 1024 to hostprobs and serviceprobs, but that doesn't work. What am I doing wrong? Cheers Klaus -- BOFH excuse #264: Your modem doesn't speak English. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 gavin.henry at gmail.com Thu Jan 8 11:49:23 2009 From: gavin.henry at gmail.com (Gavin Henry) Date: Thu, 8 Jan 2009 10:49:23 +0000 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> Message-ID: <13ca621c0901080249g47bc8057rac9fe1848d988370@mail.gmail.com> 2009/1/7 Marc Powell : > > On Jan 7, 2009, at 3:21 AM, Gavin Henry wrote: > >> OK. Just to point out, the onlt new notification is the jabber one, >> everything else is as per a default source install of Nagios. > > Many of the people who are best able to help you have been using > nagios for so long with customized configs that they don't really know > what the most recent default templates look like, and aren't likely to > go research it. It's easier to assume that they're customized in some > way anyway since that's the normal case. > >> service_notification_commands >> notify-service-by-email,notify-by-jabber ; send service >> notifications >> via email > >>>> Service Email notification: >>>> >>>> define command{ >>>> command_name notify-service-by-email >>>> command_line /usr/bin/printf "%b" "***** Nagios >>>> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: >>>> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\n State: >>>> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >>>> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ >>>> Service Alert: $HOSTALIAS$/$SERVICEDESC $ is $SERVICESTATE$ **" >>>> $CONTACTEMAIL$ >>>> } > >> [1231294590] SERVICE NOTIFICATION: >> nagiosadmin;mail.suretecgroup.com;HTTP;OK;notify-service-by-email;HTTP >> OK - HTTP/1.1 302 Found - 0.002 second response time > > I'm not seeing anything obviously wrong (but could be missing it). > strange stuff. I would try simplifying the notification command as > much as possible to test -- > > command_line /usr/bin/printf "%b" "output: $SERVICEOUTPUT$" > /tmp/ > output.txt This works. > See if /tmp/output.txt contains the expected text, then if successful, > try the same with your notification command all the way through '...\n > \n$SERVICEOUTPUT$"' to eliminate /usr/bin/mail as a factor. This works without /usr/bin/mail, with it it doesn't. > If not successful, try /bin/echo instead of '/usr/bin/printf "%b"'. Using /usr/bin/mail, dropping printf and switching for /bin/echo -e works perfect! I've switched to /bin/echo -e and all is good. Thanks Marc! Gavin. -- http://www.suretecsystems.com/services/openldap/ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 harry.hart.ctr at jfcom.mil Thu Jan 8 12:36:58 2009 From: harry.hart.ctr at jfcom.mil (Hart, Harry M. CTR USJFCOM JTCI) Date: Thu, 8 Jan 2009 06:36:58 -0500 Subject: Could not complete ssl handshake Message-ID: I know I've seen this error on this forum before but can not remember what resolved the problem. I installed NRPE on a Linux system to talk to another Linux machine that is the Nagios server. I do the check_nrpe and get Could not complete SSL handshake. It works fine when I do it from the server to the remote system. Thanks for any help on this one. Harry Harry M. Hart Systems integrator SAIC USJFCOM JIOC DCGS-A (757) 203-7422 DSN 668-7422 Harry.Hart at intel.jwfc.jfcom.smil.mil Harry.Hart at jwfc.ic.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4940 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jakepaulus at gmail.com Thu Jan 8 14:31:32 2009 From: jakepaulus at gmail.com (Jake) Date: Thu, 8 Jan 2009 08:31:32 -0500 Subject: nagios and check_snmp In-Reply-To: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> References: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> Message-ID: <884bae280901080531v29f4ec8bu8996f09036ad00c8@mail.gmail.com> On Wed, Jan 7, 2009 at 9:56 PM, Eric Marquez wrote: > > I need nagios to start warning at 75 Mbs and go critical at 95 Mbs. > You'll save yourself a lot of hassle by using an existing plugin rather than beating your head against check_snmp when it isn't necessary. http://nagios.manubulon.com/snmp_int.html -- Jake Paulus JakePaulus at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jakepaulus at gmail.com Thu Jan 8 14:36:26 2009 From: jakepaulus at gmail.com (Jake) Date: Thu, 8 Jan 2009 08:36:26 -0500 Subject: service/host dependency question In-Reply-To: <491933.45242.qm@web33107.mail.mud.yahoo.com> References: <491933.45242.qm@web33107.mail.mud.yahoo.com> Message-ID: <884bae280901080536g752afd5el99425d0ce52c15b2@mail.gmail.com> On Wed, Jan 7, 2009 at 10:20 PM, Mahmoud Hanafi wrote: > I would like to set up a service that can run on 3 different hosts. But I > only want the service check to run on 1 host at a time (kinda a inverse host > dependency). > > Run service check on host1. > Only run service check on host2 if host 1 is down > Only run service check on host3 if host1 and host2 is down > > Can this be done via nagios? > > Thanks, > Mahmoud > > I don't know your situation but you may accomplish what you really want by using check_cluster. -- Jake Paulus JakePaulus at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Thu Jan 8 14:40:31 2009 From: marc at ena.com (Marc Powell) Date: Thu, 8 Jan 2009 07:40:31 -0600 Subject: nagios and check_snmp In-Reply-To: References: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> Message-ID: <7B5F54A5-BAA9-41D6-B161-A901FA33A9F1@ena.com> On Jan 7, 2009, at 9:28 PM, Chris St. Pierre wrote: > You'd have to track the rate of change in ifInOctets > if you wanted to get bits per second, and that'd be a much more > complicated plugin. For the OP, plugins that do this are available on nagiosexchange.org. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 Edgar.Matzinger at valid.nl Thu Jan 8 14:40:33 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Thu, 8 Jan 2009 14:40:33 +0100 Subject: Could not complete ssl handshake In-Reply-To: References: Message-ID: Hi Harry, > I know I've seen this error on this forum before but can not remember > what resolved the problem. I installed NRPE on a Linux system to talk to > another Linux machine that is the Nagios server. I do the check_nrpe and > get Could not complete SSL handshake. It works fine when I do it from > the server to the remote system. are both nrpe installations of the same version? I've got this problem when both versions (of check_nrpe on one system and nrpe on the remote server) were different. HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 8 14:45:00 2009 From: marc at ena.com (Marc Powell) Date: Thu, 8 Jan 2009 07:45:00 -0600 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications In-Reply-To: <13ca621c0901080249g47bc8057rac9fe1848d988370@mail.gmail.com> References: <13ca621c0901060845t58389a89ldd1ec2fcfdc9e9c5@mail.gmail.com> <72AD44CE-70F3-49AA-92FC-CBA303E92C12@ena.com> <13ca621c0901061407vadb7bd3w649a31ef0d27c397@mail.gmail.com> <99C828A1-D6DC-4A38-918F-38DC905F1531@ena.com> <13ca621c0901070047i1215db55m4c065a2d38644f7d@mail.gmail.com> <13ca621c0901070121s6772c7c6q9c24c12be34330e2@mail.gmail.com> <0B88B9E7-7BB9-4897-9187-CEBF66AF5B60@ena.com> <13ca621c0901080249g47bc8057rac9fe1848d988370@mail.gmail.com> Message-ID: <85FB7F3B-F7DF-4317-89FD-AC6C8B480408@ena.com> On Jan 8, 2009, at 4:49 AM, Gavin Henry wrote: > This works without /usr/bin/mail, with it it doesn't. > >> If not successful, try /bin/echo instead of '/usr/bin/printf "%b"'. > > Using /usr/bin/mail, dropping printf and switching for /bin/echo -e > works perfect! That's interesting. I've never seen that problem before. What's OS/ Version are you using? It might be interesting to see the debug output related to the notification just to see if there's any obvious problems there. While I use /bin/echo myself, printf should be equivalent. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jpratt at norwich.edu Thu Jan 8 15:01:26 2009 From: jpratt at norwich.edu (James Pratt) Date: Thu, 8 Jan 2009 09:01:26 -0500 Subject: Nagios 3.0.6 Fails to play sound in browser! In-Reply-To: <358077.15136.qm@web33202.mail.mud.yahoo.com> References: <358077.15136.qm@web33202.mail.mud.yahoo.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E8236BE423@nuexchg.norwich.edu> From: faris [mailto:farislinux at yahoo.com] Sent: Wednesday, January 07, 2009 11:34 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios 3.0.6 Fails to play sound in browser! Hi, ? I was?trying?3.0.6 version of nagios, didnt work out :( ? Any help ! ? ? --- You will really need to elaborate if you truly desire help - nagios version, os, what problem are you having etc... Regards, jamie ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Thu Jan 8 15:05:22 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Thu, 08 Jan 2009 09:05:22 -0500 Subject: Uninstalling Nagios Message-ID: <49660822.4050900@iris.uh.cu> Please, I need help about uninstalling Nagios. I installed it in my personal PC to do some tests but now I don't know how to uninstall it. I have Nagios running in a real server, so I don't need it any more in my PC. Thanks. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 angeolivier2003 at yahoo.fr Thu Jan 8 15:13:17 2009 From: angeolivier2003 at yahoo.fr (Kermito le kermit) Date: Thu, 8 Jan 2009 14:13:17 +0000 (GMT) Subject: Nagios sound Message-ID: <201964.91822.qm@web26107.mail.ukl.yahoo.com> Hello all I amto know How is possible to have sound for alert in nagios best regard -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jpratt at norwich.edu Thu Jan 8 15:22:18 2009 From: jpratt at norwich.edu (James Pratt) Date: Thu, 8 Jan 2009 09:22:18 -0500 Subject: Uninstalling Nagios In-Reply-To: <49660822.4050900@iris.uh.cu> References: <49660822.4050900@iris.uh.cu> Message-ID: <8147CCE3C4A8764DA9980125EE70E8236BE44B@nuexchg.norwich.edu> > -----Original Message----- > From: Sergio Ariel [mailto:sergio.ariel at iris.uh.cu] > Sent: Thursday, January 08, 2009 9:05 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] Uninstalling Nagios > > Please, I need help about uninstalling Nagios. I installed it in my > personal PC to do some tests but now I don't know how to uninstall it. I > have Nagios running in a real server, so I don't need it any more in my PC. > > Thanks. > It all depends on how you installed it - if you used rpm, you can probably use: rpm -e nagios-3.0.6 (or whatever version it is - "rpm -qa" will list all installed RPM's) If you installed from source code, go to the source directory and try : make uninstall If you use debian/ubuntu, I would guess you use a gui installer to add/remove, but I'm not that familiar with those distros, sorry!.. Regards, jamie ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 Sebastian.Ries at dtnet.de Thu Jan 8 15:08:49 2009 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Thu, 08 Jan 2009 15:08:49 +0100 Subject: Could not complete ssl handshake In-Reply-To: References: Message-ID: <1231423729.10514.9.camel@bofh.dtnet.de> Am Donnerstag, den 08.01.2009, 06:36 -0500 schrieb Hart, Harry M. CTR USJFCOM JTCI: > I know I've seen this error on this forum before but can not remember > what resolved the problem. I installed NRPE on a Linux system to talk > to another Linux machine that is the Nagios server. I do the > check_nrpe and get Could not complete SSL handshake. It works fine > when I do it from the server to the remote system. This error also occures when the nagios server (the host nrpe is called) is not allowed to talk to the nrpe-daemon. Have a look at "allowed_hosts" in nrpe.cfg when nrpe runs as a daemon or at the (x)inetd config as nrpe is run like that. Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Thu Jan 8 15:12:40 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 8 Jan 2009 14:12:40 +0000 Subject: Uninstalling Nagios In-Reply-To: <49660822.4050900@iris.uh.cu> References: <49660822.4050900@iris.uh.cu> Message-ID: <200901081412.40071.assaf.flatto@ssp-intl.com> First you can stop the server then you can delete the files in the /usr/local/nagios directory delete the nagios script from /etc/init.d direcotry that's about it . that should make sure that the nagios is not and won't run on your Pc Assaf On Thursday 08 January 2009 14:05:22 Sergio Ariel wrote: > Please, I need help about uninstalling Nagios. I installed it in my > personal PC to do some tests but now I don't know how to uninstall it. I > have Nagios running in a real server, so I don't need it any more in my PC. > > Thanks. > > --------------------------------------------------------------------------- >--- Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 trek5200trek at yahoo.com Thu Jan 8 15:51:45 2009 From: trek5200trek at yahoo.com (Mahmoud Hanafi) Date: Thu, 8 Jan 2009 06:51:45 -0800 (PST) Subject: downtime large number of hosts? Message-ID: <598853.45371.qm@web33108.mail.mud.yahoo.com> Is there a easy way to schedule down time for large number of hosts/services at the same time? The downtime web interface doesn't accept wildcard characters. Thanks, Mahmoud -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Thu Jan 8 16:05:16 2009 From: marc at ena.com (Marc Powell) Date: Thu, 8 Jan 2009 09:05:16 -0600 Subject: downtime large number of hosts? In-Reply-To: <598853.45371.qm@web33108.mail.mud.yahoo.com> References: <598853.45371.qm@web33108.mail.mud.yahoo.com> Message-ID: <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > Is there a easy way to schedule down time for large number of hosts/ > services at the same time? The downtime web interface doesn't accept > wildcard characters. If they are all in the same hostgroup you can click on the hostgroup name (in ()'s) and schedule downtime for all of them at once, otherwise, no not that I am aware of outside of some simple scripting to send the appropriate external command for each host through the external command file. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 Muhammad.AZHAR-CHEAH at Total.com Thu Jan 8 16:42:01 2009 From: Muhammad.AZHAR-CHEAH at Total.com (Muhammad AZHAR-CHEAH) Date: Thu, 8 Jan 2009 23:42:01 +0800 Subject: Out of Office ! Message-ID: I will be out of the office starting 08/01/2009 and will not return until 15/01/2009. I will be away from 8th January 2009 and return on 215th January 2009 For any network related issues; please call DSIT Supervision @ dsit.supervision @ tel : +33 5 59 83 52 52 or WanOps Paris @ wan.operations at total.com @ +33 1 47 44 44 33. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 chris at chrisserafin.com Thu Jan 8 16:56:13 2009 From: chris at chrisserafin.com (ChrisSerafin) Date: Thu, 08 Jan 2009 09:56:13 -0600 Subject: Looking for a Nagios answering service In-Reply-To: <496532B6.7040006@percona.com> References: <496532B6.7040006@percona.com> Message-ID: <4966221D.90109@chrisserafin.com> We use a medical answering service for the late night calls inbound...but we haven't found anything for technical 24x7 monitoring except our own managed service company... --Chris Baron Schwartz wrote: > My company is looking for an answering service who would: > > * watch Nagios email or SMS alerts 24/7 > * filter out obvious spam > * response time must be on the order of minutes > * call our on-call engineer, and once our engineer acks, the job is done. > > This seems like it could be a great business opportunity, but I can't find > anyone doing this. There are tons of companies who'll do it for medical > doctors. This is very similar, but we need someone who is marginally technical. > > Anyone know of anything like this? > > Regards, > Baron > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.5/1882 - Release Date: 1/8/2009 8:13 AM > > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Thu Jan 8 16:55:59 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Thu, 08 Jan 2009 08:55:59 -0700 Subject: Migrating from Nagios 2.0b4 to Nagios 3.03 In-Reply-To: <4959DA33.3080403@aei.ca> References: <4959DA33.3080403@aei.ca> Message-ID: I am actually having a very similar problem. We had a power failure that lasted longer then our UPSs could take on Dec 24th. Nagios went down and when it came back up, some services have not been checked since. It is not everything... just a select few. After a round of troubleshooting I decided to narrow down what was not getting check so I moved retention.dat and made a clean spool directory as well. Now I have about 40 services out of 308 stuck in pending. This is an example config for one of the services. # 'check_nrpe' command definition define command { command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u }' define service{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art _104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check CPU Load use medium-high-priority-service check_command check_nrpe!check_load } define service{ name medium-high-priority-service use generic-service check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 2 contact_groups nagiosadmin notification_options c,r,f notification_interval 180 notification_period extendedworkhours register 0 } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 register 0 } Nagios 3.0.6 on 10.4.11 OSX. Check CPU Load is returning fine from some boxes, others it is not. It always returns correctly from the command line. I have tried manually forcing a check from the cgis with debug turned on (-1, high verbosity) and it never even shows up in the debug log as an attempt. Any suggestions would be greatly appreciated. Robert Yeo On 12/30/08 1:22 AM, "Thomas Guyot-Sionnest" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 29/12/08 12:07 PM, Deborah Martin wrote: >> Hi, >> >> I'm using Suse 10 / Nagios 3.03. >> >> I have migrated all of my .cfg files across to Nagios 3.03 and all seems to >> work well except that, I still have all the host >> checks still pending on nagios 3.03. But on Nagios 2.0b4, all the hosts have >> a status of up. (Each version runs on it's own dedicated box.) >> >> I only define service checks such as an ssh check per host to ensure a host >> is up (ping isn't allowed) >> >> Is this a known behaviour difference between the versions ? Do I need to >> make some changes to this new version ? >> >> Any pointers / ideas would be much appreciated. > > Probably something wrong with your host settings like check/retry > interval, missing check command or any option that can control check > execution. > > It's possible that checks weren't executing in your 2.x setup and what > you saw as "up" was a very old state. > > Otherwise post your host config, including any needed template. > > - -- > Thomas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJWdoz6dZ+Kt5BchYRAlxJAKDs6uI2t9xSAxjJh5hMRkWC7IoEOACeMYJ9 > 1dv9RkbDzk6K6Jk+48+X4ik= > =vaLJ > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 israel at frontierflying.com Thu Jan 8 19:20:46 2009 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 8 Jan 2009 09:20:46 -0900 Subject: nagios and check_snmp In-Reply-To: <7B5F54A5-BAA9-41D6-B161-A901FA33A9F1@ena.com> References: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> <7B5F54A5-BAA9-41D6-B161-A901FA33A9F1@ena.com> Message-ID: On Jan 8, 2009, at 4:40 AM, Marc Powell wrote: > > On Jan 7, 2009, at 9:28 PM, Chris St. Pierre wrote: > >> You'd have to track the rate of change in ifInOctets >> if you wanted to get bits per second, and that'd be a much more >> complicated plugin. > > For the OP, plugins that do this are available on nagiosexchange.org. Or use MRTG. While this would be another piece of software to set up, this is exactly what it is designed for. You can either set it up to alert itself, or (as I am doing) use one of the nagios plugins that checks the mrtg log files. The benifit of doing things this way is that you get the nice pretty MRTG graphs (not that you couldn't jigger nagios to produce them as well, but I don't know how hard that would be), while keeping a single point of monitoring/alerting. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > -- > Marc > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 epearce at amberpoint.com Thu Jan 8 19:52:52 2009 From: epearce at amberpoint.com (Eric Pearce) Date: Thu, 8 Jan 2009 10:52:52 -0800 Subject: check SMART plugin for older SCSI disks? Message-ID: <8E8F2551FDEC429C96DAC2BA9A89F021@edgility.com> I've got some older Linux systems with Ultra SCSI III disks (mostly Seagate). The default check_ide_smart doesn't seem to work on them. # /usr/local/nagios/libexec/check_ide_smart -n --device=/dev/sdb CRITICAL - SMART_ENABLE: Invalid argument CRITICAL - SMART_CMD_ENABLE But smartctl does seem capable of getting useful info: # smartctl -H /dev/sdb smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ SMART Health Status: OK # smartctl -a /dev/sdb smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: SEAGATE ST3146854LC Version: 0003 Serial number: 3KN08NJK00007544JRCD Device type: disk Transport protocol: Parallel SCSI (SPI-4) Local Time is: Thu Jan 8 10:48:26 2009 PST Device supports SMART and is Enabled Temperature Warning Enabled SMART Health Status: OK Current Drive Temperature: 44 C Drive Trip Temperature: 68 C Elements in grown defect list: 0 Vendor (Seagate) cache information Blocks sent to initiator = 3197703675 Blocks received from initiator = 3575667103 Blocks read from cache and sent to initiator = 3039198837 Number of read and write commands whose size <= segment size = 2268949035 Number of read and write commands whose size > segment size = 3492095 Vendor (Seagate/Hitachi) factory information number of hours powered up = 21576.68 number of minutes until next internal SMART test = 34 Error counter log: Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 80167895 0 0 80167895 80167895 70833.129 0 write: 0 0 0 0 0 13343.062 0 Non-medium error count: 5 [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] No self-tests have been logged Long (extended) Self Test duration: 2125 seconds [35.4 minutes] I've tried various perl and python scripts that others have mentioned, but no luck so far. Does someone have a plugin that will work on this drive type? (or perhaps a modification to check_ide_smart?) I'm running nagios 3.0.6 and 1.4.13 plugins Thanks -e -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 ebm at swervinghead.com Thu Jan 8 19:29:03 2009 From: ebm at swervinghead.com (Eric Marquez) Date: Thu, 8 Jan 2009 10:29:03 -0800 Subject: nagios and check_snmp In-Reply-To: References: <613a5f800901071856h4c2f35d9l558c32107447309e@mail.gmail.com> <7B5F54A5-BAA9-41D6-B161-A901FA33A9F1@ena.com> Message-ID: <613a5f800901081029q3d52d70bt9dfcb9ac8188d019@mail.gmail.com> I'm ended up setting up mrtg last night so I can use the check_mrtgtraf. It always seems to show critical for some reason, even when I don't give a critical or warning number. On Thu, Jan 8, 2009 at 10:20 AM, Israel Brewster wrote: > On Jan 8, 2009, at 4:40 AM, Marc Powell wrote: > > > > > On Jan 7, 2009, at 9:28 PM, Chris St. Pierre wrote: > > > >> You'd have to track the rate of change in ifInOctets > >> if you wanted to get bits per second, and that'd be a much more > >> complicated plugin. > > > > For the OP, plugins that do this are available on nagiosexchange.org. > > Or use MRTG. While this would be another piece of software to set up, > this is exactly what it is designed for. You can either set it up to > alert itself, or (as I am doing) use one of the nagios plugins that > checks the mrtg log files. The benifit of doing things this way is > that you get the nice pretty MRTG graphs (not that you couldn't jigger > nagios to produce them as well, but I don't know how hard that would > be), while keeping a single point of monitoring/alerting. > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > > > > > -- > > Marc > > > > > > > ------------------------------------------------------------------------------ > > Check out the new SourceForge.net Marketplace. > > It is the best place to buy or sell services for > > just about anything Open Source. > > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users 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 > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 loisbennett.com Thu Jan 8 23:04:44 2009 From: nagios at loisbennett.com (Lois Bennett) Date: Thu, 8 Jan 2009 17:04:44 -0500 Subject: works from command line fails from web In-Reply-To: References: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> Message-ID: <9344b49e0901081404i216a9202h82449c7c10aba321@mail.gmail.com> Alright I put it back to being run as nagios. I had tried that because our old server ran as root. and I have a perl script I run on the old one that is failing to connect to mysql when it is run as nagios but that is a different problem I think. As nagios both check_dns and check_simap run successfully on the command line: when I run as the nagios user from the command line this is what I get: root # su - nagios -c "/opt/TWWfsw/nagiosserver30/libexec/check_dns -H coffee.bwh.harvard.edu -s turing --timeout=25" DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 root # su - nagios -c "/opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993" SIMAP OK - 0.038 second response time on port 993 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 14:26:56 -0500 (EST)]|time=0.038170s;;;0.000000;10.000000 In nagios on the web I get these errors. DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no address IMAPS Connection refused The commands are : define command{ command_name check_dns command_line $USER1$/check_dns -H coffee.bwh.harvard.edu -s $HOSTADDRESS$ --timeout=25 } define command{ command_name check_simap command_line $USER1$/check_simap -H $HOSTADDRESS$ -p 993 } from resource.cfg: # Sets $USER1$ to be the path to the plugins $USER1$=/opt/TWWfsw/nagiosserver30/libexec The services: #turing service template define service{ host_name turing normal_check_interval 5 retry_check_interval 1 name turing-service-template use generic-service register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use turing-service-template service_description DNS check_command check_dns } define service{ use turing-service-template service_description IMAPS check_command check_simap } the versions of those plugins are check_dns (nagios-plugins 1.3.1) 1.8.2.3 check_simap v1991 (nagios-plugins 1.4.12) I downgraded check_dns from the old server because the new one (check_dns v1992) kept dumping core. Except for the mysql problem I have other services running fine. ssh and nrpe checking disk space and load and the presece of certain processes on remote machines. Where do I look now? Thanks! On Thu, Jan 8, 2009 at 1:38 PM, Marc Powell wrote: > > On Jan 8, 2009, at 12:01 PM, Lois Bennett wrote: > >> Hi >> I am using Nagios 3.0.3 on a Solaris 8 box. (Solaris 10 will come soon >> to this box.) >> >> I am moving and upgrading my nagios server. It has been going pretty >> well until now. Two of my check modules work fine when invoked from >> the command line but fail when called by nagios. check_dns and >> check_simap. >> >> I tested that they run in sh with no path set as root. > > Nagios does not run as root. Test as the nagios user and you'll likely > see different results. > >> I set nagios to run as root but that has not solved my problem. > > You should never do this. > >> here is the command line output: >> # /opt/TWWfsw/nagiosserver30/libexec/check_dns -H >> coffee.bwh.harvard.edu -s turing --timeout=25 >> DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 > >> >> # /opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993 >> SIMAP OK - 0.039 second response time on port 993 [* OK [CAPABILITY >> IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] >> turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 12:40:17 -0500 >> (EST)]|time=0.038972s;;;0.000000;10.000000 >> >> >> the errors in nagios are >> DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no >> address >> IMAPS Connection refused > > I'd say either you'll see different results when testing as the nagios > user which will probably provide more direction or the commands being > run by nagios are not the same as what you're testing. Please post the > service{} and command{} definitions for these if your testing as the > nagios user is successful. > > -- > Marc > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Thu Jan 8 22:33:48 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Thu, 8 Jan 2009 13:33:48 -0800 (PST) Subject: Elevated alerts Message-ID: <276932.91905.qm@web81806.mail.mud.yahoo.com> Hi All, I'm trying to figure out how an elevated alert would work. This one isn't exactly clear to me from the documentation. So say, I have an alert that gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you get Nagios to send off something say to a pager as well as email? I think I have my setups good now, and I'm seeing states of WARNING, CRITICAL, and RECOVERY in email, but I'm not sure how to implement these changes. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 mothbitten1 at yahoo.com Thu Jan 8 23:54:27 2009 From: mothbitten1 at yahoo.com (Dan McManus) Date: Thu, 8 Jan 2009 14:54:27 -0800 (PST) Subject: works from command line fails from web References: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> <9344b49e0901081404i216a9202h82449c7c10aba321@mail.gmail.com> Message-ID: <463294.45321.qm@web35405.mail.mud.yahoo.com> What happens if you hard code the IP address of whatever host "turing" is in the command definition? ----- Original Message ---- From: Lois Bennett To: Marc Powell ; Nagios Users Sent: Thursday, January 8, 2009 3:04:44 PM Subject: Re: [Nagios-users] works from command line fails from web Alright I put it back to being run as nagios. I had tried that because our old server ran as root. and I have a perl script I run on the old one that is failing to connect to mysql when it is run as nagios but that is a different problem I think. As nagios both check_dns and check_simap run successfully on the command line: when I run as the nagios user from the command line this is what I get: root # su - nagios -c "/opt/TWWfsw/nagiosserver30/libexec/check_dns -H coffee.bwh.harvard.edu -s turing --timeout=25" DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 root # su - nagios -c "/opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993" SIMAP OK - 0.038 second response time on port 993 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 14:26:56 -0500 (EST)]|time=0.038170s;;;0.000000;10.000000 In nagios on the web I get these errors. DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no address IMAPS Connection refused The commands are : define command{ command_name check_dns command_line $USER1$/check_dns -H coffee.bwh.harvard.edu -s $HOSTADDRESS$ --timeout=25 } define command{ command_name check_simap command_line $USER1$/check_simap -H $HOSTADDRESS$ -p 993 } from resource.cfg: # Sets $USER1$ to be the path to the plugins $USER1$=/opt/TWWfsw/nagiosserver30/libexec The services: #turing service template define service{ host_name turing normal_check_interval 5 retry_check_interval 1 name turing-service-template use generic-service register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use turing-service-template service_description DNS check_command check_dns } define service{ use turing-service-template service_description IMAPS check_command check_simap } the versions of those plugins are check_dns (nagios-plugins 1.3.1) 1.8.2.3 check_simap v1991 (nagios-plugins 1.4.12) I downgraded check_dns from the old server because the new one (check_dns v1992) kept dumping core. Except for the mysql problem I have other services running fine. ssh and nrpe checking disk space and load and the presece of certain processes on remote machines. Where do I look now? Thanks! On Thu, Jan 8, 2009 at 1:38 PM, Marc Powell wrote: > > On Jan 8, 2009, at 12:01 PM, Lois Bennett wrote: > >> Hi >> I am using Nagios 3.0.3 on a Solaris 8 box. (Solaris 10 will come soon >> to this box.) >> >> I am moving and upgrading my nagios server. It has been going pretty >> well until now. Two of my check modules work fine when invoked from >> the command line but fail when called by nagios. check_dns and >> check_simap. >> >> I tested that they run in sh with no path set as root. > > Nagios does not run as root. Test as the nagios user and you'll likely > see different results. > >> I set nagios to run as root but that has not solved my problem. > > You should never do this. > >> here is the command line output: >> # /opt/TWWfsw/nagiosserver30/libexec/check_dns -H >> coffee.bwh.harvard.edu -s turing --timeout=25 >> DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 > >> >> # /opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993 >> SIMAP OK - 0.039 second response time on port 993 [* OK [CAPABILITY >> IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] >> turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 12:40:17 -0500 >> (EST)]|time=0.038972s;;;0.000000;10.000000 >> >> >> the errors in nagios are >> DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no >> address >> IMAPS Connection refused > > I'd say either you'll see different results when testing as the nagios > user which will probably provide more direction or the commands being > run by nagios are not the same as what you're testing. Please post the > service{} and command{} definitions for these if your testing as the > nagios user is successful. > > -- > Marc > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 9 00:05:10 2009 From: marc at ena.com (Marc Powell) Date: Thu, 8 Jan 2009 17:05:10 -0600 Subject: works from command line fails from web In-Reply-To: <9344b49e0901081404i216a9202h82449c7c10aba321@mail.gmail.com> References: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> <9344b49e0901081404i216a9202h82449c7c10aba321@mail.gmail.com> Message-ID: On Jan 8, 2009, at 4:04 PM, Lois Bennett wrote: > when I run as the nagios user from the command line this is what I > get: > > root # su - nagios -c "/opt/TWWfsw/nagiosserver30/libexec/check_dns > -H coffee.bwh.harvard.edu -s turing --timeout=25" > DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 > > root # su - nagios -c > "/opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993" > SIMAP OK - 0.038 second response time on port 993 [* OK [CAPABILITY > IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] > turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 14:26:56 -0500 > (EST)]|time=0.038170s;;;0.000000;10.000000 Here you are using 'turing' as the host address to connect to. > In nagios on the web I get these errors. > > DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no > address > IMAPS Connection refused These errors imply that there is a problem with the host address. > The commands are : > define command{ > command_name check_dns > command_line $USER1$/check_dns -H coffee.bwh.harvard.edu -s > $HOSTADDRESS$ --timeout=25 > } > define command{ > command_name check_simap > command_line $USER1$/check_simap -H $HOSTADDRESS$ -p 993 > } ... using $HOSTADDRESS$ in the right place... > #turing service template > define service{ > host_name turing > [snip] > } In the host{} definition for host_name turing, is the address directive ($HOSTADDRESS$) set to 'turing'? If so I suspect that the environment (or lack thereof) is preventing the translation of that to an IP address. What happens if you use the FQDN or IP address instead? If it is not set to 'turing', what is it set to and is it correct? -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 nighthunter92403 at gmail.com Fri Jan 9 00:49:37 2009 From: nighthunter92403 at gmail.com (Nicholas Thompson) Date: Thu, 8 Jan 2009 18:49:37 -0500 Subject: Hostgroup Downtime and ScriptAlias Message-ID: <98d3d3570901081549i451159b2q975feb3b3fced8a3@mail.gmail.com> Hello All, I have 2 problems. I just upgraded to 3.0.6 in hopes of fixing the second problem(question) I have. In the process of the upgrade, I ran the "make install-webconf" command, all went well. I then ran the "service httpd restart" and it comes back up, but I get the following output: [Thu Jan 08 18:28:30 2009] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 588 will probably never match because it overlaps an earlier ScriptAlias. [Thu Jan 08 18:28:30 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 605 will probably never match because it overlaps an earlier Alias. So I went in and commented out the previously defined ScriptAlias and Alias and their defined directories, so only the Nagios ones exist. I restarted the web server again, and I keep getting the same errors. The web interfaces comes up, and says 3.0.6, but I have not tried running any of the CGI's. Can anyne help me with the fix or should I not worry about it? The second problem/question I have that still exists now that I upgraded to 3.0.6 is the following: When I run the following command http://xxx.xxx.xxx.xxx/nagios/cgi-bin/cmd.cgi?cmd_typ=85, and it schedules the downtime for the whole host group, why does it not show up under "Scheduled Host Downtime" when I click on "Downtime" from the main menu? Thanks for all of your help! Nick~ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jmoseley at corp.xanadoo.com Fri Jan 9 01:33:30 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 8 Jan 2009 18:33:30 -0600 Subject: Elevated alerts In-Reply-To: <276932.91905.qm@web81806.mail.mud.yahoo.com> References: <276932.91905.qm@web81806.mail.mud.yahoo.com> Message-ID: Grant Lowe wrote: >Hi All, > >I'm trying to figure out how an elevated alert would work. This one isn't exactly clear to me from the documentation. So say, I have an alert that >gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you get Nagios to send off something say to a pager as well as email? I think I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and RECOVERY in email, but I'm not sure how to implement these changes. Thanks! The easiest thing to do is just to send all alerts to both an email and pager/phone. If you want to send warnings to just email addresses, and then send critical alerts to both the email and pager address for a particular contact, then one way to do that would be to create two contacts for the same person. In the first contact (for warnings) entry, you'd have something like: service_notification_options w,u,,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email In the *critical* contact entry, you'd have: service_notification_options u,c,r host_notification_options d,u,r service_notification_commands notify-by-epager host_notification_commands host-notify-by-epager service_notification_commands notify-by-email host_notification_commands host-notify-by-email Then you'd make both contacts the member of the same contact group. In the above example, when a service goes to warning state, the contact would be sent an email only. When the service goes to critical, the contact would get both an email and a pager/phone alert. In the above scenario, the contact would get duplicate emails for unreachable and recovery states, so you may want to adjust that to your needs. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 alexis.hazell at gmail.com Fri Jan 9 02:02:02 2009 From: alexis.hazell at gmail.com (Alexis Hazell) Date: Fri, 9 Jan 2009 12:02:02 +1100 Subject: Notifications not working [was: Re: '$' symbol being appended to command_line?] In-Reply-To: <20090108002708.GC3513@ada.78net> References: <20090107041627.GY29220@ada.78net> <5561D7B9-EF15-42E1-9278-701D3C44DD95@ena.com> <20090107104835.GB3513@ada.78net> <6885A58A-0C25-4266-9534-B46A3AECE51D@ena.com> <20090108002708.GC3513@ada.78net> Message-ID: <20090109010202.GA27579@ada.78net> On 11:27:09 Thu 08-Jan-09, Alexis Hazell wrote: > Doing this showed that you are correct about it being a permissions > issue: nagios is running as user 'nagios' and group 'nagios', but > the /bin/mail and /usr/bin/freetalk commands are being run in an > environment where it seems that HOME=/root/ - the commands attempt to > access /root/.esmtprc and /root/.freetalk/, respectively, rather than > attempting to access /var/log/nagios/.esmtprc and > /var/log/nagios/.freetalk/ (where /var/log/nagios is HOME for user > nagios). > > Obvious kludges are: > > * copy the respective dot files to /root/ and either chmod them o+r > or chown them root.nagios; > > * modify the command_line to use sudo to ensure /bin/mail and > /usr/bin/freetalk are run as user 'nagios'. > > But surely there's a better alternative? What am i missing? Okay, for future reference for anyone else who might face the same problem, i couldn't get either of the above kludges to work. Instead, what worked was setting the HOME var: command_line echo 'Nagios notification --- Type: $NOTIFICATIONTYPE$, Service: $SERVICEDESC$, Host: $HOSTALIAS$, Address: $HOSTADDRESS$, State: $SERVICESTATE$, Date/Time: $LONGDATETIME$, Additional Info: $SERVICEOUTPUT$' | HOME=/var/log/nagios /usr/bin/freetalk -s /var/log/nagios/notify.scm where the contents of /var/log/nagios/notify.scm are: (use-modules (ice-9 rdelim)) (define msg (read-line)) (ft-set-jid! "[sender-JID]") (ft-set-server! "talk.google.com") (ft-set-password! "[sender-password]") (ft-set-sslconn! #t) (ft-set-port! 5223) (if (ft-login-blocking) (begin (ft-send-message "[recipient-JID]" msg) (ft-disconnect)) (display "Could not connect\n")) Alexis. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 flrenegado at gmail.com Fri Jan 9 03:10:30 2009 From: flrenegado at gmail.com (fernando renegado) Date: Fri, 9 Jan 2009 10:10:30 +0800 Subject: nagios not sending sms through gnokii In-Reply-To: References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> Message-ID: <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> Hi, Just tested gnokii at the terminal as nagios user. It can send sms manually as nagios user but when I restarted nagios, it failed to send sms. Also I noticed that each time I reboot my nagios box, the permissions are denied. And I have to chown and chmod the gnokii port and usb each time. Thanks for your help. fernando On Wed, Jan 7, 2009 at 8:17 AM, Jon Angliss wrote: > On Tue, 6 Jan 2009 14:23:56 +0800, "fernando renegado" > wrote: > > >Hi, > > > >It's been weeks since I've been experimenting on gnokii to send sms alerts > >from nagios. I'm using nokia 5210 xpress music cell connected to my nagios > >on Centos box. When I tried to send sms at the terminal it works fine. But > >when I enable nagios to send sms, it doesn't. I tried to chmod and chown > the > >port being used by gnokii but to no avail. Please help! > > You'll need to provide more details, like the script you're using the > execute the sms send, and how you performed the additional tests. As > Hugo mentioned, did you test as the nagios user? Are you at least > seeing a notification entry in the log files saying it has attempted > to execute the command? Are there any errors there? > -- > Jon Angliss > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 alexis.hazell at gmail.com Fri Jan 9 03:34:55 2009 From: alexis.hazell at gmail.com (Alexis Hazell) Date: Fri, 9 Jan 2009 13:34:55 +1100 Subject: nagios not sending sms through gnokii In-Reply-To: <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> Message-ID: <20090109023455.GD27579@ada.78net> On 10:10:30 Fri 09-Jan-09, fernando renegado wrote: > Just tested gnokii at the terminal as nagios user. It can send sms > manually as nagios user but when I restarted nagios, it failed to > send sms. Also I noticed that each time I reboot my nagios box, > the permissions are denied. A suggestion, following my own recent experiences: In the command_line specification, try adding 'HOME=/nagios/home/dir' just before the gnokii command. Alexis. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jon at netdork.net Fri Jan 9 04:05:05 2009 From: jon at netdork.net (Jon Angliss) Date: Thu, 08 Jan 2009 21:05:05 -0600 Subject: nagios not sending sms through gnokii References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> Message-ID: On Fri, 9 Jan 2009 10:10:30 +0800, "fernando renegado" wrote: >Hi, > >Just tested gnokii at the terminal as nagios user. It can send sms manually >as nagios user but when I restarted nagios, it failed to send sms. Also I >noticed that each time I reboot my nagios box, the permissions are denied. >And I have to chown and chmod the gnokii port and usb each time. Thanks for >your help. chmod what port? Can you add the nagios user to the group that is part of the port owner? You still haven't provided a huge amount of information, like command definitions, or the likes. -- Jon Angliss ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 farislinux at yahoo.com Fri Jan 9 04:53:57 2009 From: farislinux at yahoo.com (faris) Date: Thu, 8 Jan 2009 19:53:57 -0800 (PST) Subject: Nagios 3.0.6 Fails to play sound in browser! Message-ID: <577509.22532.qm@web33205.mail.mud.yahoo.com> Hi, ? I am using Nagios 3.0.6 OS : RHEL4 Update 4 ? Problem: after configuring nagios and when accessing it from a client mechine (winXP) firefox or IE browser, nagios fails to play sound when there is an alert. but if i degrade nagios to a nagios version 2.x sound problem is gone! can anybody tell me how to fix this issue in nagios 3.0.6 and succefully play alert sound, which is currnetly the stable release. ? Thanks ! ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 flrenegado at gmail.com Fri Jan 9 10:17:04 2009 From: flrenegado at gmail.com (fernando renegado) Date: Fri, 9 Jan 2009 17:17:04 +0800 Subject: nagios not sending sms through gnokii In-Reply-To: References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> Message-ID: <543c8f860901090117n2e9f167eh558af1ea9cc2754d@mail.gmail.com> Hi Jon, I just followed the following: i did "su nagios", ran the script and the errors popped out: ~# su nagios $ /usr/bin/sms_gnokii GNOKII Version 0.6.27 Couldn't read /home/nagios/.gnokiirc config file. Couldn't read /home/nagios/.gnokiirc config file. Couldn't read /etc/gnokiirc config file. Couldn't read /etc/gnokiirc config file. Config file cannot be read. I copied .gnokiirc from /root to /home/nagios and did chown nagios:nagios on it. Further, gnokii tries to send the message but it ends in another permission related error: Connecting Serial device: opening device USB Ignoring extra header, type 171, length 5 Found FBUS interface Can't set configuration: -1 Can't claim control interface: -1 Couldn't open PHONET device: Operation not permitted Error in link initialisation: 1 Telephone interface init failed: Command failed. Quitting. Command failed. Furthermore, i tried the following: chown -R nagios:nagios /dev/bus/usb/* chown -R nagios:nagios /dev/ttyACM0 and chmod 750 -R /dev/bus/usb/* chmod 750 /dev/ttyACM0 then I tried /usr/bin/gnokii --getnetworkinfo and It works without error. Now I restarted nagios. NO SMS SENT only Email notification. On Fri, Jan 9, 2009 at 11:05 AM, Jon Angliss wrote: > On Fri, 9 Jan 2009 10:10:30 +0800, "fernando renegado" > wrote: > > >Hi, > > > >Just tested gnokii at the terminal as nagios user. It can send sms > manually > >as nagios user but when I restarted nagios, it failed to send sms. Also I > >noticed that each time I reboot my nagios box, the permissions are denied. > >And I have to chown and chmod the gnokii port and usb each time. Thanks > for > >your help. > > chmod what port? Can you add the nagios user to the group that is > part of the port owner? You still haven't provided a huge amount of > information, like command definitions, or the likes. > -- > Jon Angliss > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 fdm.alex at gmail.com Fri Jan 9 11:52:55 2009 From: fdm.alex at gmail.com (alex alex) Date: Fri, 9 Jan 2009 12:52:55 +0200 Subject: nagios 3.0.5 email notifications fail Message-ID: Hi all, I have nagios 3.0.5 installed and it seems that it is working ok but no notifications are sent. Instead, in /home/nagios/dead.letter the messages keep arriving. The problem seems to be due to mail headers : "From nagios Fri Jan 9 09:38:31 2009 Return-Path: Received: (from nagios at localhost) by localhost.localdomain (8.14.1/8.14.1/Submit) id n097cVWc011912 for $; Fri, 9 Jan 2009 09:38:31 +0200 Date: Fri, 9 Jan 2009 09:38:31 +0200 From: nagios Message-Id: <200901090738.n097cVWc011912 at localhost.localdomain> To: $ Subject: ** Service Alert: ITM_M._Ciuc/is_alive is OK **" Somehow it seems that no user address is found (or the address $ is used ). Also, the mail log says the same thing: Jan 9 12:33:14 localhost sendmail[11185]: n09AXEi5011185: from=nagios, size=276, class=0, nrcpts=1, msgid=<200901091033.n09AXEi5011185 at localhost.localdomain>, relay=nagios at localhost Jan 9 12:33:14 localhost sendmail[11186]: n09AXE29011186: <$@localhost.localdomain>... User unknown Jan 9 12:33:14 localhost sendmail[11185]: n09AXEi5011185: to=$, ctladdr=nagios (514/514), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30276, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Jan 9 12:33:14 localhost sendmail[11186]: n09AXE29011186: from=, size=276, class=0, nrcpts=0, proto=ESMTP, daemon=Daemon0, relay=localhost.localdomain [127.0.0.1] Do you encounter such behaviour? Some relevant config files are as below: define host { host_name host1 alias host1 address 172.30.129.67 use generic_business_hour } #generic_business_hour define host { name generic_business_hour process_perf_data 1 retain_status_information 1 flap_detection_enabled 1 retain_nonstatus_information 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 9la18 obsess_over_host 0 check_freshness 1 freshness_threshold 0 check_command is_icmp_alive max_check_attempts 3 event_handler_enabled 1 event_handler notify-host-by-email notifications_enabled 1 notification_interval 15 notification_period 9to18 notification_options d,u,r,f stalking_options d,o,u contact_groups admins register 0 action_url /nagios/pnp/index.php?host=$HOSTNAME$ } # contactgroups admins define contactgroup { contactgroup_name admins alias admins members nagios,user } define contact { contact_name nagios use generic-contact alias nagios email nagios at localhost } define contact { name generic host_notification_period 24din2_7din7 service_notification_period 24din2_7din7 host_notification_options d,u,r,n,f service_notification_options u,c,w,r,n,f host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email register 0 } define command { command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } Thank you, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 security at ingar.org Fri Jan 9 11:16:05 2009 From: security at ingar.org (Ingar Smedstad) Date: Fri, 09 Jan 2009 11:16:05 +0100 Subject: nagiosgraph insert.pl problems with chek_nt!USEDDISKSPACE Message-ID: <496723E5.8030000@ingar.org> Hello, I have recently installed nagiosgraph and have encountered a small problem. the error log is growing quite fast with messages like this: Fri Jan 9 10:25:20 2009 $RCSfile: insert.pl,v $ $Revision: 1.25 $ error - RRDs::update ERR /usr/local/etc/nagios/nagiosgraph/rrd/lys-dc01/C%3A%5C%20OS___ntdisk.rrd: expected 4 data source readings (got 4) from 1231493108 In Nagios all looks fine though: Performance Data: 'c:\ Used Space'=6.38Gb;23.99;26.99;0.00;29.99 I am not sure where to start debugging this, so any ideas are welcome. I am not able to get any graphs for windows disks, so obviously something is wrong. Here is a matched pair: From error log: :update ERR /usr/local/etc/nagios/nagiosgraph/rrd/bgo-fs01/P%3A%5C%20Share04___ntdisk.rrd: expected 4 data source readings (got 4) from 1231495683 From perdata: 1231495683||bgo-fs01||P:\ Share04||c:\ - total: 29.99 Gb - used: 14.23 Gb (47%) - free 15.76 Gb (53%)||c:\ Used Space=14.23Gb;23.99;26.99;0.00;29.99 Ingar ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 kkchn.in at gmail.com Fri Jan 9 12:50:31 2009 From: kkchn.in at gmail.com (KK CHN) Date: Fri, 9 Jan 2009 17:20:31 +0530 Subject: accessing a remote kannel sms gateway for a Nagios box Message-ID: <60b5635b0901090350n6aacaa97x8aec6b7f31f29ca3@mail.gmail.com> How can I configure my nagios box to send sms through a kannel sms gateway setup which is on another PC. Note : both nagios & kannel box in the same network.. from My nagios box , I can send sms through web browser (here http://10.18.1.10 is the kannel gateway box ) http://10.18.1.10:13013/cgi-bin/sendsms?username=myuser_name&password=my_PASS&to=26857&text=serverdown I can send this message(eg:serverdown) from my nagios box's firefox browser to my cellphone (I am geeting message in my cellphone) But for nagios to do this what config I have to write in config file ?can anyone help me how can I do it for nagios ? Thanks in advance kkchn -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 Edgar.Matzinger at valid.nl Fri Jan 9 13:43:43 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Fri, 9 Jan 2009 13:43:43 +0100 Subject: nagiosgraph insert.pl problems withchek_nt!USEDDISKSPACE In-Reply-To: <496723E5.8030000@ingar.org> References: <496723E5.8030000@ingar.org> Message-ID: Hi Ingar, > - RRDs::update ERR > /usr/local/etc/nagios/nagiosgraph/rrd/lys- > dc01/C%3A%5C%20OS___ntdisk.rrd: > expected 4 data source readings (got 4) from 1231493108 > > In Nagios all looks fine though: > > Performance Data: 'c:\ Used Space'=6.38Gb;23.99;26.99;0.00;29.99 how was the RRD file created? With which arguments? BTW, the performance data listed above is a single data source... HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 9 14:30:00 2009 From: marc at ena.com (Marc Powell) Date: Fri, 9 Jan 2009 07:30:00 -0600 Subject: nagios 3.0.5 email notifications fail In-Reply-To: References: Message-ID: On Jan 9, 2009, at 4:52 AM, alex alex wrote: > Subject: ** Service Alert: ITM_M._Ciuc/is_alive is OK **" This is a service alert. > Somehow it seems that no user address is found (or the address $ is > used ). Also, the mail log says the same thing: > > define contact { > [snip] > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register 0 > } > > define command { > command_name notify-host-by-email This is not the commnad{} used for service alerts (look for notify- service-by-email). My expectation is that you have a typo at or near $CONTACTEMAIL$ there. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 fdm.alex at gmail.com Fri Jan 9 15:42:30 2009 From: fdm.alex at gmail.com (alex alex) Date: Fri, 9 Jan 2009 16:42:30 +0200 Subject: nagios 3.0.5 email notifications fail In-Reply-To: References: Message-ID: ok, I get the service and not the host email from dead.letter. My mistake. Here's the host one: >From nagios Fri Jan 9 16:12:31 2009 Return-Path: Received: (from nagios at localhost) by localhost.localdomain (8.14.1/8.14.1/Submit) id n09ECVcx011087 for $; Fri, 9 Jan 2009 16:12:31 +0200 Date: Fri, 9 Jan 2009 16:12:31 +0200 From: nagios Message-Id: <200901091412.n09ECVcx011087 at localhost.localdomain> To: $ Subject: ** $ Host Alert: host1 is DOWN ** ***** Nagios ***** Notification: I will try to see the error in command. I already use a modified command define command { command_name notify-host-by-email command_line /usr/bin/printf "%b" "Host: $HOSTNAME$\n $CONTACTEMAIL$\n" |cat >>/tmp/testfile } and I get in the log file just: Host: host1 $ Host: host1 $ Host: host1 $ So I guess that nagios is not getting right the $CONTACTEMAIL$ macro substitution. I don't know exactly the inner works that means that if it's correct to define a host and use a template for providing the contact group and from the contact group nagios can extract the email addresses and put them in $CONTACTEMAIL$ Also, the services are not notified also; the same happens (the email sustituted from $CONTACTEMAIL$ seems to be $???). Thank you, Alex On Fri, Jan 9, 2009 at 3:30 PM, Marc Powell wrote: > > On Jan 9, 2009, at 4:52 AM, alex alex wrote: > > > Subject: ** Service Alert: ITM_M._Ciuc/is_alive is OK **" > > This is a service alert. > > > Somehow it seems that no user address is found (or the address $ is > > used ). Also, the mail log says the same thing: > > > > > > define contact { > > [snip] > > host_notification_commands notify-host-by-email > > service_notification_commands notify-service-by-email > > register 0 > > } > > > > define command { > > command_name notify-host-by-email > > This is not the commnad{} used for service alerts (look for notify- > service-by-email). My expectation is that you have a typo at or near > $CONTACTEMAIL$ there. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jbroughton at truecos.com Fri Jan 9 16:04:19 2009 From: jbroughton at truecos.com (Jayson Broughton) Date: Fri, 9 Jan 2009 08:04:19 -0700 Subject: Could not complete ssl handshake In-Reply-To: References: Message-ID: <006401c9726b$93928510$bab78f30$@com> Harry, There are afew thing you can check that cause this problem. 1. Check versions of the nrpe on both the server and the client 2. Did you install check_nrpe from source or rpm? You might want to check if one is compiled with ssl support and the other isn't compiled for SSL support (I had that problem, server was compiled for SSL and listening for SSL connections, client wasn't) 3. I know with RHEL (what we use here) you have to set up the SELinux permissions to allow the port through, along with editing the /etc/xinetd.d/nrpe file and send a hup to xinetd so it can talk to the server/client. Here's a copy of my xinetd file in /etc/xinetd.d/ a. # default: on b. # description: NRPE (Nagios Remote Plugin Executor) c. service nrpe d. { e. flags = REUSE f. socket_type = stream g. port = 5666 h. wait = no i. user = nagios j. group = nagios k. server = /usr/local/nagios/bin/nrpe l. server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd m. log_on_failure += USERID n. disable = no o. only_from = NAGIOS.SERVER.IP.ADDRESS p. } 4. Try running a higher debug on the server and manually run check_nrpe from the server to the client, check logs. Hope this helps! ~Jayson Broughton From: Hart, Harry M. CTR USJFCOM JTCI [mailto:harry.hart.ctr at jfcom.mil] Sent: Thursday, January 08, 2009 4:37 AM To: Nagios Users Mailinglist Subject: [Nagios-users] Could not complete ssl handshake I know I've seen this error on this forum before but can not remember what resolved the problem. I installed NRPE on a Linux system to talk to another Linux machine that is the Nagios server. I do the check_nrpe and get Could not complete SSL handshake. It works fine when I do it from the server to the remote system. Thanks for any help on this one. Harry Harry M. Hart Systems integrator SAIC USJFCOM JIOC DCGS-A (757) 203-7422 DSN 668-7422 Harry.Hart at intel.jwfc.jfcom.smil.mil Harry.Hart at jwfc.ic.gov The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 jbroughton at truecos.com Fri Jan 9 16:12:18 2009 From: jbroughton at truecos.com (Jayson Broughton) Date: Fri, 9 Jan 2009 08:12:18 -0700 Subject: downtime large number of hosts? In-Reply-To: <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> References: <598853.45371.qm@web33108.mail.mud.yahoo.com> <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> Message-ID: <006901c9726c$ab9bf910$02d3eb30$@com> We have some linux servers here that peg-out on CPU/Mem when they are doing a full backup, so I have used the wonderful 'Nagios External Command List' website to custom tailor my alert notifications for hosts/hostgroups every day during a certain time. Specifically the DISABLE_HOST_SVC_NOTIFICATIONS and DISABLE_HOST_SVC_CHECKS. Then when it's time to re-monitor, a crontab entry runs: ENABLE_HOST_SVC_NOTIFICATIONS & ENABLE_HOST_SVC_CHECKS. Check out those 4 options on: http://www.nagios.org/developerinfo/externalcommands/commandlist.php The examples give you an excellent base script to work off of. ~Jayson -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 08, 2009 8:05 AM To: Nagios Users Subject: Re: [Nagios-users] downtime large number of hosts? On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > Is there a easy way to schedule down time for large number of hosts/ > services at the same time? The downtime web interface doesn't accept > wildcard characters. If they are all in the same hostgroup you can click on the hostgroup name (in ()'s) and schedule downtime for all of them at once, otherwise, no not that I am aware of outside of some simple scripting to send the appropriate external command for each host through the external command file. -- Marc ---------------------------------------------------------------------------- -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 9 16:49:28 2009 From: marc at ena.com (Marc Powell) Date: Fri, 9 Jan 2009 09:49:28 -0600 Subject: nagios 3.0.5 email notifications fail In-Reply-To: References: Message-ID: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> On Jan 9, 2009, at 8:42 AM, alex alex wrote: > I will try to see the error in command. I already use a modified > command > > define command { > command_name notify-host-by-email > command_line /usr/bin/printf "%b" > "Host: $HOSTNAME$\n $CONTACTEMAIL$\n" |cat >>/tmp/testfile > } > > > and I get in the log file just: > > Host: host1 > $ > Host: host1 > $ > Host: host1 > $ Interesting... > So I guess that nagios is not getting right the $CONTACTEMAIL$ > macro substitution. > > I don't know exactly the inner works that means that if it's correct > to define a host and use a template for providing the contact group > and from the contact group nagios can extract the email addresses > and put them in $CONTACTEMAIL$ I expect this to work fine. > Also, the services are not notified also; the same happens (the > email sustituted from $CONTACTEMAIL$ seems to be $???). I suspect that the more likely reason is that nagios is not replacing $CONTACTEMAIL$ with it's proper value before passing it on to the shell for some strange reason. The shell then interprets '$CONTACTEMAIL $' as a null shell variable of '$CONTACTEMAIL' followed by a literal '$' so you end up with the results your seeing (you could see this by enabling debug mode). The question is why nagios isn't doing the substitution properly. The most likely cause is that the macro is mistyped but that really doesn't look like the case. Actually, now that I'm reviewing your original posting. I'm exactly sure that nagios isn't performing the subtitution at all. In your host template (and probably service template), you specify the notification commands as event_handlers. This is not a correct use of event handlers as the $CONTACTEMAIL$ macro (and others) are not valid for them. Disable event_handler_enabled and remove event_handler and you should be fixed. The notifications will still go out through the normal notification process. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Fri Jan 9 17:52:29 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Fri, 9 Jan 2009 08:52:29 -0800 (PST) Subject: Elevated alerts Message-ID: <72426.83657.qm@web81801.mail.mud.yahoo.com> Thank you for the response. I like your idea. I think I need to embellish it some. A couple of questions about it. In our environment, I think I only have to make one change. Here's what currently happens. A regular email goes to user at company.com, but pages go to user at pager.company.com. So I thought I would setup the paging like this (at least for starters): The notify-by-email works just fine. Don't want to mess with this one. # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Here's a notfiy-by-pager that I would like to use. Just a clone of the notify-by-email, but modified for pages. # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } How would I modify notify-by-pager to send to the "user at pager.company.com" we use? I'm asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in the notify-host-by-email and notify-service-by-email definitions. I think I would then use the two different contacts for the same person as you said in your email. Does this sound like reasonable? ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Thursday, January 8, 2009 4:33:30 PM Subject: Re: [Nagios-users] Elevated alerts Grant Lowe wrote: >Hi All, > >I'm trying to figure out how an elevated alert would work. This one isn't exactly clear to me from the documentation. So say, I have an alert that >gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you get Nagios to send off something say to a pager as well as email? I think I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and RECOVERY in email, but I'm not sure how to implement these changes. Thanks! The easiest thing to do is just to send all alerts to both an email and pager/phone. If you want to send warnings to just email addresses, and then send critical alerts to both the email and pager address for a particular contact, then one way to do that would be to create two contacts for the same person. In the first contact (for warnings) entry, you'd have something like: service_notification_options w,u,,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email In the *critical* contact entry, you'd have: service_notification_options u,c,r host_notification_options d,u,r service_notification_commands notify-by-epager host_notification_commands host-notify-by-epager service_notification_commands notify-by-email host_notification_commands host-notify-by-email Then you'd make both contacts the member of the same contact group. In the above example, when a service goes to warning state, the contact would be sent an email only. When the service goes to critical, the contact would get both an email and a pager/phone alert. In the above scenario, the contact would get duplicate emails for unreachable and recovery states, so you may want to adjust that to your needs. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Fri Jan 9 18:18:43 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 9 Jan 2009 11:18:43 -0600 Subject: Elevated alerts In-Reply-To: <72426.83657.qm@web81801.mail.mud.yahoo.com> References: <72426.83657.qm@web81801.mail.mud.yahoo.com> Message-ID: You wouldn't need to modify the notify-by-pager command you already have setup. After all, you are still sending mail to an email address. I don't know why your command definitions have @MAIL_PROG at . That must be defined someplace else in another config file if it's working. If that command isn't working, simply replace that variable string with /bin/mail. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/09/2009 10:52 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Thank you for the response. I like your idea. I think I need to embellish it some. A couple of questions about it. In our environment, I think I only have to make one change. Here's what currently happens. A regular email goes to user at company.com, but pages go to user at pager.company.com. So I thought I would setup the paging like this (at least for starters): The notify-by-email works just fine. Don't want to mess with this one. # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Here's a notfiy-by-pager that I would like to use. Just a clone of the notify-by-email, but modified for pages. # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } How would I modify notify-by-pager to send to the "user at pager.company.com" we use? I'm asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in the notify-host-by-email and notify-service-by-email definitions. I think I would then use the two different contacts for the same person as you said in your email. Does this sound like reasonable? ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Thursday, January 8, 2009 4:33:30 PM Subject: Re: [Nagios-users] Elevated alerts Grant Lowe wrote: >Hi All, > >I'm trying to figure out how an elevated alert would work. This one isn't exactly clear to me from the documentation. So say, I have an alert that >gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you get Nagios to send off something say to a pager as well as email? I think I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and RECOVERY in email, but I'm not sure how to implement these changes. Thanks! The easiest thing to do is just to send all alerts to both an email and pager/phone. If you want to send warnings to just email addresses, and then send critical alerts to both the email and pager address for a particular contact, then one way to do that would be to create two contacts for the same person. In the first contact (for warnings) entry, you'd have something like: service_notification_options w,u,,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email In the *critical* contact entry, you'd have: service_notification_options u,c,r host_notification_options d,u,r service_notification_commands notify-by-epager host_notification_commands host-notify-by-epager service_notification_commands notify-by-email host_notification_commands host-notify-by-email Then you'd make both contacts the member of the same contact group. In the above example, when a service goes to warning state, the contact would be sent an email only. When the service goes to critical, the contact would get both an email and a pager/phone alert. In the above scenario, the contact would get duplicate emails for unreachable and recovery states, so you may want to adjust that to your needs. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 fdm.alex at gmail.com Fri Jan 9 18:26:08 2009 From: fdm.alex at gmail.com (alex alex) Date: Fri, 9 Jan 2009 19:26:08 +0200 Subject: nagios 3.0.5 email notifications fail In-Reply-To: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> Message-ID: Hi again, I've just disabled events handler. I think youwere right. The dead emails were from events handler, not from notifications. No new notifications failed in letter.dead It seems that in event handler, the $CONTACTEMAIL$ is not set. But now, even stranger, no notification is sent. I mean I enabled debug in nagios.cfg and the result is: [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt ** Host: 'h ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu Jan 1 02:00:00 1970 [1231482452.132086] [032.0] [pid=16674] Notification viability test passed. [1231482452.132104] [032.1] [pid=16674] Current notification number: 1 (incremen ted) [1231482452.132127] [032.1] [pid=16674] Host notification will NOT be escalated. [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for host to notif ication list. [1231482452.132504] [032.0] [pid=16674] No contacts were notified. Next possibl e notification time: Thu Jan 1 02:00:00 1970 [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified. Now more than ever I don't understand why no contacts were notified! It can mean that normal contacts doesn't exist? > > > So I guess that nagios is not getting right the $CONTACTEMAIL$ > > macro substitution. > > > > I don't know exactly the inner works that means that if it's correct > > to define a host and use a template for providing the contact group > > and from the contact group nagios can extract the email addresses > > and put them in $CONTACTEMAIL$ > > I expect this to work fine. > > > Also, the services are not notified also; the same happens (the > > email sustituted from $CONTACTEMAIL$ seems to be $???). > > I suspect that the more likely reason is that nagios is not replacing > $CONTACTEMAIL$ with it's proper value before passing it on to the > shell for some strange reason. The shell then interprets '$CONTACTEMAIL > $' as a null shell variable of '$CONTACTEMAIL' followed by a literal > '$' so you end up with the results your seeing (you could see this by > enabling debug mode). The question is why nagios isn't doing the > substitution properly. The most likely cause is that the macro is > mistyped but that really doesn't look like the case. > > Actually, now that I'm reviewing your original posting. I'm exactly > sure that nagios isn't performing the subtitution at all. In your host > template (and probably service template), you specify the notification > commands as event_handlers. This is not a correct use of event > handlers as the $CONTACTEMAIL$ macro (and others) are not valid for > them. Disable event_handler_enabled and remove event_handler and you > should be fixed. The notifications will still go out through the > normal notification process. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 glowe at sbcglobal.net Fri Jan 9 18:30:14 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Fri, 9 Jan 2009 09:30:14 -0800 (PST) Subject: Elevated alerts Message-ID: <435145.72943.qm@web81808.mail.mud.yahoo.com> Ok. That helps. I'll replace the @MAIL_PROG@ with /bin/mail. Then where is $CONTACTEMAIL$ defined, so I can add a new variable which I think will be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command definitions? ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Friday, January 9, 2009 9:18:43 AM Subject: Re: [Nagios-users] Elevated alerts You wouldn't need to modify the notify-by-pager command you already have setup. After all, you are still sending mail to an email address. I don't know why your command definitions have @MAIL_PROG at . That must be defined someplace else in another config file if it's working. If that command isn't working, simply replace that variable string with /bin/mail. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/09/2009 10:52 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Thank you for the response. I like your idea. I think I need to embellish it some. A couple of questions about it. In our environment, I think I only have to make one change. Here's what currently happens. A regular email goes to user at company.com, but pages go to user at pager.company.com. So I thought I would setup the paging like this (at least for starters): The notify-by-email works just fine. Don't want to mess with this one. # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Here's a notfiy-by-pager that I would like to use. Just a clone of the notify-by-email, but modified for pages. # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } How would I modify notify-by-pager to send to the "user at pager.company.com" we use? I'm asking because I only see @MAIL_PROG@, no /bin/mail anywhere, like in the notify-host-by-email and notify-service-by-email definitions. I think I would then use the two different contacts for the same person as you said in your email. Does this sound like reasonable? ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Thursday, January 8, 2009 4:33:30 PM Subject: Re: [Nagios-users] Elevated alerts Grant Lowe wrote: >Hi All, > >I'm trying to figure out how an elevated alert would work. This one isn't exactly clear to me from the documentation. So say, I have an alert that >gets elevated, from a "WARNING" alert to a "CRITICAL" alert, how can you get Nagios to send off something say to a pager as well as email? I think I >have my setups good now, and I'm seeing states of WARNING, CRITICAL, and RECOVERY in email, but I'm not sure how to implement these changes. Thanks! The easiest thing to do is just to send all alerts to both an email and pager/phone. If you want to send warnings to just email addresses, and then send critical alerts to both the email and pager address for a particular contact, then one way to do that would be to create two contacts for the same person. In the first contact (for warnings) entry, you'd have something like: service_notification_options w,u,,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email In the *critical* contact entry, you'd have: service_notification_options u,c,r host_notification_options d,u,r service_notification_commands notify-by-epager host_notification_commands host-notify-by-epager service_notification_commands notify-by-email host_notification_commands host-notify-by-email Then you'd make both contacts the member of the same contact group. In the above example, when a service goes to warning state, the contact would be sent an email only. When the service goes to critical, the contact would get both an email and a pager/phone alert. In the above scenario, the contact would get duplicate emails for unreachable and recovery states, so you may want to adjust that to your needs. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Fri Jan 9 18:46:03 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 9 Jan 2009 11:46:03 -0600 Subject: Elevated alerts In-Reply-To: <435145.72943.qm@web81808.mail.mud.yahoo.com> References: <435145.72943.qm@web81808.mail.mud.yahoo.com> Message-ID: If the email address begins with a number, then use $CONTACTPAGER$ string. I don't know exactly where those variables are defined, but when sending email to an address that begins with a number (or perhaps contains an all-numeric string before the @), I've found that the notification is not sent if using a command definition that uses CONTACTEMAIL. In the contacts config, use command definitions that have CONTACTEMAIL when emailing a 'normal' email address. Use CONTACTPAGER when emailing a phone or pager email address where the user string is numeric. I'm sure the difference is explained in the documentation or mailling list archives. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/09/2009 11:30 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Ok. That helps. I'll replace the @MAIL_PROG@ with /bin/mail. Then where is $CONTACTEMAIL$ defined, so I can add a new variable which I think will be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command definitions? ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 mshanker at usgs.gov Fri Jan 9 19:50:29 2009 From: mshanker at usgs.gov (Matthew Shanker) Date: Fri, 09 Jan 2009 11:50:29 -0700 Subject: Servicegroups bug? Message-ID: <49679C75.9050805@usgs.gov> I'm running Nagios 3.0.5 and I'm having some inconsistent behaviour with servicegroups. If I use the following: define service { use important-service hostgroup_name linux-servers,linux-desktops,!legacy-systems service_description NFS check_command check_nfs_by_ssh servicegroups file-shares } Then the servicegroup file-shares does not show up in my web interface. However if instead of using hostgroups to define the service I create a service entry for each host in those groups like the following: define service { use important-service host_name agds1 service_description NFS check_command check_nfs_by_ssh servicegroups file-shares } then the servicegroup appears in the web interface with all of the hosts in it. I just don't why there should be a difference between these two approaches. Obviously I would prefer to use the first method so I do not need to maintain a a service entry for each host. Matt ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 sosagabriel at gmail.com Fri Jan 9 20:29:48 2009 From: sosagabriel at gmail.com (Gabriel Sosa) Date: Fri, 9 Jan 2009 17:29:48 -0200 Subject: Next Scheduled Check tooo far away Message-ID: <4498aded0901091129l7c97e812h6deb91335a92700d@mail.gmail.com> Hi folks I'm using the check_mysql_perf plugin to check the mysql replica status. today the replica had broken but nagios didn't alert me, so I went to the panel to check and realized that for this service the "Next Scheduled Check" will be on 2009-01-09 14:19:00 all config are by default, and I know all other services such as SMTP, HTTPD, etc (I'm monitoring 100 services between 10 servers) are checked very often (I mean not every 4 days). the only "different" stuff is that I have a gap in the time definition to be able to stop the replica and make a db backup any idea? these are my definitions: define command{ command_name check_slave_lag command_line $USER1$/check_mysql_perf -m slave-lag -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -u #### -p ####### } and my service definition define service{ use generic-service ; Name of service template to use host_name myhost service_description Slave Lag check_command check_slave_lag!300!500 notifications_enabled 1 normal_check_interval 2 check_period 24x7_120m4AM } define timeperiod { timeperiod_name 24x7_120m4AM alias All time 120 minutes Downtime Window Starting at 4am sunday 00:00-04:00,06:00-24:00 monday 00:00-04:00,06:00-24:00 tuesday 00:00-04:00,06:00-24:00 wednesday 00:00-04:00,06:00-24:00 thursday 00:00-04:00,06:00-24:00 friday 00:00-04:00,06:00-24:00 saturday 00:00-04:00,06:00-24:00 } -- Los sabios buscan la sabidur?a; los necios creen haberla encontrado. Gabriel Sosa ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ian at griggle.net Fri Jan 9 21:43:03 2009 From: ian at griggle.net (Ian Orszaczki) Date: Sat, 10 Jan 2009 07:43:03 +1100 Subject: accessing a remote kannel sms gateway for a Nagios box In-Reply-To: <60b5635b0901090350n6aacaa97x8aec6b7f31f29ca3@mail.gmail.com> References: <60b5635b0901090350n6aacaa97x8aec6b7f31f29ca3@mail.gmail.com> Message-ID: <2bb4107c0901091243i94b6c1ata3ee9145bcdbacf8@mail.gmail.com> Hi, one way (the way we use) is to have Nagios call an SMS perl (or php, python, etc) script which posts to the webpage. On Fri, Jan 9, 2009 at 10:50 PM, KK CHN wrote: > How can I configure my nagios box to send sms through a kannel sms > gateway setup which is on another PC. > > Note : both nagios & kannel box in the same network.. > > > from My nagios box , I can send sms through web browser (here > http://10.18.1.10 is the kannel gateway box ) > > > http://10.18.1.10:13013/cgi-bin/sendsms?username=myuser_name&password=my_PASS&to=26857&text=serverdown > > I can send this message(eg:serverdown) from my nagios box's firefox > browser to my cellphone (I am geeting message in my cellphone) > > But for nagios to do this what config I have to write in config file ?can > anyone help me how can I do it for nagios ? > > > > Thanks in advance > kkchn > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 ibloodyhatespam at gmail.com Fri Jan 9 23:48:56 2009 From: ibloodyhatespam at gmail.com (ibloodyhatespam at gmail.com) Date: Fri, 9 Jan 2009 23:48:56 +0100 Subject: check_ping stuck on 'PENDING' Message-ID: <19d401c972ac$74df1c50$5e9d54f0$@com> As per the subject... Nagios 3.0.6 and it happens both to lan and external servers. Temporarily disabling the firewall has no effect. Manually forcing a check update results in the 'service check scheduled for' notification being bumped to current time + 5 mins, no actual check and the check status perpetually remains "PENDING". The odd thing is that the default host check is also ping, and that one seems to work perfectly for nine hosts. Manually running check_ping as the nagios user also gives a normal result (PING OK etc), albeit after about half a second. I run all kinds of checks on said hosts (ssh, ide_ smart, disk_smb, http, imap etc), both directly and through NRPE, and except for check_ping on all hosts, they work fine. As ping's a very basic check and as far as I can see everything should work normally, right now I'm stumped. Any idea what's going on here? Kind regards, Michiel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 r.yeo at utah.edu Sat Jan 10 00:00:52 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Fri, 09 Jan 2009 16:00:52 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: <19d401c972ac$74df1c50$5e9d54f0$@com> References: <19d401c972ac$74df1c50$5e9d54f0$@com> Message-ID: Having the same problem with different services then check_ping. The states are stuck in PENDING and even a manual force check doesn?t help. Some boxes are returning fine (they are included in the same service definition), but others are not. Command line always works. I have tried clearing the spool directory and removing retention.dat with no success.. Also, no information in the debug file as the commands are never polled. If I have any success I?ll be sure to post, but I am beginning to wonder if this is a problem with Nagios 3.0.x? Since a roll-back to nagios 2 fixes the problem. Rob Yeo On 1/9/09 3:48 PM, "ibloodyhatespam at gmail.com" wrote: > As per the subject... Nagios 3.0.6 and it happens both to lan and external > servers. > > Temporarily disabling the firewall has no effect. Manually forcing a check > update results in the 'service check scheduled for' notification being bumped > to current time + 5 mins, no actual check and the check status perpetually > remains "PENDING". > > The odd thing is that the default host check is also ping, and that one seems > to work perfectly for nine hosts. > Manually running check_ping as the nagios user also gives a normal result > (PING OK etc), albeit after about half a second. > > I run all kinds of checks on said hosts (ssh, ide_ smart, disk_smb, http, imap > etc), both directly and through NRPE, and except for check_ping on all hosts, > they work fine. > > As ping?s a very basic check and as far as I can see everything should work > normally, right now I?m stumped. Any idea what's going on here? > > Kind regards, > Michiel > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Sat Jan 10 00:04:44 2009 From: marc at ena.com (Marc Powell) Date: Fri, 9 Jan 2009 17:04:44 -0600 Subject: check_ping stuck on 'PENDING' In-Reply-To: <19d401c972ac$74df1c50$5e9d54f0$@com> References: <19d401c972ac$74df1c50$5e9d54f0$@com> Message-ID: <5118BC25-9E11-4A31-AC27-3072D57CC220@ena.com> On Jan 9, 2009, at 4:48 PM, wrote: > As per the subject... Nagios 3.0.6 and it happens both to lan and > external servers. > As ping?s a very basic check and as far as I can see everything > should work normally, right now I?m stumped. Any idea what's going > on here? Actual config information is necessary otherwise we're just guessing in the dark. Nagios doesn't think it's supposed to perform a check. Is the timeperiod right? host definition, service definition (and templates for both if used) and timeperiod definition would be a good start. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Sat Jan 10 00:11:03 2009 From: marc at ena.com (Marc Powell) Date: Fri, 9 Jan 2009 17:11:03 -0600 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> Message-ID: <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> On Jan 9, 2009, at 11:26 AM, alex alex wrote: > Hi again, > I've just disabled events handler. I think youwere right. The dead > emails were from events handler, not from notifications. No new > notifications failed in letter.dead It seems that in event handler, > the $CONTACTEMAIL$ is not set. > But now, even stranger, no notification is sent. I mean I enabled > debug in nagios.cfg and the result is: > [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt > ** Host: 'h > ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu > Jan 1 > 02:00:00 1970 > [1231482452.132086] [032.0] [pid=16674] Notification viability test > passed. > [1231482452.132104] [032.1] [pid=16674] Current notification number: > 1 (incremen > ted) > [1231482452.132127] [032.1] [pid=16674] Host notification will NOT > be escalated. > [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for > host to notif > ication list. > [1231482452.132504] [032.0] [pid=16674] No contacts were notified. > Next possibl > e notification time: Thu Jan 1 02:00:00 1970 > [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified. > Now more than ever I don't understand why no contacts were notified! > It can mean that normal contacts doesn't exist? > From a previous e-mail -- define contact { contact_name nagios use generic-contact alias nagios email nagios at localhost } define contact { name generic host_notification_period 24din2_7din7 service_notification_period 24din2_7din7 host_notification_options d,u,r,n,f service_notification_options u,c,w,r,n,f host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email register 0 } Your contact 'nagios' uses a template named 'generic-contact'. Do the host and service_notification_periods in that template include the time when the notification above was supposed to go out? The contact template you provided is named 'generic' not 'generic-contact' so there must be another template that needs to be looked at. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Sat Jan 10 00:13:29 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Fri, 09 Jan 2009 16:13:29 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: <5118BC25-9E11-4A31-AC27-3072D57CC220@ena.com> References: <5118BC25-9E11-4A31-AC27-3072D57CC220@ena.com> Message-ID: This is an example config for one of the services. Please let me know if I am missing any info. # Finearts Nagios 2 Server define host{ host_name Dgh_000_012_FairUse alias Finearts Nagios 2 Server (fairuse.music.utah.edu) address 155.97.55.12 use server-high-priority hostgroups Dgh_Servers parents Dgh_Switch_02 icon_image mac40.png statusmap_image mac40.gd2 } # '003 DGH Servers' server group definition define hostgroup{ hostgroup_name Dgh_Servers alias DGH_SERVERS } # 'check_nrpe' command definition define command { command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u }' define service{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art _104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check CPU Load use medium-high-priority-service check_command check_nrpe!check_load } define service{ name medium-high-priority-service use generic-service check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 2 contact_groups nagiosadmin notification_options c,r,f notification_interval 180 notification_period extendedworkhours register 0 } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 register 0 } # 'extendedworkhours' timeperiod definition define timeperiod{ timeperiod_name extendedworkhours alias Extended Work Hours sunday 10:00-22:00 monday 07:00-22:00 tuesday 07:00-22:00 wednesday 07:00-22:00 thursday 07:00-22:00 friday 07:00-22:00 saturday 10:00-22:00 } Nagios 3.0.6 on 10.4.11 OSX. The service check is stuck in pending for the DGH server, and is returning fine for 2 of the NMW servers, but not all of them. Thanks, Rob Yeo On 1/9/09 4:04 PM, "Marc Powell" wrote: > > On Jan 9, 2009, at 4:48 PM, > > wrote: > >> As per the subject... Nagios 3.0.6 and it happens both to lan and >> external servers. > >> As ping?s a very basic check and as far as I can see everything >> should work normally, right now I?m stumped. Any idea what's going >> on here? > > Actual config information is necessary otherwise we're just guessing > in the dark. Nagios doesn't think it's supposed to perform a check. Is > the timeperiod right? > > host definition, service definition (and templates for both if used) > and timeperiod definition would be a good start. > > -- > Marc > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Sat Jan 10 00:34:41 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 9 Jan 2009 17:34:41 -0600 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: I don't see a service definition for 'server-high-priority', nor do I see where you are employing a check_ping operation, nor have you included the check_period config for 24x7. James Moseley Robert Yeo To 01/09/2009 05:13 nagios-users Mailinglist PM cc Subject Re: [Nagios-users] check_ping stuck on 'PENDING' This is an example config for one of the services. Please let me know if I am missing any info. # Finearts Nagios 2 Server define host{ host_name Dgh_000_012_FairUse alias Finearts Nagios 2 Server (fairuse.music.utah.edu) address 155.97.55.12 use server-high-priority hostgroups Dgh_Servers parents Dgh_Switch_02 icon_image mac40.png statusmap_image mac40.gd2 } # '003 DGH Servers' server group definition define hostgroup{ hostgroup_name Dgh_Servers alias DGH_SERVERS } # 'check_nrpe' command definition define command { command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u }' define service{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art _104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check CPU Load use medium-high-priority-service check_command check_nrpe!check_load } define service{ name medium-high-priority-service use generic-service check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 2 contact_groups nagiosadmin notification_options c,r,f notification_interval 180 notification_period extendedworkhours register 0 } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 register 0 } # 'extendedworkhours' timeperiod definition define timeperiod{ timeperiod_name extendedworkhours alias Extended Work Hours sunday 10:00-22:00 monday 07:00-22:00 tuesday 07:00-22:00 wednesday 07:00-22:00 thursday 07:00-22:00 friday 07:00-22:00 saturday 10:00-22:00 } Nagios 3.0.6 on 10.4.11 OSX. The service check is stuck in pending for the DGH server, and is returning fine for 2 of the NMW servers, but not all of them. Thanks, Rob Yeo On 1/9/09 4:04 PM, "Marc Powell" wrote: > > On Jan 9, 2009, at 4:48 PM, > > wrote: > >> As per the subject... Nagios 3.0.6 and it happens both to lan and >> external servers. > >> As ping?s a very basic check and as far as I can see everything >> should work normally, right now I?m stumped. Any idea what's going >> on here? > > Actual config information is necessary otherwise we're just guessing > in the dark. Nagios doesn't think it's supposed to perform a check. Is > the timeperiod right? > > host definition, service definition (and templates for both if used) > and timeperiod definition would be a good start. > > -- > Marc > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ibloodyhatespam at gmail.com Sat Jan 10 01:22:32 2009 From: ibloodyhatespam at gmail.com (ibloodyhatespam at gmail.com) Date: Sat, 10 Jan 2009 01:22:32 +0100 Subject: check_ping stuck on 'PENDING' In-Reply-To: <5118BC25-9E11-4A31-AC27-3072D57CC220@ena.com> References: <19d401c972ac$74df1c50$5e9d54f0$@com> <5118BC25-9E11-4A31-AC27-3072D57CC220@ena.com> Message-ID: <1a1e01c972b9$87a9acd0$96fd0670$@com> Funny thing is doing a new round of digging led me to the cause, thanks for that :) There seems to be a problem with service dependencies, disabling that cfg results in working checks again. Guess I'll have to take that config file apart tomorrow. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Saturday, January 10, 2009 0:05 To: nagios-users Mailinglist Subject: Re: [Nagios-users] check_ping stuck on 'PENDING' On Jan 9, 2009, at 4:48 PM, wrote: > As per the subject... Nagios 3.0.6 and it happens both to lan and > external servers. > As ping's a very basic check and as far as I can see everything should > work normally, right now I'm stumped. Any idea what's going on here? Actual config information is necessary otherwise we're just guessing in the dark. Nagios doesn't think it's supposed to perform a check. Is the timeperiod right? host definition, service definition (and templates for both if used) and timeperiod definition would be a good start. -- Marc ---------------------------------------------------------------------------- -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jon at netdork.net Sat Jan 10 05:01:08 2009 From: jon at netdork.net (Jon Angliss) Date: Fri, 09 Jan 2009 22:01:08 -0600 Subject: nagios not sending sms through gnokii References: <543c8f860901052223x130c9a06j35082a6a50061f09@mail.gmail.com> <543c8f860901081810q729f1e5j86d67dc6dea0eaa6@mail.gmail.com> <543c8f860901090117n2e9f167eh558af1ea9cc2754d@mail.gmail.com> Message-ID: On Fri, 9 Jan 2009 17:17:04 +0800, "fernando renegado" wrote: >Hi Jon, >I just followed the following: > >i did "su nagios", ran the script and the errors popped out: > >~# su nagios >$ /usr/bin/sms_gnokii >GNOKII Version 0.6.27 >Couldn't read /home/nagios/.gnokiirc config file. >Couldn't read /home/nagios/.gnokiirc config file. >Couldn't read /etc/gnokiirc config file. >Couldn't read /etc/gnokiirc config file. >Config file cannot be read. > >I copied .gnokiirc from /root to /home/nagios and did chown nagios:nagios on >it. > >Further, gnokii tries to send the message but it ends in another permission >related error: >Connecting >Serial device: opening device USB >Ignoring extra header, type 171, length 5 >Found FBUS interface >Can't set configuration: -1 >Can't claim control interface: -1 >Couldn't open PHONET device: Operation not permitted >Error in link initialisation: 1 >Telephone interface init failed: Command failed. >Quitting. >Command failed. > >Furthermore, i tried the following: > >chown -R nagios:nagios /dev/bus/usb/* >chown -R nagios:nagios /dev/ttyACM0 >and >chmod 750 -R /dev/bus/usb/* >chmod 750 /dev/ttyACM0 You shouldn't need to do this. Find out the owner and group of those, and you can probably drop nagios in that group, unless of course it's root. >then I tried /usr/bin/gnokii --getnetworkinfo > >and It works without error. Now I restarted nagios. NO SMS SENT only Email >notification. Are you seeing log entries that say it is triggering the SMS notification command? Show us your command, service, and host commands. -- Jon Angliss ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Sat Jan 10 22:01:08 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Sat, 10 Jan 2009 13:01:08 -0800 (PST) Subject: Elevated alerts Message-ID: <387966.16896.qm@web81803.mail.mud.yahoo.com> James, I've got the changes input as we've talked about. But I'm not getting pages. I searched the Nagios log and no pages. Any ideas? I'm at a loss to why. For what it's worth, here's my contact definitions: define contact{ contact_name glowe alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 # Original line: host_notification_options d,u,r,f,s, host_notification_options d,u,r service_notification_options w,u,r host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email email glowe at company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 } define contact{ contact_name glowe1 alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s, service_notification_options w,u,r,f,s, host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager email glowe at pager.company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 # Added pager line 01/09/2009 pager glowe at pager.company.com } ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Friday, January 9, 2009 9:46:03 AM Subject: Re: [Nagios-users] Elevated alerts If the email address begins with a number, then use $CONTACTPAGER$ string. I don't know exactly where those variables are defined, but when sending email to an address that begins with a number (or perhaps contains an all-numeric string before the @), I've found that the notification is not sent if using a command definition that uses CONTACTEMAIL. In the contacts config, use command definitions that have CONTACTEMAIL when emailing a 'normal' email address. Use CONTACTPAGER when emailing a phone or pager email address where the user string is numeric. I'm sure the difference is explained in the documentation or mailling list archives. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/09/2009 11:30 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Ok. That helps. I'll replace the @MAIL_PROG@ with /bin/mail. Then where is $CONTACTEMAIL$ defined, so I can add a new variable which I think will be $CONTACTPAGER$, to replace the $CONTACTEMAIL$ in the command definitions? ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Sun Jan 11 01:55:54 2009 From: marc at ena.com (Marc Powell) Date: Sat, 10 Jan 2009 18:55:54 -0600 Subject: Elevated alerts In-Reply-To: <387966.16896.qm@web81803.mail.mud.yahoo.com> References: <387966.16896.qm@web81803.mail.mud.yahoo.com> Message-ID: <20F07481-6E39-4CD0-87FB-632E081C7463@ena.com> On Jan 10, 2009, at 3:01 PM, Grant Lowe wrote: > James, > > I've got the changes input as we've talked about. But I'm not > getting pages. I searched the Nagios log and no pages. Any ideas? > I'm at a loss to why. For what it's worth, here's my contact > definitions: > > define contact{ > host_notification_options d,u,r > service_notification_options w,u,r What kind of notification are you expecting, a service critical? You might need to determine the meaning of these two directives from the documentation. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Sun Jan 11 02:18:29 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sat, 10 Jan 2009 19:18:29 -0600 Subject: Elevated alerts In-Reply-To: <387966.16896.qm@web81803.mail.mud.yahoo.com> References: <387966.16896.qm@web81803.mail.mud.yahoo.com> Message-ID: In the 'email' contact config, you need all the service notification options: w,c,u,r,f,s This is because you want warning and critical alerts sent to email. In the 'paging' config, gid rid of the following lines: host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager # Added pager line 01/09/2009 pager glowe at pager.company.com Then change the service notifications to: c,u,r,f,s The way you have it now, the paging contact will not get critical alerts. If your paging email address has a text username (glowe), you need to use the notify-by-email arguments. If the user is numerical, then yes, you can use the notify-by-pager commands. I mentioned this in my last email. I've never researched it, for I've found that if I have a non-numerical user in an email address and I use the notify-by-pager default CONTACTPAGER macro, the notification is not sent. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/10/2009 03:01 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts define contact{ contact_name glowe1 alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s, service_notification_options w,u,r,f,s, host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager email glowe at pager.company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 # Added pager line 01/09/2009 pager glowe at pager.company.com } ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Mon Jan 12 01:21:15 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Sun, 11 Jan 2009 16:21:15 -0800 (PST) Subject: Elevated alerts Message-ID: <894745.12862.qm@web81805.mail.mud.yahoo.com> Hi James, I think I understand it a little bit better. As far as numerical users, do you mean when a page is sent to a paging service, somehow, the user name is converted to, a numerical user that the paging service uses? That makes sense I guess because you have to have a phone number to call for the page. As far as the notification tags, do these look correct, with what I'm trying to do? define contact{ # Email config ... host_notification_options d,u,r,f,s service_notification_options w,c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email ... } And the other: define contact{ # Paging config ... host_notification_options d,u,r,f,s service_notification_options c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email # host_notification_commands notify-host-by-pager # service_notification_commands notify-service-by-pager ... } Thanks for hanging in there with me! ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Saturday, January 10, 2009 5:18:29 PM Subject: Re: [Nagios-users] Elevated alerts In the 'email' contact config, you need all the service notification options: w,c,u,r,f,s This is because you want warning and critical alerts sent to email. In the 'paging' config, gid rid of the following lines: host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager # Added pager line 01/09/2009 pager glowe at pager.company.com Then change the service notifications to: c,u,r,f,s The way you have it now, the paging contact will not get critical alerts. If your paging email address has a text username (glowe), you need to use the notify-by-email arguments. If the user is numerical, then yes, you can use the notify-by-pager commands. I mentioned this in my last email. I've never researched it, for I've found that if I have a non-numerical user in an email address and I use the notify-by-pager default CONTACTPAGER macro, the notification is not sent. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/10/2009 03:01 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts define contact{ contact_name glowe1 alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s, service_notification_options w,u,r,f,s, host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager email glowe at pager.company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 # Added pager line 01/09/2009 pager glowe at pager.company.com } ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Mon Jan 12 02:01:24 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Sun, 11 Jan 2009 17:01:24 -0800 (PST) Subject: Elevated alerts Message-ID: <976603.11683.qm@web81801.mail.mud.yahoo.com> Hi Marc, Thanks. Yes, I'm trying to setup a service critical. I hope I've got it. In the email I sent to James, I think I got it right, but it never hurts to have a second set of eyes, does it? :-> ----- Original Message ---- From: Marc Powell To: nagios-users Mailinglist Sent: Saturday, January 10, 2009 4:55:54 PM Subject: Re: [Nagios-users] Elevated alerts On Jan 10, 2009, at 3:01 PM, Grant Lowe wrote: > James, > > I've got the changes input as we've talked about. But I'm not > getting pages. I searched the Nagios log and no pages. Any ideas? > I'm at a loss to why. For what it's worth, here's my contact > definitions: > > define contact{ > host_notification_options d,u,r > service_notification_options w,u,r What kind of notification are you expecting, a service critical? You might need to determine the meaning of these two directives from the documentation. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 02:38:33 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sun, 11 Jan 2009 19:38:33 -0600 Subject: Elevated alerts In-Reply-To: <894745.12862.qm@web81805.mail.mud.yahoo.com> References: <894745.12862.qm@web81805.mail.mud.yahoo.com> Message-ID: You've got it backwards below. In the original email, you wanted only warnings to go to email and warnings and critical alerts to go the 'pager' address. Remove the 'c' from the service notification options for the email config and add a 'w' for the paging config. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/11/2009 06:21 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Hi James, I think I understand it a little bit better. As far as numerical users, do you mean when a page is sent to a paging service, somehow, the user name is converted to, a numerical user that the paging service uses? That makes sense I guess because you have to have a phone number to call for the page. As far as the notification tags, do these look correct, with what I'm trying to do? define contact{ # Email config ... host_notification_options d,u,r,f,s service_notification_options w,c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email ... } And the other: define contact{ # Paging config ... host_notification_options d,u,r,f,s service_notification_options c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email # host_notification_commands notify-host-by-pager # service_notification_commands notify-service-by-pager ... } Thanks for hanging in there with me! ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Saturday, January 10, 2009 5:18:29 PM Subject: Re: [Nagios-users] Elevated alerts In the 'email' contact config, you need all the service notification options: w,c,u,r,f,s This is because you want warning and critical alerts sent to email. In the 'paging' config, gid rid of the following lines: host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager # Added pager line 01/09/2009 pager glowe at pager.company.com Then change the service notifications to: c,u,r,f,s The way you have it now, the paging contact will not get critical alerts. If your paging email address has a text username (glowe), you need to use the notify-by-email arguments. If the user is numerical, then yes, you can use the notify-by-pager commands. I mentioned this in my last email. I've never researched it, for I've found that if I have a non-numerical user in an email address and I use the notify-by-pager default CONTACTPAGER macro, the notification is not sent. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/10/2009 03:01 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts define contact{ contact_name glowe1 alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s, service_notification_options w,u,r,f,s, host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager email glowe at pager.company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 # Added pager line 01/09/2009 pager glowe at pager.company.com } ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 alessandro.usai at switch.ch Mon Jan 12 11:40:15 2009 From: alessandro.usai at switch.ch (Alessandro Usai) Date: Mon, 12 Jan 2009 11:40:15 +0100 Subject: passive checks and possible actions in case of stale information Message-ID: <496B1E0F.7030306@switch.ch> Hi all, Reading through the docs about passive checks and the possible actions in case of stale information, it seems it is possible to turn on a "freshness" functionality so that after a certain timeout active checks are used instead. In my case this may not necessarily be feasible as the nodes to monitor are remote ones behind a firewall: is it possible instead to just trigger (email) an alarm when the information is found to be stale? I don't need much more as I can then ping the maintainers of the remote nodes about a possible problem.... Thanks in advance for any info you may provide Cheers Alessandro -- SWITCH Serving Swiss Universities -------------------------- Dr. Alessandro Usai P.O. Box, 8021 Zurich, Switzerland phone +41 44 268 15 72, fax +41 44 268 15 68 alessandro.usai at switch.ch, http://www.switch.ch ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 fdm.alex at gmail.com Mon Jan 12 12:44:21 2009 From: fdm.alex at gmail.com (alex alex) Date: Mon, 12 Jan 2009 13:44:21 +0200 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> Message-ID: Hi again, Yes, there is another template named generic-contact but it's identical to the generic (excepting the name). But here's a good news: I have some notifications (finnaly, it seems that the notification works). And the bad news is that I get only emails like: " Return-Path: Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.14.1/8.14.1) with ESMTP id n0CAArp4003801 for ; Mon, 12 Jan 2009 12:10:53 +0200 Received: (from nagios at localhost) by localhost.localdomain (8.14.1/8.14.1/Submit) id n0CAArxq003799 for nagios at localhost; Mon, 12 Jan 2009 12:10:53 +0200 Date: Mon, 12 Jan 2009 12:10:53 +0200 From: nagios at localhost.localdomain Message-Id: <200901121010.n0CAArxq003799 at localhost.localdomain> To: nagios at localhost.localdomain Subject: ** $ Host Alert: host1 is UP ** ***** Nagios ***** Notification: FLAPPINGSTOP Host: host1 State: UP Address: 172.30.129.67 Info: PING OK - Packet loss = 0%, RTA = 11.74 ms Date/Time: Sun Jan 11 15:10:11 EET 2009" Or for a service " Subject: ** FLAPPINGSTOP Service Alert: host1/is_alive is OK ** ***** Nagios ***** Notification Type: FLAPPINGSTOP Service: is_alive Host: host1 Address: 172.24.14.242 State: OK Date/Time: Mon Jan 12 12:10:53 EET 2009 Additional Info: PING OK - Packet loss = 0%, RTA = 131.99 ms " Is it the right behaviour (to put flapping instead up/down if the flapping is enabled) ? The thresholds for flapp are set at 25% and 50%. Anyhow, some notifications are sent and that's the main good news. I think from now only some small changes must be done in my configs to tune the uinstallation. Thank you again, Alex On Sat, Jan 10, 2009 at 1:11 AM, Marc Powell wrote: > > On Jan 9, 2009, at 11:26 AM, alex alex wrote: > > > Hi again, > > I've just disabled events handler. I think youwere right. The dead > > emails were from events handler, not from notifications. No new > > notifications failed in letter.dead It seems that in event handler, > > the $CONTACTEMAIL$ is not set. > > But now, even stranger, no notification is sent. I mean I enabled > > debug in nagios.cfg and the result is: > > [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt > > ** Host: 'h > > ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu > > Jan 1 > > 02:00:00 1970 > > [1231482452.132086] [032.0] [pid=16674] Notification viability test > > passed. > > [1231482452.132104] [032.1] [pid=16674] Current notification number: > > 1 (incremen > > ted) > > [1231482452.132127] [032.1] [pid=16674] Host notification will NOT > > be escalated. > > [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for > > host to notif > > ication list. > > [1231482452.132504] [032.0] [pid=16674] No contacts were notified. > > Next possibl > > e notification time: Thu Jan 1 02:00:00 1970 > > [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified. > > Now more than ever I don't understand why no contacts were notified! > > It can mean that normal contacts doesn't exist? > > > > From a previous e-mail -- > > define contact { > contact_name nagios > use generic-contact > alias nagios > email nagios at localhost > } > > define contact { > name generic > host_notification_period 24din2_7din7 > service_notification_period 24din2_7din7 > host_notification_options d,u,r,n,f > service_notification_options u,c,w,r,n,f > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register 0 > } > > Your contact 'nagios' uses a template named 'generic-contact'. Do the > host and service_notification_periods in that template include the > time when the notification above was supposed to go out? The contact > template you provided is named 'generic' not 'generic-contact' so > there must be another template that needs to be looked at. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 marc at ena.com Mon Jan 12 14:46:42 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 07:46:42 -0600 Subject: passive checks and possible actions in case of stale information In-Reply-To: <496B1E0F.7030306@switch.ch> References: <496B1E0F.7030306@switch.ch> Message-ID: <254932F7-AE36-4B53-AA5A-0CB56DF33B2A@ena.com> On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote: > firewall: is it possible instead to just trigger (email) > an alarm when the information is found to be stale? Yes, the Example given in the documentation is exactly this solution... -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 12 14:49:43 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 07:49:43 -0600 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> Message-ID: <5939124B-E166-4B60-994A-0A7F244836E6@ena.com> On Jan 12, 2009, at 5:44 AM, alex alex wrote: > Notification: FLAPPINGSTOP > Host: host1 > State: UP > Or for a service > Notification Type: FLAPPINGSTOP > > Service: is_alive > Host: host1 > Is it the right behaviour (to put flapping instead up/down if the > flapping is enabled) ? Yes, if the host or service were in a flapping state, which these were. flapping is different than a normal up/down and that notification type is provided should you want or need to make that distinction. If you'd rather just receive up/down notifications, disable notifications for flapping. > Anyhow, some notifications are sent and that's the main good news. I > think from now only some small changes must be done in my configs to > tune the uinstallation. Good =) -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Mon Jan 12 15:57:00 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Mon, 12 Jan 2009 07:57:00 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: The operation I am employing is Check CPU Load but the symptoms were the same as Michiel's check ping. Hopefully all the information is there now. Thanks! Rob Yeo # Finearts Nagios 2 Server define host{ host_name Dgh_000_012_FairUse alias Finearts Nagios 2 Server address 155.xxx.xxx.xxx use server-high-priority hostgroups Dgh_Servers parents Dgh_Switch_02 icon_image mac40.png statusmap_image mac40.gd2 } # '003 DGH Servers' server group definition define hostgroup{ hostgroup_name Dgh_Servers alias DGH_SERVERS } # 'check_nrpe' command definition define command { command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u }' define service{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art _104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check CPU Load use medium-high-priority-service check_command check_nrpe!check_load } define servicedependency{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check NRPE dependent_hostgroup_name Nmw_Servers,Wi_Servers dependent_host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 dependent_service_description Check CPU Load,Check Free Space,Current Users,Total Processes,Zombie Processes execution_failure_criteria w,u,c,p notification_failure_criteria w,u,c,p } define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define host{ name server-high-priority use generic-host check_period 24x7 check_interval 2 max_check_attempts 2 check_command check-host-alive notification_period 24x7 notification_interval 120 notification_options d,r,f contact_groups nagiosadmin register 0 } define service{ name medium-high-priority-service use generic-service check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 2 contact_groups nagiosadmin notification_options c,r,f notification_interval 180 notification_period extendedworkhours register 0 } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 register 0 } # 'extendedworkhours' timeperiod definition define timeperiod{ timeperiod_name extendedworkhours alias Extended Work Hours sunday 10:00-22:00 monday 07:00-22:00 tuesday 07:00-22:00 wednesday 07:00-22:00 thursday 07:00-22:00 friday 07:00-22:00 saturday 10:00-22:00 } # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } Nagios 3.0.6 on 10.4.11 OSX. The service check is stuck in pending for the DGH server, and is returning fine for 2 of the NMW servers, but not all of them. Thanks, Rob Yeo On 1/9/09 4:34 PM, "jmoseley at corp.xanadoo.com" wrote: > I don't see a service definition for 'server-high-priority', nor do I see > where you are employing a check_ping operation, nor have you included the > check_period config for 24x7. > > > James Moseley > > > > > > Robert Yeo > > To > 01/09/2009 05:13 nagios-users Mailinglist > PM > > cc > > Subject > Re: [Nagios-users] check_ping stuck > on 'PENDING' > > > > > > > > > > > > This is an example config for one of the services. Please let me know if I > am missing any info. > > # Finearts Nagios 2 Server > define host{ > > host_name Dgh_000_012_FairUse > alias Finearts Nagios 2 Server (fairuse.music.utah.edu) > address 155.97.55.12 > > use server-high-priority > hostgroups Dgh_Servers > parents Dgh_Switch_02 > icon_image mac40.png > statusmap_image mac40.gd2 > } > > # '003 DGH Servers' server group definition > define hostgroup{ > hostgroup_name Dgh_Servers > alias DGH_SERVERS > } > > # 'check_nrpe' command definition > define command { > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u > }' > > define service{ > hostgroup_name Nmw_Servers,Wi_Servers > host_name > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art > > _104_014_FilmServer,!Nmw_104_092_Nagios3 > > service_description Check CPU Load > use medium-high-priority-service > check_command check_nrpe!check_load > } > > define service{ > name medium-high-priority-service > use generic-service > check_period 24x7 > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 2 > contact_groups nagiosadmin > notification_options c,r,f > notification_interval 180 > notification_period extendedworkhours > register 0 > } > > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 0 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > register 0 > } > > # 'extendedworkhours' timeperiod definition > define timeperiod{ > timeperiod_name extendedworkhours > alias Extended Work Hours > sunday 10:00-22:00 > monday 07:00-22:00 > tuesday 07:00-22:00 > wednesday 07:00-22:00 > thursday 07:00-22:00 > friday 07:00-22:00 > saturday 10:00-22:00 > } > > Nagios 3.0.6 on 10.4.11 OSX. > > The service check is stuck in pending for the DGH server, and is returning > fine for 2 of the NMW servers, but not all of them. > > Thanks, > > Rob Yeo > > On 1/9/09 4:04 PM, "Marc Powell" wrote: > >> >> On Jan 9, 2009, at 4:48 PM, >> >> wrote: >> >>> As per the subject... Nagios 3.0.6 and it happens both to lan and >>> external servers. >> >>> As ping?s a very basic check and as far as I can see everything >>> should work normally, right now I?m stumped. Any idea what's going >>> on here? >> >> Actual config information is necessary otherwise we're just guessing >> in the dark. Nagios doesn't think it's supposed to perform a check. Is >> the timeperiod right? >> >> host definition, service definition (and templates for both if used) >> and timeperiod definition would be a good start. >> >> -- >> Marc >> > ------------------------------------------------------------------------------ > >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 > > > ------------------------------------------------------------------------------ > > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 shaibn at gmail.com Mon Jan 12 16:11:20 2009 From: shaibn at gmail.com (Shai) Date: Mon, 12 Jan 2009 17:11:20 +0200 Subject: send warnings to one group and critical to another In-Reply-To: References: Message-ID: ping On Mon, Jan 5, 2009 at 9:28 AM, Shai wrote: > Hi, > > I have two different user groups. > I have a service which is currently sending both WARNING and CRITICAL > notifications to both. > I would like WARNING and CRITICAL to be sent to group A and CRITICAL only > to group B. > > How can I accomplish this? > > Shai > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -------------- 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 alessandro.usai at switch.ch Mon Jan 12 16:14:13 2009 From: alessandro.usai at switch.ch (Alessandro Usai) Date: Mon, 12 Jan 2009 16:14:13 +0100 Subject: passive checks and possible actions in case of stale information In-Reply-To: <254932F7-AE36-4B53-AA5A-0CB56DF33B2A@ena.com> References: <496B1E0F.7030306@switch.ch> <254932F7-AE36-4B53-AA5A-0CB56DF33B2A@ena.com> Message-ID: <496B5E45.7070800@switch.ch> Hi Marc Could you send me the exact link in case? Thanks again cheers Alessandro Marc Powell ha scritto: > On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote: > >> firewall: is it possible instead to just trigger (email) >> an alarm when the information is found to be stale? > > Yes, the Example given in the documentation is exactly this solution... > > -- > Marc > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- SWITCH Serving Swiss Universities -------------------------- Dr. Alessandro Usai P.O. Box, 8021 Zurich, Switzerland phone +41 44 268 15 72, fax +41 44 268 15 68 alessandro.usai at switch.ch, http://www.switch.ch ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 16:17:13 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 09:17:13 -0600 Subject: send warnings to one group and critical to another In-Reply-To: References: Message-ID: Shai, look in the mailing list archives - as late as yesterday, there is a thread that already covers your exact scenario. James Moseley Shai To nagios-users at lists.sourceforge.net 01/12/2009 09:11 cc AM Subject Re: [Nagios-users] send warnings to one group and critical to another ping On Mon, Jan 5, 2009 at 9:28 AM, Shai wrote: Hi, I have two different user groups. I have a service which is currently sending both WARNING and CRITICAL notifications to both. I would like WARNING and CRITICAL to be sent to group A and CRITICAL only to group B. How can I accomplish this? Shai ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB_______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Mon Jan 12 16:33:21 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Mon, 12 Jan 2009 08:33:21 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: The ! is to remove servers that have been included already in the line above in the hostgroup_name, that way I do not need to spell them all out individually or create different groups if you have one server that doesn't fit with everything. Basically I do not want to monitor Check CPU Load on every server in the Nmw_Servers group, so I exclude them on the next line. I thought this was OK to do this? I will remove the host_name in case the ! is making things weird and my service dependencies as well and let you know what happens. Thanks for the help! Rob Yeo On 1/12/09 8:26 AM, "jmoseley at corp.xanadoo.com" wrote: > First, what's with the '!' preceding many of your hosts names? Second, in > your service and service dependency configs, why are you defining both > hosts and hostgroups? For example: > > define service{ > hostgroup_name Nmw_Servers,Wi_Servers > host_name > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art > > _104_014_FilmServer,!Nmw_104_092_Nagios3 > > service_description Check CPU Load > use medium-high-priority-service > check_command check_nrpe!check_load > } > > I'd start with removing the host_name portion of the config and including > 'Dgh_Servers' in the hostgroup_name stanza. Otherwise, you've got a lot of > overkill... > > Lastly, get rid of the service dependencies until you have this sorted out > and working. > > > > James Moseley > > > > > > Robert Yeo > > To > 01/12/2009 08:57 AM > > cc > > Subject > Re: [Nagios-users] check_ping stuck > on 'PENDING' > > > > > > > > > > > The operation I am employing is Check CPU Load but the symptoms were the > same as Michiel's check ping. > > Hopefully all the information is there now. > > Thanks! > > Rob Yeo > > # Finearts Nagios 2 Server > define host{ > > host_name Dgh_000_012_FairUse > alias Finearts Nagios 2 Server > address 155.xxx.xxx.xxx > > use server-high-priority > hostgroups Dgh_Servers > parents Dgh_Switch_02 > icon_image mac40.png > statusmap_image mac40.gd2 > } > > # '003 DGH Servers' server group definition > define hostgroup{ > hostgroup_name Dgh_Servers > alias DGH_SERVERS > } > > # 'check_nrpe' command definition > define command { > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u > }' > > define service{ > hostgroup_name Nmw_Servers,Wi_Servers > host_name > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art > > > _104_014_FilmServer,!Nmw_104_092_Nagios3 > > service_description Check CPU Load > use medium-high-priority-service > check_command check_nrpe!check_load > } > > define servicedependency{ > hostgroup_name Nmw_Servers,Wi_Servers > host_name > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F > > ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 > > service_description Check NRPE > dependent_hostgroup_name Nmw_Servers,Wi_Servers > dependent_host_name > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F > > ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 > dependent_service_description Check CPU Load,Check Free > Space,Current > Users,Total Processes,Zombie Processes > > execution_failure_criteria w,u,c,p > notification_failure_criteria w,u,c,p > } > > define host{ > name generic-host > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > register 0 > } > > define host{ > name server-high-priority > use generic-host > check_period 24x7 > check_interval 2 > max_check_attempts 2 > check_command check-host-alive > notification_period 24x7 > notification_interval 120 > notification_options d,r,f > contact_groups nagiosadmin > register 0 > } > > > define service{ > name medium-high-priority-service > use generic-service > check_period 24x7 > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 2 > contact_groups nagiosadmin > notification_options c,r,f > notification_interval 180 > notification_period extendedworkhours > register 0 > } > > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 0 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > register 0 > } > > # 'extendedworkhours' timeperiod definition > define timeperiod{ > timeperiod_name extendedworkhours > alias Extended Work Hours > sunday 10:00-22:00 > monday 07:00-22:00 > tuesday 07:00-22:00 > wednesday 07:00-22:00 > thursday 07:00-22:00 > friday 07:00-22:00 > saturday 10:00-22:00 > } > > # '24x7' timeperiod definition > define timeperiod{ > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > Nagios 3.0.6 on 10.4.11 OSX. > > The service check is stuck in pending for the DGH server, and is returning > fine for 2 of the NMW servers, but not all of them. > > Thanks, > > Rob Yeo > > > On 1/9/09 4:34 PM, "jmoseley at corp.xanadoo.com" > wrote: > >> I don't see a service definition for 'server-high-priority', nor do I see >> where you are employing a check_ping operation, nor have you included the >> check_period config for 24x7. >> >> >> James Moseley >> >> >> >> >> >> Robert Yeo >> >> > To >> 01/09/2009 05:13 nagios-users Mailinglist >> PM > >> >> > cc >> >> > Subject >> Re: [Nagios-users] check_ping > stuck >> on 'PENDING' >> >> >> >> >> >> >> >> >> >> >> >> This is an example config for one of the services. Please let me know if > I >> am missing any info. >> >> # Finearts Nagios 2 Server >> define host{ >> >> host_name Dgh_000_012_FairUse >> alias Finearts Nagios 2 Server (fairuse.music.utah.edu) >> address 155.97.55.12 >> >> use server-high-priority >> hostgroups Dgh_Servers >> parents Dgh_Switch_02 >> icon_image mac40.png >> statusmap_image mac40.gd2 >> } >> >> # '003 DGH Servers' server group definition >> define hostgroup{ >> hostgroup_name Dgh_Servers >> alias DGH_SERVERS >> } >> >> # 'check_nrpe' command definition >> define command { >> command_name check_nrpe >> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u >> }' >> >> define service{ >> hostgroup_name Nmw_Servers,Wi_Servers >> host_name >> > !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art > >> >> _104_014_FilmServer,!Nmw_104_092_Nagios3 >> >> service_description Check CPU Load >> use medium-high-priority-service >> check_command check_nrpe!check_load >> } >> >> define service{ >> name medium-high-priority-service >> use generic-service >> check_period 24x7 >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 2 >> contact_groups nagiosadmin >> notification_options c,r,f >> notification_interval 180 >> notification_period extendedworkhours >> register 0 >> } >> >> define service{ >> name generic-service >> active_checks_enabled 1 >> passive_checks_enabled 1 >> parallelize_check 1 >> obsess_over_service 0 >> check_freshness 0 >> notifications_enabled 1 >> event_handler_enabled 1 >> flap_detection_enabled 1 >> failure_prediction_enabled 1 >> process_perf_data 1 >> retain_status_information 1 >> retain_nonstatus_information 1 >> is_volatile 0 >> register 0 >> } >> >> # 'extendedworkhours' timeperiod definition >> define timeperiod{ >> timeperiod_name extendedworkhours >> alias Extended Work Hours >> sunday 10:00-22:00 >> monday 07:00-22:00 >> tuesday 07:00-22:00 >> wednesday 07:00-22:00 >> thursday 07:00-22:00 >> friday 07:00-22:00 >> saturday 10:00-22:00 >> } >> >> Nagios 3.0.6 on 10.4.11 OSX. >> >> The service check is stuck in pending for the DGH server, and is > returning >> fine for 2 of the NMW servers, but not all of them. >> >> Thanks, >> >> Rob Yeo >> >> On 1/9/09 4:04 PM, "Marc Powell" wrote: >> >>> >>> On Jan 9, 2009, at 4:48 PM, >>> >>> wrote: >>> >>>> As per the subject... Nagios 3.0.6 and it happens both to lan and >>>> external servers. >>> >>>> As ping?s a very basic check and as far as I can see everything >>>> should work normally, right now I?m stumped. Any idea what's going >>>> on here? >>> >>> Actual config information is necessary otherwise we're just guessing >>> in the dark. Nagios doesn't think it's supposed to perform a check. Is >>> the timeperiod right? >>> >>> host definition, service definition (and templates for both if used) >>> and timeperiod definition would be a good start. >>> >>> -- >>> Marc >>> >> > ------------------------------------------------------------------------------ > >> >>> Check out the new SourceForge.net Marketplace. >>> It is the best place to buy or sell services for >>> just about anything Open Source. >>> http://p.sf.net/sfu/Xq1LFB >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users 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 >> >> >> > ------------------------------------------------------------------------------ > >> >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 >> >> > > > ------------------------------------------------------------------------------ > > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 12 16:37:57 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 09:37:57 -0600 Subject: passive checks and possible actions in case of stale information In-Reply-To: <496B5E45.7070800@switch.ch> References: <496B1E0F.7030306@switch.ch> <254932F7-AE36-4B53-AA5A-0CB56DF33B2A@ena.com> <496B5E45.7070800@switch.ch> Message-ID: On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote: > Hi Marc > > Could you send me the exact link in case? No. It's not difficult to find browsing the index, through Google or simply using grep on your local copy of the docs. Looking for it yourself will do you far more good than me just giving it to you. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 alessandro.usai at switch.ch Mon Jan 12 16:42:28 2009 From: alessandro.usai at switch.ch (Alessandro Usai) Date: Mon, 12 Jan 2009 16:42:28 +0100 Subject: passive checks and possible actions in case of stale information In-Reply-To: References: <496B1E0F.7030306@switch.ch> <254932F7-AE36-4B53-AA5A-0CB56DF33B2A@ena.com> <496B5E45.7070800@switch.ch> Message-ID: <496B64E4.9000504@switch.ch> Perhaps I should have mentioned that I could not find the example you referred to, which is why I asked for the exact link... But thanks anyway cheers Alessandro Marc Powell ha scritto: > On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote: > >> Hi Marc >> >> Could you send me the exact link in case? > > No. It's not difficult to find browsing the index, through Google or > simply using grep on your local copy of the docs. Looking for it > yourself will do you far more good than me just giving it to you. > > -- > Marc > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- SWITCH Serving Swiss Universities -------------------------- Dr. Alessandro Usai P.O. Box, 8021 Zurich, Switzerland phone +41 44 268 15 72, fax +41 44 268 15 68 alessandro.usai at switch.ch, http://www.switch.ch ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Mon Jan 12 16:44:44 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 12 Jan 2009 07:44:44 -0800 (PST) Subject: Elevated alerts Message-ID: <829444.82370.qm@web81803.mail.mud.yahoo.com> Hi James, One question/problem with this. I'm not getting any pages or email on when services are showing up as critical in the nagios.log. For example: [1231773440] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z [1231773500] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z [1231773560] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z [1231773620] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z [1231773680] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z [1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes Any thoughts? ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Sunday, January 11, 2009 5:38:33 PM Subject: Re: [Nagios-users] Elevated alerts You've got it backwards below. In the original email, you wanted only warnings to go to email and warnings and critical alerts to go the 'pager' address. Remove the 'c' from the service notification options for the email config and add a 'w' for the paging config. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/11/2009 06:21 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts Hi James, I think I understand it a little bit better. As far as numerical users, do you mean when a page is sent to a paging service, somehow, the user name is converted to, a numerical user that the paging service uses? That makes sense I guess because you have to have a phone number to call for the page. As far as the notification tags, do these look correct, with what I'm trying to do? define contact{ # Email config ... host_notification_options d,u,r,f,s service_notification_options w,c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email ... } And the other: define contact{ # Paging config ... host_notification_options d,u,r,f,s service_notification_options c,u,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email # host_notification_commands notify-host-by-pager # service_notification_commands notify-service-by-pager ... } Thanks for hanging in there with me! ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Saturday, January 10, 2009 5:18:29 PM Subject: Re: [Nagios-users] Elevated alerts In the 'email' contact config, you need all the service notification options: w,c,u,r,f,s This is because you want warning and critical alerts sent to email. In the 'paging' config, gid rid of the following lines: host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager # Added pager line 01/09/2009 pager glowe at pager.company.com Then change the service notifications to: c,u,r,f,s The way you have it now, the paging contact will not get critical alerts. If your paging email address has a text username (glowe), you need to use the notify-by-email arguments. If the user is numerical, then yes, you can use the notify-by-pager commands. I mentioned this in my last email. I've never researched it, for I've found that if I have a non-numerical user in an email address and I use the notify-by-pager default CONTACTPAGER macro, the notification is not sent. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/10/2009 03:01 cc PM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts define contact{ contact_name glowe1 alias Grant contactgroups solaris-admins host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s, service_notification_options w,u,r,f,s, host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_commands notify-host-by-pager service_notification_commands notify-service-by-pager email glowe at pager.company.com can_submit_commands 1 retain_status_information 0 retain_nonstatus_information 0 # Added pager line 01/09/2009 pager glowe at pager.company.com } ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 12 16:48:17 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 09:48:17 -0600 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: On Jan 12, 2009, at 9:26 AM, jmoseley at corp.xanadoo.com wrote: > First, what's with the '!' preceding many of your hosts names? It means "don't apply the service to this host if it's in one of the named hostgroups." It's not documented quite like the OP's use but I expect it will work. See 'Excluding Hosts' at http://nagios.sourceforge.net/docs/3_0/objecttricks.html -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 16:52:35 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 09:52:35 -0600 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: I checked the object defintion documentation before replying and didn't find any such reference that you could exclude hosts out of host or service group definitions by using a 'bang' symbol. I thought a bang (!) was used only to separate arguments in check_commands. Even if this feature is legitimate, why make the configuration more complex? Get rid of the host groups in the service definitions and include only those hosts you want checked. Basically, make the configuration as simple as possible to find and fix the problem with the host that has a service check stuck in pending. Then add back in the more complex configuration options (like service dependencies) one at a time. My $.02. James Moseley Robert Yeo To 01/12/2009 09:33 cc Subject Re: [Nagios-users] check_ping stuck on 'PENDING' The ! is to remove servers that have been included already in the line above in the hostgroup_name, that way I do not need to spell them all out individually or create different groups if you have one server that doesn't fit with everything. Basically I do not want to monitor Check CPU Load on every server in the Nmw_Servers group, so I exclude them on the next line. I thought this was OK to do this? I will remove the host_name in case the ! is making things weird and my service dependencies as well and let you know what happens. Thanks for the help! ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 17:00:39 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 10:00:39 -0600 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: Marc Powell wrote: >It means "don't apply the service to this host if it's in one of the >named hostgroups." It's not documented quite like the OP's use but I >expect it will work. > >See 'Excluding Hosts' at http://nagios.sourceforge.net/docs/3_0/objecttricks.html Good, I learned something new. I still think it's a great idea, though, to simplify the configuration as much as possible when dealing with a single host that is having problems. ;-) James ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 17:06:00 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 10:06:00 -0600 Subject: Elevated alerts In-Reply-To: <829444.82370.qm@web81803.mail.mud.yahoo.com> References: <829444.82370.qm@web81803.mail.mud.yahoo.com> Message-ID: Grant Lowe wrote: >Hi James, > >One question/problem with this. I'm not getting any pages or email on when services are showing up as critical in the nagios.log. For example:> > >[1231773440] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z >[1231773500] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z >[1231773560] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z >[1231773620] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z >[1231773680] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z >[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes > >Any thoughts? As I was telling another poster, make the config as simple as can be until you get this issue worked out. ;-) Meaning, use the default notification macros and setup one host and one contact definition until you get this working. Have you checked your notifiction options in your 'Check Remote Zombie Processes' service definition? notification_options[w,u,c,r,f,s] You most certainly want to have a 'c' in there. Are notifictions enabled for this service (as defined in the service template you are probably using)? James ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Mon Jan 12 17:22:45 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Mon, 12 Jan 2009 09:22:45 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: Service dependencies. I commented them out and everything works fine. They do not get flagged as wrong and worked fine in the 2.x series, so I need to make some changes. Thanks for help! I should have went that route earlier but the behavior was so odd with some hosts OK and others not with the same check in the same config I though "nah." My mistake. If it helps at all I will follow up with the corrections that need to be made to the dependencies in case anyone else runs into this on a 2.x to 3.x migration. Thanks again! Rob Yeo On 1/12/09 9:00 AM, "jmoseley at corp.xanadoo.com" wrote: > > > > > > Marc Powell wrote: > > > >> It means "don't apply the service to this host if it's in one of the >> named hostgroups." It's not documented quite like the OP's use but I >> expect it will work. >> >> See 'Excluding Hosts' at > http://nagios.sourceforge.net/docs/3_0/objecttricks.html > > Good, I learned something new. I still think it's a great idea, though, to > simplify the configuration as much as possible when dealing with a single > host that is having problems. ;-) > > James > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sr2690 at columbia.edu Mon Jan 12 17:35:12 2009 From: sr2690 at columbia.edu (Shadhin rahman) Date: Mon, 12 Jan 2009 11:35:12 -0500 Subject: Nagios Command line Message-ID: <496B7140.3010206@columbia.edu> All, is there any project to provide command line interface for Nagios. I understand cnagios already exists but it is not enough. Cnagios does not provide a way to perform checks on command line interface. Please advise on this. Thanks -- Shadhin Rahman 619 Watson Hall Columbia University Information Technology-Network Infrastructure Cell: 347-256-7869 Work: 212-851-7161 Email: sr2690 at columbia.edu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 17:36:27 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 10:36:27 -0600 Subject: Elevated alerts In-Reply-To: References: Message-ID: Also, do you have any escalations or service dependencies that could be blocking the notification? James Moseley James Moseley/BTV/PEGAS US To Grant Lowe 01/12/2009 10:06 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts (Document link: James Moseley) Grant Lowe wrote: >Hi James, > >One question/problem with this. I'm not getting any pages or email on when services are showing up as critical in the nagios.log. For example:> > >[1231773440] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z >[1231773500] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z >[1231773560] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z >[1231773620] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z >[1231773680] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z >[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes > >Any thoughts? As I was telling another poster, make the config as simple as can be until you get this issue worked out. ;-) Meaning, use the default notification macros and setup one host and one contact definition until you get this working. Have you checked your notifiction options in your 'Check Remote Zombie Processes' service definition? notification_options[w,u,c,r,f,s] You most certainly want to have a 'c' in there. Are notifictions enabled for this service (as defined in the service template you are probably using)? James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Mon Jan 12 17:55:23 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 12 Jan 2009 08:55:23 -0800 (PST) Subject: Elevated alerts Message-ID: <932803.79431.qm@web81806.mail.mud.yahoo.com> James, I thought I was trying to make this config as simple as possible. I'm only monitoring five UNIX boxes right now. Hopefully going to expand that soon with Nagios :-> The hosts I'm monitoring didn't have any notification options, but they do now. All six. This is what I have for the zombie processes: define service{ host_name blarney,frogmore,katz,dunvegan,redfort hostgroup_name solaris-servers service_description Check Remote Zombie Processes check_command check_nrpe!check_zombie_procs max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s } I don't have services disabled or enabled right now in any of the related service definitions (like the one above). Do I need to explicitly turn them on? I thought they were already on, considering I'm getting notifications already through email. Please advise. Thanks. ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, January 12, 2009 8:06:00 AM Subject: Re: [Nagios-users] Elevated alerts Grant Lowe wrote: >Hi James, > >One question/problem with this. I'm not getting any pages or email on when services are showing up as critical in the nagios.log. For example:> > >[1231773440] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z >[1231773500] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z >[1231773560] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z >[1231773620] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z >[1231773680] SERVICE ALERT: blarney;Check Remote Zombie Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z >[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes > >Any thoughts? As I was telling another poster, make the config as simple as can be until you get this issue worked out. ;-) Meaning, use the default notification macros and setup one host and one contact definition until you get this working. Have you checked your notifiction options in your 'Check Remote Zombie Processes' service definition? notification_options[w,u,c,r,f,s] You most certainly want to have a 'c' in there. Are notifictions enabled for this service (as defined in the service template you are probably using)? James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 chris at chrisserafin.com Mon Jan 12 18:15:47 2009 From: chris at chrisserafin.com (ChrisSerafin) Date: Mon, 12 Jan 2009 11:15:47 -0600 Subject: Change Nagios email 'from' field Message-ID: <496B7AC3.4060808@chrisserafin.com> I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the 'from' field when receiving emails. Currently I get one email from 'nagios at ubuntu-nagios' which is not a real email address at all. I would like to use 'support at xyz.com' so that clients can respond to our support team with a simple reply-all email. Also, I have multiple emails sent when one alert goes out and I only see myself as the TO: field, which means that each alert email is being sent individually and not in one single email. Is there any way to change that as well? My main concern is to change the FROM field though....thanks.. Chris Serafin chris at chrisserafin.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 12 18:21:03 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 11:21:03 -0600 Subject: Elevated alerts In-Reply-To: <932803.79431.qm@web81806.mail.mud.yahoo.com> References: <932803.79431.qm@web81806.mail.mud.yahoo.com> Message-ID: Grant, you've got me really confused now. For starters, I would strongly encourage you to go back and read the documentation on object defitions. It may be that by default notifications are enabled and that notification options are also set to something as default. With that said, since it appears the service definition below doesn't contain a reference to a global service template, I don't see where you have told the 'check remote zombie processes' service who to send alerts to. You either need a contacts or contacts_group argument to define who the service should send alerts to, something like: contacts glowe1 How are your other service definitions setup? If somehow email is working for the 'email' contact, but not for the 'paging' contact, then the contact macro you have set up as definied by the contact-by-pager definition is most likely the culprit. You're going to have to start with a known working contact macro and edit it until you get it working. Start by sending both critical and warning alerts to the working contact., then create new contacts with different alert options making sure you add those contacts to the contacts definition of the service definition. Lastly, have you verified your config? nagios -v ///nagios.cfg This will tell you if your config is generally OK. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/12/2009 10:55 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts James, I thought I was trying to make this config as simple as possible. I'm only monitoring five UNIX boxes right now. Hopefully going to expand that soon with Nagios :-> The hosts I'm monitoring didn't have any notification options, but they do now. All six. This is what I have for the zombie processes: define service{ host_name blarney,frogmore,katz,dunvegan,redfort hostgroup_name solaris-servers service_description Check Remote Zombie Processes check_command check_nrpe!check_zombie_procs max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s } I don't have services disabled or enabled right now in any of the related service definitions (like the one above). Do I need to explicitly turn them on? I thought they were already on, considering I'm getting notifications already through email. Please advise. Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Mon Jan 12 18:24:13 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Mon, 12 Jan 2009 12:24:13 -0500 Subject: Problem with NRPE!!! Message-ID: <496B7CBD.6080000@iris.uh.cu> I'm triying to install NRPE but I have a big problem. All documents say that I must do next: tar xzf nrpe-2.8.tar.gz cd nrpe-2.8 ./configure make all make install-plugin make install-daemon make install-daemon-config But when I try to run any make command I receive this error: make: *** No rule to make target `all'. Stop. What can I do? Thanks. -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rich+nagios at quintinz.com Mon Jan 12 18:29:41 2009 From: rich+nagios at quintinz.com (Richard Quintin) Date: Mon, 12 Jan 2009 12:29:41 -0500 Subject: Problem with NRPE!!! In-Reply-To: <496B7CBD.6080000@iris.uh.cu> References: <496B7CBD.6080000@iris.uh.cu> Message-ID: <822f14060901120929p2a52c38awf85ed22f48ebd757@mail.gmail.com> This probably means the ./configure step failed. Take a look at config.log. On Mon, Jan 12, 2009 at 12:24 PM, Sergio Ariel wrote: > I'm triying to install NRPE but I have a big problem. > All documents say that I must do next: > > tar xzf nrpe-2.8.tar.gz > cd nrpe-2.8 > ./configure > make all > make install-plugin > make install-daemon > make install-daemon-config > > But when I try to run any make command I receive this error: > make: *** No rule to make target `all'. Stop. > > What can I do? > > Thanks. > > > -- > Sergio Ariel de la Campa Saiz > Administrador Red UH > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Richard Quintin, DBA Database & Application Administration Virginia Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Mon Jan 12 18:46:24 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 11:46:24 -0600 Subject: Change Nagios email 'from' field In-Reply-To: <496B7AC3.4060808@chrisserafin.com> References: <496B7AC3.4060808@chrisserafin.com> Message-ID: You'll need to edit the command definition of 'notify-by-email', etc. The default mail program used by Nagios, /bin/mail, does not allow one to set a from address, nor do I believe there is an option to do so in a .mailrc file, either. In that case, you'd want to use sendmail, something like: /usr/lib/sendmail -t -f "support at xyz.com" There are probably 100 different ways to accomplish what you want, so perhaps folks have some other examples. James Moseley ChrisSerafin To nagios-users at lists.sourceforge.net 01/12/2009 11:15 cc AM Subject [Nagios-users] Change Nagios email 'from' field I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the 'from' field when receiving emails. Currently I get one email from 'nagios at ubuntu-nagios' which is not a real email address at all. I would like to use 'support at xyz.com' so that clients can respond to our support team with a simple reply-all email. Also, I have multiple emails sent when one alert goes out and I only see myself as the TO: field, which means that each alert email is being sent individually and not in one single email. Is there any way to change that as well? My main concern is to change the FROM field though....thanks.. Chris Serafin chris at chrisserafin.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 12 19:00:06 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 12:00:06 -0600 Subject: Change Nagios email 'from' field In-Reply-To: <496B7AC3.4060808@chrisserafin.com> References: <496B7AC3.4060808@chrisserafin.com> Message-ID: On Jan 12, 2009, at 11:15 AM, ChrisSerafin wrote: > I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change > the > 'from' field when receiving emails. Currently I get one email from > 'nagios at ubuntu-nagios' which is not a real email address at all. I > would > like to use 'support at xyz.com' so that clients can respond to our > support > team with a simple reply-all email. Nagios doesn't control this. It's a function of the mail program you are using to send the messages (mail, mailx, sendmail, whatever). Check the manpage for the program you are using to see if it can do it. If not, this FAQ might be useful -- http://www.nagios.org/faqs/viewfaq.php?faq_id=338 > Also, I have multiple emails sent > when one alert goes out and I only see myself as the TO: field, which > means that each alert email is being sent individually and not in one > single email. Is there any way to change that as well? No, each e-mail is sent individually. It's _much_ easier to do that programatically on a per-contact basis than trying to figure out all the people that should receive the notification and hope that the mailer can support it. Is this a problem for you? You could use role addresses within nagios and manage those groupings externally... -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 r.yeo at utah.edu Mon Jan 12 20:24:26 2009 From: r.yeo at utah.edu (Robert Yeo) Date: Mon, 12 Jan 2009 12:24:26 -0700 Subject: check_ping stuck on 'PENDING' In-Reply-To: References: Message-ID: The problem was same host dependencies. In my first config I setup Check NRPE to have the same services on the box be dependent on it by declaring them again below. This worked on a nagios 2.x series just fine, but 3.x has a better way to declare it. Nagios 2.x version - define servicedependency{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check NRPE dependent_hostgroup_name Nmw_Servers,Wi_Servers dependent_host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 dependent_service_description Check CPU Load,Check Free Space,Current Users,Total Processes,Zombie Processes execution_failure_criteria w,u,c,p notification_failure_criteria w,u,c,p } Nagios 3.x version - define servicedependency{ hostgroup_name Nmw_Servers,Wi_Servers host_name !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3 service_description Check NRPE dependent_service_description Check CPU Load,Check Free Space,Current Users,Total Processes,Zombie Processes execution_failure_criteria w,u,c,p notification_failure_criteria w,u,c,p } The 3.x version is much much simpler. Just a note that the -v check will throw no errors with the 2.x style check and the service will then be in a "stuck" state. In my case with the retention file the state was OK and I didn't realize the problem until a power outage. Hope this helps someone else in the future. Thanks again, Rob Yeo On 1/12/09 9:22 AM, "Robert Yeo" wrote: > Service dependencies. > > I commented them out and everything works fine. They do not get flagged as > wrong and worked fine in the 2.x series, so I need to make some changes. > Thanks for help! I should have went that route earlier but the behavior > was so odd with some hosts OK and others not with the same check in the same > config I though "nah." My mistake. > > If it helps at all I will follow up with the corrections that need to be > made to the dependencies in case anyone else runs into this on a 2.x to 3.x > migration. > > Thanks, > > Rob Yeo > > On 1/12/09 9:00 AM, "jmoseley at corp.xanadoo.com" > wrote: > >> >> >> >> >> >> Marc Powell wrote: >> >> >> >>> It means "don't apply the service to this host if it's in one of the >>> named hostgroups." It's not documented quite like the OP's use but I >>> expect it will work. >>> >>> See 'Excluding Hosts' at >> http://nagios.sourceforge.net/docs/3_0/objecttricks.html >> >> Good, I learned something new. I still think it's a great idea, though, to >> simplify the configuration as much as possible when dealing with a single >> host that is having problems. ;-) >> >> James >> >> >> ----------------------------------------------------------------------------->> - >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 AHKAPLAN at PARTNERS.ORG Tue Jan 13 02:15:30 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 12 Jan 2009 20:15:30 -0500 Subject: Changing diskspace available from kilobytes to megabytes Message-ID: Hi there -- We currently have several Nagios 2.6, and will eventually deploy version 3.0.6 servers running on our network. Currently diskspace availability is shown in kilobytes, but I would prefer to have it displayed in megabytes. Is it possible to configure either versions of Nagios to have the output in megabytes? If so, what needs to be done in order to accomplish this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Tue Jan 13 02:49:05 2009 From: marc at ena.com (Marc Powell) Date: Mon, 12 Jan 2009 19:49:05 -0600 Subject: Changing diskspace available from kilobytes to megabytes In-Reply-To: References: Message-ID: <64D5A0C4-13B3-463D-BA7E-57DA05E07385@ena.com> On Jan 12, 2009, at 7:15 PM, Kaplan, Andrew H. wrote: > Hi there -- > > We currently have several Nagios 2.6, and will eventually deploy > version 3.0.6 servers running on our network. Currently diskspace > availability is shown in kilobytes, but I would prefer to have it > displayed in megabytes. > > Is it possible to configure either versions of Nagios to have the > output in megabytes? If so, what needs to be done in order to > accomplish this? Thanks > It comes from the check_disk plugin, not nagios. Interestingly, the default units _are_ megabytes so I think you might have specifically set it to show KB instead. Take a look at your check_disk command definition to verify you didn't specify -k and/or make sure you're using -u or -m properly. [libexec]$ ./check_disk --help check_disk v1848 (nagios-plugins 1.4.11) Copyright (c) 1999 Ethan Galstad Copyright (c) 1999-2006 Nagios Plugin Development Team This plugin checks the amount of used disk space on a mounted file system and generates an alert if free space is less than one of the threshold values Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | - x device} [-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ] [-t timeout] [-u unit] [-v] [-X type] Options: -h, --help Print detailed help screen [chop chop snip snip ohwhatareliefitis] -k, --kilobytes Same as '--units kB' -m, --megabytes Same as '--units MB' -u, --units=STRING Choose bytes, kB, MB, GB, TB (default: MB) -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Tue Jan 13 02:58:14 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 12 Jan 2009 19:58:14 -0600 Subject: Changing diskspace available from kilobytes to megabytes In-Reply-To: References: Message-ID: The disk space units have nothing to do with Nagios, but with the output of the particular plugin you are using. The plugin 'check_disk', which comes with the Nagios Plugins package, by default displays data in megabytes, but you change the units with the proper argument. It appears that plugin only works with locally mounted filesytems. There is another plugin called 'check_snmp_storage.pl' which allows you to check diskspace of remote systems via SNMP. It's units are in megabytes only. You could change this by editing the perl script, of course. So, it all depends on the plugin you are using and whether or not the disk space units are configurable. I would suggest searching Google. ;-) James Moseley "Kaplan, Andrew H." 01/12/2009 07:15 cc PM Subject [Nagios-users] Changing diskspace available from kilobytes to megabytes Hi there -- We currently have several Nagios 2.6, and will eventually deploy version 3.0.6 servers running on our network. Currently diskspace availability is shown in kilobytes, but I would prefer to have it displayed in megabytes. Is it possible to configure either versions of Nagios to have the output in megabytes? If so, what needs to be done in order to accomplish this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ian at acces.co.jp Tue Jan 13 03:42:39 2009 From: ian at acces.co.jp (Ian Masters) Date: Tue, 13 Jan 2009 11:42:39 +0900 Subject: Nagios sound In-Reply-To: <201964.91822.qm@web26107.mail.ukl.yahoo.com> References: <201964.91822.qm@web26107.mail.ukl.yahoo.com> Message-ID: <496BFF9F.90702@acces.co.jp> > I amto know How is possible to have sound for alert in nagios Please check the list archives. This has been discussed many times. Ian ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 fdm.alex at gmail.com Tue Jan 13 09:47:40 2009 From: fdm.alex at gmail.com (alex alex) Date: Tue, 13 Jan 2009 10:47:40 +0200 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: <5939124B-E166-4B60-994A-0A7F244836E6@ena.com> References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> <5939124B-E166-4B60-994A-0A7F244836E6@ena.com> Message-ID: Hi again. I have bad news(for me,at least). I remove the flap announcements and notifications are not working. Here's the debug log for nagios: [1231835680.728809] [032.2] [pid=14526] ** Checking host notification viability for contact 'user'... [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact about DOWN states. [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next possible notification time: Thu Jan 1 02:00:00 1970 [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. So it seems that the contacts didn't inherited the template??? were found. Again, my configs read: # contactgroups admins define contactgroup { contactgroup_name admins alias admins members nagios,user } #contact template define contact { name generic_contact host_notification_period 24din24_7din7 service_notification_period 24din24_7din7 host_notification_options d,u,r,n,f service_notification_options u,c,w,r,n,f host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email register 0 } define contact { contact_name user use generic_contact alias utilizator_generic email smo at localhost } define host { host_name host1 alias host1 address 192.168.1.1 use generic_host_tpl } define host { name generic_host_tpl process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24din24_7din7 obsess_over_host 0 check_freshness 1 freshness_threshold 0 check_command is_icmp_alive max_check_attempts 1 event_handler_enabled 0 notifications_enabled 1 notification_interval 5 notification_period 24din24_7din7 notification_options d,u,r,f stalking_options d,o,u register 0 action_url /nagios/pnp/index.php?host=$HOSTNAME$ } On Mon, Jan 12, 2009 at 3:49 PM, Marc Powell wrote: > > On Jan 12, 2009, at 5:44 AM, alex alex wrote: > > Notification: FLAPPINGSTOP > > Host: host1 > > State: UP > > Or for a service > > > Notification Type: FLAPPINGSTOP > > > > Service: is_alive > > Host: host1 > > Is it the right behaviour (to put flapping instead up/down if the > > flapping is enabled) ? > > Yes, if the host or service were in a flapping state, which these > were. flapping is different than a normal up/down and that > notification type is provided should you want or need to make that > distinction. If you'd rather just receive up/down notifications, > disable notifications for flapping. > > > Anyhow, some notifications are sent and that's the main good news. I > > think from now only some small changes must be done in my configs to > > tune the uinstallation. > > Good =) > > -- > Marc > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 pitchfork at ederdrom.de Tue Jan 13 10:00:57 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Tue, 13 Jan 2009 10:00:57 +0100 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> <5939124B-E166-4B60-994A-0A7F244836E6@ena.com> Message-ID: <496C5849.8010207@ederdrom.de> alex alex schrieb: > Hi again. > I have bad news(for me,at least). I remove the flap announcements and > notifications are not working. Here's the debug log for nagios: > > [1231835680.728809] [032.2] [pid=14526] ** Checking host notification > viability for contact 'user'... > [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact > about DOWN states. > [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next > possible notification time: Thu Jan 1 02:00:00 1970 > [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. > > > So it seems that the contacts didn't inherited the template??? were > found. Again, my configs read: > > # contactgroups admins > define contactgroup { > contactgroup_name admins > alias admins > members nagios,user > } > #contact template > define contact { > name generic_contact > host_notification_period 24din24_7din7 > service_notification_period 24din24_7din7 > host_notification_options d,u,r,n,f > service_notification_options u,c,w,r,n,f > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register 0 > } Do you realy want to use "service_notification_options n"? http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact If you specify n (none) as an option, the contact will not receive any type of service notifications. Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 fdm.alex at gmail.com Tue Jan 13 10:10:49 2009 From: fdm.alex at gmail.com (alex alex) Date: Tue, 13 Jan 2009 11:10:49 +0200 Subject: nagios 3.0.5 email notifications fail {Spam?} In-Reply-To: References: <9BAB2A78-9E67-4267-997C-5320B305F290@ena.com> <81D0F7BC-73D9-43EC-AE3C-C9A9A3565101@ena.com> <5939124B-E166-4B60-994A-0A7F244836E6@ena.com> Message-ID: Ok, my mistake. I can clearly see that I put all options in notification template, including "n " from "none" so none of the notifications were sent. Stupid me! Thanks all, Alex On Tue, Jan 13, 2009 at 10:47 AM, alex alex wrote: > Hi again. > I have bad news(for me,at least). I remove the flap announcements and > notifications are not working. Here's the debug log for nagios: > > [1231835680.728809] [032.2] [pid=14526] ** Checking host notification > viability for contact 'user'... > [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact > about DOWN states. > [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next > possible notification time: Thu Jan 1 02:00:00 1970 > [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified. > > > So it seems that the contacts didn't inherited the template??? were found. > Again, my configs read: > > # contactgroups admins > define contactgroup { > contactgroup_name admins > alias admins > members nagios,user > } > #contact template > define contact { > name generic_contact > host_notification_period 24din24_7din7 > service_notification_period 24din24_7din7 > host_notification_options d,u,r,n,f > service_notification_options u,c,w,r,n,f > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > register 0 > } > define contact { > contact_name user > use generic_contact > alias utilizator_generic > email smo at localhost > } > > define host { > host_name host1 > alias host1 > address 192.168.1.1 > use generic_host_tpl > } > define host { > name generic_host_tpl > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > active_checks_enabled 1 > passive_checks_enabled 1 > check_period 24din24_7din7 > obsess_over_host 0 > check_freshness 1 > freshness_threshold 0 > check_command is_icmp_alive > max_check_attempts 1 > event_handler_enabled 0 > notifications_enabled 1 > notification_interval 5 > notification_period 24din24_7din7 > notification_options d,u,r,f > stalking_options d,o,u > register 0 > action_url /nagios/pnp/index.php?host=$HOSTNAME$ > > } > > > > > > > > > On Mon, Jan 12, 2009 at 3:49 PM, Marc Powell wrote: > >> >> On Jan 12, 2009, at 5:44 AM, alex alex wrote: >> > Notification: FLAPPINGSTOP >> > Host: host1 >> > State: UP >> > Or for a service >> >> > Notification Type: FLAPPINGSTOP >> > >> > Service: is_alive >> > Host: host1 >> > Is it the right behaviour (to put flapping instead up/down if the >> > flapping is enabled) ? >> >> Yes, if the host or service were in a flapping state, which these >> were. flapping is different than a normal up/down and that >> notification type is provided should you want or need to make that >> distinction. If you'd rather just receive up/down notifications, >> disable notifications for flapping. >> >> > Anyhow, some notifications are sent and that's the main good news. I >> > think from now only some small changes must be done in my configs to >> > tune the uinstallation. >> >> Good =) >> >> -- >> Marc >> >> >> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 clee.hk at gmail.com Tue Jan 13 13:04:25 2009 From: clee.hk at gmail.com (Chris Lee) Date: Tue, 13 Jan 2009 20:04:25 +0800 Subject: Can Nagios support foreign languages? Message-ID: Dear All, I am setting up Nagios for a branch office in Thailand. In the "Service Detail" page of Nagios, we would like to put some Thai characters in the "Host" and "Service" columns, but we failed to do that. So, I would like to know if Nagios can support foreign languages. Where can I get more information about this? Thanks a lot, -- Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Tue Jan 13 15:17:56 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Tue, 13 Jan 2009 14:17:56 +0000 Subject: Nagios Command line In-Reply-To: <496B7140.3010206@columbia.edu> References: <496B7140.3010206@columbia.edu> Message-ID: <200901131417.56496.assaf.flatto@ssp-intl.com> look at this http://nagios.sourceforge.net/docs/3_0/extcommands.html Assaf On Monday 12 January 2009 16:35:12 Shadhin rahman wrote: > All, > is there any project to provide command line interface for Nagios. > I understand cnagios already exists but it is not enough. Cnagios does > not provide a way to perform checks on command line interface. Please > advise on this. Thanks -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 shaibn at gmail.com Tue Jan 13 16:53:18 2009 From: shaibn at gmail.com (Shai) Date: Tue, 13 Jan 2009 17:53:18 +0200 Subject: downtime large number of hosts? In-Reply-To: <006901c9726c$ab9bf910$02d3eb30$@com> References: <598853.45371.qm@web33108.mail.mud.yahoo.com> <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> <006901c9726c$ab9bf910$02d3eb30$@com> Message-ID: Hi, I've seen the help on the nagios external command, but I'm not exactly sure how to make the script. Can someone show me an example? Shai On Fri, Jan 9, 2009 at 5:12 PM, Jayson Broughton wrote: > We have some linux servers here that peg-out on CPU/Mem when they are doing > a full backup, so I have used the wonderful 'Nagios External Command List' > website to custom tailor my alert notifications for hosts/hostgroups every > day during a certain time. Specifically the DISABLE_HOST_SVC_NOTIFICATIONS > and DISABLE_HOST_SVC_CHECKS. Then when it's time to re-monitor, a crontab > entry runs: ENABLE_HOST_SVC_NOTIFICATIONS & ENABLE_HOST_SVC_CHECKS. > > Check out those 4 options on: > http://www.nagios.org/developerinfo/externalcommands/commandlist.php > > The examples give you an excellent base script to work off of. > > ~Jayson > > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 08, 2009 8:05 AM > To: Nagios Users > Subject: Re: [Nagios-users] downtime large number of hosts? > > > On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > > > Is there a easy way to schedule down time for large number of hosts/ > > services at the same time? The downtime web interface doesn't accept > > wildcard characters. > > If they are all in the same hostgroup you can click on the hostgroup > name (in ()'s) and schedule downtime for all of them at once, > otherwise, no not that I am aware of outside of some simple scripting > to send the appropriate external command for each host through the > external command file. > > -- > Marc > > > > ---------------------------------------------------------------------------- > -- > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > The information in this electronic mail message and any attached files is > confidential and may be legally privileged. If you are not the intended > recipient, delete this message and contact the sender immediately. Access > to this message by anyone other than its intended recipient is unauthorized. > You must not use or disseminate this information as it is proprietary > property of the True companies. Communications on or through the True > companies' computer systems may be monitored or recorded to secure effective > system operation and for other lawful purposes. Thank you. > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 its-sysadmin at fuller.edu Tue Jan 13 18:32:04 2009 From: its-sysadmin at fuller.edu (Anthony Pisano) Date: Tue, 13 Jan 2009 09:32:04 -0800 Subject: Here Script for Formatting Nagios Status Page for Mobile Devices In-Reply-To: References: <598853.45371.qm@web33108.mail.mud.yahoo.com> <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> <006901c9726c$ab9bf910$02d3eb30$@com> Message-ID: <009401c975a4$da317350$8e9459f0$@edu> I've created a script to solve the following problem we were having getting System Status on our Mobile Devices. Feel free to use it if it will help you as well. Problem: We needed to be able to quickly view network status on our mobile devices while leaving the Nagios server on our Internal Network. Solution: 1. Create mobile Nagios user with Read only access on Nagios 2. Copy script to a server running apache on your DMZ 3. Setup Crontab to run script at an interval of your choosing. Anthony Pisano ITS - Systems Administrator Fuller Theological Seminary ---------- nagiosmobile.sh #!/bin/bash # Pull the desired view (Currently set to any "All Problems") and save it to the /tmp directory. Username and Password is set in command wget --quiet 'https://user:password at nagios.fuller.edu/nagios/cgi-bin/status.cgi?host=all& servicestatustypes=28&hoststatustypes=15' --no-check-certificate -O /tmp/status # Opens the above file and uses sed to remove all links and images to create a very basic page (Note: This is one continuous line) cat /tmp/status | sed -e '//d; /<\/head>/d; /Produced by Nagios/d; /Updated every/d; /http:\/\/www.nagios.org/d; //,/<\/TABLE>/d' | sed -e "s/
Host .*Status Information<\/TH>/BLAHBLAHBLAH/g" | sed -e "s/BLAHBLAHBLAH/Host\ \;<\/TH>Service\ \;<\/TH>Status\ \;<\/TH>Last Check\ \;<\/TH>Duration\ \;<\/TH>Attempt\ \;<\/TH>Status Information<\/TH>/g" | sed -e "s// /g; s/<\/A>/ /g" > /tmp/status.html # Copies resulting file to your webshare cp /tmp/status.html /share/nagiosmobile.html -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 matt at frozenatom.com Tue Jan 13 23:11:11 2009 From: matt at frozenatom.com (Matt Nelson) Date: Tue, 13 Jan 2009 15:11:11 -0700 Subject: Not sending alerts Message-ID: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> Hello, We seem to be having an issue with our alert notifications. From what I've determined the command 'notify-by-email' isn't even being called from commands.cfg. I verified this by: 1)replacing the current command with a simple echo "test" > /tmp/test. 2)leaving the mail command in and checking my postfix log - which shows no attempts being made at all. I also don't see anything about sending alerts in my nagios.log/syslog Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP Availability;CRITICAL;HARD;2;Connection refused I have the following configuration for this service: # templates_services.cfg define service{ name critical-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 2 retry_check_interval 1 notification_options w,u,c,r notification_interval 2 notification_period 24x7 register 0 } # services_social.cfg define service { use critical-service host_name mt-ubuntu service_description SMTP Availability contact_groups individuals_group check_command check_smtp flap_detection_enabled 0 } # t_host.cfg define host { use no_icmp host_name mt-ubuntu alias mt-ubuntu address 10.2.23.23 contact_groups individuals_group } # individual_contacts.cfg define contact{ contact_name mt alias MT service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } define contactgroup{ contactgroup_name individuals_group alias Individuals members mt } # commands.cfg # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** NOCNAG *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any assistance would be appreciated. Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Wed Jan 14 00:15:45 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 13 Jan 2009 17:15:45 -0600 Subject: Not sending alerts In-Reply-To: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> References: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> Message-ID: That certainly seems to be a valid configuration. Have you included all your configs in the main nagios.cfg file so that they are all being read? Barring that, do you have any service/host depencies setup? What about escalations? If you have any dependency or escalation configs, I would disable them first before doing any more troubleshooting. James Moseley "Matt Nelson" To nagios-users at lists.sourceforge.net 01/13/2009 04:11 cc PM Subject [Nagios-users] Not sending alerts Hello, We seem to be having an issue with our alert notifications. From what I've determined the command 'notify-by-email' isn't even being called from commands.cfg. I verified this by: 1)replacing the current command with a simple echo "test" > /tmp/test. 2)leaving the mail command in and checking my postfix log - which shows no attempts being made at all. I also don't see anything about sending alerts in my nagios.log/syslog Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP Availability;CRITICAL;HARD;2;Connection refused I have the following configuration for this service: # templates_services.cfg define service{ name critical-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 2 retry_check_interval 1 notification_options w,u,c,r notification_interval 2 notification_period 24x7 register 0 } # services_social.cfg define service { use critical-service host_name mt-ubuntu service_description SMTP Availability contact_groups individuals_group check_command check_smtp flap_detection_enabled 0 } # t_host.cfg define host { use no_icmp host_name mt-ubuntu alias mt-ubuntu address 10.2.23.23 contact_groups individuals_group } # individual_contacts.cfg define contact{ contact_name mt alias MT service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email } define contactgroup{ contactgroup_name individuals_group alias Individuals members mt } # commands.cfg # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** NOCNAG *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any assistance would be appreciated. Matt ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mgagne at iweb.com Wed Jan 14 00:26:58 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Tue, 13 Jan 2009 18:26:58 -0500 Subject: Not sending alerts In-Reply-To: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> References: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> Message-ID: <496D2342.2070607@iweb.com> Hi, Matt Nelson wrote: > > We seem to be having an issue with our alert notifications. From what > I've determined the command 'notify-by-email' isn't even being called > from commands.cfg. Is "/usr/bin/mail" installed? -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 14 01:10:06 2009 From: marc at ena.com (Marc Powell) Date: Tue, 13 Jan 2009 18:10:06 -0600 Subject: Not sending alerts In-Reply-To: References: Message-ID: On Jan 13, 2009, at 5:15 PM, jmoseley at corp.xanadoo.com wrote: > That certainly seems to be a valid configuration. Have you included > all > your configs in the main nagios.cfg file so that they are all being > read? > Barring that, do you have any service/host depencies setup? What > about > escalations? > > If you have any dependency or escalation configs, I would disable them > first before doing any more troubleshooting. ... also verify that you don't have notifications disabled program- wide in nagios.cfg, via the web interface (Process Info) or specifically for this host or service via the web interface (click on the service and/or host name). -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jbroughton at truecos.com Wed Jan 14 03:02:45 2009 From: jbroughton at truecos.com (Jayson Broughton) Date: Tue, 13 Jan 2009 19:02:45 -0700 Subject: downtime large number of hosts? In-Reply-To: References: <598853.45371.qm@web33108.mail.mud.yahoo.com> <55898E8B-B155-4159-9752-4EB8C17C88D7@ena.com> <006901c9726c$ab9bf910$02d3eb30$@com> Message-ID: <000001c975ec$396b1320$ac413960$@com> Shai, The example scripts are actual scripts that you can use..for example: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command _id=36 #!/bin/sh # This is a sample shell script showing how you can submit the DISABLE_HOST_SVC_NOTIFICATIONS command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] DISABLE_HOST_SVC_NOTIFICATIONS;host1\n" $now > $commandfile That is the 'example' script. Just create a file and name it whatever you want..for me I use the hostname in the file name. DISABLE_HOST_SVC_NOTIFICATIONS_HOSTNAME, then chmod the file for execution: chmod u+x DISABLE_HOST_SVC_NOTIFICATIONS_HOSTNAME Edit the file and replace host1 with the hostname that you want to affect, the hostname has to be spelled the same way that it is in your .cfg file. Now you can either run the file manually when you want a downtime, or set it to run in a cronjob. For you since you want a large list of hosts that you want to disable notifications, then try the disable hostgroup script. ~Jayson From: Shai [mailto:shaibn at gmail.com] Sent: Tuesday, January 13, 2009 8:53 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] downtime large number of hosts? Hi, I've seen the help on the nagios external command, but I'm not exactly sure how to make the script. Can someone show me an example? Shai On Fri, Jan 9, 2009 at 5:12 PM, Jayson Broughton wrote: We have some linux servers here that peg-out on CPU/Mem when they are doing a full backup, so I have used the wonderful 'Nagios External Command List' website to custom tailor my alert notifications for hosts/hostgroups every day during a certain time. Specifically the DISABLE_HOST_SVC_NOTIFICATIONS and DISABLE_HOST_SVC_CHECKS. Then when it's time to re-monitor, a crontab entry runs: ENABLE_HOST_SVC_NOTIFICATIONS & ENABLE_HOST_SVC_CHECKS. Check out those 4 options on: http://www.nagios.org/developerinfo/externalcommands/commandlist.php The examples give you an excellent base script to work off of. ~Jayson -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 08, 2009 8:05 AM To: Nagios Users Subject: Re: [Nagios-users] downtime large number of hosts? On Jan 8, 2009, at 8:51 AM, Mahmoud Hanafi wrote: > Is there a easy way to schedule down time for large number of hosts/ > services at the same time? The downtime web interface doesn't accept > wildcard characters. If they are all in the same hostgroup you can click on the hostgroup name (in ()'s) and schedule downtime for all of them at once, otherwise, no not that I am aware of outside of some simple scripting to send the appropriate external command for each host through the external command file. -- Marc ---------------------------------------------------------------------------- -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. ---------------------------------------------------------------------------- -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 epearce at amberpoint.com Wed Jan 14 04:49:00 2009 From: epearce at amberpoint.com (Eric Pearce) Date: Tue, 13 Jan 2009 19:49:00 -0800 Subject: Windows disk health monitoring with smartmontoolsl/NSClient++? Message-ID: <2E3354BE557D445583DBFAA0E1818F03@ap872c3fe40484> I'd like to get SMART disk health status for Windows machines. It looks like smartctl would work fine on Windows - has someone got it working with NSClient++? I've found some people asking about this in the list archives, but haven't found any concrete examples. All I'm looking for is a basic "OK" or "something bad is going to happen soon" alert from Nagios. Thanks -e -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ian at acces.co.jp Wed Jan 14 08:44:06 2009 From: ian at acces.co.jp (Ian Masters) Date: Wed, 14 Jan 2009 16:44:06 +0900 Subject: Can Nagios support foreign languages? In-Reply-To: References: Message-ID: <496D97C6.3030200@acces.co.jp> > I am setting up Nagios for a branch office in Thailand. In the > "Service Detail" page of Nagios, we would like to put some Thai > characters in the "Host" and "Service" columns, but we failed to do > that. So, I would like to know if Nagios can support foreign > languages. Where can I get more information about this? Can't help you specifically about Thai but a Japanese patch for the web interface exists and I've used it (http://sourceforge.jp/projects/nagios-jp/). Try googling for "nagios thai patch". Good luck! Ian ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Sascha.Runschke at gfkl.com Wed Jan 14 09:54:19 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 14 Jan 2009 09:54:19 +0100 Subject: Antwort: Here Script for Formatting Nagios Status Page for Mobile Devices In-Reply-To: <009401c975a4$da317350$8e9459f0$@edu> References: <009401c975a4$da317350$8e9459f0$@edu> Message-ID: "Anthony Pisano" schrieb am 13.01.2009 18:32:04: > I've created a script to solve the following problem we were having > getting System Status on our Mobile Devices. Feel free to use it if > it will help you as well. > > Problem: We needed to be able to quickly view network status on our > mobile devices while leaving the Nagios server on our Internal Network. > > Solution: > 1. Create mobile Nagios user with Read only access on Nagios > 2. Copy script to a server running apache on your DMZ > 3. Setup Crontab to run script at an interval of your choosing. Well, that would mean you have to allow a DMZ machine to initiate connections into your internal LAN - which is a very, very, very bad idea... Regards Sascha -- Sascha Runschke IT-Infrastruktur fon : +49 (201) / 102-1879 fax : +49 (201) / 102-1102105 mobil : +49 (173) / 5419665 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 james.green at mjog.com Wed Jan 14 11:57:49 2009 From: james.green at mjog.com (James Green) Date: Wed, 14 Jan 2009 10:57:49 -0000 Subject: Next check time bug? Message-ID: <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> Hi, According to the web interface, the last check of every one of our hosts and services was done just before 0300 this morning. When I looked at them individually each had a Next check time of 2009-01-15 00:00:00. I am baffled. I have checked the log, it appears the last service checks were in fact at 00:00:00 this morning, followed by "Auto-save of retention data completed successfully." repeatedly. I changed the next check time on one of the services and indeed that worked, logged the matter, and the next check time is now updating normally. We are using 64 bit Ubuntu 8.10 with nagios 3.0.2-1ubuntu1.1. The platform is Intel Core2 6600 with 2GB RAM. Does anyone have any pointers on this matter? Clearly this is requiring me to come up with a "why" and how to prevent it happening again. Thanks, James Green ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 t.ottavi at medi.fr Wed Jan 14 13:02:30 2009 From: t.ottavi at medi.fr (Toussaint OTTAVI) Date: Wed, 14 Jan 2009 13:02:30 +0100 Subject: New plugin : Symantec BackupExec for Windows Message-ID: <496DD456.7080600@medi.fr> Hi, I wrote a little plugin to determine the status of scheduled backup jobs in Symantec BackupExec for Windows. It's an executable file, to be run on the target machine via check_nrpe. It returns the status of a specific backup job, and it can also trigger a 'warning' or 'critical' status if the last occurence of the job is older than the specified amount of days. It works by processing the XML log files generated by BackupExec. For those who may be interested, I put it on NagiosExchange. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2885.html;d=1 Kind regards -- *Toussaint OTTAVI* *MEDI INFORMATIQUE* ***Mail:* t.ottavi at medi.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 sosagabriel at gmail.com Wed Jan 14 14:48:39 2009 From: sosagabriel at gmail.com (Gabriel Sosa) Date: Wed, 14 Jan 2009 11:48:39 -0200 Subject: Next check time bug? In-Reply-To: <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> References: <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> Message-ID: <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> I have the exactly same problem this is my thread [1] but not not replies so far. [1] http://sourceforge.net/mailarchive/message.php?msg_name=4498aded0901091129l7c97e812h6deb91335a92700d%40mail.gmail.com On Wed, Jan 14, 2009 at 8:57 AM, James Green wrote: > Hi, > > According to the web interface, the last check of every one of our hosts > and services was done just before 0300 this morning. When I looked at > them individually each had a Next check time of 2009-01-15 00:00:00. > > I am baffled. > > I have checked the log, it appears the last service checks were in fact > at 00:00:00 this morning, followed by "Auto-save of retention data > completed successfully." repeatedly. > > I changed the next check time on one of the services and indeed that > worked, logged the matter, and the next check time is now updating > normally. > > We are using 64 bit Ubuntu 8.10 with nagios 3.0.2-1ubuntu1.1. The > platform is Intel Core2 6600 with 2GB RAM. > > Does anyone have any pointers on this matter? Clearly this is requiring > me to come up with a "why" and how to prevent it happening again. > > Thanks, > > James Green > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Los sabios buscan la sabidur?a; los necios creen haberla encontrado. Gabriel Sosa ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 james.green at mjog.com Wed Jan 14 15:00:24 2009 From: james.green at mjog.com (James Green) Date: Wed, 14 Jan 2009 14:00:24 -0000 Subject: Next check time bug? In-Reply-To: <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> References: <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> Message-ID: <5144EF5B0ABC6745BEE64C74E43ABD8F01394C59@moneypenny.softoption.local> Hi, Shortly after I sent the email I checked our internal Nagios installation (as opposed to production) which is configured similarly but for different targets. This exhibits the same problem. Each host & service check last performed shortly before 0300 this morning then the next check was scheduled for midnight tonight. I do have one thing to add further: The timeperiod configured is 24x7, however ours have an exclude for backups (03:00-03:30). If this is significant I do not understand why the next check is not scheduled for just after 03:30. Each check is configured for 4 minute intervals. Clearly I have checked via the web interface to confirm Nagios did indeed interpret my configuration correctly as far as I can tell. James -----Original Message----- From: Gabriel Sosa [mailto:sosagabriel at gmail.com] Sent: 14 January 2009 13:49 To: James Green Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Next check time bug? I have the exactly same problem this is my thread [1] but not not replies so far. [1] http://sourceforge.net/mailarchive/message.php?msg_name=4498aded0901091129l7c97e812h6deb91335a92700d%40mail.gmail.com On Wed, Jan 14, 2009 at 8:57 AM, James Green wrote: > Hi, > > According to the web interface, the last check of every one of our > hosts and services was done just before 0300 this morning. When I > looked at them individually each had a Next check time of 2009-01-15 00:00:00. > > I am baffled. > > I have checked the log, it appears the last service checks were in > fact at 00:00:00 this morning, followed by "Auto-save of retention > data completed successfully." repeatedly. > > I changed the next check time on one of the services and indeed that > worked, logged the matter, and the next check time is now updating > normally. > > We are using 64 bit Ubuntu 8.10 with nagios 3.0.2-1ubuntu1.1. The > platform is Intel Core2 6600 with 2GB RAM. > > Does anyone have any pointers on this matter? Clearly this is > requiring me to come up with a "why" and how to prevent it happening again. > > Thanks, > > James Green > > ---------------------------------------------------------------------- > -------- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Los sabios buscan la sabidur?a; los necios creen haberla encontrado. Gabriel Sosa ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jaimeventura at ipp.pt Wed Jan 14 15:10:58 2009 From: jaimeventura at ipp.pt (Jaime Ventura) Date: Wed, 14 Jan 2009 14:10:58 +0000 Subject: Where does nagios keeps data for Reporting/trend/availabiility/... Message-ID: <496DF272.3050107@ipp.pt> Hello, Nagios can give you precious information about host/service trend,availability... So, I need to backup the files were the data used for reporting is. Does any one knows which files should I backup? Thanks Jaime ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Wed Jan 14 15:43:01 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 14 Jan 2009 14:43:01 +0000 Subject: Where does nagios keeps data for Reporting/trend/availabiility/... In-Reply-To: <496DF272.3050107@ipp.pt> References: <496DF272.3050107@ipp.pt> Message-ID: <200901141443.01131.assaf.flatto@ssp-intl.com> look in the var directory under the nagios installation . On Wednesday 14 January 2009 14:10:58 Jaime Ventura wrote: > Hello, > Nagios can give you precious information about host/service > trend,availability... > So, I need to backup the files were the data used for reporting is. > Does any one knows which files should I backup? > > Thanks > > Jaime > > > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ojan at expertise-online.net Wed Jan 14 15:44:12 2009 From: ojan at expertise-online.net (Olivier Jan) Date: Wed, 14 Jan 2009 15:44:12 +0100 Subject: Where does nagios keeps data for Reporting/trend/availabiility/... In-Reply-To: <496DF272.3050107@ipp.pt> References: <496DF272.3050107@ipp.pt> Message-ID: <496DFA3C.9090602@expertise-online.net> Hello, You have to backup the nagios logfiles stored by default in /usr/local/nagios/var/archives. Olivier Jan http://nagios-fr.org Jaime Ventura a ?crit : > Hello, > Nagios can give you precious information about host/service > trend,availability... > So, I need to backup the files were the data used for reporting is. > Does any one knows which files should I backup? > > Thanks > > Jaime > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Steve.Onotsky at broadridge.com Wed Jan 14 15:19:35 2009 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Wed, 14 Jan 2009 09:19:35 -0500 Subject: Antwort: Here Script for Formatting Nagios StatusPage for Mobile Devices In-Reply-To: References: <009401c975a4$da317350$8e9459f0$@edu> Message-ID: <30A417B62E7EE448B3864ADC881CEFD6076F124D@missemsa01.bsg.ad.adp.com> > Well, that would mean you have to allow a DMZ machine to initiate > connections into your internal LAN - which is a very, very, very bad > idea... In most circumstances, yes, but (if I understand the setup correctly) an organization with a Blackberry Enterprise Server could pass web traffic from registered devices into the internal network. From there, internal firewalls and routes permitting, the BES could enable access to such a service from "outside". Not exactly ideal from a pure security perspective, but it's a damned sight better than a direct DMZ connection. I, personally, am intrigued but the idea, and am going to give it a shot (if I ever get a few spare moments). Steve Onotsky Server Support Technologist Broadridge Investor Communication Solutions, Canada 5970 Chedworth Way Mississauga ON L5R 4G5 Tel: (905) 507-5328 Fax: (905) 507-5312 Inet: steve.onotsky at broadridge.com Quis custodiet ipsos custodes? - Juvenal, Satires, VI, 347 This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Wed Jan 14 15:44:50 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Wed, 14 Jan 2009 15:44:50 +0100 Subject: Where does nagios keeps data for Reporting/trend/availabiility/... In-Reply-To: <496DF272.3050107@ipp.pt> References: <496DF272.3050107@ipp.pt> Message-ID: <496DFA62.2000701@ederdrom.de> Jaime Ventura schrieb: > Hello, > Nagios can give you precious information about host/service > trend,availability... > So, I need to backup the files were the data used for reporting is. > Does any one knows which files should I backup? /var/archives/* Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Wed Jan 14 16:24:34 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 14 Jan 2009 08:24:34 -0700 Subject: Not sending alerts In-Reply-To: References: Message-ID: <148f6bb30901140724g11a7fcddn8e57bbee4f52cb3a@mail.gmail.com> Trying some more things, and going through the suggestions from this thread, it was verified that we can send custom service, and host alerts. We also get host alerts, but no service alerts. On Tue, Jan 13, 2009 at 5:10 PM, Marc Powell wrote: > > On Jan 13, 2009, at 5:15 PM, jmoseley at corp.xanadoo.com wrote: > > > That certainly seems to be a valid configuration. Have you included > > all > > your configs in the main nagios.cfg file so that they are all being > > read? > > Barring that, do you have any service/host depencies setup? What > > about > > escalations? > > > > If you have any dependency or escalation configs, I would disable them > > first before doing any more troubleshooting. > > > ... also verify that you don't have notifications disabled program- > wide in nagios.cfg, via the web interface (Process Info) or > specifically for this host or service via the web interface (click on > the service and/or host name). > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 albrecht.dress at arcor.de Wed Jan 14 16:52:50 2009 From: albrecht.dress at arcor.de (Albrecht Dreß) Date: Wed, 14 Jan 2009 16:52:50 +0100 (CET) Subject: Next check time bug? In-Reply-To: <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> References: <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> Message-ID: <19307027.1231948370394.JavaMail.ngmail@webmail10.arcor-online.net> > I have the exactly same problem this is my thread [1] but not not > replies so far. No idea if this is related, but I discovered a bug which resulted in notifications *never* being sent under certain circumstances, so this "smells" somewhat similar... You may want to check the diffs from and see if they solve your issue (you have to compile nagios yourself, though, but the diffs should also be usable with the 3.0.6 tarball). Cheers, Albrecht. Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmf?hrer mit Movie Star Bewertungen von TV Movie. Au?erdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 kasper at nordal-lund.dk Wed Jan 14 17:14:21 2009 From: kasper at nordal-lund.dk (Kasper Lund) Date: Wed, 14 Jan 2009 17:14:21 +0100 Subject: start/stop services on remote windows box. Message-ID: <496E0F5D.2010405@nordal-lund.dk> Hi there. I dont know if this is common knowledge, but this is something that have bothered me for some time now. How do i start/stop/restart a service on e remote windows box from an eventhandler script? Today i found this great tool: http://eol.ovh.org/winexe/ Winexe is a GNU/linux port of sysinternal psexec tool if you are familier with that. I hope this can help you creating eventhandler scripts to manage those windows boxes. Cheers Kasper ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 t.ottavi at medi.fr Wed Jan 14 17:46:23 2009 From: t.ottavi at medi.fr (Toussaint OTTAVI) Date: Wed, 14 Jan 2009 17:46:23 +0100 Subject: How to query Nagios raw results for external monitoring software ? Message-ID: <496E16DF.4030907@medi.fr> Hi list, I would like to display the results of Nagios checks in a small window or popup, according to my requirements. I want to write a small Windows program to do that. Something like "nagstamon" but with personal filtering options. Problem : I do not have any idea about how to query the Nagios server to obtain the results of the checks. I think I have to do 'cgi' requests, but I'm not a WEB expert at all. Could someone point out some documentation about how to query Nagios raw results ? Thank you in advance. Kind regards -- *Toussaint OTTAVI* *MEDI INFORMATIQUE* *Mail:* t.ottavi at medi.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 john.nagios at gmail.com Wed Jan 14 19:33:37 2009 From: john.nagios at gmail.com (Nagios User) Date: Wed, 14 Jan 2009 13:33:37 -0500 Subject: notify-html-email.sh Message-ID: I am trying to configure "notify-html-email.sh" and I cant get it to work. If you have this installed on yours please advise me. My regular mail notifications works fine. [root at nmsweb libexec]# ls -al notify-html-email.sh -rwxr-xr-x 1 nagios nagios 30556 Jan 13 11:47 notify-html-email.sh #more misccommands.cfg define command { command_name service-notify-html-email command_line /usr/local/nagios/libexec/notify-html-email.sh service } define command { command_name host-notify-html-email command_line /usr/local/nagios/libexec/notify-html-email.sh host } +++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAILER=/usr/sbin/postfix # Any options necessary to read the FROM: and TO: fields, etc. from the input MAILOPTS="-t" # Full path to printf PRINTF=/usr/bin/printf # Full path to Nagios images directory. Do NOT include a trailing backslash cha racter! ('/') IMAGES=/usr/local/nagios/share/images # Text name for your reply-to address. E-mail address is gleaned from Nagios co nfig REPLYNAME="Southern Union Networks" REPLYADDRESS="$REPLYNAME <$NAGIOS_ADMINEMAIL>" # Full URL to Nagios front-end. Do NOT include a trailing backslash character! ('/') URLPATH="http://10.31.46.100/nagios" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++== ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 justinp at newmediagateway.com Wed Jan 14 18:52:56 2009 From: justinp at newmediagateway.com (Justin Pasher) Date: Wed, 14 Jan 2009 11:52:56 -0600 Subject: Trouble getting hostgroup exclusions to work Message-ID: <496E2678.5040503@newmediagateway.com> Hello, Nagios 3.0.6-2~bpo40+1 (Debian etch-backports) I'm beginning to wonder whether what I want to accomplish is possible (since it's not officially documented). After seeing a post a few days ago, I discovered you could use an "!" in front of a hostname/hostgroup to exclude that host from a list. I decided to simplify my config a bit using this, and for the most part it works great. However, I noticed that when I tried to exclude an entire hostgroup, it wouldn't work. My setup is a basic "define these hostgroups to identify the 'role' of a server and define a services block to attach a specific check to that hostgroup". Attached is the config snippet I am working with right now (simplified by reducing the number of hosts, but hopefully not too much to eliminate the problem). Basically, there are three levels of server load checks depending on what is considered a critical load. Most servers fall under the "linux-load" hostgroup and service, but a few need to be in a different one with a higher load threshold. I'm trying to accomplish this by excluding the servers in the "linux-load-big" and "linux-load-big2" from the "linux-load" group, but it's not working properly. All servers in the "linux-load-big" group are also showing up in the "linux-load" group. If I add a "members" directive within one of the hostgroups and specify individual host names, it will properly exclude that host. It just doesn't seem to be doing it when I try to exclude an entire hostgroup. The docs say you can do this for a "service" block, but it doesn't specifically state you can do it for a hostgroup block, so that's why I'm wondering if it is even possible. http://nagios.sourceforge.net/docs/3_0/objecttricks.html Thanks. ---------------------------------------- define hostgroup { hostgroup_name debian-servers alias Debian GNU/Linux Servers members debhost1,debhost2,debhost3,debhost4 } define hostgroup { hostgroup_name gentoo-servers alias Gentoo GNU/Linux Servers members gentoohost1 } define hostgroup { hostgroup_name redhat-servers alias RedHat GNU/Linux Servers members rhhost1,rhhost2,rhhost3,rhhost4 } define hostgroup { hostgroup_name linux-load alias Linux Load Monitoring hostgroup_members debian-servers,gentoo-servers,redhat-servers,!linux-load-big,!linux-load-big2 } define hostgroup { hostgroup_name linux-load-big alias Linux Load (big) Monitoring members debhost3,debhost4 } define hostgroup { hostgroup_name linux-load-big2 alias Linux Load (big2) Monitoring members rhhost3,rhhost4 } define service { hostgroup_name linux-load service_description LOAD check_command check_nrpe_7arg!check_load!6.0!5.0!5.0!8.0!7.0!7.0 } define service { hostgroup_name linux-load-big service_description LOAD-BIG check_command check_nrpe_7arg!check_load!10.0!9.0!9.0!12.0!11.0!11.0 } define service { hostgroup_name linux-load-big2 service_description LOAD-BIG2 check_command check_nrpe_7arg!check_load!15.0!14.0!14.0!17.0!16.0!16.0 } ---------------------------------------- Justin Pasher ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Wed Jan 14 20:00:48 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Wed, 14 Jan 2009 14:00:48 -0500 Subject: Please help. Problem using check_nrpe and check_mailq Message-ID: <496E3660.2060900@iris.uh.cu> I have installed NRPE to check a Postfix Server's mail queue. I have changed timeouts in order to obtain what I want. In Postfix Server I have declared in nrpe.cfg this: command[check_cola_correos]=/usr/local/nagios/libexec/check_mailq -w 5000 -c 7000 -M postfix -t 450 and when I run from Nagios Server this: check_nrpe -H -t 500 -c check_cola_correo I obtain this error message: NRPE: Command timed out after 60 seconds What can I do? I don't know where is this timeout of 60 seconds. Thanks -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Wed Jan 14 20:31:04 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 14 Jan 2009 13:31:04 -0600 Subject: Please help. Problem using check_nrpe and check_mailq In-Reply-To: <496E3660.2060900@iris.uh.cu> References: <496E3660.2060900@iris.uh.cu> Message-ID: Sergio Ariel wrote: >I have installed NRPE to check a Postfix Server's mail queue. >I have changed timeouts in order to obtain what I want. > >In Postfix Server I have declared in nrpe.cfg this: > >command[check_cola_correos]=/usr/local/nagios/libexec/check_mailq -w >5000 -c 7000 -M postfix -t 450 > >and when I run from Nagios Server this: >check_nrpe -H -t 500 -c check_cola_correo > >I obtain this error message: >NRPE: Command timed out after 60 seconds > >What can I do? >I don't know where is this timeout of 60 seconds. > >Thanks Perhaps the 'service_check_timeout' setting in the main nagios.cfg file? James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Thu Jan 15 03:35:48 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 14 Jan 2009 19:35:48 -0700 Subject: Not sending alerts In-Reply-To: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> References: <148f6bb30901131411p2a3c2b56ge0e4dcfb95d0bd48@mail.gmail.com> Message-ID: <148f6bb30901141835w20dd6632mc3f1af82d64c869f@mail.gmail.com> SOLVED Well I created a new host, service etc, everything was exactly the same as one I was testing that had the broken service. It worked fine. I ended up removing the retention.dat file and restarting, and after everything, just under 2000 services :), ran everything was fine. I plan to look at the old retention.dat file and compare it with was is currently saved for that host. On Tue, Jan 13, 2009 at 3:11 PM, Matt Nelson wrote: > Hello, > > We seem to be having an issue with our alert notifications. From what I've > determined the command 'notify-by-email' isn't even being called from > commands.cfg. I verified this by: > 1)replacing the current command with a simple echo "test" > /tmp/test. > 2)leaving the mail command in and checking my postfix log - which shows no > attempts being made at all. > > I also don't see anything about sending alerts in my nagios.log/syslog > Jan 13 13:13:26 nocnag02 nagios: SERVICE ALERT: mt-ubuntu;SMTP > Availability;CRITICAL;HARD;2;Connection refused > > I have the following configuration for this service: > > # templates_services.cfg > define service{ > name critical-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 0 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 1 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 2 > retry_check_interval 1 > notification_options w,u,c,r > notification_interval 2 > notification_period 24x7 > register 0 > } > > # services_social.cfg > define service { > use critical-service > host_name mt-ubuntu > service_description SMTP Availability > contact_groups individuals_group > check_command check_smtp > flap_detection_enabled 0 > } > > # t_host.cfg > define host { > use no_icmp > host_name mt-ubuntu > alias mt-ubuntu > address 10.2.23.23 > contact_groups individuals_group > } > > # individual_contacts.cfg > define contact{ > contact_name mt > alias MT > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c > host_notification_options d,u,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email > } > > define contactgroup{ > contactgroup_name individuals_group > alias Individuals > members mt > } > > # commands.cfg > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** NOCNAG > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > > Any assistance would be appreciated. > > Matt > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 amontibello at gmail.com Thu Jan 15 05:15:19 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 14 Jan 2009 23:15:19 -0500 Subject: How to query Nagios raw results for external monitoring software ? In-Reply-To: <496E16DF.4030907@medi.fr> References: <496E16DF.4030907@medi.fr> Message-ID: browsing through nagstamon documentation it looks like it may meet your description. as for the personal filtering CAN/SHOULD that be done through setting up a user login that for the Nagios CGI then configure NagStamon with that user ID? you could triple check nagios excange for something more similar to your needs. 3 years ago I wrote a windows XP app similar to NAgStamon, it use OCSP send all results to logged in CLient applications. (however I no longer have the source code ) This gave constant updates of status and data to several different applications that displayed different things. with this model - filtering could then be done in the OCSP script, or on the client side depending on the long run requirements Good luck, Tony (Author of NC_Net) On Wed, Jan 14, 2009 at 11:46 AM, Toussaint OTTAVI wrote: > Hi list, > > I would like to display the results of Nagios checks in a small window or > popup, according to my requirements. I want to write a small Windows > program to do that. Something like "nagstamon" but with personal filtering > options. > > Problem : > I do not have any idea about how to query the Nagios server to obtain the > results of the checks. I think I have to do 'cgi' requests, but I'm not a > WEB expert at all. > > Could someone point out some documentation about how to query Nagios raw > results ? > > Thank you in advance. > > Kind regards > -- > > *Toussaint OTTAVI* > > *MEDI INFORMATIQUE* > *Mail:* t.ottavi at medi.fr > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 amontibello at gmail.com Thu Jan 15 05:23:12 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 14 Jan 2009 23:23:12 -0500 Subject: start/stop services on remote windows box. In-Reply-To: <496E0F5D.2010405@nordal-lund.dk> References: <496E0F5D.2010405@nordal-lund.dk> Message-ID: I use a script through NC_NEt passing in the name of the service to restart. or if you already know the service name, a bat can be called to restart it through NC_Net. scripts can also be run through NRPE Alternatively the Windows Service can be configurd to restart if it unexpecedly stoped through the service properties. (Depending on the Host needs) TOny (Author of NC_NEt) On Wed, Jan 14, 2009 at 11:14 AM, Kasper Lund wrote: > Hi there. > > I dont know if this is common knowledge, but this is something that have > bothered me for some time now. > > How do i start/stop/restart a service on e remote windows box from an > eventhandler script? > > Today i found this great tool: http://eol.ovh.org/winexe/ > > Winexe is a GNU/linux port of sysinternal psexec tool if you are > familier with that. > > I hope this can help you creating eventhandler scripts to manage those > windows boxes. > > Cheers > > Kasper > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 amontibello at gmail.com Thu Jan 15 05:58:58 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 14 Jan 2009 23:58:58 -0500 Subject: Windows disk health monitoring with smartmontoolsl/NSClient++? In-Reply-To: <2E3354BE557D445583DBFAA0E1818F03@ap872c3fe40484> References: <2E3354BE557D445583DBFAA0E1818F03@ap872c3fe40484> Message-ID: USe WMI: the path to the smart data: root/Cimv2/Win32_DiskDrive/ [Instance] --> Status Hope this helps Tony (Author of NC_Net) On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce wrote: > I'd like to get SMART disk health status for Windows machines. It looks > like smartctl would work fine on Windows - has someone got it working with > NSClient++? > I've found some people asking about this in the list archives, but haven't > found any concrete examples. > All I'm looking for is a basic "OK" or "something bad is going to happen > soon" alert from Nagios. > Thanks > -e > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 Josh.Morris at wrightmed.com Thu Jan 15 12:05:27 2009 From: Josh.Morris at wrightmed.com (Morris, Josh) Date: Thu, 15 Jan 2009 05:05:27 -0600 Subject: Event Handlers Message-ID: <4D438C6202ADF041A2FA9A835354479901D72E83@wmcex.wmcmed.com> Is there a way to run the an event handler from the web interface? Example: When our internet goes down I have an event handler to restart a service on one of our Linux servers. This works great if the internet is down for a minute or less. Once I know the internet is back up if it has been down for more than a minute, I need to run the event handler again but I don't see anywhere to run the event handler from the web interface. I am having to remote into the server and reboot this service. Thanks for your help in advance. Josh Morris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 sean.obrien at jp.fujitsu.com Thu Jan 15 12:13:31 2009 From: sean.obrien at jp.fujitsu.com (Sean O`Brien) Date: Thu, 15 Jan 2009 20:13:31 +0900 Subject: Retrieving Data from M.I.B. Message-ID: <200901151113.AA00237@FM-1303930367.jp.fujitsu.com> Dear Mailing List, My question is regarding the check_snmp_int.pl plug-in functionality. At present the script retrieves network information from the M.I.B.-II and has the functionality to output performance data in octects on specified devices. Using, for example: -Soption: Include speed in performance output in bits/s as '_speed_bps' -y option : output performance data in % of interface speed However, is there a plug-in?(similar to the one above) that can calculate the percentage of interface speeds of Unicast and Broadcast packets? Kind Regards ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Thu Jan 15 12:20:54 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 15 Jan 2009 06:20:54 -0500 Subject: Retrieving Data from M.I.B. In-Reply-To: <200901151113.AA00237@FM-1303930367.jp.fujitsu.com> References: <200901151113.AA00237@FM-1303930367.jp.fujitsu.com> Message-ID: <496F1C16.4010405@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/01/09 06:13 AM, Sean O`Brien wrote: > Dear Mailing List, > > > My question is regarding the check_snmp_int.pl plug-in functionality. > > At present the script retrieves network information from the M.I.B.-II and has the functionality to output performance > data in octects on specified devices. > Using, for example: > > -Soption: Include speed in performance output in bits/s as '_speed_bps' > -y option : output performance data in % of interface speed > > > However, is there a plug-in?(similar to the one above) that can calculate the percentage of interface speeds of Unicast > and Broadcast packets? To calculate percentage, you need a maximum value and you don't have one for packets. Packet throughput depends mainly on average packet size and hardware so there's no way it could be shown in percentage. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJbxwW6dZ+Kt5BchYRAiE5AJwJg8dzHwPvd/tuSCQhV1qozw0fLgCg3tHr 1B1BP4bwPBeUVugePeRFkaA= =mvWn -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Thu Jan 15 15:06:09 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Thu, 15 Jan 2009 09:06:09 -0500 Subject: Please help. Problem using check_nrpe and check_mailq In-Reply-To: References: Message-ID: <496F42D1.3030606@iris.uh.cu> I stopped Nagios first, and executed from Nagios Server: check_nrpe -H -t 500 -c check_cola_correo and the result was the same (NRPE: Command timed out after 60 seconds) so, I don't think it's because a nagios.cfg's timeout definition. Please, what do you think about? jmoseley at corp.xanadoo.com wrote: > > > > Sergio Ariel wrote: > > >> I have installed NRPE to check a Postfix Server's mail queue. >> I have changed timeouts in order to obtain what I want. >> >> In Postfix Server I have declared in nrpe.cfg this: >> >> command[check_cola_correos]=/usr/local/nagios/libexec/check_mailq -w >> 5000 -c 7000 -M postfix -t 450 >> >> and when I run from Nagios Server this: >> check_nrpe -H -t 500 -c check_cola_correo >> >> I obtain this error message: >> NRPE: Command timed out after 60 seconds >> >> What can I do? >> I don't know where is this timeout of 60 seconds. >> >> Thanks > > Perhaps the 'service_check_timeout' setting in the main nagios.cfg file? > > James > > > -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Thu Jan 15 15:15:13 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 08:15:13 -0600 Subject: Please help. Problem using check_nrpe and check_mailq In-Reply-To: <496F42D1.3030606@iris.uh.cu> References: <496F42D1.3030606@iris.uh.cu> Message-ID: Sergio Ariel wrote: >I stopped Nagios first, and executed from Nagios Server: >check_nrpe -H -t 500 -c check_cola_correo > >and the result was the same (NRPE: Command timed out after 60 seconds) >so, I don't think it's because a nagios.cfg's timeout definition. > >Please, what do you think about? You need to adjust the timeout setting in nagios.cfg on the nagios server AND adjusting the timeout setting (command_timeout=60) in the nrpe.cfg on the Postfix server... Those values will override anything you set in the command line argument. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 palleje at gmail.com Thu Jan 15 15:28:00 2009 From: palleje at gmail.com (Palle L Jensen) Date: Thu, 15 Jan 2009 09:28:00 -0500 Subject: Acknowledged by user + Service action url In-Reply-To: References: <496E16DF.4030907@medi.fr> Message-ID: <24BAD962951246718908F92F2A21C421@na.dsmain.com> Hello, I have 2 problems that I am currently working on. 1. In Nagios Web-interface and when someone acknowledges a problem, the Author (your name) it is pre-populated with "Nagios" and cannot be changed. We would like to be able to populate that with operators that acknowledge the problem. - I have looked around on settings and permissions but can't find any solution. 2. I wanted to have service action url in the acknowledge notes being sent to operators from Nagios. The host action url works fine, but for the service it does not populate the url in the notes. - Below is how my commands look. In commands.cfg it looks like this: ------ For host - and this works with action url: ------ notify-host-by-email /usr/bin/printf "%b" "***** Nagios Monitoring 3.0.1 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nDate/Time: $LONGDATETIME$\n\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nOperator: $HOSTACKAUTHOR$\nComment: $HOSTACKCOMMENT$\nUrl: $HOSTACTIONURL$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ Acknowledge note looks like this: ***** Nagios Monitoring 3.0.1 ***** Notification Type: ACKNOWLEDGEMENT Date/Time: Wed Jan 14 06:58:12 EST 2009 Host: hostname State: DOWN Address: 1xx.xx.xxx.xxx Info: CRITICAL - Host Unreachable (1xx.xx.xxx.xxx) Operator: nagios Comment: Server was Microsoft patched and rebooted Url: http://1xx.xx.xxx.xxx/nagios/cgi-bin/extinfo.cgi?type=1 &host=hostname ------ For service - this does not work with action url: ------- notify-service-by-email /usr/bin/printf "%b" "***** CCO Nagios Monitoring 3.0.1 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nDate/Time: $LONGDATETIME$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nOperator: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\nUrl: $SERVICEACTIONURL$\nInfo:\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ Acknowledge note looks like this: ***** Nagios Monitoring 3.0.1 ***** Notification Type: ACKNOWLEDGEMENT Date/Time: Tue Jan 13 07:38:43 EST 2009 Service: Disk-C Host: hostname Address: 1xx.xx.xxx.xxx State: WARNING Operator: nagios Comment: Need to free up space, forwarding to operator xxxxx. Url: Info: c:\ - total: 9.77 Gb - used: 9.28 Gb (95%) - free 0.48 Gb (5%) ------------------------------------------------- If anyone has any suggestions for changes that would make the 2 above problems working it would be greatly appreciated. Thanks, PJ <.|.> OS:openSUSE 10.3 - Nagios:3.01 - Plugin 3.11 <.|.> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 james.green at mjog.com Thu Jan 15 15:29:23 2009 From: james.green at mjog.com (James Green) Date: Thu, 15 Jan 2009 14:29:23 -0000 Subject: Next check time bug? In-Reply-To: <19307027.1231948370394.JavaMail.ngmail@webmail10.arcor-online.net> References: <4498aded0901140548o69befa07mf85d7c3da6f8e64b@mail.gmail.com> <5144EF5B0ABC6745BEE64C74E43ABD8F01394C39@moneypenny.softoption.local> <19307027.1231948370394.JavaMail.ngmail@webmail10.arcor-online.net> Message-ID: <5144EF5B0ABC6745BEE64C74E43ABD8F01394CE9@moneypenny.softoption.local> Albrecht, Can you say if your patches made it into the Nagios build tree? It certainly sounds like a good contender. The first patch fails to apply to the version shipped by Ubuntu 8.10 so either I wait for a fixed build in the months to come or I grab the source code with your patch applied. Interestingly my nagios installations again reset the next check time to midnight tonight, so we effectively have monitoring 3.5hrsx7d at the moment :( Might need to reconfigure in other ways I think. James -----Original Message----- From: Albrecht Dre? [mailto:albrecht.dress at arcor.de] Sent: 14 January 2009 15:53 To: sosagabriel at gmail.com; James Green Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Next check time bug? > I have the exactly same problem this is my thread [1] but not not > replies so far. No idea if this is related, but I discovered a bug which resulted in notifications *never* being sent under certain circumstances, so this "smells" somewhat similar... You may want to check the diffs from and see if they solve your issue (you have to compile nagios yourself, though, but the diffs should also be usable with the 3.0.6 tarball). Cheers, Albrecht. Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmf?hrer mit Movie Star Bewertungen von TV Movie. Au?erdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 vitro.co.uk Thu Jan 15 14:58:17 2009 From: nagios at vitro.co.uk (nagios) Date: Thu, 15 Jan 2009 13:58:17 -0000 Subject: Calendar dates in timeperiods Message-ID: <003101c97719$530b0a50$f9211ef0$@co.uk> Hi Specs: Nagios 3.0.3 CentOS release 5.2 (Final) I'm trying to configure a 'vacation' timeperiod so I will not receive alerts using calendar dates, but once the dates are accepted into nagios, they seem to go skewiff. My config looks like this; define timeperiod{ timeperiod_name kristian_vacation alias Times Kristian is not in the office. 2009-01-17 - 2009-02-10 00:00-24:00 } >From the web interface, it changes into this; kristian_vacation Times Kristian is not in the office. 2009--1-17 - 2009-00-10 00:00:00 - 24:00:00 as you can see, the calendar dates change from 2009-01-17 - 2009-02-10 to 2009--1-17 - 2009-00-10 Is anybody else seeing the same thing or am I doing something obviously wrong? Cheers Kristian ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 15 16:29:07 2009 From: marc at ena.com (Marc Powell) Date: Thu, 15 Jan 2009 09:29:07 -0600 Subject: Please help. Problem using check_nrpe and check_mailq In-Reply-To: <496F42D1.3030606@iris.uh.cu> References: <496F42D1.3030606@iris.uh.cu> Message-ID: <0F2F3692-9041-410F-AA1B-EBF7148C5121@ena.com> On Jan 15, 2009, at 8:06 AM, Sergio Ariel wrote: > I stopped Nagios first, and executed from Nagios Server: > check_nrpe -H -t 500 -c check_cola_correo > > and the result was the same (NRPE: Command timed out after 60 seconds) > so, I don't think it's because a nagios.cfg's timeout definition. > > Please, what do you think about? Does whatever plugin 'check_cola_correo' runs have a timeout? Did you increase that? -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 15 16:38:19 2009 From: marc at ena.com (Marc Powell) Date: Thu, 15 Jan 2009 09:38:19 -0600 Subject: Acknowledged by user + Service action url {Fraud?} In-Reply-To: <24BAD962951246718908F92F2A21C421@na.dsmain.com> References: <496E16DF.4030907@medi.fr> <24BAD962951246718908F92F2A21C421@na.dsmain.com> Message-ID: <0D1123D0-D1B3-4684-904F-B09113A3A217@ena.com> On Jan 15, 2009, at 8:28 AM, Palle L Jensen wrote: > Hello, > > I have 2 problems that I am currently working on. > > 1. In Nagios Web-interface and when someone acknowledges a problem, > the Author (your name) it is pre-populated with ?Nagios? and cannot > be changed. We would like to be able to populate that with operators > that acknowledge the problem. > - I have looked around on settings and permissions but can?t find > any solution. http://nagios.sourceforge.net/docs/3_0/configcgi.html Lock Author Names Format: lock_author_names=[0/1] Example: lock_author_names=1 This option allows you to restrict users from changing the author name when submitting comments, acknowledgements, and scheduled downtime from the web interface. If this option is enabled, users will be unable to change the author name associated with the command request. * 0 = Allow users to change author names when submitting commands * 1 = Prevent users from changing author names (default) > 2. I wanted to have service action url in the acknowledge notes > being sent to operators from Nagios. The host action url works fine, > but for the service it does not populate the url in the notes. > - Below is how my commands look. > > ------ For service ? this does not work with action url: ------- > notify-service-by-email /usr/bin/printf "%b" "***** CCO Nagios > Monitoring 3.0.1 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n > \nDate/Time: $LONGDATETIME$\n\nService: $SERVICEDESC$\nHost: > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n > \nOperator: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\nUrl: > $SERVICEACTIONURL$\nInfo:\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **" $CONTACTEMAIL$ It does look like you're using the correct(ly spelled) macro. Are you sure that the service definition has action_url specified? Can you post it? I'd also enable debug mode in nagios.cfg and see if anything interesting showed up. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 cbeattie at geninfo.com Thu Jan 15 17:06:54 2009 From: cbeattie at geninfo.com (Chris Beattie) Date: Thu, 15 Jan 2009 11:06:54 -0500 Subject: Acknowledged by user + Service action url In-Reply-To: <24BAD962951246718908F92F2A21C421@na.dsmain.com> References: <496E16DF.4030907@medi.fr> <24BAD962951246718908F92F2A21C421@na.dsmain.com> Message-ID: >From: Palle L Jensen [mailto:palleje at gmail.com] >Sent: Thursday, January 15, 2009 9:28 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Acknowledged by user + Service action url > >1. In Nagios Web-interface and when someone acknowledges a problem, the Author (your name) it is pre->populated with "Nagios" and cannot be changed. We would like to be able to populate that with operators that >acknowledge the problem. As far as I know, that field is automatically populated through some alignment of the users being set up as contacts within Nagios, those contacts being set up in cgi.cfg, and having access set up through htpasswd.users. I kept the user name in htpasswd.users the same as the contact_name in contacts.cfg, and the $NOTIFICATIONAUTHORALIAS$ macro got correctly set to the user's contact alias (where I put their full name). It all worked for me the first time I tried it, so I didn't get any experience fixing any wrong-ness, though. Nothing in this message is intended to make or accept and offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately . Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Thu Jan 15 17:38:56 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 15 Jan 2009 16:38:56 +0000 Subject: Event Handlers In-Reply-To: <4D438C6202ADF041A2FA9A835354479901D72E83@wmcex.wmcmed.com> References: <4D438C6202ADF041A2FA9A835354479901D72E83@wmcex.wmcmed.com> Message-ID: > Is there a way to run the an event handler from the web interface? > Example: When our internet goes down I have an event handler to restart > a service on one of our Linux servers. This works great if the internet > is down for a minute or less. Once I know the internet is back up if it > has been down for more than a minute, I need to run the event handler > again but I don't see anywhere to run the event handler from the web > interface. I am having to remote into the server and reboot this service. No, there is not. Event handlers are only run after service checks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Michel.MAYEN at 118218.fr Thu Jan 15 17:48:46 2009 From: Michel.MAYEN at 118218.fr (Michel MAYEN) Date: Thu, 15 Jan 2009 17:48:46 +0100 Subject: What does the flag failure_prediction_enabled Message-ID: Hi all, I use Nagios 3.0.6 I can't find any informations on the flag "failure_prediction_enabled" in service definition. What is the effect of this flag ? Best regards, Michel MAYEN ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 challenger_joseph at yahoo.com.mx Thu Jan 15 19:46:46 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 15 Jan 2009 10:46:46 -0800 (PST) Subject: check_dhcp seems not working Message-ID: <598397.89339.qm@web36508.mail.mud.yahoo.com> Hi Everyone I have a linux server as dhcp server and it's working very well, and I'd like to monitoring it with nrpe plugin and check_dhcp. The problem here is the outcome of check_dhcp is always: CRITICAL: No DHCPOFFERs were received. But the server is working alright. The command line is: check_dhcp -s serverip -t 30 What am I doing wrong? Any suggest? Thanks in advance! __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 palleje at gmail.com Thu Jan 15 19:51:42 2009 From: palleje at gmail.com (Palle L Jensen) Date: Thu, 15 Jan 2009 13:51:42 -0500 Subject: Acknowledged by user + Service action url{Fraud?} In-Reply-To: <0D1123D0-D1B3-4684-904F-B09113A3A217@ena.com> References: <496E16DF.4030907@medi.fr><24BAD962951246718908F92F2A21C421@na.dsmain.com> <0D1123D0-D1B3-4684-904F-B09113A3A217@ena.com> Message-ID: <390BB0CB6A8347CB95D8DC14E4E50A91@na.dsmain.com> Marc, Thanks for you help!! I am half way there :=) 1. > http://nagios.sourceforge.net/docs/3_0/configcgi.html > > Lock Author Names > > Format: lock_author_names=[0/1] > Example: lock_author_names=1 That worked great, Recently was looking for something like this in the cgi.cfg but never found the commands. I guess I should have looked closer in the manual (http://nagios.sourceforge.net/docs/3_0/configcgi.html) cause that made all sense. Adding that to the cgi.cfg worked perfect. 2. > It does look like you're using the correct(ly spelled) macro. Are you > sure that the service definition has action_url specified? Can you > post it? I'd also enable debug mode in nagios.cfg and see if anything > interesting showed up. You are right I have been unable to add the action url in the service definition, due to I have several hostnames for the specific service check. For example the below DiskE check I have several hosts defined for that check, how would I go by to replace "johndoehost" so the link will be correct? http://1xx.xx.xxx.xxx/nagios/cgi-bin/extinfo.cgi?type=2&host=johndoehost&ser vice=DiskE Thanks, PJ > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 15, 2009 10:38 AM > To: nagios-users Mailinglist > Subject: Re: [Nagios-users] Acknowledged by user + Service action > url{Fraud?} > > > On Jan 15, 2009, at 8:28 AM, Palle L Jensen wrote: > > > Hello, > > > > I have 2 problems that I am currently working on. > > > > 1. In Nagios Web-interface and when someone acknowledges a problem, > > the Author (your name) it is pre-populated with "Nagios" and cannot > > be changed. We would like to be able to populate that with operators > > that acknowledge the problem. > > - I have looked around on settings and permissions but can't find > > any solution. > > http://nagios.sourceforge.net/docs/3_0/configcgi.html > > Lock Author Names > > Format: lock_author_names=[0/1] > Example: lock_author_names=1 > > This option allows you to restrict users from changing the author name > when submitting comments, acknowledgements, and scheduled downtime > from the web interface. If this option is enabled, users will be > unable to change the author name associated with the command request. > > * 0 = Allow users to change author names when submitting commands > * 1 = Prevent users from changing author names (default) > > > 2. I wanted to have service action url in the acknowledge notes > > being sent to operators from Nagios. The host action url works fine, > > but for the service it does not populate the url in the notes. > > - Below is how my commands look. > > > > > ------ For service - this does not work with action url: ------- > > notify-service-by-email /usr/bin/printf "%b" "***** CCO Nagios > > Monitoring 3.0.1 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n > > \nDate/Time: $LONGDATETIME$\n\nService: $SERVICEDESC$\nHost: > > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n > > \nOperator: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\nUrl: > > $SERVICEACTIONURL$\nInfo:\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** > > $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$ **" $CONTACTEMAIL$ > > It does look like you're using the correct(ly spelled) macro. Are you > sure that the service definition has action_url specified? Can you > post it? I'd also enable debug mode in nagios.cfg and see if anything > interesting showed up. > > -- > Marc > > > -------------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Thu Jan 15 20:06:21 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 13:06:21 -0600 Subject: check_dhcp seems not working In-Reply-To: <598397.89339.qm@web36508.mail.mud.yahoo.com> References: <598397.89339.qm@web36508.mail.mud.yahoo.com> Message-ID: Christian I?iguez wrote: >Hi Everyone > >I have a linux server as dhcp server and it's working very well, and I'd like to monitoring it with nrpe plugin and check_dhcp.> > >The problem here is the outcome of check_dhcp is always: CRITICAL: No DHCPOFFERs were received. But the server is working alright. > >The command line is: check_dhcp -s serverip -t 30 > >What am I doing wrong? Any suggest? > >Thanks in advance! I have no idea which flavor of DHCP you are running (probably ISC's), but I don't think you are going to be able to run check_dhcp from the DHCP server itself. The DHCP server will see an incoming requeset from itself and probably block it. Therefore, using the nrpe method of doing these checks is a moot point. If your Nagios server is on the same network as the DHCP server, just run check_dhcp from the Nagios box. If you're running Nagios on a different network than the DHCP server and there is a firewall in between, you'll probably have to do several things: 1. Open up a hole in the firewall to allow the Nagios server to request a DHCP address from the DHCP server 2. Have a DHCP relay statement on the router's interface your Nagios server connects to so it knows to which server to relay the DHCP request to 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the Nagios server so it can offer a valid IP address There are probably other methods as well. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mjtice at gmail.com Thu Jan 15 20:13:01 2009 From: mjtice at gmail.com (Matthew Tice) Date: Thu, 15 Jan 2009 12:13:01 -0700 Subject: Question about using the NSCA addon Message-ID: I'm interested in using the nsca addon - but only the daemon. I thought I could just open an tcp connection to the daemon and send my update manually: echo "3\t1\tmt-ubuntu\tSMTP Availability\tFAIL\n" | netcat nocnag02 5667 I set the value decryption_method=0 in the server config file (because I'm not doing any encryption on the client end). Is this possible? I looked through the source and tried to create the necessary string - but I'm thinking I'm missing something. Any ideas? Feel free to tell me I'm way off here. Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 challenger_joseph at yahoo.com.mx Thu Jan 15 20:18:41 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 15 Jan 2009 11:18:41 -0800 (PST) Subject: check_dhcp seems not working References: Message-ID: <520467.41034.qm@web36506.mail.mud.yahoo.com> In deed both servers (the dhcp server and nagios server) are in the same subnet and there is no firewall between them. From the nagios server I run check_nrpe!check_dhcp And in the side of dhcp server I run the command: check_dhcp -s ip_dhcp_server -t 30 Actually I'm running other services like check_load, check_procs, etc. With no problems. Just check_dhcp is not working My dhcp server is a RHEL 5 with dhcp-3.0.5-3.el5 I hope this help! ----- Mensaje original ---- De: "jmoseley at corp.xanadoo.com" Para: Christian I?iguez CC: nagios-users at lists.sourceforge.net Enviado: jueves, 15 de enero, 2009 13:06:21 Asunto: Re: [Nagios-users] check_dhcp seems not working Christian I?iguez ? wrote: >Hi Everyone > >I have a linux server as dhcp server and it's working very well, and I'd like to monitoring it with nrpe plugin and check_dhcp.> > >The problem here is the outcome of check_dhcp is always: CRITICAL: No DHCPOFFERs were received. But the server is working alright. > >The command line is: check_dhcp -s serverip -t 30 > >What am I doing wrong? Any suggest? > >Thanks in advance! I have no idea which flavor of DHCP you are running (probably ISC's), but I don't think you are going to be able to run check_dhcp from the DHCP server itself.? The DHCP server will see an incoming requeset from itself and probably block it.? Therefore, using the nrpe method of doing these checks is a moot point. If your Nagios server is on the same network as the DHCP server, just run check_dhcp from the Nagios box.? If you're running Nagios on a different network than the DHCP server and there is a firewall in between, you'll probably have to do several things: 1. Open up a hole in the firewall to allow the Nagios server to request a DHCP address from the DHCP server 2. Have a DHCP relay statement on the router's interface your Nagios server connects to so it knows to which server to relay the DHCP request to 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the Nagios server so it can offer a valid IP address There are probably other methods as well. James __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Thu Jan 15 20:18:08 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 15 Jan 2009 19:18:08 +0000 Subject: check_dhcp seems not working In-Reply-To: <598397.89339.qm@web36508.mail.mud.yahoo.com> References: <598397.89339.qm@web36508.mail.mud.yahoo.com> Message-ID: > I have a linux server as dhcp server and it's working very well, and > I'd like to monitoring it with nrpe plugin and check_dhcp. > > The problem here is the outcome of check_dhcp is always: CRITICAL: No > DHCPOFFERs were received. But the server is working alright. > > The command line is: check_dhcp -s serverip -t 30 > > What am I doing wrong? Any suggest? This one's come up a billion times or so on the list, but the most likely cause of your problem is that the plugin needs to be setuid root. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 challenger_joseph at yahoo.com.mx Thu Jan 15 20:24:54 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 15 Jan 2009 11:24:54 -0800 (PST) Subject: check_dhcp seems not working References: <598397.89339.qm@web36508.mail.mud.yahoo.com> Message-ID: <326523.67672.qm@web36502.mail.mud.yahoo.com> Thanks but?actually the plugin is setuid root, and as user root and user nagios the outcome is the same =( ----- Mensaje original ---- De: "Morris, Patrick" Para: Christian I?iguez ; "nagios-users at lists.sourceforge.net" Enviado: jueves, 15 de enero, 2009 13:18:08 Asunto: RE: [Nagios-users] check_dhcp seems not working > I have a linux server as dhcp server and it's working very well, and > I'd like to monitoring it with nrpe plugin and check_dhcp. > > The problem here is the outcome of check_dhcp is always: CRITICAL: No > DHCPOFFERs were received. But the server is working alright. > > The command line is: check_dhcp -s serverip -t 30 > > What am I doing wrong? Any suggest? This one's come up a billion times or so on the list, but the most likely cause of your problem is that the plugin needs to be setuid root. __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Thu Jan 15 20:25:24 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 13:25:24 -0600 Subject: check_dhcp seems not working In-Reply-To: <520467.41034.qm@web36506.mail.mud.yahoo.com> References: <520467.41034.qm@web36506.mail.mud.yahoo.com> Message-ID: James Moseley Christian I?iguez wrote: >In deed both servers (the dhcp server and nagios server) are in the same subnet and there is no firewall between them. From the nagios server I run >check_nrpe!check_dhcp > >And in the side of dhcp server I run the command: check_dhcp -s ip_dhcp_server -t 30 > >Actually I'm running other services like check_load, check_procs, etc. With no problems. > >Just check_dhcp is not working > >My dhcp server is a RHEL 5 with dhcp-3.0.5-3.el5 In my previous reply, I told you that what you are trying to do above will *not* work. Do not try and check your DHCP server from the Nagios server using check_nrpe and running check_dhcp on the DHCP server itself. Run check_dhcp directly from the Nagios server. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Thu Jan 15 20:39:47 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 15 Jan 2009 11:39:47 -0800 Subject: check_dhcp seems not working In-Reply-To: References: Message-ID: <496F9103.1070909@kkeane.com> jmoseley at corp.xanadoo.com wrote: > > > Christian I?iguez wrote: > > >> Hi Everyone >> >> I have a linux server as dhcp server and it's working very well, and I'd >> > like to monitoring it with nrpe plugin and check_dhcp.> > >> The problem here is the outcome of check_dhcp is always: CRITICAL: No >> > DHCPOFFERs were received. But the server is working alright. > >> The command line is: check_dhcp -s serverip -t 30 >> >> What am I doing wrong? Any suggest? >> >> Thanks in advance! >> > > I have no idea which flavor of DHCP you are running (probably ISC's), but I > don't think you are going to be able to run check_dhcp from the DHCP server > itself. The DHCP server will see an incoming requeset from itself and > probably block it. Therefore, using the nrpe method of doing these checks > is a moot point. > > If your Nagios server is on the same network as the DHCP server, just run > check_dhcp from the Nagios box. If you're running Nagios on a different > network than the DHCP server and there is a firewall in between, you'll > probably have to do several things: > > 1. Open up a hole in the firewall to allow the Nagios server to request a > DHCP address from the DHCP server > 2. Have a DHCP relay statement on the router's interface your Nagios server > connects to so it knows to which server to relay the DHCP request to > 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the > Nagios server so it can offer a valid IP address I actually have the same problem as Christian, and it does NOT work even though Nagios is running on a different box on the same network as the DHCP server. In fact, the Nagios box actually gets its IP address from the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 on a SuSE 10.3). I've seen the same problem before against a Windows DHCP server, too, never been able to make check_dhcp work. check_dhcp -v prints this: DHCP socket: 3 Hardware address: 00:0c:29:0e:28:4f DHCPDISCOVER to 255.255.255.255 port 67 DHCPDISCOVER XID: 2138668641 (0x7F797E61) DHCDISCOVER ciaddr: 0.0.0.0 DHCDISCOVER yiaddr: 0.0.0.0 DHCDISCOVER siaddr: 0.0.0.0 DHCDISCOVER giaddr: 0.0.0.0 send_dhcp_packet result: 548 No (more) data received (nfound: 0) Result=ERROR Total responses seen on the wire: 0 Valid responses for this machine: 0 CRITICAL: No DHCPOFFERs were received. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ssimmons at cymfony.com Thu Jan 15 20:48:24 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Thu, 15 Jan 2009 14:48:24 -0500 Subject: problem check_dell plugin Message-ID: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> I'm having a problem using the dell plugin (from http://www.itefix.no/i2/check_dell, nothing useful in the forum) If I run the plugin (as nagios) on the box, it works fine. $ perl check_dell.pl --storage DELL STORAGE OK - Controller battery 0:ok Controller perc 5/i integrated:ok Enclosure backplane:ok virtual disk 0:ok However, through nagios, it shows (null) and I can't figure out what I'm doing wrong. Here are the commands I have: define command{ command_name check_chassis command_line /usr/bin/perl /usr/local/nagios/libexec/check_dell.pl --chassis } define command{ command_name check_storage command_line /usr/bin/perl /usr/local/nagios/libexec/check_dell.pl --storage } ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 challenger_joseph at yahoo.com.mx Thu Jan 15 20:53:03 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 15 Jan 2009 11:53:03 -0800 (PST) Subject: check_dhcp seems not working References: Message-ID: <553312.25419.qm@web36508.mail.mud.yahoo.com> I'm sorry, I already understood. But well, I did it?like you told me, and I got the same outcome Running the check_dhcp on the nagios server. ----- Mensaje original ---- De: "jmoseley at corp.xanadoo.com" Para: Christian I?iguez CC: nagios-users at lists.sourceforge.net Enviado: jueves, 15 de enero, 2009 13:25:24 Asunto: Re: [Nagios-users] check_dhcp seems not working James Moseley Christian I?iguez ? wrote: >In deed both servers (the dhcp server and nagios server) are in the same subnet and there is no firewall between them. From the nagios server I run >check_nrpe!check_dhcp > >And in the side of dhcp server I run the command: check_dhcp -s ip_dhcp_server -t 30 > >Actually I'm running other services like check_load, check_procs, etc. With no problems. > >Just check_dhcp is not working > >My dhcp server is a RHEL 5 with dhcp-3.0.5-3.el5 In my previous reply, I told you that what you are trying to do above will *not* work.? Do not try and check your DHCP server from the Nagios server using check_nrpe and running check_dhcp on the DHCP server itself. Run check_dhcp directly from the Nagios server. James __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 15 20:52:38 2009 From: marc at ena.com (Marc Powell) Date: Thu, 15 Jan 2009 13:52:38 -0600 Subject: Acknowledged by user + Service action url In-Reply-To: <390BB0CB6A8347CB95D8DC14E4E50A91@na.dsmain.com> References: <496E16DF.4030907@medi.fr><24BAD962951246718908F92F2A21C421@na.dsmain.com> <0D1123D0-D1B3-4684-904F-B09113A3A217@ena.com> <390BB0CB6A8347CB95D8DC14E4E50A91@na.dsmain.com> Message-ID: <06A33D9E-EC9B-443B-93A1-7033E69D1479@ena.com> On Jan 15, 2009, at 12:51 PM, Palle L Jensen wrote: > Marc, > > Thanks for you help!! I am half way there :=) Good deal. > You are right I have been unable to add the action url in the service > definition, due to I have several hostnames for the specific service > check. > > For example the below DiskE check I have several hosts defined for > that > check, how would I go by to replace "johndoehost" so the link will be > correct? > > http://1xx.xx.xxx.xxx/nagios/cgi-bin/extinfo.cgi?type=2&host=johndoehost&ser > vice=DiskE http://nagios.sourceforge.net/docs/3_0/macros.html "Macro Substitution - How Macros Work Before Nagios executes a command, it will replace any macros it finds in the command definition with their corresponding values. This macro substitution occurs for all types of commands that Nagios executes - host and service checks, notifications, event handlers, etc. Certain macros may themselves contain other macros. These include the $HOSTNOTES$, $HOSTNOTESURL$, $HOSTACTIONURL$, $SERVICENOTES$, $SERVICENOTESURL$, and $SERVICEACTIONURL$ macros. " In your case, I expect the following should work -- define service { ... action_url http://1xxx.xx.xxx.xxx/nagios/cgi-bin/extinfo.cgi?type=2&host=$HOSTNAME$&service=DiskE ... } -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 challenger_joseph at yahoo.com.mx Thu Jan 15 20:54:36 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 15 Jan 2009 11:54:36 -0800 (PST) Subject: check_dhcp seems not working References: <496F9103.1070909@kkeane.com> Message-ID: <880122.70702.qm@web36506.mail.mud.yahoo.com> Exactly Kevin, you are right ----- Mensaje original ---- De: Kevin Keane CC: nagios-users at lists.sourceforge.net Enviado: jueves, 15 de enero, 2009 13:39:47 Asunto: Re: [Nagios-users] check_dhcp seems not working jmoseley at corp.xanadoo.com wrote: > > > Christian I?iguez ? wrote: > >? >> Hi Everyone >> >> I have a linux server as dhcp server and it's working very well, and I'd >>? ? > like to monitoring it with nrpe plugin and check_dhcp.> >? >> The problem here is the outcome of check_dhcp is always: CRITICAL: No >>? ? > DHCPOFFERs were received. But the server is working alright. >? >> The command line is: check_dhcp -s serverip -t 30 >> >> What am I doing wrong? Any suggest? >> >> Thanks in advance! >>? ? > > I have no idea which flavor of DHCP you are running (probably ISC's), but I > don't think you are going to be able to run check_dhcp from the DHCP server > itself.? The DHCP server will see an incoming requeset from itself and > probably block it.? Therefore, using the nrpe method of doing these checks > is a moot point. > > If your Nagios server is on the same network as the DHCP server, just run > check_dhcp from the Nagios box.? If you're running Nagios on a different > network than the DHCP server and there is a firewall in between, you'll > probably have to do several things: > > 1. Open up a hole in the firewall to allow the Nagios server to request a > DHCP address from the DHCP server > 2. Have a DHCP relay statement on the router's interface your Nagios server > connects to so it knows to which server to relay the DHCP request to > 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the > Nagios server so it can offer a valid IP address I actually have the same problem as Christian, and it does NOT work even though Nagios is running on a different box on the same network as the DHCP server. In fact, the Nagios box actually gets its IP address from the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 on a SuSE 10.3). I've seen the same problem before against a Windows DHCP server, too, never been able to make check_dhcp work. check_dhcp -v prints this: DHCP socket: 3 Hardware address: 00:0c:29:0e:28:4f DHCPDISCOVER to 255.255.255.255 port 67 DHCPDISCOVER XID: 2138668641 (0x7F797E61) DHCDISCOVER ciaddr:? 0.0.0.0 DHCDISCOVER yiaddr:? 0.0.0.0 DHCDISCOVER siaddr:? 0.0.0.0 DHCDISCOVER giaddr:? 0.0.0.0 send_dhcp_packet result: 548 No (more) data received (nfound: 0) Result=ERROR Total responses seen on the wire: 0 Valid responses for this machine: 0 CRITICAL: No DHCPOFFERs were received. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Thu Jan 15 20:58:08 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 13:58:08 -0600 Subject: check_dhcp seems not working In-Reply-To: <326523.67672.qm@web36502.mail.mud.yahoo.com> References: <326523.67672.qm@web36502.mail.mud.yahoo.com> Message-ID: Christian I?iguez To "Morris, Patrick" 01/15/2009 01:24 , PM nagios-users at lists.sourceforge.net cc Subject Re: [Nagios-users] check_dhcp seems not working Christian I?iguez wrote: >Thanks but?actually the plugin is setuid root, and as user root and user nagios the outcome is the same =( Christian, Patrick is correct, and something I forgot about. The check_dhcp plugin needs to be setuid, which you've indicated it is. Can you try running check_dhcp directly from the Nagios server though? With your setup, it doesn't make sense to use check_nrpe when you can query the DHCP server directly. And as I've said, I'm not sure you are going to be able to run check_dhcp from the DHCP server itself, unless you have multiple interfaces. "Morris, Patrick" wrote: >>This one's come up a billion times or so on the list, but the most likely cause of your problem is that the plugin needs to be setuid root. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Thu Jan 15 21:02:29 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 15 Jan 2009 12:02:29 -0800 Subject: check_dhcp seems not working In-Reply-To: <880122.70702.qm@web36506.mail.mud.yahoo.com> References: Message-ID: <496F9655.2050708@kkeane.com> Christian, actually, your question prompted me to try it again. Turned out that it was the firewall software on my Nagios box that blocked the DHCP request. As soon as I turned it off, check_dhcp worked. I'm not yet sure which ports to open to make it work with the firewall on. So far, I tried ports 67 and 68 for both TCP and UDP, but that seems not to be enough. Christian I?iguez wrote: > Exactly Kevin, you are right > > > > ----- Mensaje original ---- > De: Kevin Keane > CC: nagios-users at lists.sourceforge.net > Enviado: jueves, 15 de enero, 2009 13:39:47 > Asunto: Re: [Nagios-users] check_dhcp seems not working > > jmoseley at corp.xanadoo.com wrote: > >> Christian I?iguez wrote: >> >> >> >>> Hi Everyone >>> >>> I have a linux server as dhcp server and it's working very well, and I'd >>> >>> >> like to monitoring it with nrpe plugin and check_dhcp.> >> >> >>> The problem here is the outcome of check_dhcp is always: CRITICAL: No >>> >>> >> DHCPOFFERs were received. But the server is working alright. >> >> >>> The command line is: check_dhcp -s serverip -t 30 >>> >>> What am I doing wrong? Any suggest? >>> >>> Thanks in advance! >>> >>> >> I have no idea which flavor of DHCP you are running (probably ISC's), but I >> don't think you are going to be able to run check_dhcp from the DHCP server >> itself. The DHCP server will see an incoming requeset from itself and >> probably block it. Therefore, using the nrpe method of doing these checks >> is a moot point. >> >> If your Nagios server is on the same network as the DHCP server, just run >> check_dhcp from the Nagios box. If you're running Nagios on a different >> network than the DHCP server and there is a firewall in between, you'll >> probably have to do several things: >> >> 1. Open up a hole in the firewall to allow the Nagios server to request a >> DHCP address from the DHCP server >> 2. Have a DHCP relay statement on the router's interface your Nagios server >> connects to so it knows to which server to relay the DHCP request to >> 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the >> Nagios server so it can offer a valid IP address >> > I actually have the same problem as Christian, and it does NOT work even > though Nagios is running on a different box on the same network as the > DHCP server. In fact, the Nagios box actually gets its IP address from > the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 > on a SuSE 10.3). I've seen the same problem before against a Windows > DHCP server, too, never been able to make check_dhcp work. > > check_dhcp -v prints this: > > DHCP socket: 3 > Hardware address: 00:0c:29:0e:28:4f > DHCPDISCOVER to 255.255.255.255 port 67 > DHCPDISCOVER XID: 2138668641 (0x7F797E61) > DHCDISCOVER ciaddr: 0.0.0.0 > DHCDISCOVER yiaddr: 0.0.0.0 > DHCDISCOVER siaddr: 0.0.0.0 > DHCDISCOVER giaddr: 0.0.0.0 > send_dhcp_packet result: 548 > > > > > No (more) data received (nfound: 0) > Result=ERROR > Total responses seen on the wire: 0 > Valid responses for this machine: 0 > CRITICAL: No DHCPOFFERs were received. > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Thu Jan 15 21:05:57 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 15 Jan 2009 12:05:57 -0800 Subject: problem check_dell plugin In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> Message-ID: <496F9725.30000@kkeane.com> My guess is that the path environment is different when run under Nagios, and check_dell.pl can't find the Dell OpenManage software. I'm not sure exactly how it works on Unix, but the Windows version of check_dell uses OpenManage to actually do the checking. Seth Simmons wrote: > I'm having a problem using the dell plugin (from > http://www.itefix.no/i2/check_dell, nothing useful in the forum) > > If I run the plugin (as nagios) on the box, it works fine. > > $ perl check_dell.pl --storage > DELL STORAGE OK - Controller battery 0:ok Controller perc 5/i > integrated:ok Enclosure backplane:ok virtual disk 0:ok > > > However, through nagios, it shows (null) and I can't figure out what I'm > doing wrong. > > Here are the commands I have: > > define command{ > command_name check_chassis > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --chassis > } > > define command{ > command_name check_storage > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --storage > } > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Thu Jan 15 21:16:43 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 14:16:43 -0600 Subject: check_dhcp seems not working In-Reply-To: <496F9655.2050708@kkeane.com> References: <496F9655.2050708@kkeane.com> Message-ID: Kevin Keane wrote: >Christian, actually, your question prompted me to try it again. Turned >out that it was the firewall software on my Nagios box that blocked the >DHCP request. As soon as I turned it off, check_dhcp worked. I'm not yet >sure which ports to open to make it work with the firewall on. So far, I >tried ports 67 and 68 for both TCP and UDP, but that seems not to be enough. Kevin, that's a really good point. Christian, do you have iptables running on either the nagios or DHCP server boxes? James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ssimmons at cymfony.com Thu Jan 15 21:18:39 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Thu, 15 Jan 2009 15:18:39 -0500 Subject: problem check_dell plugin In-Reply-To: <496F9725.30000@kkeane.com> References: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> <496F9725.30000@kkeane.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB10D522F@buf-ex01.cymfony.com> I think my mistake might have been not configuring correctly for nrpe; I've never used a perl plugin before. I came across another dell om plugin (http://folk.uio.no/trondham/software/check_openmanage.html) that is executable and got it to work with nrpe. -----Original Message----- From: Kevin Keane [mailto:subscription at kkeane.com] Sent: Thursday, January 15, 2009 3:06 PM Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] problem check_dell plugin My guess is that the path environment is different when run under Nagios, and check_dell.pl can't find the Dell OpenManage software. I'm not sure exactly how it works on Unix, but the Windows version of check_dell uses OpenManage to actually do the checking. Seth Simmons wrote: > I'm having a problem using the dell plugin (from > http://www.itefix.no/i2/check_dell, nothing useful in the forum) > > If I run the plugin (as nagios) on the box, it works fine. > > $ perl check_dell.pl --storage > DELL STORAGE OK - Controller battery 0:ok Controller perc 5/i > integrated:ok Enclosure backplane:ok virtual disk 0:ok > > > However, through nagios, it shows (null) and I can't figure out what I'm > doing wrong. > > Here are the commands I have: > > define command{ > command_name check_chassis > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --chassis > } > > define command{ > command_name check_storage > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --storage > } > > > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 holger at CIS.FU-Berlin.DE Thu Jan 15 21:32:42 2009 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Thu, 15 Jan 2009 21:32:42 +0100 Subject: check_dhcp seems not working In-Reply-To: References: <598397.89339.qm@web36508.mail.mud.yahoo.com> Message-ID: <20090115203242.GA15511887@CIS.FU-Berlin.DE> JFTR: * jmoseley at corp.xanadoo.com [2009-01-15 13:06]: > If you're running Nagios on a different network than the DHCP server and > there is a firewall in between, you'll probably have to do several things: > > 1. Open up a hole in the firewall to allow the Nagios server to request a > DHCP address from the DHCP server > 2. Have a DHCP relay statement on the router's interface your Nagios server > connects to so it knows to which server to relay the DHCP request to > 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the > Nagios server so it can offer a valid IP address For such a setup, step (2) isn't necessary, as check_dhcp will mimic a DHCP relay if the "--unicast" option is specified. Holger ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 holger at CIS.FU-Berlin.DE Thu Jan 15 21:37:22 2009 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Thu, 15 Jan 2009 21:37:22 +0100 Subject: check_dhcp seems not working In-Reply-To: <598397.89339.qm@web36508.mail.mud.yahoo.com> References: <598397.89339.qm@web36508.mail.mud.yahoo.com> Message-ID: <20090115203721.GB15511887@CIS.FU-Berlin.DE> * Christian I?iguez [2009-01-15 10:46]: > I have a linux server as dhcp server and it's working very well, and > I'd like to monitoring it with nrpe plugin and check_dhcp. > > The problem here is the outcome of check_dhcp is always: CRITICAL: No > DHCPOFFERs were received. But the server is working alright. Do you see the request and a reply in the DHCP server's logs? If so, could you verify that the server's reply reaches the host running check_dhcp using tcpdump(8) (e.g., "tcpdump -vv port bootps")? Holger ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 albrecht.dress at arcor.de Thu Jan 15 21:55:42 2009 From: albrecht.dress at arcor.de (Albrecht =?iso-8859-1?b?RHJl3w==?=) Date: Thu, 15 Jan 2009 21:55:42 +0100 Subject: Next check time bug? In-Reply-To: <5144EF5B0ABC6745BEE64C74E43ABD8F01394CE9@moneypenny.softoption.local> (from james.green@mjog.com on Thu Jan 15 15:29:23 2009) References: <5144EF5B0ABC6745BEE64C74E43ABD8F01394CE9@moneypenny.softoption.local> Message-ID: <1232052958.5329.0@antares> Am 15.01.09 15:29 schrieb(en) James Green: > Can you say if your patches made it into the Nagios build tree? It > certainly sounds like a good contender. They are in the CVS tree, which according to the Changelog is going to be Release 3.1.0... > The first patch fails to apply to the version shipped by Ubuntu 8.10 > so either I wait for a fixed build in the months to come or I grab > the source code with your patch applied. IIRC, Ubuntu comes with old versions (I run 8.04 LTS on a Xeon/64 bit system, where I found the issue), so I decided to compile it myself from sources. You might try to install from sources into e.g. /opt and then symlink the configs to your existing folders, just to check if it solves your problem, without breaking the original installation. Although the bug I discovered could trigger really strange effects, you might actually be hit by something else, so some further tests might be really helpful... Cheers, Albrecht. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Thu Jan 15 21:59:59 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 14:59:59 -0600 Subject: check_dhcp seems not working In-Reply-To: <20090115203242.GA15511887@CIS.FU-Berlin.DE> References: <20090115203242.GA15511887@CIS.FU-Berlin.DE> Message-ID: Holger Weiss wrote: * jmoseley at corp.xanadoo.com [2009-01-15 13:06]: >> 2. Have a DHCP relay statement on the router's interface your Nagios server >> connects to so it knows to which server to relay the DHCP request to >For such a setup, step (2) isn't necessary, as check_dhcp will mimic a >DHCP relay if the "--unicast" option is specified. What I meant was you'd have to have an ip helper-address configured. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 holger at CIS.FU-Berlin.DE Thu Jan 15 22:19:29 2009 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Thu, 15 Jan 2009 22:19:29 +0100 Subject: check_dhcp seems not working In-Reply-To: References: <20090115203242.GA15511887@CIS.FU-Berlin.DE> Message-ID: <20090115211929.GC15511887@CIS.FU-Berlin.DE> * jmoseley at corp.xanadoo.com [2009-01-15 14:59]: > Holger Weiss wrote: > * jmoseley at corp.xanadoo.com [2009-01-15 13:06]: > >> 2. Have a DHCP relay statement on the router's interface your Nagios server > >> connects to so it knows to which server to relay the DHCP request to > > >For such a setup, step (2) isn't necessary, as check_dhcp will mimic a > >DHCP relay if the "--unicast" option is specified. > > What I meant was you'd have to have an ip helper-address configured. But that's precisely what you don't need if you use check_dhcp's "--unicast" option :-) If you configure an "ip helper-address" (as Cisco calls it), the router will relay local DHCP broadcast packets to the specified remote DHCP server. "check_dhcp --unicast" creates the same sort of unicast packets such a relay would generate. Holger ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 lavalamp at spiritual-machines.org Thu Jan 15 22:57:16 2009 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Thu, 15 Jan 2009 16:57:16 -0500 (EST) Subject: problem check_dell plugin In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB10D522D@buf-ex01.cymfony.com> Message-ID: Try: $ sudo -H -u nagios /usr/bin/perl /usr/local/nagios/libexec/check_dell.pl --chassis Otherwise, turn up the debugging in Nagios all the way. ~BAS On Thu, 15 Jan 2009, Seth Simmons wrote: > I'm having a problem using the dell plugin (from > http://www.itefix.no/i2/check_dell, nothing useful in the forum) > > If I run the plugin (as nagios) on the box, it works fine. > > $ perl check_dell.pl --storage > DELL STORAGE OK - Controller battery 0:ok Controller perc 5/i > integrated:ok Enclosure backplane:ok virtual disk 0:ok > > > However, through nagios, it shows (null) and I can't figure out what I'm > doing wrong. > > Here are the commands I have: > > define command{ > command_name check_chassis > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --chassis > } > > define command{ > command_name check_storage > command_line /usr/bin/perl > /usr/local/nagios/libexec/check_dell.pl --storage > } > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Show me a young conservative and I'll show you someone with no heart. Show me an old liberal and I'll show you someone with no brains." ~ Winston Churchill ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 epearce at amberpoint.com Fri Jan 16 00:14:45 2009 From: epearce at amberpoint.com (Eric Pearce) Date: Thu, 15 Jan 2009 15:14:45 -0800 Subject: Windows disk health monitoring with smartmontoolsl/NSClient++? References: <2E3354BE557D445583DBFAA0E1818F03@ap872c3fe40484> Message-ID: <74D9BC17557D43DC8416C639ECAAE868@edgility.com> Thanks for the tip - I think I'm making some progress, i.e. C:\Program Files\NSClient++>"nsclient++.exe" CheckWMI Select Status from Win32_DiskDrive \NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.2 2008-09-24 l \NSClient++.cpp(476) NSCLient++ - 0.3.5.2 2008-09-24 Started! l \CheckWMI.cpp(306) |--------+ l \CheckWMI.cpp(307) | Status | l \CheckWMI.cpp(308) |--------+ l \CheckWMI.cpp(317) | OK | l \CheckWMI.cpp(319) |--------+ l \NSClient++.cpp(530) Attempting to stop NSCLient++ - 0.3.5.2 2008-09-24 l \NSClient++.cpp(589) NSCLient++ - 0.3.5.2 2008-09-24 Stopped succcessfully But I dont' see how to turn this output into something useful for Nagios, i.e. "OK", "WARNING", "CRITICAL". It appears that the possible return values for "Status" are one of the following: OK,Error,Degraded,Unknown,Pred Fail, Starting, Stopping, Service, Stressed, NonRecover, No Contact or Lost Comm. I would be happy with "OK" resulting in a Nagios "OK" and anything else being a "WARNING". Ideally, "WARNING" followed by the "Status" output from WMI. Is there a way to do this using the NSClient "filter" and Max/Min syntax? Bonus question: What do you do if you have multiple drives? I don't see any obvious way to specify a drive to check. Thanks -e ----- Original Message ----- From: Anthony Montibello To: Eric Pearce Cc: nagios-users at lists.sourceforge.net Sent: Wednesday, January 14, 2009 8:58 PM Subject: Re: [Nagios-users] Windows disk health monitoring with smartmontoolsl/NSClient++? USe WMI: the path to the smart data: root/Cimv2/Win32_DiskDrive/ [Instance] --> Status Hope this helps Tony (Author of NC_Net) On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce wrote: I'd like to get SMART disk health status for Windows machines. It looks like smartctl would work fine on Windows - has someone got it working with NSClient++? I've found some people asking about this in the list archives, but haven't found any concrete examples. All I'm looking for is a basic "OK" or "something bad is going to happen soon" alert from Nagios. Thanks -e ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Thu Jan 15 22:44:47 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 15:44:47 -0600 Subject: check_dhcp seems not working In-Reply-To: <20090115211929.GC15511887@CIS.FU-Berlin.DE> References: <20090115211929.GC15511887@CIS.FU-Berlin.DE> Message-ID: Holger Weiss wrote: * jmoseley at corp.xanadoo.com [2009-01-15 14:59]: >> Holger Weiss wrote: >> * jmoseley at corp.xanadoo.com [2009-01-15 13:06]: >> >> 2. Have a DHCP relay statement on the router's interface your Nagios server >> >> connects to so it knows to which server to relay the DHCP request to >> >> >For such a setup, step (2) isn't necessary, as check_dhcp will mimic a >> >DHCP relay if the "--unicast" option is specified. >> >> What I meant was you'd have to have an ip helper-address configured. >But that's precisely what you don't need if you use check_dhcp's >"--unicast" option :-) If you configure an "ip helper-address" (as >Cisco calls it), the router will relay local DHCP broadcast packets to >the specified remote DHCP server. "check_dhcp --unicast" creates the >same sort of unicast packets such a relay would generate. OK, I've got you now. Back to the orginal topic. Christian, another thing to check on the Nagios server is if you have SELinux enabled. That could definitely cause problems with plugins that are SUID root. If SELinux is enabled, disable it and try the check_dhcp plugin again. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 AHKAPLAN at PARTNERS.ORG Fri Jan 16 01:08:27 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 15 Jan 2009 19:08:27 -0500 Subject: Problem with check_smtp plugin Message-ID: Hi there -- I recently installed Kyle O'Donnell's HP-UX plugins onto a system running HP-UX 11i v1. All plugins that are in use appear to be running fine with one exception: check_smtp reports and invalid hostname/address. I checked the arguments associated with the plugin and I manually ran the following combinations: ./check_smtp -H ./check_smtp -H ./check_smtp -H ./check_smtp --hostname= ./check_smtp --hostname= ./check_smtp --hostname= None of the above combinations worked. Does anyone have a solution to this problem? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Fri Jan 16 01:23:47 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 15 Jan 2009 18:23:47 -0600 Subject: Problem with check_smtp plugin In-Reply-To: References: Message-ID: "Kaplan, Andrew H." wrote: >Hi there -- >I recently installed Kyle O'Donnell's HP-UX plugins onto a system running HP-UX 11i v1. All plugins that are in use >appear to be running fine with one exception: check_smtp reports and invalid hostname/address. >I checked the arguments associated with the plugin and I manually ran the following combinations: >./check_smtp -H >./check_smtp -H >./check_smtp -H >./check_smtp --hostname= >./check_smtp --hostname= >./check_smtp --hostname= >None of the above combinations worked. Does anyone have a solution to this problem? Thanks. I personally don't know anything about the plugin package you mention, but have you tried using/installing the official Nagios plugins available at: http://www.nagios.org/download/download.php check_smtp works just fine: check_smtp -H I assume you've tried running the plugin by itself vs. running it through Nagios? If the plugin by itself is throwing errors, you might want to contact Kyle. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 amontibello at gmail.com Fri Jan 16 02:55:57 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 15 Jan 2009 20:55:57 -0500 Subject: Question about using the NSCA addon In-Reply-To: References: Message-ID: Hi Matt, Sorry to let you know your a bit off, If you review the Source code of NSCA or NRPE it is NOT expecting a string, it is expecting a particular formated byte array. where the begining of the Array is tested for Version# and Timestamps validation before event thinking about data. It is quickest to use an existing NSCA clients with NSCA, I wrote a NSCA Client in C# and it took a lot longer than a day to get it working. TOny (Author of NC_Net) On Thu, Jan 15, 2009 at 2:13 PM, Matthew Tice wrote: > I'm interested in using the nsca addon - but only the daemon. I thought I > could just open an tcp connection to the daemon and send my update manually: > > echo "3\t1\tmt-ubuntu\tSMTP Availability\tFAIL\n" | netcat nocnag02 5667 > > I set the value decryption_method=0 in the server config file (because I'm > not doing any encryption on the client end). > > Is this possible? I looked through the source and tried to create the > necessary string - but I'm thinking I'm missing something. Any ideas? Feel > free to tell me I'm way off here. > > Matt > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 subscription at kkeane.com Fri Jan 16 04:55:07 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 15 Jan 2009 19:55:07 -0800 Subject: check_dhcp seems not working In-Reply-To: <496F98C0.7000209@simutronics.com> References: Message-ID: <4970051B.7070408@kkeane.com> Thank you! In my case, the server-side firewall works without a problem. The server does hand out DHCP addresses all the time. It was the client-side firewall (i.e., the one on the Nagios server) that blocked the DHCP request, even though I opened both ports 67 and 68 for both TCP and UDP. It happened both with broadcast DHCP requests and with directed ones (using the -s arg). Oddly enough, I didn't see anything at all in the firewall log that would indicate what was blocked. James Miller wrote: > Sorry for the top post > > 1. Lease Request - The client sends a broadcast requesting an IP > address > 2. Lease Offer - The server sends the above information and marks > the offered address as unavailable. The message sent is a > DHCPOFFER broadcast message. > 3. Lease Acceptance - The first offer received by the client is > accepted. The acceptance is sent from the client as a broadcast > (DHCPREQUEST message) including the IP address of the DNS server > that sent the accepted offer. Other DHCP servers retract their > offers and mark the offered address as available and the > accepted address as unavailable. > 4. Server lease acknowledgement - The server sends a DHCPACK or a > DHCPNACK if an unavailable address was requested. > > All DHCP packets travel as UDP datagrams; all client-sent packets have > source port 68 and destination port 67; all server-sent packets have > source port 67 and destination port 68. For example, a server-side > firewall should allow the following types of packets: > > * Incoming packets from 0.0.0.0 or dhcp-pool to dhcp-ip > * Incoming packets from any address to 255.255.255.255 > * Outgoing packets from dhcp-ip to dhcp-pool or 255.255.255.255 > > where dhcp-ip represents any address configured on a DHCP server host > and dhcp-pool stands for the pool from which a DHCP server assigns > addresses to clients > > > Jim > > > > > Kevin Keane wrote: >> Christian, actually, your question prompted me to try it again. Turned >> out that it was the firewall software on my Nagios box that blocked the >> DHCP request. As soon as I turned it off, check_dhcp worked. I'm not yet >> sure which ports to open to make it work with the firewall on. So far, I >> tried ports 67 and 68 for both TCP and UDP, but that seems not to be enough. >> >> Christian I?iguez wrote: >> >>> Exactly Kevin, you are right >>> >>> >>> >>> ----- Mensaje original ---- >>> De: Kevin Keane >>> CC: nagios-users at lists.sourceforge.net >>> Enviado: jueves, 15 de enero, 2009 13:39:47 >>> Asunto: Re: [Nagios-users] check_dhcp seems not working >>> >>> jmoseley at corp.xanadoo.com wrote: >>> >>> >>>> Christian I?iguez wrote: >>>> >>>> >>>> >>>> >>>>> Hi Everyone >>>>> >>>>> I have a linux server as dhcp server and it's working very well, and I'd >>>>> >>>>> >>>>> >>>> like to monitoring it with nrpe plugin and check_dhcp.> >>>> >>>> >>>> >>>>> The problem here is the outcome of check_dhcp is always: CRITICAL: No >>>>> >>>>> >>>>> >>>> DHCPOFFERs were received. But the server is working alright. >>>> >>>> >>>> >>>>> The command line is: check_dhcp -s serverip -t 30 >>>>> >>>>> What am I doing wrong? Any suggest? >>>>> >>>>> Thanks in advance! >>>>> >>>>> >>>>> >>>> I have no idea which flavor of DHCP you are running (probably ISC's), but I >>>> don't think you are going to be able to run check_dhcp from the DHCP server >>>> itself. The DHCP server will see an incoming requeset from itself and >>>> probably block it. Therefore, using the nrpe method of doing these checks >>>> is a moot point. >>>> >>>> If your Nagios server is on the same network as the DHCP server, just run >>>> check_dhcp from the Nagios box. If you're running Nagios on a different >>>> network than the DHCP server and there is a firewall in between, you'll >>>> probably have to do several things: >>>> >>>> 1. Open up a hole in the firewall to allow the Nagios server to request a >>>> DHCP address from the DHCP server >>>> 2. Have a DHCP relay statement on the router's interface your Nagios server >>>> connects to so it knows to which server to relay the DHCP request to >>>> 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the >>>> Nagios server so it can offer a valid IP address >>>> >>>> >>> I actually have the same problem as Christian, and it does NOT work even >>> though Nagios is running on a different box on the same network as the >>> DHCP server. In fact, the Nagios box actually gets its IP address from >>> the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 >>> on a SuSE 10.3). I've seen the same problem before against a Windows >>> DHCP server, too, never been able to make check_dhcp work. >>> >>> check_dhcp -v prints this: >>> >>> DHCP socket: 3 >>> Hardware address: 00:0c:29:0e:28:4f >>> DHCPDISCOVER to 255.255.255.255 port 67 >>> DHCPDISCOVER XID: 2138668641 (0x7F797E61) >>> DHCDISCOVER ciaddr: 0.0.0.0 >>> DHCDISCOVER yiaddr: 0.0.0.0 >>> DHCDISCOVER siaddr: 0.0.0.0 >>> DHCDISCOVER giaddr: 0.0.0.0 >>> send_dhcp_packet result: 548 >>> >>> >>> >>> >>> No (more) data received (nfound: 0) >>> Result=ERROR >>> Total responses seen on the wire: 0 >>> Valid responses for this machine: 0 >>> CRITICAL: No DHCPOFFERs were received. >>> >>> >>> >> >> >> -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 atstake at gmail.com Fri Jan 16 05:13:02 2009 From: atstake at gmail.com (Chris) Date: Fri, 16 Jan 2009 15:13:02 +1100 Subject: nagios 3.0.6-1 install on OpenSUSE 10.3 Message-ID: <8adc88580901152013s3d5e2774j6d47414f874dfc83@mail.gmail.com> I downloaded nagios 3.0.6-1 tarball and made an RPM (rpmbuild -ba /path/to/nagios.spec). I now have the RPMs under /usr/src/packages/RPMS/i586/. If I run "rpm -ivh nagios-3.0.6-1.i586.rpm" I get error: error: Failed dependencies: /usr/bin/logger is needed by nagios-3.0.6-1.i586 chkconfig is needed by nagios-3.0.6-1.i586 initscripts is needed by nagios-3.0.6-1.i586 I symlinked /bin/logger to /usr/bin/logger to no avail. chkconfig installed in /sbin/chkconfig. Couldn't find any RPM for initscripts. Thanks for any help with resolving this issue. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 cschneemann at suse.de Fri Jan 16 10:27:14 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Fri, 16 Jan 2009 10:27:14 +0100 Subject: nagios 3.0.6-1 install on OpenSUSE 10.3 In-Reply-To: <8adc88580901152013s3d5e2774j6d47414f874dfc83@mail.gmail.com> References: <8adc88580901152013s3d5e2774j6d47414f874dfc83@mail.gmail.com> Message-ID: <200901161027.14711.cschneemann@suse.de> On Friday January 16 2009 05:13:02 am Chris wrote: > I downloaded nagios 3.0.6-1 tarball and made an RPM (rpmbuild -ba > /path/to/nagios.spec). I now have the RPMs under > /usr/src/packages/RPMS/i586/. If I run "rpm -ivh > nagios-3.0.6-1.i586.rpm" I get error: > > error: Failed dependencies: > /usr/bin/logger is needed by nagios-3.0.6-1.i586 > chkconfig is needed by nagios-3.0.6-1.i586 > initscripts is needed by nagios-3.0.6-1.i586 > > I symlinked /bin/logger to /usr/bin/logger to no avail. chkconfig > installed in /sbin/chkconfig. Couldn't find any RPM for initscripts. > > Thanks for any help with resolving this issue. Hi, if you want to have it the easy way, you can find rpms in the buildservice (http://build.opensuse.org), here is the URL to the repo which you can simply add to your installation repos: http://download.opensuse.org/repositories/server:/monitoring/openSUSE_10.3/ There you can find a nagios package with all dependencies. Greetings, Christian > > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mdschreier at gmx.de Fri Jan 16 10:46:16 2009 From: mdschreier at gmx.de (Markus Schreier) Date: Fri, 16 Jan 2009 10:46:16 +0100 Subject: Notifications to unknown user for services with disabled notify Message-ID: <20090116094616.112060@gmx.net> Hello all, i'm new to the list even though i'm not new to nagios. I've taken over an installation on an ubuntu -linux and made local emails (to root or to nagios) being forwarded to some administration account. This made me realize some enormous email-traffic: My nagios-service sends notify-mails to the Mailadresse "$" on the local host. This happens even for services with disabled notifications. Host and service-notifications are affected. All configured contacts have mailadresses and get notified as configured. At least i did not see anything else. I've updated from nagios 3.0.3 to nagios 3.0.6 to get rid of this nasty behavior. But the problem still exists. The following contacts are configured: ServiceCenter, governikusadmins, mschreier , nagiosadmin, neumann, nowatzki, owinkelmann, reiher, reuleke, thegovadm All contacts have mailaddresses. And the following contact-groups: ServiceCenter: neumann , reuleke , ServiceCenter governikus-admins: governikusadmins iuk: owinkelmann , reiher nagios-admins: mschreier ocs-admins: nowatzki ziv-admins: thegovadm The problem happens with at least 8 different Services. Most of them have passive checks enabled, one is an active check. - This does not seem relevant. I've the impression, notifications to $ are only send out, in notification-disabled state. Most of the services have notifications disabled. One has notifications enabled but the service-time is disabling notifications on night time. My notify-by-email command looks like this: notify-service-by-email /bin/sh $USER1$/service_notification.template | /usr/bin/mail -s "$NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ is $SERVICESTATE$ on $HOSTALIAS$" $CONTACTEMAIL$ notify-host-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$ ($HOSTNAME$)\nState: $HOSTSTATE$ (vorher $LASTHOSTSTATE$)\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ Host Alert: $HOSTALIAS$ ($HOSTDISPLAYNAME$) is $HOSTSTATE$" $CONTACTEMAIL$ Why are there notifications being send if disabled for this service? Where does the mailadress $ come from? thanks in advance, Markus @list-moderator: I've posted a similar email yesterday, but my account was not ready jet. Sorry for being impatient. -- Markus Schreier Erfurt, Germany -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mattias.ryrlen at op5.com Fri Jan 16 12:53:54 2009 From: mattias.ryrlen at op5.com (Mattias =?ISO-8859-1?Q?Ryrl=E9n?=) Date: Fri, 16 Jan 2009 12:53:54 +0100 Subject: Question about using the NSCA addon In-Reply-To: References: Message-ID: <1232106834.7459.7.camel@mr-laptop> On Thu, 2009-01-15 at 12:13 -0700, Matthew Tice wrote: > I'm interested in using the nsca addon - but only the daemon. I > thought I could just open an tcp connection to the daemon and send my > update manually: You can setup a netcat listener on your nagios host, create a script similar to this and start it (in a screen session) #!/bin/bash CommandFile="/usr/local/nagios/var/rw/nagios.cmd" while true;do nc -k -l 1234 >> ${CommandFile} done then you can do a simple script to be run by cron on your client host could look something like this: (it works i have a solution like this) #!/bin/bash hostname="mydummyhost" plugindir="/usr/local/nagios/libexec" nagioshost="destination-server" netcat_port="1234" OUTPUT=`${plugindir}/check_ping -H ${nagioshost} -w 3000.0,80% -c 5000.0,100% -p 5` ALIVE=$? if [ ${ALIVE} = 0 ]; then NAME[0]="Load" CHECK[0]="${plugindir}/check_load -w 15,10,5 -c 30,25,20" NAME[1]="Swap" CHECK[1]="${plugindir}/check_swap -w 20% -c 10%" NAME[2]="Root Partition" CHECK[2]="${plugindir}/check_disk -w 20% -c 10% -p / -m" NAME[3]="Zombie Procs" CHECK[3]="${plugindir}/check_procs -w 5 -c 10 -s Z" i=0 for num in $(seq 0 $((${#CHECK[@]} - 1))) do OUTPUT=`${CHECK[$num]}` STATE=$? echo "[`date +%s`] PROCESS_SERVICE_CHECK_RESULT;${hostname}; ${NAME[${i}]};${STATE};${OUTPUT}"|nc ${nagioshost} ${netcat_port} i=${i}+1 done fi V?nliga h?lsningar / Best Regards Mattias Ryrl?n __________________________ op5 AB F?rsta L?nggatan 19 SE-413 27 G?teborg Mobil: +46 735-17 70 99 Support: +46 31-774 09 24 www.op5.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 16 14:21:28 2009 From: marc at ena.com (Marc Powell) Date: Fri, 16 Jan 2009 07:21:28 -0600 Subject: Notifications to unknown user for services with disabled notify In-Reply-To: <20090116094616.112060@gmx.net> References: <20090116094616.112060@gmx.net> Message-ID: <91B79D9E-FE11-4BB7-AFDD-39441F84A311@ena.com> On Jan 16, 2009, at 3:46 AM, Markus Schreier wrote: > Hello all, > > i'm new to the list even though i'm not new to nagios. I've taken > over an installation on an ubuntu -linux and made local emails (to > root or to nagios) being forwarded to some administration account. > This made me realize some enormous email-traffic: Hello and welcome. =) > > My nagios-service sends notify-mails to the Mailadresse "$" on the > local host. This happens even for services with disabled > notifications. > Host and service-notifications are affected. > Why are there notifications being send if disabled for this service? > Where does the mailadress $ come from? A complete example host and service definition would be helpful. My guess is that you have your notification commands specified as an event_handler. http://thread.gmane.org/gmane.network.nagios.user/58877 -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 challenger_joseph at yahoo.com.mx Fri Jan 16 15:18:13 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Fri, 16 Jan 2009 06:18:13 -0800 (PST) Subject: check_dhcp seems not working References: <4970051B.7070408@kkeane.com> Message-ID: <656210.41297.qm@web36507.mail.mud.yahoo.com> Thank you. But I have neither firewall nor SELinux enabled. In deed for a moment worked, but a couple of hours later it didn't work again. It's really weird. ----- Mensaje original ---- De: Kevin Keane CC: nagios-users at lists.sourceforge.net Enviado: jueves, 15 de enero, 2009 21:55:07 Asunto: Re: [Nagios-users] check_dhcp seems not working Thank you! In my case, the server-side firewall works without a problem. The server does hand out DHCP addresses all the time. It was the client-side firewall (i.e., the one on the Nagios server) that blocked the DHCP request, even though I opened both ports 67 and 68 for both TCP and UDP. It happened both with broadcast DHCP requests and with directed ones (using the -s arg). Oddly enough, I didn't see anything at all in the firewall log that would indicate what was blocked. James Miller wrote: > Sorry for the top post > >? ? 1. Lease Request - The client sends a broadcast requesting an IP >? ? ? address >? ? 2. Lease Offer - The server sends the above information and marks >? ? ? the offered address as unavailable. The message sent is a >? ? ? DHCPOFFER broadcast message. >? ? 3. Lease Acceptance - The first offer received by the client is >? ? ? accepted. The acceptance is sent from the client as a broadcast >? ? ? (DHCPREQUEST message) including the IP address of the DNS server >? ? ? that sent the accepted offer. Other DHCP servers retract their >? ? ? offers and mark the offered address as available and the >? ? ? accepted address as unavailable. >? ? 4. Server lease acknowledgement - The server sends a DHCPACK or a >? ? ? DHCPNACK if an unavailable address was requested. > > All DHCP packets travel as UDP datagrams; all client-sent packets have > source port 68 and destination port 67; all server-sent packets have > source port 67 and destination port 68. For example, a server-side > firewall should allow the following types of packets: > >? ? * Incoming packets from 0.0.0.0 or dhcp-pool to dhcp-ip >? ? * Incoming packets from any address to 255.255.255.255 >? ? * Outgoing packets from dhcp-ip to dhcp-pool or 255.255.255.255 > > where dhcp-ip represents any address configured on a DHCP server host > and dhcp-pool stands for the pool from which a DHCP server assigns > addresses to clients > > > Jim > >? > > > Kevin Keane wrote: >> Christian, actually, your question prompted me to try it again. Turned >> out that it was the firewall software on my Nagios box that blocked the >> DHCP request. As soon as I turned it off, check_dhcp worked. I'm not yet >> sure which ports to open to make it work with the firewall on. So far, I >> tried ports 67 and 68 for both TCP and UDP, but that seems not to be enough. >> >> Christian I?iguez wrote: >>? >>> Exactly Kevin, you are right >>> >>> >>> >>> ----- Mensaje original ---- >>> De: Kevin Keane >>> CC: nagios-users at lists.sourceforge.net >>> Enviado: jueves, 15 de enero, 2009 13:39:47 >>> Asunto: Re: [Nagios-users] check_dhcp seems not working >>> >>> jmoseley at corp.xanadoo.com wrote: >>>? >>>? ? >>>> Christian I?iguez ? wrote: >>>> >>>>? >>>>? ? >>>>? ? ? >>>>> Hi Everyone >>>>> >>>>> I have a linux server as dhcp server and it's working very well, and I'd >>>>>? ? >>>>>? ? ? >>>>>? ? ? ? >>>> like to monitoring it with nrpe plugin and check_dhcp.> >>>>? >>>>? ? >>>>? ? ? >>>>> The problem here is the outcome of check_dhcp is always: CRITICAL: No >>>>>? ? >>>>>? ? ? >>>>>? ? ? ? >>>> DHCPOFFERs were received. But the server is working alright. >>>>? >>>>? ? >>>>? ? ? >>>>> The command line is: check_dhcp -s serverip -t 30 >>>>> >>>>> What am I doing wrong? Any suggest? >>>>> >>>>> Thanks in advance! >>>>>? ? >>>>>? ? ? >>>>>? ? ? ? >>>> I have no idea which flavor of DHCP you are running (probably ISC's), but I >>>> don't think you are going to be able to run check_dhcp from the DHCP server >>>> itself.? The DHCP server will see an incoming requeset from itself and >>>> probably block it.? Therefore, using the nrpe method of doing these checks >>>> is a moot point. >>>> >>>> If your Nagios server is on the same network as the DHCP server, just run >>>> check_dhcp from the Nagios box.? If you're running Nagios on a different >>>> network than the DHCP server and there is a firewall in between, you'll >>>> probably have to do several things: >>>> >>>> 1. Open up a hole in the firewall to allow the Nagios server to request a >>>> DHCP address from the DHCP server >>>> 2. Have a DHCP relay statement on the router's interface your Nagios server >>>> connects to so it knows to which server to relay the DHCP request to >>>> 3. Setup a small DHCP subnet on the DHCP server in the same IP range as the >>>> Nagios server so it can offer a valid IP address >>>>? ? >>>>? ? ? >>> I actually have the same problem as Christian, and it does NOT work even >>> though Nagios is running on a different box on the same network as the >>> DHCP server. In fact, the Nagios box actually gets its IP address from >>> the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 >>> on a SuSE 10.3). I've seen the same problem before against a Windows >>> DHCP server, too, never been able to make check_dhcp work. >>> >>> check_dhcp -v prints this: >>> >>> DHCP socket: 3 >>> Hardware address: 00:0c:29:0e:28:4f >>> DHCPDISCOVER to 255.255.255.255 port 67 >>> DHCPDISCOVER XID: 2138668641 (0x7F797E61) >>> DHCDISCOVER ciaddr:? 0.0.0.0 >>> DHCDISCOVER yiaddr:? 0.0.0.0 >>> DHCDISCOVER siaddr:? 0.0.0.0 >>> DHCDISCOVER giaddr:? 0.0.0.0 >>> send_dhcp_packet result: 548 >>> >>> >>> >>> >>> No (more) data received (nfound: 0) >>> Result=ERROR >>> Total responses seen on the wire: 0 >>> Valid responses for this machine: 0 >>> CRITICAL: No DHCPOFFERs were received. >>> >>>? >>>? ? >> >> >>? -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Fri Jan 16 15:41:07 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 16 Jan 2009 08:41:07 -0600 Subject: check_dhcp seems not working In-Reply-To: <656210.41297.qm@web36507.mail.mud.yahoo.com> References: <656210.41297.qm@web36507.mail.mud.yahoo.com> Message-ID: Christian I?iguez wrote: >Thank you. > >But I have neither firewall nor SELinux enabled. In deed for a moment worked, but a couple of hours later it didn't work again. > >It's really weird. Have you checked your DHCP logs? Do you have enough leases available in the subnet you would expect the Nagios server to be offered an address from? If your DHCP server doesn't hand out DHCP addresses to other machines on that network (the same your Nagios server is on), for the ISC DHCP daemon to even work, you still must define a subnet on that local network in the DHCP config, even if you only have one DHCP address available. This isn't really a Nagios problem, but a problem with check_dhcp. It sounds like the plugin is setup with the appropriate permissions (owned by root, setuid root, etc) and that there are no inbound/outbound firewalls or SELinux issues to deal with. Honestly, unless there is a configuration problem with DHCP, I can't think of anything else. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mdschreier at gmx.de Fri Jan 16 15:47:10 2009 From: mdschreier at gmx.de (Markus Schreier) Date: Fri, 16 Jan 2009 15:47:10 +0100 Subject: Notifications to unknown user for services with disabled notify In-Reply-To: <91B79D9E-FE11-4BB7-AFDD-39441F84A311@ena.com> References: <20090116094616.112060@gmx.net> <91B79D9E-FE11-4BB7-AFDD-39441F84A311@ena.com> Message-ID: <20090116144710.112070@gmx.net> Hello Marc, thanks for your reply. yes you are wright. My notify-commands are put in as event-handler for all hosts and all services. I will just remove the event_handler line. I also set event_handler_enabled to 0 and all should be fine. Again, thank you best regards, Markus I put in a host and a service definition, just to be complete: define host { host_name hostname.domain.de alias Serviceportal VIP address x.y.z parents kp-sp-proxy check_command check_http_proxy_ping max_check_attempts 3 active_checks_enabled 1 passive_checks_enabled 0 check_period 24x7 obsess_over_host 1 check_freshness 1 event_handler notify-host-by-email event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 contact_groups nagios-admins,ServiceCenter,ziv-admins notification_interval 60 notification_period arbeitszeitrufbereit notification_options d,u,r,f notifications_enabled 1 register 1 } define service { host_name hostname.domain.de service_description Serviceportal Login VIP servicegroups webbased is_volatile 0 check_command check_serviceplattform!serviceplattform_eprtlogin.conf max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 active_checks_enabled 1 passive_checks_enabled 0 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler notify-service-by-email event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups nagios-admins,ServiceCenter,ziv-admins notification_interval 60 notification_period arbeitszeitrufbereit notification_options w,u,c,r,f notifications_enabled 1 register 1 } -------- Original-Nachricht -------- > Datum: Fri, 16 Jan 2009 07:21:28 -0600 > Von: Marc Powell > An: nagios-users Mailinglist > Betreff: Re: [Nagios-users] Notifications to unknown user for services with disabled notify > > On Jan 16, 2009, at 3:46 AM, Markus Schreier wrote: > > > Hello all, > > > > i'm new to the list even though i'm not new to nagios. I've taken > > over an installation on an ubuntu -linux and made local emails (to > > root or to nagios) being forwarded to some administration account. > > This made me realize some enormous email-traffic: > > Hello and welcome. =) > > > > > My nagios-service sends notify-mails to the Mailadresse "$" on the > > local host. This happens even for services with disabled > > notifications. > > Host and service-notifications are affected. > > > > Why are there notifications being send if disabled for this service? > > Where does the mailadress $ come from? > > A complete example host and service definition would be helpful. My > guess is that you have your notification commands specified as an > event_handler. > > http://thread.gmane.org/gmane.network.nagios.user/58877 > > -- > Marc > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Sensationsangebot verl?ngert: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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 mjtice at gmail.com Fri Jan 16 16:12:18 2009 From: mjtice at gmail.com (Matthew Tice) Date: Fri, 16 Jan 2009 08:12:18 -0700 Subject: Question about using the NSCA addon In-Reply-To: <1232106834.7459.7.camel@mr-laptop> References: <1232106834.7459.7.camel@mr-laptop> Message-ID: Thanks for the responses. The reason I didn't want to go the NSCA client route is that I didn't want to have to deploy a binary to each node I'm monitoring - really it just comes down to keeping things as simple as I can (which you wouldn't be able to tell based upon what I'm requesting). Anthony: I started looking through the source and figured I was way in over my head. As much as I tried I couldn't really get a handle on what was going on there . . . I did manage to find a Perl script online that does what I want though. However, thanks to Mattias I think I'll try to implement his method (the reason is that I have to integrate either 1. the Perl script into my existing script, or 2. Mattias' shell script into my script - I think I'd rather keep the script shorter). Thanks for the ideas guys, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 palleje at gmail.com Fri Jan 16 16:38:02 2009 From: palleje at gmail.com (Palle L Jensen) Date: Fri, 16 Jan 2009 10:38:02 -0500 Subject: Acknowledged by user + Service action url In-Reply-To: <06A33D9E-EC9B-443B-93A1-7033E69D1479@ena.com> References: <496E16DF.4030907@medi.fr><24BAD962951246718908F92F2A21C421@na.dsmain.com><0D1123D0-D1B3-4684-904F-B09113A3A217@ena.com><390BB0CB6A8347CB95D8DC14E4E50A91@na.dsmain.com> <06A33D9E-EC9B-443B-93A1-7033E69D1479@ena.com> Message-ID: That worked great, thanks much for your help! PJ > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 15, 2009 2:53 PM > To: nagios-users Mailinglist > Subject: Re: [Nagios-users] Acknowledged by user + Service action url > > > On Jan 15, 2009, at 12:51 PM, Palle L Jensen wrote: > > > Marc, > > > > Thanks for you help!! I am half way there :=) > > Good deal. > > > You are right I have been unable to add the action url in the service > > definition, due to I have several hostnames for the specific service > > check. > > > > For example the below DiskE check I have several hosts defined for > > that > > check, how would I go by to replace "johndoehost" so the link will be > > correct? > > > > http://1xx.xx.xxx.xxx/nagios/cgi- > bin/extinfo.cgi?type=2&host=johndoehost&ser > > vice=DiskE > > > http://nagios.sourceforge.net/docs/3_0/macros.html > > "Macro Substitution - How Macros Work > > Before Nagios executes a command, it will replace any macros it finds > in the command definition with their corresponding values. This macro > substitution occurs for all types of commands that Nagios executes - > host and service checks, notifications, event handlers, etc. > > Certain macros may themselves contain other macros. These include the > $HOSTNOTES$, $HOSTNOTESURL$, $HOSTACTIONURL$, $SERVICENOTES$, > $SERVICENOTESURL$, and $SERVICEACTIONURL$ macros. " > > In your case, I expect the following should work -- > > define service { > ... > action_url http://1xxx.xx.xxx.xxx/nagios/cgi- > bin/extinfo.cgi?type=2&host=$HOSTNAME$&service=DiskE > ... > } > > -- > Marc > > -------------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jcall at verio.net Fri Jan 16 17:42:39 2009 From: jcall at verio.net (Jonathan Call) Date: Fri, 16 Jan 2009 11:42:39 -0500 Subject: Hosts report 'DOWN, HARD' after first attempt. Message-ID: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net> I am running a distributed monitoring system using Nagios 2.11 on FreeBSD 6.3. I use NSCA to send host and services events to the central server from the slave servers and have always had the following problem: A distributed server notices a host service is "non-Ok" and fires off check-host-alive. I have it set up to do check_ICMP and so it fires off five ICMP packets. Since the network isn't always perfect those five packets get dropped. However, I have my max_retry_interval set to 3 so it fires off another check_ICMP which completes just fine. As a result I see the following events take place on the slave server: [01-16-2009 15:18:46] HOST ALERT: s3200.blah.net;UP;SOFT;2;OK - 10.XX.XX.XX: rta 100.294ms, lost 0% [01-16-2009 15:18:46] HOST ALERT: s3200.blah.net;DOWN;SOFT;1;CRITICAL - 10.XX.XX.XX: rta nan, lost 100% However on the central server I see the following: [01-16-2009 15:19:02] HOST NOTIFICATION: NOC-email;s3200.blah.net;UP;host-notify-by-email;OK - 10.XX.XX.XX: rta 100.294ms, lost 0% [01-16-2009 15:19:01] HOST ALERT: s3200.blah.net;UP;HARD;1;OK - 10.XX.XX.XX: rta 100.294ms, lost 0% [01-16-2009 15:19:01] HOST NOTIFICATION: NOC-email;s3200.blah.net;DOWN;host-notify-by-email;CRITICAL - 10.XX.XX.XX: rta nan, lost 100% [01-16-2009 15:19:01] HOST ALERT: s3200.blah.net;DOWN;HARD;1;CRITICAL - 10.XX.XX.XX: rta nan, lost 100% The central server is immediately flagging the host as DOWN, HARD in spite of having the same max_retry_interval = 3 setting. On some hosts this is generating a tone of false "HOST DOWN" notifications. Is there any way to fix it? Jonathan Call This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 james.mohr at elaxy.com Fri Jan 16 19:01:33 2009 From: james.mohr at elaxy.com (Mohr James) Date: Fri, 16 Jan 2009 19:01:33 +0100 Subject: Nagios 3.x - Uncheck "Send Notification" when acknowledging problem Message-ID: Hi All! When you acknowledge a problem, there is a checkbox "Send Notification" that is checked by default. Is there anyway short of editing the source code to change the default so that it is unchecked by default? Any info is appreaciated. Regards, jimmo -- Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 patrick.morris at hp.com Fri Jan 16 19:40:03 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 16 Jan 2009 10:40:03 -0800 Subject: Hosts report 'DOWN, HARD' after first attempt. In-Reply-To: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <20090116184003.GD26044@bakgwai.americas.hpqcorp.net> On Fri, 16 Jan 2009, Jonathan Call wrote: > I am running a distributed monitoring system using Nagios 2.11 on > FreeBSD 6.3. I use NSCA to send host and services events to the central > server from the slave servers and have always had the following problem: > > A distributed server notices a host service is "non-Ok" and fires off > check-host-alive. I have it set up to do check_ICMP and so it fires off > five ICMP packets. Since the network isn't always perfect those five > packets get dropped. However, I have my max_retry_interval set to 3 so > it fires off another check_ICMP which completes just fine. As a result I > see the following events take place on the slave server: > > [01-16-2009 15:18:46] HOST ALERT: s3200.blah.net;UP;SOFT;2;OK - > 10.XX.XX.XX: rta 100.294ms, lost 0% > [01-16-2009 15:18:46] HOST ALERT: s3200.blah.net;DOWN;SOFT;1;CRITICAL - > 10.XX.XX.XX: rta nan, lost 100% > > However on the central server I see the following: > > [01-16-2009 15:19:02] HOST NOTIFICATION: > NOC-email;s3200.blah.net;UP;host-notify-by-email;OK - 10.XX.XX.XX: rta > 100.294ms, lost 0% > [01-16-2009 15:19:01] HOST ALERT: s3200.blah.net;UP;HARD;1;OK - > 10.XX.XX.XX: rta 100.294ms, lost 0% > [01-16-2009 15:19:01] HOST NOTIFICATION: > NOC-email;s3200.blah.net;DOWN;host-notify-by-email;CRITICAL - > 10.XX.XX.XX: rta nan, lost 100% > [01-16-2009 15:19:01] HOST ALERT: s3200.blah.net;DOWN;HARD;1;CRITICAL - > 10.XX.XX.XX: rta nan, lost 100% > > The central server is immediately flagging the host as DOWN, HARD in > spite of having the same max_retry_interval = 3 setting. On some hosts > this is generating a tone of false "HOST DOWN" notifications. Is there > any way to fix it? The max_check_attempts only applies to active checks, not the passive ones you're sending the central server (at least I assume when you said max_retry_interval you meant max_check_attempts) -- and you may note that SOFT and HARD are only relative to the server doing the checking; they probably aren't passed as part of the passive check submission process. In short, passive host checks are a bit of a pain. I'm not sure exactly how you're passing check results to the central server, but you may want to consider modifying the process to only send host check results when they are in a hard state. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Fri Jan 16 20:38:58 2009 From: matt at frozenatom.com (Matt Nelson) Date: Fri, 16 Jan 2009 12:38:58 -0700 Subject: Support for snmp v2c with check_all_interfaces.pl Message-ID: <148f6bb30901161138q6e3241adjd1c304dc5fab65e5@mail.gmail.com> I have been using check_all_interfaces.pl for a while on 32bit machines and it works great for checking the interfaces for errors. I would like to use it on a 64bit machine, but it gives the error: CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) due to it trying to read a Counter64 with snmp v1. It does not support v2c, or v3, which supports Counter64. Does anyone know of a similar plugin that will work, or a way around this? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jcall at verio.net Fri Jan 16 20:50:20 2009 From: jcall at verio.net (Jonathan Call) Date: Fri, 16 Jan 2009 14:50:20 -0500 Subject: Hosts report 'DOWN, HARD' after first attempt. In-Reply-To: <20090116184003.GD26044@bakgwai.americas.hpqcorp.net> References: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net> <20090116184003.GD26044@bakgwai.americas.hpqcorp.net> Message-ID: <04F3233F47E2714CB7431AE913E57E77032B8DD1@IAD-WPRD-XCHB02.corp.verio.net> > -----Original Message----- > From: Patrick Morris [mailto:patrick.morris at hp.com] > Sent: Friday, January 16, 2009 11:40 AM > To: Jonathan Call > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Hosts report 'DOWN, HARD' after first attempt. > ... > > I'm not sure exactly how you're passing check results to the central > server, but you may want to consider modifying the process to only send > host check results when they are in a hard state. That sounds like an excellent recommendation. Here is my host check command: $USER1$/custom/submit_host_check_result.sh $HOSTNAME$ $HOSTSTATEID$ '$HOSTOUTPUT$' I'll need to modify it to be like this: $USER1$/custom/submit_host_check_result.sh $HOSTNAME$ $HOSTSTATEID$ '$HOSTOUTPUT$' '$HOSTSTATETYPE$' And then my NSCA host script would then become: ------------------------------ #!/bin/sh # Arguments and corresponding NAGIOS API variable # $1 = $HOSTNAME$ # $2 = $HOSTSTATEID$ # $3 = $HOSTOUTPUT$ # $4 = $HOSTSTATETYPE$ # # The variables must be piped in as tab delimited variables # with a newline termination if [ "$4" = "HARD" ]; then /usr/bin/printf "%s\t%s\t%s\n" "$1" "$2" "$3" | /usr/local/sbin/send_nsca XXX.XXX.XXX.XXX -c /usr/local/etc/send_nsca.cfg fi # Do nothing for SOFT ------------------------------ Thank you, Jonathan This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 16 21:19:55 2009 From: marc at ena.com (Marc Powell) Date: Fri, 16 Jan 2009 14:19:55 -0600 Subject: Hosts report 'DOWN, HARD' after first attempt. In-Reply-To: <20090116184003.GD26044@bakgwai.americas.hpqcorp.net> References: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net> <20090116184003.GD26044@bakgwai.americas.hpqcorp.net> Message-ID: <9F519F45-C718-4A66-B6E1-967DFCF7B54F@ena.com> On Jan 16, 2009, at 12:40 PM, Patrick Morris wrote: > The max_check_attempts only applies to active checks, not the passive > ones you're sending the central server (at least I assume when you > said > max_retry_interval you meant max_check_attempts) -- and you may note > that SOFT and HARD are only relative to the server doing the checking; > they probably aren't passed as part of the passive check submission > process. Correct, all passive host checks are assumed to be HARD states. Note that this is addressed in nagios-3 -- http://nagios.sourceforge.net/docs/3_0/configmain.html#passive_host_checks_are_soft -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rsaeks at district30.k12.il.us Fri Jan 16 21:55:02 2009 From: rsaeks at district30.k12.il.us (Randall R. Saeks) Date: Fri, 16 Jan 2009 14:55:02 -0600 Subject: Nagios 3.0.6 on 10.5.6 Server Message-ID: <8E712C33-106A-4418-BDCA-8094BDF49561@district30.k12.il.us> Ever since I upgraded my server running Nagios 3.0.6 to 10.5.6, I can't get Nagios to launch. When I try to start it via the CLI command, the following gets returned in the nagios.log: [1232136591] Nagios 3.0.6 starting... (PID=27107) [1232136591] Local time is Fri Jan 16 14:09:51 CST 2009 [1232136591] LOG VERSION: 2.0 [1232136591] Finished daemonizing... (New PID=27109) [1232136591] Error: Could not create external command file '/opt/local/ var/nagios/rw/nagios.cmd' as named pipe: (22) -> Invalid argument. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. [1232136591] Bailing out due to errors encountered while trying to initialize the external command file... (PID=27109) I've deleted said file, but no such luck in getting it to run. While the web-interface is there and running, if I go to tactical overview or any of the other menus say that Nagios isn't running (which makes sense since the app bails). Does anyone have any ideas on this and something to check out / try? I have installed this through Macports. Thanks ---- Randy Saeks, ACSA Network & Server Administrator Northbrook / Glenview School District 30 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jcall at verio.net Fri Jan 16 22:15:49 2009 From: jcall at verio.net (Jonathan Call) Date: Fri, 16 Jan 2009 16:15:49 -0500 Subject: Hosts report 'DOWN, HARD' after first attempt. In-Reply-To: <9F519F45-C718-4A66-B6E1-967DFCF7B54F@ena.com> References: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net><20090116184003.GD26044@bakgwai.americas.hpqcorp.net> <9F519F45-C718-4A66-B6E1-967DFCF7B54F@ena.com> Message-ID: <04F3233F47E2714CB7431AE913E57E77032B8DF2@IAD-WPRD-XCHB02.corp.verio.net> > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Friday, January 16, 2009 1:20 PM > To: nagios-users Mailinglist > Subject: Re: [Nagios-users] Hosts report 'DOWN, HARD' after first attempt. > > > On Jan 16, 2009, at 12:40 PM, Patrick Morris wrote: > > > The max_check_attempts only applies to active checks, not the passive > > ones you're sending the central server (at least I assume when you > > said > > max_retry_interval you meant max_check_attempts) -- and you may note > > that SOFT and HARD are only relative to the server doing the checking; > > they probably aren't passed as part of the passive check submission > > process. > > Correct, all passive host checks are assumed to be HARD states. Note > that this is addressed in nagios-3 -- > > http://nagios.sourceforge.net/docs/3_0/configmain.html#passive_host_chec ks > _are_soft > > -- > Marc > If they're all assumed to be SOFT, then a host failure would never trigger a notification? Another potential option, if you're not using NSCA (like those using the OCP_daemon) is to have the slave servers send out the notification emails instead of the central one. The slaves would be active monitors and would honor the host's max_check_attempts variable. This of course introduces other problems if the slave is behind a restrictive firewall. Jonathan This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jcall at verio.net Fri Jan 16 22:25:09 2009 From: jcall at verio.net (Jonathan Call) Date: Fri, 16 Jan 2009 16:25:09 -0500 Subject: Nagios 3.0.6 on 10.5.6 Server In-Reply-To: <8E712C33-106A-4418-BDCA-8094BDF49561@district30.k12.il.us> References: <8E712C33-106A-4418-BDCA-8094BDF49561@district30.k12.il.us> Message-ID: <04F3233F47E2714CB7431AE913E57E77032B8DF7@IAD-WPRD-XCHB02.corp.verio.net> > -----Original Message----- > From: Randall R. Saeks [mailto:rsaeks at district30.k12.il.us] > Sent: Friday, January 16, 2009 1:55 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 3.0.6 on 10.5.6 Server > > Ever since I upgraded my server running Nagios 3.0.6 to 10.5.6, I > can't get Nagios to launch. When I try to start it via the CLI > command, the following gets returned in the nagios.log: > > [1232136591] Nagios 3.0.6 starting... (PID=27107) > [1232136591] Local time is Fri Jan 16 14:09:51 CST 2009 > [1232136591] LOG VERSION: 2.0 > [1232136591] Finished daemonizing... (New PID=27109) > [1232136591] Error: Could not create external command file '/opt/local/ > var/nagios/rw/nagios.cmd' as named pipe: (22) -> Invalid argument. If > this file already exists and you are sure that another copy of Nagios > is not running, you should delete this file. > [1232136591] Bailing out due to errors encountered while trying to > initialize the external command file... (PID=27109) > > I've deleted said file, but no such luck in getting it to run. > > While the web-interface is there and running, if I go to tactical > overview or any of the other menus say that Nagios isn't running > (which makes sense since the app bails). > > Does anyone have any ideas on this and something to check out / try? > I have installed this through Macports. > > Thanks > > ---- > Randy Saeks, ACSA > Network & Server Administrator > Northbrook / Glenview School District 30 > Is it me or do you have a space in that file path? '/opt/local/ var/nagios/rw/nagios.cmd' Looks like a typo in your nagios.cfg file. This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 16 22:31:39 2009 From: marc at ena.com (Marc Powell) Date: Fri, 16 Jan 2009 15:31:39 -0600 Subject: Hosts report 'DOWN, HARD' after first attempt. In-Reply-To: <04F3233F47E2714CB7431AE913E57E77032B8DF2@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E77032B8D82@IAD-WPRD-XCHB02.corp.verio.net><20090116184003.GD26044@bakgwai.americas.hpqcorp.net> <9F519F45-C718-4A66-B6E1-967DFCF7B54F@ena.com> <04F3233F47E2714CB7431AE913E57E77032B8DF2@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: On Jan 16, 2009, at 3:15 PM, Jonathan Call wrote: > http://nagios.sourceforge.net/docs/3_0/configmain.html#passive_host_chec > ks_are_soft > > If they're all assumed to be SOFT, then a host failure would never > trigger a notification? My interpretation of the parameter is that passive host results are not automatically HARD but instead follow the same processes as an active check. Upon reaching max_check_attempts, nagios sets the host into a HARD state. That would be most logical given the previous behavior and the other changes to host checking but I don't really care enough about it to go look in the source (I'm not running 3.x yet). ;) -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Sat Jan 17 03:39:59 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 16 Jan 2009 21:39:59 -0500 Subject: What does the flag failure_prediction_enabled In-Reply-To: References: Message-ID: <497144FF.5050004@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/01/09 11:48 AM, Michel MAYEN wrote: > Hi all, > > I use Nagios 3.0.6 > > I can't find any informations on the flag "failure_prediction_enabled" > in service definition. What is the effect of this flag ? First result for 'nagios failure prediction' on Google: http://www.google.com/search?btnI=&q=nagios+failure+prediction - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJcUT/6dZ+Kt5BchYRAr5cAJ4srxIpd0iDas6b97lV2HR077JZIQCgzRhW ySwz6zDhW1W9FB4bGo81C1s= =ekIt -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 andrea.gabellini at telecomitalia.sm Sat Jan 17 08:47:07 2009 From: andrea.gabellini at telecomitalia.sm (Andrea Gabellini) Date: Sat, 17 Jan 2009 08:47:07 +0100 Subject: Support for snmp v2c with check_all_interfaces.pl In-Reply-To: <148f6bb30901161138q6e3241adjd1c304dc5fab65e5@mail.gmail.com> References: <148f6bb30901161138q6e3241adjd1c304dc5fab65e5@mail.gmail.com> Message-ID: <49718CFB.9010407@telecomitalia.sm> Matt, the original code use snmp v2c as the default, and it works fine. Did you change the default? Andrea Matt Nelson wrote: > I have been using check_all_interfaces.pl for a while on 32bit machines > and it works great for checking the interfaces for errors. I would like > to use it on a 64bit machine, but it gives the error: > > CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) > > due to it trying to read a Counter64 with snmp v1. It does not support > v2c, or v3, which supports Counter64. > > Does anyone know of a similar plugin that will work, or a way around this? > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- --------------------------------------- Monday is an awful way to spend 1/7th of your life. --------------------------------------- Ing. Andrea Gabellini Email: andrea.gabellini at telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 loisbennett.com Thu Jan 8 19:01:47 2009 From: nagios at loisbennett.com (Lois Bennett) Date: Thu, 8 Jan 2009 13:01:47 -0500 Subject: works from command line fails from web Message-ID: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> Hi I am using Nagios 3.0.3 on a Solaris 8 box. (Solaris 10 will come soon to this box.) I am moving and upgrading my nagios server. It has been going pretty well until now. Two of my check modules work fine when invoked from the command line but fail when called by nagios. check_dns and check_simap. I tested that they run in sh with no path set as root. I set nagios to run as root but that has not solved my problem. here is the command line output: # /opt/TWWfsw/nagiosserver30/libexec/check_dns -H coffee.bwh.harvard.edu -s turing --timeout=25 DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 # /opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993 SIMAP OK - 0.039 second response time on port 993 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 12:40:17 -0500 (EST)]|time=0.038972s;;;0.000000;10.000000 the errors in nagios are DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no address IMAPS Connection refused I don't know what to try. Can anyone help? Peace, Lois Lois Bennett, MSEE Senior System Administrator Channing Laboratory Brigham & Women's Hospital A Teaching Affiliate of Harvard Medical School and Harvard School of Public Health ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 8 19:38:27 2009 From: marc at ena.com (Marc Powell) Date: Thu, 8 Jan 2009 12:38:27 -0600 Subject: works from command line fails from web In-Reply-To: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> References: <9344b49e0901081001w72f0578fl85b87647c5fa69be@mail.gmail.com> Message-ID: On Jan 8, 2009, at 12:01 PM, Lois Bennett wrote: > Hi > I am using Nagios 3.0.3 on a Solaris 8 box. (Solaris 10 will come soon > to this box.) > > I am moving and upgrading my nagios server. It has been going pretty > well until now. Two of my check modules work fine when invoked from > the command line but fail when called by nagios. check_dns and > check_simap. > > I tested that they run in sh with no path set as root. Nagios does not run as root. Test as the nagios user and you'll likely see different results. > I set nagios to run as root but that has not solved my problem. You should never do this. > here is the command line output: > # /opt/TWWfsw/nagiosserver30/libexec/check_dns -H > coffee.bwh.harvard.edu -s turing --timeout=25 > DNS ok - 0 seconds response time, Address(es) is/are 134.174.249.54 > > # /opt/TWWfsw/nagiosserver30/libexec/check_simap -H turing -p 993 > SIMAP OK - 0.039 second response time on port 993 [* OK [CAPABILITY > IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] > turing IMAP4rev1 2006c.374 at Thu, 8 Jan 2009 12:40:17 -0500 > (EST)]|time=0.038972s;;;0.000000;10.000000 > > > the errors in nagios are > DNS CRITICAL - '/usr/sbin/nslookup' output parsing exited with no > address > IMAPS Connection refused I'd say either you'll see different results when testing as the nagios user which will probably provide more direction or the commands being run by nagios are not the same as what you're testing. Please post the service{} and command{} definitions for these if your testing as the nagios user is successful. -- Marc ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Nagios-users mailing list Nagios-users 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 glowe at sbcglobal.net Mon Jan 12 20:56:58 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 12 Jan 2009 11:56:58 -0800 (PST) Subject: Elevated alerts Message-ID: <208886.57499.qm@web81804.mail.mud.yahoo.com> Hi James, Good news. I followed your advice and read some more about the definitions. But the thing that really helped was twofold: One was there was no reference to a global service template. The other thing was adding the contact for the service definition. There's a lot to this thing! Many thanks for staying the course! ----- Original Message ---- From: "jmoseley at corp.xanadoo.com" To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, January 12, 2009 9:21:03 AM Subject: Re: [Nagios-users] Elevated alerts Grant, you've got me really confused now. For starters, I would strongly encourage you to go back and read the documentation on object defitions. It may be that by default notifications are enabled and that notification options are also set to something as default. With that said, since it appears the service definition below doesn't contain a reference to a global service template, I don't see where you have told the 'check remote zombie processes' service who to send alerts to. You either need a contacts or contacts_group argument to define who the service should send alerts to, something like: contacts glowe1 How are your other service definitions setup? If somehow email is working for the 'email' contact, but not for the 'paging' contact, then the contact macro you have set up as definied by the contact-by-pager definition is most likely the culprit. You're going to have to start with a known working contact macro and edit it until you get it working. Start by sending both critical and warning alerts to the working contact., then create new contacts with different alert options making sure you add those contacts to the contacts definition of the service definition. Lastly, have you verified your config? nagios -v ///nagios.cfg This will tell you if your config is generally OK. James Moseley Grant Lowe To jmoseley at corp.xanadoo.com 01/12/2009 10:55 cc AM nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Elevated alerts James, I thought I was trying to make this config as simple as possible. I'm only monitoring five UNIX boxes right now. Hopefully going to expand that soon with Nagios :-> The hosts I'm monitoring didn't have any notification options, but they do now. All six. This is what I have for the zombie processes: define service{ host_name blarney,frogmore,katz,dunvegan,redfort hostgroup_name solaris-servers service_description Check Remote Zombie Processes check_command check_nrpe!check_zombie_procs max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s } I don't have services disabled or enabled right now in any of the related service definitions (like the one above). Do I need to explicitly turn them on? I thought they were already on, considering I'm getting notifications already through email. Please advise. Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 pzn111 at gmail.com Mon Jan 19 08:40:24 2009 From: pzn111 at gmail.com (m s) Date: Mon, 19 Jan 2009 12:40:24 +0500 Subject: Fwd: $SERVICEOUTPUT$ empty in e-mail notifications Message-ID: Hello Same problem here. Nagios 3.0.3, Debian Etch 2.6.18-6-686 A part of nagios.debug. It includes command definition by itself, so I don't post it. [1232341045.014023] [2048.1] [pid=31719] **** BEGIN MACRO PROCESSING *********** [1232341045.014028] [2048.1] [pid=31719] Processing: '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$' [1232341045.014099] [2048.1] [pid=31719] Done. Final output: '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Disk G: Free Space\nHost: serv\nAddress: 192.168.19.99\nState: WARNING\n\nDate/Time: Mon Jan 19 09:57:25 YEKT 2009\n\nAdditional Info:\n\ng:\ - total: 136,73 Gb - used: 125,08 Gb (91%) - free 11,65 Gb (9%)" | /usr/bin/mail -s "** PROBLEM Service Alert: serv/Disk G: Free Space is WARNING **" admin at some.domain' [1232341045.014107] [2048.1] [pid=31719] **** END MACRO PROCESSING ************* Executing the "/usr/bin/printf" part in the console gives the same output as in e-mail notofications. While writing this message I figured out that adding \n to the end of the string passed to printf resolves the problem. I guess it's not a nagios bug. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 treibholz at sozial-inkompetent.de Mon Jan 19 10:04:56 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Mon, 19 Jan 2009 10:04:56 +0100 Subject: NSClient++ and CheckEventLog Message-ID: <20090119090456.GB20304@umbach-racing.de> Hi, I wonder why the following check works on a German Windows 2k3 server, but not on an English one. To me this makes no sense... NSC.ini is the same. CheckEventLog filter=new file=application MaxWarn=1 MaxCrit=1 filter+generated=<2h filter==eventID=888 Errormessage: "EventlogBuffer is too small (set the value of buffer_size): 122 The data area passed to a system call is too small." NSClient++ Version: 0.3.5.1 2008-09-24 (32bit) Maybe the language is just a coincidence... Cheers Klaus -- BOFH excuse #300: Digital Manipulator exceeding velocity parameters ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sean.obrien at jp.fujitsu.com Mon Jan 19 10:18:18 2009 From: sean.obrien at jp.fujitsu.com (Sean O`Brien) Date: Mon, 19 Jan 2009 18:18:18 +0900 Subject: Retrieving Data from M.I.B. In-Reply-To: <496F1C16.4010405@aei.ca> References: <496F1C16.4010405@aei.ca> Message-ID: <200901190918.AA00241@FM-1303930367.jp.fujitsu.com> Dear Thomas, Thank you for your reply. Regarding calculating the maximum size, could this not be done be specifying or requesting the maximum transfer ability of the network connection itself? E.g., Ethernet connection. Then, from knowing this, work out the average size? Would there exist a plug-in that achieves this? Thomas Guyot-Sionnest ????????: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On 15/01/09 06:13 AM, Sean O`Brien wrote: >> Dear Mailing List, >> >> >> My question is regarding the check_snmp_int.pl plug-in functionality. >> >> At present the script retrieves network information from the M.I.B.-II and has the functionality to output performance >> data in octects on specified devices. >> Using, for example: >> >> -Soption: Include speed in performance output in bits/s as '_speed_bps' >> -y option : output performance data in % of interface speed >> >> >> However, is there a plug-in?(similar to the one above) that can calculate the percentage of interface speeds of Unicast >> and Broadcast packets? > >To calculate percentage, you need a maximum value and you don't have one >for packets. Packet throughput depends mainly on average packet size and >hardware so there's no way it could be shown in percentage. > >- -- >Thomas >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.6 (GNU/Linux) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iD8DBQFJbxwW6dZ+Kt5BchYRAiE5AJwJg8dzHwPvd/tuSCQhV1qozw0fLgCg3tHr >1B1BP4bwPBeUVugePeRFkaA= >=mvWn >-----END PGP SIGNATURE----- > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 at medin.name Mon Jan 19 11:07:45 2009 From: michael at medin.name (Michael Medin) Date: Mon, 19 Jan 2009 11:07:45 +0100 Subject: NSClient++ and CheckEventLog In-Reply-To: <20090119090456.GB20304@umbach-racing.de> References: <20090119090456.GB20304@umbach-racing.de> Message-ID: <497450F1.3020509@medin.name> It has nothing to do with language... The reason is that one of them has an entry which is "too long" so you need to update the buffer used when NSClinet++ reads the eventlog. The simplest way to solve this is to increase the buffer_size variable to something "large enough". If you check the wiki/forums on nsclient.org you can find some "values that worked for others" or you can play around and find what works for you. // Michael Medin Klaus Umbach skrev: > Hi, > > I wonder why the following check works on a German Windows 2k3 server, but > not on an English one. To me this makes no sense... NSC.ini is the same. > > CheckEventLog filter=new file=application MaxWarn=1 MaxCrit=1 filter+generated=<2h filter==eventID=888 > > Errormessage: "EventlogBuffer is too small (set the value of buffer_size): 122 The data area passed to a system call is too small." > > NSClient++ Version: 0.3.5.1 2008-09-24 (32bit) > > Maybe the language is just a coincidence... > > Cheers > Klaus > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 treibholz at sozial-inkompetent.de Mon Jan 19 12:11:32 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Mon, 19 Jan 2009 12:11:32 +0100 Subject: NSClient++ and CheckEventLog In-Reply-To: <497450F1.3020509@medin.name> References: <20090119090456.GB20304@umbach-racing.de> <497450F1.3020509@medin.name> Message-ID: <20090119111132.GC20304@umbach-racing.de> On 19/01/09 11:07, Michael Medin wrote: > It has nothing to do with language... > > The reason is that one of them has an entry which is "too long" so you > need to update the buffer used when NSClinet++ reads the eventlog. > The simplest way to solve this is to increase the buffer_size variable > to something "large enough". > If you check the wiki/forums on nsclient.org you can find some "values > that worked for others" or you can play around and find what works for > you. Thanks! buffer_size=520000 worked. Now I have to change it everywhere... :-( - Klaus > > // Michael Medin > > Klaus Umbach skrev: >> Hi, >> >> I wonder why the following check works on a German Windows 2k3 server, but >> not on an English one. To me this makes no sense... NSC.ini is the same. >> >> CheckEventLog filter=new file=application MaxWarn=1 MaxCrit=1 filter+generated=<2h filter==eventID=888 >> >> Errormessage: "EventlogBuffer is too small (set the value of buffer_size): 122 The data area passed to a system call is too small." >> >> NSClient++ Version: 0.3.5.1 2008-09-24 (32bit) >> >> Maybe the language is just a coincidence... >> >> Cheers >> Klaus >> >> >> > > -- BOFH excuse #271: The kernel license has expired ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 alexdehaini at gmail.com Mon Jan 19 13:25:43 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 19 Jan 2009 12:25:43 +0000 Subject: Hostgroup Issue Message-ID: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> Hi Guys, I just defined a hostgroup and added members to it. I have also added each host and their services. I checked nagios for any errors and there are none. When I restart nagios, I can see the hostgroup alright but there are no host/services under it. I get this error SITE-CANTOMENTS (CANTOMENTS ) No matching hosts No matching services Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 at medin.name Mon Jan 19 13:22:47 2009 From: michael at medin.name (Michael Medin) Date: Mon, 19 Jan 2009 13:22:47 +0100 Subject: NSClient++ and CheckEventLog In-Reply-To: <20090119111132.GC20304@umbach-racing.de> References: <20090119090456.GB20304@umbach-racing.de> <497450F1.3020509@medin.name> <20090119111132.GC20304@umbach-racing.de> Message-ID: <49747097.5030508@medin.name> humm... I would not change it everywhere since I (personally) think it is a pretty rare "problem" unles you have an applicatikon which usualy logs very long messages. What you are saying is use a .5Mb memory on all my servers just because it "might be a long message" since very very long message (the message data is several K's in size) are not too common in the eventlog I would not change anything unless the error pops up. // Michael Medin Klaus Umbach skrev: > On 19/01/09 11:07, Michael Medin wrote: > >> It has nothing to do with language... >> >> The reason is that one of them has an entry which is "too long" so you >> need to update the buffer used when NSClinet++ reads the eventlog. >> The simplest way to solve this is to increase the buffer_size variable >> to something "large enough". >> If you check the wiki/forums on nsclient.org you can find some "values >> that worked for others" or you can play around and find what works for >> you. >> > > Thanks! > > buffer_size=520000 worked. Now I have to change it everywhere... :-( > > - Klaus > > >> // Michael Medin >> >> Klaus Umbach skrev: >> >>> Hi, >>> >>> I wonder why the following check works on a German Windows 2k3 server, but >>> not on an English one. To me this makes no sense... NSC.ini is the same. >>> >>> CheckEventLog filter=new file=application MaxWarn=1 MaxCrit=1 filter+generated=<2h filter==eventID=888 >>> >>> Errormessage: "EventlogBuffer is too small (set the value of buffer_size): 122 The data area passed to a system call is too small." >>> >>> NSClient++ Version: 0.3.5.1 2008-09-24 (32bit) >>> >>> Maybe the language is just a coincidence... >>> >>> Cheers >>> Klaus >>> >>> >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 assaf.flatto at ssp-intl.com Mon Jan 19 13:12:22 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Mon, 19 Jan 2009 12:12:22 +0000 Subject: Failure to send SMS notification Message-ID: <200901191212.23017.assaf.flatto@ssp-intl.com> Hello I just upgraded my prod nagios from 2.10 to 3.0.6 (on SLES 10.2), and now SMS notifications are not being sent out. Mail notifications are being sent and received ,but the SMS are not ! I've enables debugging and tried to send sms notification by forcing a notification with the external commands - the command is registered in the log and debug file , but not being processed . we are using a web service to send the SMS's , when i use the command from the CLI - it works fine and I get the SMS within 5 seconds . Command definition : define command{ command_name notify-service-by-SMS command_line $USER1$/sms-api.php $HOSTNAME$ $SERVICEDESC$ $NOTIFICATIONTYPE$ $SHORTDATETIME$ $SERVICEOUTPUT$ $CONTACTPAGER$ & } define command{ command_name host-notify-by-SMS command_line $USER1$/sms-api.php $HOSTNAME$ $HOSTSTATE$ $NOTIFICATIONTYPE$ $SHORTDATETIME$ $SERVICEOUTPUT$ $CONTACTPAGER$ & } from the nagios.log : [1232366085] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;foo;Apache;2;Officer-of-the-watch;why the hell isn't it sending from the nagios.debug : [1232366085.366513] [128.2] [pid=2883] Raw command entry: [1232366082] SEND_CUSTOM_SVC_NOTIFICATION;foo;Apache;2;Officer-of-the-watch;why the hell isn't it sending [1232366085.366786] [128.1] [pid=2883] External Command Type: 160 [1232366085.366803] [128.1] [pid=2883] Command Entry Time: 1232366082 [1232366085.366816] [128.1] [pid=2883] Command Arguments: foo;Apache;2;Officer-of-the-watch;why the hell isn't it sending Has any of you guys encountered something similar before ? Thanks -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 joydeep at infoservices.in Mon Jan 19 13:46:32 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Mon, 19 Jan 2009 18:16:32 +0530 Subject: bandwidtht monitor ? Message-ID: <49747628.20308@infoservices.in> Hello all, nagios is capable to do a lot. But is it possible to monitor the the bandwidht of a remote server using nagios ? I am interested to achieve 2 types of monitoring 1> bandwidht monitoring based on the IP 2> bandwidht monitoring of the virtual hosts Is any one among the two possible with nagios ? Kindly suggest. Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 treibholz at sozial-inkompetent.de Mon Jan 19 14:02:41 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Mon, 19 Jan 2009 14:02:41 +0100 Subject: NSClient++ and CheckEventLog In-Reply-To: <49747097.5030508@medin.name> References: <20090119090456.GB20304@umbach-racing.de> <497450F1.3020509@medin.name> <20090119111132.GC20304@umbach-racing.de> <49747097.5030508@medin.name> Message-ID: <20090119130241.GD20304@umbach-racing.de> On 19/01/09 13:22, Michael Medin wrote: > humm... > > I would not change it everywhere since I (personally) think it is a > pretty rare "problem" unles you have an applicatikon which usualy logs > very long messages. > What you are saying is use a .5Mb memory on all my servers just because > it "might be a long message" since very very long message (the message > data is several K's in size) are not too common in the eventlog I would > not change anything unless the error pops up. I prefer having a consistent configuration on all servers than saving 512kb RAM. So now I change my standard configuration, but won't change it on the machines, until the problem appears. Memory is cheap nowadays :-) - Klaus > > // Michael Medin > > Klaus Umbach skrev: >> On 19/01/09 11:07, Michael Medin wrote: >> >>> It has nothing to do with language... >>> >>> The reason is that one of them has an entry which is "too long" so >>> you need to update the buffer used when NSClinet++ reads the >>> eventlog. >>> The simplest way to solve this is to increase the buffer_size >>> variable to something "large enough". >>> If you check the wiki/forums on nsclient.org you can find some >>> "values that worked for others" or you can play around and find what >>> works for you. >>> >> >> Thanks! >> >> buffer_size=520000 worked. Now I have to change it everywhere... :-( >> >> - Klaus >> >> >>> // Michael Medin >>> >>> Klaus Umbach skrev: >>> >>>> Hi, >>>> >>>> I wonder why the following check works on a German Windows 2k3 server, but >>>> not on an English one. To me this makes no sense... NSC.ini is the same. >>>> >>>> CheckEventLog filter=new file=application MaxWarn=1 MaxCrit=1 filter+generated=<2h filter==eventID=888 >>>> >>>> Errormessage: "EventlogBuffer is too small (set the value of buffer_size): 122 The data area passed to a system call is too small." >>>> >>>> NSClient++ Version: 0.3.5.1 2008-09-24 (32bit) >>>> >>>> Maybe the language is just a coincidence... >>>> >>>> Cheers >>>> Klaus >>>> >>>> >>>> >>> >> >> > -- BOFH excuse #158: Defunct processes ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 lars.k.klykken at met.no Mon Jan 19 14:56:38 2009 From: lars.k.klykken at met.no (Lars Kristian Klykken) Date: Mon, 19 Jan 2009 14:56:38 +0100 Subject: bandwidtht monitor ? In-Reply-To: <49747628.20308@infoservices.in> References: <49747628.20308@infoservices.in> Message-ID: <20090119135638.GB28793@met.no> On Mon, Jan 19, 2009 at 06:16:32PM +0530, J. Bakshi wrote: > nagios is capable to do a lot. But is it possible to monitor the the > bandwidht of a remote server using nagios ? Maybe; it depends on how you want to monitor this. If you want to monitor realtime usage and nothing more, I'd look into polling the router or switch interface with check_snmp. If you want to trend the usage as well as warn you when usage is going off the grid, you can combine it with a third party tool like Munin or Cacti. http://munin.projects.linpro.no http://www.cacti.net .../Bosse -- Lars Kristian (Bosse) Klykken, Senior Engineer Tel. +47 22963068 Linux Team / Server Operations / IT Department Fax. +47 22696355 Norwegian Meteorological Institute http://www.met.no P.O. Box 43 Blindern, 0313 Oslo, NORWAY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 srianirudh at gmail.com Mon Jan 19 15:12:08 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Mon, 19 Jan 2009 09:12:08 -0500 Subject: VNC port : connection refused Message-ID: <699b436a0901190612r382ec07cx9c3ac017ee8b2846@mail.gmail.com> The nagios web interface shows critical message for VNC port 5900 : connection refused message.The plugin that is used is check_tcp!5900. I am not able to confirm whether its a firewall problem . But when i do telnet ipaddress 5900 i get connection refused message . please help me . -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 hpsekhon at googlemail.com Mon Jan 19 15:45:25 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 19 Jan 2009 14:45:25 +0000 Subject: VNC port : connection refused In-Reply-To: <699b436a0901190612r382ec07cx9c3ac017ee8b2846@mail.gmail.com> References: <699b436a0901190612r382ec07cx9c3ac017ee8b2846@mail.gmail.com> Message-ID: <49749205.2080008@googlemail.com> Anirudh Srinivasan wrote: > The nagios web interface shows critical message for VNC port 5900 : > connection refused message.The plugin that is used is > check_tcp!5900. I am not able to confirm whether its a firewall > problem . But when i do telnet ipaddress 5900 i get connection refused > message . please help me . The VNC Service is simply stopped/down. You simply need to restart the service. For the record check_tcp is a pretty weak test of last resort. I know from experience there have been times when check_tcp returns OK, the port is open, but vnc is wedged in a way that you cannot actually use it to retrieve the screen. You may want to check out the check_vnc plugin I wrote, it is freely available here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1558.html;d=1 or just search at NagiosExchange.org, it is the only vnc plugin there. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 hpsekhon at googlemail.com Mon Jan 19 15:46:56 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 19 Jan 2009 14:46:56 +0000 Subject: VNC port : connection refused In-Reply-To: <49749205.2080008@googlemail.com> References: <699b436a0901190612r382ec07cx9c3ac017ee8b2846@mail.gmail.com> <49749205.2080008@googlemail.com> Message-ID: <49749260.9090803@googlemail.com> Hari Sekhon wrote: > Anirudh Srinivasan wrote: >> The nagios web interface shows critical message for VNC port 5900 : >> connection refused message.The plugin that is used is check_tcp!5900. >> I am not able to confirm whether its a firewall problem . But when i >> do telnet ipaddress 5900 i get connection refused message . please >> help me . > The VNC Service is simply stopped/down. You simply need to restart the > service. > > For the record check_tcp is a pretty weak test of last resort. I know > from experience there have been times when check_tcp returns OK, the > port is open, but vnc is wedged in a way that you cannot actually use > it to retrieve the screen. You may want to check out the check_vnc > plugin I wrote, it is freely available here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1558.html;d=1 > > or just search at NagiosExchange.org, it is the only vnc plugin there. > > -h > Just to confirm the most likely explanation is that the service is down, as firewalls usually drop rather than reject, in which case you'd see a timeout or lack of response, but this is dependent on your environment. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Mon Jan 19 18:13:48 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Mon, 19 Jan 2009 12:13:48 -0500 Subject: Notification by email !!!! Message-ID: <4974B4CC.70107@iris.uh.cu> Please, I'm trying to notify to some email address but I can't. I send notifications to @iris.uh.cu without problems but I can't notify @uh.cu addresses. Where can I find the problem? -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jimm at simutronics.com Mon Jan 19 18:25:02 2009 From: jimm at simutronics.com (James Miller) Date: Mon, 19 Jan 2009 11:25:02 -0600 Subject: Which books are best for Nagios 3 Message-ID: <4974B76E.9090706@simutronics.com> Hi Everyone, We've been using Nagios for a few years, since 4/05 and the 2.0b4 days, and absolutely love it. I use it to monitor over a hundred servers, almost 400 services, and over the years I think I've become pretty darned knowledgeable about most aspects of Nagios. In the Nagios 2.x days I found the book Pro Nagios 2.0 to be an indispensables resource Recently I upgraded us from 2.9 to 3.0.6 and I'm looking for recommendations for a book or two on 3.0 to take my knowledge to the next level. I've found the following books available and I'm wondering which ones are the best: 1. Nagios: System and Network Monitoring by Wolfgang Barth (Paperback - Oct 28, 2008) - Illustrated 2. Learning Nagios 3.0 by Wojciech Kocjan (Paperback - Oct 17, 2008) 3. Building a Monitoring Infrastructure with Nagios by David Josephsen (Paperback - Mar 2, 2007) 4. Nagios 3 Enterprise Network Monitoring: Including Plug-Ins and Hardware Devices by Max Schubert, Derrick Bennett, Jonathan Gines, and Andrew Hay (Paperback - Jun 2, 2008) Any suggestions would be _greatly_ appreciated! Thanks, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 19 18:48:17 2009 From: marc at ena.com (Marc Powell) Date: Mon, 19 Jan 2009 11:48:17 -0600 Subject: Notification by email !!!! In-Reply-To: <4974B4CC.70107@iris.uh.cu> References: <4974B4CC.70107@iris.uh.cu> Message-ID: <7645DD20-D581-4641-B5F4-858C76793C2C@ena.com> On Jan 19, 2009, at 11:13 AM, Sergio Ariel wrote: > Please, I'm trying to notify to some email address but I can't. > > I send notifications to @iris.uh.cu without problems but I can't > notify > @uh.cu addresses. > > Where can I find the problem? In your logs, of course. Look in nagios.log and verify that the notifications are being sent. Look in your mail server logs to verify that the notifications are being received and forwarded on. If you still have problems, post -- nagios version and how installed. OS version. Whether this is a host or service notification. The full, complete host{} definition. The full, complete service{} definition. The full, complete contactgroup{} definition. The full, complete contact{} definition. The full, complete command{} definition for the host/ service_notification_commands for that contact. Any nagios.log entries related to the problem host/service at the time a notification should go out. Any mail server log entries related the the notification. Any and all information related to troubleshooting you've done before sending this e-mail to the list. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 19 19:01:21 2009 From: marc at ena.com (Marc Powell) Date: Mon, 19 Jan 2009 12:01:21 -0600 Subject: Which books are best for Nagios 3 In-Reply-To: <4974B76E.9090706@simutronics.com> References: <4974B76E.9090706@simutronics.com> Message-ID: <630FB972-5875-403F-92F6-2DBD4A5EB598@ena.com> On Jan 19, 2009, at 11:25 AM, James Miller wrote: > Recently I upgraded us from 2.9 to 3.0.6 and I'm looking for > recommendations for a book or two on 3.0 to take my knowledge to the > next level. I've found the following books available and I'm > wondering > which ones are the best: > Any suggestions would be _greatly_ appreciated! 5. This list. Try to discover the answer to as many questions as you can yourself by reading the docs and source and by trial. Try to understand the why of an answer you discover or provided by someone else. I consider it a much more interesting and varied resource than the few standard examples a book might have; plus it's free =). -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 at medin.name Mon Jan 19 19:23:14 2009 From: michael at medin.name (Michael Medin) Date: Mon, 19 Jan 2009 19:23:14 +0100 Subject: Which books are best for Nagios 3 In-Reply-To: <4974B76E.9090706@simutronics.com> References: <4974B76E.9090706@simutronics.com> Message-ID: <4974C512.2040108@medin.name> Hello, I am currently reviewing Learning Nagios 3,0 and I would say it is not for moving to Nagios 3 it is for *learning Nagios* (3). ((My review will be out (hopefully) next week, have read about half the book now...)) So skip that one if you know your way around Nagios... // Michael Medin James Miller skrev: > Hi Everyone, > > We've been using Nagios for a few years, since 4/05 and the 2.0b4 days, > and absolutely love it. I use it to monitor over a hundred servers, > almost 400 services, and over the years I think I've become pretty > darned knowledgeable about most aspects of Nagios. In the Nagios 2.x > days I found the book Pro Nagios 2.0 to be an indispensables resource > > Recently I upgraded us from 2.9 to 3.0.6 and I'm looking for > recommendations for a book or two on 3.0 to take my knowledge to the > next level. I've found the following books available and I'm wondering > which ones are the best: > > 1. Nagios: System and Network Monitoring by Wolfgang Barth (Paperback > - Oct 28, 2008) - Illustrated > 2. Learning Nagios 3.0 by Wojciech Kocjan (Paperback - Oct 17, 2008) > 3. Building a Monitoring Infrastructure with Nagios by David > Josephsen (Paperback - Mar 2, 2007) > 4. Nagios 3 Enterprise Network Monitoring: Including Plug-Ins and > Hardware Devices by Max Schubert, Derrick Bennett, Jonathan Gines, > and Andrew Hay (Paperback - Jun 2, 2008) > > Any suggestions would be _greatly_ appreciated! > > > > > Thanks, > Jim > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 giray.devlet at bitbrains.nl Mon Jan 19 22:11:05 2009 From: giray.devlet at bitbrains.nl (Giray Devlet) Date: Mon, 19 Jan 2009 22:11:05 +0100 (CET) Subject: Nagios escalating prematurely ... Message-ID: <19115778.4041232399465658.JavaMail.root@vm109.colo.bitbrains.nl> Hi All ... we have nagios 2.9 running with 3 escalations level ... 1) second line support 2) third line support 3) all engineers. What seems to happen is that if a service/host is in a warning state for a while, and then goes to critical, it directly escalates to the step '3' - all engineers. Which seems to annoy people who wake up with a sms :) So is this a bug or a feature :) Or did I configure something wrong ... Escalation definitions are blow ... I'd love to know how to ignore the 'warnings' in the notification counters. Code: Select all define hostescalation { host_name .* contact_groups level_1 first_notification 3 last_notification 0 notification_interval 10 escalation_options d,u,r } define hostescalation { host_name .* contact_groups level_1,level_2 first_notification 6 last_notification 0 notification_interval 10 escalation_options d,u,r } define hostescalation { host_name .* contact_groups level_1,level_2,level_3 first_notification 9 last_notification 0 notification_interval 10 escalation_options d,u,r } define serviceescalation { host_name .* service_description .* contact_groups level_1 first_notification 3 last_notification 0 notification_interval 10 escalation_options c,u,r } define serviceescalation { host_name .* service_description .* contact_groups level_1,level_2 first_notification 6 last_notification 0 notification_interval 10 escalation_options c,u,r } define serviceescalation { host_name .* service_description .* contact_groups level_1,level_2,level_3 first_notification 9 last_notification 0 notification_interval 10 escalation_options c,u,r } ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jpratt at norwich.edu Tue Jan 20 00:02:17 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 19 Jan 2009 18:02:17 -0500 Subject: opennms (?) Message-ID: <8147CCE3C4A8764DA9980125EE70E823019BA3@nuexchg.norwich.edu> Hello - a colleague has mentioned trying out opennms, not to necessarily replace nagios, but always looking for better/cool stuff. http://www.opennms.org/index.php/Main_Page has anyone here had any experience with it, and know if a highly-customized snmp-based nagios system can even compare? (reporting capabilities aside - i'm talking about notifications for service/host outages, and accuracy of polling/checks, as well as customization of checks/scripting etc) At first glance it appears fairly robust, but otoh, it's java-based, and is not even mentioned in a networkworld monitoring systems article i found that had zenoss, nagios etc etc.... :\ Thanks, and kind regards, Jamie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 matt at frozenatom.com Tue Jan 20 02:16:56 2009 From: matt at frozenatom.com (Matt Nelson) Date: Mon, 19 Jan 2009 18:16:56 -0700 Subject: Support for snmp v2c with check_all_interfaces.pl In-Reply-To: <49718CFB.9010407@telecomitalia.sm> References: <148f6bb30901161138q6e3241adjd1c304dc5fab65e5@mail.gmail.com> <49718CFB.9010407@telecomitalia.sm> Message-ID: <148f6bb30901191716wb228c3p592994a8639391c0@mail.gmail.com> Sorry for the slow response. I didn't change anything yet with the original pl code. I actually downloaded it again to a different machine, and it gives the same error: nagios02:/home/nagios/libexec # ./check_all_interfaces.pl -H databasenode -C public -v 1 CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) nagios02:/home/nagios/libexec # ./check_all_interfaces.pl -H databasenode -C public -v 2 CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) I wonder if it is something with version running on the remote host?? I'll keep digging into this, and idea's are more then welcome. I'll post any solutions I find. On Sat, Jan 17, 2009 at 12:47 AM, Andrea Gabellini < andrea.gabellini at telecomitalia.sm> wrote: > Matt, > > the original code use snmp v2c as the default, and it works fine. Did you > change the default? > > Andrea > > Matt Nelson wrote: > > I have been using check_all_interfaces.pl for a while on 32bit machines > > and it works great for checking the interfaces for errors. I would like > > to use it on a 64bit machine, but it gives the error: > > > > CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) > > > > due to it trying to read a Counter64 with snmp v1. It does not support > > v2c, or v3, which supports Counter64. > > > > Does anyone know of a similar plugin that will work, or a way around > this? > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users 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 > > -- > > --------------------------------------- > Monday is an awful way to spend 1/7th of your life. > --------------------------------------- > Ing. Andrea Gabellini > Email: andrea.gabellini at telecomitalia.sm > Skype: andreagabellini > Tel: (+378) 0549 886111 > Fax: (+378) 0549 886188 > > Telecom Italia San Marino S.p.A. > Strada degli Angariari, 3 > 47891 Rovereta > Republic of San Marino > > http://www.telecomitalia.sm > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 k_zamri at kannal.com.my Tue Jan 20 03:34:45 2009 From: k_zamri at kannal.com.my (Khairuzzamri) Date: Tue, 20 Jan 2009 10:34:45 +0800 Subject: Nagios compatibility Message-ID: Hi everyone, I'm a newbie on linux and nagios. Need your help on this. I'm using Redhat 9 and have installed Nagios 3.0.3., step by step according to Nagios 3.0 Jumpstart guide for linux (www.thegeekstuff.com). Installation run smoothly, but I cannot add the nagios to the startup routine: [root at localhost]# chkconfig -add nagios [root at localhost]# chkconfig nagios on Both give 'error reading information on service nagios: No such file or directory'. But when I verify the nagios configuration files: [root at localhost]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg It stated 'No warning & no errors'. 1 more thing if I'm go to the nagios page, even I'm providing the correct username and password, it wont let me in. Am I missing something here, or is Nagios 3.0.3 is not compatible with Redhat 9? Thanks & regards, Zamri, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 subscription at kkeane.com Tue Jan 20 04:08:49 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 19 Jan 2009 19:08:49 -0800 Subject: Nagios compatibility In-Reply-To: References: Message-ID: <49754041.5060205@kkeane.com> You are looking at two completely separate issues. chkconfig doesn't have much to do with nagios; it is a Redhat specific file. chkconfig doesn't care about nagios.cfg. It will install any service/daemon. What it is looking for is a shell script in, I believe, /etc/init.d. This shell script must accept the arguments "start" and "stop" (and should also accept a few other ones). So what the error message is telling you is "there is no shell script /etc/init.d/nagios". This shell script - you probably need to write it yourself - is responsible for actually starting nagios. It is also a Redhat-specific one. On SUSE, the shell script will look similar but be subtly different. Nagios won't work until you get this running, so it is not really surprising that you can't log in right now. My recommendation: throw out the nagios you did (just keep the files in the /usr/local/nagios/etc directory), and instead find nagios as an already-compiled RPM. There really is very little reason to ever run your own compiled software except to learn. On a production server, it is outright dangerous to do so because you won't get any software updates. Khairuzzamri wrote: > Hi everyone, > I'm a newbie on linux and nagios. Need your help on this. > I'm using Redhat 9 and have installed Nagios 3.0.3., step by step > according to Nagios 3.0 Jumpstart guide for linux > (www.thegeekstuff.com ). > Installation run smoothly, but I cannot add the nagios to the startup > routine: > [root at localhost]# chkconfig ?add nagios > [root at localhost]# chkconfig nagios on > Both give 'error reading information on service nagios: No such file > or directory'. > But when I verify the nagios configuration files: > [root at localhost]# /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg > It stated 'No warning & no errors'. > 1 more thing if I'm go to the nagios page, even I'm providing the > correct username and password, it wont let me in. > Am I missing something here, or is Nagios 3.0.3 is not compatible with > Redhat 9? > > Thanks & regards, > Zamri, > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 20 05:08:25 2009 From: marc at ena.com (Marc Powell) Date: Mon, 19 Jan 2009 22:08:25 -0600 Subject: Nagios compatibility In-Reply-To: References: Message-ID: <5FC556AE-8899-4C3E-B290-74DB89F433C1@ena.com> On Jan 19, 2009, at 8:34 PM, Khairuzzamri wrote: > Installation run smoothly, but I cannot add the nagios to the > startup routine: > [root at localhost]# chkconfig ?add nagios > [root at localhost]# chkconfig nagios on > > Both give 'error reading information on service nagios: No such file > or directory'. Sounds like you didn't install the init script. Step 3 of http://nagios.sourceforge.net/docs/3_0/quickstart- fedora.html -- make install-init > But when I verify the nagios configuration files: > [root at localhost]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/ > etc/nagios.cfg > > It stated 'No warning & no errors'. This just checks your nagios configuration (nagios.cfg and any cfg_files or resource_files referenced within it) for obvious syntax errors. It doesn't check apache configuration, startup scripts, whether your plugins exist/work, etc, etc. > 1 more thing if I'm go to the nagios page, even I'm providing the > correct username and password, it wont let me in. That would be an apache configuration problem. Check your apache error logs for information. If there's nothing interesting there, expand on what you mean by 'wont let me in' and the exact configuration steps you've taken so far. You might want to also read/review the actual nagios quick start guide above to make sure the one you're reading didn't miss steps. > Am I missing something here, or is Nagios 3.0.3 is not compatible > with Redhat 9? There are no incompatibilities with any flavor of linux that I am aware of. Nagios has pretty minimal requirements. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 joydeep at infoservices.in Tue Jan 20 05:27:45 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Tue, 20 Jan 2009 09:57:45 +0530 Subject: bandwidtht monitor ? In-Reply-To: <20090119135638.GB28793@met.no> References: <49747628.20308@infoservices.in> <20090119135638.GB28793@met.no> Message-ID: <497552C1.6020306@infoservices.in> Lars Kristian Klykken wrote: > On Mon, Jan 19, 2009 at 06:16:32PM +0530, J. Bakshi wrote: > >> nagios is capable to do a lot. But is it possible to monitor the the >> bandwidht of a remote server using nagios ? >> > > Maybe; it depends on how you want to monitor this. If you want to > monitor realtime usage and nothing more, I'd look into polling the > router or switch interface with check_snmp. If you want to trend the > usage as well as warn you when usage is going off the grid, you can > combine it with a third party tool like Munin or Cacti. > > http://munin.projects.linpro.no > http://www.cacti.net > Thanks a lot, I'll look into ity to know more. With regards > .../Bosse > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rsaeks at district30.k12.il.us Tue Jan 20 06:46:30 2009 From: rsaeks at district30.k12.il.us (Randall R. Saeks) Date: Mon, 19 Jan 2009 23:46:30 -0600 Subject: Nagios 3.0.6 on 10.5.6 Server In-Reply-To: <04F3233F47E2714CB7431AE913E57E77032B8DF7@IAD-WPRD-XCHB02.corp.verio.net> References: <8E712C33-106A-4418-BDCA-8094BDF49561@district30.k12.il.us> <04F3233F47E2714CB7431AE913E57E77032B8DF7@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <000301c97ac2$749f4990$5ddddcb0$@k12.il.us> -----Original Message----- From: Jonathan Call [mailto:jcall at verio.net] Sent: Friday, January 16, 2009 3:25 PM To: Randall R. Saeks; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios 3.0.6 on 10.5.6 Server > > Ever since I upgraded my server running Nagios 3.0.6 to 10.5.6, I > can't get Nagios to launch. When I try to start it via the CLI > command, the following gets returned in the nagios.log: > > [1232136591] Nagios 3.0.6 starting... (PID=27107) > [1232136591] Local time is Fri Jan 16 14:09:51 CST 2009 > [1232136591] LOG VERSION: 2.0 > [1232136591] Finished daemonizing... (New PID=27109) > [1232136591] Error: Could not create external command file '/opt/local/ > var/nagios/rw/nagios.cmd' as named pipe: (22) -> Invalid argument. If > this file already exists and you are sure that another copy of Nagios > is not running, you should delete this file. > [1232136591] Bailing out due to errors encountered while trying to > initialize the external command file... (PID=27109) > > I've deleted said file, but no such luck in getting it to run. > > While the web-interface is there and running, if I go to tactical > overview or any of the other menus say that Nagios isn't running > (which makes sense since the app bails). > > Does anyone have any ideas on this and something to check out / try? > I have installed this through Macports. > Is it me or do you have a space in that file path? '/opt/local/ var/nagios/rw/nagios.cmd' Looks like a typo in your nagios.cfg file. Nope, sorry about that. It looks like wrapping in the email make that go to the next line. My nagios.cfg has it all in one line, no spaces. Randy ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 k_zamri at kannal.com.my Tue Jan 20 06:48:39 2009 From: k_zamri at kannal.com.my (Khairuzzamri) Date: Tue, 20 Jan 2009 13:48:39 +0800 Subject: Nagios compatibility References: <49754041.5060205@kkeane.com> Message-ID: <18AC83DD4C144B638593A81B7FE73534@manutd> Thanks Kevin for the reply, Kevin Keane wrote: > You are looking at two completely separate issues. chkconfig doesn't > have much to do with nagios; it is a Redhat specific file. > > chkconfig doesn't care about nagios.cfg. It will install any > service/daemon. What it is looking for is a shell script in, I believe, > /etc/init.d. This shell script must accept the arguments "start" and > "stop" (and should also accept a few other ones). So what the error > message is telling you is "there is no shell script /etc/init.d/nagios". > > This shell script - you probably need to write it yourself - is > responsible for actually starting nagios. It is also a Redhat-specific > one. On SUSE, the shell script will look similar but be subtly different. > > Nagios won't work until you get this running, so it is not really > surprising that you can't log in right now. > > My recommendation: throw out the nagios you did (just keep the files in > the /usr/local/nagios/etc directory), and instead find nagios as an > already-compiled RPM. There really is very little reason to ever run > your own compiled software except to learn. On a production server, it > is outright dangerous to do so because you won't get any software updates. I think maybe I'm skipping the make install-init step that made the service cannot be run. As your suggestion to remove my existing nagios, is it correct to remove the nagios by deleting every nagios directory in my machine? (I'm using nagios-3.0.3.tar.gz and nagios-plugins-1.4.12.tar.gz installer) Thanks & regards, Zamri, ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 k_zamri at kannal.com.my Tue Jan 20 06:48:57 2009 From: k_zamri at kannal.com.my (Khairuzzamri) Date: Tue, 20 Jan 2009 13:48:57 +0800 Subject: Nagios compatibility References: <5FC556AE-8899-4C3E-B290-74DB89F433C1@ena.com> Message-ID: Thanks for the reply Marc , > Sounds like you didn't install the init script. > > Step 3 of http://nagios.sourceforge.net/docs/3_0/quickstart- > fedora.html -- > > make install-init Yeah, the make install-init step is not included in the guide. How can I make install-init, do I have to uninstall the recent nagios in order to do this? > That would be an apache configuration problem. Check your apache error > logs for information. If there's nothing interesting there, expand on > what you mean by 'wont let me in' and the exact configuration steps > you've taken so far. You might want to also read/review the actual > nagios quick start guide above to make sure the one you're reading > didn't miss steps. I will check on that. The page keep asking username and password, even the correct one has been provided. Means that I'm stuck at the login page and cannot access the nagios page. > This just checks your nagios configuration (nagios.cfg and any > cfg_files or resource_files referenced within it) for obvious syntax > errors. It doesn't check apache configuration, startup scripts, > whether your plugins exist/work, etc, etc. > There are no incompatibilities with any flavor of linux that I am > aware of. Nagios has pretty minimal requirements. Thanks for the info man. Thanks & regards, Zamri ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ian at acces.co.jp Tue Jan 20 07:32:00 2009 From: ian at acces.co.jp (Ian Masters) Date: Tue, 20 Jan 2009 15:32:00 +0900 Subject: Nagios compatibility In-Reply-To: References: <5FC556AE-8899-4C3E-B290-74DB89F433C1@ena.com> Message-ID: <49756FE0.1010602@acces.co.jp> >> Step 3 of http://nagios.sourceforge.net/docs/3_0/quickstart- >> fedora.html -- >> >> make install-init > > Yeah, the make install-init step is not included in the guide. > How can I make install-init, Read the URL that Marc sent you! The one above. Everything is in that guide. When you have a problem, look at the official documentation first. > do I have to uninstall the recent nagios in order to do this? No. Ian ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 andy-lists at networkmail.eu Tue Jan 20 09:01:54 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Tue, 20 Jan 2009 08:01:54 +0000 Subject: Nagios compatibility In-Reply-To: <49754041.5060205@kkeane.com> References: <49754041.5060205@kkeane.com> Message-ID: <497584F2.4070600@networkmail.eu> Kevin Keane wrote: > Nagios won't work until you get this running, so it is not really > surprising that you can't log in right now. > Nagios will function without the startup script perfectly happily - you just start and stop it manually - /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg. The init script is just to start/stop Nagios on system start-up and shutdown which would be desirable yes, but it's not the only way. IIRC you can also put the start command in /etc/rc.local on Redhat/Fedora systems. The init script is a much cleaner approach however. > My recommendation: throw out the nagios you did (just keep the files in > the /usr/local/nagios/etc directory), and instead find nagios as an > already-compiled RPM. There really is very little reason to ever run > your own compiled software except to learn. On a production server, it > is outright dangerous to do so because you won't get any software updates. > For the record, I disagree with this statement. Compiling your own software means you can get updates as quick as they come out from the people who write it. Sure you have to keep on top of the updates yourself, but that's where a tool such as www.update-scout.com comes in extremely handy. In my experience package repositories (such as those used by Debian's "apt-get") are not well maintained - for example the OpenSSL version currently in there is 0.9.8c which was released in September 2006. There have been 6 security advisories since. Similarly the Apache2 package is version 2.2.3 - I'm running 2.2.11 now. Compiling your own software also allows you to add in extra features that the packagers didn't deem necessary, and gives you more control over the build. Regards, Andy ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 S.Klein at pictura-dp.nl Tue Jan 20 09:26:49 2009 From: S.Klein at pictura-dp.nl (Sander Klein) Date: Tue, 20 Jan 2009 09:26:49 +0100 Subject: Nagios compatibility In-Reply-To: <497584F2.4070600@networkmail.eu> References: <49754041.5060205@kkeane.com> <497584F2.4070600@networkmail.eu> Message-ID: <859DF95CE6CC074FB7BE44D30FE0CFE884B22946DB@win-s004.pictura.local> Hi, > Kevin Keane wrote: > In my experience package repositories (such as those used by Debian's > "apt-get") are not well maintained - for example the OpenSSL version > currently in there is 0.9.8c which was released in September 2006. > There have been 6 security advisories since. Similarly the Apache2 > package is version 2.2.3 - I'm running 2.2.11 now. I have a little comment about this part. The version number Debian uses (almost) never changes during the lifetime of a stable release. They always backport the fix for the security issue to the version used in Debian. This is done so chances are small that new bug are introduced by updating to a complete new version of the package. Met vriendelijke groet, Sander Klein Systeembeheer PICTURA DATABASE PUBLISHING bv De Hoefsmid 11 1851 PZ Heiloo t: + 31(0)72 53 55 758 f: + 31(0)72 53 20 400 e: S.Klein at pictura-dp.nl w: www.pictura-dp.nl PICTURA is ISO 9001:2000 gecertificeerd Deze e-mail en zijn bijlagen zijn uitsluitend bedoeld voor de geadresseerde(n). Indien u niet de bedoelde geadresseerde bent, gelieve de afzender te verwittigen en de e-mail bij u te verwijderen. Tenzij de e-mail anders vermeldt, is hij vertrouwelijk en is kopieren, doorzenden of verspreiden ervan niet toegelaten. Op de eventuele overeenkomst zullen de Algemene Voorwaarden Pictura van toepassing zijn. Toepasselijkheid van eventuele inkoop- op andere voorwaarden van Opdrachtgever dan wel van derden wordt dan ook uitdrukkelijk van de hand gewezen door Pictura. Opdrachtgever verklaart nadrukkelijk de Algemene Voorwaarden Pictura ontvangen te hebben en met de Algemene Voorwaarden Pictura akkoord te gaan. This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy, forward or show them to anyone. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 markycentos at gmail.com Tue Jan 20 09:50:31 2009 From: markycentos at gmail.com (Anto Marky) Date: Tue, 20 Jan 2009 14:20:31 +0530 Subject: Installation issue Message-ID: Hi, Could anyone tell me what this error is and how do I overcome it? This is the error I get when I make install, it is smooth when I configure with ./configure --with-command-group=nagcmd I use the username and the group name given in the doc [root at test:/mnt/downloads/nagios-3.0.6] make install cd ./base && make install make[1]: Entering directory `/mnt/downloads/nagios-3.0.6/base' make install-basic make[2]: Entering directory `/mnt/downloads/nagios-3.0.6/base' /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin /usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin /usr/bin/install: cannot stat `nagios': No such file or directory make[2]: *** [install-basic] Error 1 make[2]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' make[1]: *** [install] Error 2 make[1]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' make: *** [install] Error 2 Thanks and Regards Marky -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 asam30 at gmail.com Tue Jan 20 10:31:28 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Tue, 20 Jan 2009 15:01:28 +0530 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> Message-ID: <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> I do not understand your question properly. Do you have host.cfg and service.cfg files exists? and do you add hosts and services to these files respectively? /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives any errors or warnings and also paste the exact error when restarting the nagios On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini wrote: > Hi Guys, > > I just defined a hostgroup and added members to it. I have also added each > host and their services. I checked nagios for any errors and there are none. > When I restart nagios, I can see the hostgroup alright but there are no > host/services under it. I get this error > > SITE-CANTOMENTS ( > CANTOMENTS ) No matching > hosts No matching services > Any ideas? > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 alexdehaini at gmail.com Tue Jan 20 10:36:53 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Tue, 20 Jan 2009 09:36:53 +0000 Subject: Hostgroup Issue In-Reply-To: <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> Message-ID: <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives no errors I added the host and services to the host.cfg and service.cfg files. I added a group to the hostgroup file and added the hosts to the hostgroup file. I reloaded nagios In the cgi view, I see the hostgroup but it says there are no host or services added to it even after adding the host and service. Strange On Tue, Jan 20, 2009 at 9:31 AM, wrote: > I do not understand your question properly. > > Do you have host.cfg and service.cfg files exists? and do you add hosts and > services to these files respectively? > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives any > errors or warnings and also paste the exact error when restarting the nagios > > > On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini wrote: > >> Hi Guys, >> >> I just defined a hostgroup and added members to it. I have also added each >> host and their services. I checked nagios for any errors and there are none. >> When I restart nagios, I can see the hostgroup alright but there are no >> host/services under it. I get this error >> >> SITE-CANTOMENTS ( >> CANTOMENTS ) No matching >> hosts No matching services >> Any ideas? >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 >> > > > > -- > Shankar Asam > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 assaf.flatto at ssp-intl.com Tue Jan 20 11:28:51 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Tue, 20 Jan 2009 10:28:51 +0000 Subject: Installation issue In-Reply-To: References: Message-ID: <200901201028.51689.assaf.flatto@ssp-intl.com> Did you create the user and group nagios on the machine you are installing nagios on ? It seems that system is trying to copy a file and give it the permissions of user and group nagios , and fails to find those defined . Assaf On Tuesday 20 January 2009 08:50:31 Anto Marky wrote: > Hi, > > Could anyone tell me what this error is and how do I overcome it? > > This is the error I get when I make install, it is smooth when I configure > with > > ./configure --with-command-group=nagcmd I use the username and the > group name given in the doc > > [root at test:/mnt/downloads/nagios-3.0.6] make install > cd ./base && make install > make[1]: Entering directory `/mnt/downloads/nagios-3.0.6/base' > make install-basic > make[2]: Entering directory `/mnt/downloads/nagios-3.0.6/base' > /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin > /usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin > /usr/bin/install: cannot stat `nagios': No such file or directory > make[2]: *** [install-basic] Error 1 > make[2]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' > make[1]: *** [install] Error 2 > make[1]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' > make: *** [install] Error 2 > > > Thanks and Regards > > > Marky -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 markycentos at gmail.com Tue Jan 20 11:34:32 2009 From: markycentos at gmail.com (Anto Marky) Date: Tue, 20 Jan 2009 16:04:32 +0530 Subject: hi Message-ID: Hi, I am planning to monitor my website using nagios, I checked the nagios site for any centos installation mannual but I was only able to find one for fc6.I am confiused to whether to use yum install or get the source and compile it? Is there any manual for installation of nagios on cnetos5? Thanks and Regards Marky -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 asam30 at gmail.com Tue Jan 20 11:38:10 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Tue, 20 Jan 2009 16:08:10 +0530 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> Message-ID: <25251aec0901200238ub37ab2wbb73dc318803d9a7@mail.gmail.com> a sample host.cfg of my nagios server, define host{ host_name airlin ; The name we're giving to this host alias Airlin (TEST Server) ; A longer name associated with the host check_command check-host-alive check_interval 3 retry_interval 1 check_period 24x7 max_check_attempts 10 address x.x.x.x ; IP address of the host hostgroups linux-servers ; Host groups this host is associated with contact_groups admins notification_interval 120 notifications_enabled 1 } service.cfg define service{ hostgroup_name linux-servers host_name airlin,lnx-test1,lnx-test2 service_description Root partition is_volatile 0 check_period 24x7 check_interval 3 retry_interval 3 max_check_attempts 3 notification_interval 4 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_root contact_groups admins } check urs...... On Tue, Jan 20, 2009 at 3:06 PM, Alex Dehaini wrote: > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives no > errors > > I added the host and services to the host.cfg and service.cfg files. I > added a group to the hostgroup file and added the hosts to the hostgroup > file. I reloaded nagios > > In the cgi view, I see the hostgroup but it says there are no host or > services added to it even after adding the host and service. > > Strange > > > On Tue, Jan 20, 2009 at 9:31 AM, wrote: > >> I do not understand your question properly. >> >> Do you have host.cfg and service.cfg files exists? and do you add hosts >> and services to these files respectively? >> >> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives any >> errors or warnings and also paste the exact error when restarting the nagios >> >> >> On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini wrote: >> >>> Hi Guys, >>> >>> I just defined a hostgroup and added members to it. I have also added >>> each host and their services. I checked nagios for any errors and there are >>> none. When I restart nagios, I can see the hostgroup alright but there are >>> no host/services under it. I get this error >>> >>> SITE-CANTOMENTS ( >>> CANTOMENTS ) No >>> matching hosts No matching services >>> Any ideas? >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users 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 >>> >> >> >> >> -- >> Shankar Asam >> > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 assaf.flatto at ssp-intl.com Tue Jan 20 11:40:33 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Tue, 20 Jan 2009 10:40:33 +0000 Subject: hi In-Reply-To: References: Message-ID: <200901201040.33590.assaf.flatto@ssp-intl.com> If you are installing from source - the manual is generic enough to adapt to any distro. But i suspect you can use the RPMs from the CentOs repository to make most of the installation easy and just worry about the config. Assaf On Tuesday 20 January 2009 10:34:32 Anto Marky wrote: > Hi, > > I am planning to monitor my website using nagios, I checked the nagios site > for any centos installation mannual but I was only able to find one for > fc6.I am confiused to whether to use yum install or get the source and > compile it? Is there any manual for installation of nagios on cnetos5? > > > Thanks and Regards > > Marky -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 alexdehaini at gmail.com Tue Jan 20 11:50:10 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Tue, 20 Jan 2009 10:50:10 +0000 Subject: Hostgroup Issue In-Reply-To: <25251aec0901200238ub37ab2wbb73dc318803d9a7@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> <25251aec0901200238ub37ab2wbb73dc318803d9a7@mail.gmail.com> Message-ID: <4b008f7d0901200250k3fc6d4e5la8f2afa5a455ce26@mail.gmail.com> Asam, I have been using nagios for over 2 years now, never had any problem with it. Until now, I have noticed my nagios server is a bit sluggish. A couple of days ago, I added a host and a couple of services to it - nagios saw it and later said the host wasn't added. I am having the similar situation now. I don't add my host directly to host.cfg and services directly to services.cfg. I created folders and include the folder directories in nagios.cfg. So, the host and services have been added, I add each host in it's own file - why nagios is not seeing it is the problem. Here is the host config - it is in a file called smcantoments.cfg under /usr/local/nagios/etc/radios/ define host{ use aps host_name sm at cantoments alias SM at Cantoments address 10.217.226.168 parents ap5.4 at baatsona2 } Here is the service config - it is in a file called smcantoments-services.cfg under /usr/local/nagios/etc/allservices define service{ use aps host_name sm at cantoments service_description PING check_command check_ping!200.0,20%!600.0,60% } In, hostgroup.cfg, I added the following entry define hostgroup{ hostgroup_name CANTOMENTS alias SITE-CANTOMENTS members ap5.7 at cantoments,sm at cantoments,switch at cantoments } So, what is the problem? On Tue, Jan 20, 2009 at 10:38 AM, wrote: > a sample host.cfg of my nagios server, > > define host{ > host_name airlin ; The name we're giving to this > host > alias Airlin (TEST Server) ; A longer name associated > with the host > check_command check-host-alive > check_interval 3 > retry_interval 1 > check_period 24x7 > max_check_attempts 10 > address x.x.x.x ; IP address of the host > hostgroups linux-servers ; Host groups this host is > associated with > contact_groups admins > notification_interval 120 > notifications_enabled 1 > } > > service.cfg > > define service{ > hostgroup_name linux-servers > host_name airlin,lnx-test1,lnx-test2 > service_description Root partition > is_volatile 0 > check_period 24x7 > check_interval 3 > retry_interval 3 > max_check_attempts 3 > notification_interval 4 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!check_root > contact_groups admins > } > > check urs...... > > > > On Tue, Jan 20, 2009 at 3:06 PM, Alex Dehaini wrote: > >> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives no >> errors >> >> I added the host and services to the host.cfg and service.cfg files. I >> added a group to the hostgroup file and added the hosts to the hostgroup >> file. I reloaded nagios >> >> In the cgi view, I see the hostgroup but it says there are no host or >> services added to it even after adding the host and service. >> >> Strange >> >> >> On Tue, Jan 20, 2009 at 9:31 AM, wrote: >> >>> I do not understand your question properly. >>> >>> Do you have host.cfg and service.cfg files exists? and do you add hosts >>> and services to these files respectively? >>> >>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives >>> any errors or warnings and also paste the exact error when restarting the >>> nagios >>> >>> >>> On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini wrote: >>> >>>> Hi Guys, >>>> >>>> I just defined a hostgroup and added members to it. I have also added >>>> each host and their services. I checked nagios for any errors and there are >>>> none. When I restart nagios, I can see the hostgroup alright but there are >>>> no host/services under it. I get this error >>>> >>>> SITE-CANTOMENTS ( >>>> CANTOMENTS ) No >>>> matching hosts No matching services >>>> Any ideas? >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by: >>>> SourcForge Community >>>> SourceForge wants to tell your story. >>>> http://p.sf.net/sfu/sf-spreadtheword >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users 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 >>>> >>> >>> >>> >>> -- >>> Shankar Asam >>> >> >> >> >> -- >> Alex Dehaini >> Developer >> Site - www.alexdehaini.com >> Email - alexdehaini at gmail.com >> > > > > -- > Shankar Asam > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Tue Jan 20 11:56:50 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 20 Jan 2009 04:56:50 -0600 Subject: hi In-Reply-To: References: Message-ID: If you're using CentOS, unless there is a specific reason you want to compile from source, just install Nagios vai yum repository: yum install nagios yum install nagios-plugins That will install everything you need to get going. James Moseley "Anto Marky" To nagios-users at lists.sourceforge.net 01/20/2009 04:34 cc AM Subject [Nagios-users] hi Hi, I am planning to monitor my website using nagios, I checked the nagios site for any centos installation mannual but I was only able to find one for fc6.I am confiused to whether to use yum install or get the source and compile it? Is there any manual for installation of nagios on cnetos5? Thanks and Regards ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Tue Jan 20 12:12:19 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 20 Jan 2009 05:12:19 -0600 Subject: Nagios compatibility In-Reply-To: <18AC83DD4C144B638593A81B7FE73534@manutd> References: <18AC83DD4C144B638593A81B7FE73534@manutd> Message-ID: If you're using Redhat, unless there is a specific reason you want to compile from source, just install Nagios vai yum repository: yum install nagios yum install nagios-plugins That will install everything you need to get going. It also installs the /etc/init.d startup script, so you can then run the chkconfig command to 'turn on' the nagios server: chkconfig --level 2345 nagios on Using Redhat RPM's via yum package management also makes upgrades a snap. And if you're using Redhat, CentOS, etc, using yum is one of the major reasons for running such an operating system. Unlike a previous poster who stated that repositories are often stale and do not quickly apply security updates, this is not so for Redhat systems. Their package maintainers often release package updates for software such as Nagios within a few days, if not the same day, the software is released. Security updates are often released the same day. Yes, if you want to install via yum, delete the Nagios directories you installed from source. Might as well delete the user you created as well. To access the web page, make sure you add a valid user/password to the password file as defined in /etc/httpd/conf.d/nagios.cnf (assuming you installed Apache via yum as well). Good luck! James Moseley "Khairuzzamri" To "Kevin Keane" 01/19/2009 11:48 PM cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Nagios compatibility Thanks Kevin for the reply, Kevin Keane wrote: As your suggestion to remove my existing nagios, is it correct to remove the nagios by deleting every nagios directory in my machine? (I'm using nagios-3.0.3.tar.gz and nagios-plugins-1.4.12.tar.gz installer) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 benny at bennyvision.com Tue Jan 20 13:01:17 2009 From: benny at bennyvision.com (C. Bensend) Date: Tue, 20 Jan 2009 06:01:17 -0600 (CST) Subject: Installation issue In-Reply-To: <200901201028.51689.assaf.flatto@ssp-intl.com> References: <200901201028.51689.assaf.flatto@ssp-intl.com> Message-ID: > Did you create the user and group nagios on the machine you are installing > nagios on ? > > It seems that system is trying to copy a file and give it the permissions > of user and group nagios , > and fails to find those defined . > > > Assaf > > On Tuesday 20 January 2009 08:50:31 Anto Marky wrote: >> Hi, >> >> Could anyone tell me what this error is and how do I overcome it? >> >> This is the error I get when I make install, it is smooth when I >> configure >> with >> >> ./configure --with-command-group=nagcmd I use the username and the >> group name given in the doc >> >> [root at test:/mnt/downloads/nagios-3.0.6] make install >> cd ./base && make install >> make[1]: Entering directory `/mnt/downloads/nagios-3.0.6/base' >> make install-basic >> make[2]: Entering directory `/mnt/downloads/nagios-3.0.6/base' >> /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin >> /usr/bin/install -c -m 774 -o nagios -g nagios nagios >> /usr/local/nagios/bin >> /usr/bin/install: cannot stat `nagios': No such file or directory >> make[2]: *** [install-basic] Error 1 >> make[2]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' >> make[1]: *** [install] Error 2 >> make[1]: Leaving directory `/mnt/downloads/nagios-3.0.6/base' >> make: *** [install] Error 2 No, if that were the case, it would say no such user or no such group. It's complaining about the 'nagios' binary that doesn't exist. If the above is exactly what was done, yes, it *should* error out - he went from 'configure' to 'make install'. I think he's going to need to actually build the software with 'make all' before the 'make install'. Otherwise, the nagios binary doesn't even exist yet. ;) If the above isn't exactly what happened, then something failed during the build and we need to see the output of the 'make all' step. Benny -- "Some things are so terrible they can never be unseen" -- Fazed ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Tue Jan 20 14:29:15 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 20 Jan 2009 05:29:15 -0800 Subject: Nagios compatibility In-Reply-To: <497584F2.4070600@networkmail.eu> References: Message-ID: <4975D1AB.4010307@kkeane.com> Andy Shellam wrote: > >> My recommendation: throw out the nagios you did (just keep the files >> in the /usr/local/nagios/etc directory), and instead find nagios as >> an already-compiled RPM. There really is very little reason to ever >> run your own compiled software except to learn. On a production >> server, it is outright dangerous to do so because you won't get any >> software updates. >> > For the record, I disagree with this statement. Compiling your own > software means you can get updates as quick as they come out from the > people who write it. Sure you have to keep on top of the updates > yourself, but that's where a tool such as www.update-scout.com comes > in extremely handy. In theory, that may be true, and for some people this does matter. In practical terms, though, more often than not, the opposite happens: somebody downloads the source code, throws it on a shared drive, writes a howto and everybody recompiles off these versions no matter how stale they are. I used to work for a company in 2003 that ran RedHat 7.0 (a 1990s version of RH). Because it didn't include Postgres, they compiled Postgres from source - by the time I started there, those sources were two years old. And they ran a major telephone exchange and billing system off that setup. My boss would have thrown a fit if I had proposed to install a newer version of Postgres, because that would have meant having to re-test the whole application. At least, with an RPM, the vendor would do most of the testing for us. And also let's not forget the complexity of the upgrade process itself. Upgrading an RPM takes a few seconds - especially when you are using automatic updates. Recompiling? Maybe half an hour if you are good. > In my experience package repositories (such as those used by Debian's > "apt-get") are not well maintained - for example the OpenSSL version > currently in there is 0.9.8c which was released in September 2006. > There have been 6 security advisories since. Similarly the Apache2 > package is version 2.2.3 - I'm running 2.2.11 now. Actually, I think this is an advantage rather than a drawback, for most users (you may well have specific needs, and of course I can't tell you what's right for you!) For most software, the bleeding edge is also where the bleeding is happening ;-) There is a reason the enterprise Linux versions (SuSE, RedHat) have release cycles of 3 years, and the open versions have release cycles of 18 months or so. Vendors will backport security patches, but quite honestly I would rather have a stable system than one that needs to be recompiled on a near daily basis - especially for production use. My openSUSE 10.3 server currently has 757 RPMs installed. With recompiling modules as they come out, configuration management would become a nightmare. On a weekly basis, I'd have to ask: why isn't my software working any more, and which of the 17 modules recompiled yesterday is responsible? No thanks. I want to leave the compatibility testing to the vendor. My Nagios server (on openSUSE 11.0) is still using 3.0.3. I'm sure I could easily find the 3.0.6 RPMs if there was a compelling reason for it. But so far, I don't see it. If I really do need a newer version than the vendor has - I can usually find it precompiled as an RPM. As a SUSE guy, I usually find it on opensuse.org. I'm usually very reluctant to do this because it cuts me off from the vendor's update cycle, but sometimes I really have no choice. Fortunately, I've only had to do it for four or five RPMs. > Compiling your own software also allows you to add in extra features > that the packagers didn't deem necessary, and gives you more control > over the build. Granted. I actually have found one single situation where this benefit would have made a difference; one RPM has a bug (the openSUSE developers forgot to support Kerberos in saslauthd). It's exceedingly rare, at least for me - and in this case, the impact was small enough, so recompiling still doesn't YMMV, of course. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 20 14:52:37 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Jan 2009 07:52:37 -0600 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> Message-ID: <8D723DE1-3CB1-400E-9B5D-66695C0E4290@ena.com> On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote: > In the cgi view, I see the hostgroup but it says there are no host > or services added to it even after adding the host and service. > > Strange If you want useful help for this you're going to have to post the relevant config information. At this point it seems that the hostgroup has no members or you are not permitted to see them. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 alexdehaini at gmail.com Tue Jan 20 15:00:06 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Tue, 20 Jan 2009 14:00:06 +0000 Subject: Hostgroup Issue In-Reply-To: <8D723DE1-3CB1-400E-9B5D-66695C0E4290@ena.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> <8D723DE1-3CB1-400E-9B5D-66695C0E4290@ena.com> Message-ID: <4b008f7d0901200600w20cd288fk5d15d197df0783d3@mail.gmail.com> Hi, What config do you want me to post? I added the members to the hostgroup On Tue, Jan 20, 2009 at 1:52 PM, Marc Powell wrote: > > On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote: > > > In the cgi view, I see the hostgroup but it says there are no host > > or services added to it even after adding the host and service. > > > > Strange > > If you want useful help for this you're going to have to post the > relevant config information. At this point it seems that the hostgroup > has no members or you are not permitted to see them. > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 steve at sliderule.demon.co.uk Tue Jan 20 15:13:25 2009 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Tue, 20 Jan 2009 14:13:25 +0000 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901200600w20cd288fk5d15d197df0783d3@mail.gmail.com> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> <8D723DE1-3CB1-400E-9B5D-66695C0E4290@ena.com> <4b008f7d0901200600w20cd288fk5d15d197df0783d3@mail.gmail.com> Message-ID: <4975DC05.1060200@sliderule.demon.co.uk> Alex Dehaini wrote: > Hi, > > What config do you want me to post? I added the members to the hostgroup Do you have a 'hostgroups.cfg' or equivalent file? It should contain the definitions of any hostgroups you use. E.g. (cut from the documentation) define hostgroup{ hostgroup_name hostgroup_name alias alias members hosts hostgroup_members hostgroups notes note_string notes_url url action_url url } Steve. > > On Tue, Jan 20, 2009 at 1:52 PM, Marc Powell > wrote: > > > On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote: > > > In the cgi view, I see the hostgroup but it says there are no host > > or services added to it even after adding the host and service. > > > > Strange > > If you want useful help for this you're going to have to post the > relevant config information. At this point it seems that the hostgroup > has no members or you are not permitted to see them. > > -- > Marc > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 srianirudh at gmail.com Tue Jan 20 15:48:13 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Tue, 20 Jan 2009 09:48:13 -0500 Subject: check_oracle Message-ID: <699b436a0901200648o8d8233dv48c0ee039acae655@mail.gmail.com> usage of check_oracle plugin . what is it used to check excatly. and if that plugin gives the critical how to troubleshoot that issue. Please help me with this Regards -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Tue Jan 20 16:14:33 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Jan 2009 09:14:33 -0600 Subject: check_oracle In-Reply-To: <699b436a0901200648o8d8233dv48c0ee039acae655@mail.gmail.com> References: <699b436a0901200648o8d8233dv48c0ee039acae655@mail.gmail.com> Message-ID: On Jan 20, 2009, at 8:48 AM, Anirudh Srinivasan wrote: > > usage of check_oracle plugin . what is it used to check excatly. If this isn't exact enough, you can peruse the source code of course... It is assumed that you know what these mean with respect to Oracle. [ libexec]$ ./check_oracle --help check_oracle (nagios-plugins 1.4.3) 1.14 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Usage: check_oracle --tns check_oracle --db check_oracle --login check_oracle --cache check_oracle --tablespace check_oracle --oranames check_oracle --help check_oracle --version Check Oracle status --tns SID/IP Address Check remote TNS server --db SID Check local database (search /bin/ps for PMON process) and check filesystem for sgadefORACLE_SID.dbf --login SID Attempt a dummy login and alert if not ORA-01017: invalid username/ password --cache Check local database for library and buffer cache hit ratios ---> Requires Oracle user/password and SID specified. ---> Requires select on v_ and v_ --tablespace Check local database for tablespace capacity in ORACLE_SID ---> Requires Oracle user/password specified. ---> Requires select on dba_data_files and dba_free_space --oranames Hostname Check remote Oracle Names server --help Print this help screen --version Print version and license information > and if that plugin gives the critical how to troubleshoot that issue. Depends on what's broken and is beyond the scope of this list. Your Oracle DBA or an Oracle list would be a better source. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 andurin at process-zero.de Tue Jan 20 16:32:47 2009 From: andurin at process-zero.de (Hendrik Baecker) Date: Tue, 20 Jan 2009 16:32:47 +0100 Subject: check_oracle In-Reply-To: <699b436a0901200648o8d8233dv48c0ee039acae655@mail.gmail.com> References: <699b436a0901200648o8d8233dv48c0ee039acae655@mail.gmail.com> Message-ID: <4975EE9F.9020903@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anirudh Srinivasan schrieb: > > usage of check_oracle plugin . what is it used to check excatly. and > if that plugin gives the critical how to troubleshoot that issue. > > Please help me with this > I don't think this will help you much, but here you are for the usage question (c&p from check_oracle --help): Usage: check_oracle --tns check_oracle --db check_oracle --login check_oracle --cache check_oracle --tablespace check_oracle --oranames check_oracle --help check_oracle --version Check Oracle status - --tns SID/IP Address Check remote TNS server - --db SID Check local database (search /bin/ps for PMON process) and check filesystem for sgadefORACLE_SID.dbf - --login SID Attempt a dummy login and alert if not ORA-01017: invalid username/password - --cache Check local database for library and buffer cache hit ratios ---> Requires Oracle user/password and SID specified. ---> Requires select on v_ and v_ - --tablespace Check local database for tablespace capacity in ORACLE_SID ---> Requires Oracle user/password specified. ---> Requires select on dba_data_files and dba_free_space - --oranames Hostname Check remote Oracle Names server - --help Print this help screen - --version Print version and license information If the plugin doesn't work, check that the ORACLE_HOME environment variable is set, that ORACLE_HOME/bin is in your PATH, and the tnsnames.ora file is locatable and is properly configured. When checking local database status your ORACLE_SID is case sensitive. If you want to use a default Oracle home, add in your oratab file: *:/opt/app/oracle/product/7.3.4:N -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFJde6flI0PwfxLQjkRAqs9AJ0XW1WrL2RKA2vwS7Cg9n/VklazXwCfbO62 swaQXpVTFtVCxOT4301hlFo= =sFhg -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 AHKAPLAN at PARTNERS.ORG Tue Jan 20 21:09:41 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 20 Jan 2009 15:09:41 -0500 Subject: Recommended Plugin for Monitoring iptables Message-ID: Is there a recommended plugin for monitoring iptables? The Nagios server is version 2.6, and the version of the bundled plugins is currently 1.4.5. Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 treibholz at sozial-inkompetent.de Tue Jan 20 21:26:41 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Tue, 20 Jan 2009 21:26:41 +0100 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: References: Message-ID: <20090120202641.GF20304@umbach-racing.de> On 20/01/09 15:09, Kaplan, Andrew H. wrote: > Is there a recommended plugin for monitoring iptables? The Nagios server is > version 2.6, and the version of the bundled plugins is currently 1.4.5. Thanks. what exactly do you want to monitor? - Klaus -- BOFH excuse #406: Bad cafeteria food landed all the sysadmins in the hospital. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Tue Jan 20 21:52:58 2009 From: matt at frozenatom.com (Matt Nelson) Date: Tue, 20 Jan 2009 13:52:58 -0700 Subject: Support for snmp v2c with check_all_interfaces.pl In-Reply-To: <148f6bb30901191716wb228c3p592994a8639391c0@mail.gmail.com> References: <148f6bb30901161138q6e3241adjd1c304dc5fab65e5@mail.gmail.com> <49718CFB.9010407@telecomitalia.sm> <148f6bb30901191716wb228c3p592994a8639391c0@mail.gmail.com> Message-ID: <148f6bb30901201252r3242b9d6o969b1498792fda5b@mail.gmail.com> There apparently is a problem with Net::SNMP->session->get_table() related to Suse/Opensuse, and 64bit machines. I tried this at home and everything worked fine across redhat based distro's. I found that I can use Net::SNMP-session-get_request() and it works fine. Since I do not have time to dig into this much more, I decided to just "hack" the current script. I believe that this is a bug that I am guessing will be fixed with future releases of net-snmp running on suse. Below is my temporary fix if anyone wants it: replace original get_table perl function with: ####### sub get_table { my $oid = shift; my $response; # HACK by Matt Nelson $response = $session->get_table($oid); if ( !defined($response) ){ my $hash = {}; my $interfaces = scalar(keys(%iface_descr)); for (my $i=1; $i <= $interfaces; $i++){ my $z = $session->get_request(-varbindlist => [$oid.'.'.$i]); while (my ($key, $val) = each (%$z)){ $hash->{$key} = $val; } $response = $hash; } } if ( !defined($response) ) { # END HACK by Matt Nelson my $answer = $session->error; printf "CRITICAL: Could not read table by SNMP: $answer\n"; exit STATUS_CRITICAL; } return %$response; } ####### On Mon, Jan 19, 2009 at 6:16 PM, Matt Nelson wrote: > Sorry for the slow response. > > I didn't change anything yet with the original pl code. I actually > downloaded it again to a different machine, and it gives the same error: > > nagios02:/home/nagios/libexec # ./check_all_interfaces.pl -H databasenode > -C public -v 1 > CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) > > nagios02:/home/nagios/libexec # ./check_all_interfaces.pl -H databasenode > -C public -v 2 > CRITICAL: Could not read table by SNMP: Counter length too long (5 bytes) > > I wonder if it is something with version running on the remote host?? I'll > keep digging into this, and idea's are more then welcome. I'll post any > solutions I find. > > > On Sat, Jan 17, 2009 at 12:47 AM, Andrea Gabellini < > andrea.gabellini at telecomitalia.sm> wrote: > >> Matt, >> >> the original code use snmp v2c as the default, and it works fine. Did you >> change the default? >> >> Andrea >> >> Matt Nelson wrote: >> > I have been using check_all_interfaces.pl for a while on 32bit machines >> > and it works great for checking the interfaces for errors. I would like >> > to use it on a 64bit machine, but it gives the error: >> > >> > CRITICAL: Could not read table by SNMP: Counter length too long (5 >> bytes) >> > >> > due to it trying to read a Counter64 with snmp v1. It does not support >> > v2c, or v3, which supports Counter64. >> > >> > Does anyone know of a similar plugin that will work, or a way around >> this? >> > >> > >> > ------------------------------------------------------------------------ >> > >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > SourcForge Community >> > SourceForge wants to tell your story. >> > http://p.sf.net/sfu/sf-spreadtheword >> > >> > >> > ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users 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 >> >> -- >> >> --------------------------------------- >> Monday is an awful way to spend 1/7th of your life. >> --------------------------------------- >> Ing. Andrea Gabellini >> Email: andrea.gabellini at telecomitalia.sm >> Skype: andreagabellini >> Tel: (+378) 0549 886111 >> Fax: (+378) 0549 886188 >> >> Telecom Italia San Marino S.p.A. >> Strada degli Angariari, 3 >> 47891 Rovereta >> Republic of San Marino >> >> http://www.telecomitalia.sm >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 AHKAPLAN at PARTNERS.ORG Tue Jan 20 22:00:20 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 20 Jan 2009 16:00:20 -0500 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: <20090120202641.GF20304@umbach-racing.de> References: <20090120202641.GF20304@umbach-racing.de> Message-ID: Hi there -- Thanks for your reply. I simply want to ensure that 'iptables -vnL' comes back with output indicating that firewall rules are in effect. -----Original Message----- From: Klaus Umbach [mailto:treibholz at sozial-inkompetent.de] Sent: Tuesday, January 20, 2009 3:27 PM To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Recommended Plugin for Monitoring iptables On 20/01/09 15:09, Kaplan, Andrew H. wrote: > Is there a recommended plugin for monitoring iptables? The Nagios server is > version 2.6, and the version of the bundled plugins is currently 1.4.5. Thanks. what exactly do you want to monitor? - Klaus -- BOFH excuse #406: Bad cafeteria food landed all the sysadmins in the hospital. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 scarolan at gmail.com Tue Jan 20 22:02:09 2009 From: scarolan at gmail.com (Sean Carolan) Date: Tue, 20 Jan 2009 15:02:09 -0600 Subject: check_jmx plugin chokes on more than 2Gb memory Message-ID: <277020fc0901201302s3d015188nec1738065731d8f6@mail.gmail.com> This works: [nagios at monitor1 libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483647 JMX CRITICAL HeapMemoryUsage.used=-1942171464 But this doesn't: [nagios at monitor1 libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483648 JMX UNKNOWN For input string: "2147483648" Usage: check_jmx -help Does anyone have source code for jmxquery.jar? Or perhaps a newer version that can cope with larger heap size? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mirde at oppy.com Tue Jan 20 22:18:17 2009 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 20 Jan 2009 13:18:17 -0800 Subject: AIX & check_logfiles from consol.com issues/errors - please help Message-ID: Hello, I am having issues getting the check_logfiles script from consol.com to work; I am using their latest script and it was compiled in my AIX 5.3 environment. >From the aix box's console I run: check_logfiles -t 10 -f /test.cfg and I am expected to get a CRITICAL warning based on test.cfg's configuration: $seekfilesdir = '/tmp'; @searches = ( { tag => 'aix', logfile => '/mirde.log', criticalpatterns => [ 'W3SVC2', ], warningpatterns => [ 'W3SVC3', ], options => 'count', }, ); My results from the script keep coming out as OK, where it should give me a CRITICAL and WARNING message since the 2 patterns exist in mirde.log test log. Any idea why this is not working and/or tips? The script seems functional, if I point the logfile to a non-existent file it will error out properly. The check script has a chmod of 777 as well and is being executed under root. Thanks. Mirza Dedic Jr. Technical Analyst - The Oppenheimer Group Office #(604) 461-6779 : Cell #(778) 895-8950 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 treibholz at sozial-inkompetent.de Tue Jan 20 22:23:41 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Tue, 20 Jan 2009 22:23:41 +0100 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: References: <20090120202641.GF20304@umbach-racing.de> Message-ID: <20090120212341.GG20304@umbach-racing.de> On 20/01/09 16:00, Kaplan, Andrew H. wrote: > Hi there -- > > Thanks for your reply. I simply want to ensure that 'iptables -vnL' > comes back with output indicating that firewall rules are in effect. I would write a script myself, that compares "iptables -vnL > /tmp/iptables.txt" with "iptables -vnL" > > -----Original Message----- > From: Klaus Umbach [mailto:treibholz at sozial-inkompetent.de] > Sent: Tuesday, January 20, 2009 3:27 PM > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Recommended Plugin for Monitoring iptables > > On 20/01/09 15:09, Kaplan, Andrew H. wrote: > > Is there a recommended plugin for monitoring iptables? The Nagios server is > > version 2.6, and the version of the bundled plugins is currently 1.4.5. > Thanks. > > what exactly do you want to monitor? > > - > Klaus > > -- > BOFH excuse #406: > > Bad cafeteria food landed all the sysadmins in the hospital. > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the e-mail > contains patient information, please contact the Partners Compliance HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in error > but does not contain patient information, please contact the sender and properly > dispose of the e-mail. > > -- BOFH excuse #189: SCSI's too wide. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 20 23:04:46 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Jan 2009 16:04:46 -0600 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: References: <20090120202641.GF20304@umbach-racing.de> Message-ID: On Jan 20, 2009, at 3:00 PM, Kaplan, Andrew H. wrote: > Hi there -- > > Thanks for your reply. I simply want to ensure that 'iptables -vnL' > comes back with output indicating that firewall rules are in effect. I don't use it but the first hit on google looks promising... http://www.google.com/search?q=nagios+check_iptables "The script does not (and can not) detect "stupid" rules. It's purpose is to ensure that iptables and the configured rules (whatever they may be) are loaded. It is useful to identify situations such as: - forgetting to start iptables at boot - stopping iptables for testing and forgetting to restart - etc Normal condition is where all tables have 1 or more rules. Critical condition is when a table (any table) has 0 rules. " ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mirde at oppy.com Wed Jan 21 01:41:28 2009 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 20 Jan 2009 16:41:28 -0800 Subject: AIX & check_logfiles from consol.com issues/errors - please help In-Reply-To: <497641E2.5020702@ec.gc.ca> References: <497641E2.5020702@ec.gc.ca> Message-ID: Thanks Tarak this has resolved my issue. I assume that when you point check_logfiles on a log file, it makes a hash of the file and starts to monitor at the EOF waiting for new input and scanning for the specific information. CC'ing the nagios-users. Thank you. From: Tarak Patel [mailto:Tarak.Patel at ec.gc.ca] Sent: January/20/2009 1:28 PM To: Mirza Dedic Subject: Re: [Nagios-users] AIX & check_logfiles from consol.com issues/errors - please help Hi, If I remember correctly each time you execute the script it keeps track of the offset in file. This means that if there are no new entries (matching the criterias) in the logfile since the last time check_logfile was executed it will return okay. I think the script adds an offset value in a file (might be a hidden file starting with .) Regards, Tarak. System Analyst Envrionment Canada (514)421-4799 Mirza Dedic wrote: Hello, I am having issues getting the check_logfiles script from consol.com to work; I am using their latest script and it was compiled in my AIX 5.3 environment. >From the aix box's console I run: check_logfiles -t 10 -f /test.cfg and I am expected to get a CRITICAL warning based on test.cfg's configuration: $seekfilesdir = '/tmp'; @searches = ( { tag => 'aix', logfile => '/mirde.log', criticalpatterns => [ 'W3SVC2', ], warningpatterns => [ 'W3SVC3', ], options => 'count', }, ); My results from the script keep coming out as OK, where it should give me a CRITICAL and WARNING message since the 2 patterns exist in mirde.log test log. Any idea why this is not working and/or tips? The script seems functional, if I point the logfile to a non-existent file it will error out properly. The check script has a chmod of 777 as well and is being executed under root. Thanks. Mirza Dedic Jr. Technical Analyst - The Oppenheimer Group Office #(604) 461-6779 : Cell #(778) 895-8950 ________________________________ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ________________________________ _______________________________________________ Nagios-users mailing list Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Wed Jan 21 07:00:23 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 21 Jan 2009 00:00:23 -0600 Subject: tweaking the order of sorting in nagios lists: numeric rather than alphabetical Message-ID: Is there a way to tweak the manner in which nagios sorts the names of hosts in the "Service Status Details"? I have hosts named star01, star02 and so on all the way through star256 and nagios insists on sortin these like so: star10 star101 star102 [snip] star119 star12 etc. Can I make the numbers sort in a numeric order rather than a strict "alphabetical" order? -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 treibholz at sozial-inkompetent.de Wed Jan 21 10:43:42 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Wed, 21 Jan 2009 10:43:42 +0100 Subject: NSClient++, CheckDriveSize and perfdata Message-ID: <20090121094342.GI20304@umbach-racing.de> Hi, I check the drives with check_nrpe -H $HOST -c CheckDriveSize -a Drive=C ShowAll=long MaxWarnUsed=90% MaxCritUsed=95% This has a result like: OK: C:: 29.3G - Used: 5.73G (19%) - Free: 23.6G (81%)|'C:'=19%;90;95; Is it possible, to somehow increase the accuracy of the fillstate in percent in the perfdata? like: 'C:'=19.5;90;95; Background: I use nagiosgrapher to paint funny pictures, and on a drive with 1TB, a change of 1% is 10GB. - Klaus -- BOFH excuse #426: internet is needed to catch the etherbunny ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 hpsekhon at googlemail.com Wed Jan 21 10:51:47 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 21 Jan 2009 09:51:47 +0000 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: References: <20090120202641.GF20304@umbach-racing.de> Message-ID: <4976F033.7030402@googlemail.com> Marc Powell wrote: > "The script does not (and can not) detect "stupid" rules. It's purpose > is to ensure that iptables and the configured rules (whatever they may > be) are loaded. > > It is useful to identify situations such as: > - forgetting to start iptables at boot > - stopping iptables for testing and forgetting to restart > - etc > > Normal condition is where all tables have 1 or more rules. > Critical condition is when a table (any table) has 0 rules. " > I simply have my rules re-applied from known-good versions, which mostly negates the need for such a check. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 t.ottavi at medi.fr Wed Jan 21 11:45:45 2009 From: t.ottavi at medi.fr (Toussaint OTTAVI) Date: Wed, 21 Jan 2009 11:45:45 +0100 Subject: How to query Nagios raw results for external filtering ? In-Reply-To: References: <496E16DF.4030907@medi.fr> Message-ID: <4976FCD9.1080702@medi.fr> Hi, Sorry for late answer, very busy and not so much time to play around with Nagios :-) Anthony Montibello a ?crit: > > as for the personal filtering CAN/SHOULD that be done through setting > up a user login that for the Nagios CGI > then configure NagStamon with that user ID? > > you could triple check nagios excange for something more similar to > your needs. Here's my problem. When a host is unreachable (f/ex due to wan failure), Nagios continues to do the service checks on that host. This produces a lot of service check failure, warning or unknown (depending on how the individual plugin behaves when the destination host does not answer at all). Service dependency helps a bit. But service checks that are scheduled after the wan failure, but before the 'dependant' service check, still display inappropriate results. What I would like to filter in the display is what Nagios already can do, but only for notifications : - display only 'hard' states, and not 'soft' states - don't display service checks results if the corresponding host is 'unreachable' I've been investigating this for a while. This problem has already been discussed on this list. It seems there's no solution, it's by design. Parent/child/unreachable logic is for hosts only, there's no such relationship between hosts and services, or between services. Maybe a smarter solution would have been to develop some event handlers and scripts, to automatically set the status of all service checks to 'unknown' if the host becomes 'unreachable', or if the 'dependant' service fails. But I don't have the Linux programming skills to do that. That's why I'm thinking about doing it under Windows. If something already exists to do that filtering, this would avoid re-inventing the wheel just for displaying results the way I need them Thank you for answer. Kind regards -- *Toussaint OTTAVI* *MEDI INFORMATIQUE* ***Mail:* t.ottavi at medi.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 at medin.name Wed Jan 21 12:29:33 2009 From: michael at medin.name (Michael Medin) Date: Wed, 21 Jan 2009 10:29:33 -0100 (GMT+1) Subject: NSClient++, CheckDriveSize and perfdata In-Reply-To: <20090121094342.GI20304@umbach-racing.de> References: <20090121094342.GI20304@umbach-racing.de> Message-ID: <46068.217.13.248.2.1232537373.squirrel@ssl.nakednuns.org> There are plans to update the "rendering engine" (fancy word) in a future version but if you want I could add an option to includ exact size or something like that and/or add a dot (if nagios allowes this). Open up a ticket at nsclient.org and I shall see if I can have it in the up coming 0.3.6 version (ine a week or so). // MickeM > Hi, > > I check the drives with > > check_nrpe -H $HOST -c CheckDriveSize -a Drive=C ShowAll=long > MaxWarnUsed=90% MaxCritUsed=95% > > This has a result like: > > OK: C:: 29.3G - Used: 5.73G (19%) - Free: 23.6G (81%)|'C:'=19%;90;95; > > Is it possible, to somehow increase the accuracy of the fillstate in > percent in the perfdata? like: 'C:'=19.5;90;95; > > Background: I use nagiosgrapher to paint funny pictures, and on a drive > with 1TB, a change of 1% is 10GB. > > - > Klaus > > -- > BOFH excuse #426: > > internet is needed to catch the etherbunny > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 alexdehaini at gmail.com Wed Jan 21 12:37:48 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 21 Jan 2009 11:37:48 +0000 Subject: Hostgroup Issue In-Reply-To: <4975DC05.1060200@sliderule.demon.co.uk> References: <4b008f7d0901190425x6aa6ab4eqc8a14e0962876fa8@mail.gmail.com> <25251aec0901200131j668f5d2cx3b81d2bf3c755237@mail.gmail.com> <4b008f7d0901200136p2ee4d945j8ce34fc1949cc959@mail.gmail.com> <8D723DE1-3CB1-400E-9B5D-66695C0E4290@ena.com> <4b008f7d0901200600w20cd288fk5d15d197df0783d3@mail.gmail.com> <4975DC05.1060200@sliderule.demon.co.uk> Message-ID: <4b008f7d0901210337l2141a70fg9de62f91828a8bfb@mail.gmail.com> Yes, I do have a hostgroup.cfg file. The issue is, when I add a new host or service - it doesn't show up in the cgi interface but nagios has seen it. My entries in hostgroup.cfg file are working, however - since nagios do not see these new hosts and services, they can't be displayed under the hostgroup. I wish there was somewhere I could check investigate this. Here is a snippet from my hostgroup.cfg file define hostgroup{ hostgroup_name CANTOMENTS alias SITE-CANTOMENTS members core,sm at procreditadjangote,DNS1,*ap5.7 at cantoments ,sm at cantoments,switch at cantoments* } define hostgroup{ hostgroup_name GIX alias GIX members core,bhmaster at gix,bhslave at kokomlemle2gix,router at gix } define hostgroup{ hostgroup_name GT alias GT members core2gt,bhmaster at koko2gt,bhslave at gt2koko } I added new hosts ap5.7 at cantoments,sm at cantoments and switch at cantoments and their corresponding services. However, the cgi web interface does not show them - that is the issue. Hosts core and DNS1 are old entries and they come up alright under the hostgroup but the others I added recently are not showing. Here is an image of what I am talking about Alex On Tue, Jan 20, 2009 at 2:13 PM, Steve Burton wrote: > Alex Dehaini wrote: > > Hi, > > > > What config do you want me to post? I added the members to the hostgroup > > Do you have a 'hostgroups.cfg' or equivalent file? > > It should contain the definitions of any hostgroups you use. > E.g. (cut from the documentation) > define hostgroup{ > > hostgroup_name hostgroup_name > > alias alias > > members hosts > > hostgroup_members hostgroups > > notes note_string > > notes_url url > > action_url url > } > > > Steve. > > > > > On Tue, Jan 20, 2009 at 1:52 PM, Marc Powell > > wrote: > > > > > > On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote: > > > > > In the cgi view, I see the hostgroup but it says there are no host > > > or services added to it even after adding the host and service. > > > > > > Strange > > > > If you want useful help for this you're going to have to post the > > relevant config information. At this point it seems that the > hostgroup > > has no members or you are not permitted to see them. > > > > -- > > Marc > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users 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 > > > > > > > > > > -- > > Alex Dehaini > > Developer > > Site - www.alexdehaini.com > > Email - alexdehaini at gmail.com > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users 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 > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hostgroup.JPG Type: image/jpeg Size: 14196 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mjkout at gmail.com Wed Jan 21 14:00:06 2009 From: mjkout at gmail.com (Mohammed Al-Kout) Date: Wed, 21 Jan 2009 16:00:06 +0300 Subject: Nagios - LDAP/RSA authentication Message-ID: Hello, i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local userfile for sometime, recently i switched to LDAP authentication with mod_auth_ldap its working fine, the problem is i'm getting the authentication popup every 10-20 mins, is there a way to stop this or set a longer interval ? i'm not sure what is causing this popup to reappear ( LDAP , Apache or Nagios ) if anyone has an idea please lemme know Best Regards -- Mohammed Al-Kout -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 werner.flamme at ufz.de Wed Jan 21 14:22:00 2009 From: werner.flamme at ufz.de (Werner Flamme) Date: Wed, 21 Jan 2009 14:22:00 +0100 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: Message-ID: <49772178.6000207@ufz.de> Mohammed Al-Kout [21.01.2009 14:00]: > Hello, > > i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local > userfile for sometime, recently i switched to LDAP authentication with > mod_auth_ldap its working fine, the problem is i'm getting the > authentication popup every 10-20 mins, is there a way to stop this or set a > longer interval ? i'm not sure what is causing this popup to reappear ( > LDAP , Apache or Nagios ) if anyone has an idea please lemme know Neither of them. We use LDAP auth for years, and there are no such popups. Regards, Werner ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mjkout at gmail.com Wed Jan 21 14:31:09 2009 From: mjkout at gmail.com (Mohammed Al-Kout) Date: Wed, 21 Jan 2009 16:31:09 +0300 Subject: Nagios - LDAP/RSA authentication In-Reply-To: <49772178.6000207@ufz.de> References: <49772178.6000207@ufz.de> Message-ID: Warner, the session seems to be expiring after ( 10-20) and nagios asks for reauthentication, ( we are using RSA passwords that change frequently so the LDAPCAche does not apply in our case ) are you using mod_auth_ldap ? what are the parameters you use in the httpd.conf for LDAP Cache settings Best Regards -- Mohammed Al-Kout On Wed, Jan 21, 2009 at 16:22, Werner Flamme wrote: > Mohammed Al-Kout [21.01.2009 14:00]: > > Hello, > > > > i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local > > userfile for sometime, recently i switched to LDAP authentication with > > mod_auth_ldap its working fine, the problem is i'm getting the > > authentication popup every 10-20 mins, is there a way to stop this or set > a > > longer interval ? i'm not sure what is causing this popup to reappear ( > > LDAP , Apache or Nagios ) if anyone has an idea please lemme know > > Neither of them. We use LDAP auth for years, and there are no such popups. > > Regards, > Werner > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 alexdehaini at gmail.com Wed Jan 21 14:59:49 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 21 Jan 2009 13:59:49 +0000 Subject: Hostgroup Issue In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED38E38F6@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED38E38F6@kogex02.pmpl.co.uk> Message-ID: <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> Deborah, Here is the output of /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg on my server Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check I have reloaded nagios with hostgroup.cfg using /etc/init.d/nagios reload I still don't understand what is happening. Thanks though On Wed, Jan 21, 2009 at 1:07 PM, Deborah Martin wrote: > Alex, > > Have you checked that the nagios config here hasn't got any errors : > e.g /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > Then restarted the nagios process so that reloads the hostgroup.cfg file ? > > eg. /etc/init.d/nagios reload > > (Note the above paths are ones I use and may differ to your configuration.) > > > I'm assuming you've done but it still doesn't work ? > > regards, > deborah > > > ------------------------------ > *From:* Alex Dehaini [mailto:alexdehaini at gmail.com] > *Sent:* 21 January 2009 11:38 > *To:* Steve Burton > *Cc:* Nagios Users Mailinglist > *Subject:* Re: [Nagios-users] Hostgroup Issue > > Yes, I do have a hostgroup.cfg file. The issue is, when I add a new host or > service - it doesn't show up in the cgi interface but nagios has seen it. My > entries in hostgroup.cfg file are working, however - since nagios do not see > these new hosts and services, they can't be displayed under the hostgroup. > > I wish there was somewhere I could check investigate this. Here is a > snippet from my hostgroup.cfg file > > define hostgroup{ > hostgroup_name CANTOMENTS > alias SITE-CANTOMENTS > members core,sm at procreditadjangote,DNS1,*ap5.7 at cantoments > ,sm at cantoments,switch at cantoments* > } > > > define hostgroup{ > hostgroup_name GIX > alias GIX > members core,bhmaster at gix,bhslave at kokomlemle2gix > ,router at gix > } > > > define hostgroup{ > hostgroup_name GT > alias GT > members core2gt,bhmaster at koko2gt,bhslave at gt2koko > } > > I added new hosts ap5.7 at cantoments,sm at cantoments and switch at cantoments and > their corresponding services. However, the cgi web interface does not show > them - that is the issue. > > Hosts core and DNS1 are old entries and they come up alright under the > hostgroup but the others I added recently are not showing. Here is an image > of what I am talking about > > Alex > > On Tue, Jan 20, 2009 at 2:13 PM, Steve Burton > wrote: > >> Alex Dehaini wrote: >> > Hi, >> > >> > What config do you want me to post? I added the members to the hostgroup >> >> Do you have a 'hostgroups.cfg' or equivalent file? >> >> It should contain the definitions of any hostgroups you use. >> E.g. (cut from the documentation) >> define hostgroup{ >> >> hostgroup_name hostgroup_name >> >> alias alias >> >> members hosts >> >> hostgroup_members hostgroups >> >> notes note_string >> >> notes_url url >> >> action_url url >> } >> >> >> Steve. >> >> > >> > On Tue, Jan 20, 2009 at 1:52 PM, Marc Powell > > > wrote: >> > >> > >> > On Jan 20, 2009, at 3:36 AM, Alex Dehaini wrote: >> > >> > > In the cgi view, I see the hostgroup but it says there are no host >> > > or services added to it even after adding the host and service. >> > > >> > > Strange >> > >> > If you want useful help for this you're going to have to post the >> > relevant config information. At this point it seems that the >> hostgroup >> > has no members or you are not permitted to see them. >> > >> > -- >> > Marc >> > >> > >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > SourcForge Community >> > SourceForge wants to tell your story. >> > http://p.sf.net/sfu/sf-spreadtheword >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users 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 >> > >> > >> > >> > >> > -- >> > Alex Dehaini >> > Developer >> > Site - www.alexdehaini.com >> > Email - alexdehaini at gmail.com >> > ------------------------------------------------------------------------ >> > >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > SourcForge Community >> > SourceForge wants to tell your story. >> > http://p.sf.net/sfu/sf-spreadtheword >> > ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users 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 >> >> >> ______________________________________________________________________ >> This email has been scanned by the MessageLabs Email Security System. >> For more information please visit http://www.messagelabs.com/email >> ______________________________________________________________________ >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 >> > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > > *************************************************************************** > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > > Any unauthorised distribution or copying is strictly prohibited. > Whilst Kognitio Limited takes steps to prevent the transmission of viruses > via e-mail, we can not guarantee that any email or attachment is free from > computer viruses and you are strongly advised to undertake your own > anti-virus precautions. > > Kognitio grants no warranties regarding performance, use or quality of any > e-mail or attachment and undertakes no liability for loss or damage, > howsoever caused. > > Kognitio Limited, a company registered in England and Wales. Registered > number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, > Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. > > Kognitio Inc, a company incorporated in Delaware, principal office 180 > North Stetson, Suite 3500, Chicago, IL 60601, USA > *************************************************************************** > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Wed Jan 21 15:13:16 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 21 Jan 2009 08:13:16 -0600 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> References: <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> Message-ID: Are '@' symbols allowed in hostnames in Nagios, other than for email addresses? I know special characters are invalid for internet hostnames... If core and DNS1 are showing up, but the other hosts with '@' are not, I think that's your problem. May I ask why you are using special characters for hostname aliases in Nagios? James Moseley From: Alex Dehaini [mailto:alexdehaini at gmail.com] Sent: 21 January 2009 11:38 To: Steve Burton Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Hostgroup Issue Yes, I do have a hostgroup.cfg file. The issue is, when I add a new host or service - it doesn't show up in the cgi interface but nagios has seen it. My entries in hostgroup.cfg file are working, however - since nagios do not see these new hosts and services, they can't be displayed under the hostgroup. I wish there was somewhere I could check investigate this. Here is a snippet from my hostgroup.cfg file define hostgroup{ hostgroup_name CANTOMENTS alias SITE-CANTOMENTS members core,sm at procreditadjangote,DNS1, ap5.7 at cantoments,sm at cantoments,switch at cantoments } define hostgroup{ hostgroup_name GIX alias GIX members core,bhmaster at gix,bhslave at kokomlemle2gix,router at gix } define hostgroup{ hostgroup_name GT alias GT members core2gt,bhmaster at koko2gt,bhslave at gt2koko } I added new hosts ap5.7 at cantoments,sm at cantoments and switch at cantoments and their corresponding services. However, the cgi web interface does not show them - that is the issue. Hosts core and DNS1 are old entries and they come up alright under the hostgroup but the others I added recently are not showing. Here is an image of what I am talking about Alex ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Wed Jan 21 15:19:50 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 21 Jan 2009 06:19:50 -0800 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: Message-ID: <49772F06.5080201@kkeane.com> There is no such thing as a "session" in Nagios. It simply uses plain HTTP authentication. That means that the user name and password is sent with every single HTTP request; request are not tied together the way you might be used to from online banking sites and the like. What you are observing could be due to a couple of different factors, but it is almost certainly neither LDAP, Apache nor Nagios, but rather the Web browser. - The most likely cause: you say that the RSA passwords change frequently. When the RSA password changes, the browser has no way of knowing that, and will continue to send the old password. This is rejected, and the browser then pops up the login dialog. - The browser may for some reason think that it is connecting to a different server, where the user name and password are no longer valid. - The browser may for some reason actually forget the user name and password. Mohammed Al-Kout wrote: > Warner, > > the session seems to be expiring after ( 10-20) and nagios asks for > reauthentication, ( we are using RSA passwords that change frequently > so the LDAPCAche does not apply in our case ) are you using > mod_auth_ldap ? > what are the parameters you use in the httpd.conf for LDAP Cache settings > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Wed, Jan 21, 2009 at 16:22, Werner Flamme > wrote: > > Mohammed Al-Kout [21.01.2009 14:00]: > > Hello, > > > > i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a > local > > userfile for sometime, recently i switched to LDAP > authentication with > > mod_auth_ldap its working fine, the problem is i'm getting the > > authentication popup every 10-20 mins, is there a way to stop > this or set a > > longer interval ? i'm not sure what is causing this popup to > reappear ( > > LDAP , Apache or Nagios ) if anyone has an idea please lemme know > > Neither of them. We use LDAP auth for years, and there are no such > popups. > > Regards, > Werner > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 alexdehaini at gmail.com Wed Jan 21 15:41:31 2009 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 21 Jan 2009 14:41:31 +0000 Subject: Hostgroup Issue In-Reply-To: References: <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> Message-ID: <4b008f7d0901210641u1c432c46xacb1f16b4d4c0c2e@mail.gmail.com> I have been using special characters since day 1 and it has always worked, I have had no issues with it. There is no reason why I use it expect say for naming convention. I changed sm at procreditadjangote to smprocreditadjangote and nothing changed - so I don't think that is the problem. (I might be wrong) Alex On Wed, Jan 21, 2009 at 2:13 PM, wrote: > Are '@' symbols allowed in hostnames in Nagios, other than for email > addresses? I know special characters are invalid for internet hostnames... > If core and DNS1 are showing up, but the other hosts with '@' are not, I > think that's your problem. > > May I ask why you are using special characters for hostname aliases in > Nagios? > > > James Moseley > > > > > > From: Alex Dehaini [mailto:alexdehaini at gmail.com] > Sent: 21 January 2009 11:38 > To: Steve Burton > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] Hostgroup Issue > > Yes, I do have a hostgroup.cfg file. The issue is, when I add a new host > or service - it doesn't show up in the cgi interface but nagios has seen > it. My entries in hostgroup.cfg file are working, however - since nagios > do not see these new hosts and services, they can't be displayed under > the hostgroup. > > I wish there was somewhere I could check investigate this. Here is a > snippet from my hostgroup.cfg file > > define hostgroup{ > hostgroup_name CANTOMENTS > alias SITE-CANTOMENTS > members core,sm at procreditadjangote,DNS1, > ap5.7 at cantoments,sm at cantoments,switch at cantoments > } > > > define hostgroup{ > hostgroup_name GIX > alias GIX > members > core,bhmaster at gix,bhslave at kokomlemle2gix,router at gix > } > > > define hostgroup{ > hostgroup_name GT > alias GT > members core2gt,bhmaster at koko2gt,bhslave at gt2koko > } > > I added new hosts ap5.7 at cantoments,sm at cantoments and switch at cantoments > and their corresponding services. However, the cgi web interface does not > show them - that is the issue. > > Hosts core and DNS1 are old entries and they come up alright under the > hostgroup but the others I added recently are not showing. Here is an > image of what I am talking about > > Alex > > > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ugob at lubik.ca Wed Jan 21 15:43:58 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Wed, 21 Jan 2009 09:43:58 -0500 Subject: Slightly-OT - Notification management In-Reply-To: References: Message-ID: Julian Hein a ?crit : > Hi, > > Ugo Bellavance wrote on 13.05.08 14:19: > >>> Multitech has Modems with Ethernet Interfaces. You just connect them to the >>> Network and send a text oder sms via Telnet commands: >>> http://www.multitech.com/PRODUCTS/Categories/Device_Networking/ >>> >>> If you can get a mobile phone plan with unlimited sms/text in Canada, you >>> can send as many txt as you can get through and build your own email2sms >>> gateway. >> Wow, thanks. Have you built one? Is there a Linux package that exist >> to send the telnet commands? > > No, we did not build a gateway, but we use smsservertools > (http://smstools.meinemullemaus.de/) together with Nagios and Multitech > Modems to send urgent notification on weekends. Works pretty good and we > wrote a Nagios Plugin to monitor the Modem itself: > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2607.html;d=1 I finally have time to play with that... do you know of a tutorial showing how to configure the modem and the software? Regards, Ugo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 werner.flamme at ufz.de Wed Jan 21 15:50:24 2009 From: werner.flamme at ufz.de (Werner Flamme) Date: Wed, 21 Jan 2009 15:50:24 +0100 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: <49772178.6000207@ufz.de> Message-ID: <49773630.6070506@ufz.de> Mohammed Al-Kout [21.01.2009 14:31]: > Warner, > > the session seems to be expiring after ( 10-20) and nagios asks for > reauthentication, ( we are using RSA passwords that change frequently so the > LDAPCAche does not apply in our case ) are you using mod_auth_ldap ? > what are the parameters you use in the httpd.conf for LDAP Cache settings > Mohammed, I hope I get them all: AuthName "LDAP Auth" AuthType Basic AuthBasicProvider ldap files AuthLDAPURL "ldap://ldap.domain.tld/ou=people,dc=domain,dc=tld?uid?sub" AuthLDAPAuthoritative off AuthBasicAuthoritative On require valid-user AuthUserFile /some/file I do not see any special parameter about LDAP cache or SSL cache (we use SSL, we don't want to pass the words unciphered via network ;-)). We're running apache 2.2.3 that loads the modules "suexec authz_host actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif status userdir asis imagemap ldap authnz_ldap ssl php5 perl authz_default rewrite". Regards, Werner > > > > > > On Wed, Jan 21, 2009 at 16:22, Werner Flamme wrote: > >> Mohammed Al-Kout [21.01.2009 14:00]: >>> Hello, >>> >>> i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local >>> userfile for sometime, recently i switched to LDAP authentication with >>> mod_auth_ldap its working fine, the problem is i'm getting the >>> authentication popup every 10-20 mins, is there a way to stop this or set >> a >>> longer interval ? i'm not sure what is causing this popup to reappear ( >>> LDAP , Apache or Nagios ) if anyone has an idea please lemme know >> Neither of them. We use LDAP auth for years, and there are no such popups. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Wed Jan 21 16:12:29 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Wed, 21 Jan 2009 10:12:29 -0500 Subject: Slightly-OT - Notification management In-Reply-To: References: Message-ID: Ugo Bellavance a ?crit : > Julian Hein a ?crit : >> Hi, >> >> Ugo Bellavance wrote on 13.05.08 14:19: >> >>>> Multitech has Modems with Ethernet Interfaces. You just connect them to the >>>> Network and send a text oder sms via Telnet commands: >>>> http://www.multitech.com/PRODUCTS/Categories/Device_Networking/ >>>> >>>> If you can get a mobile phone plan with unlimited sms/text in Canada, you >>>> can send as many txt as you can get through and build your own email2sms >>>> gateway. >>> Wow, thanks. Have you built one? Is there a Linux package that exist >>> to send the telnet commands? >> No, we did not build a gateway, but we use smsservertools >> (http://smstools.meinemullemaus.de/) together with Nagios and Multitech >> Modems to send urgent notification on weekends. Works pretty good and we >> wrote a Nagios Plugin to monitor the Modem itself: >> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2607.html;d=1 > > I finally have time to play with that... do you know of a tutorial > showing how to configure the modem and the software? By the way, its looks like they now have an all-in one product to perform this: http://www.multitech.com/PRODUCTS/Families/SMSFinder/ Too bad I already ordered my modem. Regards, ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 21 16:11:51 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Jan 2009 09:11:51 -0600 Subject: Hostgroup Issue In-Reply-To: <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> References: <84836290D5AD43418C40DCF0C4A54ED38E38F6@kogex02.pmpl.co.uk> <4b008f7d0901210559l14989b46u9d11a8f4f17b6b01@mail.gmail.com> Message-ID: <6A4FF0C7-4CE7-4370-8CA1-0FD61CD44722@ena.com> On Jan 21, 2009, at 7:59 AM, Alex Dehaini wrote: > Deborah, > > Here is the output of /usr/local/nagios/bin/nagios -v /usr/local/ > nagios/etc/nagios.cfg on my server > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the pre- > flight check > > I have reloaded nagios with hostgroup.cfg using > > /etc/init.d/nagios reload > > I still don't understand what is happening. Are the files that you are editing included as a cfg_file (or cfg_dir) in nagios.cfg? If you remove the host/service definition, does nagios - v show the reduced number of hosts/services? Are the new hosts shown as associated with the hostgroup in objects.cache? Is the user you are logged in as listed as a contact for those hosts? Do you have multiple nagios daemons running at the same time? Have you tried enabling debug mode to make sure that the daemon is reading everything you think it is? -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 k_zamri at kannal.com.my Wed Jan 21 16:17:43 2009 From: k_zamri at kannal.com.my (Khairuzzamri) Date: Wed, 21 Jan 2009 23:17:43 +0800 Subject: Still cannot access nagios page Message-ID: <42E0EBDA5FC04904BC461F6F9A5A592D@manutd> Hi everyone, I'm still stuck at the authentication popup. I cannot login as even if I'm providing the correct username and password the authentication popup will still reappear. I have done: 1. 'make install-init' 2. have copy '/etc/httpd/conf.d/nagios.conf' content into '/etc/httpd/conf/httpd.conf' nagios.conf content: ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios "/usr/local/nagios/share" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user 3. create 2 .htaccess file in both '/usr/local/nagios/sbin' and '/usr/local/nagios/share' .htaccess content: AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user I'm using Redhat 9 as O/S, nagios 3.0.3.tar.gz and nagios-plugins-1.4.12.tar.gz.Please help identify my problem. Any suggestion is highly appreciated. Thanks & regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 tgwilt at suite224.net Wed Jan 21 15:18:06 2009 From: tgwilt at suite224.net (Tom Gwilt) Date: Wed, 21 Jan 2009 09:18:06 -0500 Subject: check_dns with check_nrpe issue Message-ID: <49772E9E.2060301@suite224.net> Hello, Obligatory preface - I have searched the FAQ and other sources for the answer with little success: OS - server --> Ubuntu 8.1 OS - client --> FBSD6.1 nrpe (server & client) --> 2.8.1 nagios version 3.0.2 I am trying to check the dns process on our secondary dns server using the following from the monitoring host: /usr/local/nagios/libexec/check_nrpe -H 72.2.95.6 -c check_dns -H mail.suite224.net -s 72.2.95.6 The response is: NRPE: Command 'check_dns' not defined The check_dns command is defined on the secondary server in the commands.cfg file as: define command{ command_name check_dns command_line $USER1$/check_dns -H www.suite224.net -s localhost } I can execute the check_dns command locally on gypsy: gypsy# /usr/local/nagios/libexec/check_dns -H mail.suite224.net -s localhost DNS OK: 1.014 seconds response time. mail.suite224.net returns 72.2.95.2|time=1.013970s;;;0.000000 BUT - it seems to not work with nrpe: gypsy# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_dns NRPE: Command 'check_dns' not defined What is annoying is that I am able to use the check_nrpe/check_dns combination with success on our primary dns server. What am I doing wrong? Thanks, Tom Gwilt ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Sebastian.Ries at dtnet.de Wed Jan 21 16:49:25 2009 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Wed, 21 Jan 2009 16:49:25 +0100 Subject: check_dns with check_nrpe issue In-Reply-To: <49772E9E.2060301@suite224.net> References: <49772E9E.2060301@suite224.net> Message-ID: <1232552965.9557.17.camel@bofh.dtnet.de> HI > /usr/local/nagios/libexec/check_nrpe -H 72.2.95.6 -c check_dns -H > mail.suite224.net -s 72.2.95.6 > > The response is: NRPE: Command 'check_dns' not defined > > The check_dns command is defined on the secondary server in the > commands.cfg file as: > define command{ > command_name check_dns > command_line $USER1$/check_dns -H www.suite224.net -s localhost > } check_dns has to be defined in nrpe.cfg on 72.2.95.6 (and check_nrpe needs another syntax) Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Wed Jan 21 17:10:59 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 21 Jan 2009 10:10:59 -0600 Subject: Still cannot access nagios page In-Reply-To: <42E0EBDA5FC04904BC461F6F9A5A592D@manutd> References: <42E0EBDA5FC04904BC461F6F9A5A592D@manutd> Message-ID: If you are using Redhat, I would strongly suggest installing Nagios and associated plugins via Redhat yum repository. With that said, did you actually add a user to the htpasswd.users file? James Moseley "Khairuzzamri" To "Nagios Users Mailinglist" 01/21/2009 09:17 cc Subject [Nagios-users] Still cannot access nagios page Hi everyone, I'm still stuck at the authentication popup. I cannot login as even if I'm providing the correct username and password the authentication popup will still reappear. I have done: 1. 'make install-init' 2. have copy '/etc/httpd/conf.d/nagios.conf' content into '/etc/httpd/conf/httpd.conf' nagios.conf content: ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios "/usr/local/nagios/share" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user 3. create 2 .htaccess file in both '/usr/local/nagios/sbin' and '/usr/local/nagios/share' .htaccess content: AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user I'm using Redhat 9 as O/S, nagios 3.0.3.tar.gz and nagios-plugins-1.4.12.tar.gz. Please help identify my problem. Any suggestion is highly appreciated. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 paul.weaver at bbc.co.uk Wed Jan 21 17:52:52 2009 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Wed, 21 Jan 2009 16:52:52 -0000 Subject: Still cannot access nagios page In-Reply-To: <42E0EBDA5FC04904BC461F6F9A5A592D@manutd> References: <42E0EBDA5FC04904BC461F6F9A5A592D@manutd> Message-ID: I think the .htaccess files will be ignored, your directory stanza: > Directory "/usr/local/nagios/sbin" sets > AllowOverride None Having said that, it should work -- does the apache error log show anything? What are the permissions on /usr/local/nagios/etc/htpasswd.users ? -- In a world without walls and fences, who needs windows and gates? Paul Weaver Systems Development Engineer News Production Facilities, BBC News ________________________________ From: Khairuzzamri [mailto:k_zamri at kannal.com.my] Sent: 21 January 2009 15:18 To: Nagios Users Mailinglist Subject: [Nagios-users] Still cannot access nagios page Hi everyone, I'm still stuck at the authentication popup. I cannot login as even if I'm providing the correct username and password the authentication popup will still reappear. I have done: 1. 'make install-init' 2. have copy '/etc/httpd/conf.d/nagios.conf' content into '/etc/httpd/conf/httpd.conf' nagios.conf content: ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios "/usr/local/nagios/share" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user 3. create 2 .htaccess file in both '/usr/local/nagios/sbin' and '/usr/local/nagios/share' .htaccess content: AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user I'm using Redhat 9 as O/S, nagios 3.0.3.tar.gz and nagios-plugins-1.4.12.tar.gz. Please help identify my problem. Any suggestion is highly appreciated. Thanks & regards. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Wed Jan 21 19:51:51 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 21 Jan 2009 11:51:51 -0700 Subject: Monitor Email... Message-ID: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> We are working on migrating off of Sitescope... ... Anyways We have almost got all of the services working, but I have not found one yet to replace: "External Email Loop Monitor" Here are the details of this monitor: "The SiteScope Mail Monitor checks a Mail Server via the network. It verifies that the mail server is accepting requests, and also verifies that a message can be sent and retrieved. It does this by sending a standard mail message using SMTP and then retrieving that same message via a POP user account. Each message that SiteScope sends includes a unique key which it checks to insure that it does not retrieve the wrong message and return a false OK reading. If SiteScope is unable to complete the entire loop it generates an error message. Each time the Mail Monitor runs, it returns a statusand writes it in the /SiteScope/logs/SiteScope.logfile. It also writes the total time it takes to send and receive the mail message in the log file." Anyone know of a current monitor to replace this? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jmoseley at corp.xanadoo.com Wed Jan 21 20:36:24 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 21 Jan 2009 13:36:24 -0600 Subject: Monitor Email... In-Reply-To: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> References: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> Message-ID: You're probably going to have to write this yourself. Sounds like an excellent opportunity for a perl/expect plugin. ;-) James Moseley Matt Nelson To Nagios Users Mailinglist 01/21/2009 12:51 cc Subject [Nagios-users] Monitor Email... We are working on migrating off of Sitescope... ... Anyways We have almost got all of the services working, but I have not found one yet to replace: "External Email Loop Monitor" Here are the details of this monitor: "The SiteScope Mail Monitor checks a Mail Server via the network. It verifies that the mail server is accepting requests, and also verifies that a message can be sent and retrieved. It does this by sending a standard mail message using SMTP and then retrieving that same message via a POP user account. Each message that SiteScope sends includes a unique key which it checks to insure that it does not retrieve the wrong message and return a false OK reading. If SiteScope is unable to complete the entire loop it generates an error message. Each time the Mail Monitor runs, it returns a status and writes it in the /SiteScope/logs/SiteScope.log file. It also writes the total time it takes to send and receive the mail message in the log file." Anyone know of a current monitor to replace this? ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 21 21:30:10 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Jan 2009 14:30:10 -0600 Subject: Monitor Email... In-Reply-To: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> References: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> Message-ID: <6A41E14C-CAB5-45E1-B191-EBDDD8CEAFB1@ena.com> On Jan 21, 2009, at 12:51 PM, Matt Nelson wrote: > We are working on migrating off of Sitescope... here>... > > Anyways We have almost got all of the services working, but I have > not found one yet to replace: > > "External Email Loop Monitor" > Anyone know of a current monitor to replace this? > There's one in the plugins distribution. nagios-plugins/contrib/check_email_loop.pl check_email_loop.pl check_email_loop 1.1 Nagios Plugin - Real check of a E-Mail system This script sends a mail with a specific id in the subject via an given smtp-server to a given email-adress. When the script is run again, it checks for this Email (with its unique id) on a given pop3 account and sends another mail. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 MNelson at transdyn.com Wed Jan 21 21:08:42 2009 From: MNelson at transdyn.com (Marty Nelson) Date: Wed, 21 Jan 2009 12:08:42 -0800 Subject: Really dumb question...Linux Client? Message-ID: Hi all. I have what's probably as simple of a question as there is. I have Nagios running on a dedicated machine, and so far it's monitoring all of my Windows server, switches and printers. What I have yet to figure out is how to monitor my Linux servers. Currently it's monitoring itself, but that's about the extent of the Linux monitoring ;p I feel like I've looked all over the web for an answer and have yet to come across one, so I'm hoping you kind folks can help. I'm a Linux noob, but was able to get Nagios running and monitoring what it's currently doing, but could really use some help with the Linux monitoring side of things. Any help would be greatly appreciated. -Marty -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 matt at frozenatom.com Wed Jan 21 21:44:09 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 21 Jan 2009 13:44:09 -0700 Subject: Monitor Email... In-Reply-To: <6A41E14C-CAB5-45E1-B191-EBDDD8CEAFB1@ena.com> References: <148f6bb30901211051r3a5c51ffu96ae1ac62a910b6a@mail.gmail.com> <6A41E14C-CAB5-45E1-B191-EBDDD8CEAFB1@ena.com> Message-ID: <148f6bb30901211244mff584e9q5a73bad1214fc3a2@mail.gmail.com> Thanks all for your comments, I'll start trying some of these out! I'm hoping to be off of Sitescope by the end of the month. I can almost remember what it is like to get through a night without false alerts :) On Wed, Jan 21, 2009 at 1:30 PM, Marc Powell wrote: > > On Jan 21, 2009, at 12:51 PM, Matt Nelson wrote: > > > We are working on migrating off of Sitescope... > here>... > > > > Anyways We have almost got all of the services working, but I have > > not found one yet to replace: > > > > "External Email Loop Monitor" > > > Anyone know of a current monitor to replace this? > > > There's one in the plugins distribution. > > nagios-plugins/contrib/check_email_loop.pl > > > check_email_loop.pl > check_email_loop 1.1 Nagios Plugin - Real check of a E-Mail system > > This script sends a mail with a specific id in the subject via an given > smtp-server to a given email-adress. When the script is run again, it > checks > for this Email (with its unique id) on a given pop3 account and sends > another mail. > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ssimmons at cymfony.com Wed Jan 21 21:44:38 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 21 Jan 2009 15:44:38 -0500 Subject: Really dumb question...Linux Client? In-Reply-To: References: Message-ID: <4881ECF1AB752843908A20CEE07A8EB10D5328@buf-ex01.cymfony.com> NRPE http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe From: Marty Nelson [mailto:MNelson at transdyn.com] Sent: Wednesday, January 21, 2009 3:09 PM To: Nagios Users Mailinglist Subject: [Nagios-users] Really dumb question...Linux Client? Hi all. I have what's probably as simple of a question as there is. I have Nagios running on a dedicated machine, and so far it's monitoring all of my Windows server, switches and printers. What I have yet to figure out is how to monitor my Linux servers. Currently it's monitoring itself, but that's about the extent of the Linux monitoring ;p I feel like I've looked all over the web for an answer and have yet to come across one, so I'm hoping you kind folks can help. I'm a Linux noob, but was able to get Nagios running and monitoring what it's currently doing, but could really use some help with the Linux monitoring side of things. Any help would be greatly appreciated. -Marty -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Wed Jan 21 22:38:05 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Jan 2009 15:38:05 -0600 Subject: Really dumb question...Linux Client? In-Reply-To: References: Message-ID: <0B2298F2-0C98-49D2-9F34-3AAB4C55C0D9@ena.com> On Jan 21, 2009, at 2:08 PM, Marty Nelson wrote: > Hi all. > > I have what?s probably as simple of a question as there is. I have > Nagios running on a dedicated machine, and so far it?s monitoring > all of my Windows server, switches and printers. What I have yet to > figure out is how to monitor my Linux servers. Currently it?s > monitoring itself, but that?s about the extent of the Linux > monitoring ;p > > I feel like I?ve looked all over the web for an answer and have yet > to come across one, so I?m hoping you kind folks can help. I?m a > Linux noob, but was able to get Nagios running and monitoring what > it?s currently doing, but could really use some help with the Linux > monitoring side of things. While not fully fleshed out, the Nagios documentation does specifically talk about this and gives you some pointers. It's always a good place to look when you have questions. http://nagios.sourceforge.net/docs/3_0/monitoring-linux.html Essentially there are three common ways - -active checks from the nagios machine using NRPE to run plugins living on the remote host -active checks from the nagios machine using check_by_ssh (configured with authorized_keys access on the remote host) to run plugins living on the remote host -passive checks with NSCA. plugins on the remote host are run out of cron or some other method and their results sent to the nagios machine using send_nsca. I use all three in various situations. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 owen.m.lagarde at usace.army.mil Thu Jan 22 03:21:55 2009 From: owen.m.lagarde at usace.army.mil (Owen LaGarde) Date: Wed, 21 Jan 2009 20:21:55 -0600 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: References: Message-ID: <1232590915.5458.443.camel@gilgamesh.erdc.hpc.mil> I essentially want to disable only notifications, only when a specific service check fails, only for services inheriting a specific template. And I'm lazy, and don't want to double the size of my config for this one function. I'm using nagios 3.0.2 and nagios-plugins 1.4.12 with a large (>1000 hosts/services) configuration. Most (800+) of the services use a "check_remote" custom plugin to tunnel network calls [ie., to plugins on other hosts] within kerberos authenticated and encrypted sessions. That kerberos activity requires a ticket cache containing a TGT; said cache is maintained by a custom event broker module and said TGT's presence is monitored by a service definition referencing a custom check_krbtgt plugin. This has worked great so far -- no race conditions, clean start/restart/refresh cycles for the cache and TGT, scales well, etc. For a number of policy reasons all service definitions use active checks. When the TGT check fails it logically follows that all service checks using the check_remote plugin have or are about to fail. This is desirable behavior -- depending on the nature of the kerberos TGT problem there are a number of check_remote failure messages and these need to be captured in the event log, so I *don't* want to block *any* checks from running. But... If it's the TGT check that's failed then the notifications for everything except the TGT failure are inappropriate and should be blocked. In effect I want to cause a specific service check's failure to disable notifications for a large (800+) number of other service checks but I don't want to nearly double the size of the config tree and have that much more text to wade through when maintaining the nagios configuration. Remember, I need the checks that are about to fail because of the TGT failure to go on and run, and fail, and log their events and perfdata. It's just the notifications that should be stopped, and only then if the originating service "use"-es the remote-active-service template. Anybody else doing this? -- Sincerely, Owen LaGarde Senior Systems Administrator Owen.M.LaGarde at usace.army.mil 1-800-522-6937 x4879 Engineering Research and Development Center attn: CEERD-IH-C (Owen LaGarde) 3909 Halls Ferry Road Vicksburg, MS 39180-6199 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Thu Jan 22 04:18:42 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Wed, 21 Jan 2009 22:18:42 -0500 Subject: Acknowledgement Escalations Message-ID: <4977E592.1050506@iweb.com> Hi, Here is the situation: Somebody acknowledges a problem and forget about it. How would you implement an acknowledgement escalation? Or how would you detect such situation where a host/service is down/critical for too long while being acknowledged? -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rijilv at riji.lv Thu Jan 22 06:08:19 2009 From: rijilv at riji.lv (RijilV) Date: Wed, 21 Jan 2009 21:08:19 -0800 Subject: Acknowledgement Escalations In-Reply-To: <4977E592.1050506@iweb.com> References: <4977E592.1050506@iweb.com> Message-ID: <5068c6420901212108oe868d14s9397ecb634dc9a91@mail.gmail.com> 2009/1/21 Mathieu Gagn? > Hi, > > Here is the situation: > Somebody acknowledges a problem and forget about it. > > How would you implement an acknowledgement escalation? > > Or how would you detect such situation where a host/service is > down/critical for too long while being acknowledged? > > -- > Mathieu > > Mmmm, there are a couple of technology things you could do for this, but the root of this problem is people, not computers. You need to work our a process where people aren't ack'ing things just so they can fall back asleep. I personally suggest having nagios create a ticket with whatever ticketing system you use (you use one right?!) so you can track that issue. That and having a 24x7 NOC helps :) Otherwise, write something that takes a look at the status file and find services that are in a non-okay state but acknowledged and have been for however long. I wrote a simple nagios CFG parser that would be able to handle it that's under the GPL at my former company for their Oracle Monitoring: https://code.bluegecko.net/wiki/Monocle. There is another one that will probably work somehwere on cpan. I would probably write that program to un-acknowledge things as well as alarming. If it just alarmed, someone might acknowledge it and do nothing about it. (since that's the problem you're having) You can do the un-acknowldeging though the nagios cmd file: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=116 http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=117 You can get the location of the command file from the macro $COMMANDFILE$. Cheers, .r' -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Thu Jan 22 06:26:31 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Thu, 22 Jan 2009 00:26:31 -0500 Subject: Acknowledgement Escalations In-Reply-To: <5068c6420901212108oe868d14s9397ecb634dc9a91@mail.gmail.com> References: <4977E592.1050506@iweb.com> <5068c6420901212108oe868d14s9397ecb634dc9a91@mail.gmail.com> Message-ID: <49780387.1030508@iweb.com> Hi, First, thanks for your time and input. RijilV wrote: > 2009/1/21 Mathieu Gagn? > > > Here is the situation: > Somebody acknowledges a problem and forget about it. > How would you implement an acknowledgement escalation? > > Mmmm, there are a couple of technology things you could do for this, but > the root of this problem is people, not computers. Yha. I know, you know, our managers know. However we just can't beat them for making mistakes or being occupied by other problems. :) > You need to work our > a process where people aren't ack'ing things just so they can fall back > asleep. I personally suggest having nagios create a ticket with > whatever ticketing system you use (you use one right?!) so you can track > that issue. That and having a 24x7 NOC helps :) Yes. We use request tracker (RT) and I personally passed about 7 days working on the integration of Nagios to RT and our internal customer database. So basically: 1) Problem: New Ticket 2) Acknowledgement: New comment about it 3) Recovery: Comment + Status=Resolved And implemented another escalation system within RT: 1) No update for x minutes/hours, the manager gets informed about it. 2) No answer from the manager, his manager gets informed, etc. until the Pope gets informed. And if they (the ones that forget) would try to close the ticket, a comment is added telling them the problem is still not solved from Nagios perspective and reopen the ticket if it's the case. > I would probably write that program to un-acknowledge things as well as > alarming. We tough about it. However our customer would start to receive (again) problem alerts which is bad. I mean, we told him we acknowledged the problem, we just can't tell him the problem is still going on after 1h. :) Anyway, I though there was better way to deal with it within Nagios. But relying on an external ticketing system was probably the best solution as per your suggestion. Should we be able to set hostescalation/serviceescalation even if the problem is acknowledged? But on the other hand, when will it end? :) Any other ideas or opinions? -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 werner.flamme at ufz.de Thu Jan 22 09:41:15 2009 From: werner.flamme at ufz.de (Werner Flamme) Date: Thu, 22 Jan 2009 09:41:15 +0100 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: <49772178.6000207@ufz.de> <49773630.6070506@ufz.de> Message-ID: <4978312B.4090106@ufz.de> Mohammed Al-Kout [22.01.2009 05:06]: > Warner, > > in my setup i'm not using authz, but i noticed something you are using " > AuthUserFile /some/file " why is it required if the users are on ldap ? Mohammed, we have some accounts not stored in LDAP ("emergency", "srvadm"). So this is our way to combine LDAP and local accounts. Regards, Werner > > > On Wed, Jan 21, 2009 at 17:50, Werner Flamme wrote: > >> Mohammed Al-Kout [21.01.2009 14:31]: >>> Warner, >>> >>> the session seems to be expiring after ( 10-20) and nagios asks for >>> reauthentication, ( we are using RSA passwords that change frequently so >> the >>> LDAPCAche does not apply in our case ) are you using mod_auth_ldap ? >>> what are the parameters you use in the httpd.conf for LDAP Cache settings >>> >> Mohammed, >> >> I hope I get them all: >> AuthName "LDAP Auth" >> AuthType Basic >> AuthBasicProvider ldap files >> AuthLDAPURL "ldap://ldap.domain.tld/ou=people,dc=domain,dc=tld?uid?sub" >> AuthLDAPAuthoritative off >> AuthBasicAuthoritative On >> require valid-user >> AuthUserFile /some/file >> >> I do not see any special parameter about LDAP cache or SSL cache (we use >> SSL, we don't want to pass the words unciphered via network ;-)). >> >> We're running apache 2.2.3 that loads the modules "suexec authz_host >> actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm >> autoindex cgi dir env expires include log_config mime negotiation >> setenvif status userdir asis imagemap ldap authnz_ldap ssl php5 perl >> authz_default rewrite". >> >> Regards, >> Werner >> >>> >>> >>> >>> >>> On Wed, Jan 21, 2009 at 16:22, Werner Flamme >> wrote: >>>> Mohammed Al-Kout [21.01.2009 14:00]: >>>>> Hello, >>>>> >>>>> i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local >>>>> userfile for sometime, recently i switched to LDAP authentication with >>>>> mod_auth_ldap its working fine, the problem is i'm getting the >>>>> authentication popup every 10-20 mins, is there a way to stop this or >> set >>>> a >>>>> longer interval ? i'm not sure what is causing this popup to reappear >> ( >>>>> LDAP , Apache or Nagios ) if anyone has an idea please lemme know >>>> Neither of them. We use LDAP auth for years, and there are no such >> popups. >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 >> > -- Werner Flamme, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-1921 - Fax (0341) 235-451921 Information nach ?? 37a HGB, 35a GmbHG: Sitz der Gesellschaft: Leipzig Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mjkout at gmail.com Thu Jan 22 09:46:11 2009 From: mjkout at gmail.com (Mohammed Al-Kout) Date: Thu, 22 Jan 2009 11:46:11 +0300 Subject: Nagios - LDAP/RSA authentication In-Reply-To: <4978312B.4090106@ufz.de> References: <49772178.6000207@ufz.de> <49773630.6070506@ufz.de> <4978312B.4090106@ufz.de> Message-ID: i will try to set the parameters same as yours and try it Best Regards -- Mohammed Al-Kout On Thu, Jan 22, 2009 at 11:41, Werner Flamme wrote: > Mohammed Al-Kout [22.01.2009 05:06]: > > Warner, > > > > in my setup i'm not using authz, but i noticed something you are using " > > AuthUserFile /some/file " why is it required if the users are on ldap ? > > Mohammed, > > we have some accounts not stored in LDAP ("emergency", "srvadm"). So > this is our way to combine LDAP and local accounts. > > Regards, > Werner > > > > > > > On Wed, Jan 21, 2009 at 17:50, Werner Flamme > wrote: > > > >> Mohammed Al-Kout [21.01.2009 14:31]: > >>> Warner, > >>> > >>> the session seems to be expiring after ( 10-20) and nagios asks for > >>> reauthentication, ( we are using RSA passwords that change frequently > so > >> the > >>> LDAPCAche does not apply in our case ) are you using mod_auth_ldap ? > >>> what are the parameters you use in the httpd.conf for LDAP Cache > settings > >>> > >> Mohammed, > >> > >> I hope I get them all: > >> AuthName "LDAP Auth" > >> AuthType Basic > >> AuthBasicProvider ldap files > >> AuthLDAPURL "ldap://ldap.domain.tld/ou=people,dc=domain,dc=tld?uid?sub" > >> AuthLDAPAuthoritative off > >> AuthBasicAuthoritative On > >> require valid-user > >> AuthUserFile /some/file > >> > >> I do not see any special parameter about LDAP cache or SSL cache (we use > >> SSL, we don't want to pass the words unciphered via network ;-)). > >> > >> We're running apache 2.2.3 that loads the modules "suexec authz_host > >> actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm > >> autoindex cgi dir env expires include log_config mime negotiation > >> setenvif status userdir asis imagemap ldap authnz_ldap ssl php5 perl > >> authz_default rewrite". > >> > >> Regards, > >> Werner > >> > >>> > >>> > >>> > >>> > >>> On Wed, Jan 21, 2009 at 16:22, Werner Flamme > >> wrote: > >>>> Mohammed Al-Kout [21.01.2009 14:00]: > >>>>> Hello, > >>>>> > >>>>> i'm running Nagios 3.0.1 on Apache 2.0.52 its been running on a local > >>>>> userfile for sometime, recently i switched to LDAP authentication > with > >>>>> mod_auth_ldap its working fine, the problem is i'm getting the > >>>>> authentication popup every 10-20 mins, is there a way to stop this or > >> set > >>>> a > >>>>> longer interval ? i'm not sure what is causing this popup to > reappear > >> ( > >>>>> LDAP , Apache or Nagios ) if anyone has an idea please lemme know > >>>> Neither of them. We use LDAP auth for years, and there are no such > >> popups. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> SourcForge Community > >> SourceForge wants to tell your story. > >> http://p.sf.net/sfu/sf-spreadtheword > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users 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 > >> > > > > > -- > Werner Flamme, Abt. WKDV > Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ > Permoserstr. 15 - 04318 Leipzig > Tel.: (0341) 235-1921 - Fax (0341) 235-451921 > Information nach ?? 37a HGB, 35a GmbHG: > Sitz der Gesellschaft: Leipzig > Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 > Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel > Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch > Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 assaf.flatto at ssp-intl.com Thu Jan 22 10:49:42 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 22 Jan 2009 09:49:42 +0000 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: <1232590915.5458.443.camel@gilgamesh.erdc.hpc.mil> References: Message-ID: <200901220949.42234.assaf.flatto@ssp-intl.com> Have you looked at service dependencies ? http://nagios.sourceforge.net/docs/3_0/dependencies.html It sounds like this is what you need. Assaf On Thursday 22 January 2009 02:21:55 Owen LaGarde wrote: > I essentially want to disable only notifications, only when a specific > service check fails, only for services inheriting a specific template. > And I'm lazy, and don't want to double the size of my config for this > one function. > > I'm using nagios 3.0.2 and nagios-plugins 1.4.12 with a large (>1000 > hosts/services) configuration. Most (800+) of the services use a > "check_remote" custom plugin to tunnel network calls [ie., to plugins on > other hosts] within kerberos authenticated and encrypted sessions. That > kerberos activity requires a ticket cache containing a TGT; said cache > is maintained by a custom event broker module and said TGT's presence is > monitored by a service definition referencing a custom check_krbtgt > plugin. This has worked great so far -- no race conditions, clean > start/restart/refresh cycles for the cache and TGT, scales well, etc. > For a number of policy reasons all service definitions use active > checks. When the TGT check fails it logically follows that all service > checks using the check_remote plugin have or are about to fail. This is > desirable behavior -- depending on the nature of the kerberos TGT > problem there are a number of check_remote failure messages and these > need to be captured in the event log, so I *don't* want to block *any* > checks from running. > > But... > > If it's the TGT check that's failed then the notifications for > everything except the TGT failure are inappropriate and should be > blocked. In effect I want to cause a specific service check's failure > to disable notifications for a large (800+) number of other service > checks but I don't want to nearly double the size of the config tree and > have that much more text to wade through when maintaining the nagios > configuration. Remember, I need the checks that are about to fail > because of the TGT failure to go on and run, and fail, and log their > events and perfdata. It's just the notifications that should be > stopped, and only then if the originating service "use"-es the > remote-active-service template. > > Anybody else doing this? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Thu Jan 22 13:48:06 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Thu, 22 Jan 2009 18:18:06 +0530 Subject: Using nagios check_http for web based authentication In-Reply-To: References: Message-ID: Hi, Can I do a check on a particular website by supplying the username and password to nagios check_http commandline ? To be clear : Assume that I want to check whether login action happens properly on my website which is www.venu.com . And the login page name is www.venu.com/signup.do . This form would take username and password and send a POST request to www.venu.com/autorize.do. How will i check this in nagios ? If it had been GET method, I would have done that. But in my case, it is POST method. Please help me out. Thanks Venu This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 venugopals at aztecsoft.com Thu Jan 22 12:50:44 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Thu, 22 Jan 2009 17:20:44 +0530 Subject: Using nagios check_http for web based authentication Message-ID: Hi, Can I do a check on a particular website by supplying the username and password to nagios check_http commandline ? To be clear : Assume that I want to check whether login action happens properly on my website which is www.venu.com . And the login page name is www.venu.com/signup.do . This form would take username and password and send a POST request to www.venu.com/autorize.do. How will i check this in nagios ? If it had been GET method, I would have done that. But in my case, it is POST method. Please help me out. Thanks Venu This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 treibholz at sozial-inkompetent.de Thu Jan 22 14:45:01 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Thu, 22 Jan 2009 14:45:01 +0100 Subject: time based first_notification_delay Message-ID: <20090122134501.GA7136@umbach-racing.de> Hi, I would like to delay notifications at night for 10 minutes. According to the documentation, first_notification_delay is only possible for service and host objects but not for contacts. I was thinking about using escalations, but they start counting after the last attempt of a check and after the first error like first_notification_delay. Any ideas how to setup my needs. (except changing configuration-files by cron! :-) ) - Klaus -- BOFH excuse #440: Cache miss - please take better aim next time ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 22 14:45:19 2009 From: marc at ena.com (Marc Powell) Date: Thu, 22 Jan 2009 07:45:19 -0600 Subject: Using nagios check_http for web based authentication In-Reply-To: References: Message-ID: <534BD666-6D38-4010-B44F-E88CFDCB87AA@ena.com> On Jan 22, 2009, at 5:50 AM, Venugopal S wrote: > Hi, > > Can I do a check on a particular website by supplying the username > and password to nagios check_http commandline ? > > To be clear : > > Assume that I want to check whether login action happens properly on > my website which is www.venu.com. And the login page name is www.venu.com/signup.do > . This form would take username and password and send a POST > request to www.venu.com/autorize.do. How will i check this in nagios ? > > If it had been GET method, I would have done that. But in my case, > it is POST method Since you're using forms based authentication, use the -P parameter to check_http. $ ./check_http --help [chop] -P, --post=STRING URL encoded http POST data check_http -I -H www.venu.com -u /autorize.do -P "usernamefield=username&passwordfield=password" If you need something more complex than that you might want to search for past posts about use of perl's WWW::Mechanize or Nagios::WebTransact to help create a custom plugin. Note for future readers, if the site uses standard htaccess authentication then '-a username:password' if the format. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Thu Jan 22 14:55:29 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Thu, 22 Jan 2009 19:25:29 +0530 Subject: Using nagios check_http for web basedauthentication In-Reply-To: <534BD666-6D38-4010-B44F-E88CFDCB87AA@ena.com> References: <534BD666-6D38-4010-B44F-E88CFDCB87AA@ena.com> Message-ID: Hi Marc, Thanks for the reply. I am even now vague about how to proceed. Let me tell you the need : I have to open http://ww12.1800flowers.com/signin.do and enter my email(svenugopaal at gmail.com) and password("podhum") in order to login. When I login using the above valid credentials it would take me to the next page or otherwise throw an error. How do I compose the command line for check_http ? Though this looks like a lot of hand holding, I have no other go. Can you please help ? Venu -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 7:15 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Using nagios check_http for web basedauthentication On Jan 22, 2009, at 5:50 AM, Venugopal S wrote: > Hi, > > Can I do a check on a particular website by supplying the username > and password to nagios check_http commandline ? > > To be clear : > > Assume that I want to check whether login action happens properly on > my website which is www.venu.com. And the login page name is www.venu.com/signup.do > . This form would take username and password and send a POST > request to www.venu.com/autorize.do. How will i check this in nagios ? > > If it had been GET method, I would have done that. But in my case, > it is POST method Since you're using forms based authentication, use the -P parameter to check_http. $ ./check_http --help [chop] -P, --post=STRING URL encoded http POST data check_http -I -H www.venu.com -u /autorize.do -P "usernamefield=username&passwordfield=password" If you need something more complex than that you might want to search for past posts about use of perl's WWW::Mechanize or Nagios::WebTransact to help create a custom plugin. Note for future readers, if the site uses standard htaccess authentication then '-a username:password' if the format. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 AHKAPLAN at PARTNERS.ORG Thu Jan 22 15:00:54 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 22 Jan 2009 09:00:54 -0500 Subject: Recommended Plugin for Monitoring iptables In-Reply-To: References: <20090120202641.GF20304@umbach-racing.de> Message-ID: Hi Marc -- Thanks for your reply. I downloaded the script, and I am currently testing it. I had to make one modification within the script: The -S argument is not known by the version, 1.3.8, of iptables on the server in question, so I replaced it with the -L argument. One question to all members who have used the script: Is the script designed to run in the background, or is it simply invoked by Nagios and then closed when it is done running? The reason I ask is I am manually running it, and it does not immediately close. Thanks. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, January 20, 2009 5:05 PM To: nagios-users Mailinglist Subject: Re: [Nagios-users] Recommended Plugin for Monitoring iptables On Jan 20, 2009, at 3:00 PM, Kaplan, Andrew H. wrote: > Hi there -- > > Thanks for your reply. I simply want to ensure that 'iptables -vnL' > comes back with output indicating that firewall rules are in effect. I don't use it but the first hit on google looks promising... http://www.google.com/search?q=nagios+check_iptables "The script does not (and can not) detect "stupid" rules. It's purpose is to ensure that iptables and the configured rules (whatever they may be) are loaded. It is useful to identify situations such as: - forgetting to start iptables at boot - stopping iptables for testing and forgetting to restart - etc Normal condition is where all tables have 1 or more rules. Critical condition is when a table (any table) has 0 rules. " ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 treibholz at sozial-inkompetent.de Thu Jan 22 15:09:47 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Thu, 22 Jan 2009 15:09:47 +0100 Subject: Using nagios check_http for web basedauthentication In-Reply-To: References: <534BD666-6D38-4010-B44F-E88CFDCB87AA@ena.com> Message-ID: <20090122140947.GB7136@umbach-racing.de> On 22/01/09 19:25, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Why did you give us a valid user/password combination? :-) > > When I login using the above valid credentials it would take me to the > next page or otherwise throw an error. > > How do I compose the command line for check_http ? > > Though this looks like a lot of hand holding, I have no other go. > > Can you please help ? > > Venu > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 22, 2009 7:15 PM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] Using nagios check_http for web > basedauthentication > > > On Jan 22, 2009, at 5:50 AM, Venugopal S wrote: > > > Hi, > > > > Can I do a check on a particular website by supplying the username > > and password to nagios check_http commandline ? > > > > To be clear : > > > > Assume that I want to check whether login action happens properly on > > my website which is www.venu.com. And the login page name is > www.venu.com/signup.do > > . This form would take username and password and send a POST > > request to www.venu.com/autorize.do. How will i check this in nagios ? > > > > If it had been GET method, I would have done that. But in my case, > > it is POST method > > Since you're using forms based authentication, use the -P parameter to > check_http. > > $ ./check_http --help > > [chop] > > -P, --post=STRING > URL encoded http POST data > > > check_http -I -H www.venu.com -u /autorize.do -P > "usernamefield=username&passwordfield=password" > > If you need something more complex than that you might want to search > for past posts about use of perl's WWW::Mechanize or > Nagios::WebTransact to help create a custom plugin. > > Note for future readers, if the site uses standard htaccess > authentication then '-a username:password' if the format. > > -- > Marc > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. > The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. > > www.aztecsoft.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- BOFH excuse #184: loop found in loop in redundant loopback ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Thu Jan 22 15:43:12 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Thu, 22 Jan 2009 20:13:12 +0530 Subject: Using nagios check_http for webbasedauthentication In-Reply-To: <20090122140947.GB7136@umbach-racing.de> References: <20090122140947.GB7136@umbach-racing.de> Message-ID: Just like that.. Changed it now anyways :) That apart, please help me out folks as to how I have to go ahead with nagios .. -----Original Message----- From: Klaus Umbach [mailto:treibholz at sozial-inkompetent.de] Sent: Thursday, January 22, 2009 7:40 PM To: Venugopal S Cc: Marc Powell; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On 22/01/09 19:25, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Why did you give us a valid user/password combination? :-) > > When I login using the above valid credentials it would take me to the > next page or otherwise throw an error. > > How do I compose the command line for check_http ? > > Though this looks like a lot of hand holding, I have no other go. > > Can you please help ? > > Venu > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 22, 2009 7:15 PM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] Using nagios check_http for web > basedauthentication > > > On Jan 22, 2009, at 5:50 AM, Venugopal S wrote: > > > Hi, > > > > Can I do a check on a particular website by supplying the username > > and password to nagios check_http commandline ? > > > > To be clear : > > > > Assume that I want to check whether login action happens properly on > > my website which is www.venu.com. And the login page name is > www.venu.com/signup.do > > . This form would take username and password and send a POST > > request to www.venu.com/autorize.do. How will i check this in nagios ? > > > > If it had been GET method, I would have done that. But in my case, > > it is POST method > > Since you're using forms based authentication, use the -P parameter to > check_http. > > $ ./check_http --help > > [chop] > > -P, --post=STRING > URL encoded http POST data > > > check_http -I -H www.venu.com -u /autorize.do -P > "usernamefield=username&passwordfield=password" > > If you need something more complex than that you might want to search > for past posts about use of perl's WWW::Mechanize or > Nagios::WebTransact to help create a custom plugin. > > Note for future readers, if the site uses standard htaccess > authentication then '-a username:password' if the format. > > -- > Marc > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. > The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. > > www.aztecsoft.com > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- BOFH excuse #184: loop found in loop in redundant loopback This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mh+nagios-users at zugschlus.de Thu Jan 22 15:42:09 2009 From: mh+nagios-users at zugschlus.de (Marc Haber) Date: Thu, 22 Jan 2009 15:42:09 +0100 Subject: re-execute an event handler just in case the service stays DOWN Message-ID: <20090122144209.GJ8349@torres.zugschlus.de> Hi, I would like one event handler to be re-executed just in case it failed for the first time. The docs (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you don't want that", but I am fairly confident that I want it in this case. I have a nagios host in a unattended site which generally gets its internet access from the site network. In case of a site network failure, the host needs to dial in to the Internet via modem to be reachable for debugging purposes. The nagios installation monitors a host on the Internet and has an event handler connected with this host which will initiate the dial-up when the "Internet host" goes into a HARD DOWN state. I would like this event handler to be re-executed in case the dial-up connection doesn't come up or goes down _before_ nagios has detected that the "Internet host" is UP again. Is there any way to accomplish this or am I better of with a cronjob which will initiate the dial-up from outside nagios? Any hints will be appreciated., Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 22 16:16:03 2009 From: marc at ena.com (Marc Powell) Date: Thu, 22 Jan 2009 09:16:03 -0600 Subject: Using nagios check_http for web basedauthentication In-Reply-To: References: Message-ID: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sergio.ariel at iris.uh.cu Thu Jan 22 17:18:01 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Thu, 22 Jan 2009 11:18:01 -0500 Subject: Help with visualization. Message-ID: <49789C39.1060102@iris.uh.cu> How can I improve the way Nagios shows items in the web? I have more than 20 items with the same parent, so, their icons appear very close. I need to show icons more separated in the web. Thanks. -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 joe.hartley at retailsolutions.com Thu Jan 22 17:35:44 2009 From: joe.hartley at retailsolutions.com (Joe Hartley) Date: Thu, 22 Jan 2009 08:35:44 -0800 Subject: Checking websites with NTML authentication Message-ID: <580CB599E684764C84C5CCFA64A929B4014E4EFC@EXVBE011-2.exch011.intermedia.net> Has anyone solved the problem of using Nagios to check a website that uses NTML authentication? My Googling keeps bringing me to a suggestion about writing something with curl, but I have zero curl-fu. -- Joe Hartley | Sr. Linux SysAdmin Retail Solutions, Inc. (formerly VeriSign RDS) 40 Sharpe Drive Cranston, RI 02920 joe.hartley at retailsolutions.com +1 401.824.5040 (o) | +1 401.824.5002 (f) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ludse.verhoeven at vopak.com Thu Jan 22 18:05:00 2009 From: ludse.verhoeven at vopak.com (Ludse Verhoeven) Date: Thu, 22 Jan 2009 18:05:00 +0100 Subject: re-execute an event handler just in case the service stays DOWN In-Reply-To: <20090122144209.GJ8349@torres.zugschlus.de> References: <20090122144209.GJ8349@torres.zugschlus.de> Message-ID: Maybe the "is_volatile" option is something for you (see: http://nagios.sourceforge.net/docs/3_0/volatileservices.html) Met vriendelijke groet/with kind regards, Ludse Verhoeven AIX System Engineer T: +31 10 400 2440 F: +31 10 400 2891 E: ludse.verhoeven at vopak.com Vopak Information Services B.V. Trade Register (or local equivalent): 24146892 Visit Address: Westerlaan 10, 3016 CK Rotterdam Postal Address: P.O. Box 863, 3000 AW Rotterdam The Netherlands http://www.vopak.com A Royal Vopak company Marc Haber 22/01/2009 16:17 To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] re-execute an event handler just in case the service stays DOWN Hi, I would like one event handler to be re-executed just in case it failed for the first time. The docs (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you don't want that", but I am fairly confident that I want it in this case. I have a nagios host in a unattended site which generally gets its internet access from the site network. In case of a site network failure, the host needs to dial in to the Internet via modem to be reachable for debugging purposes. The nagios installation monitors a host on the Internet and has an event handler connected with this host which will initiate the dial-up when the "Internet host" goes into a HARD DOWN state. I would like this event handler to be re-executed in case the dial-up connection doesn't come up or goes down _before_ nagios has detected that the "Internet host" is UP again. Is there any way to accomplish this or am I better of with a cronjob which will initiate the dial-up from outside nagios? Any hints will be appreciated., Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 challenger_joseph at yahoo.com.mx Thu Jan 22 20:43:11 2009 From: challenger_joseph at yahoo.com.mx (=?iso-8859-1?Q?Christian_I=F1iguez?=) Date: Thu, 22 Jan 2009 11:43:11 -0800 (PST) Subject: Recommended plugin to monitor Network Message-ID: <288757.86553.qm@web36507.mail.mud.yahoo.com> Hi Guys! Actually I'm working with Nagios and NRPE and they're working very well. Actually I'd like to monitor the Network of a host with Linux. which plugin could help me? Any recommended plugin to do this? Actually using check_icmp Thanks!! __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dale at chatham.org Thu Jan 22 20:55:20 2009 From: dale at chatham.org (Dale J. Chatham) Date: Thu, 22 Jan 2009 13:55:20 -0600 Subject: check_extcmd_ucd error returns error: ERROR: get_table: Counter length too long (5 bytes) Message-ID: <4978CF28.5070402@chatham.org> check_extcmd_ucd 1.1, Copyright (C) 2007 Herbert Stadler nagios is running on: SunOS xxxxxxxxxx 5.10 Generic_138888-03 sun4v sparc SUNW,T5240 The error appears to be coming from Net::SNMP. I've seen some discussion about this, but never a fix. Any ideas? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Thu Jan 22 22:05:03 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Thu, 22 Jan 2009 15:05:03 -0600 Subject: using NPRE to monitor pbs_mom. Error: "NRPE: Unable to read output" Message-ID: I'm a bit confused about how exactly to add stuff with NRPE to monitor local services on my remote hosts. I got the basics out of the way and I can already monitor the easy stuff like users, procs, swap etc. More ambitiously, I wanted to monitor the status of my "pbs_mom" (Torque Scheduler daemon) on each node in my cluster. I found the script check_pbsmom.sh on the NagiosExchange (snippet below) and copied it to my /usr/local/nagios/libexec. Then I added this line to my nrpe.cfg command[check_pbsmom]=/usr/local/nagios/libexec/check_pbsmom But then I don't seem to have much success. remotehost>/usr/local/nagios/libexec/check_nrpe -H localhost -c check_pbsmom NRPE: Unable to read output If I just run the shell script though it seems to be working /usr/local/nagios/libexec/check_pbsmom.sh PBS_MOM OK: Daemon is running. Host is listening. What am I doing wrong here! I'm still a bit confused about the interaction between command.cfg on the monitoring machine and the nrpe.cfg on the remote host. Any advice? -- Rahul #!/bin/bash # SYNOPSIS # check_pbsmom [] [] ... # # DESCRIPTION # This NAGIOS plugin checks whether: 1) pbs_mom is running and # 2) the host is listening on the given port(s). If no port # number is specified TCP ports 15002 and 15003 are checked. # # AUTHOR # Wayne.Mallett at jcu.edu.au OK=0 WARN=1 CRITICAL=2 PATH="/bin:/sbin:/usr/bin:/usr/sbin" # Default listening ports are TCP 15004 and 42559. if [ $# -lt 1 ] ; then list="15002 15003" else list="$*" fi if [ `ps -C pbs_mom | wc -l` -lt 2 ]; then echo "PBS_MOM CRITICAL: Daemon is NOT running!" exit $CRITICAL else for port in $list ; do if [ `netstat -ln | grep -E "tcp.*:$port" | wc -l` -lt 1 ]; then echo "PBS_MOM CRITICAL: Host is NOT listening on TCP port $port!" exit $CRITICAL fi done echo "PBS_MOM OK: Daemon is running. Host is listening." exit $OK fi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ssimmons at cymfony.com Thu Jan 22 22:18:42 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Thu, 22 Jan 2009 16:18:42 -0500 Subject: using NPRE to monitor pbs_mom. Error: "NRPE: Unableto read output" In-Reply-To: References: Message-ID: <4881ECF1AB752843908A20CEE07A8EB10D536B@buf-ex01.cymfony.com> The filename you specified is check_pbsmom.sh though your command shows check_pbsmom From: Rahul Nabar [mailto:rpnabar at gmail.com] Sent: Thursday, January 22, 2009 4:05 PM To: Nagios-Users Mailinglist Subject: [Nagios-users] using NPRE to monitor pbs_mom. Error: "NRPE: Unableto read output" I'm a bit confused about how exactly to add stuff with NRPE to monitor local services on my remote hosts. I got the basics out of the way and I can already monitor the easy stuff like users, procs, swap etc. More ambitiously, I wanted to monitor the status of my "pbs_mom" (Torque Scheduler daemon) on each node in my cluster. I found the script check_pbsmom.sh on the NagiosExchange (snippet below) and copied it to my /usr/local/nagios/libexec. Then I added this line to my nrpe.cfg command[check_pbsmom]=/usr/local/nagios/libexec/check_pbsmom But then I don't seem to have much success. remotehost>/usr/local/nagios/libexec/check_nrpe -H localhost -c check_pbsmom NRPE: Unable to read output If I just run the shell script though it seems to be working /usr/local/nagios/libexec/check_pbsmom.sh PBS_MOM OK: Daemon is running. Host is listening. What am I doing wrong here! I'm still a bit confused about the interaction between command.cfg on the monitoring machine and the nrpe.cfg on the remote host. Any advice? -- Rahul #!/bin/bash # SYNOPSIS # check_pbsmom [] [] ... # # DESCRIPTION # This NAGIOS plugin checks whether: 1) pbs_mom is running and # 2) the host is listening on the given port(s). If no port # number is specified TCP ports 15002 and 15003 are checked. # # AUTHOR # Wayne.Mallett at jcu.edu.au OK=0 WARN=1 CRITICAL=2 PATH="/bin:/sbin:/usr/bin:/usr/sbin" # Default listening ports are TCP 15004 and 42559. if [ $# -lt 1 ] ; then list="15002 15003" else list="$*" fi if [ `ps -C pbs_mom | wc -l` -lt 2 ]; then echo "PBS_MOM CRITICAL: Daemon is NOT running!" exit $CRITICAL else for port in $list ; do if [ `netstat -ln | grep -E "tcp.*:$port" | wc -l` -lt 1 ]; then echo "PBS_MOM CRITICAL: Host is NOT listening on TCP port $port!" exit $CRITICAL fi done echo "PBS_MOM OK: Daemon is running. Host is listening." exit $OK fi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 epearce at amberpoint.com Thu Jan 22 23:26:59 2009 From: epearce at amberpoint.com (Eric Pearce) Date: Thu, 22 Jan 2009 14:26:59 -0800 Subject: Windows disk health monitoring with smartmontoolsl/NSClient++? Message-ID: <2FB79EC0751E471DB81418C0CDA9D318@edgility.com> I've hacked something together that seems to work using WSH and WMI (no smartmontools). It displays the following for the "Service State Information": Current Status: OK (for 0d 0h 14m 52s) Status Information:SMART Status is OK Performance Data:WDC WD1500HLFS-01G6U0 139 GB In "nsc.ini" on the client, I've made the following changes: uncommented NRPEListener.dll added to [External Scripts] check_smart_disk0=cscript.exe //T:30 //NoLogo "C:\Program Files\NSClient++\scripts\smart.vbs" 0 check_smart_disk1=cscript.exe //T:30 //NoLogo "C:\Program Files\NSClient++\scripts\smart.vbs" 1 The file "smart.vbs" contains: set args = wscript.arguments drive = Cint(args(0)) strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer _ & "\root\cimv2") Set diskset = objWMIService.ExecQuery _ ("Select * from Win32_DiskDrive") For Each disk in diskset If disk.index = drive Then Select Case Disk.Status Case "OK" WScript.Echo "SMART Status is OK| " & Disk.Model & " " & Int(Disk.Size/1073741824) & " GB" WScript.Quit(0) Case Else Wscript.Echo "SMART Status is " & Disk.Status Wscript.quit(1) End Select End If next There are actually a bunch of different error states, but I figure I want to know about anything other than "OK". I kept the level as "WARNING", as I don't know if it's going to be useful until I get more experience with the real-life disk error messages. I'm aware that disks sometimes die with no warning from SMART. I've never used visual basic before, so feel free to improve on this. I just cobbled together little snippets of code I found via google. On the Nagios server side, the service and hostgroup definitions look like the following: define service{ use generic-service hostgroup_name check_smart_disk0 service_description SMART Disk 0 check_command check_nrpe!check_smart_disk0 check_interval 720 } define service{ use generic-service hostgroup_name check_smart_disk1 service_description SMART Disk 1 check_command check_nrpe!check_smart_disk1 check_interval 720 } define hostgroup{ hostgroup_name check_smart_disk0 alias Windows SMART Disk0 status members host1, host2, host3 } define hostgroup{ hostgroup_name check_smart_disk1 alias Windows SMART Disk1 status members host2 } I do have to know ahead of time the number of disks to check on the client. Seems to be working so far. -e ----- Original Message ----- From: Eric Pearce To: Anthony Montibello Cc: nagios-users at lists.sourceforge.net Sent: Thursday, January 15, 2009 3:14 PM Subject: Re: [Nagios-users] Windows disk health monitoring with smartmontoolsl/NSClient++? Thanks for the tip - I think I'm making some progress, i.e. C:\Program Files\NSClient++>"nsclient++.exe" CheckWMI Select Status from Win32_DiskDrive \NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.2 2008-09-24 l \NSClient++.cpp(476) NSCLient++ - 0.3.5.2 2008-09-24 Started! l \CheckWMI.cpp(306) |--------+ l \CheckWMI.cpp(307) | Status | l \CheckWMI.cpp(308) |--------+ l \CheckWMI.cpp(317) | OK | l \CheckWMI.cpp(319) |--------+ l \NSClient++.cpp(530) Attempting to stop NSCLient++ - 0.3.5.2 2008-09-24 l \NSClient++.cpp(589) NSCLient++ - 0.3.5.2 2008-09-24 Stopped succcessfully But I dont' see how to turn this output into something useful for Nagios, i.e. "OK", "WARNING", "CRITICAL". It appears that the possible return values for "Status" are one of the following: OK,Error,Degraded,Unknown,Pred Fail, Starting, Stopping, Service, Stressed, NonRecover, No Contact or Lost Comm. I would be happy with "OK" resulting in a Nagios "OK" and anything else being a "WARNING". Ideally, "WARNING" followed by the "Status" output from WMI. Is there a way to do this using the NSClient "filter" and Max/Min syntax? Bonus question: What do you do if you have multiple drives? I don't see any obvious way to specify a drive to check. Thanks -e ----- Original Message ----- From: Anthony Montibello To: Eric Pearce Cc: nagios-users at lists.sourceforge.net Sent: Wednesday, January 14, 2009 8:58 PM Subject: Re: [Nagios-users] Windows disk health monitoring with smartmontoolsl/NSClient++? USe WMI: the path to the smart data: root/Cimv2/Win32_DiskDrive/ [Instance] --> Status Hope this helps Tony (Author of NC_Net) On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce wrote: I'd like to get SMART disk health status for Windows machines. It looks like smartctl would work fine on Windows - has someone got it working with NSClient++? I've found some people asking about this in the list archives, but haven't found any concrete examples. All I'm looking for is a basic "OK" or "something bad is going to happen soon" alert from Nagios. Thanks -e ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Fri Jan 23 02:56:01 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Thu, 22 Jan 2009 19:56:01 -0600 Subject: using NPRE to monitor pbs_mom. Error: "NRPE: Unableto read output" In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB10D536B@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB10D536B@buf-ex01.cymfony.com> Message-ID: On Thu, Jan 22, 2009 at 3:18 PM, Seth Simmons wrote: > The filename you specified is check_pbsmom.sh though your command shows > check_pbsmom > I was careless. That was exactly it! Thanks Seth. My bad. It works now. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 venugopals at aztecsoft.com Fri Jan 23 06:38:01 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 23 Jan 2009 11:08:01 +0530 Subject: Using nagios check_http for webbasedauthentication In-Reply-To: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> References: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> Message-ID: Hi Marc, This is my command in commands.cfg : define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ } I executed the following command : ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u /signin.do -p 80 -P "email=svenugopaal at gmail.com&password=podhum" -s "welcome venu" and it threw HTTP CRITICAL - string not found|time=0.080070s;;;0.000000 size=38300B;;;0 Any idea why ? FYI : the password has been changed and now is not "podhum". Thanks Venu -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 8:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 pitchfork at ederdrom.de Fri Jan 23 06:41:20 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Fri, 23 Jan 2009 06:41:20 +0100 Subject: re-execute an event handler just in case the service stays DOWN In-Reply-To: <20090122144209.GJ8349@torres.zugschlus.de> References: <20090122144209.GJ8349@torres.zugschlus.de> Message-ID: <49795880.9070009@ederdrom.de> Marc Haber schrieb: > Hi, > > I would like one event handler to be re-executed just in case it > failed for the first time. The docs > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you > don't want that", but I am fairly confident that I want it in this case. > > I have a nagios host in a unattended site which generally gets its > internet access from the site network. In case of a site network > failure, the host needs to dial in to the Internet via modem to be > reachable for debugging purposes. > > The nagios installation monitors a host on the Internet and has an > event handler connected with this host which will initiate the dial-up > when the "Internet host" goes into a HARD DOWN state. > > I would like this event handler to be re-executed in case the dial-up > connection doesn't come up or goes down _before_ nagios has detected > that the "Internet host" is UP again. > > Is there any way to accomplish this or am I better of with a cronjob > which will initiate the dial-up from outside nagios? > > Any hints will be appreciated., Hi Marc, just use a notification to fire the eventhandler script. Disadvantage: only triggered on HARD states. Advantage: notification_interval to re-execute the script. Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Fri Jan 23 06:50:17 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Fri, 23 Jan 2009 06:50:17 +0100 Subject: Using nagios check_http for webbasedauthentication In-Reply-To: References: Message-ID: <49795A99.6020900@ederdrom.de> Venugopal S schrieb: > > > Hi Marc, > > > > * This is my command in commands.cfg : * > > > > / define command{ / > > / command_name check_http / > > / command_line $USER1$/check_http -I $HOSTADDRESS$ > / > > / } / > > > > I executed the following command : > > > > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u /signin.do > -p 80 -P "email= svenugopaal at gmail.com&password=podhum" -s "welcome venu" > > > > and it threw > > > > HTTP CRITICAL - string not found|time=0.080070s;;;0.000000 size=38300B;;;0 > > > > Any idea why ? Add -v to you test a analyze te response. There is no string "welcome venu" in the response. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Fri Jan 23 06:59:16 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 23 Jan 2009 11:29:16 +0530 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: <49795A99.6020900@ederdrom.de> References: <49795A99.6020900@ederdrom.de> Message-ID: Hi Joerge, As you said "welcome venu" is not in the response in spite of giving valid credentials. That is why I am wondering ! Even I gave the -v switch and found in the HTML response that "welcome venu" is not found. And the response HTML is the same as signin.do. It must have thrown me the login success page isn't it ? Venu -----Original Message----- From: Joerg Linge [mailto:pitchfork at ederdrom.de] Sent: Friday, January 23, 2009 11:20 AM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication Venugopal S schrieb: > > > Hi Marc, > > > > * This is my command in commands.cfg : * > > > > / define command{ / > > / command_name check_http / > > / command_line $USER1$/check_http -I $HOSTADDRESS$ > / > > / } / > > > > I executed the following command : > > > > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u /signin.do > -p 80 -P "email= svenugopaal at gmail.com&password=podhum" -s "welcome venu" > > > > and it threw > > > > HTTP CRITICAL - string not found|time=0.080070s;;;0.000000 size=38300B;;;0 > > > > Any idea why ? Add -v to you test a analyze te response. There is no string "welcome venu" in the response. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Fri Jan 23 08:15:09 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 22 Jan 2009 23:15:09 -0800 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: References: Message-ID: <49796E7D.9050405@kkeane.com> Actually, the response HTML usually ISN'T a login success page. Most of the time, with form-based login, the user name and password will be submitted to the same URL (in your case, signin.do). The Web server will then return a page (typically, completely empty) with a status code of 302 (instead of the normal 200) and another URL in one of the headers. A Web browser will interpret the 302 as "redirect, please go to this new URL instead". So when you click on the "Logon" button, the browser will actually do not one but two (or sometimes even three or more) HTTP requests. Only the last one would contain the "welcome venu" text. I'm not sure if check_http is smart enough to follow redirects; my guess is that it is not; it's designed to be very simple. You may have to either rely on status code 302 (which will also happen when login failed), or you will have to find (or write your own) a plugin that will follow redirects. Venugopal S wrote: > Hi Joerge, > > As you said "welcome venu" is not in the response in spite of giving > valid credentials. That is why I am wondering ! > Even I gave the -v switch and found in the HTML response that "welcome > venu" is not found. And the response HTML is the same as signin.do. It > must have thrown me the login success page isn't it ? > > Venu > > -----Original Message----- > From: Joerg Linge [mailto:pitchfork at ederdrom.de] > Sent: Friday, January 23, 2009 11:20 AM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Using nagios check_httpfor > webbasedauthentication > > Venugopal S schrieb: > >> Hi Marc, >> >> >> >> * This is my command in commands.cfg : * >> >> >> >> / define command{ / >> >> / command_name check_http / >> >> / command_line $USER1$/check_http -I $HOSTADDRESS$ >> / >> >> / } / >> >> >> >> I executed the following command : >> >> >> >> ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u /signin.do >> > > >> -p 80 -P "email= svenugopaal at gmail.com&password=podhum" -s "welcome >> > venu" > >> >> and it threw >> >> >> >> HTTP CRITICAL - string not found|time=0.080070s;;;0.000000 >> > size=38300B;;;0 > >> >> Any idea why ? >> > > Add -v to you test a analyze te response. There is no string "welcome > venu" in the response. > > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. > The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. > > www.aztecsoft.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 xlevrat at yahoo.fr Fri Jan 23 10:59:07 2009 From: xlevrat at yahoo.fr (Xavier LEVRAT) Date: Fri, 23 Jan 2009 09:59:07 +0000 (GMT) Subject: Web view pb Message-ID: <739374.47088.qm@web23104.mail.ird.yahoo.com> Hi List ! I want to monitor several unix boxes with nagios. Nagios web interface will be watched by two teams : Operation Control and Unix Admins. Unix Admins want to monitor the cpuload, but Operation Control doesn?t have be bothered with it. So my unix HOST has 2 contactgroups : UNIX & OC .. and the cpuload service as only 1 : UNIX. The pb is that OC is still in the HOST contactgroup, and does still see the cpuload service ! If I remove O.C from the HOST contactgroups, things get better : cpuload disappear from the OC view, and they still can monitor other unix services like filesystems .. But They can?t access to HOST information, and so, can?t acknowledge a host-down alert ? Have you already met such a problem ? Do I have to declare 2 HOSTS for 1 unix box ? (1 host visible by every one without cpuload , and another one visible by unix with cpuload only ? This is dirty !) Thanks ! Xavier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 steve at sliderule.demon.co.uk Fri Jan 23 13:14:17 2009 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Fri, 23 Jan 2009 12:14:17 +0000 Subject: Embedded Perl Problem Message-ID: <4979B499.8020604@sliderule.demon.co.uk> Hi, I am running nagios 3.0.6 under FreeBSD 6.3 (installed from ports). I recently upgraded perl from 5.8.8 to 5.8.9 (also from ports) because of an imagined problem I had. I also rebuilt all ports that depended on perl including nagios, its libraries and plugins. Then nagios wouldn't start quoting a problem with libperl.so. I cannot find where I saved the original error message (I was slightly stressed at the time. :). I rebuilt nagios without embedded perl support to get it running but I now have much increased server load. Can anyone point me towards a solution to this? Steve. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 23 14:47:22 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Jan 2009 07:47:22 -0600 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: References: Message-ID: <58D7FC17-3006-4148-AA5B-14135B5D019C@ena.com> On Jan 22, 2009, at 11:59 PM, Venugopal S wrote: > > Hi Joerge, > > As you said "welcome venu" is not in the response in spite of giving > valid credentials. That is why I am wondering ! > Even I gave the -v switch and found in the HTML response that "welcome > venu" is not found. And the response HTML is the same as signin.do. It > must have thrown me the login success page isn't it ? > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / > signin.do -p 80 -P "email=svenugopaal at gmail.com&password=podhum" -s > "welcome venu" Hi Venu, I created an account to test and see that I gave you some incorrect information. Looking at the form HTML, the URL that the form information is actually posted to is /signinaction.do, not /signin.do so that will need to change that in the command definition. Now with the correct URL and successful login, I see that the success 'page' returned is just a 302 redirect that bounces you to Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L Unfortunately we come to a stopping point here. check_http will need to follow that redirect if it's going to see the text you're expecting to see on the final page and it can do that with --onredirect=follow. The problem is that the coding of the final landing page appears to absolutely require the presence of a login cookie to know that you're logged in. check_http does not pass cookies as part of a redirect (but can be programmed to pass static cookies using the -k switch). The cookies that are being passed to us appear to be temporary session cookies anyway so I'm not sure how useful it would be to create another check for the customerwelcome.do page. What I ended up with is -- ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r html --invert-regex This will ensure that we see the 302 redirect returned by a successful login and that we do not see the word 'html' in a web page instead of the 302 redirect (meaning the login failed). Essentially, you'll know that the login worked, but not that the customerwelcome.do page was actually displayed. That may be enough for your needs. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 narendran.neelamegam at wipro.com Fri Jan 23 15:25:31 2009 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Fri, 23 Jan 2009 19:55:31 +0530 Subject: Using nagios check_http for webbasedauthentication In-Reply-To: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> References: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> Message-ID: You may also try http://www.webinject.org/plugin.html Regards, Naren -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 8:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Fri Jan 23 15:29:50 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 23 Jan 2009 19:59:50 +0530 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: <58D7FC17-3006-4148-AA5B-14135B5D019C@ena.com> References: <58D7FC17-3006-4148-AA5B-14135B5D019C@ena.com> Message-ID: Hi Marc, Will try this out on Tuesday. Thanks for your immense help. Happy weekend for all of you there. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, January 23, 2009 7:17 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication On Jan 22, 2009, at 11:59 PM, Venugopal S wrote: > > Hi Joerge, > > As you said "welcome venu" is not in the response in spite of giving > valid credentials. That is why I am wondering ! > Even I gave the -v switch and found in the HTML response that "welcome > venu" is not found. And the response HTML is the same as signin.do. It > must have thrown me the login success page isn't it ? > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / > signin.do -p 80 -P "email=svenugopaal at gmail.com&password=podhum" -s > "welcome venu" Hi Venu, I created an account to test and see that I gave you some incorrect information. Looking at the form HTML, the URL that the form information is actually posted to is /signinaction.do, not /signin.do so that will need to change that in the command definition. Now with the correct URL and successful login, I see that the success 'page' returned is just a 302 redirect that bounces you to Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L Unfortunately we come to a stopping point here. check_http will need to follow that redirect if it's going to see the text you're expecting to see on the final page and it can do that with --onredirect=follow. The problem is that the coding of the final landing page appears to absolutely require the presence of a login cookie to know that you're logged in. check_http does not pass cookies as part of a redirect (but can be programmed to pass static cookies using the -k switch). The cookies that are being passed to us appear to be temporary session cookies anyway so I'm not sure how useful it would be to create another check for the customerwelcome.do page. What I ended up with is -- ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r html --invert-regex This will ensure that we see the 302 redirect returned by a successful login and that we do not see the word 'html' in a web page instead of the 302 redirect (meaning the login failed). Essentially, you'll know that the login worked, but not that the customerwelcome.do page was actually displayed. That may be enough for your needs. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Fri Jan 23 15:43:26 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 23 Jan 2009 20:13:26 +0530 Subject: Using nagios check_http forwebbasedauthentication In-Reply-To: References: Message-ID: Naren, Webinject has got pathetic documentation and its so annoying. I have tried that already. -----Original Message----- From: narendran.neelamegam at wipro.com [mailto:narendran.neelamegam at wipro.com] Sent: Friday, January 23, 2009 7:56 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http forwebbasedauthentication You may also try http://www.webinject.org/plugin.html Regards, Naren -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 8:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marouane.himdi at kereval.com Fri Jan 23 15:46:50 2009 From: marouane.himdi at kereval.com (Marouane HIMDI) Date: Fri, 23 Jan 2009 15:46:50 +0100 Subject: Using nagios check_http forwebbasedauthentication In-Reply-To: References: <30B906DE-DBE7-4489-BD06-8838F1E8698D@ena.com> Message-ID: <000f01c97d69$6d1ec160$b00aa8c0@pcmhi> I'll recommand the same tool webinject as Narendran. I have played with it. Good to generate http/https request and calculate response time and verify some words in reponse request. Best regards Dr Marouane HIMDI Ing?nieur R&D/R&D Engineer KEREVAL 4, rue H?l?ne Boucher Z.A. Bellevue 35235 Thorign? Fouillard Tel : +33 (0)2 23 20 36 64 http://www.kereval.com P Pensez ? l'environnement : n'imprimez ce message et ses pi?ces jointes que si n?cessaire ! -----Message d'origine----- De?: narendran.neelamegam at wipro.com [mailto:narendran.neelamegam at wipro.com] Envoy??: vendredi 23 janvier 2009 15:26 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Using nagios check_http forwebbasedauthentication You may also try http://www.webinject.org/plugin.html Regards, Naren -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 8:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ---------------------------------------------------------------------------- -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 owen.m.lagarde at usace.army.mil Fri Jan 23 20:33:15 2009 From: owen.m.lagarde at usace.army.mil (Owen LaGarde) Date: Fri, 23 Jan 2009 13:33:15 -0600 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: References: Message-ID: <1232739195.2865.31.camel@gilgamesh.erdc.hpc.mil> Nope, that would alter the check behavior *and* require me to double the size of the config tree. On Thu, 2009-01-22 at 15:16 +0000, nagios-users-request at lists.sourceforge.net wrote: > 6. Re: selectively disable notifications for services inheriting > a specific template? (Assaf Flatto) > ------------------------------ > Message: 6 > Date: Thu, 22 Jan 2009 09:49:42 +0000 > From: Assaf Flatto > Subject: Re: [Nagios-users] selectively disable notifications for > services inheriting a specific template? > To: nagios-users at lists.sourceforge.net > Message-ID: <200901220949.42234.assaf.flatto at ssp-intl.com> > Content-Type: text/plain; charset="US-ASCII" > > > Have you looked at service dependencies ? > http://nagios.sourceforge.net/docs/3_0/dependencies.html > > It sounds like this is what you need. > > Assaf -- Sincerely, Owen LaGarde Senior Systems Administrator Owen.M.LaGarde at usace.army.mil 1-800-522-6937 x4879 Engineering Research and Development Center attn: CEERD-IH-C (Owen LaGarde) 3909 Halls Ferry Road Vicksburg, MS 39180-6199 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Fri Jan 23 21:07:50 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Jan 2009 14:07:50 -0600 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: <1232739195.2865.31.camel@gilgamesh.erdc.hpc.mil> References: <1232739195.2865.31.camel@gilgamesh.erdc.hpc.mil> Message-ID: <1AC36B9F-6072-4B76-907E-104E198F1401@ena.com> On Jan 23, 2009, at 1:33 PM, Owen LaGarde wrote: > Nope, that would alter the check behavior *and* require me to double > the > size of the config tree. Service Dependencies *are* Nagios' answer to your stated problem. How do you think it would alter the check behavior? Are you sure about that? As far as doubling your config, it certainly doesn't have to if you're smart about it. I think a servicegroup in the template + 1 dependency might be all you need. I can't say for sure since I don't use dependencies but the it looks workable from the documentation... http://nagios.sourceforge.net/docs/3_0/objecttricks.html#servicedependency -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 owen.m.lagarde at usace.army.mil Fri Jan 23 22:03:31 2009 From: owen.m.lagarde at usace.army.mil (Owen LaGarde) Date: Fri, 23 Jan 2009 15:03:31 -0600 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: <1232590915.5458.443.camel@gilgamesh.erdc.hpc.mil> References: <1232590915.5458.443.camel@gilgamesh.erdc.hpc.mil> Message-ID: <1232744611.2865.123.camel@gilgamesh.erdc.hpc.mil> Here's a moderately satisfactory fix: with a test already in place to check the availability of a TGT and the cache maintained by an event broker module (ie., such that all nagios child processes see the same cache) you can add an even handler to the service template inherited by the services for which you want to disable notifications when the TGT isn't available. The event handler script then runs the TGT check plugin as an external process and enables/disables service notifications for "this" service (ie., the one executing the event handler) by including the NAGIOS_HOSTNAME and NAGIOS_SERVICEDISPLAYNAME in the external command. Note: - The TGT check itself must *not* inherit this template -- if it does, TGT failure will be blocked along with TGT-failure-caused failures. - A race condition exists in that the event handler fires after the parent service check declares a state change. That state change, depending on the applicable retries value and delay between retries, can potentially cause a notification to fire prior to processing of any external commands generated by the event handler. Total time between first soft state transition and first hard state transition must be at least twice the interval at which nagios processes the external command queue. - This does *nothing* about the failures themselves -- the assumption is that you want the failure to occur but with select notifications blocked. On Wed, 2009-01-21 at 20:21 -0600, Owen LaGarde wrote: > I essentially want to disable only notifications, only when a specific > service check fails, only for services inheriting a specific template. > And I'm lazy, and don't want to double the size of my config for this > one function. > > I'm using nagios 3.0.2 and nagios-plugins 1.4.12 with a large (>1000 > hosts/services) configuration. Most (800+) of the services use a > "check_remote" custom plugin to tunnel network calls [ie., to plugins on > other hosts] within kerberos authenticated and encrypted sessions. That > kerberos activity requires a ticket cache containing a TGT; said cache > is maintained by a custom event broker module and said TGT's presence is > monitored by a service definition referencing a custom check_krbtgt > plugin. This has worked great so far -- no race conditions, clean > start/restart/refresh cycles for the cache and TGT, scales well, etc. > For a number of policy reasons all service definitions use active > checks. When the TGT check fails it logically follows that all service > checks using the check_remote plugin have or are about to fail. This is > desirable behavior -- depending on the nature of the kerberos TGT > problem there are a number of check_remote failure messages and these > need to be captured in the event log, so I *don't* want to block *any* > checks from running. > > But... > > If it's the TGT check that's failed then the notifications for > everything except the TGT failure are inappropriate and should be > blocked. In effect I want to cause a specific service check's failure > to disable notifications for a large (800+) number of other service > checks but I don't want to nearly double the size of the config tree and > have that much more text to wade through when maintaining the nagios > configuration. Remember, I need the checks that are about to fail > because of the TGT failure to go on and run, and fail, and log their > events and perfdata. It's just the notifications that should be > stopped, and only then if the originating service "use"-es the > remote-active-service template. > > Anybody else doing this? > > -- Sincerely, Owen LaGarde Senior Systems Administrator Owen.M.LaGarde at usace.army.mil 1-800-522-6937 x4879 Engineering Research and Development Center attn: CEERD-IH-C (Owen LaGarde) 3909 Halls Ferry Road Vicksburg, MS 39180-6199 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mh+nagios-users at zugschlus.de Fri Jan 23 22:30:05 2009 From: mh+nagios-users at zugschlus.de (Marc Haber) Date: Fri, 23 Jan 2009 22:30:05 +0100 Subject: re-execute an event handler just in case the service stays DOWN In-Reply-To: <49795880.9070009@ederdrom.de> References: <20090122144209.GJ8349@torres.zugschlus.de> <49795880.9070009@ederdrom.de> Message-ID: <20090123213005.GD13445@torres.zugschlus.de> On Fri, Jan 23, 2009 at 06:41:20AM +0100, Joerg Linge wrote: > just use a notification to fire the eventhandler script. > Disadvantage: only triggered on HARD states. > Advantage: notification_interval to re-execute the script. That would prevent me from actually notifying. At least if one does not want to be notified once a minute ;) Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 fclements at inetu.net Fri Jan 23 23:11:21 2009 From: fclements at inetu.net (Frank Clements) Date: Fri, 23 Jan 2009 17:11:21 -0500 Subject: Expiring acknowledgements Message-ID: Hello, I'm wondering if there is anyone out there in user-land that has any process of expiring acknowledgements after a certain time period. I've done some searching and came up mostly empty handed. I've seen a mention of using SEC to carry this out, but I'm completely unfamiliar with SEC. If this is the way to go I'm game for looking into using it. Anyone out there doing something like this and care to share how? Frank Clements -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3534 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 glowe at sbcglobal.net Sat Jan 24 00:26:47 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Fri, 23 Jan 2009 15:26:47 -0800 (PST) Subject: Contacts in service definition References: <20090119090456.GB20304@umbach-racing.de> <497450F1.3020509@medin.name> Message-ID: <601478.15477.qm@web81806.mail.mud.yahoo.com> In a service definition, who would definition contact if the "contacts" entry in it is left blank? What does it default to? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Sat Jan 24 00:49:40 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Jan 2009 17:49:40 -0600 Subject: Expiring acknowledgements In-Reply-To: References: Message-ID: On Jan 23, 2009, at 4:11 PM, Frank Clements wrote: > Hello, > > I'm wondering if there is anyone out there in user-land that has any > process > of expiring acknowledgements after a certain time period. I've done > some > searching and came up mostly empty handed. I've seen a mention of > using SEC > to carry this out, but I'm completely unfamiliar with SEC. If this > is the > way to go I'm game for looking into using it. > > Anyone out there doing something like this and care to share how? Sort of... I've written a perl script that does it based on some other criteria. When we acknowledge something, the comment is always a ticket number. I periodically troll the comments list (extinfo.cgi? type=3), pull out the hostname, service name, current state, ticket number and comment id number. #!/usr/bin/perl my $echocmd="/bin/echo"; my $CommandFile="/usr/local/nagios/var/rw/nagios.cmd"; my $LogFile="/usr/local/nagios/var/commentmgr.log"; my $CommentsPage="http://nagios/cgi/extinfo.cgi?&type=3"; my $AuthInfo="username:password"; my $GetCommand="/usr/bin/GET -C $AuthInfo \"$CommentsPage\""; my ($datetime,$cmdline,$input,$state,$status); open (COMMENTS, "$GetCommand |"); while () { $input = $_; chomp ($input); next if !($input =~ /(OK)|(CRITICAL)/); next if ($input =~ /flapping/); next if ($input =~ /scheduled for downtime/); ($tempname = $input) =~ s/.*type=2\&host=(.*)\&service=([\w\ %2d\+\-\.]+)\'.*/$1 $2/; ($host,$service) = split (/ /,$tempname); ($ticket = $input) =~ s/.*\w\w(\d\d\d\d\d\d\d).*/$1/; next if ($ticket =~ /Delete/); $state = "OK" if ($input =~/(OK)/); $state = "CRITICAL" if ($input =~/(CRITICAL)/); ($comment=$input) =~ s/.*com_id\=(\d+).*/$1/; (ticket verification removed) If the state is OK and the ticket is closed, remove the comment. # create the command line to add to the command file # Ticket is closed and state is OK. All is well. if (($status == "closed") && ($state eq "OK")) { $cmdline="[$datetime] DEL_SVC_COMMENT;$comment\n"; $action = localtime($datetime) ." - $ticket - host: $host - service: $service - state: $state - ticket: $statustext ($status) - Deleted Comment\n"; # append the command to the end of the command file system("$echocmd \"$cmdline\" >> $CommandFile"); # Log it. system("$echocmd \"$action\" >> $LogFile"); } If the state is Critical and the ticket is closed, remove the comment and acknowledgement so that it's prominent again # create the command line to add to the command file # Ticket is closed and state is CRITICAL. Premature closeation. All is not well. if (($status == "closed") && ($state eq "CRITICAL")) { $cmdline="[$datetime] REMOVE_SVC_ACKNOWLEDGEMENT; $host;$service\n[$datetime] DEL_SVC_COMMENT;$comment\n"; $action = localtime($datetime) ." - $ticket - cid: $comment - host: $host - service: $service - state: $state - ticket: $statustext ($status) - Deleted Comment and Acknowledgement\n"; # append the command to the end of the command file system("$echocmd \"$cmdline\" >> $CommandFile"); # Log it. system("$echocmd \"$action\" >> $LogFile"); } } That's the bulk of it. You'd just need to parse the date out of the comment line, convert it to something testable (epoch time, for example) and change the test case. HTH, marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Sat Jan 24 00:52:19 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Fri, 23 Jan 2009 17:52:19 -0600 Subject: nagios service flapping Message-ID: I just had a bunch of services start flapping on me. THe common factor seems all of these were services monitored by nrpe. ////////////// Notifications for this service are being suppressed because it was detected as having been flapping between different states (22.4% change >= 20.0% threshold). When the service state stabilizes and the flapping stops, notifications will be re-enabled. ////////////////// My nrpe.cfg is pristine except for command[check_disk_scratch]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /scratch What could be causing a service to start flapping. Never happened to me before. ANy debug sugesstions? The Status for the service is correct though. DISK OK - free space: /scratch 14886 MB (52% inode=98%): -- Rahul snippet from services.cfg define service{ use rpn_intermediate_service hostgroup_name npre-compute-nodes service_description /scratch Partition on nodes check_command check_nrpe!check_disk_scratch ; details defined in the nrpe.conf } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Sat Jan 24 00:56:57 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Fri, 23 Jan 2009 18:56:57 -0500 Subject: Expiring acknowledgements In-Reply-To: References: Message-ID: <497A5949.7020105@iweb.com> Hi, Frank Clements wrote: > > I'm wondering if there is anyone out there in user-land that has any process > of expiring acknowledgements after a certain time period. I've done some > searching and came up mostly empty handed. I've seen a mention of using SEC > to carry this out, but I'm completely unfamiliar with SEC. If this is the > way to go I'm game for looking into using it. > > Anyone out there doing something like this and care to share how? You could install NDOUtils [1], use Nagios::Object [2] or write yourself a C script and use it to retrieve all acknowledged problems and remove the acknowledge flag for each of them using external commands [3][4] if they should expire. Mathieu [1] http://www.nagios.org/download/addons/ [2] http://search.cpan.org/~tobeya/Nagios-Object/ [3] http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=116 [4] http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=117 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 amontibello at gmail.com Sat Jan 24 02:56:46 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 23 Jan 2009 20:56:46 -0500 Subject: Windows disk health monitoring with smartmontoolsl/NSClient++? In-Reply-To: <49799632.1070209@hacktivisme.org> References: <2E3354BE557D445583DBFAA0E1818F03@ap872c3fe40484> <49799632.1070209@hacktivisme.org> Message-ID: If using NC_Net look at the commands in chec_nc_net.c (nc_net's customized check_nt compatible client) check_nc_net --help=WMICAT_NEW check_nc_net --help=WMICHECK check_nc_net --help=WMICAT check_nc_net --help=WMICOUNTER WMICOunter can use -w and -c each of these commands need the WMI Query as input and may give the results back in a format that is easier to manipulate in a wrapper script instead of a VB script (it depends on expertise and deployment strategy ) example of a input to WMI check/counter for NC_NEt: check_nc_net -v WMICHECK -l "cimv2^freespace,name^win32_logicaldisk^name= 'c:'' -c 5000000000 -w 10000000000 Tony (Author of NC_Net) On Fri, Jan 23, 2009 at 5:04 AM, 44kbps <44kbps at gmail.com> wrote: > Hi Anthony, I'm working now to get something like this. > I want to monitor the CPU temperature, fan velocity, and other hardware > info from a Windows Machine. > I'm having a look to WMI's Microsoft database. > > You can read about it in: > http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true > > Now I'm work to get work with NSCLient++ or NC_NET. > > See you! > > Anthony Montibello escribi?: > >> USe WMI: >> the path to the smart data: >> root/Cimv2/Win32_DiskDrive/ >> [Instance] --> Status >> Hope this helps >> Tony (Author of NC_Net) >> On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce > epearce at amberpoint.com>> wrote: >> >> I'd like to get SMART disk health status for Windows machines. It >> looks like smartctl would work fine on Windows - has someone got >> it working with NSClient++? >> I've found some people asking about this in the list archives, but >> haven't found any concrete examples. >> All I'm looking for is a basic "OK" or "something bad is going to >> happen soon" alert from Nagios. >> Thanks >> -e >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 andy-lists at networkmail.eu Sat Jan 24 10:35:19 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Sat, 24 Jan 2009 09:35:19 +0000 Subject: nagios service flapping In-Reply-To: References: Message-ID: <497AE0D7.1030908@networkmail.eu> Rahul, Look through your Nagios logs or run an availability report on one of the services for the time the flapping was happening. This report will list what the output was at the time it went from an OK to CRITICAL (or WARNING) and vice versa - it should give you a pointer to the root cause. At first guess, and as you've identified the common factor to be NRPE, I'd be looking at the network between your Nagios machine and the NRPE client/s, or possibly even the NRPE service on the client/s. Andy Rahul Nabar wrote: > I just had a bunch of services start flapping on me. THe common > factor seems all of these were services monitored by nrpe. > > ////////////// > Notifications for this service are being suppressed because it was > detected as having been flapping between different states (22.4% > change >= 20.0% threshold). When the service state stabilizes and the > flapping stops, notifications will be re-enabled. > ////////////////// > > My nrpe.cfg is pristine except for > > command[check_disk_scratch]=/usr/local/nagios/libexec/check_disk -w 20 > -c 10 -p /scratch > > What could be causing a service to start flapping. Never happened to > me before. ANy debug sugesstions? > > The Status for the service is correct though. > DISK OK - free space: /scratch 14886 MB (52% inode=98%): > > -- > Rahul > > snippet from services.cfg > define service{ > use rpn_intermediate_service > hostgroup_name npre-compute-nodes > service_description /scratch Partition on nodes > check_command check_nrpe!check_disk_scratch ; > details defined in the nrpe.conf > } > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Sat Jan 24 14:03:55 2009 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 24 Jan 2009 05:03:55 -0800 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: Message-ID: <497B11BB.1030404@kkeane.com> What is the setting for refresh_rate in your cgi.cfg? Mohammed Al-Kout wrote: > Keven, > > Yes when nagios is doing nothing it sits exactly for 10 mins i managed > to make it 30 mins by changing the LDAPCacheTTL parameter in > httpd.conf but it only gave me time upto 30 mins then started giving > authentication errors because it was checking against the cached > password. > > we are using RSA through LDAP for the majority of our services to have > a secure ad centralized user DB, we have a group of users with > different permissions thats why the default user wouldn't work in our > case. > > i was hoping to find the parameter that sets the 10min idle timeout > for the browser/nagios/ldap combo > > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Sat, Jan 24, 2009 at 14:53, Kevin Keane > wrote: > > If the RSA password really changes every minute, your Web browser > should ask for a new password every minute with the next HTTP > request. If Nagios simply sits there and you don't do anything, I > believe it refreshes every five to ten minutes. So that is when > the browser would ask for the new password. If you are actually > working with it and clicking on links, then it would probably ask > for a password earlier. > > BTW, could you post this back to the mailing list rather than me > personally? Other people may have great ideas on it, too, and this > type of discussion should also be archived. > > What might help here is something along the lines of Kerberos, but > I believe Apache does not support it, at least not out of the box. > > The other possibility is to have some kind of "front end" that > handles authentication and then forwards the HTTP requests to > Nagios. In Nagios, you could then use the default-user to allow > access for anyone (you wouldn't be able to restrict access by > group or so, though). > > Personally, I think that for Nagios purposes, you should ditch RSA > and go back to a local password file for nagios. I suspect using > RSA with Nagios actually reduces rather than increases the > security. This is because an attacker could potentially see many > different passwords, and use that to deduct information about the > sequence of RSA keys and possibly in the end predict the next one. > RSA is pretty strong overall, so this is not a huge risk, but > something to keep in mind. > > Mohammed Al-Kout wrote: > > Keven, > > The rsa password changes every 1 min, the nagios session > timeouts ( i.e requires re authentication ) every 10 mins, > all i need is is there a way to change this value to stay > longer than 10 mins ? like 2-3 hours for example. > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Sat, Jan 24, 2009 at 11:57, Kevin Keane > > >> wrote: > > Of course you wouldn't get it with the local passwd file, > because > that password never changes. It's not the LDAP Cache > settings, but > the fact that your RSA passwords themselves are changing > frequently - presumably every ten minutes - as you said > earlier. > > Mohammed Al-Kout wrote: > > Keven, > > we didn't get the reauthenticate window when we had the > local > passwd file once we enabled ldap authentication its > repopping > at exactly 10 mins it has something to do with the LDAP > Cache > settings. > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Fri, Jan 23, 2009 at 15:32, Kevin Keane > > > > > >>> wrote: > > There is no "idle timeout" when using HTTP > authentication, > because > there are no sessions involved that would be idle. > > Each request stands on its own, and is separately > authenticated. > > Mohammed Al-Kout wrote: > > What about the idle timeout ? > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Thu, Jan 22, 2009 at 09:49, Kevin Keane > > > > > >> > > > > > >>>> wrote: > > No. It has nothing to do with time. The popup > will > come up > every > time the RSA password changes. So the only > solution > is to > reduce > how often the password changes. > > Mohammed Al-Kout wrote: > > Keven, > > is it possible to give the browser certain > parameters to > increase this time ? ( we are using Firefox ) > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Wed, Jan 21, 2009 at 17:19, Kevin Keane > > > > > >> > > > > > >>> > > > > > >> > > > > > > >>>>> wrote: > > There is no such thing as a "session" in > Nagios. It > simply > uses plain > HTTP authentication. That means that > the user > name and > password is > sent > with every single HTTP request; > request are > not tied > together the way > you might be used to from online banking > sites and > the like. > > What you are observing could be due to a > couple of > different factors, > but it is almost certainly neither LDAP, > Apache nor > Nagios, > but rather > the Web browser. > > - The most likely cause: you say that > the RSA > passwords change > frequently. When the RSA password > changes, the > browser has > no way of > knowing that, and will continue to > send the old > password. > This is > rejected, and the browser then pops up the > login dialog. > > - The browser may for some reason > think that > it is > connecting to a > different server, where the user name and > password > are no > longer > valid. > > - The browser may for some reason > actually forget > the user > name and > password. > > Mohammed Al-Kout wrote: > > Warner, > > > > the session seems to be expiring after ( > 10-20) and > nagios asks for > > reauthentication, ( we are using RSA > passwords > that change > frequently > > so the LDAPCAche does not apply in > our case > ) are > you using > > mod_auth_ldap ? > > what are the parameters you use in the > httpd.conf for > LDAP Cache > settings > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Wed, Jan 21, 2009 at 16:22, > Werner Flamme > > > > >> > > > > >>> > > > > > >> > > > > >>>> > > > > > >> > > > > > >>> > > > >> > > > > > >>>>>> wrote: > > > > Mohammed Al-Kout [21.01.2009 14:00]: > > > Hello, > > > > > > i'm running Nagios 3.0.1 on > Apache 2.0.52 > its been > running > on a > > local > > > userfile for sometime, recently i > switched > to LDAP > > authentication with > > > mod_auth_ldap its working > fine, the > problem > is i'm > getting the > > > authentication popup every > 10-20 mins, is > there a > way to stop > > this or set a > > > longer interval ? i'm not > sure what > is causing > this popup to > > reappear ( > > > LDAP , Apache or Nagios ) if > anyone > has an > idea please > lemme know > > > > Neither of them. We use LDAP > auth for > years, and > there are > no such > > popups. > > > > Regards, > > Werner > > > > > > -- Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network > You Never > Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain > confidential > and/or proprietary information. Please be advised > that the > unauthorized use or disclosure of the information is > strictly > prohibited. The information herein is intended only > for use > by the > intended recipient(s) named above. If you have > received this > transmission in error, please notify the sender > immediately and > permanently delete the e-mail and any copies, > printouts or > attachments thereof. > > > > > -- Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never > Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential > and/or proprietary information. Please be advised that the > unauthorized use or disclosure of the information is strictly > prohibited. The information herein is intended only for use > by the > intended recipient(s) named above. If you have received this > transmission in error, please notify the sender immediately and > permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential > and/or proprietary information. Please be advised that the > unauthorized use or disclosure of the information is strictly > prohibited. The information herein is intended only for use by the > intended recipient(s) named above. If you have received this > transmission in error, please notify the sender immediately and > permanently delete the e-mail and any copies, printouts or > attachments thereof. > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Sat Jan 24 14:11:11 2009 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 24 Jan 2009 05:11:11 -0800 Subject: Nagios - LDAP/RSA authentication In-Reply-To: References: Message-ID: <497B136F.9080609@kkeane.com> Also, does your user database support Kerberos? If so, you could try to use apache's mod_kerb and use a Kerberos ticket instead of the changing RSA password for authentication. That solves the security problem I mentioned earlier, as well as having to retype the password all the time. You will need a Kerberos-enabled browser (Internet Explorer supports it, I believe - not sure about any of the others). Also, it will probably not work if there are too many firewalls around. Mohammed Al-Kout wrote: > Keven, > > Yes when nagios is doing nothing it sits exactly for 10 mins i managed > to make it 30 mins by changing the LDAPCacheTTL parameter in > httpd.conf but it only gave me time upto 30 mins then started giving > authentication errors because it was checking against the cached > password. > > we are using RSA through LDAP for the majority of our services to have > a secure ad centralized user DB, we have a group of users with > different permissions thats why the default user wouldn't work in our > case. > > i was hoping to find the parameter that sets the 10min idle timeout > for the browser/nagios/ldap combo > > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Sat, Jan 24, 2009 at 14:53, Kevin Keane > wrote: > > If the RSA password really changes every minute, your Web browser > should ask for a new password every minute with the next HTTP > request. If Nagios simply sits there and you don't do anything, I > believe it refreshes every five to ten minutes. So that is when > the browser would ask for the new password. If you are actually > working with it and clicking on links, then it would probably ask > for a password earlier. > > BTW, could you post this back to the mailing list rather than me > personally? Other people may have great ideas on it, too, and this > type of discussion should also be archived. > > What might help here is something along the lines of Kerberos, but > I believe Apache does not support it, at least not out of the box. > > The other possibility is to have some kind of "front end" that > handles authentication and then forwards the HTTP requests to > Nagios. In Nagios, you could then use the default-user to allow > access for anyone (you wouldn't be able to restrict access by > group or so, though). > > Personally, I think that for Nagios purposes, you should ditch RSA > and go back to a local password file for nagios. I suspect using > RSA with Nagios actually reduces rather than increases the > security. This is because an attacker could potentially see many > different passwords, and use that to deduct information about the > sequence of RSA keys and possibly in the end predict the next one. > RSA is pretty strong overall, so this is not a huge risk, but > something to keep in mind. > > Mohammed Al-Kout wrote: > > Keven, > > The rsa password changes every 1 min, the nagios session > timeouts ( i.e requires re authentication ) every 10 mins, > all i need is is there a way to change this value to stay > longer than 10 mins ? like 2-3 hours for example. > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Sat, Jan 24, 2009 at 11:57, Kevin Keane > > >> wrote: > > Of course you wouldn't get it with the local passwd file, > because > that password never changes. It's not the LDAP Cache > settings, but > the fact that your RSA passwords themselves are changing > frequently - presumably every ten minutes - as you said > earlier. > > Mohammed Al-Kout wrote: > > Keven, > > we didn't get the reauthenticate window when we had the > local > passwd file once we enabled ldap authentication its > repopping > at exactly 10 mins it has something to do with the LDAP > Cache > settings. > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Fri, Jan 23, 2009 at 15:32, Kevin Keane > > > > > >>> wrote: > > There is no "idle timeout" when using HTTP > authentication, > because > there are no sessions involved that would be idle. > > Each request stands on its own, and is separately > authenticated. > > Mohammed Al-Kout wrote: > > What about the idle timeout ? > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Thu, Jan 22, 2009 at 09:49, Kevin Keane > > > > > >> > > > > > >>>> wrote: > > No. It has nothing to do with time. The popup > will > come up > every > time the RSA password changes. So the only > solution > is to > reduce > how often the password changes. > > Mohammed Al-Kout wrote: > > Keven, > > is it possible to give the browser certain > parameters to > increase this time ? ( we are using Firefox ) > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Wed, Jan 21, 2009 at 17:19, Kevin Keane > > > > > >> > > > > > >>> > > > > > >> > > > > > > >>>>> wrote: > > There is no such thing as a "session" in > Nagios. It > simply > uses plain > HTTP authentication. That means that > the user > name and > password is > sent > with every single HTTP request; > request are > not tied > together the way > you might be used to from online banking > sites and > the like. > > What you are observing could be due to a > couple of > different factors, > but it is almost certainly neither LDAP, > Apache nor > Nagios, > but rather > the Web browser. > > - The most likely cause: you say that > the RSA > passwords change > frequently. When the RSA password > changes, the > browser has > no way of > knowing that, and will continue to > send the old > password. > This is > rejected, and the browser then pops up the > login dialog. > > - The browser may for some reason > think that > it is > connecting to a > different server, where the user name and > password > are no > longer > valid. > > - The browser may for some reason > actually forget > the user > name and > password. > > Mohammed Al-Kout wrote: > > Warner, > > > > the session seems to be expiring after ( > 10-20) and > nagios asks for > > reauthentication, ( we are using RSA > passwords > that change > frequently > > so the LDAPCAche does not apply in > our case > ) are > you using > > mod_auth_ldap ? > > what are the parameters you use in the > httpd.conf for > LDAP Cache > settings > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Wed, Jan 21, 2009 at 16:22, > Werner Flamme > > > > >> > > > > >>> > > > > > >> > > > > >>>> > > > > > >> > > > > > >>> > > > >> > > > > > >>>>>> wrote: > > > > Mohammed Al-Kout [21.01.2009 14:00]: > > > Hello, > > > > > > i'm running Nagios 3.0.1 on > Apache 2.0.52 > its been > running > on a > > local > > > userfile for sometime, recently i > switched > to LDAP > > authentication with > > > mod_auth_ldap its working > fine, the > problem > is i'm > getting the > > > authentication popup every > 10-20 mins, is > there a > way to stop > > this or set a > > > longer interval ? i'm not > sure what > is causing > this popup to > > reappear ( > > > LDAP , Apache or Nagios ) if > anyone > has an > idea please > lemme know > > > > Neither of them. We use LDAP > auth for > years, and > there are > no such > > popups. > > > > Regards, > > Werner > > > > > > -- Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network > You Never > Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain > confidential > and/or proprietary information. Please be advised > that the > unauthorized use or disclosure of the information is > strictly > prohibited. The information herein is intended only > for use > by the > intended recipient(s) named above. If you have > received this > transmission in error, please notify the sender > immediately and > permanently delete the e-mail and any copies, > printouts or > attachments thereof. > > > > > -- Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never > Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential > and/or proprietary information. Please be advised that the > unauthorized use or disclosure of the information is strictly > prohibited. The information herein is intended only for use > by the > intended recipient(s) named above. If you have received this > transmission in error, please notify the sender immediately and > permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential > and/or proprietary information. Please be advised that the > unauthorized use or disclosure of the information is strictly > prohibited. The information herein is intended only for use by the > intended recipient(s) named above. If you have received this > transmission in error, please notify the sender immediately and > permanently delete the e-mail and any copies, printouts or > attachments thereof. > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mjkout at gmail.com Sat Jan 24 13:03:07 2009 From: mjkout at gmail.com (Mohammed Al-Kout) Date: Sat, 24 Jan 2009 15:03:07 +0300 Subject: Nagios - LDAP/RSA authentication In-Reply-To: <497B0140.8030704@kkeane.com> References: <497B0140.8030704@kkeane.com> Message-ID: Keven, Yes when nagios is doing nothing it sits exactly for 10 mins i managed to make it 30 mins by changing the LDAPCacheTTL parameter in httpd.conf but it only gave me time upto 30 mins then started giving authentication errors because it was checking against the cached password. we are using RSA through LDAP for the majority of our services to have a secure ad centralized user DB, we have a group of users with different permissions thats why the default user wouldn't work in our case. i was hoping to find the parameter that sets the 10min idle timeout for the browser/nagios/ldap combo Best Regards -- Mohammed Al-Kout On Sat, Jan 24, 2009 at 14:53, Kevin Keane wrote: > If the RSA password really changes every minute, your Web browser should > ask for a new password every minute with the next HTTP request. If Nagios > simply sits there and you don't do anything, I believe it refreshes every > five to ten minutes. So that is when the browser would ask for the new > password. If you are actually working with it and clicking on links, then it > would probably ask for a password earlier. > > BTW, could you post this back to the mailing list rather than me > personally? Other people may have great ideas on it, too, and this type of > discussion should also be archived. > > What might help here is something along the lines of Kerberos, but I > believe Apache does not support it, at least not out of the box. > > The other possibility is to have some kind of "front end" that handles > authentication and then forwards the HTTP requests to Nagios. In Nagios, you > could then use the default-user to allow access for anyone (you wouldn't be > able to restrict access by group or so, though). > > Personally, I think that for Nagios purposes, you should ditch RSA and go > back to a local password file for nagios. I suspect using RSA with Nagios > actually reduces rather than increases the security. This is because an > attacker could potentially see many different passwords, and use that to > deduct information about the sequence of RSA keys and possibly in the end > predict the next one. RSA is pretty strong overall, so this is not a huge > risk, but something to keep in mind. > > Mohammed Al-Kout wrote: > >> Keven, >> >> The rsa password changes every 1 min, the nagios session timeouts ( i.e >> requires re authentication ) every 10 mins, all i need is is there a way to >> change this value to stay longer than 10 mins ? like 2-3 hours for example. >> >> Best Regards >> -- >> Mohammed Al-Kout >> >> >> >> >> >> On Sat, Jan 24, 2009 at 11:57, Kevin Keane > subscription at kkeane.com>> wrote: >> >> Of course you wouldn't get it with the local passwd file, because >> that password never changes. It's not the LDAP Cache settings, but >> the fact that your RSA passwords themselves are changing >> frequently - presumably every ten minutes - as you said earlier. >> >> Mohammed Al-Kout wrote: >> >> Keven, >> >> we didn't get the reauthenticate window when we had the local >> passwd file once we enabled ldap authentication its repopping >> at exactly 10 mins it has something to do with the LDAP Cache >> settings. >> >> Best Regards >> -- >> Mohammed Al-Kout >> >> >> >> >> >> On Fri, Jan 23, 2009 at 15:32, Kevin Keane >> >> > >> wrote: >> >> There is no "idle timeout" when using HTTP authentication, >> because >> there are no sessions involved that would be idle. >> >> Each request stands on its own, and is separately >> authenticated. >> >> Mohammed Al-Kout wrote: >> >> What about the idle timeout ? >> >> Best Regards >> -- >> Mohammed Al-Kout >> >> >> >> >> >> On Thu, Jan 22, 2009 at 09:49, Kevin Keane >> > >> > >> > >> > >>> wrote: >> >> No. It has nothing to do with time. The popup will >> come up >> every >> time the RSA password changes. So the only solution >> is to >> reduce >> how often the password changes. >> >> Mohammed Al-Kout wrote: >> >> Keven, >> >> is it possible to give the browser certain >> parameters to >> increase this time ? ( we are using Firefox ) >> >> Best Regards >> -- >> Mohammed Al-Kout >> >> >> >> >> >> On Wed, Jan 21, 2009 at 17:19, Kevin Keane >> > >> > > >> > >> >> >> > >> > > >> >> > >> > >>>> wrote: >> >> There is no such thing as a "session" in >> Nagios. It >> simply >> uses plain >> HTTP authentication. That means that the user >> name and >> password is >> sent >> with every single HTTP request; request are >> not tied >> together the way >> you might be used to from online banking >> sites and >> the like. >> >> What you are observing could be due to a >> couple of >> different factors, >> but it is almost certainly neither LDAP, >> Apache nor >> Nagios, >> but rather >> the Web browser. >> >> - The most likely cause: you say that the RSA >> passwords change >> frequently. When the RSA password changes, the >> browser has >> no way of >> knowing that, and will continue to send the old >> password. >> This is >> rejected, and the browser then pops up the >> login dialog. >> >> - The browser may for some reason think that >> it is >> connecting to a >> different server, where the user name and >> password >> are no >> longer >> valid. >> >> - The browser may for some reason actually forget >> the user >> name and >> password. >> >> Mohammed Al-Kout wrote: >> > Warner, >> > >> > the session seems to be expiring after ( >> 10-20) and >> nagios asks for >> > reauthentication, ( we are using RSA passwords >> that change >> frequently >> > so the LDAPCAche does not apply in our case >> ) are >> you using >> > mod_auth_ldap ? >> > what are the parameters you use in the >> httpd.conf for >> LDAP Cache >> settings >> > >> > Best Regards >> > -- >> > Mohammed Al-Kout >> > >> > >> > >> > >> > >> > On Wed, Jan 21, 2009 at 16:22, Werner Flamme >> > > > >> > > >> >> > >> > > > >> > >>> >> > > >> > >> > >> > >> > >> > >> > >> > >>>>> wrote: >> > >> > Mohammed Al-Kout [21.01.2009 14:00]: >> > > Hello, >> > > >> > > i'm running Nagios 3.0.1 on Apache 2.0.52 >> its been >> running >> on a >> > local >> > > userfile for sometime, recently i >> switched >> to LDAP >> > authentication with >> > > mod_auth_ldap its working fine, the >> problem >> is i'm >> getting the >> > > authentication popup every 10-20 mins, is >> there a >> way to stop >> > this or set a >> > > longer interval ? i'm not sure what >> is causing >> this popup to >> > reappear ( >> > > LDAP , Apache or Nagios ) if anyone >> has an >> idea please >> lemme know >> > >> > Neither of them. We use LDAP auth for >> years, and >> there are >> no such >> > popups. >> > >> > Regards, >> > Werner >> > >> >> >> >> -- Kevin Keane >> Owner >> The NetTech >> Find the Uncommon: Expert Solutions for a Network You Never >> Have >> to Think About >> >> Office: 866-642-7116 >> http://www.4nettech.com >> >> This e-mail and attachments, if any, may contain confidential >> and/or proprietary information. Please be advised that the >> unauthorized use or disclosure of the information is strictly >> prohibited. The information herein is intended only for use >> by the >> intended recipient(s) named above. If you have received this >> transmission in error, please notify the sender immediately and >> permanently delete the e-mail and any copies, printouts or >> attachments thereof. >> >> >> >> >> -- Kevin Keane >> Owner >> The NetTech >> Find the Uncommon: Expert Solutions for a Network You Never Have >> to Think About >> >> Office: 866-642-7116 >> http://www.4nettech.com >> >> This e-mail and attachments, if any, may contain confidential >> and/or proprietary information. Please be advised that the >> unauthorized use or disclosure of the information is strictly >> prohibited. The information herein is intended only for use by the >> intended recipient(s) named above. If you have received this >> transmission in error, please notify the sender immediately and >> permanently delete the e-mail and any copies, printouts or >> attachments thereof. >> >> >> > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information herein > is intended only for use by the intended recipient(s) named above. If you > have received this transmission in error, please notify the sender > immediately and permanently delete the e-mail and any copies, printouts or > attachments thereof. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 service at shdawson.com Sat Jan 24 15:27:17 2009 From: service at shdawson.com (Stephen H. Dawson) Date: Sat, 24 Jan 2009 09:27:17 -0500 Subject: WAP 2.0 for Nagios Message-ID: Hello, Running latest Nagios. Have the WAP running on http. We would like to take the WAP to HTTPS. We are of the understanding we need WAP 2.0 (the equivalent of SSL for mobile browsers). Does Nagios' WAP implementation offer WAP 2.0 ? Thank You, SHD ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ton.machielsen at gmail.com Sat Jan 24 16:08:39 2009 From: ton.machielsen at gmail.com (Ton Machielsen) Date: Sat, 24 Jan 2009 16:08:39 +0100 Subject: Alternatives for check_ping Message-ID: Hi all! This is my first message to the list. I've been browsing the archives, i've asked Mr. Google, but i cannot find an answer to my problem. But i'm sure i'm not the only one with this problem. Now here is what i'm struggling with: I've installed Nagios 3.0.6 on a FreeBSD Jail. Now, from this jail i cannot ping my hosts because of some sockets restriction of the Jail. I got the suggestion to install echoping instead, but i don't seem to get this working either. When i echoping my hosts, i get a connection denied error. I can ping my hosts from any other place on the internet (home, mobile phone, work office), but from the Jail i cannot. I cannot change the config of the Jail because it's a provider hosted system. So my questions are: - Am i the only one with this problem? - Does anybody have a good check-host-alive definition that works from the jail? - Is echoping supposed to work or not? - If nobody has a good check-host-alive definition, how can i switch this check off? I can check on other services to know if the server is up or not, but i don't want the "host down" status in my tactical overview. That's it so far. I'm sure for you people it's simple and it's been asked a zillion times before, but honestly, i cannot find the answers. Thanks in advance, Ton. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Sat Jan 24 18:28:36 2009 From: marc at ena.com (Marc Powell) Date: Sat, 24 Jan 2009 11:28:36 -0600 Subject: Alternatives for check_ping In-Reply-To: References: Message-ID: <3F6544EC-018C-4958-B46C-07E2EC4979AD@ena.com> On Jan 24, 2009, at 9:08 AM, Ton Machielsen wrote: > I've installed Nagios 3.0.6 on a FreeBSD Jail. Now, from this jail i > cannot ping my hosts because of some sockets restriction of the Jail. The provider probably has security.jail.allow_raw_sockets disabled. bummer. > I cannot change the config of the Jail because it's a provider > hosted system. makes monitoring interesting for you. > So my questions are: > > - Am i the only one with this problem? I'd hazard that the number of admins with this kind of restriction is very low. It's unusual to restrict a monitoring system like this. > - Does anybody have a good check-host-alive definition that works > from the jail? That's going to depend on the configuration of the jail and the types of devices you are intending to monitor. check-host-alive doesn't have to be a ping test, it's just the most common and useful test. > - Is echoping supposed to work or not? Not a FreeBSD jail user here and others might be able to answer definitively. I'd guess that the echo, discard and chargen protocols won't but HTTP might. That would require that your monitored hosts be running a web server of course. > - If nobody has a good check-host-alive definition, how can i switch > this check off? leave out the check_command directive entirely and/or { check_period none and/or active_checks_enabled 0 } or use check_dummy as the check_command and always return an OK state. You lose the benefits of parenting and down/unreachable logic though. YMMV. > I can check on other services to know if the server is up or not, > but i don't want the "host down" status in my tactical overview. You could specify one of those as the host check_command too. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Peter.Ringe at web.de Sat Jan 24 23:32:12 2009 From: Peter.Ringe at web.de (Peter Ringe) Date: Sat, 24 Jan 2009 23:32:12 +0100 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: References: Message-ID: <497B96EC.8060300@web.de> Hi Venu, do you know 'check_website'. I use it for monitoring a handful websites. It's able to follow applications even with dynamically generated URLs. As far as I remember (I dont need it) it follows redirects. It' worth a look. Regards, Peter Venugopal S schrieb: > Hi Marc, > > Will try this out on Tuesday. Thanks for your immense help. > > Happy weekend for all of you there. > > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Friday, January 23, 2009 7:17 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Using nagios check_httpfor > webbasedauthentication > > > On Jan 22, 2009, at 11:59 PM, Venugopal S wrote: > >> Hi Joerge, >> >> As you said "welcome venu" is not in the response in spite of giving >> valid credentials. That is why I am wondering ! >> Even I gave the -v switch and found in the HTML response that "welcome >> venu" is not found. And the response HTML is the same as signin.do. It >> must have thrown me the login success page isn't it ? > >> ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / >> signin.do -p 80 -P "email=svenugopaal at gmail.com&password=podhum" -s >> "welcome venu" > > > > Hi Venu, > > I created an account to test and see that I gave you some incorrect > information. Looking at the form HTML, the URL that the form > information is actually posted to is /signinaction.do, not /signin.do > so that will need to change that in the command definition. > > Now with the correct URL and successful login, I see that the success > 'page' returned is just a 302 redirect that bounces you to > > Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L > > Unfortunately we come to a stopping point here. check_http will need > to follow that redirect if it's going to see the text you're expecting > to see on the final page and it can do that with --onredirect=follow. > The problem is that the coding of the final landing page appears to > absolutely require the presence of a login cookie to know that you're > logged in. check_http does not pass cookies as part of a redirect (but > can be programmed to pass static cookies using the -k switch). The > cookies that are being passed to us appear to be temporary session > cookies anyway so I'm not sure how useful it would be to create > another check for the customerwelcome.do page. > > What I ended up with is -- > > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / > signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r > html --invert-regex > > This will ensure that we see the 302 redirect returned by a successful > login and that we do not see the word 'html' in a web page instead of > the 302 redirect (meaning the login failed). Essentially, you'll know > that the login worked, but not that the customerwelcome.do page was > actually displayed. That may be enough for your needs. > > -- > Marc > > > > > > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. > The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. > > www.aztecsoft.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Sat Jan 24 23:40:14 2009 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 24 Jan 2009 14:40:14 -0800 Subject: Alternatives for check_ping In-Reply-To: <3F6544EC-018C-4958-B46C-07E2EC4979AD@ena.com> References: Message-ID: <497B98CE.2020000@kkeane.com> Marc Powell wrote: > On Jan 24, 2009, at 9:08 AM, Ton Machielsen wrote: >> - Does anybody have a good check-host-alive definition that works >> from the jail? >> > > That's going to depend on the configuration of the jail and the types > of devices you are intending to monitor. check-host-alive doesn't have > to be a ping test, it's just the most common and useful test. > How about check_tcp to a port that you know is supposed to be open on the monitored system? Second to check_ping, that is probably the most basic check you could do. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ton.machielsen at gmail.com Sun Jan 25 13:12:14 2009 From: ton.machielsen at gmail.com (Ton Machielsen) Date: Sun, 25 Jan 2009 13:12:14 +0100 Subject: Alternatives for check_ping In-Reply-To: <497B98CE.2020000@kkeane.com> References: <3F6544EC-018C-4958-B46C-07E2EC4979AD@ena.com> <497B98CE.2020000@kkeane.com> Message-ID: Ok, what i did was to write check-ping script that exits with 0 and use that dummy as check-host-alive. I can use other services to check if a server is alive. So that problem is "solved". Up to the next one. Ton. On Sat, Jan 24, 2009 at 11:40 PM, Kevin Keane wrote: > Marc Powell wrote: > > On Jan 24, 2009, at 9:08 AM, Ton Machielsen wrote: > >> - Does anybody have a good check-host-alive definition that works > >> from the jail? > >> > > > > That's going to depend on the configuration of the jail and the types > > of devices you are intending to monitor. check-host-alive doesn't have > > to be a ping test, it's just the most common and useful test. > > > How about check_tcp to a port that you know is supposed to be open on > the monitored system? Second to check_ping, that is probably the most > basic check you could do. > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information herein > is intended only for use by the intended recipient(s) named above. If you > have received this transmission in error, please notify the sender > immediately and permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 peo at bsdlabs.com Sun Jan 25 15:28:41 2009 From: peo at bsdlabs.com (Per olof Ljungmark) Date: Sun, 25 Jan 2009 15:28:41 +0100 Subject: Embedded Perl Problem In-Reply-To: <4979B499.8020604@sliderule.demon.co.uk> References: <4979B499.8020604@sliderule.demon.co.uk> Message-ID: <497C7719.8080704@bsdlabs.com> Steve Burton wrote: > Hi, > > I am running nagios 3.0.6 under FreeBSD 6.3 (installed from ports). > > I recently upgraded perl from 5.8.8 to 5.8.9 (also from ports) because > of an imagined problem I had. I also rebuilt all ports that depended on > perl including nagios, its libraries and plugins. Then nagios wouldn't > start quoting a problem with libperl.so. > I cannot find where I saved the original error message (I was slightly > stressed at the time. :). > I rebuilt nagios without embedded perl support to get it running but I > now have much increased server load. > > Can anyone point me towards a solution to this? Hi, It has been noted by several people that upgraded Perl on FreeBSD but I'm sure we'll see a solution soon. http://lists.freebsd.org/pipermail/freebsd-ports/2009-January/052510.html This is what I got in nagios.log: [1232880371] Local time is Sun Jan 25 11:46:11 CET 2009 [1232880371] LOG VERSION: 2.0 [1232880371] Error: p1.pl file required for embedded Perl interpreter is missing! [1232880371] Bailing out due to errors encountered while initializing the embedded Perl interpreter. (PID=59302) [1232880958] Caught SIGTERM, shutting down... [1232880958] Successfully shutdown... (PID=7489) -- per ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 combinare at gmail.com Sun Jan 25 20:00:13 2009 From: combinare at gmail.com (Eric Michaelis) Date: Sun, 25 Jan 2009 13:00:13 -0600 Subject: Server planning for Nagios install Message-ID: <497CB6BD.7000904@gmail.com> I apologize in advance if this is a well-worn question, but I've spent a day searching Google, the FAQs, the mailing list archives, and every book I can find on Nagios. I'm trying to answer a simple question: are there any guidelines for sizing the server that Nagios will be running on? I realize that each installation will be different based on the number of hosts/services that will be monitored, but I'm looking for something basic--something along the lines of "a base system with 512MB of RAM and 10G disk space is a good starting point for monitoring X hosts running Y services, with a total of X*Y = Z services. Then, assume you need another N GB of ram for every M services you add." Can anyone point me towards any information on planning for the actual Nagios server? ANY help would be greatly appreciated. Thanks! Eric ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jakepaulus at gmail.com Sun Jan 25 20:47:45 2009 From: jakepaulus at gmail.com (Jake) Date: Sun, 25 Jan 2009 14:47:45 -0500 Subject: Server planning for Nagios install In-Reply-To: <497CB6BD.7000904@gmail.com> References: <497CB6BD.7000904@gmail.com> Message-ID: <884bae280901251147u7a5a286cp2aad9f36a835b94c@mail.gmail.com> On Sun, Jan 25, 2009 at 2:00 PM, Eric Michaelis wrote: > > I realize that each installation will be different based on the number > of hosts/services that will be monitored, but I'm looking for something > basic--something along the lines of "a base system with 512MB of RAM and > 10G disk space is a good starting point for monitoring X hosts running Y > services, with a total of X*Y = Z services. Then, assume you need > another N GB of ram for every M services you add." If we assume that many nagios installations montitor modest size environments (less than 100 hosts and 500 services) then any modern single-processor server with 1GB of memory and 10GB of disk should do just fine in most cases. Beyond those numbers my philosophy has been that hardware is cheap so over-spec and if you still run into problems it isn't too hard to scale up anyway. Our current server is dual quad-core xeons (8 cores total) at 2.5GHz with 4GB of memory. On this server I monitor about 850 hosts and 2150 services that are 100% active checks executed server-side (snmp-based checks instead of nrpe). We also collect perf data and hand it over to Nagiosgraph. In addition, we run Cacti for about 200 devices, a few light-weight network-related web apps, etc. and the server sits at about 10% CPU on average and the load average peaks at 2.28. Nagios generates about 1.5MB or less of logs per day and other things like rrd and scratch files for service checks are a constant size so disk space isn't really a concern at all. -- Jake Paulus JakePaulus at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 steve at sliderule.demon.co.uk Sun Jan 25 22:21:21 2009 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Sun, 25 Jan 2009 21:21:21 +0000 Subject: Embedded Perl Problem In-Reply-To: <497C7719.8080704@bsdlabs.com> References: <4979B499.8020604@sliderule.demon.co.uk> <497C7719.8080704@bsdlabs.com> Message-ID: <93073576.20090125212121@sliderule.demon.co.uk> > Steve Burton wrote: >> Hi, >> >> I am running nagios 3.0.6 under FreeBSD 6.3 (installed from ports). >> >> I recently upgraded perl from 5.8.8 to 5.8.9 (also from ports) because >> of an imagined problem I had. I also rebuilt all ports that depended on >> perl including nagios, its libraries and plugins. Then nagios wouldn't >> start quoting a problem with libperl.so. >> I cannot find where I saved the original error message (I was slightly >> stressed at the time. :). >> I rebuilt nagios without embedded perl support to get it running but I >> now have much increased server load. >> >> Can anyone point me towards a solution to this? > Hi, > It has been noted by several people that upgraded Perl on FreeBSD but > I'm sure we'll see a solution soon. > http://lists.freebsd.org/pipermail/freebsd-ports/2009-January/052510.html > This is what I got in nagios.log: > [1232880371] Local time is Sun Jan 25 11:46:11 CET 2009 > [1232880371] LOG VERSION: 2.0 > [1232880371] Error: p1.pl file required for embedded Perl interpreter is > missing! > [1232880371] Bailing out due to errors encountered while initializing > the embedded Perl interpreter. (PID=59302) > [1232880958] Caught SIGTERM, shutting down... > [1232880958] Successfully shutdown... (PID=7489) > -- > per Per, thanks for the update. I thought it must be me :) Steve. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 perldork at webwizarddesign.com Mon Jan 26 01:40:59 2009 From: perldork at webwizarddesign.com (Max) Date: Sun, 25 Jan 2009 19:40:59 -0500 Subject: Server planning for Nagios install In-Reply-To: <497CB6BD.7000904@gmail.com> References: <497CB6BD.7000904@gmail.com> Message-ID: Hi Eric, On Sun, Jan 25, 2009 at 2:00 PM, Eric Michaelis wrote: > I apologize in advance if this is a well-worn question, but I've spent a > day searching Google, the FAQs, the mailing list archives, and every > book I can find on Nagios. I'm trying to answer a simple question: are > there any guidelines for sizing the server that Nagios will be running on? > > I realize that each installation will be different based on the number > of hosts/services that will be monitored, but I'm looking for something > basic--something along the lines of "a base system with 512MB of RAM and > 10G disk space is a good starting point for monitoring X hosts running Y > services, with a total of X*Y = Z services. Then, assume you need > another N GB of ram for every M services you add." Jakes' advice is good :), I have been wanting to figure out how to make a sizing formula, but I think that is quite a difficult thing to come up with. When I was first sizing a server, I used the user profiles feature on nagios.org fo get a good idea of sizing by reading about other peoples' installations: http://www.nagios.org/userprofiles/search.php?search=1 - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 kevin.zellar at gmail.com Mon Jan 26 09:39:56 2009 From: kevin.zellar at gmail.com (Kevin Zellar) Date: Mon, 26 Jan 2009 10:39:56 +0200 Subject: check_ping and dual ip addresses Message-ID: <1438381a0901260039nbf430ednf70f82b69298384f@mail.gmail.com> hello how to use check_ping if there are 2 ip addresses per host? thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 cschneemann at suse.de Mon Jan 26 10:04:58 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Mon, 26 Jan 2009 10:04:58 +0100 Subject: check_ping and dual ip addresses In-Reply-To: <1438381a0901260039nbf430ednf70f82b69298384f@mail.gmail.com> References: <1438381a0901260039nbf430ednf70f82b69298384f@mail.gmail.com> Message-ID: <200901261004.59676.cschneemann@suse.de> On Monday January 26 2009 09:39:56 am Kevin Zellar wrote: > hello > > how to use check_ping if there are 2 ip addresses per host? simply define a check_ping command which you can tell the address by argument: define command{ command_name check_ping_defined_address command_line $USER1$/check_ping -H $ARG3$ -w $ARG1$ -c $ARG2$ -p 5 -4 } than you have to define two services for this server: define service{ use service-template service_description PING Interface1 check_command check_ping_defined_address!160.0,20%!500.0,60%! notifications_enabled 0 process_perf_data 1 } I hope there is an easier way to do this. Maybe with check_multi? Greetings, Christian > > thank you. -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 folkert at vanheusden.com Mon Jan 26 13:45:01 2009 From: folkert at vanheusden.com (Folkert van Heusden) Date: Mon, 26 Jan 2009 13:45:01 +0100 Subject: nagios server connected with multiple connections Message-ID: <20090126124451.GE6158@vanheusden.com> Hi, With our nagios server we check webservers. Now we are connected via 2 connections to the internet. Is it somehow possible to automatically use the other connection if the check fails via the first? That in case the first one goes down. Folkert van Heusden -- Feeling generous? -> http://www.vanheusden.com/wishlist.php ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 cschneemann at suse.de Mon Jan 26 14:25:13 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Mon, 26 Jan 2009 14:25:13 +0100 Subject: nagios server connected with multiple connections In-Reply-To: <20090126124451.GE6158@vanheusden.com> References: <20090126124451.GE6158@vanheusden.com> Message-ID: <200901261425.13949.cschneemann@suse.de> On Monday January 26 2009 01:45:01 pm Folkert van Heusden wrote: > Hi, > > With our nagios server we check webservers. Now we are connected via 2 > connections to the internet. Is it somehow possible to automatically use > the other connection if the check fails via the first? That in case the > first one goes down. When one connection to the internet is down you want to use the other one? I think this should be done by your routers and not by nagios. Your routers should detect that one route is down and failover to the other one. > > > Folkert van Heusden Greetings, Christian -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mariog at absi.be Mon Jan 26 14:35:40 2009 From: mariog at absi.be (mariog at absi.be) Date: Mon, 26 Jan 2009 14:35:40 +0100 Subject: Read Only patch for nagios 2.x which is already installed Message-ID: Hello all, I am looking forward to patching a nagios 2.10 installation in order to make it read-only for some users, the patches i have found in the site of nagios3book.com concern nagios3. i can't seem to find the link for nagios 2.10. also do i have to patch the source code or is it possible to patch an already installed nagios? this is on a solaris 10 machine could you please let me know if this is possible and how to patch and get my hands in the patch. I am looking forward hearing from you... thank you in advance for your help. Mario Garcia Ortiz/ABSI Mario Garcia Ortiz/ABSI -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mariog at absi.be Mon Jan 26 12:54:03 2009 From: mariog at absi.be (mariog at absi.be) Date: Mon, 26 Jan 2009 12:54:03 +0100 Subject: patch already installed nagios 2.10 with read-only patch Message-ID: Hello all, I am looking forward to patching a nagios 2.10 installation in order to make read-only for some users, the patches i have found in the site of nagios3book.com concern nagios3. i can't seem to find the link for nagios 2.10. also do i have to patch the source code or is it possible to patch an already installed nagios? this is on a solaris 10 machine could you please let me know if this is possible and how to patch and get my hands in the patch. I am looking forward hearing from you... thank you in advance for your help. Mario Garcia Ortiz/ABSI -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 Matthias.Flacke at gmx.de Mon Jan 26 14:42:43 2009 From: Matthias.Flacke at gmx.de (Matthias Flacke) Date: Mon, 26 Jan 2009 14:42:43 +0100 Subject: check_ping and dual ip addresses In-Reply-To: <200901261004.59676.cschneemann@suse.de> References: <1438381a0901260039nbf430ednf70f82b69298384f@mail.gmail.com> <200901261004.59676.cschneemann@suse.de> Message-ID: <497DBDD3.4000307@gmx.de> Christian Schneemann wrote: > On Monday January 26 2009 09:39:56 am Kevin Zellar wrote: >> how to use check_ping if there are 2 ip addresses per host? [snip some definitions for check_ping] > I hope there is an easier way to do this. > Maybe with check_multi? Although you can do it with check_multi, it's much easier with Andreas' check_icmp: $ check_icmp -m 1 The -m switch determines how many IPs have to be reachable at minimum to let the whole host check succeed. -Matthias ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Mon Jan 26 14:55:50 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Mon, 26 Jan 2009 07:55:50 -0600 Subject: nagios server connected with multiple connections In-Reply-To: <20090126124451.GE6158@vanheusden.com> References: <20090126124451.GE6158@vanheusden.com> Message-ID: Folkert van Heusden wrote: >Hi, > >With our nagios server we check webservers. Now we are connected via 2 >connections to the internet. Is it somehow possible to automatically use >the other connection if the check fails via the first? That in case the >first one goes down. This is more of a function of how your local network is designed. Assuming the primary internet connection is up and indeed working, but for some reason you can't reach your webserver via that connection, your Nagios server must be able to reach the webservers via some alternate IP address. Then you would have two different service checks and make one the parent of the other. That's just one example. Another example is have your Nagios server on two different IP addresses, one IP address from the primary provider and the other from the second provider. You could setup a second check_ping service, for example, to use a the secondary IP as the source address and if your network is setup to allow it, that second check would route out the second connection. Or if you have glabally routable IP addresses and you are connected via each provider using BGP, you could have a source-based ACL on your router for that second IP address to forcing routing of it across the second connection. Of course, you wouldn't have much of a way to control how that traffic comes back. In the case the primary internet connection actually goes down (which should trigger some kind of Nagios alert), hopefully your routers are setup to automatically fail over to the second connection. James ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 hars at bik-gmbh.de Mon Jan 26 18:15:18 2009 From: hars at bik-gmbh.de (Florian Hars) Date: Mon, 26 Jan 2009 18:15:18 +0100 Subject: nrpe 2.12 doesn't build in OpenBSD Message-ID: <497DEFA6.6070901@bik-gmbh.de> When trying to build nrpe configure fails because it cannot find the ssl libraries. This is preposterous. The error in ./configure is that is looks for a file called libssl.so in $dir, when what it really should test is that gcc test.c -L$dir -lssl works. - Florian. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 benny at bennyvision.com Mon Jan 26 18:24:41 2009 From: benny at bennyvision.com (C. Bensend) Date: Mon, 26 Jan 2009 11:24:41 -0600 (CST) Subject: nrpe 2.12 doesn't build in OpenBSD In-Reply-To: <497DEFA6.6070901@bik-gmbh.de> References: <497DEFA6.6070901@bik-gmbh.de> Message-ID: > When trying to build nrpe configure fails because it cannot find the > ssl libraries. This is preposterous. > > The error in ./configure is that is looks for a file called libssl.so > in $dir, when what it really should test is that gcc test.c -L$dir -lssl > works. While it should indeed build, why not just use the package? Benny -- "I'm so sexy, there's a support group for my stalkers." -- Myspace profile ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 lavalamp at spiritual-machines.org Mon Jan 26 18:41:00 2009 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Mon, 26 Jan 2009 12:41:00 -0500 (EST) Subject: nrpe 2.12 doesn't build in OpenBSD In-Reply-To: References: <497DEFA6.6070901@bik-gmbh.de> Message-ID: Also, lets focus on getting local Ports patches fed back upstream. Speaking of which, I've been meaning to harass the NetBSD/Pkgsrc maintainer about pkgsrc Makefile hooks for permitting toggling external command args with $PKG_OPTIONS OpenBSD local patches: http://www.openbsd.org/cgi-bin/cvsweb/ports/net/nagios/nrpe/patches/ SSL Thing: http://www.openbsd.org/cgi-bin/cvsweb/ports/net/nagios/nrpe/patches/patch-configure?rev=1.2 Note OpenBSD explicitly enables: CONFIGURE_ARGS+=--enable-command-args ~BAS On Mon, 26 Jan 2009, C. Bensend wrote: > > > When trying to build nrpe configure fails because it cannot find the > > ssl libraries. This is preposterous. > > > > The error in ./configure is that is looks for a file called libssl.so > > in $dir, when what it really should test is that gcc test.c -L$dir -lssl ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Mon Jan 26 18:46:25 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 11:46:25 -0600 Subject: nagios service flapping In-Reply-To: <497AE0D7.1030908@networkmail.eu> References: <497AE0D7.1030908@networkmail.eu> Message-ID: On Sat, Jan 24, 2009 at 3:35 AM, Andy Shellam wrote: > Rahul, > > Look through your Nagios logs or run an availability report on one of the > services for the time the flapping was happening. This report will list > what the output was at the time it went from an OK to CRITICAL (or WARNING) > and vice versa - it should give you a pointer to the root cause. > > Thanks Andy! My flapping has stopped now. I still have no idea what caused it. " /usr/local/nagios/var/nagios.log" is rotated daily so I am a little too late on forensics on that one. I suspect the reason was that while testing nrpe I manually scheduled a couple of checks in quick succession by "reschedule the next check of this service" Hopefully this flapping is resolved for now! -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Mon Jan 26 20:18:16 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 13:18:16 -0600 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory Message-ID: I could successfully install "nagios-plugins-1.4.13.tar.gz" but when I try installing "nrpe-2.8" the "make install-plugin" step fails. It does not seem to find the "check_nrpe" file in the libexec directory. All the other check_* files seem to be present but not this one! Any sugesstions what I could be messing up? I've the relevant error below. -- Rahul [root at star177 nrpe-2.8]# make install-plugin cd ./src/ && make install-plugin make[1]: Entering directory `/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src' /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec /usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec /usr/bin/install: cannot stat `check_nrpe': No such file or directory make[1]: *** [install-plugin] Error 1 make[1]: Leaving directory `/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src' make: *** [install-plugin] Error 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 andy-lists at networkmail.eu Mon Jan 26 20:38:54 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Mon, 26 Jan 2009 19:38:54 +0000 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory In-Reply-To: References: Message-ID: <497E114E.20308@networkmail.eu> Hi Rahul, The error it's returning suggests that "check_nrpe" is not in the "src" subdirectory of the current directory (/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src.) It looks as if the plugin has not been built. Do you in fact have "check_nrpe" in the above mentioned directory? What was the final output from "make" ? I'm guessing it threw an error. Andy Rahul Nabar wrote: > I could successfully install "nagios-plugins-1.4.13.tar.gz" but when > I try installing "nrpe-2.8" the "make install-plugin" step fails. > > It does not seem to find the "check_nrpe" file in the libexec > directory. All the other check_* files seem to be present but not this > one! > > Any sugesstions what I could be messing up? I've the relevant error > below. > > -- > Rahul > > > [root at star177 nrpe-2.8]# make install-plugin > cd ./src/ && make install-plugin > make[1]: Entering directory > `/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src' > /usr/bin/install -c -m 775 -o nagios -g nagios -d > /usr/local/nagios/libexec > /usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe > /usr/local/nagios/libexec > /usr/bin/install: cannot stat `check_nrpe': No such file or directory > make[1]: *** [install-plugin] Error 1 > make[1]: Leaving directory > `/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src' > make: *** [install-plugin] Error 2 > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Mon Jan 26 20:38:47 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Jan 2009 13:38:47 -0600 Subject: nagios service flapping In-Reply-To: References: <497AE0D7.1030908@networkmail.eu> Message-ID: <853C90FA-BD97-4B8C-B55C-7860A739D032@ena.com> On Jan 26, 2009, at 11:46 AM, Rahul Nabar wrote: > " /usr/local/nagios/var/nagios.log" is rotated daily so I am a > little too late on forensics on that one. They're rotated into /usr/local/nagios/var/archives/nagios-mm-dd- yyyy-00.log (or the value of log_archive_path) unless you're deleting them yourself. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Mon Jan 26 21:09:20 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 14:09:20 -0600 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory In-Reply-To: <497E114E.20308@networkmail.eu> References: <497E114E.20308@networkmail.eu> Message-ID: On Mon, Jan 26, 2009 at 1:38 PM, Andy Shellam wrote: > Hi Rahul, > > The error it's returning suggests that "check_nrpe" is not in the "src" > subdirectory of the current directory > (/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src.) > > It looks as if the plugin has not been built. Do you in fact have > "check_nrpe" in the above mentioned directory? > > What was the final output from "make" ? I'm guessing it threw an error. > > Thanks again Andy! I don't seem to have the "check_nrpe". Neither here nor in /usr/local/nagios/libexec. All the other scripts seem to be present there though! But not this one. You are right. make did throw errors (I got carried away by my previous successful installs and did not notice!) Snippet attached below but it seems to be a bunch of SSL errors that prevent it from compiling check_nrpe. I traced back further and checked config.log for the nagios-plugins-1.4.13 and it shows: configure:24258: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled I'm not sure why though! "yum info openssl.i686 openssl-devel.i386" show those both packages as "installed" ANy other sugesstions? -- Rahul ///////////////////// /usr/include/openssl/bn.h:287: error: expected specifier-qualifier-list before ???BN_ULONG??? /usr/include/openssl/bn.h:303: error: expected specifier-qualifier-list before ???BN_ULONG??? /usr/include/openssl/bn.h:449: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???BN_mod_word??? /usr/include/openssl/bn.h:450: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???BN_div_word??? /usr/include/openssl/bn.h:451: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? /usr/include/openssl/bn.h:452: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? /usr/include/openssl/bn.h:453: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? /usr/include/openssl/bn.h:454: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? /usr/include/openssl/bn.h:455: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???BN_get_word??? /usr/include/openssl/bn.h:470: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? /usr/include/openssl/bn.h:743: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???bn_mul_add_words??? /usr/include/openssl/bn.h:744: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???bn_mul_words??? /usr/include/openssl/bn.h:745: error: expected ???)??? before ???*??? token /usr/include/openssl/bn.h:746: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???bn_div_words??? /usr/include/openssl/bn.h:747: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???bn_add_words??? /usr/include/openssl/bn.h:748: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???bn_sub_words??? In file included from /usr/include/openssl/ssl.h:978, from ../include/config.h:228, from ../include/common.h:24, from utils.c:32: /usr/include/openssl/ssl3.h:303: error: expected specifier-qualifier-list before ???PQ_64BIT??? In file included from /usr/include/openssl/dtls1.h:64, from /usr/include/openssl/ssl.h:980, from ../include/config.h:228, from ../include/common.h:24, from utils.c:32: /usr/include/openssl/pqueue.h:73: error: expected specifier-qualifier-list before ???PQ_64BIT??? /usr/include/openssl/pqueue.h:80: error: expected ???)??? before ???priority??? /usr/include/openssl/pqueue.h:89: error: expected declaration specifiers or ???...??? before ???PQ_64BIT??? In file included from /usr/include/openssl/ssl.h:980, from ../include/config.h:228, from ../include/common.h:24, from utils.c:32: /usr/include/openssl/dtls1.h:92: error: expected specifier-qualifier-list before ???PQ_64BIT??? make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src' ////////////////////////////////////////////////////// -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Mon Jan 26 21:25:43 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Jan 2009 14:25:43 -0600 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory In-Reply-To: References: Message-ID: On Jan 26, 2009, at 1:18 PM, Rahul Nabar wrote: > I could successfully install "nagios-plugins-1.4.13.tar.gz" but > when I try installing "nrpe-2.8" the "make install-plugin" step fails. > > It does not seem to find the "check_nrpe" file in the libexec > directory. All the other check_* files seem to be present but not > this one! > > Any sugesstions what I could be messing up? I've the relevant error > below. The check_nrpe plugin is built by the nrpe-2.8 package you are trying to install. Did you run './configure', then 'make all' before trying 'make install-plugin'? If so, did it fail and with what error? You can start over by running 'make distclean' then configure, etc again. nrpe-2.8 is pretty old. Current version is 2.12; you should use the latest release. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Mon Jan 26 21:40:08 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 14:40:08 -0600 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory In-Reply-To: References: Message-ID: On Mon, Jan 26, 2009 at 2:25 PM, Marc Powell wrote: > > > The check_nrpe plugin is built by the nrpe-2.8 package you are trying > to install. Did you run './configure', then 'make all' before trying > 'make install-plugin'? If so, did it fail and with what error? You can > start over by running 'make distclean' then configure, etc again No errors were produced by ./configure make all does throw a bunch of SSL errors of the sort: /usr/include/openssl/bn.h:287: error: expected specifier-qualifier-list before ???BN_ULONG??? /usr/include/openssl/bn.h:303: error: expected specifier-qualifier-list before ???BN_ULONG??? /usr/include/openssl/bn.h:449: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???BN_mod_word??? /usr/include/openssl/bn.h:450: error: expected ???=???, ???,???, ???;???, ???asm??? or ???__attribute__??? before ???BN_div_word??? /usr/include/openssl/bn.h:451: error: expected declaration specifiers or ???...??? before ???BN_ULONG??? make[1]: *** [nrpe] Error 1 Again, I suspect somehow it is not finding my SSL libraries? (the config.log for nagiosplugins does say so) > nrpe-2.8 is pretty old. Current version is 2.12; you should use the > latest release. All my older nodes had nrpe-2.8. Is it ok to mix nrpe versions? NRPE versions are only relevant to the remote_clients, right? It does not matter what version of nagios and nagiosplugins I have installed on my monitoring host? -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jpratt at norwich.edu Mon Jan 26 22:00:35 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 26 Jan 2009 16:00:35 -0500 Subject: NRPE installation fails since check_nrpe pluginis not found in the libexec directory In-Reply-To: References: <497E114E.20308@networkmail.eu> Message-ID: <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> From: Rahul Nabar [mailto:rpnabar at gmail.com] Sent: Monday, January 26, 2009 3:09 PM To: Andy Shellam Cc: Nagios-Users Mailinglist Subject: Re: [Nagios-users] NRPE installation fails since check_nrpe pluginis not found in the libexec directory On Mon, Jan 26, 2009 at 1:38 PM, Andy Shellam wrote: Hi Rahul, The error it's returning suggests that "check_nrpe" is not in the "src" subdirectory of the current directory (/usr/local/src/nagios_nodes/downloads/nrpe-2.8/src.) It looks as if the plugin has not been built. ?Do you in fact have "check_nrpe" in the above mentioned directory? What was the final output from "make" ? ?I'm guessing it threw an error. Thanks again Andy! I don't seem to have the "check_nrpe". Neither here nor in /usr/local/nagios/libexec. All the other scripts seem to be present there though! But not this one. You are right. make did throw errors (I got carried away by my previous successful installs and did not notice!) Snippet attached below but it seems to be a bunch of SSL errors that prevent it from compiling check_nrpe. I traced back further and checked config.log for the nagios-plugins-1.4.13 and it shows: configure:24258: WARNING: OpenSSL or GnuTLS libs could not be found or were disabled I'm not sure why though! "yum info openssl.i686 openssl-devel.i386" show those both packages as "installed" ANy other sugesstions? -- Rahul ----------- Yes, check to ensure gnutls is also installed (rpm -q | grep tls) , and also run "ldconfig -v | grep ssl" and just be sure it can see the openssl-related *.so file(s).... ;) Regards, Jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Mon Jan 26 22:17:45 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 15:17:45 -0600 Subject: NRPE installation fails since check_nrpe pluginis not found in the libexec directory In-Reply-To: <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> References: <497E114E.20308@networkmail.eu> <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> Message-ID: > > > Yes, check to ensure gnutls is also installed (rpm -q | grep tls) , and > also run "ldconfig -v | grep ssl" and just be sure it can see the > openssl-related *.so file(s).... ;) > > Thanks Jamie! I'm stumped here am doing all checks possible to sniff out what my problems are! I am not very sure, but the output below seems to indicate that we have what we need right? rpm -q gnutls gnutls-1.6.3-2.fc8 gnutls-1.6.3-2.fc8 ldconfig -v | grep ssl libssl.so.6 -> libssl.so.0.9.8b libssl.so.6 -> libssl.so.0.9.8b libssl3.so -> libssl3.so libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.3.0 libssl3.so -> libssl3.so libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.3.0 >and just be sure it can see the openssl-related *.so file(s).... ;) ls -al /usr/lib/libgnutls-openssl.so.13.3.0 -rwxr-xr-x 1 root root 102572 2007-08-21 16:25 /usr/lib/libgnutls-openssl.so.13.3.0 Hmm..I am not sure what you mean. Is the above a sufficient check? Feel free to shoot more suggestions at me, however unlikely! At this point I really am grasping at straws! :-( In case it matters I am running FC8; pretty standard. Hence I had never expected nrpe to be so difficult to get up and running! -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Mon Jan 26 23:46:43 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Mon, 26 Jan 2009 17:46:43 -0500 Subject: NDOutils and Nagios startup speed Message-ID: <497E3D53.7020805@iweb.com> Hi all, We are running 5 Nagios instances (4 x Nagios2 and 1 x Nagios3) which are all using NDOutils. (and more without NDOutils) Our instances are restarted frequently as we are constantly adding new hosts and services. (re)starting an instance can take about 3-4 minutes because NDOutils has to export every configuration and status to MySQL. Unfortunately, we can't afford this kind of downtime while Nagios/NDOutils is busy exporting to MySQL. Also, host/service status are not available while the reload is occuring. Here is some stats: instance, hosts, services, Nagios version 1, 2074, 4721, 3 2, 2196, 2299, 2 3, 2800, 2841, 2 4, 1, 1, 2 5, 1804, 1821, 2 NDOutils is used to retrieve host/service status from an external application which needs real-time data and is used by several peoples at the same time. We tried to code a new CGI script and see if we could retrieve the status directly from Nagios but it's even slower. If I disable NDOutils, Nagios is able to start within about 10-20 seconds. Is there a way to speed things up? Any help would be appreciated. Thanks. -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jpratt at norwich.edu Mon Jan 26 22:34:26 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 26 Jan 2009 16:34:26 -0500 Subject: NRPE installation fails since check_nrpe pluginis not found in the libexec directory In-Reply-To: References: <497E114E.20308@networkmail.eu> <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> Message-ID: <8147CCE3C4A8764DA9980125EE70E8237A6D95@nuexchg.norwich.edu> From: Rahul Nabar [mailto:rpnabar at gmail.com] Sent: Monday, January 26, 2009 4:18 PM To: James Pratt Cc: Nagios Users Subject: Re: [Nagios-users] NRPE installation fails since check_nrpe pluginis not found in the libexec directory Yes, check to ensure gnutls is also installed (rpm -q | grep tls) , and also run "ldconfig -v | grep ssl" and just be sure it can see the openssl-related *.so file(s).... ;) Thanks Jamie! I'm stumped here am doing all checks possible to sniff out what my problems are! I am not very sure, but the output below seems to indicate that we have what we need right? rpm -q gnutls gnutls-1.6.3-2.fc8 gnutls-1.6.3-2.fc8 ldconfig -v | grep ssl ??????? libssl.so.6 -> libssl.so.0.9.8b ??????? libssl.so.6 -> libssl.so.0.9.8b ??????? libssl3.so -> libssl3.so ??????? libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.3.0 ??????? libssl3.so -> libssl3.so ??????? libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.3.0 >and just be sure it can see the openssl-related *.so file(s).... ;) ls -al /usr/lib/libgnutls-openssl.so.13.3.0 -rwxr-xr-x 1 root root 102572 2007-08-21 16:25 /usr/lib/libgnutls-openssl.so.13.3.0 Hmm..I am not sure what you mean. Is the above a sufficient check? Feel free to shoot more suggestions at me, however unlikely! At this point I really am grasping at straws! :-( In case it matters I am running FC8; pretty standard. Hence I had never expected nrpe to be so difficult to get up and running! -- Rahul -- Yes all appears to be in order... I'm not sure what to tell you there .... The only other thing I can think of is that FC8 is just too old (?)... I don't think there are even updates for it anymore... You may want to just install FC10 or 11 (Or whatever the most recent is!) - I remember I once setup Nagios on FC10 or 11 and it was a breeze using RPM's for everything, and the Nagios site has good instructions... (I now use CentOS 5.2 - fedora's release cycle is much too fast, and CentOS is as stable as RHEL for me... Sorry I could not be of more help! Regards, Jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 27 00:21:39 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Jan 2009 17:21:39 -0600 Subject: NDOutils and Nagios startup speed In-Reply-To: <497E3D53.7020805@iweb.com> References: <497E3D53.7020805@iweb.com> Message-ID: <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> On Jan 26, 2009, at 4:46 PM, Mathieu Gagn? wrote: > Unfortunately, we can't afford this kind of downtime while > Nagios/NDOutils is busy exporting to MySQL. Also, host/service status > are not available while the reload is occuring. While I can't really speak to the more general problem (I experience it too), I did find the 'Retain status file over a reload' patch at http://altinity.blogs.com/dotorg/2007/09/nagios-patch-da.html to be extremely helpful for this particular symptom. Reloads are completely transparent to GUI users now. > NDOutils is used to retrieve host/service status from an external > application which needs real-time data and is used by several > peoples at > the same time. Same here (geographic map of outages, currently in testing). Haven't been bothered enough to do anything about it during that 3-4 minute window. > Is there a way to speed things up? Any help would be appreciated. > Thanks. I'm interested in tips as well. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Mon Jan 26 22:43:31 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 15:43:31 -0600 Subject: NRPE installation fails since check_nrpe pluginis not found in the libexec directory In-Reply-To: <8147CCE3C4A8764DA9980125EE70E8237A6D95@nuexchg.norwich.edu> References: <497E114E.20308@networkmail.eu> <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> <8147CCE3C4A8764DA9980125EE70E8237A6D95@nuexchg.norwich.edu> Message-ID: On Mon, Jan 26, 2009 at 3:34 PM, James Pratt wrote: > > > Yes all appears to be in order... I'm not sure what to tell you there .... > The only other thing I can think of is that FC8 is just too old (?)... I > don't think there are even updates for it anymore... > Thanks for your tips James! I don't think it is an FC8 issue. Just last week I got nrpe running on about 175 machines all using FC8. THese were 32 bit machines though. Today I tried extending this to our remaining machines (64 bit) and that is when i started running into problems. The 64 bit machines might be a red herring though. It's just this class of machines ; may not have to do anything with the 64 bit arch. > > You may want to just install FC10 or 11 (Or whatever the most recent is!) - > I remember I once setup Nagios on FC10 or 11 and it was a breeze using RPM's > for everything, and the Nagios site has good instructions... (I now use > CentOS 5.2 - fedora's release cycle is much too fast, and CentOS is as > stable as RHEL for me... Upgrading my OS isnt an option unfortunately. Too big a project to unroll on 256 machines for now. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 andy-lists at networkmail.eu Mon Jan 26 22:40:00 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Mon, 26 Jan 2009 21:40:00 +0000 Subject: NRPE installation fails since check_nrpe plugin is not found in the libexec directory In-Reply-To: References: Message-ID: <497E2DB0.2070600@networkmail.eu> Hi Rahul, > make all does throw a bunch of SSL errors of the sort: > > /usr/include/openssl/bn.h:287: error: expected > specifier-qualifier-list before ???BN_ULONG??? > /usr/include/openssl/bn.h:303: error: expected > specifier-qualifier-list before ???BN_ULONG??? > /usr/include/openssl/bn.h:449: error: expected ???=???, ???,???, > ???;???, ???asm??? or ???__attribute__??? before ???BN_mod_word??? > /usr/include/openssl/bn.h:450: error: expected ???=???, ???,???, > ???;???, ???asm??? or ???__attribute__??? before ???BN_div_word??? > /usr/include/openssl/bn.h:451: error: expected declaration specifiers > or ???...??? before ???BN_ULONG??? > make[1]: *** [nrpe] Error 1 > > Again, I suspect somehow it is not finding my SSL libraries? (the > config.log for nagiosplugins does say so) I did have similar issues compiling NRPE, and I believe it's an incompatibility with the way the configure script produces the OpenSSL build path, and how the OpenSSL-internal header files are included - you have to force the include path manually - as follows: First find where the libssl*.so and libcrypto*.so libraries are, and take a note of the base path - e.g. if they're in /usr/local/openssl/lib, the base path is /usr/local/openssl, if they're in /usr/local/lib, the base path is /usr/local etc. To reproduce the "issue": Run ./configure with your options, and pass in the extra options as follows: --with-ssl=/usr/local/openssl --with-ssl-inc=/usr/local/openssl/include --with-ssl-lib=/usr/local/openssl/lib In the configure log file, the CFLAGS are set as "-g -O2 -I/usr/local/openssl/include/openssl", but some of the OpenSSL-included files look for header files specified as "openssl/*.h" - which creates a full path of "/usr/local/openssl/include/openssl/openssl/*.h" - incorrect! You have to manually force the CFLAGS to be "-I/usr/local/openssl/include" - so modify your configure line as follows: CFLAGS="-g -O2 -I/usr/local/openssl/include" ./configure [your extra options] --with-ssl=/usr/local/openssl --with-ssl-inc=/usr/local/openssl/include --with-ssl-lib=/usr/local/openssl/lib The new CFLAGS environment variable then becomes "-g -O2 -I/usr/local/openssl/include -I/usr/local/openssl/include/openssl" - so Nagios is happy (as it can just include "rsa.h" and so is OpenSSL if it internally includes files as "openssl/*.h." Remember to replace /usr/local/openssl with your OpenSSL base path in all the above examples. This is on my Debian Linux systems, I haven't tried compiling NRPE on Solaris 10 yet. > > > nrpe-2.8 is pretty old. Current version is 2.12; you should use the > latest release. > > > All my older nodes had nrpe-2.8. Is it ok to mix nrpe versions? > NRPE versions are only relevant to the remote_clients, right? It does > not matter what version of nagios and nagiosplugins I have installed > on my monitoring host? Yes, you're correct, it shouldn't matter to Nagios which version of NRPE is running. Regards, Andy ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mgagne at iweb.com Tue Jan 27 01:48:33 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Mon, 26 Jan 2009 19:48:33 -0500 Subject: NDOutils and Nagios startup speed In-Reply-To: <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> References: <497E3D53.7020805@iweb.com> <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> Message-ID: <497E59E1.80003@iweb.com> Hi, Marc Powell wrote: > On Jan 26, 2009, at 4:46 PM, Mathieu Gagn? wrote: > >> Unfortunately, we can't afford this kind of downtime while >> Nagios/NDOutils is busy exporting to MySQL. Also, host/service status >> are not available while the reload is occuring. > > While I can't really speak to the more general problem (I experience > it too), I did find the 'Retain status file over a reload' patch at http://altinity.blogs.com/dotorg/2007/09/nagios-patch-da.html > to be extremely helpful for this particular symptom. Reloads are > completely transparent to GUI users now. I never had this issue when sending the external command "RESTART_PROGRAM" to Nagios. Host/service status are still available to me. My understanding is that "RESTART_PROGRAM" is the equivalent of issuing a "reload" or sending a HUP signal. Unfortunately, during that time, checks are still not performed as Nagios is busy broking events to NDOutils and to MySQL in a synchronous way. I found this patch on the same page: Do not resend retained status to NDO http://svn.opsview.org/opsview/tags/nagios-patch-day/opsview-base/patches/nagios_stop_logging_retained_states_to_ndo.patch The following questions come to my mind: - What could be the consequences of using such patch? - When will old entries from the table "nagios_hoststatus" be deleted? (same for "nagios_servicestatus") - What does aggregated_dump mean? (the patch changes it from FALSE to TRUE) -> int update_host_status(host *hst,int aggregated_dump){ -> int update_service_status(service *svc,int aggregated_dump){ - The comment tells: "a check cycle needs to complete before NDO has all the status information". What does it mean? To which "check cycle" does it refer to? - Does it have any link to "aggregate_status_updates" and "status_update_interval"? Does it mean status will be dump later and not at startup? "status_update_interval" seconds after startup? >> Is there a way to speed things up? Any help would be appreciated. >> Thanks. > > I'm interested in tips as well. I had to create several SQL indexes. At startup, the broker deletes old entries and limits the deletion by "start_time" and/or "scheduled_time". Unfortunately, there is no indexes on tables with such columns, putting MySQL on its knees as soon as Nagios restarts. Disclaimer: I'm not a DBA and can't guaranty the efficiency of each of them. I might have also missed some. ALTER TABLE `nagios_servicechecks` ADD INDEX `start_time` ( `instance_id` , `start_time` ) ; ALTER TABLE `nagios_timedevents` ADD INDEX `scheduled_time` ( `instance_id` , `scheduled_time` ); ALTER TABLE `nagios_systemcommands` ADD INDEX `start_time` ( `instance_id` , `start_time` ); ALTER TABLE `nagios_hostchecks` ADD INDEX `start_time` ( `instance_id` , `start_time` ); ALTER TABLE `nagios_eventhandlers` ADD INDEX `start_time` ( `instance_id` , `start_time` ); ALTER TABLE `nagios_instances` ADD INDEX `instance_name` ( `instance_name`,`instance_id` ) ; ALTER TABLE `nagios_hosts` ADD INDEX host_object_id (host_object_id); -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Tue Jan 27 03:10:09 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Jan 2009 20:10:09 -0600 Subject: selectively disable notifications for services inheriting a specific template? In-Reply-To: <1233019235.1938.37.camel@gilgamesh.erdc.hpc.mil> References: <1233019235.1938.37.camel@gilgamesh.erdc.hpc.mil> Message-ID: <452090C9-7AB5-41C7-BE90-29014A9F1671@ena.com> Please always respond on list so that others may learn from your experience. More below... On Jan 26, 2009, at 7:20 PM, Owen LaGarde wrote: >> How do you think it would alter the check behavior? Are you sure >> about >> that? > > ... by causing a given service check to not fire because it's > dependencies > are not met. At least that's what it did when I tried it, and my > read of > the docs is that this behavior is precisely what servicedependencies > and > hostdependencies are for -- to alter the firing of checks based on > other > checks' output, not to alter behavior of [non-sub-]processes > launched as a > result of check failure, based on other checks' output. http://nagios.sourceforge.net/docs/3_0/dependencies.html - See the examples and "Execution Dependencies" You have two configurables. notification_failure_criteria and execution_failure_criteria. The first controls when notifications should go out and the last when the service checks for the dependent service should still be executed. This last can be set to 'n' to continue to run dependent service checks regardless of the status of the service being depended upon. >> As far as doubling your config, it certainly doesn't have to if >> you're >> smart about it. I think a servicegroup in the template + 1 dependency >> might be all you need. I can't say for sure since I don't use >> dependencies but the it looks workable from the documentation... > > Doesn't the documentation indicate that a servicedependency > definition must have > the host and service fields populated (though the -dependent forms > can be left > blank ala' wildcard inheritance)? Of course I tried this route, I'm > not a > *complete* idiot. Ok, at least not often. 8-P` When I left > either host or > service blank nagios complained about an incomplete > servicedependency clause. You may have tried this. My understanding is that you have a single service check (call it tgt-service) running on a single host (call it tgt-host). A bunch of services on many hosts depend on this being OK. You want the notifications to be suppressed if it's not OK but the checks to still continue regardless of it's status. I would approach it as follows. For each service that has this dependency, add it to a servicegroup -- define service { host_name remote-host service_description remote-service check_command check_remote ... servicegroups d_service ... } You may have a template that you already use for those services and can make the change in only one place. Then, define a service dependency that applies to the entire servicegroup -- define servicedependency{ host_name tgt-host service_description tgt-service dependent_servicegroup_name d_service execution_failure_criteria n notification_failure_criteria w,u,c,p } Again, I don't use service dependencies but this looks like the way to do it. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Tue Jan 27 02:47:49 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Mon, 26 Jan 2009 19:47:49 -0600 Subject: NRPE installation fails since check_nrpe pluginis not found in the libexec directory In-Reply-To: <8147CCE3C4A8764DA9980125EE70E8237A6D95@nuexchg.norwich.edu> References: <497E114E.20308@networkmail.eu> <8147CCE3C4A8764DA9980125EE70E8237A6D1D@nuexchg.norwich.edu> <8147CCE3C4A8764DA9980125EE70E8237A6D95@nuexchg.norwich.edu> Message-ID: On Mon, Jan 26, 2009 at 3:34 PM, James Pratt wrote: > > Yes all appears to be in order... I'm not sure what to tell you there .... > The only other thing I can think of is that FC8 is just too old (?)... I > don't think there are even updates for it anymore... > > You may want to just install FC10 or 11 (Or whatever the most recent is!) - > I remember I once setup Nagios on FC10 or 11 and it was a breeze using RPM's > for everything, and the Nagios site has good instructions... (I now use > CentOS 5.2 - fedora's release cycle is much too fast, and CentOS is as > stable as RHEL for me... > Solved it! Thanks for all your help guys. Well, the 64 bit issue was a red herring. I am still not a 100% sure what my issue was but here's what I think: It was all a problem with NFS mounted drives. I have a base system and several of my remote hosts find their executibles by NFS mounts on the relevant dirs. I was trying to install from one such machine and that's when I had these problems. I went back and tried on the home-machine where these NFS mounts reside and it all worked. No idea why! The only suspicion I have is some soft-links business. These don't span the NFS mounts I remember. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jpratt at norwich.edu Tue Jan 27 02:48:38 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 26 Jan 2009 20:48:38 -0500 Subject: FW: NRPE installation fails since check_nrpe pluginis not found in the libexec directory Message-ID: <8147CCE3C4A8764DA9980125EE70E8237A6E27@nuexchg.norwich.edu> From: Rahul Nabar [mailto:rpnabar at gmail.com] Sent: Monday, January 26, 2009 8:47 PM To: James Pratt Subject: Re: [Nagios-users] NRPE installation fails since check_nrpe pluginis not found in the libexec directory Solved it! Thanks for all your help guys. Well, the 64 bit issue was a red herring. I am still not a 100% sure what my issue was? but here's what I think: It was all a problem with NFS mounted drives. I have a base system and several of my remote hosts find their executibles by NFS mounts on the relevant dirs. I was trying to install from one such machine and that's when I had these problems. I went back and tried on the home-machine where these NFS mounts reside and it all worked. No idea why! The only suspicion I have is some soft-links business. These don't span the NFS mounts I remember. -- Rahul ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Tue Jan 27 06:24:59 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Tue, 27 Jan 2009 10:54:59 +0530 Subject: Using nagios check_httpfor webbasedauthentication In-Reply-To: <497B96EC.8060300@web.de> References: <497B96EC.8060300@web.de> Message-ID: Hi Peter, To the extent followed with some googling, there is no help on this. Dropping it off for now. Thanks Venu -----Original Message----- From: Peter.Ringe at web.de [mailto:Peter.Ringe at web.de] Sent: Sunday, January 25, 2009 4:02 AM To: Venugopal S Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication Hi Venu, do you know 'check_website'. I use it for monitoring a handful websites. It's able to follow applications even with dynamically generated URLs. As far as I remember (I dont need it) it follows redirects. It' worth a look. Regards, Peter Venugopal S schrieb: > Hi Marc, > > Will try this out on Tuesday. Thanks for your immense help. > > Happy weekend for all of you there. > > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Friday, January 23, 2009 7:17 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Using nagios check_httpfor > webbasedauthentication > > > On Jan 22, 2009, at 11:59 PM, Venugopal S wrote: > >> Hi Joerge, >> >> As you said "welcome venu" is not in the response in spite of giving >> valid credentials. That is why I am wondering ! >> Even I gave the -v switch and found in the HTML response that "welcome >> venu" is not found. And the response HTML is the same as signin.do. It >> must have thrown me the login success page isn't it ? > >> ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / >> signin.do -p 80 -P "email=svenugopaal at gmail.com&password=podhum" -s >> "welcome venu" > > > > Hi Venu, > > I created an account to test and see that I gave you some incorrect > information. Looking at the form HTML, the URL that the form > information is actually posted to is /signinaction.do, not /signin.do > so that will need to change that in the command definition. > > Now with the correct URL and successful login, I see that the success > 'page' returned is just a 302 redirect that bounces you to > > Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L > > Unfortunately we come to a stopping point here. check_http will need > to follow that redirect if it's going to see the text you're expecting > to see on the final page and it can do that with --onredirect=follow. > The problem is that the coding of the final landing page appears to > absolutely require the presence of a login cookie to know that you're > logged in. check_http does not pass cookies as part of a redirect (but > can be programmed to pass static cookies using the -k switch). The > cookies that are being passed to us appear to be temporary session > cookies anyway so I'm not sure how useful it would be to create > another check for the customerwelcome.do page. > > What I ended up with is -- > > ./check_http -I 199.107.237.196 -H ww12.1800flowers.com -u / > signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r > html --invert-regex > > This will ensure that we see the 302 redirect returned by a successful > login and that we do not see the word 'html' in a web page instead of > the 302 redirect (meaning the login failed). Essentially, you'll know > that the login worked, but not that the customerwelcome.do page was > actually displayed. That may be enough for your needs. > > -- > Marc > > > > > > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. > The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. > > www.aztecsoft.com > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Tue Jan 27 07:11:34 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Tue, 27 Jan 2009 11:41:34 +0530 Subject: Using nagios check_http forwebbasedauthentication In-Reply-To: <000f01c97d69$6d1ec160$b00aa8c0@pcmhi> References: <000f01c97d69$6d1ec160$b00aa8c0@pcmhi> Message-ID: Hi all, If all I have to do is to check for the liveliness of a website, why can't I go with HTTPUnit instead of Nagios (or) any of its plugins. Thanks Venu -----Original Message----- From: Marouane HIMDI [mailto:marouane.himdi at kereval.com] Sent: Friday, January 23, 2009 8:17 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http forwebbasedauthentication I'll recommand the same tool webinject as Narendran. I have played with it. Good to generate http/https request and calculate response time and verify some words in reponse request. Best regards Dr Marouane HIMDI Ing?nieur R&D/R&D Engineer KEREVAL 4, rue H?l?ne Boucher Z.A. Bellevue 35235 Thorign? Fouillard Tel : +33 (0)2 23 20 36 64 http://www.kereval.com P Pensez ? l'environnement : n'imprimez ce message et ses pi?ces jointes que si n?cessaire ! -----Message d'origine----- De?: narendran.neelamegam at wipro.com [mailto:narendran.neelamegam at wipro.com] Envoy??: vendredi 23 janvier 2009 15:26 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Using nagios check_http forwebbasedauthentication You may also try http://www.webinject.org/plugin.html Regards, Naren -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 22, 2009 8:46 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Using nagios check_http for webbasedauthentication On Jan 22, 2009, at 7:55 AM, Venugopal S wrote: > > Hi Marc, > > Thanks for the reply. I am even now vague about how to proceed. > > Let me tell you the need : > > I have to open http://ww12.1800flowers.com/signin.do and enter my > email(svenugopaal at gmail.com) and password("podhum") in order to login. Looking at the source of the page, the sign-in form has the following pertinent fields -- The field names that would be passed as the POST are 'email' and 'password'. Now, I don't know what command{} definitions you have for check_http or how they're configured so I'll show you how to create a new one very specific to this test -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" } Set that as the check_command for a service associated with the host and nagios will verify that the web server does not return an HTTP error after login. Note that if your server returns a standard 200 response indicating OK even if there is a login error (most likely), you'll want to identify a word or string of text that should appear in the page after successful login, but not for a failure, and look for that with the -s parameter -- define command { command_name check_flowers_login command_line $USER1$/check_http -I $HOSTADDRESS$ -H ww12.1800flowers.com -u /signin.do -P "email=svenugopaal at gmail.com&password=podhum" -s "you are logged in" } > Though this looks like a lot of hand holding, I have no other go. My charge is 1 local specialty beer for all Hand Holding Help. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ---------------------------------------------------------------------------- -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 44kbps at gmail.com Tue Jan 27 11:44:30 2009 From: 44kbps at gmail.com (44kbps) Date: Tue, 27 Jan 2009 11:44:30 +0100 Subject: NSClient++: Connection Refused, again and again, with default config Message-ID: Hi people of the world :P I'm just running the NSclient on a Windows machine. I got the default configuration of the NSC.ini but I have an error in the nagios: Connection refused I modified the NSC.ini to run the client on the 12489 port, and I add the IP of the nagios server on allowed host. I have no information about the client version, the cpu or some information in the nagios. I run a netstat in the windows machine and I get the listening port at 12489 but when I try to connect from telnet on the linux (nagios) machine I've got a "Connection closed by foreign host." I scan the machine with the nmap. It don't show the 12489 open of filtered. What can be wrong? In the Windows machine there are no firewall. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 kaushalshriyan at gmail.com Tue Jan 27 11:47:04 2009 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Tue, 27 Jan 2009 16:17:04 +0530 Subject: check_http Message-ID: <6b16fb4c0901270247r40524b1bm355e4149fcf44a41@mail.gmail.com> Hi I have a situation whenever my website www.example.com goes down due to the following reason,it gets redirected to error.example.com 1. tomcat is stopped 2. all threads are busy 3. tomcat not responding bcos of load or some code bug or DB error. Nagios should send an Critical Alert. Can it be done using check_http? sudo -u nagios /usr/nagios/libexec/check_http -H www.example.com--onredirect=critical Does it make sense ? Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 at medin.name Tue Jan 27 13:20:21 2009 From: michael at medin.name (Michael Medin) Date: Tue, 27 Jan 2009 11:20:21 -0100 (GMT+1) Subject: NSClient++: Connection Refused, again and again, with default config In-Reply-To: References: Message-ID: <45347.217.13.248.2.1233058821.squirrel@ssl.nakednuns.org> Best way to debug this is: 1, runt: NSClient++ /test (after stopping the service) and see what happends. 2, enable debug logging and check the nsc.log file. // Michael Medin > Hi people of the world :P > > I'm just running the NSclient on a Windows machine. I got the default > configuration of the NSC.ini but I have an error in the nagios: > Connection refused > I modified the NSC.ini to run the client on the 12489 port, and I add the > IP > of the nagios server on allowed host. > I have no information about the client version, the cpu or some > information > in the nagios. > I run a netstat in the windows machine and I get the listening port at > 12489 > but when I try to connect from telnet on the linux (nagios) machine > I've got a "Connection closed by foreign host." > I scan the machine with the nmap. It don't show the 12489 open of > filtered. > > What can be wrong? > In the Windows machine there are no firewall. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Tue Jan 27 12:37:48 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 27 Jan 2009 03:37:48 -0800 Subject: NSClient++: Connection Refused, again and again, with default config In-Reply-To: References: Message-ID: <497EF20C.3000909@kkeane.com> "Connection closed by foreign host" really suggests that the connection could be established, but NSClient closes it immediately. Check for a typo in the allowed host configuration. The rest is just general networking troubleshooting, in case I'm wrong on that. First, a stupid question: you say that netstat shows that port 12489 is listening - but is it listening on the right interface/IP address? It may only be listening on 127.0.0.1 - localhost. Can you ping from the Linux host to the Windows machine? If you can't, it's a network connectivity issue. Check cables, routers etc. While you are at it, also check that you are using the correct DNS name, and that it maps to the correct IP address. I've sometimes connected to the wrong workstation by accident. If you CAN ping from the Linux host to the Windows machine, try connecting to port 12489 from the Windows machine itself. Try both connecting to localhost, and to the IP address of the windows machine. If either one of these succeed, double-check that there really is no firewall on the Windows machine. Also try connecting to port 12489 from another workstation connected to the same network switch. If that succeeds, there might be a router/firewall somewhere in your network that blocks this traffic. 44kbps wrote: > Hi people of the world :P > > I'm just running the NSclient on a Windows machine. I got the default > configuration of the NSC.ini but I have an error in the nagios: > Connection refused > I modified the NSC.ini to run the client on the 12489 port, and I add > the IP of the nagios server on allowed host. > I have no information about the client version, the cpu or some > information in the nagios. > I run a netstat in the windows machine and I get the listening port at > 12489 but when I try to connect from telnet on the linux (nagios) machine > I've got a "Connection closed by foreign host." > I scan the machine with the nmap. It don't show the 12489 open of > filtered. > > What can be wrong? > In the Windows machine there are no firewall. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ml at nicole-haehnel.de Tue Jan 27 17:14:44 2009 From: ml at nicole-haehnel.de (=?ISO-8859-15?Q?Nicole_H=E4hnel?=) Date: Tue, 27 Jan 2009 17:14:44 +0100 Subject: Browser reload problem Message-ID: <497F32F4.3010902@nicole-haehnel.de> Hi, since nagios 3.1.0 I can not reload any status.cgi page in firefox 3 and ie7. If I try to reload, it always jumps back to the main page. Is this a config problem? How can I normaly reload the site again? Thanks! Nicole ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dale at chatham.org Tue Jan 27 19:56:50 2009 From: dale at chatham.org (Dale J. Chatham) Date: Tue, 27 Jan 2009 12:56:50 -0600 Subject: check_http In-Reply-To: <6b16fb4c0901270247r40524b1bm355e4149fcf44a41@mail.gmail.com> References: <6b16fb4c0901270247r40524b1bm355e4149fcf44a41@mail.gmail.com> Message-ID: <497F58F2.5050408@chatham.org> Look at the -s option on check_http. Check to see that it returns something on the page. If it doesn't, alert. Kaushal Shriyan wrote: > Hi > > I have a situation whenever my website www.example.com > goes down due to the following reason,it gets > redirected to error.example.com > > 1. tomcat is stopped > 2. all threads are busy > 3. tomcat not responding bcos of load or some code bug or DB error. > > Nagios should send an Critical Alert. Can it be done using check_http? > > sudo -u nagios /usr/nagios/libexec/check_http -H www.example.com > --onredirect=critical > > Does it make sense ? > > Thanks and Regards > > Kaushal > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 TNeu at sjm.com Tue Jan 27 23:21:34 2009 From: TNeu at sjm.com (Neu, Timothy) Date: Tue, 27 Jan 2009 16:21:34 -0600 Subject: compiling plugins on Solaris 10 Message-ID: I'm getting the following error trying to compile nagios-plugins. I've tried pointing both to the Sun SSL package and the one from Sunfreeware. I've also tried both Sun's compiler and GCC. No joy. I'm hoping someone else has seen this problem and managed to get past it. gcc -g -O2 -I/usr/local/openssl/include -o check_http check_http.o sslutils.o netutils.o utils.o -L/opt/sjm/sources/nagios-plugins-1.4.13/plugins -L/usr/local/ssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a -lresolv -lssl -lcrypto -lnsl -lsocket -ldl Undefined first referenced symbol in file OpenSSL_add_all_algorithms sslutils.o ld: fatal: Symbol referencing errors. No output written to check_http collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `check_http' Current working directory /opt/sjm/sources/nagios-plugins-1.4.13/plugins *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/sjm/sources/nagios-plugins-1.4.13 *** Error code 1 make: Fatal error: Command failed for target `all' This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Wed Jan 28 00:20:20 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Tue, 27 Jan 2009 17:20:20 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. Message-ID: I set up my nagios system to monitor 256 odd nodes each with about 6 services (direct and NRPE). It is working fine but my load averages have started edging upwards. Not critical yet but I wanted some tips to make things more efficient and see if there are things I might have done ineffeciently. One of the points I identified is this: I am doing a ping and ssh check on each server. This seems redundant. Is there a way to set it up so that: Do a ssh check; if this succeds obviously ping is ok. If it fails do a ping check and report on that. How about the other way around too? I have a bunch of NRPE checks: load_average, total-processes, scratch and home dir usage, pbs_mom, ntp_time. If ssh fails then there is obviously no reason to try these other checks right? But I think the monitoring_host wastes its cycles still trying them (based on the "Last Check" time) Any tips how I can achieve these effeciency tweaks? Or is there a problem in my strategy? Any other performance tweaks so that I can squeeze every ounce of Nagios performace? Already I am using NRPE rather than check_by_sshh since I was told the latter might be ineffecient for the monitoring host load usage. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 alexus at gmail.com Wed Jan 28 00:54:40 2009 From: alexus at gmail.com (alexus) Date: Tue, 27 Jan 2009 18:54:40 -0500 Subject: nagiosQL Message-ID: <6ae50c2d0901271554l38cf1e5fr4e3944053b2dc44a@mail.gmail.com> does anyone knows if latest version of nagiosQL lacks any features vs command prompt configuration? -- http://alexus.org/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jakepaulus at gmail.com Wed Jan 28 00:58:28 2009 From: jakepaulus at gmail.com (Jake) Date: Tue, 27 Jan 2009 18:58:28 -0500 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: Message-ID: <884bae280901271558r7403ff72r64a8219ec12097c6@mail.gmail.com> On Tue, Jan 27, 2009 at 6:20 PM, Rahul Nabar wrote: > I set up my nagios system to monitor 256 odd nodes each with about 6 > services (direct and NRPE). It is working fine but my load averages have > started edging upwards. Not critical yet but I wanted some tips to make > things more efficient and see if there are things I might have done > ineffeciently. > > One of the points I identified is this: I am doing a ping and ssh check on > each server. This seems redundant. Is there a way to set it up so that: > Do a ssh check; if this succeds obviously ping is ok. If it fails do a ping > check and report on that. > > > How about the other way around too? I have a bunch of NRPE checks: > load_average, total-processes, scratch and home dir usage, pbs_mom, > ntp_time. If ssh fails then there is obviously no reason to try these other > checks right? But I think the monitoring_host wastes its cycles still trying > them (based on the "Last Check" time) > I use ping as both a service check and a host check because i want to ping all of the time to measure latency, etc. I wouldn't think so much about eliminating service checks that aren't directly redundant as much as making sure the checks you do are as fast as possible. Specifically, look for any service check that takes longer than a second. Also make sure your timeouts are set low as this can easily be a source for high load averages - e.g. if you consider 500ms latency on the ping service to be critical then why not set your timeout value to one or two seconds instead of 10 (which is the default for check_ping). That single change for check_ping made a huge difference for me and that was before I started even looking at other services like my check_dell-hardware and check_hp-hardware which were awfully slow prior to rewriting them (now available on nagiosexchange.) -- Jake Paulus JakePaulus at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Wed Jan 28 01:04:05 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Tue, 27 Jan 2009 19:04:05 -0500 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: Message-ID: <497FA0F5.7080409@iweb.com> Hi, Rahul Nabar wrote: > I set up my nagios system to monitor 256 odd nodes each with about 6 > services (direct and NRPE). It is working fine but my load averages have > started edging upwards. Not critical yet but I wanted some tips to make > things more efficient and see if there are things I might have done > ineffeciently. We have +2000 hosts and +4700 services configured on one of our Nagios instance. Load average is between 1.3 an 2.0 which I find acceptable. Our hardware is the following: Core2 Duo 4300 @ 1.80GHz with 2GB of RAM. > One of the points I identified is this: I am doing a ping and ssh check > on each server. This seems redundant. Is there a way to set it up so that: > Do a ssh check; if this succeds obviously ping is ok. If it fails do a > ping check and report on that. "check-host-alive" is only triggered when a service associated with the host changes state. However, I personally consider PING to be a service in itself, monitoring the network performance/quality. PING can still answer but with degraded performances (packet loss, poor response time). You probably want to be informed about such problems. (ie. in case of a (D)DoS where your network port is maxed out) > How about the other way around too? I have a bunch of NRPE checks: > load_average, total-processes, scratch and home dir usage, pbs_mom, > ntp_time. If ssh fails then there is obviously no reason to try these > other checks right? But I think the monitoring_host wastes its cycles > still trying them (based on the "Last Check" time) The SSH service state can be CRITICAL while all the other services are still OK. (ie. ssh server misconfiguration) You probably want to be informed about it too. > Any tips how I can achieve these effeciency tweaks? Or is there a > problem in my strategy? Any other performance tweaks so that I can > squeeze every ounce of Nagios performace? > > Already I am using NRPE rather than check_by_sshh since I was told the > latter might be ineffecient for the monitoring host load usage. What kind of server are you using? Also, what's the check_interval? A 1 minute interval might put the server on its knee since it would be scheduling and executing 1536 checks per minute. (as per your informations) There's a lot of factors that could impact Nagios performance and you should be aware of all of them. Reading the documentation and understanding the impact of each configuration would be a good start. -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jmoseley at corp.xanadoo.com Wed Jan 28 03:05:37 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Tue, 27 Jan 2009 20:05:37 -0600 Subject: check_dhcp oddness Message-ID: Playing around with check_dhcp (installed via RHEL3 repository - nagios-plugins-1.4.11, check_dhcp v. 1.7), I noticed that by setting a timeout, the check result doesn't return until the timeout limit is reached. If I use no timeout, successful result is received in about 1 second. If I use a timeout of 10, the result takes 10 seconds to return, using 30 takes 30 seconds, etc. This doesn't seem like the correct behavior. Anyone else notice this? James Moseley ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 robby.kahlon at cubic.com Wed Jan 28 02:59:23 2009 From: robby.kahlon at cubic.com (Kahlon, Robby) Date: Tue, 27 Jan 2009 17:59:23 -0800 Subject: NSClient Error Message Message-ID: <28919A12B5A1504CB3599372AA286FC602BC3FDA@bb-cts-ex1.cts.cubic.cub> Hi, I am monitoring Windows XP desktops using NSClient. The monitoring works fine but I see the following error message in the Application Logs on the Windows XP desktop: NSClient CollectData: Call to retrieve counter value for \Processor(_total)\% Processor Time failed, returning status code 2147485654. Does anyone know the reason and fix for the above error message? Thanks, Robby -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 amontibello at gmail.com Wed Jan 28 04:00:53 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 27 Jan 2009 22:00:53 -0500 Subject: NSClient Error Message In-Reply-To: <28919A12B5A1504CB3599372AA286FC602BC3FDA@bb-cts-ex1.cts.cubic.cub> References: <28919A12B5A1504CB3599372AA286FC602BC3FDA@bb-cts-ex1.cts.cubic.cub> Message-ID: Hi Robby, I believe this indicates that there is a problem with the _Total instance of Processor Counter. I have found Some XP systems do not have the _Total instance, If you have trouble resolving NSClient you can upgrade to NSClinet++ or NC_Net and still use check_nt for that Host. Tony (Author of NC_NEt) On Tue, Jan 27, 2009 at 8:59 PM, Kahlon, Robby wrote: > Hi, > > > > I am monitoring Windows XP desktops using NSClient. The monitoring works > fine but I see the following error message in the Application Logs on the > Windows XP desktop: > > > > NSClient CollectData: Call to retrieve counter value for > \Processor(_total)\% Processor Time failed, returning status code > 2147485654. > > > > Does anyone know the reason and fix for the above error message? > > > > Thanks, > > Robby > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 atstake at gmail.com Wed Jan 28 06:42:27 2009 From: atstake at gmail.com (Chris) Date: Wed, 28 Jan 2009 16:42:27 +1100 Subject: check_snmp - sendmail on localhost Message-ID: <8adc88580901272142i681cf6eagbb7c642fad9e97c4@mail.gmail.com> I'm trying to monitor if sendmail is running on localhost for one of my servers via Nagios. I can do snmpwalk -c -v1 server | grep "sendmail: accepting connections" and get HOST-RESOURCES-MIB::hrSWRunPath.9260 = STRING: "sendmail: accepting connections". I got Nagios to check for snmp via hrSWRunPath.9260 but 9260 changes to something else when I restart sendmail and my Nagios check shows UNKNOWN. I tried ./check_snmp -H -C -s "sendmail: accepting connections" with no luck. I get error: SNMP problem - No data received from host Is there any way I can get snmp to check check if sendmail is running and if not it should give Status as Critical? On the server snmpd.conf I have proc sendmail - not sure if that's going to help. Don't want to use nrpe if I can use SNMP. Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ian at acces.co.jp Wed Jan 28 07:26:23 2009 From: ian at acces.co.jp (Ian Masters) Date: Wed, 28 Jan 2009 15:26:23 +0900 Subject: check_snmp - sendmail on localhost In-Reply-To: <8adc88580901272142i681cf6eagbb7c642fad9e97c4@mail.gmail.com> References: <8adc88580901272142i681cf6eagbb7c642fad9e97c4@mail.gmail.com> Message-ID: <497FFA8F.2090700@acces.co.jp> > I'm trying to monitor if sendmail is running on localhost for one of > my servers via Nagios. Is there a reason you don't want to use check_smtp? Ian ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 kyleodonnell at gmail.com Wed Jan 28 08:32:03 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Wed, 28 Jan 2009 02:32:03 -0500 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <497FA0F5.7080409@iweb.com> References: <497FA0F5.7080409@iweb.com> Message-ID: <2274b9c30901272332j2add449bhcd66f593c88d0531@mail.gmail.com> I use service deps. Most of my services are nrpe checks and I create a dep on nrpe. If a check comes back critical (or which ever state you choose to execute the dep) it does an nrpe check, if nrpe returns critical (or whichever state you choose) it stops executing the services dependant on nrpe. My load is less than 2 on a machine with 800 hosts and 6000 services. Active host checks are disabled. As for ping I don't check as a service only a host check which gets executed if any service turns critical. You can use check_ssh as the host check command instead of ping if you prefer as well. On 1/27/09, Mathieu Gagn? wrote: > Hi, > > > Rahul Nabar wrote: >> I set up my nagios system to monitor 256 odd nodes each with about 6 >> services (direct and NRPE). It is working fine but my load averages have >> started edging upwards. Not critical yet but I wanted some tips to make >> things more efficient and see if there are things I might have done >> ineffeciently. > > We have +2000 hosts and +4700 services configured on one of our Nagios > instance. Load average is between 1.3 an 2.0 which I find acceptable. > > Our hardware is the following: Core2 Duo 4300 @ 1.80GHz with 2GB of RAM. > >> One of the points I identified is this: I am doing a ping and ssh check >> on each server. This seems redundant. Is there a way to set it up so that: >> Do a ssh check; if this succeds obviously ping is ok. If it fails do a >> ping check and report on that. > > "check-host-alive" is only triggered when a service associated with the > host changes state. > > However, I personally consider PING to be a service in itself, > monitoring the network performance/quality. > > PING can still answer but with degraded performances (packet loss, poor > response time). You probably want to be informed about such problems. > (ie. in case of a (D)DoS where your network port is maxed out) > >> How about the other way around too? I have a bunch of NRPE checks: >> load_average, total-processes, scratch and home dir usage, pbs_mom, >> ntp_time. If ssh fails then there is obviously no reason to try these >> other checks right? But I think the monitoring_host wastes its cycles >> still trying them (based on the "Last Check" time) > > The SSH service state can be CRITICAL while all the other services are > still OK. (ie. ssh server misconfiguration) You probably want to be > informed about it too. > >> Any tips how I can achieve these effeciency tweaks? Or is there a >> problem in my strategy? Any other performance tweaks so that I can >> squeeze every ounce of Nagios performace? >> >> Already I am using NRPE rather than check_by_sshh since I was told the >> latter might be ineffecient for the monitoring host load usage. > > What kind of server are you using? > > Also, what's the check_interval? A 1 minute interval might put the > server on its knee since it would be scheduling and executing 1536 > checks per minute. (as per your informations) > > There's a lot of factors that could impact Nagios performance and you > should be aware of all of them. Reading the documentation and > understanding the impact of each configuration would be a good start. > > -- > Mathieu > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 atstake at gmail.com Wed Jan 28 10:29:14 2009 From: atstake at gmail.com (Chris) Date: Wed, 28 Jan 2009 01:29:14 -0800 Subject: check_snmp - sendmail on localhost In-Reply-To: <497FFA8F.2090700@acces.co.jp> References: <8adc88580901272142i681cf6eagbb7c642fad9e97c4@mail.gmail.com> <497FFA8F.2090700@acces.co.jp> Message-ID: <8adc88580901280129y2a486f21sdf243df42cdd2bef@mail.gmail.com> On Tue, Jan 27, 2009 at 10:26 PM, Ian Masters wrote: >> I'm trying to monitor if sendmail is running on localhost for one of >> my servers via Nagios. > > Is there a reason you don't want to use check_smtp? check_smtp doesn't work when SMTP is listening on 127.0.0.1 on a remote server. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 kenneho.ndu at gmail.com Wed Jan 28 11:16:19 2009 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Wed, 28 Jan 2009 11:16:19 +0100 Subject: Define notification contacts based on hostgroup Message-ID: Hi. Is there a way to configure Nagios to define contacts based on hostgroups? In other words: I'd like to send all notifications for a hostgroup A to the contact X. Is this possible? Regards, kenneho -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 jsoler at adssl.com Wed Jan 28 11:37:03 2009 From: jsoler at adssl.com (Jaume Soler i Mir - A.D.S. S.L.) Date: Wed, 28 Jan 2009 11:37:03 +0100 Subject: Mail Notifications by external SMTP Message-ID: <4980354F.6030507@adssl.com> Hi people! I'm just configuring the nagios3 and I have some trouble about the notifications by email. I don't want to use a local smtp server (defined on the commands.cfg) I want to use a external smtp server to send the notifications e-mails. Is this possible? Is some packet to do this? Thanks, ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jsoler at adssl.com Wed Jan 28 12:08:51 2009 From: jsoler at adssl.com (Jaume Soler i Mir - A.D.S. S.L.) Date: Wed, 28 Jan 2009 12:08:51 +0100 Subject: Mail Notifications by external SMTP In-Reply-To: <4980354F.6030507@adssl.com> References: <4980354F.6030507@adssl.com> Message-ID: <49803CC3.10807@adssl.com> I define some more the problem: I see the commands.cfg and I will write a new command or modify the notify-host-by-email by using some external packet like msmtp. I tryed this and I have no success. Anyone with this problem? Is msmtp the best way? It's possible with mutt with an e-mail account configurated? Jaume Soler i Mir - A.D.S. S.L. escribi?: > Hi people! > > I'm just configuring the nagios3 and I have some trouble about the > notifications by email. > I don't want to use a local smtp server (defined on the commands.cfg) I > want to use a external smtp server to send the notifications e-mails. > Is this possible? Is some packet to do this? > > Thanks, > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- Jaume Soler i Mir, jsoler at adssl.com A.D.S. An?lisis i Disseny de Software, Olott ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Wed Jan 28 12:24:48 2009 From: nlaurance at zindep.com (Nicolas LAURANCE) Date: Wed, 28 Jan 2009 12:24:48 +0100 Subject: debug notifications Message-ID: <49804080.5070602@zindep.com> hello all, I'm using nagios 2.11 on fedora I think I configured correctly (but obviously not) the notification for the host, service and contacts in the web interface Notifications : ENABLED however notifications never trigger I configured to have notifications logged, but I don't see any in the log Is there a way to track more precisely the notification filter process to find out where they are discarded ? many thanks Nicolas -------------- next part -------------- A non-text attachment was scrubbed... Name: nlaurance.vcf Type: text/x-vcard Size: 331 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 Sascha.Runschke at gfkl.com Wed Jan 28 12:25:13 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 28 Jan 2009 12:25:13 +0100 Subject: Antwort: Mail Notifications by external SMTP In-Reply-To: <4980354F.6030507@adssl.com> References: <4980354F.6030507@adssl.com> Message-ID: "Jaume Soler i Mir - A.D.S. S.L." schrieb am 28.01.2009 11:37:03: > I'm just configuring the nagios3 and I have some trouble about the > notifications by email. > I don't want to use a local smtp server (defined on the commands.cfg) I > want to use a external smtp server to send the notifications e-mails. > Is this possible? Is some packet to do this? Nagios is not responsible for how your smtp mail is dispatched. Nagios passes it to the local submit agent (most likely sendmail) and is done with it. It's up to the MTA (sendmail) to decide what to do with a mail. If you want it to relay mails to an external SMTP, configure sendmail to do it for you -> check the smarthost setting. Regards Sascha -- Sascha Runschke IT-Infrastruktur fon : +49 (201) / 102-1879 fax : +49 (201) / 102-1102105 mobil : +49 (173) / 5419665 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ml at nicole-haehnel.de Wed Jan 28 13:06:53 2009 From: ml at nicole-haehnel.de (=?ISO-8859-15?Q?Nicole_H=E4hnel?=) Date: Wed, 28 Jan 2009 13:06:53 +0100 Subject: service notfication problems Message-ID: <49804A5D.1000508@nicole-haehnel.de> Hi, we have about 20 servers with up to 25 service checks on each server. The services are running directly on a vpn gateway. If the connection dies, I get emails from all services because i cannot implement a hierachy. How can I enhance the configuration of nagios to prevent me from beeing flooded by mails? Thanks! Nicole ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Wed Jan 28 13:53:26 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 28 Jan 2009 07:53:26 -0500 Subject: Define notification contacts based on hostgroup In-Reply-To: References: Message-ID: <49805546.7010406@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/01/09 05:16 AM, Kenneth Holter wrote: > Hi. > > > Is there a way to configure Nagios to define contacts based on > hostgroups? In other words: I'd like to send all notifications for a > hostgroup A to the contact X. Is this possible? I use host templates that assign the hostgroup with the "hostgroups" directive, so all I have to do is to oberride the contact group on these. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJgFVF6dZ+Kt5BchYRAjLLAJ4mkMz/IxzPX4rVq6Tryw5Usw3r6gCeK76J QaSnyr+qZmCM8DgLtOSwTHU= =1KYr -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Wed Jan 28 14:10:41 2009 From: nlaurance at zindep.com (Nicolas Laurance) Date: Wed, 28 Jan 2009 14:10:41 +0100 Subject: debug notifications In-Reply-To: <49804080.5070602@zindep.com> References: <49804080.5070602@zindep.com> Message-ID: <49805951.7010907@zindep.com> nagios.cfg log_notifications=1 notification_timeout=30 enable_notifications=1 service : define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } define contact{ contact_name nicolas alias Nicolas service_notification_period 24x7 host_notification_period 24x7 service_notification_options u,w,c,r host_notification_options d service_notification_commands notify-by-email host_notification_commands host-notify-by-email email nicolas at XXXXXXXX.org pager XXXXXXXX } define contactgroup{ contactgroup_name nil alias Nicolas members nicolas } define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_period 24x7 register 0 } define host{ use generic-host host_name oust alias Oust address 127.0.0.1 max_check_attempts 2 notification_interval 60 notification_period 24x7 notifications_enabled 1 contact_groups nil } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 register 0 } define service{ name oust-service use generic-service check_period 24x7 max_check_attempts 2 normal_check_interval 1 retry_check_interval 1 contact_groups nil notification_interval 3 notification_period 24x7 notifications_enabled 1 register 0 } define service{ use oust-service host_name oust service_description Inondation check_command check_oust!1.0!1.0 } ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Wed Jan 28 12:06:09 2009 From: nlaurance at zindep.com (Nicolas Laurance) Date: Wed, 28 Jan 2009 12:06:09 +0100 Subject: notifications not triggered Message-ID: <49803C21.60900@zindep.com> hello all, I'm using nagios 2.11 on fedora I think I configured correctly (but obviously not) the notification for the host, service and contacts in the web interface Notifications : ENABLED however notifications never trigger I configured to have notifications logged, but I don't see any in the log Is there a way to track more precisely the notification filter process to find out where they are discarded ? many thanks Nicolas ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 28 16:22:54 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 09:22:54 -0600 Subject: debug notifications In-Reply-To: <49804080.5070602@zindep.com> References: <49804080.5070602@zindep.com> Message-ID: <0A4CC80D-55A3-4C87-8D78-83FDD6D992C8@ena.com> On Jan 28, 2009, at 5:24 AM, Nicolas LAURANCE wrote: > hello all, > > I'm using nagios 2.11 on fedora > > I think I configured correctly (but obviously not) the notification > for the host, service and contacts > > in the web interface Notifications : ENABLED Is this the global setting or the one specific to the host or service? They can be different. > however notifications never trigger > > I configured to have notifications logged, but I don't see any in > the log > > > Is there a way to track more precisely the notification filter > process to find out where they are discarded ? Nagios doesn't believe it's supposed to send notifications. Either the notification_options for the host/service or contact don't include the notification type you are trying to send, their notification period doesn't include the time they're trying to be sent or the host/service isn't reaching a HARD state are the three most likely reasons. If you want another pair of eyes to help verify, you'll need to post those parts of the config (host/service definition, contactgroup definition, contact definition, timeperiod definition, nagios.log entries related to the host/service your troubleshooting, etc). You could also take a peek at objects.cache (how nagios interpreted the config files) and status.dat (current information about hosts/ services including changes made via the CGI's) and verify that they are how you expect them to be. Pretty much your only other option, if you're sure these settings are correct, is to enable debug mode. With nagios-2.x, that means a recompile, passing one or more of the following flags to ./configure -- --enable-DEBUG0 shows function entry and exit --enable-DEBUG1 shows general info messages --enable-DEBUG2 shows warning messages --enable-DEBUG3 shows scheduled events (service and host checks... etc) --enable-DEBUG4 shows service and host notifications --enable-DEBUG5 shows SQL queries --enable-DEBUGALL shows all debugging messages -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 28 16:25:38 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 09:25:38 -0600 Subject: Mail Notifications by external SMTP In-Reply-To: <4980354F.6030507@adssl.com> References: <4980354F.6030507@adssl.com> Message-ID: <23C498C3-4D16-411A-AE9A-A8829A74C54A@ena.com> On Jan 28, 2009, at 4:37 AM, Jaume Soler i Mir - A.D.S. S.L. wrote: > Hi people! > > I'm just configuring the nagios3 and I have some trouble about the > notifications by email. > I don't want to use a local smtp server (defined on the > commands.cfg) I > want to use a external smtp server to send the notifications e-mails. > Is this possible? Is some packet to do this? There's a FAQ entry on this. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Wed Jan 28 16:35:29 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 28 Jan 2009 15:35:29 +0000 Subject: service notfication problems In-Reply-To: <49804A5D.1000508@nicole-haehnel.de> References: <49804A5D.1000508@nicole-haehnel.de> Message-ID: <200901281535.29768.assaf.flatto@ssp-intl.com> On Wednesday 28 January 2009 12:06:53 Nicole H?hnel wrote: > Hi, > > we have about 20 servers with up to 25 service checks on each server. > The services are running directly on a vpn gateway. > If the connection dies, I get emails from all services because i cannot > implement a hierachy. You want to look at parenting http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host > > How can I enhance the configuration of nagios to prevent me from beeing > flooded by mails? or dependencies : http://nagios.sourceforge.net/docs/3_0/dependencies.html > > > Thanks! > Nicole > Assaf > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 shadhin71 at gmail.com Wed Jan 28 16:43:16 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 28 Jan 2009 15:43:16 +0000 Subject: Nagios command line interface Message-ID: <6db4a4200901280743g2a3c7eceu55e25c7f40395d09@mail.gmail.com> All, Just wanted to know if there is any project going on for nagios command line interface? What is the process to request something like that. I would like to actively participate in a project like that. I know there is "cnagios" and also there are external command macros. However, I am proposing a full fledge command line interface with the following capability. Please advise on this. Thanks status: Get current status for service, host, service at host check: Immediately recheck service, host, service at host (no state update) reschedule: Reschedule service, host, service at host (state update on run) acknowledge: Acknowledge current alert for service, host, service at host unacknowledge: Undo acknowledge for service, host, service at host inhibit: Silence all alerts for service, host, service at host uninhibit: Undo inhibit for service, host, service at host fix: Run predefined fix for service at host alerthistory: Obtain alert history for service, host, service at host checkhistory: Obtain check history for service, host, service at host commandhistory: Obtain command history for service, host, service at host fixhistory: Obtain fix history for service, host, service at host -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 shadhin71 at gmail.com Wed Jan 28 18:22:43 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 28 Jan 2009 17:22:43 +0000 Subject: perl external command example Message-ID: <6db4a4200901280922t1a956221s277337b8948a2037@mail.gmail.com> Can someone please give me an example how to submit external command using perl script. I am trying to do this and its now working. The command I am passing to named pipe is something like this. Thanks "ACKNOWLEDGE_HOST_PROBLEM;hostname;1;1;1;1;sr2690;testing "1233162775 my code is like this. #!/usr/bin/perl #use strict; #use Getopt::Long qw(:config no_ignore_case); use warnings; use Data::Dumper; use Getopt::Long ; my ($action, $host, $service, $username, $comment, $HELP); my $now=`date +%s`; chomp ( $now ); my $commandfile='/var/log/nagios/rw/nagios.cmd'; open CF, ">$commandfile" or die $!; my $usage = < \$action, "m|host=s" => \$host, "s|service=s" => \$service, "u|username=s" => \$username, "c|comment=s" => \$comment, "h|help" => \$HELP ); #print "$usage" if ($HELP && $action eq ''); if ( $HELP && ( ! ( defined ( $action) ) ) ) { print "$usage"; } &process_command(); sub process_command { #if (( $action eq 'status') || ( $action eq 'check') || ( $action eq 'reschedule') # || ( $action eq 'acknowledge') || ( $action eq 'ack') || ($action eq 'dis_check') # || ($action eq 'ena_check') || ($action eq 'dis_not') || ($action eq 'ena_not')) { if ( $action eq 'acknowledge' ) { process_acknowledge (); } elsif ( $action eq 'reschedule' ) { process_reschedule (); } else { print " Only possible actions are status check reschedule acknowledge disable_check enable_check disable_notification and enable_notification\n"; } } sub process_acknowledge { if ( defined ( $service ) ) { send_to_named_pipe ( "ACKNOWLEDGE_SVC_PROBLEM;$host;$service;1;1;1;$username;$comment" ); } else { send_to_named_pipe ( "ACKNOWLEDGE_HOST_PROBLEM;$host;1;1;1;1;$username;$comment" ); } } sub process_reschedule { if ( defined ( $service ) ) { send_to_named_pipe ( "SCHEDULE_FORCED_SVC_CHECK;host1;service1;1110741500" ); } else { send_to_named_pipe ( "SCHEDULE_FORCED_HOST_CHECK;$host;1110741500\n" ); } } sub send_to_named_pipe { my ($command ) = @_; chomp ( $command ); if ( defined ( $command ) ) { print CF "\"$command\n\"$now"; } } close CF; -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 simon.kainz at tugraz.at Wed Jan 28 18:24:09 2009 From: simon.kainz at tugraz.at (Simon Kainz) Date: Wed, 28 Jan 2009 18:24:09 +0100 Subject: ExtInfo for Hostgroup display Message-ID: <498094B9.5040607@tugraz.at> Hi list ! Could somebody give me a clue as how to achieve some kind of "extinfo" for the hostgroup display ? I would need the possibility to add an external link to the hostgroup display, with hostgroup-specific parameters. TIA, -- Simon Kainz, BSc Graz, University of Technology Department Computing Phone: ++43 (0) 316 / 873 6885 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Wed Jan 28 18:36:39 2009 From: nlaurance at zindep.com (Nicolas Laurance) Date: Wed, 28 Jan 2009 18:36:39 +0100 Subject: debug notifications In-Reply-To: <0A4CC80D-55A3-4C87-8D78-83FDD6D992C8@ena.com> References: <49804080.5070602@zindep.com> <0A4CC80D-55A3-4C87-8D78-83FDD6D992C8@ena.com> Message-ID: <498097A7.8020905@zindep.com> Marc Powell a ecrit: First thank you for your answer > > Nagios doesn't believe it's supposed to send notifications. Either the > notification_options for the host/service or contact don't include the > notification type you are trying to send, their notification period > doesn't include the time they're trying to be sent or the host/service > isn't reaching a HARD state are the three most likely reasons. the services hit the HARD state, I see this in the log If you > want another pair of eyes to help verify, you'll need to post those > parts of the config (host/service definition, contactgroup definition, > contact definition, timeperiod definition, nagios.log entries related > to the host/service your troubleshooting, etc). > I have sent the config used as a first reply > You could also take a peek at objects.cache (how nagios interpreted > the config files) and status.dat (current information about hosts/ > services including changes made via the CGI's) and verify that they > are how you expect them to be. > I will, thank you for the hint I'm in production, it used to send notification. There must be smthg wrong with the config > Pretty much your only other option, if you're sure these settings are > correct, is to enable debug mode. With nagios-2.x, that means a > recompile, passing one or more of the following flags to ./configure -- > > --enable-DEBUG0 shows function entry and exit > --enable-DEBUG1 shows general info messages > --enable-DEBUG2 shows warning messages > --enable-DEBUG3 shows scheduled events (service and host checks... etc) > --enable-DEBUG4 shows service and host notifications > --enable-DEBUG5 shows SQL queries > --enable-DEBUGALL shows all debugging messages > > -- > Marc > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 28 19:13:13 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 12:13:13 -0600 Subject: perl external command example In-Reply-To: <6db4a4200901280922t1a956221s277337b8948a2037@mail.gmail.com> References: <6db4a4200901280922t1a956221s277337b8948a2037@mail.gmail.com> Message-ID: <145EC2B7-61E6-4EA2-82B3-EBA58F924791@ena.com> On Jan 28, 2009, at 11:22 AM, shadih rahman wrote: > Can someone please give me an example how to submit external command > using perl script. I am trying to do this and its now working. The > command I am passing to named pipe is something like this. Thanks > } > sub send_to_named_pipe { > my ($command ) = @_; > chomp ( $command ); > > if ( defined ( $command ) ) { > print CF "\"$command\n\"$now"; Hi Shadih, This format is incorrect. Based on your input of 'ACKNOWLEDGE_SVC_PROBLEM;$host;$service;1;1;1;$username;$comment', what's being written to the command pipe looks like "ACKNOWLEDGE_SVC_PROBLEM;$host;$service;1;1;1;$username;$comment " xxxxxxxxxxx (where xxxxxxxxx == timestamp). The correct format is [xxxxxxxxx] ACKNOWLEDGE_SVC_PROBLEM;$host;$service;1;1;1;$username; $comment (where xxxxxxx==timestamp) You want --- if ( defined ( $command ) ) { print CF "\[$now\] $command\n"; -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Wed Jan 28 19:15:01 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 12:15:01 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <884bae280901271558r7403ff72r64a8219ec12097c6@mail.gmail.com> References: <884bae280901271558r7403ff72r64a8219ec12097c6@mail.gmail.com> Message-ID: On Tue, Jan 27, 2009 at 5:58 PM, Jake wrote: > > > I use ping as both a service check and a host check because i want to ping > all of the time to measure latency, etc. I wouldn't think so much about > eliminating service checks that aren't directly redundant as much as making > sure the checks you do are as fast as possible. > Thanks Jake! I'll heed the advice. I wasn't sure about what are the parts best worth tackling to gain efficiency. > > Specifically, look for any service check that takes longer than a second. > Is there a place where it logs how long a service check too? How do you usually find out? I can only see when it was last checked on my interface but not how long it took. > Also make sure your timeouts are set low as this can easily be a source for > high load averages - e.g. if you consider 500ms latency on the ping service > to be critical then why not set your timeout value to one or two seconds > instead of 10 (which is the default for check_ping). > Is "*service_check_timeout=60" in the main config file the timeout that you are talking about? I might be mistaking what you mean.* Shouldn't this matter only for the nodes that *do* have a latency problem alone? I hope these will remain a minor fraction. But the major chunk will be the ones that respond within the timeout but still a *lot* of work. How does it work out that the timeout made such a huge difference for you? > That single change for check_ping made a huge difference for me and that > was before I started even looking at other services like my > check_dell-hardware and check_hp-hardware which were awfully slow prior to > rewriting them (now available on nagiosexchange.) > > > -- > Jake Paulus > JakePaulus at gmail.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Wed Jan 28 19:18:01 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 12:18:01 -0600 Subject: debug notifications In-Reply-To: <498097A7.8020905@zindep.com> References: <49804080.5070602@zindep.com> <0A4CC80D-55A3-4C87-8D78-83FDD6D992C8@ena.com> <498097A7.8020905@zindep.com> Message-ID: <3AEDBE2C-54DC-47F4-A734-AB89DB2B3BCE@ena.com> On Jan 28, 2009, at 11:36 AM, Nicolas Laurance wrote: > I have sent the config used as a first reply Yup, I missed it -- > define service{ > name generic-service > active_checks_enabled 1 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 1 > check_freshness 0 > notifications_enabled 1 > event_handler_enabled 1 > flap_detection_enabled 0 > failure_prediction_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > is_volatile 0 > register 0 > } > > > define service{ > name oust-service > use generic-service > check_period 24x7 > max_check_attempts 2 > normal_check_interval 1 > retry_check_interval 1 > contact_groups nil > notification_interval 3 > notification_period 24x7 > notifications_enabled 1 > register 0 > } > > define service{ > use oust-service > host_name oust > service_description Inondation > check_command check_oust!1.0!1.0 > } You have no notification_options specified for this service. Nagios will not notify for it. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Wed Jan 28 19:26:28 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 12:26:28 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <2274b9c30901272332j2add449bhcd66f593c88d0531@mail.gmail.com> References: <497FA0F5.7080409@iweb.com> <2274b9c30901272332j2add449bhcd66f593c88d0531@mail.gmail.com> Message-ID: On Wed, Jan 28, 2009 at 1:32 AM, Kyle O'Donnell wrote: > I use service deps. Most of my services are nrpe checks and I create > a dep on nrpe. If a check comes back critical (or which ever state > you choose to execute the dep) it does an nrpe check, if nrpe returns > critical (or whichever state you choose) it stops executing the > services dependant on nrpe. > > My load is less than 2 on a machine with 800 hosts and 6000 services. > > Active host checks are disabled. So, you have no active checks at all? Or just no active host checks? I am a bit confused. All my checks are active. How does one disable active host checks? And then when will the host check be done at all? > > As for ping I don't check as a service only a host check which gets > executed if any service turns critical. That might be the exact functionality I was thinking of. If I look under "Host Status Details for all host groups" I see very recent and regular checks being done on all my hosts under the column for "Last Check". Even ones that do not have any services critical. Or will I only see the behavior you describe after I somehow disable "active host checks"? > > You can use check_ssh as the host check command instead of ping if you > prefer as well. > Good idea. But I still want ping to fall back on. If ssh fails only then ping. Is that logical? -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 marc at ena.com Wed Jan 28 19:32:43 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 12:32:43 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: Message-ID: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> On Jan 27, 2009, at 5:20 PM, Rahul Nabar wrote: > I set up my nagios system to monitor 256 odd nodes each with about 6 > services (direct and NRPE). It is working fine but my load averages > have started edging upwards. Not critical yet but I wanted some tips > to make things more efficient and see if there are things I might > have done ineffeciently. Just out of curiosity, what is the magnitude of the 'edging upwards' that you are seeing? Just about any hardware released in the past 5 years or so should have no problems with that number of checks at all if they're 'normal' (base nagios-plugins) and run at a normal interval (5 min). Even older hardware could probably do it. What are they types of checks you are performing? How often? Are they perl checks and do you have the embedded perl interpreter (ePN) enabled? That last is a double-edged sword. While you can see improvements in the speed of perl plugin execution, if the plugins aren't written for the ePN, they can cause problems. There are also might be leaks with the ePN but I'm not sure if they're not related to the plugins themselves. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Wed Jan 28 19:30:59 2009 From: nlaurance at zindep.com (Nicolas Laurance) Date: Wed, 28 Jan 2009 19:30:59 +0100 Subject: debug notifications In-Reply-To: <3AEDBE2C-54DC-47F4-A734-AB89DB2B3BCE@ena.com> References: <49804080.5070602@zindep.com> <0A4CC80D-55A3-4C87-8D78-83FDD6D992C8@ena.com> <498097A7.8020905@zindep.com> <3AEDBE2C-54DC-47F4-A734-AB89DB2B3BCE@ena.com> Message-ID: <4980A463.6050203@zindep.com> > > You have no notification_options specified for this service. Nagios > will not notify for it. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > I found this following the hint of reading the .dat files ! yes, I was missing the options notification_options c,w,u,r I now see the notifications in the log I don't receive anything yet, but that is another matter to investigate ;) many thanks ! ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 fferreira at osiatis.es Wed Jan 28 19:43:37 2009 From: fferreira at osiatis.es (Felipe Ferreira) Date: Wed, 28 Jan 2009 19:43:37 +0100 Subject: Problems Compile Nagios Plugin 1.4.13 In-Reply-To: References: Message-ID: <4980A759.3060806@osiatis.es> Problems Compile Nagios Plugin 1.4.13 All this big mess started because I need the MySQLPerf plugin, whitch is a really cool plugin, but it needs the source of the official plugin. The version I am compiling is the 1.4.13 and by running the config I got quite a few (WARNINGS): configure:22140: WARNING: Skipping PostgreSQL plugin (check_pgsql) configure:22142: WARNING: LIBS="-lcrypt " CPPFLAGS="" configure:22144: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS). configure:22309: WARNING: Skipping radius plugin configure:22311: WARNING: install radius libs to compile this plugin (see REQUIREMENTS). configure:22581: WARNING: Skipping LDAP plugin configure:22583: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS). configure:27208: WARNING: Could not find qmail-qstat or eqivalent Since I would like to have the radius and LDAP option I looked up the Requirements: check_radius # wget ftp://ftp.cityline.net/pub/radiusclient/radiusclient-0.3.tar.gz # cd radiusclient-0.3 # ./configure # make # make install check_ldap: - Requires the LDAP libraries available from http://www.openldap.org/ Lib: libldap, liblber Redhat Source: openldap-1.2.9-6.i386.rpm, openldap-devel-1.2.9-6.i386.rpm I was unable to get LDAP libraries to work. I just did: # ./configure --with-openssl=/usr/include/openssl --enable-perl-modules --with-perl=/usr/bin/perl --with-nagios-user=nagios --with-apt-get-command: /usr/bin/apt-get --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s --with-ping-command: /bin/ping -n -U -w %d -c %d %s --with-ipv6: yes --with-mysql: /usr/bin/mysql_config --with-openssl: yes --with-gnutls: no --enable-extra-opts: no --with-perl: /usr/bin/perl --enable-perl-modules: yes --with-cgiurl: /nagios/cgi-bin --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin After download and compiling both radiusclient-ng and the official one: I get error on the make. /include/openssl/include -I/usr/include/openssl/include -g -O2 -MT check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o check_radius.o check_radius.c; \ then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm -f ".deps/check_radius.Tpo"; exit 1; fi check_radius.c: In function ?main?: check_radius.c:142: error: ?BUFFER_LEN? undeclared (first use in this function) check_radius.c:142: error: (Each undeclared identifier is reported only once check_radius.c:142: error: for each function it appears in.) make[2]: *** [check_radius.o] Error 1 I see the ./configure does: configure:22158: checking for rc_read_config in -lradiusclient configure:22193: gcc -o conftest -g -O2 -L. conftest.c -lradiusclient >&5 ac_cv_lib_radiusclient_rc_read_config=yes EXTRAS=' check_radius check_ide_smart check_mysql check_mysql_query check_procs check_nagios check_dns check_hpjd check_snmp check_game check_fping check_by_ssh check_swap check_dig check_apt check_nt' RADIUSLIBS='-lradiusclient' Then I find the radiusclient: # dpkg -l | grep radius ii libpam-radius-auth 1.3.16-4.3 The PAM RADIUS authentication module # dpkg -purge libpam-radius-auth Still no LUCKY Updated OPENSSL From openssl 0.9.8c-4etch3 to openssl_0.9.8c-4etch4_i386.deb Installed both debian radius called "libradius1" and "libradius1-dev". Still same problem! 2 questions, 1.Is it possible to do the ./Configure --.without (radiusclient) I have tried many ways but it always find it then gives me errors and exits. 2. Is my problem with OpenSSL instead? If so how to fix it? Thanks in Advance, Felipe Ferreira www.felipeferreira.net ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Wed Jan 28 21:00:53 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 14:00:53 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <497FA0F5.7080409@iweb.com> References: <497FA0F5.7080409@iweb.com> Message-ID: On Tue, Jan 27, 2009 at 6:04 PM, Mathieu Gagn? wrote: > We have +2000 hosts and +4700 services configured on one of our Nagios > instance. Load average is between 1.3 an 2.0 which I find acceptable. Wow. That's way bigger than what I have. Mine's a cluster of 256 machines and around 6 services checked on each. I have an advantage that most are on a local LAN so no internet connectivity issues and external bandwidth bottlenecks. > The SSH service state can be CRITICAL while all the other services are > still OK. (ie. ssh server misconfiguration) You probably want to be informed > about it too. True. But if SSH is down will NRPE still work? Or are they totally independent? > What kind of server are you using? Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM > > > Also, what's the check_interval? A 1 minute interval might put the server > on its knee since it would be scheduling and executing 1536 checks per > minute. (as per your informations) nagios.cfg command_check_interval=-1 services.cfg normal_check_interval 5 retry_check_interval 1 -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Wed Jan 28 21:21:44 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 14:21:44 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> References: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> Message-ID: On Wed, Jan 28, 2009 at 12:32 PM, Marc Powell wrote: > > > Just out of curiosity, what is the magnitude of the 'edging upwards' > that you are seeing? Its not bad right now .But the trend is what I am wary about. My load factors are around 3. But I am still planning on adding more hosts and services and I thought it best to investigate early on if I was doing things efficiently before it came to a critical point. > Just about any hardware released in the past 5 > years or so should have no problems with that number of checks at all > if they're 'normal' (base nagios-plugins) and run at a normal interval > (5 min). Even older hardware could probably do it. What are they types > of checks you are performing? How often? Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM Its about 5 years old now I think. Checks I have are: check_ssh check_ping NRPE check_nrpe!check_load check_nrpe!check_total_procs check_nrpe!check_disk check_nrpe!check_disk_scratch check_nrpe!check_pbsmom check_nrpe!check_time_node Are they perl checks and do > you have the embedded perl interpreter (ePN) enabled? I don't think I have that enabled. It is disabled by default I think at compile-time. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 matt at frozenatom.com Wed Jan 28 20:00:37 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 28 Jan 2009 12:00:37 -0700 Subject: Hostgroups and contact_groups... Message-ID: <148f6bb30901281100y31c76234s49c40f1ae9f5741f@mail.gmail.com> I am rolling out a new nagios 3.x server and it looks like they changed the ability to add contact_groups to hostgroup definitions. Is this correct? If so is there any other way to assign contact_groups, other then to hosts, or services, or their respective templates. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 kyleodonnell at gmail.com Wed Jan 28 21:39:48 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Wed, 28 Jan 2009 15:39:48 -0500 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: <497FA0F5.7080409@iweb.com> <2274b9c30901272332j2add449bhcd66f593c88d0531@mail.gmail.com> Message-ID: <2274b9c30901281239q3fa756ddo3f58833d4aaacde@mail.gmail.com> no active host checks just active service checks (few passive too) To disable change the host definition/template option active_checks_enabled 0 Host checks are done on demand when any service returns a critical state (maybe a non-OK state I can't remember). This is default nagios functionality. The update of your host status check results will only happen when a host check is intiated. If a service on that host never goes into a non-OK state it will never execute the host check. If it does it will execute a host check, if the host is down it will stop executing service checks, and use your host check_interval to continue executing host checks, when the host returns to an OK state service check processing will begin again. if you want to have a host alive check that does both ssh and ping i would suggest writing a wrapper plugin which first executes check_ssh and upon failure executes a ping: #!/bin/sh hostaddress=$1 check_ssh $hostaddress if [ $? -eq 0 ]; then echo "ssh up = host up" exit 0 else check_ping $hostaddress fi On 1/28/09, Rahul Nabar wrote: > On Wed, Jan 28, 2009 at 1:32 AM, Kyle O'Donnell > wrote: > >> I use service deps. Most of my services are nrpe checks and I create >> a dep on nrpe. If a check comes back critical (or which ever state >> you choose to execute the dep) it does an nrpe check, if nrpe returns >> critical (or whichever state you choose) it stops executing the >> services dependant on nrpe. >> >> My load is less than 2 on a machine with 800 hosts and 6000 services. >> >> Active host checks are disabled. > > > So, you have no active checks at all? Or just no active host checks? I am a > bit confused. All my checks are active. How does one disable active host > checks? And then when will the host check be done at all? > > >> >> As for ping I don't check as a service only a host check which gets >> executed if any service turns critical. > > > That might be the exact functionality I was thinking of. If I look under > "Host Status Details for all host groups" I see very recent and regular > checks being done on all my hosts under the column for "Last Check". Even > ones that do not have any services critical. > > Or will I only see the behavior you describe after I somehow disable > "active > host checks"? > > >> >> You can use check_ssh as the host check command instead of ping if you >> prefer as well. >> > > Good idea. But I still want ping to fall back on. If ssh fails only then > ping. Is that logical? > > -- > Rahul > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 fernando.rocha at opservices.com.br Wed Jan 28 21:05:22 2009 From: fernando.rocha at opservices.com.br (Fernando Rocha) Date: Wed, 28 Jan 2009 18:05:22 -0200 (BRST) Subject: Problems Compile Nagios Plugin 1.4.13 In-Reply-To: <14135287.3211233173109416.JavaMail.root@mail.opservices.com.br> References: <14135287.3211233173109416.JavaMail.root@mail.opservices.com.br> Message-ID: <18615777.3231233173122858.JavaMail.root@mail.opservices.com.br> Hello Felipe! To compile MySQLPerf plugin i just did it: - compile the nagios plugins $ tar -zxvf nagios-plugins-1.4.13.tar.gz $ cd nagios-plugins-1.4.13 $ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin $pwd /usr/local/src/nagios-plugins-1.4.13 - put the plugins path at --with-officialplugins $ tar -zxvf check_mysql_perf-1.3.2.3.tar.gz $ cd check_mysql_perf-1.3.2.3 $ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-officialplugins=/usr/local/src/nagios-plugins-1.4.13 And it works fine! About the packages that you have talked about I got installed the following packages: openssl-0.9.7a-42.2 openssl-devel-0.9.7a-42.2 freeradius-1.0.1-2.FC3.1 openldap-2.2.13-2 openldap-servers-2.2.13-2 openldap-clients-2.2.13-2 openldap-devel-2.2.13-2 I hope it helps you! []'s -- Fernando Rocha Analista de Suporte - Opera??o OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org ----- "Felipe Ferreira" wrote: > Problems Compile Nagios Plugin 1.4.13 > All this big mess started because I need the MySQLPerf plugin, whitch > is > a really cool plugin, but it needs the > source of the official plugin. > > The version I am compiling is the 1.4.13 and by running the config I > got > quite a few (WARNINGS): > > configure:22140: WARNING: Skipping PostgreSQL plugin (check_pgsql) > configure:22142: WARNING: LIBS="-lcrypt " CPPFLAGS="" > configure:22144: WARNING: install PostgreSQL libs to compile this > plugin > (see REQUIREMENTS). > configure:22309: WARNING: Skipping radius plugin > configure:22311: WARNING: install radius libs to compile this plugin > (see REQUIREMENTS). > configure:22581: WARNING: Skipping LDAP plugin > configure:22583: WARNING: install LDAP libs to compile this plugin > (see > REQUIREMENTS). > configure:27208: WARNING: Could not find qmail-qstat or eqivalent > > Since I would like to have the radius and LDAP option I looked up the > Requirements: > > check_radius > # wget ftp://ftp.cityline.net/pub/radiusclient/radiusclient-0.3.tar.gz > # cd radiusclient-0.3 > # ./configure > # make > # make install > > check_ldap: > - Requires the LDAP libraries available from > http://www.openldap.org/ > Lib: libldap, liblber > Redhat Source: openldap-1.2.9-6.i386.rpm, > openldap-devel-1.2.9-6.i386.rpm > I was unable to get LDAP libraries to work. > > I just did: > # ./configure --with-openssl=/usr/include/openssl > --enable-perl-modules > --with-perl=/usr/bin/perl --with-nagios-user=nagios > > --with-apt-get-command: /usr/bin/apt-get > --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s > --with-ping-command: /bin/ping -n -U -w %d -c %d %s > --with-ipv6: yes > --with-mysql: /usr/bin/mysql_config > --with-openssl: yes > --with-gnutls: no > --enable-extra-opts: no > --with-perl: /usr/bin/perl > --enable-perl-modules: yes > --with-cgiurl: /nagios/cgi-bin > --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin > > After download and compiling both radiusclient-ng and the official > one: > I get error on the make. > /include/openssl/include -I/usr/include/openssl/include -g -O2 -MT > check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o > check_radius.o > check_radius.c; \ > then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm > -f > ".deps/check_radius.Tpo"; exit 1; fi > check_radius.c: In function ?main?: > check_radius.c:142: error: ?BUFFER_LEN? undeclared (first use in this > function) > check_radius.c:142: error: (Each undeclared identifier is reported > only once > check_radius.c:142: error: for each function it appears in.) > make[2]: *** [check_radius.o] Error 1 > > I see the ./configure does: > configure:22158: checking for rc_read_config in -lradiusclient > configure:22193: gcc -o conftest -g -O2 -L. conftest.c -lradiusclient > >&5 > ac_cv_lib_radiusclient_rc_read_config=yes > EXTRAS=' check_radius check_ide_smart check_mysql check_mysql_query > check_procs check_nagios check_dns check_hpjd check_snmp check_game > check_fping check_by_ssh check_swap check_dig check_apt check_nt' > RADIUSLIBS='-lradiusclient' > > Then I find the radiusclient: > # dpkg -l | grep radius > ii libpam-radius-auth 1.3.16-4.3 The PAM RADIUS authentication module > # dpkg -purge libpam-radius-auth > Still no LUCKY > Updated OPENSSL > From openssl 0.9.8c-4etch3 to openssl_0.9.8c-4etch4_i386.deb > > Installed both debian radius called "libradius1" and "libradius1-dev". > > Still same problem! > 2 questions, > 1.Is it possible to do the ./Configure --.without (radiusclient) I > have > tried many ways but it always find it then gives me errors and exits. > 2. Is my problem with OpenSSL instead? If so how to fix it? > > Thanks in Advance, > > Felipe Ferreira > www.felipeferreira.net > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 atstake at gmail.com Wed Jan 28 23:19:13 2009 From: atstake at gmail.com (Chris) Date: Thu, 29 Jan 2009 09:19:13 +1100 Subject: check_snmp: monitor a process Message-ID: <8adc88580901281419s41c7944ve73b9ca99e235faa@mail.gmail.com> I want to monitor the process ID of portsentry (a program I'm running in one of my Linux servers) via SNMP. If I do snmpwalk -c -v1 server | grep "portsentry" I get: HOST-RESOURCES-MIB::hrSWRunPath.30605 = STRING: "/usr/local/psionic/portsentry/portsentry" where 30605 is the process ID and which will change every time the process gets restarted or the server gets rebooted. How do I monitor if this process is running via my Nagios server's check_snmp plugin? My nagios version is 3.0.6 and check_snmp version is 2021. Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 28 23:34:35 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 16:34:35 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> Message-ID: <3E185702-830E-437A-BE37-981A9E109281@ena.com> On Jan 28, 2009, at 2:21 PM, Rahul Nabar wrote: > Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM > Its about 5 years old now I think. For comparison, my most heavily loaded data collector is a 2x Dual Core AMD Opteron(tm) Processor 275 (2.1Ghz), 2GB RAM. It is running -- - Nagios 2.x polling 2225 services every 5 minutes (mostly ping, some nrpe, some check_by_ssh, several other custom plugins); also submitting results to 2 central nagios servers - Cricket polling for 14,420 interfaces and updating corresponding rrd files every 5 minutes load average is currently -- 16:17:36 up 323 days, 10:43, 1 user, load average: 3.25, 3.39, 3.07 101 processes: 90 sleeping, 6 running, 5 zombie, 0 stopped CPU states: cpu user nice system irq softirq iowait idle total 19.2% 0.0% 24.5% 0.0% 0.1% 8.5% 47.3% cpu00 22.0% 0.0% 21.0% 0.0% 0.0% 10.2% 46.7% cpu01 16.1% 0.0% 23.8% 0.0% 0.0% 8.0% 51.9% cpu02 18.8% 0.0% 26.1% 0.0% 0.1% 10.8% 44.0% cpu03 20.0% 0.0% 27.1% 0.3% 0.5% 5.3% 46.5% Mem: 2057192k av, 2030424k used, 26768k free, 0k shrd, 49504k buff 1562164k actv, 298668k in_d, 31376k in_c Swap: 2040212k av, 9548k used, 2030664k free 1803572k cached I also do not perform host checks but if you're on nagios-3, the performance penalties of doing regular hosts checks are no longer an issue as they are with 2.x. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Wed Jan 28 23:44:38 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 16:44:38 -0600 Subject: check_snmp: monitor a process In-Reply-To: <8adc88580901281419s41c7944ve73b9ca99e235faa@mail.gmail.com> References: <8adc88580901281419s41c7944ve73b9ca99e235faa@mail.gmail.com> Message-ID: <2C263217-1B65-4C4C-B3F3-902A63564D2F@ena.com> On Jan 28, 2009, at 4:19 PM, Chris wrote: > How do I monitor if this process is running via my Nagios server's > check_snmp plugin? My nagios version is 3.0.6 and check_snmp version > is 2021. You can't (to the best of my knowledge). It's not meant for that but rather for checking values of specific OIDs that you provide. There are other plugins that do what you're wanting though. http://www.google.com/search?q=nagios+check+process+by+snmp -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 owen.m.lagarde at usace.army.mil Wed Jan 28 23:48:05 2009 From: owen.m.lagarde at usace.army.mil (Owen LaGarde) Date: Wed, 28 Jan 2009 16:48:05 -0600 Subject: hostprops=1024 does not list flapping hosts In-Reply-To: References: Message-ID: <1233182885.1938.202.camel@gilgamesh.erdc.hpc.mil> My nagios-3.0.2 is correctly detecting flapping hosts and services, and correctly lists them in the tactical and host overview displays. Clicking on the flapping-hosts link in the tactical display does not display them. Asking status.cgi directly for all hosts with hostprops of 1024 (status.cgi?host=all&hostprops=1024) does not return them either. Other direct queries (ie., hostprops=42) behave as expected; only hostprops=1024 seems to be misbehaving, which makes me think I've misconfigured something. Anyone else seen this? On Sat, 2009-01-24 at 14:02 +0000, nagios-users-request at lists.sourceforge.net wrote: > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. Re: Expiring acknowledgements (Mathieu Gagn?) > 2. Re: Windows disk health monitoring with > smartmontoolsl/NSClient++? (Anthony Montibello) > 3. Re: nagios service flapping (Andy Shellam) > 4. Re: Nagios - LDAP/RSA authentication (Kevin Keane) > 5. Re: Nagios - LDAP/RSA authentication (Kevin Keane) > 6. Re: Nagios - LDAP/RSA authentication (Mohammed Al-Kout) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 23 Jan 2009 18:56:57 -0500 > From: Mathieu Gagn? > Subject: Re: [Nagios-users] Expiring acknowledgements > To: Frank Clements > Cc: "nagios-users at lists.sourceforge.net" > > Message-ID: <497A5949.7020105 at iweb.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > Frank Clements wrote: > > > > I'm wondering if there is anyone out there in user-land that has any process > > of expiring acknowledgements after a certain time period. I've done some > > searching and came up mostly empty handed. I've seen a mention of using SEC > > to carry this out, but I'm completely unfamiliar with SEC. If this is the > > way to go I'm game for looking into using it. > > > > Anyone out there doing something like this and care to share how? > > You could install NDOUtils [1], use Nagios::Object [2] or write yourself > a C script and use it to retrieve all acknowledged problems and remove > the acknowledge flag for each of them using external commands [3][4] if > they should expire. > > Mathieu > > [1] http://www.nagios.org/download/addons/ > [2] http://search.cpan.org/~tobeya/Nagios-Object/ > [3] > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=116 > [4] > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=117 > > > > ------------------------------ > > Message: 2 > Date: Fri, 23 Jan 2009 20:56:46 -0500 > From: Anthony Montibello > Subject: Re: [Nagios-users] Windows disk health monitoring with > smartmontoolsl/NSClient++? > To: 44kbps <44kbps at gmail.com> > Cc: nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > If using NC_Net > look at the commands in chec_nc_net.c (nc_net's customized check_nt > compatible client) > check_nc_net --help=WMICAT_NEW > check_nc_net --help=WMICHECK > check_nc_net --help=WMICAT > check_nc_net --help=WMICOUNTER > WMICOunter can use -w and -c > > each of these commands need the WMI Query as input and may give the results > back in a format that is easier to manipulate in a wrapper script instead of > a VB script (it depends on expertise and deployment strategy ) > > example of a input to WMI check/counter for NC_NEt: > > check_nc_net -v WMICHECK -l "cimv2^freespace,name^win32_logicaldisk^name= > 'c:'' -c 5000000000 -w 10000000000 > > Tony > (Author of NC_Net) > > On Fri, Jan 23, 2009 at 5:04 AM, 44kbps <44kbps at gmail.com> wrote: > > > Hi Anthony, I'm working now to get something like this. > > I want to monitor the CPU temperature, fan velocity, and other hardware > > info from a Windows Machine. > > I'm having a look to WMI's Microsoft database. > > > > You can read about it in: > > http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true > > > > Now I'm work to get work with NSCLient++ or NC_NET. > > > > See you! > > > > Anthony Montibello escribi?: > > > >> USe WMI: > >> the path to the smart data: > >> root/Cimv2/Win32_DiskDrive/ > >> [Instance] --> Status > >> Hope this helps > >> Tony (Author of NC_Net) > >> On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce >> epearce at amberpoint.com>> wrote: > >> > >> I'd like to get SMART disk health status for Windows machines. It > >> looks like smartctl would work fine on Windows - has someone got > >> it working with NSClient++? > >> I've found some people asking about this in the list archives, but > >> haven't found any concrete examples. > >> All I'm looking for is a basic "OK" or "something bad is going to > >> happen soon" alert from Nagios. > >> Thanks > >> -e > >> > >> > >> ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> SourcForge Community > >> SourceForge wants to tell your story. > >> http://p.sf.net/sfu/sf-spreadtheword > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users 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 > >> > >> > >> ------------------------------------------------------------------------ > >> > >> > >> ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> SourcForge Community > >> SourceForge wants to tell your story. > >> http://p.sf.net/sfu/sf-spreadtheword > >> ------------------------------------------------------------------------ > >> > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users 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... > > ------------------------------ > > Message: 3 > Date: Sat, 24 Jan 2009 09:35:19 +0000 > From: Andy Shellam > Subject: Re: [Nagios-users] nagios service flapping > To: Rahul Nabar > Cc: Nagios-Users Mailinglist > Message-ID: <497AE0D7.1030908 at networkmail.eu> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Rahul, > > Look through your Nagios logs or run an availability report on one of > the services for the time the flapping was happening. This report will > list what the output was at the time it went from an OK to CRITICAL (or > WARNING) and vice versa - it should give you a pointer to the root cause. > > At first guess, and as you've identified the common factor to be NRPE, > I'd be looking at the network between your Nagios machine and the NRPE > client/s, or possibly even the NRPE service on the client/s. > > Andy > > Rahul Nabar wrote: > > I just had a bunch of services start flapping on me. THe common > > factor seems all of these were services monitored by nrpe. > > > > ////////////// > > Notifications for this service are being suppressed because it was > > detected as having been flapping between different states (22.4% > > change >= 20.0% threshold). When the service state stabilizes and the > > flapping stops, notifications will be re-enabled. > > ////////////////// > > > > My nrpe.cfg is pristine except for > > > > command[check_disk_scratch]=/usr/local/nagios/libexec/check_disk -w 20 > > -c 10 -p /scratch > > > > What could be causing a service to start flapping. Never happened to > > me before. ANy debug sugesstions? > > > > The Status for the service is correct though. > > DISK OK - free space: /scratch 14886 MB (52% inode=98%): > > > > -- > > Rahul > > > > snippet from services.cfg > > define service{ > > use rpn_intermediate_service > > hostgroup_name npre-compute-nodes > > service_description /scratch Partition on nodes > > check_command check_nrpe!check_disk_scratch ; > > details defined in the nrpe.conf > > } > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users 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 > > > > ------------------------------ > > Message: 4 > Date: Sat, 24 Jan 2009 05:03:55 -0800 > From: Kevin Keane > Subject: Re: [Nagios-users] Nagios - LDAP/RSA authentication > Cc: nagios-users at lists.sourceforge.net > Message-ID: <497B11BB.1030404 at kkeane.com> > Content-Type: text/plain; charset="US-ASCII"; format="flowed" > > What is the setting for refresh_rate in your cgi.cfg? > > Mohammed Al-Kout wrote: > > Keven, > > > > Yes when nagios is doing nothing it sits exactly for 10 mins i managed > > to make it 30 mins by changing the LDAPCacheTTL parameter in > > httpd.conf but it only gave me time upto 30 mins then started giving > > authentication errors because it was checking against the cached > > password. > > > > we are using RSA through LDAP for the majority of our services to have > > a secure ad centralized user DB, we have a group of users with > > different permissions thats why the default user wouldn't work in our > > case. > > > > i was hoping to find the parameter that sets the 10min idle timeout > > for the browser/nagios/ldap combo > > > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Sat, Jan 24, 2009 at 14:53, Kevin Keane > > wrote: > > > > If the RSA password really changes every minute, your Web browser > > should ask for a new password every minute with the next HTTP > > request. If Nagios simply sits there and you don't do anything, I > > believe it refreshes every five to ten minutes. So that is when > > the browser would ask for the new password. If you are actually > > working with it and clicking on links, then it would probably ask > > for a password earlier. > > > > BTW, could you post this back to the mailing list rather than me > > personally? Other people may have great ideas on it, too, and this > > type of discussion should also be archived. > > > > What might help here is something along the lines of Kerberos, but > > I believe Apache does not support it, at least not out of the box. > > > > The other possibility is to have some kind of "front end" that > > handles authentication and then forwards the HTTP requests to > > Nagios. In Nagios, you could then use the default-user to allow > > access for anyone (you wouldn't be able to restrict access by > > group or so, though). > > > > Personally, I think that for Nagios purposes, you should ditch RSA > > and go back to a local password file for nagios. I suspect using > > RSA with Nagios actually reduces rather than increases the > > security. This is because an attacker could potentially see many > > different passwords, and use that to deduct information about the > > sequence of RSA keys and possibly in the end predict the next one. > > RSA is pretty strong overall, so this is not a huge risk, but > > something to keep in mind. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > The rsa password changes every 1 min, the nagios session > > timeouts ( i.e requires re authentication ) every 10 mins, > > all i need is is there a way to change this value to stay > > longer than 10 mins ? like 2-3 hours for example. > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Sat, Jan 24, 2009 at 11:57, Kevin Keane > > > > > >> wrote: > > > > Of course you wouldn't get it with the local passwd file, > > because > > that password never changes. It's not the LDAP Cache > > settings, but > > the fact that your RSA passwords themselves are changing > > frequently - presumably every ten minutes - as you said > > earlier. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > we didn't get the reauthenticate window when we had the > > local > > passwd file once we enabled ldap authentication its > > repopping > > at exactly 10 mins it has something to do with the LDAP > > Cache > > settings. > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Fri, Jan 23, 2009 at 15:32, Kevin Keane > > > > > > > > > > > > >>> wrote: > > > > There is no "idle timeout" when using HTTP > > authentication, > > because > > there are no sessions involved that would be idle. > > > > Each request stands on its own, and is separately > > authenticated. > > > > Mohammed Al-Kout wrote: > > > > What about the idle timeout ? > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Thu, Jan 22, 2009 at 09:49, Kevin Keane > > > > > > > > > > > > >> > > > > > > > > > > > > > >>>> wrote: > > > > No. It has nothing to do with time. The popup > > will > > come up > > every > > time the RSA password changes. So the only > > solution > > is to > > reduce > > how often the password changes. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > is it possible to give the browser certain > > parameters to > > increase this time ? ( we are using Firefox ) > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Wed, Jan 21, 2009 at 17:19, Kevin Keane > > > > > > > > > > > > > >> > > > > > > > > > > > > > >>> > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >>>>> wrote: > > > > There is no such thing as a "session" in > > Nagios. It > > simply > > uses plain > > HTTP authentication. That means that > > the user > > name and > > password is > > sent > > with every single HTTP request; > > request are > > not tied > > together the way > > you might be used to from online banking > > sites and > > the like. > > > > What you are observing could be due to a > > couple of > > different factors, > > but it is almost certainly neither LDAP, > > Apache nor > > Nagios, > > but rather > > the Web browser. > > > > - The most likely cause: you say that > > the RSA > > passwords change > > frequently. When the RSA password > > changes, the > > browser has > > no way of > > knowing that, and will continue to > > send the old > > password. > > This is > > rejected, and the browser then pops up the > > login dialog. > > > > - The browser may for some reason > > think that > > it is > > connecting to a > > different server, where the user name and > > password > > are no > > longer > > valid. > > > > - The browser may for some reason > > actually forget > > the user > > name and > > password. > > > > Mohammed Al-Kout wrote: > > > Warner, > > > > > > the session seems to be expiring after ( > > 10-20) and > > nagios asks for > > > reauthentication, ( we are using RSA > > passwords > > that change > > frequently > > > so the LDAPCAche does not apply in > > our case > > ) are > > you using > > > mod_auth_ldap ? > > > what are the parameters you use in the > > httpd.conf for > > LDAP Cache > > settings > > > > > > Best Regards > > > -- > > > Mohammed Al-Kout > > > > > > > > > > > > > > > > > > On Wed, Jan 21, 2009 at 16:22, > > Werner Flamme > > > > > > > > > > > >> > > > > > > > > > > > >>> > > > > > > > > > > > > >> > > > > > > > > > > >>>> > > > > > > > > > > > >> > > > > > > > > > > > > >>> > > > > > > > > >> > > > > > > > > > > > > >>>>>> wrote: > > > > > > Mohammed Al-Kout [21.01.2009 14:00]: > > > > Hello, > > > > > > > > i'm running Nagios 3.0.1 on > > Apache 2.0.52 > > its been > > running > > on a > > > local > > > > userfile for sometime, recently i > > switched > > to LDAP > > > authentication with > > > > mod_auth_ldap its working > > fine, the > > problem > > is i'm > > getting the > > > > authentication popup every > > 10-20 mins, is > > there a > > way to stop > > > this or set a > > > > longer interval ? i'm not > > sure what > > is causing > > this popup to > > > reappear ( > > > > LDAP , Apache or Nagios ) if > > anyone > > has an > > idea please > > lemme know > > > > > > Neither of them. We use LDAP > > auth for > > years, and > > there are > > no such > > > popups. > > > > > > Regards, > > > Werner > > > > > > > > > > > -- Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network > > You Never > > Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain > > confidential > > and/or proprietary information. Please be advised > > that the > > unauthorized use or disclosure of the information is > > strictly > > prohibited. The information herein is intended only > > for use > > by the > > intended recipient(s) named above. If you have > > received this > > transmission in error, please notify the sender > > immediately and > > permanently delete the e-mail and any copies, > > printouts or > > attachments thereof. > > > > > > > > > > -- Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never > > Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential > > and/or proprietary information. Please be advised that the > > unauthorized use or disclosure of the information is strictly > > prohibited. The information herein is intended only for use > > by the > > intended recipient(s) named above. If you have received this > > transmission in error, please notify the sender immediately and > > permanently delete the e-mail and any copies, printouts or > > attachments thereof. > > > > > > > > > > -- > > Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential > > and/or proprietary information. Please be advised that the > > unauthorized use or disclosure of the information is strictly > > prohibited. The information herein is intended only for use by the > > intended recipient(s) named above. If you have received this > > transmission in error, please notify the sender immediately and > > permanently delete the e-mail and any copies, printouts or > > attachments thereof. > > > > > > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. > > > > > ------------------------------ > > Message: 5 > Date: Sat, 24 Jan 2009 05:11:11 -0800 > From: Kevin Keane > Subject: Re: [Nagios-users] Nagios - LDAP/RSA authentication > Cc: nagios-users at lists.sourceforge.net > Message-ID: <497B136F.9080609 at kkeane.com> > Content-Type: text/plain; charset="US-ASCII"; format="flowed" > > Also, does your user database support Kerberos? If so, you could try to > use apache's mod_kerb and use a Kerberos ticket instead of the changing > RSA password for authentication. That solves the security problem I > mentioned earlier, as well as having to retype the password all the > time. You will need a Kerberos-enabled browser (Internet Explorer > supports it, I believe - not sure about any of the others). Also, it > will probably not work if there are too many firewalls around. > > Mohammed Al-Kout wrote: > > Keven, > > > > Yes when nagios is doing nothing it sits exactly for 10 mins i managed > > to make it 30 mins by changing the LDAPCacheTTL parameter in > > httpd.conf but it only gave me time upto 30 mins then started giving > > authentication errors because it was checking against the cached > > password. > > > > we are using RSA through LDAP for the majority of our services to have > > a secure ad centralized user DB, we have a group of users with > > different permissions thats why the default user wouldn't work in our > > case. > > > > i was hoping to find the parameter that sets the 10min idle timeout > > for the browser/nagios/ldap combo > > > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Sat, Jan 24, 2009 at 14:53, Kevin Keane > > wrote: > > > > If the RSA password really changes every minute, your Web browser > > should ask for a new password every minute with the next HTTP > > request. If Nagios simply sits there and you don't do anything, I > > believe it refreshes every five to ten minutes. So that is when > > the browser would ask for the new password. If you are actually > > working with it and clicking on links, then it would probably ask > > for a password earlier. > > > > BTW, could you post this back to the mailing list rather than me > > personally? Other people may have great ideas on it, too, and this > > type of discussion should also be archived. > > > > What might help here is something along the lines of Kerberos, but > > I believe Apache does not support it, at least not out of the box. > > > > The other possibility is to have some kind of "front end" that > > handles authentication and then forwards the HTTP requests to > > Nagios. In Nagios, you could then use the default-user to allow > > access for anyone (you wouldn't be able to restrict access by > > group or so, though). > > > > Personally, I think that for Nagios purposes, you should ditch RSA > > and go back to a local password file for nagios. I suspect using > > RSA with Nagios actually reduces rather than increases the > > security. This is because an attacker could potentially see many > > different passwords, and use that to deduct information about the > > sequence of RSA keys and possibly in the end predict the next one. > > RSA is pretty strong overall, so this is not a huge risk, but > > something to keep in mind. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > The rsa password changes every 1 min, the nagios session > > timeouts ( i.e requires re authentication ) every 10 mins, > > all i need is is there a way to change this value to stay > > longer than 10 mins ? like 2-3 hours for example. > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Sat, Jan 24, 2009 at 11:57, Kevin Keane > > > > > >> wrote: > > > > Of course you wouldn't get it with the local passwd file, > > because > > that password never changes. It's not the LDAP Cache > > settings, but > > the fact that your RSA passwords themselves are changing > > frequently - presumably every ten minutes - as you said > > earlier. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > we didn't get the reauthenticate window when we had the > > local > > passwd file once we enabled ldap authentication its > > repopping > > at exactly 10 mins it has something to do with the LDAP > > Cache > > settings. > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Fri, Jan 23, 2009 at 15:32, Kevin Keane > > > > > > > > > > > > >>> wrote: > > > > There is no "idle timeout" when using HTTP > > authentication, > > because > > there are no sessions involved that would be idle. > > > > Each request stands on its own, and is separately > > authenticated. > > > > Mohammed Al-Kout wrote: > > > > What about the idle timeout ? > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Thu, Jan 22, 2009 at 09:49, Kevin Keane > > > > > > > > > > > > >> > > > > > > > > > > > > > >>>> wrote: > > > > No. It has nothing to do with time. The popup > > will > > come up > > every > > time the RSA password changes. So the only > > solution > > is to > > reduce > > how often the password changes. > > > > Mohammed Al-Kout wrote: > > > > Keven, > > > > is it possible to give the browser certain > > parameters to > > increase this time ? ( we are using Firefox ) > > > > Best Regards > > -- > > Mohammed Al-Kout > > > > > > > > > > > > On Wed, Jan 21, 2009 at 17:19, Kevin Keane > > > > > > > > > > > > > >> > > > > > > > > > > > > > >>> > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >>>>> wrote: > > > > There is no such thing as a "session" in > > Nagios. It > > simply > > uses plain > > HTTP authentication. That means that > > the user > > name and > > password is > > sent > > with every single HTTP request; > > request are > > not tied > > together the way > > you might be used to from online banking > > sites and > > the like. > > > > What you are observing could be due to a > > couple of > > different factors, > > but it is almost certainly neither LDAP, > > Apache nor > > Nagios, > > but rather > > the Web browser. > > > > - The most likely cause: you say that > > the RSA > > passwords change > > frequently. When the RSA password > > changes, the > > browser has > > no way of > > knowing that, and will continue to > > send the old > > password. > > This is > > rejected, and the browser then pops up the > > login dialog. > > > > - The browser may for some reason > > think that > > it is > > connecting to a > > different server, where the user name and > > password > > are no > > longer > > valid. > > > > - The browser may for some reason > > actually forget > > the user > > name and > > password. > > > > Mohammed Al-Kout wrote: > > > Warner, > > > > > > the session seems to be expiring after ( > > 10-20) and > > nagios asks for > > > reauthentication, ( we are using RSA > > passwords > > that change > > frequently > > > so the LDAPCAche does not apply in > > our case > > ) are > > you using > > > mod_auth_ldap ? > > > what are the parameters you use in the > > httpd.conf for > > LDAP Cache > > settings > > > > > > Best Regards > > > -- > > > Mohammed Al-Kout > > > > > > > > > > > > > > > > > > On Wed, Jan 21, 2009 at 16:22, > > Werner Flamme > > > > > > > > > > > >> > > > > > > > > > > > >>> > > > > > > > > > > > > >> > > > > > > > > > > >>>> > > > > > > > > > > > >> > > > > > > > > > > > > >>> > > > > > > > > >> > > > > > > > > > > > > >>>>>> wrote: > > > > > > Mohammed Al-Kout [21.01.2009 14:00]: > > > > Hello, > > > > > > > > i'm running Nagios 3.0.1 on > > Apache 2.0.52 > > its been > > running > > on a > > > local > > > > userfile for sometime, recently i > > switched > > to LDAP > > > authentication with > > > > mod_auth_ldap its working > > fine, the > > problem > > is i'm > > getting the > > > > authentication popup every > > 10-20 mins, is > > there a > > way to stop > > > this or set a > > > > longer interval ? i'm not > > sure what > > is causing > > this popup to > > > reappear ( > > > > LDAP , Apache or Nagios ) if > > anyone > > has an > > idea please > > lemme know > > > > > > Neither of them. We use LDAP > > auth for > > years, and > > there are > > no such > > > popups. > > > > > > Regards, > > > Werner > > > > > > > > > > > -- Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network > > You Never > > Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain > > confidential > > and/or proprietary information. Please be advised > > that the > > unauthorized use or disclosure of the information is > > strictly > > prohibited. The information herein is intended only > > for use > > by the > > intended recipient(s) named above. If you have > > received this > > transmission in error, please notify the sender > > immediately and > > permanently delete the e-mail and any copies, > > printouts or > > attachments thereof. > > > > > > > > > > -- Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never > > Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential > > and/or proprietary information. Please be advised that the > > unauthorized use or disclosure of the information is strictly > > prohibited. The information herein is intended only for use > > by the > > intended recipient(s) named above. If you have received this > > transmission in error, please notify the sender immediately and > > permanently delete the e-mail and any copies, printouts or > > attachments thereof. > > > > > > > > > > -- > > Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never Have > > to Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential > > and/or proprietary information. Please be advised that the > > unauthorized use or disclosure of the information is strictly > > prohibited. The information herein is intended only for use by the > > intended recipient(s) named above. If you have received this > > transmission in error, please notify the sender immediately and > > permanently delete the e-mail and any copies, printouts or > > attachments thereof. > > > > > > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. > > > > > ------------------------------ > > Message: 6 > Date: Sat, 24 Jan 2009 15:03:07 +0300 > From: Mohammed Al-Kout > Subject: Re: [Nagios-users] Nagios - LDAP/RSA authentication > To: Kevin Keane , > nagios-users at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Keven, > > Yes when nagios is doing nothing it sits exactly for 10 mins i managed to > make it 30 mins by changing the LDAPCacheTTL parameter in httpd.conf but it > only gave me time upto 30 mins then started giving authentication errors > because it was checking against the cached password. > > we are using RSA through LDAP for the majority of our services to have a > secure ad centralized user DB, we have a group of users with different > permissions thats why the default user wouldn't work in our case. > > i was hoping to find the parameter that sets the 10min idle timeout for the > browser/nagios/ldap combo > > > Best Regards > -- > Mohammed Al-Kout > > > > > > On Sat, Jan 24, 2009 at 14:53, Kevin Keane wrote: > > > If the RSA password really changes every minute, your Web browser should > > ask for a new password every minute with the next HTTP request. If Nagios > > simply sits there and you don't do anything, I believe it refreshes every > > five to ten minutes. So that is when the browser would ask for the new > > password. If you are actually working with it and clicking on links, then it > > would probably ask for a password earlier. > > > > BTW, could you post this back to the mailing list rather than me > > personally? Other people may have great ideas on it, too, and this type of > > discussion should also be archived. > > > > What might help here is something along the lines of Kerberos, but I > > believe Apache does not support it, at least not out of the box. > > > > The other possibility is to have some kind of "front end" that handles > > authentication and then forwards the HTTP requests to Nagios. In Nagios, you > > could then use the default-user to allow access for anyone (you wouldn't be > > able to restrict access by group or so, though). > > > > Personally, I think that for Nagios purposes, you should ditch RSA and go > > back to a local password file for nagios. I suspect using RSA with Nagios > > actually reduces rather than increases the security. This is because an > > attacker could potentially see many different passwords, and use that to > > deduct information about the sequence of RSA keys and possibly in the end > > predict the next one. RSA is pretty strong overall, so this is not a huge > > risk, but something to keep in mind. > > > > Mohammed Al-Kout wrote: > > > >> Keven, > >> > >> The rsa password changes every 1 min, the nagios session timeouts ( i.e > >> requires re authentication ) every 10 mins, all i need is is there a way to > >> change this value to stay longer than 10 mins ? like 2-3 hours for example. > >> > >> Best Regards > >> -- > >> Mohammed Al-Kout > >> > >> > >> > >> > >> > >> On Sat, Jan 24, 2009 at 11:57, Kevin Keane >> subscription at kkeane.com>> wrote: > >> > >> Of course you wouldn't get it with the local passwd file, because > >> that password never changes. It's not the LDAP Cache settings, but > >> the fact that your RSA passwords themselves are changing > >> frequently - presumably every ten minutes - as you said earlier. > >> > >> Mohammed Al-Kout wrote: > >> > >> Keven, > >> > >> we didn't get the reauthenticate window when we had the local > >> passwd file once we enabled ldap authentication its repopping > >> at exactly 10 mins it has something to do with the LDAP Cache > >> settings. > >> > >> Best Regards > >> -- > >> Mohammed Al-Kout > >> > >> > >> > >> > >> > >> On Fri, Jan 23, 2009 at 15:32, Kevin Keane > >> > >> >> >> wrote: > >> > >> There is no "idle timeout" when using HTTP authentication, > >> because > >> there are no sessions involved that would be idle. > >> > >> Each request stands on its own, and is separately > >> authenticated. > >> > >> Mohammed Al-Kout wrote: > >> > >> What about the idle timeout ? > >> > >> Best Regards > >> -- > >> Mohammed Al-Kout > >> > >> > >> > >> > >> > >> On Thu, Jan 22, 2009 at 09:49, Kevin Keane > >> >> > >> > > >> >> > >> >> >>> wrote: > >> > >> No. It has nothing to do with time. The popup will > >> come up > >> every > >> time the RSA password changes. So the only solution > >> is to > >> reduce > >> how often the password changes. > >> > >> Mohammed Al-Kout wrote: > >> > >> Keven, > >> > >> is it possible to give the browser certain > >> parameters to > >> increase this time ? ( we are using Firefox ) > >> > >> Best Regards > >> -- > >> Mohammed Al-Kout > >> > >> > >> > >> > >> > >> On Wed, Jan 21, 2009 at 17:19, Kevin Keane > >> >> > >> >> > > >> >> > >> >> > >> >> > >> >> > > >> > >> >> > >> >> >>>> wrote: > >> > >> There is no such thing as a "session" in > >> Nagios. It > >> simply > >> uses plain > >> HTTP authentication. That means that the user > >> name and > >> password is > >> sent > >> with every single HTTP request; request are > >> not tied > >> together the way > >> you might be used to from online banking > >> sites and > >> the like. > >> > >> What you are observing could be due to a > >> couple of > >> different factors, > >> but it is almost certainly neither LDAP, > >> Apache nor > >> Nagios, > >> but rather > >> the Web browser. > >> > >> - The most likely cause: you say that the RSA > >> passwords change > >> frequently. When the RSA password changes, the > >> browser has > >> no way of > >> knowing that, and will continue to send the old > >> password. > >> This is > >> rejected, and the browser then pops up the > >> login dialog. > >> > >> - The browser may for some reason think that > >> it is > >> connecting to a > >> different server, where the user name and > >> password > >> are no > >> longer > >> valid. > >> > >> - The browser may for some reason actually forget > >> the user > >> name and > >> password. > >> > >> Mohammed Al-Kout wrote: > >> > Warner, > >> > > >> > the session seems to be expiring after ( > >> 10-20) and > >> nagios asks for > >> > reauthentication, ( we are using RSA passwords > >> that change > >> frequently > >> > so the LDAPCAche does not apply in our case > >> ) are > >> you using > >> > mod_auth_ldap ? > >> > what are the parameters you use in the > >> httpd.conf for > >> LDAP Cache > >> settings > >> > > >> > Best Regards > >> > -- > >> > Mohammed Al-Kout > >> > > >> > > >> > > >> > > >> > > >> > On Wed, Jan 21, 2009 at 16:22, Werner Flamme > >> >> >> > > >> >> >> >> > >> >> > >> >> > >> > >> >> >>> > >> > >> > >> > > >> >> > >> >> >> >> > >> > > >> >> > >> >> >>>>> wrote: > >> > > >> > Mohammed Al-Kout [21.01.2009 14:00]: > >> > > Hello, > >> > > > >> > > i'm running Nagios 3.0.1 on Apache 2.0.52 > >> its been > >> running > >> on a > >> > local > >> > > userfile for sometime, recently i > >> switched > >> to LDAP > >> > authentication with > >> > > mod_auth_ldap its working fine, the > >> problem > >> is i'm > >> getting the > >> > > authentication popup every 10-20 mins, is > >> there a > >> way to stop > >> > this or set a > >> > > longer interval ? i'm not sure what > >> is causing > >> this popup to > >> > reappear ( > >> > > LDAP , Apache or Nagios ) if anyone > >> has an > >> idea please > >> lemme know > >> > > >> > Neither of them. We use LDAP auth for > >> years, and > >> there are > >> no such > >> > popups. > >> > > >> > Regards, > >> > Werner > >> > > >> > >> > >> > >> -- Kevin Keane > >> Owner > >> The NetTech > >> Find the Uncommon: Expert Solutions for a Network You Never > >> Have > >> to Think About > >> > >> Office: 866-642-7116 > >> http://www.4nettech.com > >> > >> This e-mail and attachments, if any, may contain confidential > >> and/or proprietary information. Please be advised that the > >> unauthorized use or disclosure of the information is strictly > >> prohibited. The information herein is intended only for use > >> by the > >> intended recipient(s) named above. If you have received this > >> transmission in error, please notify the sender immediately and > >> permanently delete the e-mail and any copies, printouts or > >> attachments thereof. > >> > >> > >> > >> > >> -- Kevin Keane > >> Owner > >> The NetTech > >> Find the Uncommon: Expert Solutions for a Network You Never Have > >> to Think About > >> > >> Office: 866-642-7116 > >> http://www.4nettech.com > >> > >> This e-mail and attachments, if any, may contain confidential > >> and/or proprietary information. Please be advised that the > >> unauthorized use or disclosure of the information is strictly > >> prohibited. The information herein is intended only for use by the > >> intended recipient(s) named above. If you have received this > >> transmission in error, please notify the sender immediately and > >> permanently delete the e-mail and any copies, printouts or > >> attachments thereof. > >> > >> > >> > > > > -- > > Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > > About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential and/or > > proprietary information. Please be advised that the unauthorized use or > > disclosure of the information is strictly prohibited. The information herein > > is intended only for use by the intended recipient(s) named above. If you > > have received this transmission in error, please notify the sender > > immediately and permanently delete the e-mail and any copies, printouts or > > attachments thereof. > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 32, Issue 24 > ******************************************** -- Sincerely, Owen LaGarde Senior Systems Administrator Owen.M.LaGarde at usace.army.mil 1-800-522-6937 x4879 Engineering Research and Development Center attn: CEERD-IH-C (Owen LaGarde) 3909 Halls Ferry Road Vicksburg, MS 39180-6199 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Wed Jan 28 23:54:34 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 16:54:34 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <3E185702-830E-437A-BE37-981A9E109281@ena.com> References: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> <3E185702-830E-437A-BE37-981A9E109281@ena.com> Message-ID: On Wed, Jan 28, 2009 at 4:34 PM, Marc Powell wrote: > > On Jan 28, 2009, at 2:21 PM, Rahul Nabar wrote: > > > Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM > > Its about 5 years old now I think. > A minor correction. Mine is just a "hyperthreaded" machine. I don't think it is two real cores. But still shows up as twin cpus. In case it matters. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Thu Jan 29 00:07:34 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Wed, 28 Jan 2009 18:07:34 -0500 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: References: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> <3E185702-830E-437A-BE37-981A9E109281@ena.com> Message-ID: <4980E536.7090201@iweb.com> Hi, Rahul Nabar wrote: > > > On Wed, Jan 28, 2009 at 4:34 PM, Marc Powell > wrote: > > > On Jan 28, 2009, at 2:21 PM, Rahul Nabar wrote: > > > Intel(R) Xeon(TM) CPU 2.80GHz dual core. 2 GB RAM > > Its about 5 years old now I think. > > > A minor correction. Mine is just a "hyperthreaded" machine. I don't > think it is two real cores. But still shows up as twin cpus. In case it > matters. > According to cpubenchmark.net, my el cheapo CPU is better than yours: Intel Xeon 2.80GHz Score: 495 Rank: 281 Link: http://www.cpubenchmark.net/cpu_lookup.php?cpu=Intel+Xeon+2.80GHz Intel Core2 4300 @ 1.80GHz Score: 983 Rank: 170 Link: http://www.cpubenchmark.net/cpu_lookup.php?cpu=Intel+Core2+4300+%40+1.80GHz Xeon isn't always better. Sorry. :-( -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 robby.kahlon at cubic.com Thu Jan 29 00:08:42 2009 From: robby.kahlon at cubic.com (Kahlon, Robby) Date: Wed, 28 Jan 2009 15:08:42 -0800 Subject: NSClient Error Message In-Reply-To: References: Message-ID: <28919A12B5A1504CB3599372AA286FC602BC4630@bb-cts-ex1.cts.cubic.cub> Thanks Tony. I will try it again after upgrading the NSClient. There is one more error message in the logs: The description for Event ID ( 1 ) in Source ( pNSClient.exe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Asynchronous socket error 10053. Any ideas about this one? Robby ________________________________ From: Anthony Montibello [mailto:amontibello at gmail.com] Sent: Wednesday, 28 January 2009 1:01 PM To: Kahlon, Robby Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSClient Error Message Hi Robby, I believe this indicates that there is a problem with the _Total instance of Processor Counter. I have found Some XP systems do not have the _Total instance, If you have trouble resolving NSClient you can upgrade to NSClinet++ or NC_Net and still use check_nt for that Host. Tony (Author of NC_NEt) On Tue, Jan 27, 2009 at 8:59 PM, Kahlon, Robby wrote: Hi, I am monitoring Windows XP desktops using NSClient. The monitoring works fine but I see the following error message in the Application Logs on the Windows XP desktop: NSClient CollectData: Call to retrieve counter value for \Processor(_total)\% Processor Time failed, returning status code 2147485654. Does anyone know the reason and fix for the above error message? Thanks, Robby ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 rpnabar at gmail.com Thu Jan 29 00:12:45 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Wed, 28 Jan 2009 17:12:45 -0600 Subject: Ways and tweaks to make nagios more efficient. load average on monitoring host edging up. In-Reply-To: <4980E536.7090201@iweb.com> References: <6ED4BE98-4CBC-4E97-99EB-4A3FB14D4C30@ena.com> <3E185702-830E-437A-BE37-981A9E109281@ena.com> <4980E536.7090201@iweb.com> Message-ID: On Wed, Jan 28, 2009 at 5:07 PM, Mathieu Gagn? wrote: > >> > According to cpubenchmark.net, my el cheapo CPU is better than yours: > > Intel Xeon 2.80GHz > Score: 495 > Rank: 281 > Link: http://www.cpubenchmark.net/cpu_lookup.php?cpu=Intel+Xeon+2.80GHz > > Intel Core2 4300 @ 1.80GHz > Score: 983 > Rank: 170 > Link: > http://www.cpubenchmark.net/cpu_lookup.php?cpu=Intel+Core2+4300+%40+1.80GHz > > > Xeon isn't always better. Sorry. :-( > Haha! I guess I have to live with that for now! Too bad! -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Thu Jan 29 02:05:07 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Wed, 28 Jan 2009 20:05:07 -0500 Subject: NDOutils and Nagios startup speed In-Reply-To: <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> References: <497E3D53.7020805@iweb.com> <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> Message-ID: <498100C3.7010507@iweb.com> Hi, Marc Powell wrote: > >> Is there a way to speed things up? Any help would be appreciated. >> Thanks. > > I'm interested in tips as well. > One way to speed up Nagios start when using NDOutils is to tweak "event_broker_options". Here is my new configuration, based on constants defined in include/broker.h: # BROKER_EVERYTHING 1048575 # -BROKER_TIMED_EVENTS 2 # -BROKER_SERVICE_CHECKS 4 # -BROKER_HOST_CHECKS 8 event_broker_options=1048561 I personally don't care about raw host/service check results and internal scheduling. It's already available in nagios.log and don't need to access such data remotely. Also host/service status are already available in nagios_hoststatus and nagios_servicestatus. There's probably more to disable. -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 atstake at gmail.com Thu Jan 29 05:19:21 2009 From: atstake at gmail.com (Chris) Date: Thu, 29 Jan 2009 15:19:21 +1100 Subject: check_snmp_storage.pl - check disk space for / Message-ID: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com> I'm trying to check the disk space for / (I have a partition called / which sits on /dev/sdb1) but check_snmp_storage.pl is giving me information on all the partitions (/, /tmp, /usr, /var) Is there any way to get it check only the / partition and not the other ones? Here is the commands I tried: /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m / -w 20 -c 21 /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^/ -w 20 -c 21 /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^\/ -w 20 -c 21 ( that's an escape sequence there after the caret) Thanks for any help. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Thu Jan 29 05:27:46 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 28 Jan 2009 23:27:46 -0500 Subject: NDOutils and Nagios startup speed In-Reply-To: <498100C3.7010507@iweb.com> References: <497E3D53.7020805@iweb.com> <3B2F2B42-A788-42B1-A5B0-A4A22F1B6EEB@ena.com> <498100C3.7010507@iweb.com> Message-ID: <49813042.9040706@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/01/09 08:05 PM, Mathieu Gagn? wrote: > Hi, > > Marc Powell wrote: >>> Is there a way to speed things up? Any help would be appreciated. >>> Thanks. >> I'm interested in tips as well. >> > > One way to speed up Nagios start when using NDOutils is to tweak > "event_broker_options". > > Here is my new configuration, based on constants defined in > include/broker.h: > > # BROKER_EVERYTHING 1048575 > # -BROKER_TIMED_EVENTS 2 > # -BROKER_SERVICE_CHECKS 4 > # -BROKER_HOST_CHECKS 8 > > event_broker_options=1048561 > > I personally don't care about raw host/service check results and > internal scheduling. It's already available in nagios.log and don't need > to access such data remotely. Also host/service status are already > available in nagios_hoststatus and nagios_servicestatus. > > There's probably more to disable. Not sure if it works already, but IMHO a good solution would be to prepare the new database in a similar way to the precache file. I guess it could work like this (I only have partial understanding of the NdoDB architecture): 1. You run the precache option - an event broker (could be NDODB itself) prepare the DB for the next run by communicating the information to the remote end (**), 2. When you load using the precache file it sends an instruction to use the prepared database data. (**) Not sure which is the best way here... If preparing a SQL dump file and loading it at once (with as many options as possible like locking, no foreign keys extended inserts, etc) goes fast this could be the way. Another options could be updating the DB live (data insert for deleted objects will fail, while new objects will just wait for data to come in... Finally it could be possible to just prepare new tables, and then replace them all at once. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJgTBC6dZ+Kt5BchYRAjcRAJwOxtigBMRPxilPEFU+rDxdWls1IgCg/Xd0 /vxXmPWdElCcYoy8sZACo7E= =j7iQ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 29 06:10:38 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Jan 2009 23:10:38 -0600 Subject: check_snmp_storage.pl - check disk space for / In-Reply-To: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com> References: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com> Message-ID: <4F539862-9D05-4C3F-B25B-FF0F37ACBFCF@ena.com> On Jan 28, 2009, at 10:19 PM, Chris wrote: > Is there any way to get it check only the / partition and not the > other ones? > > Here is the commands I tried: > > /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m / - > w 20 -c 21 > /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^/ > -w 20 -c 21 > /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^\/ > -w 20 -c 21 ( that's an escape sequence there after the caret) If this is the check_snmp_storage.pl from manubulon, they give that specific test as an example. Tested and works -- http://nagios.manubulon.com/snmp_storage.html "%used of / mountpoint only is less than 80% and 90% ./check_snmp_storage.pl -H 127.0.0.1 -C public -m / -r -w 80% -c 90 -r, --noregexp Do not use regexp to match NAME in description OID" $ ./check_snmp_storage.pl -H -C -m / -r -w 80% - c 90% /: 72%used(5641MB/7874MB) (<80%) : OK -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 nlaurance at zindep.com Thu Jan 29 09:20:19 2009 From: nlaurance at zindep.com (Nicolas Laurance) Date: Thu, 29 Jan 2009 09:20:19 +0100 Subject: different contact method for different states Message-ID: <498166C3.4040106@zindep.com> Hi, Is it possible (I didn't find how) to configure a use case like in Nagios 2 : if a warning hard state is reached => contact via email if a critical hard state is reached => contact via pager ?? many thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 peo at bsdlabs.com Thu Jan 29 09:33:34 2009 From: peo at bsdlabs.com (Per olof Ljungmark) Date: Thu, 29 Jan 2009 09:33:34 +0100 Subject: display selected info on public web page Message-ID: <498169DE.1050308@bsdlabs.com> Hi all, I wonder if anyone could please share some knowledge on how one can display snippets of info from Nagios on a public web page? I've googled some but did not find much on the topic, then looked into Nagvis but that seemed more suited to the datacenter. For example, a small green blob telling the status of a certain host without revealing other details. Any hints appriciated. Thanks, -- per ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sgala at sgala.com Thu Jan 29 10:15:34 2009 From: sgala at sgala.com (Matteo) Date: Thu, 29 Jan 2009 10:15:34 +0100 Subject: passive checks with business time notification Message-ID: <20090129091534.GA17012@sgala.com> Hi, I want to monitor some night batch procedures. These procedures are executed each night. When the procedure finish, say to nagios passive service "OK". If an error occur the procedure catch the error and push it via a critical passive alert to nagios. So there have two thing to check every morning: - the application has been executed that night; - the application has finished with an OK status; I don't need "realtime" notification: I want to be notified of the error only in business time, not at 2 am...:) I thought about these features... - freshness can help me to check if the service status is stale for > 24hours - notification period will help me to be not notified in the night. This finally do not resolve the whole problem. I want to be notified of "this night" error on "this morning" and not tomorrow morning or tomorrow night. Do you have ideas? Thanks Matteo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 atstake at gmail.com Thu Jan 29 12:23:56 2009 From: atstake at gmail.com (Chris) Date: Thu, 29 Jan 2009 03:23:56 -0800 Subject: check_snmp_storage.pl - check disk space for / In-Reply-To: <4F539862-9D05-4C3F-B25B-FF0F37ACBFCF@ena.com> References: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com> <4F539862-9D05-4C3F-B25B-FF0F37ACBFCF@ena.com> Message-ID: <8adc88580901290323k5da4ceecy977774b5a15222b2@mail.gmail.com> On Wed, Jan 28, 2009 at 9:10 PM, Marc Powell wrote: > > On Jan 28, 2009, at 10:19 PM, Chris wrote: > >> Is there any way to get it check only the / partition and not the >> other ones? >> >> Here is the commands I tried: >> >> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m / - >> w 20 -c 21 >> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^/ >> -w 20 -c 21 >> /usr/lib/nagios/plugins/check_snmp_storage.pl -H server -C foo -m ^\/ >> -w 20 -c 21 ( that's an escape sequence there after the caret) > > If this is the check_snmp_storage.pl from manubulon, they give that > specific test as an example. Tested and works -- > > http://nagios.manubulon.com/snmp_storage.html > > "%used of / mountpoint only is less than 80% and 90% > ./check_snmp_storage.pl -H 127.0.0.1 -C public -m / -r -w 80% -c 90 > > -r, --noregexp > Do not use regexp to match NAME in description OID" > > > > $ ./check_snmp_storage.pl -H -C -m / -r -w 80% - > c 90% > > /: 72%used(5641MB/7874MB) (<80%) : OK Thanks. I downloaded this script and it works perfectly fine. I was missing the -r option. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Thu Jan 29 12:27:19 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 29 Jan 2009 11:27:19 +0000 Subject: Hosts stuck in PENDING status Message-ID: <200901291127.19358.assaf.flatto@ssp-intl.com> Hello I setup a new 3.0.6 nagios server (SLES 10.2) and everything is working fine except that i have 42 servers that appear in a PENDING status , checks of services on those servers are working and reporting OK , ping test is reporting OK , but the Check_host_alive is pending for those 42 servers ,Out of 350 servers in total. I tried to force a check for the hosts , but it is no help . Anyone got any ideas ? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Edwin.Zoeller at ama-assn.org Thu Jan 29 12:38:48 2009 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Thu, 29 Jan 2009 05:38:48 -0600 Subject: How to dtermine disk space in Linux In-Reply-To: <8adc88580901290323k5da4ceecy977774b5a15222b2@mail.gmail.com> References: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com><4F539862-9D05-4C3F-B25B-FF0F37ACBFCF@ena.com> <8adc88580901290323k5da4ceecy977774b5a15222b2@mail.gmail.com> Message-ID: I hope someone can help and explain this to me. I am trying to use one of three plugins for Nagios to check disk space on a Linux file system. When I plug in values that I thinks would work, I don't understand what its telling me. Can someone shed some lite. I am used to the plugins on Solaris which you can set up a percentage, much easier. Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Thu Jan 29 14:20:43 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 29 Jan 2009 13:20:43 +0000 Subject: skip monitoring every 4 weeks Message-ID: <200901291320.43969.assaf.flatto@ssp-intl.com> Hello I have a situation where i need to turn of monitoring for server while they are being rebooted , this is done during the weekend , and the person doing the reboots is not one that has access to the nagios . i know that Version 3 placed the functionality of alternating and dynamic scheduling in the timeperiods definitions , but after reading the online documentation , i'm not realy clear on ho i can achieve my gaol. I need the monitoring for a server to be stopped during a period (specific times TBD ) every 4th weekend , (Sunday or Saturday , again yet to be determined ). I understand that I need to define a time period and add an "exclude" to the time period the host in question has defined . My issue is with the correct format of the "skipped" timeperiod . Is what I'm defining below correct in format and functionality - if not in strict content ? define timeperiod{ timeperiod_name weekend-off Sunday /28 00:00-24:00 } define timeperiod{ timeperiod_name box-reboot use 24x7 exclude offweekend } Thanks -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Thu Jan 29 14:30:04 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Thu, 29 Jan 2009 19:00:04 +0530 Subject: calling a java program from nagios Message-ID: Hi, For some purpose that was not served by nagios, we have written a java program. One of our client requirement is that this java code (if possible) has to be integrated with nagios so that all the purpose is solved(apparently) by nagios framework. Any input is appreciated. Thanks Venu This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 subscription at kkeane.com Thu Jan 29 14:34:23 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 29 Jan 2009 05:34:23 -0800 Subject: How to dtermine disk space in Linux In-Reply-To: References: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com> Message-ID: <4981B05F.7000806@kkeane.com> I'm not sure what 3 plugins you are trying. I am using a bash script with a little df and awk thrown in: The whole script does a lot more, but the key part is this: The critical and warn percentages are in $CDISKUSAGE and $WDISKUSAGE, respectively. Note that this will check all file systems, including CDROM, removable disks, etc. So you may need to modify the call to df a bit to make it work for you. Hint: try the -t or -x arguments to check only the file systems you are interested in. function checkdiskspace() { local retval df -Ph | awk " { if(int(\$5)>=$CDISKUSAGE) { print \"CRIT\", \$0,\"
\" } else if (int(\$5)>=$WDISKUSAGE) {print \"WARN\", \$0,\"
\" } }" > /tmp/$$ cat /tmp/$$ retval=0 grep "^CRIT " /tmp/$$ >/dev/null if [ $? -eq 0 ] then retval=2 else grep "^WARN " /tmp/$$ >/dev/null if [ $? -eq 0 ] then retval=1 else echo "All disks OK" fi fi rm -f /tmp/$$ return $retval } Edwin Zoeller wrote: > I hope someone can help and explain this to me. I am trying to use one > of three plugins for Nagios to check disk space on a Linux file system. > When I plug in values that I thinks would work, I don't understand what > its telling me. Can someone shed some lite. I am used to the plugins on > Solaris which you can set up a percentage, much easier. > > Thanks -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Edgar.Matzinger at valid.nl Thu Jan 29 14:41:46 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Thu, 29 Jan 2009 14:41:46 +0100 Subject: skip monitoring every 4 weeks In-Reply-To: <200901291320.43969.assaf.flatto@ssp-intl.com> References: <200901291320.43969.assaf.flatto@ssp-intl.com> Message-ID: Hi Assaf, > > I have a situation where i need to turn of monitoring for server while > they are being rebooted , > this is done during the weekend , and the person doing the reboots is > not one that has access to > the nagios . > why don't you specify downtimes? For those hosts? This can be done in advance. HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 simon.kainz at tugraz.at Thu Jan 29 14:41:40 2009 From: simon.kainz at tugraz.at (Simon Kainz) Date: Thu, 29 Jan 2009 14:41:40 +0100 Subject: display selected info on public web page In-Reply-To: <498169DE.1050308@bsdlabs.com> References: <498169DE.1050308@bsdlabs.com> Message-ID: <20090129144140.10342zfq3tsfv3eo@webmail.tugraz.at> Quoting Per olof Ljungmark : > Hi all, > > I wonder if anyone could please share some knowledge on how one can > display snippets of info from Nagios on a public web page? I've googled > some but did not find much on the topic, then looked into Nagvis but > that seemed more suited to the datacenter. > > For example, a small green blob telling the status of a certain host > without revealing other details. > > Any hints appriciated. > > Thanks, > > -- > per > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > Hi ! I usually use a combination of wget and scp/rsync to first save pages or parts of pages (in my case it's a hostgroup view) from localhost as a crojob. Then I rsync or scp (whatever you prefer) the saved files to another public server. So no one needs to get access to my nagios server but the data is still visible. I generally use this "push"-approach, pushing data from "more secure" servers to "less" secure ones. Reagrds, Simon ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ae at op5.se Thu Jan 29 14:43:03 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 29 Jan 2009 14:43:03 +0100 Subject: skip monitoring every 4 weeks In-Reply-To: <200901291320.43969.assaf.flatto@ssp-intl.com> References: <200901291320.43969.assaf.flatto@ssp-intl.com> Message-ID: <4981B267.8060001@op5.se> Assaf Flatto wrote: > Hello > > I have a situation where i need to turn of monitoring for server while they are being rebooted , > this is done during the weekend , and the person doing the reboots is not one that has access to > the nagios . > > i know that Version 3 placed the functionality of alternating and dynamic scheduling in the > timeperiods definitions , but after reading the online documentation , i'm not realy clear on ho i > can achieve my gaol. > > I need the monitoring for a server to be stopped during a period (specific times TBD ) every 4th > weekend , (Sunday or Saturday , again yet to be determined ). > > I understand that I need to define a time period and add an "exclude" to the time period the host > in question has defined . > > My issue is with the correct format of the "skipped" timeperiod . > Is what I'm defining below correct in format and functionality - if not in strict content ? > > define timeperiod{ > timeperiod_name weekend-off > Sunday /28 00:00-24:00 > } > I'm not 100% sure, but I *think* you want to use Sunday -1 00:00-24:00 if you mean "last sunday of the month". > define timeperiod{ > timeperiod_name box-reboot > use 24x7 > exclude offweekend > } > The rest looks good though. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 assaf.flatto at ssp-intl.com Thu Jan 29 14:47:58 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 29 Jan 2009 13:47:58 +0000 Subject: skip monitoring every 4 weeks In-Reply-To: References: <200901291320.43969.assaf.flatto@ssp-intl.com> Message-ID: <200901291347.58550.assaf.flatto@ssp-intl.com> On Thursday 29 January 2009 13:41:46 Edgar Matzinger wrote: > Hi Assaf, > > > I have a situation where i need to turn of monitoring for server while > > they are being rebooted , > > this is done during the weekend , and the person doing the reboots is > > not one that has access to > > the nagios . > > why don't you specify downtimes? For those hosts? This can be done > in advance. > > HTH, cu l8r, Edgar. Cause the whole idea is to make it automatic and dynamic and not to find out after the weekend that we forgot to set the scheduled down time in the nagios . and as i said - it is not every weekend, but once in 4 weeks. Assaf -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 cbeattie at geninfo.com Thu Jan 29 15:17:36 2009 From: cbeattie at geninfo.com (Chris Beattie) Date: Thu, 29 Jan 2009 09:17:36 -0500 Subject: Browser reload problem In-Reply-To: <497F32F4.3010902@nicole-haehnel.de> References: <497F32F4.3010902@nicole-haehnel.de> Message-ID: I didn't notice this until you pointed it out. I almost always open things in new tabs, though. Reloading status.cgi works if it's in its own tab, at least. -----Original Message----- From: Nicole H?hnel [mailto:ml at nicole-haehnel.de] Sent: Tuesday, January 27, 2009 11:15 AM To: Nagios Users mailinglist Subject: [Nagios-users] Browser reload problem Hi, since nagios 3.1.0 I can not reload any status.cgi page in firefox 3 and ie7. If I try to reload, it always jumps back to the main page. Is this a config problem? How can I normaly reload the site again? Thanks! Nicole ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Nothing in this message is intended to make or accept and offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Thu Jan 29 15:22:33 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 29 Jan 2009 06:22:33 -0800 Subject: skip monitoring every 4 weeks In-Reply-To: <200901291320.43969.assaf.flatto@ssp-intl.com> References: <200901291320.43969.assaf.flatto@ssp-intl.com> Message-ID: <4981BBA9.7060009@kkeane.com> What you are describing is, in more generic terms, a maintenance window. I'm actually using a very different approach for the same basic problem: I schedule downtime for that maintenance window. Now Nagios doesn't support recurring scheduled downtimes directly. The solution is a script (this one has hardcoded 2 hours scheduled downtime - change as needed). #!/bin/bash # schedules downtime for the host given in $1 now=$(date +%s) read host read comment # the host may need to be capitalized. To find the correct version, parse the Nagios config files: fixed_host=$(grep -ri "host_name.*$host" /etc/nagios/objects | uniq | awk '{ print $3; }') NAGIOSCMD="[$now] SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME;$fixed_host;$now;$(($now+7200));1;0;7200;Kevin Keane;$comment" echo -e $NAGIOSCMD "\n" > /var/spool/nagios/nagios.cmd In my case, the backup script also calls this one. You may instead want to use cron, or you could invoke it from a shutdown script in the server being rebooted, remotely via ssh. Assaf Flatto wrote: > Hello > > I have a situation where i need to turn of monitoring for server while they are being rebooted , > this is done during the weekend , and the person doing the reboots is not one that has access to > the nagios . > > i know that Version 3 placed the functionality of alternating and dynamic scheduling in the > timeperiods definitions , but after reading the online documentation , i'm not realy clear on ho i > can achieve my gaol. > > I need the monitoring for a server to be stopped during a period (specific times TBD ) every 4th > weekend , (Sunday or Saturday , again yet to be determined ). > > I understand that I need to define a time period and add an "exclude" to the time period the host > in question has defined . > > My issue is with the correct format of the "skipped" timeperiod . > Is what I'm defining below correct in format and functionality - if not in strict content ? > > define timeperiod{ > timeperiod_name weekend-off > Sunday /28 00:00-24:00 > } > > define timeperiod{ > timeperiod_name box-reboot > use 24x7 > exclude offweekend > } > > > Thanks > > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ankit.mehrotra at tcs.com Thu Jan 29 15:23:07 2009 From: ankit.mehrotra at tcs.com (ankit.mehrotra at tcs.com) Date: Thu, 29 Jan 2009 19:53:07 +0530 Subject: calling a java program from nagios In-Reply-To: References: Message-ID: For doing this, you have to describe an appropriate command in commands.cfg file, which will have this java program as an entry in command_line. This command can be called from a service for any machine. Personally, I dont think that executing a Java program through nagios is a good option. As every time this command is called, a jvm will be initiated which will consume pretty substantial system resources. -- Ankit "Venugopal S" 01/29/2009 07:00 PM To cc Subject [Nagios-users] calling a java program from nagios Hi, For some purpose that was not served by nagios, we have written a java program. One of our client requirement is that this java code (if possible) has to be integrated with nagios so that all the purpose is solved(apparently) by nagios framework. Any input is appreciated. Thanks Venu This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ForwardSourceID:NT00030E8A =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 dunnlg at bettis.gov Thu Jan 29 15:07:08 2009 From: dunnlg at bettis.gov (Dunn, Larry) Date: Thu, 29 Jan 2009 09:07:08 -0500 Subject: adding html links to service groups Message-ID: Has anyone added html links to service groups in Nagios 2.9? I want to be able to have the web page display a link to another web server with additional information from the output of a service query of a group of systems. Thanks in advance, Larry -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 at medin.name Thu Jan 29 15:40:53 2009 From: michael at medin.name (Michael Medin) Date: Thu, 29 Jan 2009 13:40:53 -0100 (GMT+1) Subject: calling a java program from nagios In-Reply-To: References: Message-ID: <30412.62.95.35.50.1233240053.squirrel@ssl.nakednuns.org> There is a NRPE server written in Java which probably is a better option then spawning Java from the command line. // Michael Medin > > Hi, > > > > For some purpose that was not served by nagios, we have written a java > program. > > One of our client requirement is that this java code (if possible) has > to be integrated with nagios so that all the purpose is > solved(apparently) by nagios framework. > > > > Any input is appreciated. > > > > Thanks > > Venu > > > > This email message and its attachments may contain CONFIDENTIAL AND > PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If > you have received it in error, please contact the sender by return email, > notify your system manager and destroy the original message and any copies > thereof. Any review, use, disclosure or distribution is unlawful. Please > check this email and any attachments for the presence of viruses. The > Company accepts no liability for any damage caused by any virus > transmitted by this email. The views or opinions presented in this e-mail > are solely those of the author and do not necessarily represent those of > the company. > The Company reserves the right to monitor, review and store the content of > all messages sent to or from this e-mail address. > > www.aztecsoft.com------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > Nagios-users mailing list > Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 29 16:38:28 2009 From: marc at ena.com (Marc Powell) Date: Thu, 29 Jan 2009 09:38:28 -0600 Subject: display selected info on public web page In-Reply-To: <498169DE.1050308@bsdlabs.com> References: <498169DE.1050308@bsdlabs.com> Message-ID: <5371C5D9-8EC8-4070-9A73-175C9ABD60A3@ena.com> On Jan 29, 2009, at 2:33 AM, Per olof Ljungmark wrote: > Hi all, > > I wonder if anyone could please share some knowledge on how one can > display snippets of info from Nagios on a public web page? Nagios Looking Glass might be useful to you. http://www.andyshellam.eu/nlg You could also install NDOUtils to store status information in a database and create your own custom front-end. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 29 16:47:21 2009 From: marc at ena.com (Marc Powell) Date: Thu, 29 Jan 2009 09:47:21 -0600 Subject: How to dtermine disk space in Linux In-Reply-To: References: <8adc88580901282019y73ae6461v60f22ef0eb405478@mail.gmail.com><4F539862-9D05-4C3F-B25B-FF0F37ACBFCF@ena.com> <8adc88580901290323k5da4ceecy977774b5a15222b2@mail.gmail.com> Message-ID: <868B398F-0154-414E-A2CB-9756CF1A24F1@ena.com> On Jan 29, 2009, at 5:38 AM, Edwin Zoeller wrote: > I hope someone can help and explain this to me. I am trying to use one > of three plugins for Nagios to check disk space on a Linux file > system. > When I plug in values that I thinks would work, I don't understand > what > its telling me. Can someone shed some lite. I am used to the plugins > on > Solaris which you can set up a percentage, much easier. I'm test driving three cars. Can you tell me the difference between them? You should tell us what plugins you're using and provide example output to be interpreted. There are many disk check plugins all with different output. I'm also not sure why you need different plugins between solaris and linux? Is there a reason? Also, please do not create a new subject by responding to someone else's post (Chris's check_snmp_storage.pl question). Create a new message to the list. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Thu Jan 29 16:51:16 2009 From: marc at ena.com (Marc Powell) Date: Thu, 29 Jan 2009 09:51:16 -0600 Subject: calling a java program from nagios In-Reply-To: References: Message-ID: <6B21C16B-E48F-4563-B47D-0F1395AD116B@ena.com> On Jan 29, 2009, at 7:30 AM, Venugopal S wrote: > Hi, > > For some purpose that was not served by nagios, we have written a > java program. > One of our client requirement is that this java code (if possible) > has to be integrated with nagios so that all the purpose is > solved(apparently) by nagios framework. Your post and purpose is unclear. Is this java program a check plugin, an event handler, a notification program, etc? If you can manually run it from the command line, nagios should be able to do so. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 sgala at sgala.com Thu Jan 29 17:38:14 2009 From: sgala at sgala.com (Matteo) Date: Thu, 29 Jan 2009 17:38:14 +0100 Subject: display selected info on public web page In-Reply-To: <498169DE.1050308@bsdlabs.com> References: <498169DE.1050308@bsdlabs.com> Message-ID: <20090129163813.GD17012@sgala.com> On Thu, Jan 29, 2009 at 09:33:34AM +0100, Per olof Ljungmark wrote: > I wonder if anyone could please share some knowledge on how one can > display snippets of info from Nagios on a public web page? I've googled You can parse the file status.dat and publish only information that you want. M. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jimm at simutronics.com Thu Jan 29 18:33:29 2009 From: jimm at simutronics.com (James Miller) Date: Thu, 29 Jan 2009 11:33:29 -0600 Subject: Nagios SQL configuration backed Message-ID: <4981E869.7040107@simutronics.com> Hello everyone, I've been using Nagios for a few years now and it the configuration file(s) have become pretty unwieldy over the years. So I'm going to build a new server and I was hoping to get some insight into what everyone's thoughts are on various Nagios addons such as: NDOUtils -- Config and event data storage NagiosQL, Frutiy or Lilac -- Configuration manager NoMa the NetwaysPortal for Nagios -- Notification manager PNP4Nagios, NagiosGrapher -- Performance graphs Thanks, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dario.bestetti at opservices.com.br Thu Jan 29 18:53:55 2009 From: dario.bestetti at opservices.com.br (Dario B. Bestetti (OpServices)) Date: Thu, 29 Jan 2009 15:53:55 -0200 (BRST) Subject: Nagios SQL configuration backed In-Reply-To: <4981E869.7040107@simutronics.com> References: <4981E869.7040107@simutronics.com> Message-ID: <8145360.6661233251635522.JavaMail.root@mail.opservices.com.br> ----- "James Miller" escreveu: > Hello everyone, > > I've been using Nagios for a few years now and it the configuration > file(s) have become pretty unwieldy over the years. So I'm going to > build a new server and I was hoping to get some insight into what > everyone's thoughts are on various Nagios addons such as: > NDOUtils -- Config and event data storage > NagiosQL, Frutiy or Lilac -- Configuration manager > NoMa the NetwaysPortal for Nagios -- Notification manager > PNP4Nagios, NagiosGrapher -- Performance graphs > > Thanks, > Jim > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 Add these: www.opmon.org ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 low at modog.com Thu Jan 29 19:06:27 2009 From: low at modog.com (Seth P. Low) Date: Thu, 29 Jan 2009 13:06:27 -0500 Subject: Nagios 3.1.0 - Update check feature Message-ID: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> In Nagios 3.1.0 there is a new feature: Added automatic update check functionality - runs once a day to check for new Nagios releases Splash screen on web UI now indicates whether a new update is available (requires that update checks are enabled) Question - Where do you enable the "update checks" and are there any other steps? for years I have just had a check http check that ran a few times a day and looked for the current version as a string somewhere on the nagios.org page. Worked really well. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Josh.Morris at wrightmed.com Thu Jan 29 19:38:07 2009 From: Josh.Morris at wrightmed.com (Morris, Josh) Date: Thu, 29 Jan 2009 12:38:07 -0600 Subject: Nagios 3.1.0 - Update check feature In-Reply-To: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> References: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> Message-ID: <4D438C6202ADF041A2FA9A835354479901E25118@wmcex.wmcmed.com> To my knowledge all you need to is add the following line into your nagios.cfg file: check_for_updates=1 This is all that needs to be done to my knowledge. Josh Morris Network Administrator IT Department Wright Medical Center 1316 South Main Street Clarion, IA? 50525 515-532-9252 Josh.Morris at wrightmed.com WMC:? Consistently Exceeding Your Expectations!? At The Summit...Defining Excellence! -----Original Message----- From: Seth P. Low [mailto:low at modog.com] Sent: Thursday, January 29, 2009 12:06 PM To: nagios-users at lists.sourceforge.net >> Nagios Users mailinglist Subject: [Nagios-users] Nagios 3.1.0 - Update check feature In Nagios 3.1.0 there is a new feature: Added automatic update check functionality - runs once a day to check for new Nagios releases Splash screen on web UI now indicates whether a new update is available (requires that update checks are enabled) Question - Where do you enable the "update checks" and are there any other steps? for years I have just had a check http check that ran a few times a day and looked for the current version as a string somewhere on the nagios.org page. Worked really well. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 allanc at chickenandporn.com Thu Jan 29 19:38:40 2009 From: allanc at chickenandporn.com (Allan Clark) Date: Thu, 29 Jan 2009 13:38:40 -0500 Subject: Nagios 3.1.0 - Update check feature In-Reply-To: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> References: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> Message-ID: <37c712e0901291038h36a8e80h5e5b2de714dcfa69@mail.gmail.com> Hi; Hammering a website by referring to it on a constantly-reloading page can generate a lot of unnecessary traffic. If Nagios' DNS held a TXT record indicating the latest released version in a given trend, then it can be checked in a way that is much gentler -- a DNS RR is cached automatically by the DNS servers used, depending on how Nagios.org defines the RR. An "update check" can simply compare the current revision versus the latest, and respond with the standard Nagios WARN/FAIL responses as desired by the users. The end result is a flagged event that can be detected, reported, and escalated just like any other event. This seems to leverage existing support structures yet pose zero additional load to the nagios website, very little additional load on a decentralized and very scalable resource. Failures in Nagios' website, if such happened, would not affect this sort of check. Response time would typically be quite fast. FYC If you're interested, I can flesh this out as a working model. Allan On Thu, Jan 29, 2009 at 13:06, Seth P. Low wrote: > In Nagios 3.1.0 there is a new feature: > > Added automatic update check functionality - runs once a day to check for > new Nagios releases > Splash screen on web UI now indicates whether a new update is available > (requires that update checks are enabled) > > Question - Where do you enable the "update checks" and are there any other > steps? for years I have just had a check http check that ran a few times a > day and looked for the current version as a string somewhere on the > nagios.org page. Worked really well. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 plecki at eagency.com Thu Jan 29 19:51:53 2009 From: plecki at eagency.com (Peter Lecki) Date: Thu, 29 Jan 2009 10:51:53 -0800 Subject: time travel Message-ID: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4B0@exch1.ea.corp.com> Take a look at the times shown in the attached screenshot. Current time is earlier than the last check time??? The time shown in the Last Check column is in the future! :) Peter ea92660p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScreenShot-005.png Type: image/png Size: 7452 bytes Desc: ScreenShot-005.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 andy-lists at networkmail.eu Thu Jan 29 20:42:00 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Thu, 29 Jan 2009 19:42:00 +0000 Subject: Nagios 3.1.0 - Update check feature In-Reply-To: <37c712e0901291038h36a8e80h5e5b2de714dcfa69@mail.gmail.com> References: <15DE1A7F91855E49A18A487C43846C8B590427BDB6@modog2.modog.com> <37c712e0901291038h36a8e80h5e5b2de714dcfa69@mail.gmail.com> Message-ID: <49820688.1030005@networkmail.eu> Hi, > If Nagios' DNS held a TXT record indicating the latest released > version in a given trend, then it can be checked in a way that is much > gentler -- a DNS RR is cached automatically by the DNS servers used, > depending on how Nagios.org defines the RR. > > An "update check" can simply compare the current revision versus the > latest, and respond with the standard Nagios WARN/FAIL responses as > desired by the users. > > The end result is a flagged event that can be detected, reported, and > escalated just like any other event. +1 - I'm behind this idea all the way (it's how Nagios Looking Glass checks for updates.) The idea of having this as a standard Nagios check is extremely appealing. Thanks, Andy ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Thu Jan 29 20:52:57 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 29 Jan 2009 14:52:57 -0500 Subject: Contacts and notifications - services Message-ID: Hi, We've been using nagios for a long while, but only needed one group. However, we now want to add a "DBA" contact group, so that the database administrators get notfications by e-mail if something goes wrong, but only on database servers. I've created the contacts, the contactgroup (dbas), and added 'dbas' in the host definitions of the database servers, but the dbas don't get any notifications when there is a service problem with a DB server. I looked at my services and all of them are configured with 'sysadmins' as contact_groups. The problem is that many of my tests are done on many servers, including DB and non-DB servers. For example, I check the load average on all my servers, but I only want the DBAs to receive e-mails when the load is too high on a database server, not on all. Running Nagios 2.12. Will consider upgrading to 3.x if needed. Regards, Ugo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mgagne at iweb.com Thu Jan 29 21:05:27 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Thu, 29 Jan 2009 15:05:27 -0500 Subject: Contacts and notifications - services In-Reply-To: References: Message-ID: <49820C07.6070505@iweb.com> Hi, Ugo Bellavance wrote: > Hi, > > We've been using nagios for a long while, but only needed one group. > However, we now want to add a "DBA" contact group, so that the database > administrators get notfications by e-mail if something goes wrong, but > only on database servers. > > I've created the contacts, the contactgroup (dbas), and added 'dbas' in > the host definitions of the database servers, but the dbas don't get any > notifications when there is a service problem with a DB server. I > looked at my services and all of them are configured with 'sysadmins' as > contact_groups. The problem is that many of my tests are done on many > servers, including DB and non-DB servers. For example, I check the load > average on all my servers, but I only want the DBAs to receive e-mails > when the load is too high on a database server, not on all. > > Running Nagios 2.12. Will consider upgrading to 3.x if needed. Why don't you add the contactgroup "dbas" and remove "sysadmins" from the "load" service definition for all database servers? -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Thu Jan 29 21:11:05 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 29 Jan 2009 15:11:05 -0500 Subject: Contacts and notifications - services In-Reply-To: <49820C07.6070505@iweb.com> References: <49820C07.6070505@iweb.com> Message-ID: <49820D59.4050106@lubik.ca> Mathieu Gagn? a ?crit : > Hi, > > Ugo Bellavance wrote: >> Hi, >> >> We've been using nagios for a long while, but only needed one group. >> However, we now want to add a "DBA" contact group, so that the database >> administrators get notfications by e-mail if something goes wrong, but >> only on database servers. >> >> I've created the contacts, the contactgroup (dbas), and added 'dbas' in >> the host definitions of the database servers, but the dbas don't get any >> notifications when there is a service problem with a DB server. I >> looked at my services and all of them are configured with 'sysadmins' as >> contact_groups. The problem is that many of my tests are done on many >> servers, including DB and non-DB servers. For example, I check the load >> average on all my servers, but I only want the DBAs to receive e-mails >> when the load is too high on a database server, not on all. >> >> Running Nagios 2.12. Will consider upgrading to 3.x if needed. > > Why don't you add the contactgroup "dbas" and remove "sysadmins" from > the "load" service definition for all database servers? Because the load service is defined for all my linux servers. If I remove sysadmin from the "load" service definition, I won't receive notifications for my proxy server, my backup server, etc... I hope I won't have to duplicate all of my common tests... Thanks, Ugo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 scarolan at gmail.com Thu Jan 29 21:13:21 2009 From: scarolan at gmail.com (Sean Carolan) Date: Thu, 29 Jan 2009 14:13:21 -0600 Subject: Strange problem with plugins timing out Message-ID: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> We have two Nagios servers each for monitoring different networks. The production network has over 1200 service checks and the average host check time is around 4 seconds: Host Check Execution Time: 4.03 / 4.15 / 4.039 sec The UAT network has only 120 checks. For some reason, starting yesterday we have seen a huge spike in the average Host Check Execution Time: Host Check Execution Time: 4.03 / 24.09 / 16.236 sec This is causing all sorts of false alarms. I tried to log onto the server and run some checks from the command line and indeed, the check_ping plugin runs really, really slow. The odd thing is that if I just do a standard "ping hostname" it's nice and fast. We have not changed or updated anything on this Nagios server, nor are we seeing any kind of elevated CPU usage. Has anyone else experienced anything like this? I'm not sure where to look to start troubleshooting the problem. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Thu Jan 29 21:11:25 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 29 Jan 2009 15:11:25 -0500 Subject: Contacts and notifications - services In-Reply-To: <49820C07.6070505@iweb.com> References: <49820C07.6070505@iweb.com> Message-ID: Mathieu Gagn? a ?crit : > Hi, > > Ugo Bellavance wrote: >> Hi, >> >> We've been using nagios for a long while, but only needed one group. >> However, we now want to add a "DBA" contact group, so that the database >> administrators get notfications by e-mail if something goes wrong, but >> only on database servers. >> >> I've created the contacts, the contactgroup (dbas), and added 'dbas' in >> the host definitions of the database servers, but the dbas don't get any >> notifications when there is a service problem with a DB server. I >> looked at my services and all of them are configured with 'sysadmins' as >> contact_groups. The problem is that many of my tests are done on many >> servers, including DB and non-DB servers. For example, I check the load >> average on all my servers, but I only want the DBAs to receive e-mails >> when the load is too high on a database server, not on all. >> >> Running Nagios 2.12. Will consider upgrading to 3.x if needed. > > Why don't you add the contactgroup "dbas" and remove "sysadmins" from > the "load" service definition for all database servers? Because the load service is defined for all my linux servers. If I remove sysadmin from the "load" service definition, I won't receive notifications for my proxy server, my backup server, etc... I hope I won't have to duplicate all of my common tests... Thanks, Ugo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 mgagne at iweb.com Thu Jan 29 21:32:18 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Thu, 29 Jan 2009 15:32:18 -0500 Subject: Contacts and notifications - services In-Reply-To: References: <49820C07.6070505@iweb.com> Message-ID: <49821252.8080608@iweb.com> Hi, Ugo Bellavance wrote: > Mathieu Gagn? a ?crit : >> Why don't you add the contactgroup "dbas" and remove "sysadmins" from >> the "load" service definition for all database servers? > > Because the load service is defined for all my linux servers. If I > remove sysadmin from the "load" service definition, I won't receive > notifications for my proxy server, my backup server, etc... > > I hope I won't have to duplicate all of my common tests... > Do you have a "monolithic" service definition? (ie. all hosts specifed in host_name) If you want to do it with Nagios2, you will probably have to create a second service definition and move all database servers in this one. Nagios3 supports the use of hostgroups in service definition. This means you would be able to create a hostgroup named "database-servers" and define a common service for each hostgroup's members. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service hostgroup_name: This directive is used to specify the short name(s) of the hostgroup(s) that the service "runs" on or is associated with. Multiple hostgroups should be separated by commas. The hostgroup_name may be used instead of, or in addition to, the host_name directive. -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Thu Jan 29 21:42:15 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 29 Jan 2009 15:42:15 -0500 Subject: Contacts and notifications - services In-Reply-To: <49821252.8080608@iweb.com> References: <49820C07.6070505@iweb.com> <49821252.8080608@iweb.com> Message-ID: Mathieu Gagn? a ?crit : > Hi, > > Ugo Bellavance wrote: >> Mathieu Gagn? a ?crit : >>> Why don't you add the contactgroup "dbas" and remove "sysadmins" from >>> the "load" service definition for all database servers? >> Because the load service is defined for all my linux servers. If I >> remove sysadmin from the "load" service definition, I won't receive >> notifications for my proxy server, my backup server, etc... >> >> I hope I won't have to duplicate all of my common tests... >> > > Do you have a "monolithic" service definition? (ie. all hosts specifed > in host_name) > > If you want to do it with Nagios2, you will probably have to create a > second service definition and move all database servers in this one. > > Nagios3 supports the use of hostgroups in service definition. This means > you would be able to create a hostgroup named "database-servers" and > define a common service for each hostgroup's members. > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service > > hostgroup_name: This directive is used to specify the short name(s) of > the hostgroup(s) that the service "runs" on or is associated with. > Multiple hostgroups should be separated by commas. The hostgroup_name > may be used instead of, or in addition to, the host_name directive. I am using this on Nagios 2.x and it's working. But this also leads to a duplication of a service that is currently stated only once. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 matt at frozenatom.com Thu Jan 29 21:29:15 2009 From: matt at frozenatom.com (Matt Nelson) Date: Thu, 29 Jan 2009 13:29:15 -0700 Subject: force checking of hostgroups... Message-ID: <148f6bb30901291229q399844fby6748aeda1ff26948@mail.gmail.com> Nagios used to check that each host belong to a hostgroup. I'm using Nagios3, and it appears that this is no longer the case. Is there a setting in the nagios.cfg, or something that I can do to have nagios tell me if hosts are not in a hostgroup? ie: when I run nagios -v I am worried that when I, or others, create hosts in the future that they will not be put in a hostgroup, and this causes problems with some of the web interfaces that are fronting NDO. Thanks Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 plecki at eagency.com Thu Jan 29 22:18:18 2009 From: plecki at eagency.com (Peter Lecki) Date: Thu, 29 Jan 2009 13:18:18 -0800 Subject: time travel In-Reply-To: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4B0@exch1.ea.corp.com> References: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4B0@exch1.ea.corp.com> Message-ID: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4BA@exch1.ea.corp.com> That was kind of a question, I'm not sure why this is happening and was hoping someone might? The server has the correct time and the correct time also appears in Nagios Current Network Status window. But all of the times of Last Checks are in the future by several hours. Thanks, Peter. ________________________________ From: Peter Lecki [mailto:plecki at eagency.com] Sent: Thursday, January 29, 2009 10:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] time travel Take a look at the times shown in the attached screenshot. Current time is earlier than the last check time??? The time shown in the Last Check column is in the future! :) Peter ea92660h ea926p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScreenShot-005.png Type: image/png Size: 7452 bytes Desc: ScreenShot-005.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 mgagne at iweb.com Thu Jan 29 23:15:30 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Thu, 29 Jan 2009 17:15:30 -0500 Subject: Contacts and notifications - services In-Reply-To: References: <49820C07.6070505@iweb.com> <49821252.8080608@iweb.com> Message-ID: <49822A82.6060209@iweb.com> Hi, Ugo Bellavance wrote: > > But this also leads to a duplication of a service that is currently > stated only once. > Is there any host left in the first service check which could be member of the hostgroup used in the second service check? -- Mathieu ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 JHorowitz at looksmart.net Thu Jan 29 22:49:02 2009 From: JHorowitz at looksmart.net (Jonah Horowitz) Date: Thu, 29 Jan 2009 13:49:02 -0800 Subject: 127 Errors Message-ID: <3123F9D3D56CDF499431864372968D2F0CEE0FF2@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> I'm upgrading my nagios installation from a nagios 2.7 installation to a nagios 3.0.6 setup. I installed nagios 3.0.6 on my new server with the exact same directory structure as my nagios 2.7 installation on my old server. I copied over my configuration files and ran nagios -v on the configs. I got a few warnings, but no errors. I fixed those anyway. For some reason most, but not all of my checks are returning 127 errors. I've tried running the checks by hand as the nagios user and they run fine. I'm at a loss as to what the problem could be. I restarted the nagios process with the following lines in the config file debug_level=16 debug_verbosity=1 I'm wondering about this output in nagios.debug: 1233265544.091784] [2320.2] [pid=15317] Raw Command Input: $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -t 2 -n 1 [1233265544.091796] [2320.2] [pid=15317] Expanded Command Output: $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -t 2 -n 1 It looks like it's not expanding any of the variables. Is this the case, or is this what it should look like? Thanks in advance, Jonah Horowitz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 dermoth at aei.ca Thu Jan 29 23:04:17 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 29 Jan 2009 17:04:17 -0500 Subject: Problems Compile Nagios Plugin 1.4.13 In-Reply-To: <4980A759.3060806@osiatis.es> References: <4980A759.3060806@osiatis.es> Message-ID: <498227E1.1020108@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/01/09 01:43 PM, Felipe Ferreira wrote: > > Problems Compile Nagios Plugin 1.4.13 > All this big mess started because I need the MySQLPerf plugin, whitch is > a really cool plugin, but it needs the > source of the official plugin. > > [...] > > Installed both debian radius called "libradius1" and "libradius1-dev". > > Still same problem! > 2 questions, > 1.Is it possible to do the ./Configure --.without (radiusclient) I have > tried many ways but it always find it then gives me errors and exits. > 2. Is my problem with OpenSSL instead? If so how to fix it? It should work with the libradius1 packages you installed. However if you get the same error there might be a problem with your previous radiusclient installation and it may still be trying to use it (therefore not using libradius1). Try removing every files installed by the other radiusclients and start over from configure again. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJgifh6dZ+Kt5BchYRAgHTAJ9jHiHOYGyXEiniOsy6+iaaRkD5YgCeJZFX XZnw+5ipvrN3TEXL6z/xNb8= =rk6n -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 30 00:13:35 2009 From: marc at ena.com (Marc Powell) Date: Thu, 29 Jan 2009 17:13:35 -0600 Subject: 127 Errors In-Reply-To: <3123F9D3D56CDF499431864372968D2F0CEE0FF2@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> References: <3123F9D3D56CDF499431864372968D2F0CEE0FF2@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> Message-ID: On Jan 29, 2009, at 3:49 PM, Jonah Horowitz wrote: > 1233265544.091784] [2320.2] [pid=15317] Raw Command Input: $USER1$/ > check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -t 2 -n 1 > [1233265544.091796] [2320.2] [pid=15317] Expanded Command Output: > $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -t > 2 -n 1 > > It looks like it?s not expanding any of the variables. Is this the > case, or is this what it should look like. The line above is before macro substitution. You want to debug Macros. I think it's debug_level 2048, verbosity 2 if I'm reading the code right. You could always set debug_level to -1 to be certain. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Fri Jan 30 01:56:56 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Thu, 29 Jan 2009 18:56:56 -0600 Subject: SNMP monitoring of a Dell switch: snmpwalk succeds but check_snmp fails. Message-ID: I was trying to monitor my Dell Power Connect Switch via nagios. I used the default templates and have this check_command in my switch.cfg: check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB Unfortunately the web-interface shows: "SNMP CRITICAL - *down(2)* " Now I tried a naked SNMP query on this switch: snmpwalk -v1 -c public switch3 -m ALL.1 > /tmp/switch3.snmp.log The switch does respond with reams of output! But I am not really sure what I should be looking for in there. I tried grepping on " ifOperStatus.1" but that is not to be found. Any other suggestions how to monitor this recalcitrant Dell switch? -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 perldork at webwizarddesign.com Fri Jan 30 03:40:42 2009 From: perldork at webwizarddesign.com (Max) Date: Thu, 29 Jan 2009 21:40:42 -0500 Subject: SNMP monitoring of a Dell switch: snmpwalk succeds but check_snmp fails. In-Reply-To: References: Message-ID: On Thu, Jan 29, 2009 at 7:56 PM, Rahul Nabar wrote: > I was trying to monitor my Dell Power Connect Switch via nagios. I used the > default templates and have this check_command in my switch.cfg: > check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m > RFC1213-MIB > > Unfortunately the web-interface shows: "SNMP CRITICAL - *down(2)* " > > Now I tried a naked SNMP query on this switch: > > snmpwalk -v1 -c public switch3 -m ALL.1 > /tmp/switch3.snmp.log > > The switch does respond with reams of output! But I am not really sure what > I should be looking for in there. I tried grepping on " ifOperStatus.1" but > that is not to be found. > > Any other suggestions how to monitor this recalcitrant Dell switch? The OID that maps to ifOperStatus from RFC1213-MIB is 1.3.6.1.2.1.2.2.1.8 So grep for 1.3.6.1.2.1.2.2.1.8.1 if the interface you want to look at is indeed at index 1 :). When running a check within Nagios, for performance reasons it generally is preferable to document what the name of the OID is in the service comments and use the dotted notation in the check .. as otherwise the command, which I think just cals a Net-SNMP command, has to then load and parse the whole MIB file just to turn your single OID name into the numeric representation. If you are just running this for one port on one switch, then loading the MIB is no biggie, if you plan to monitor hundreds or thousands of ports, would be better to use the numeric form of the OID and run an ePN plugin using the perl Net::SNMP or NSNMP library or a plugin that implements the C Net-SNMP libraries directly To view the mappings of OID descriptions to OIDs from the CLI you can use the Net-SNMP snmptranslate tool: snmptranslate -Tz -m RFC1213-MIB Gives a nice output format .. e.g. first 20 or so lines from the above: "org" "1.3" "dod" "1.3.6" "internet" "1.3.6.1" "directory" "1.3.6.1.1" "mgmt" "1.3.6.1.2" "mib-2" "1.3.6.1.2.1" "system" "1.3.6.1.2.1.1" "sysDescr" "1.3.6.1.2.1.1.1" "sysObjectID" "1.3.6.1.2.1.1.2" "sysUpTime" "1.3.6.1.2.1.1.3" "sysContact" "1.3.6.1.2.1.1.4" "sysName" "1.3.6.1.2.1.1.5" "sysLocation" "1.3.6.1.2.1.1.6" "sysServices" "1.3.6.1.2.1.1.7" "sysORLastChange" "1.3.6.1.2.1.1.8" "sysORTable" "1.3.6.1.2.1.1.9" "sysOREntry" "1.3.6.1.2.1.1.9.1" - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Fri Jan 30 06:24:30 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 30 Jan 2009 10:54:30 +0530 Subject: calling a java program from nagios In-Reply-To: <6B21C16B-E48F-4563-B47D-0F1395AD116B@ena.com> References: <6B21C16B-E48F-4563-B47D-0F1395AD116B@ena.com> Message-ID: Hi Marc, The program can be run from commandline with one argument (which is critical for the java code to work). For example : "java -classpath Notify.jar " is the format. How to achieve this is nagios ? Venu -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, January 29, 2009 9:21 PM To: nagios-users ML Subject: Re: [Nagios-users] calling a java program from nagios On Jan 29, 2009, at 7:30 AM, Venugopal S wrote: > Hi, > > For some purpose that was not served by nagios, we have written a > java program. > One of our client requirement is that this java code (if possible) > has to be integrated with nagios so that all the purpose is > solved(apparently) by nagios framework. Your post and purpose is unclear. Is this java program a check plugin, an event handler, a notification program, etc? If you can manually run it from the command line, nagios should be able to do so. -- Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Fri Jan 30 00:38:14 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 29 Jan 2009 15:38:14 -0800 Subject: time travel In-Reply-To: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4B0@exch1.ea.corp.com> References: <4F9C3ACB9A61D74ABF0D161858A10B2FD2A4B0@exch1.ea.corp.com> Message-ID: <49823DE6.1090402@kkeane.com> Looks like a time zone issue to me. Apparently Last Check displays in GMT for you. Maybe Nagios itself runs on GMT, and Apache in PST? Peter Lecki wrote: > Take a look at the times shown in the attached screenshot. Current > time is earlier than the last check time??? The time shown in the > Last Check column is in the future! :) > > Peter > ea92660h > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 30 07:29:03 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Jan 2009 00:29:03 -0600 Subject: calling a java program from nagios In-Reply-To: References: Message-ID: <4450699C-DBCA-44A3-ABC9-F155139FC073@ena.com> On Jan 29, 2009, at 11:24 PM, Venugopal S wrote: > > Hi Marc, > > The program can be run from commandline with one argument (which is > critical for the java code to work). > > For example : "java -classpath Notify.jar " is the format. > How > to achieve this is nagios ? See the rest of my questions below. You have not yet stated your intent so we can't answer how to do it. Be _very_ clear about what you're trying to accomplish. > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 29, 2009 9:21 PM > To: nagios-users ML > Subject: Re: [Nagios-users] calling a java program from nagios > > Your post and purpose is unclear. Is this java program a check plugin, > an event handler, a notification program, etc? If you can manually run > it from the command line, nagios should be able to do so. > > -- > Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 T.Handle at lzd.saarland.de Fri Jan 30 09:53:04 2009 From: T.Handle at lzd.saarland.de (Handle Thomas (LZD)) Date: Fri, 30 Jan 2009 09:53:04 +0100 Subject: Duplicates Found Message-ID: <2C92C70278FDD04980810725382C729101B35509@SRVLZD05.LZD.saarland.de> Good Morning, First of all I have to say that I?m new to Nagios, I got the project 4 weeks ago from a resigned employee. Two weeks ago, my firm had to move the emergency stop. Since this moment, we?re experiencing problems like ?DUPLICATES FOUND?. There was nothing changed within the nagios configuration or the network. What could be a reason for this behaviour? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 ml at nicole-haehnel.de Fri Jan 30 11:34:25 2009 From: ml at nicole-haehnel.de (=?ISO-8859-1?Q?Nicole_H=E4hnel?=) Date: Fri, 30 Jan 2009 11:34:25 +0100 Subject: Browser reload problem In-Reply-To: References: <497F32F4.3010902@nicole-haehnel.de> Message-ID: <4982D7B1.1020900@nicole-haehnel.de> Yes, if I open status.cgi in a new tab, I can reload the page. But I do not want to open new tabs for the cgis. It's a frameset problem. Thanks! Nicole Chris Beattie schrieb: > I didn't notice this until you pointed it out. I almost always open things in new tabs, though. Reloading status.cgi works if it's in its own tab, at least. > > -----Original Message----- > From: Nicole H?hnel [mailto:ml at nicole-haehnel.de] > Sent: Tuesday, January 27, 2009 11:15 AM > To: Nagios Users mailinglist > Subject: [Nagios-users] Browser reload problem > > Hi, > > since nagios 3.1.0 I can not reload any status.cgi page in firefox 3 and > ie7. > If I try to reload, it always jumps back to the main page. > Is this a config problem? > How can I normaly reload the site again? > > Thanks! > > Nicole > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Nagios-users mailing list > Nagios-users 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 > > Nothing in this message is intended to make or accept and offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. > > Thank you. > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 ugob at lubik.ca Fri Jan 30 13:57:31 2009 From: ugob at lubik.ca (Ugo Bellavance) Date: Fri, 30 Jan 2009 07:57:31 -0500 Subject: Contacts and notifications - services In-Reply-To: <49822A82.6060209@iweb.com> References: <49820C07.6070505@iweb.com> <49821252.8080608@iweb.com> <49822A82.6060209@iweb.com> Message-ID: Mathieu Gagn? a ?crit : > Hi, > > Ugo Bellavance wrote: >> But this also leads to a duplication of a service that is currently >> stated only once. >> > > Is there any host left in the first service check which could be member > of the hostgroup used in the second service check? There is no second service check. For example, here is my only service definition for load # Service definition define service{ use generic-service hostgroup linux-servers-nrpe service_description Load is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 1 retry_check_interval 1 contact_groups sysadmins notification_interval 120 notification_period notsleeping notification_options w,u,c,r check_command check_nrpe!check_load!7,5,3!8,6,4 } This is the only definition of this service check. As you can see the hostgroup is all linux servers that run nrpe, and that includes all of our database servers, but also many other linux servers. Thanks, Ugo ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 venugopals at aztecsoft.com Fri Jan 30 14:05:18 2009 From: venugopals at aztecsoft.com (Venugopal S) Date: Fri, 30 Jan 2009 18:35:18 +0530 Subject: calling a java program from nagios In-Reply-To: <4450699C-DBCA-44A3-ABC9-F155139FC073@ena.com> References: <4450699C-DBCA-44A3-ABC9-F155139FC073@ena.com> Message-ID: Hi Marc, The program that we have written uses HTTPUnit+Statemachine for web crawling some websites. What we do through this java code is to check whether the login action on few websites is happening properly. If some login fails, we would send an email to the mailing list. Hope this is clear. Please let me know if anything else is needed. --Venu -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, January 30, 2009 11:59 AM To: nagios-users ML Subject: Re: [Nagios-users] calling a java program from nagios On Jan 29, 2009, at 11:24 PM, Venugopal S wrote: > > Hi Marc, > > The program can be run from commandline with one argument (which is > critical for the java code to work). > > For example : "java -classpath Notify.jar " is the format. > How > to achieve this is nagios ? See the rest of my questions below. You have not yet stated your intent so we can't answer how to do it. Be _very_ clear about what you're trying to accomplish. > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Thursday, January 29, 2009 9:21 PM > To: nagios-users ML > Subject: Re: [Nagios-users] calling a java program from nagios > > Your post and purpose is unclear. Is this java program a check plugin, > an event handler, a notification program, etc? If you can manually run > it from the command line, nagios should be able to do so. > > -- > Marc ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address. www.aztecsoft.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 scarolan at gmail.com Fri Jan 30 14:42:57 2009 From: scarolan at gmail.com (Sean Carolan) Date: Fri, 30 Jan 2009 07:42:57 -0600 Subject: Strange problem with plugins timing out In-Reply-To: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> References: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> Message-ID: <277020fc0901300542r6e8bb868md20e0537c37b2cf8@mail.gmail.com> > > Has anyone else experienced anything like this? I'm not sure where to > look to start troubleshooting the problem. > I was able to alleviate the service check alarms by increasing my check_by_ssh plugin timeout to 30 seconds, however I'm still getting timeouts on ping tests, even inspite of the -t 60 flag on my ping command. Additional Info: CRITICAL - Plugin timed out after 10 seconds Here's how my check_by_ping plugin is configured: command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 60 Can anyone help me? Why is it still timing out after ten seconds, even when I have explicitly set the timeout at 60 seconds?? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jpratt at norwich.edu Fri Jan 30 14:46:06 2009 From: jpratt at norwich.edu (James Pratt) Date: Fri, 30 Jan 2009 08:46:06 -0500 Subject: Duplicates Found In-Reply-To: <2C92C70278FDD04980810725382C729101B35509@SRVLZD05.LZD.saarland.de> References: <2C92C70278FDD04980810725382C729101B35509@SRVLZD05.LZD.saarland.de> Message-ID: <8147CCE3C4A8764DA9980125EE70E8237D88C1@nuexchg.norwich.edu> From: Handle Thomas (LZD) [mailto:T.Handle at lzd.saarland.de] Sent: Friday, January 30, 2009 3:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Duplicates Found Good Morning, First of all I have to say that I?m new to Nagios, I got the project 4 weeks ago from a resigned employee. Two weeks ago, my firm had to move the emergency stop. Since this moment, we?re experiencing problems like "DUPLICATES FOUND". There was nothing changed within the nagios configuration or the network. What could be a reason for this behaviour? --- Hi , I don't follow what you mean about the "emergency stop", but I once had this same problem on ping/icmp checks - It turned out to be network spanning-tree issues on our switches and routers... HTH Regards, Jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 james.mohr at elaxy.com Fri Jan 30 15:08:49 2009 From: james.mohr at elaxy.com (Mohr James) Date: Fri, 30 Jan 2009 15:08:49 +0100 Subject: NagiosGrapher: Multiple Graphs from a single service check Message-ID: Hi All! We have service checks that return multiple values, some are contained in the normal service check output and some in the performance data. We want to be able to display these in different graphs or all within a single graph. I am familar with the concept of the nmgraphs (although I have never configured one). It seems to me that this is intended to display the same values across multiple machines and not multiple values from a single machines, so I am at a loss to figure out where to go from here. For clarity: we have a service check that connects to an application via an interal API and performs a number of actions. It returns the time it spend at each step. We would like to create a graph that displays all of these values in a single chart. A kick in the right direction would be very helpful. Regards, Jim Mohr -- Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 scarolan at gmail.com Fri Jan 30 15:59:18 2009 From: scarolan at gmail.com (Sean Carolan) Date: Fri, 30 Jan 2009 08:59:18 -0600 Subject: Strange problem with plugins timing out In-Reply-To: <277020fc0901300542r6e8bb868md20e0537c37b2cf8@mail.gmail.com> References: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> <277020fc0901300542r6e8bb868md20e0537c37b2cf8@mail.gmail.com> Message-ID: <277020fc0901300659t59353108p1a0dcbf07d6d1c8a@mail.gmail.com> > Here's how my check_by_ping plugin is configured: > > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c > 5000.0,100% -p 5 -t 60 > > Can anyone help me? Why is it still timing out after ten seconds, > even when I have explicitly set the timeout at 60 seconds?? The FAQ page seems to indicate that the default timeout for most plugins is 10 seconds. Why are my plugins still timing out even though I have "-t 60"? First you need to identify where the timeout is occurring. Most plugins time out after 10 seconds of not being able to contact a service (FTP, HTTP, etc). If the plugins are timing out after a short period of time, increase the timeout value for the plugin using the appropriate command line argument for that plugin. This may be done in either the command definition, or in individual service definitions. In addition to plugins having timeouts, Nagios enforces its own timeout value on all service checks that run. By default, this is set to 30 seconds. If the plugin executes for more than 30 seconds, Nagios will automatically kill it off and return a critical error for that service. If you see entries in the log file that say a service check timed out, this may be your problem. You can adjust the maximum timeout value for service checks by using the service_check_timeout directive in the main configuration file. As a side note, there are also directives in the main config file for setting the maximum timeout for host checks, notifications, event handlers, and the ocsp command. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 Deborah.Martin at Kognitio.com Fri Jan 30 16:32:16 2009 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Fri, 30 Jan 2009 15:32:16 -0000 Subject: Is there a size limit in the Email directive of a contact definit ion Message-ID: <84836290D5AD43418C40DCF0C4A54ED38E3962@kogex02.pmpl.co.uk> Hi, Just wondered if anybody knew of a limit as to the number of email addresses or rather is there a limit to the number of characters I can specify in total for the "email" directive in the "contact" definition. I want to add four addresses which are of the form @mail2txt160.net. I've looked at the docs and there is no mention of a character limitation but I'm thinking that doesn't mean there isn't one (it could just be so large that it's not likely to ever be reached perhaps (?) or it's just not documented!) Or would it be better practice to create four new separate contacts and then add those to the contact groups directive in my service definition ? (This is only a temporary measure so I'd to do the least amount of admin in setting this up as it it will be activated for only 3 days at most) thanks, deborah *************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *************************************************************************** ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 rpnabar at gmail.com Fri Jan 30 19:06:02 2009 From: rpnabar at gmail.com (Rahul Nabar) Date: Fri, 30 Jan 2009 12:06:02 -0600 Subject: SNMP monitoring of a Dell switch: snmpwalk succeds but check_snmp fails. In-Reply-To: References: Message-ID: On Thu, Jan 29, 2009 at 8:40 PM, Max wrote: Thanks for the detailed comments Max! > The OID that maps to ifOperStatus from RFC1213-MIB is 1.3.6.1.2.1.2.2.1.8 > > So grep for > > 1.3.6.1.2.1.2.2.1.8.1 No luck. No such string in there. > > if the interface you want to look at is indeed at index 1 :). Ah! Now I am lost! What do you mean by this. Sorry I am a networks newbiee and especially SNMP is greek-n-latin to me! Actually I am not even sure what I should be monitoring on a switch. I was just using the example from the nagios tutorial for now. Maybe its "alive/dead status" ; bandwidth of individual ports (but that's mrtg's job right?) ; dropped packets; some thermal events? How does one go about this? What are other users montoring on their switches and how does one go about translating the fairly cryptic SNMP fields into something usable? Should I dig into my Dell switch manuals? Or is this reinventing the wheel and Nagios has an automated way to achieve this already? > > > If you are just running this for one port on one switch, then loading > the MIB is no biggie, if you plan to monitor hundreds or thousands of > ports, would be better to use the numeric form of the OID and run an > ePN plugin using the perl Net::SNMP or NSNMP library or a plugin that > implements the C Net-SNMP libraries directly The maximum I'll end up monitoring is perhaps 4 switches with 48 ports each. So from your stats this should be on the fairly low side. -- Rahul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 perldork at webwizarddesign.com Fri Jan 30 19:29:11 2009 From: perldork at webwizarddesign.com (Max) Date: Fri, 30 Jan 2009 13:29:11 -0500 Subject: SNMP monitoring of a Dell switch: snmpwalk succeds but check_snmp fails. In-Reply-To: References: Message-ID: Hi Rahul, On Fri, Jan 30, 2009 at 1:06 PM, Rahul Nabar wrote: > Ah! Now I am lost! What do you mean by this. Sorry I am a networks newbiee > and especially SNMP is greek-n-latin to me! SNMP data is represented as a huge heirarchical tree. Branches of the global tree can also be called tables. Tables are often organized by purpose. MIBs map the numerical OID tables to human readable descriptions. In tables, entities will often have a representation that is similar to how data is represented in a table in a database .. there may be a unique string identifier for an a but there is also a numeric ID (index number) for the row as well that uniquely identifies it within the table. So an interface eth0 in the IF-MIB table of an agent might have a numeric index of 1. If you are going to be working a lot with SNMP devices, I recommend getting a book on SNMP :) and reading online about it. it is fairly easy to use once you understand it, but understanding can take some serious time. > Actually I am not even sure what I should be monitoring on a switch. I was > just using the example from the nagios tutorial for now. Maybe its > "alive/dead status" ; bandwidth of individual ports (but that's mrtg's job > right?) ; dropped packets; some thermal events? How does one go about this? > What are other users montoring on their switches and how does one go about > translating the fairly cryptic SNMP fields into something usable? Should I > dig into my Dell switch manuals? Or is this reinventing the wheel and Nagios > has an automated way to achieve this already? There are a number of metrics you can monitor; which you choose depends on what is important to your network staff and your project. Yes, hardware events are good, most managed switches will send SNMP traps (asyncronous events sent by the monitored entity to the management station). Using SNMPTT and Net-SNMP's snmptrapd along with a simple shell script you can ingest these traps into Nagios and associate them with passive services on the host they are occuring on. CPU and memory utilization are always good to watch as well. There are several MIBs (SNMP tables) that network device agents can implement. The most common one is the IF-MIB. This covers a number of important, basic, fault management metrics. For polling, often these metrics from the IF-MIB are desirable: * Interface status * Discards in/out * Errors in/out * Interface speed Those are the simple fault management metrics, for performance thresholds: * Volume in/out * bits per second in/out sometimes are used, depending on the context. ISPs or companies paying for bandwidth really care about volume and bps There can be others as well, depending on how mature the SNMP agent on the device is; a common one that is implemented in agents in a number of ways is duplex. Vendors often also implement device-specific MIBs that expose greater numbers of metrics than standard MIBs do, so please make sure you read the documentation for your device carefully. MRTG does not alert based on thresholds, so no, having Nagios poll performance data doesn't duplicate effort. However, you might want to look at a framework like PNP (http://www.pnp4nagios.org) and use that instead of MRTG. There is a learning curve to integrating it, but with PNP in place each Nagios poll can do both fault management and performance trending. PNP uses RRDtool and is a very flexible and useful framework for graphing. There are other graphing frameworks as well, but thus far I have been the most happy with PNP. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 30 19:44:37 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Jan 2009 12:44:37 -0600 Subject: Strange problem with plugins timing out In-Reply-To: <277020fc0901300659t59353108p1a0dcbf07d6d1c8a@mail.gmail.com> References: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> <277020fc0901300542r6e8bb868md20e0537c37b2cf8@mail.gmail.com> <277020fc0901300659t59353108p1a0dcbf07d6d1c8a@mail.gmail.com> Message-ID: <3A931874-6F64-4FEC-B4FD-A72CA9DF40CF@ena.com> On Jan 30, 2009, at 8:59 AM, Sean Carolan wrote: >> Here's how my check_by_ping plugin is configured: >> >> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c >> 5000.0,100% -p 5 -t 60 >> >> Can anyone help me? Why is it still timing out after ten seconds, >> even when I have explicitly set the timeout at 60 seconds?? > > The FAQ page seems to indicate that the default timeout for most > plugins is 10 seconds. Why are my plugins still timing out even > though I have "-t 60"? A few possible reasons -- - you're not editing the right command (i.e. there are multiple check_ping definitions) - your master nagios timeout is set to 10 seconds (unlikely given your ssh check success) - you're not restarting nagios after changing it - you have multiple nagios daemons running, one or more with the old config. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 30 19:52:42 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Jan 2009 12:52:42 -0600 Subject: ExtInfo for Hostgroup display In-Reply-To: <498094B9.5040607@tugraz.at> References: <498094B9.5040607@tugraz.at> Message-ID: On Jan 28, 2009, at 11:24 AM, Simon Kainz wrote: > Hi list ! > > Could somebody give me a clue as how to achieve some kind of "extinfo" > for the hostgroup display ? I would need the possibility to add an > external link to the hostgroup display, with hostgroup-specific > parameters. http://nagios.sourceforge.net/docs/3_0/whatsnew.html "# New notes, notes_url, and action_url have been added to hostgroup and servicegroup definition." http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostgroup -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Fri Jan 30 20:03:58 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Jan 2009 13:03:58 -0600 Subject: Is there a size limit in the Email directive of a contact definit ion In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED38E3962@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED38E3962@kogex02.pmpl.co.uk> Message-ID: On Jan 30, 2009, at 9:32 AM, Deborah Martin wrote: > Hi, > > Just wondered if anybody knew of a limit as to the number of email > addresses > or rather is there a limit to the number of characters I can specify > in > total > for the "email" directive in the "contact" definition. Not a definitive answer but none that I am aware of, at least with nagios-3. Glancing at the code I don't see any limit either. If there is one, I expect it to be > 1024 chars. > I want to add four addresses which are of the form > @mail2txt160.net. > > I've looked at the docs and there is no mention of a character > limitation > but I'm thinking that doesn't mean there isn't one (it could just be > so > large that it's not > likely to ever be reached perhaps (?) or it's just not documented!) Seems like a TAFO task ;) > Or would it be better practice to create four new separate contacts > and then > add those to the contact groups directive in my service definition ? > (This is only a temporary measure so I'd to do the least amount of > admin in > setting this up as it it will be activated for only 3 days at most) If it's temporary and your notification script understands the passing of multiple addresses at the same time, I'd take the short route of just listing all the addresses under one contact. -- marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 jrmarble at gmail.com Sat Jan 31 00:40:37 2009 From: jrmarble at gmail.com (Jeff Marble) Date: Fri, 30 Jan 2009 16:40:37 -0700 Subject: Disable daemon.notice messages to syslog Message-ID: <9a76360901301540l6ac729cbu2f5a99517ce51c44@mail.gmail.com> Fellow Nagios Systems Engineers, I am running nrpe 2.12 with Nagios 3.0.3 on Solaris 10 on SPARC across my site and getting daemon.notice messages on each of my clients, each time the Nagios server connects. Whether there is a failure or not. The messages show up on the client. I can disable this by not collecting daemon.notice information in syslog but want to know when a problem truly does happen. I have debug=0 in nrpe.cfg and expect that to disable messages being sent to syslogd. I have looked through the source and cannot find anything that matches what is recored by syslog. The messages are: Jan 30 16:31:08 entropi inetd[605]: [ID 317013 daemon.notice] nrpe[3373] from 198.192.62.2 46601 entropi is the client name and changes with the client 605 198.192.62. is the nagios server. This is always the same. The message is recorded at the client Let me know if more information would be useful. Any help will be appreciated. Thank you, Jeff -- Jeff Marble JRMarble at GMail.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marc at ena.com Sat Jan 31 01:09:22 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Jan 2009 18:09:22 -0600 Subject: Disable daemon.notice messages to syslog In-Reply-To: <9a76360901301540l6ac729cbu2f5a99517ce51c44@mail.gmail.com> References: <9a76360901301540l6ac729cbu2f5a99517ce51c44@mail.gmail.com> Message-ID: <884A928E-8B6E-4E51-AADB-78C9A7040EC5@ena.com> On Jan 30, 2009, at 5:40 PM, Jeff Marble wrote: > I have debug=0 in nrpe.cfg and expect that to disable messages being > sent to syslogd. I have looked through the source and cannot find > anything that matches what is recored by syslog. It's inetd logging the connections, not nrpe. > The messages are: > Jan 30 16:31:08 entropi inetd[605]: [ID 317013 daemon.notice] > nrpe[3373] from 198.192.62.2 46601 > > Let me know if more information would be useful. Any help will be > appreciated. See http://docs.sun.com/app/docs/doc/816-5166/inetd-1m, specifically 'tcp_trace'. I believe that's what you need to change. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Sat Jan 31 01:19:13 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 30 Jan 2009 19:19:13 -0500 Subject: Duplicates Found In-Reply-To: <2C92C70278FDD04980810725382C729101B35509@SRVLZD05.LZD.saarland.de> References: <2C92C70278FDD04980810725382C729101B35509@SRVLZD05.LZD.saarland.de> Message-ID: <49839901.1000106@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/01/09 03:53 AM, Handle Thomas (LZD) wrote: > Good Morning, > > > > First of all I have to say that I?m new to Nagios, I got the project 4 > weeks ago from a resigned employee. > > Two weeks ago, my firm had to move the emergency stop. > > Since this moment, we?re experiencing problems like ?DUPLICATES FOUND?. I'm not too sure if I understand you, but if you're getting duplicate object errors on Nagios startup it may be possible that the config was broken AFTER the last Nagios restart (ex. by the former employee). The only way to fix this is to use backups of your config or fix the errors one by one. In the mean time if you need to get nagios back up and still have the objects.cache file in the var directory, you could possibly back it up and use it as a precache file (works with nagios 3.x only): copy the file as objects.precache and start nagios with "-u". Once you fixed your config, you can always double-check that you didn't messed it up by comparing the backed-up object.cache and the new one. use "diff" or "vimdiff" for that. The only difference should be the date in the headers. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJg5kB6dZ+Kt5BchYRAqr+AKCm923wEXqNZNvyo9tN6kUtvqC8OgCgjf9d dvpSx7ytlF0UO8YhFXWb5IU= =z8sK -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 martyn at chetnet.co.uk Sat Jan 31 01:13:43 2009 From: martyn at chetnet.co.uk (martyn at chetnet.co.uk) Date: Sat, 31 Jan 2009 00:13:43 -00 Subject: templates.cfg Message-ID: <5fcd9d2c8a7543d9bd3642f51186f9f3.martyn@chetnet.co.uk> Hi all first time user here of Nagios. I'm using Unbunto 8.10 which automatically installed Nagios3, I have followed the guides which all mention the templates.cfg, problem is the only one I can find is zipped up in the directory /usr/share/doc/nagios3/examples/template-object, if I extract this file what directory should I put it in, should it go in my /etc/nagios3 dir or in /etc/nagios3/conf.d Hope you can help me on my quest to learn about this fantastic monitoring solution. Regards Martyn ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 dermoth at aei.ca Sat Jan 31 06:22:36 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 31 Jan 2009 00:22:36 -0500 Subject: Strange problem with plugins timing out In-Reply-To: <277020fc0901300659t59353108p1a0dcbf07d6d1c8a@mail.gmail.com> References: <277020fc0901291213n5eb319f6ve523527873f920b8@mail.gmail.com> <277020fc0901300542r6e8bb868md20e0537c37b2cf8@mail.gmail.com> <277020fc0901300659t59353108p1a0dcbf07d6d1c8a@mail.gmail.com> Message-ID: <4983E01C.5050000@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/01/09 09:59 AM, Sean Carolan wrote: >> Here's how my check_by_ping plugin is configured: >> >> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c >> 5000.0,100% -p 5 -t 60 >> >> Can anyone help me? Why is it still timing out after ten seconds, >> even when I have explicitly set the timeout at 60 seconds?? > > The FAQ page seems to indicate that the default timeout for most > plugins is 10 seconds. Why are my plugins still timing out even > though I have "-t 60"? Regarding your ping check, it may be trying to perform reverse DNS lookups and when this times out it always take time. Try fixing the DNS if you can, or use check_icmp instead (the plugin must be setuid root). Besides the plugin timeouts, you also have the Nagios check timeouts (nagios.cfg) and, when running plugins trough NRPE or SSH, the check_{nrpm,ssh} timeout. Hope this helps, - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJg+Ac6dZ+Kt5BchYRAuR9AJ4jIWQvNVSrqSZQRoxhnWK7JXrAvACfVbA+ EcecLTQ6ARSG+lrstHzVQI0= =38+a -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 robby.kahlon at cubic.com Sat Jan 31 06:27:05 2009 From: robby.kahlon at cubic.com (Kahlon, Robby) Date: Fri, 30 Jan 2009 21:27:05 -0800 Subject: Monitoring Windows Host's clock Message-ID: <28919A12B5A1504CB3599372AA286FC602C2520E@bb-cts-ex1.cts.cubic.cub> Which Plugin and Addon would let Nagios to monitor the Windows host's clock? Can someone point me in a right direction? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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 subscription at kkeane.com Sat Jan 31 07:38:47 2009 From: subscription at kkeane.com (Kevin Keane) Date: Fri, 30 Jan 2009 22:38:47 -0800 Subject: Nagios 3 RPMs for CentOS? Message-ID: <4983F1F7.2070708@kkeane.com> So far, I've been running Nagios on opensuse, but am moving to a CentOS 5.2 (x86_64) server now. Unfortunately, I can't seem to find any recent Nagios RPMs for that OS (and for various reasons, I can't compile from source). I did find some 2.x RPMs, but really prefer to use the 3.x release. Any ideas? Thanks! -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 andrea.gabellini at telecomitalia.sm Sat Jan 31 14:39:14 2009 From: andrea.gabellini at telecomitalia.sm (Andrea Gabellini) Date: Sat, 31 Jan 2009 14:39:14 +0100 Subject: Nagios 3 RPMs for CentOS? In-Reply-To: <4983F1F7.2070708@kkeane.com> References: <4983F1F7.2070708@kkeane.com> Message-ID: <49845482.2070601@telecomitalia.sm> Kevin, if you enable rpmforge (https://rpmrepo.org/RPMforge), you can find nagios 3.0.6 Andrea Kevin Keane wrote: > So far, I've been running Nagios on opensuse, but am moving to a CentOS > 5.2 (x86_64) server now. Unfortunately, I can't seem to find any recent > Nagios RPMs for that OS (and for various reasons, I can't compile from > source). I did find some 2.x RPMs, but really prefer to use the 3.x release. > > Any ideas? > > Thanks! > -- --------------------------------------- Daddy, why doesn't this magnet pick up this floppy disk? --------------------------------------- Ing. Andrea Gabellini Email: andrea.gabellini at telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 subscription at kkeane.com Sat Jan 31 15:19:03 2009 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 31 Jan 2009 06:19:03 -0800 Subject: Nagios 3 RPMs for CentOS? In-Reply-To: <49845482.2070601@telecomitalia.sm> References: <4983F1F7.2070708@kkeane.com> Message-ID: <49845DD7.10409@kkeane.com> Thank you very much - and also thank you very much, Allan! Andrea Gabellini wrote: > Kevin, > > if you enable rpmforge (https://rpmrepo.org/RPMforge), you can find nagios 3.0.6 > > Andrea > > > Kevin Keane wrote: > >> So far, I've been running Nagios on opensuse, but am moving to a CentOS >> 5.2 (x86_64) server now. Unfortunately, I can't seem to find any recent >> Nagios RPMs for that OS (and for various reasons, I can't compile from >> source). I did find some 2.x RPMs, but really prefer to use the 3.x release. >> >> Any ideas? >> >> Thanks! >> >> > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Nagios-users mailing list Nagios-users 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 marco.tirado at gmail.com Sat Jan 31 18:01:55 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Sat, 31 Jan 2009 18:01:55 +0100 Subject: RRDtool Aberrant behavior detection Message-ID: Hello Nagios Users: I am very interested in integrating RRDtool's features for aberrant behavior detection with my nagios implementation. I still have not found a plugin for this and I would like to know if anybody has already implemented this. I guess an option would be to adapt plugins "pnp4nagios" or "nagiosgraph" to get it to work. Any pointers or comments are deeply appreciated. Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -------------- 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