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.n