From lists at wansecurity.com Tue Jan 2 05:35:32 2007 From: lists at wansecurity.com (Robert Smith) Date: Tue, 02 Jan 2007 13:35:32 +0900 Subject: GroundWork Monitor and GroundWork Foundation In-Reply-To: <459539C7.3070704@getproactivenow.com> References: <6B3727B1924AC94F915E95DC9063EFFA06C75D60@norwalk-ex1.ad.adeptra.com> <459539C7.3070704@getproactivenow.com> Message-ID: <4599E114.4090109@wansecurity.com> Fruity came to Groundwork when they hired it's author, Taylor Dondich. Fruity is really simplistic and well, fruity, but releases are very infrequent. I like it because it is written in PHP. The last release used Taylor's Guava application framework. I haven't used it much since then. Groundwork's focus for Nagios web based administration is Monarch. Monarch has many more features with a fast support cycle. Scott Paris, a friend of mine, is the development manager for Monarch. Groundwork has much more to offer however than just a web based GUI. You should at least download and try out the free version. -Robert Smith mike conigliaro wrote: > also check out fruity: http://fruity.sourceforge.net/ > > this is another groundwork open source product. > > Mike Conigliaro > ProActive Technologies > conigliaro at getproactivenow.com > 203.239.0440 ext:317 > www.getproactivenow.com > > > John Giaccotto wrote: > >> Hi, >> >> >> >> I am investigating alternatives to a current Nagios installation and am >> looking at GroundWork Monitor >> (http://www.groundworkopensource.com/products ). Has anyone evaluated >> either GroundWork Monitor Open Source or GroundWork Monitor >> Professional? Is anyone using GroundWork Foundation ( >> http://www.groundworkopensource.com/products ) with Nagios? Any >> thoughts on the company or their product would be appreciated. >> >> >> >> Thanks, >> >> John >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eagle at cyberdelia.de Tue Jan 2 08:26:34 2007 From: eagle at cyberdelia.de (Daniel Meyer) Date: Tue, 2 Jan 2007 08:26:34 +0100 (CET) Subject: Performance issues, too In-Reply-To: <20061226102039.GA15003@eric.schwarzvogel.de> References: <59892.192.168.128.27.1166956533.squirrel@ssl.monsoonwind.com> <200612241228.10211.pitchfork@ederdrom.de> <36122.192.168.128.27.1167042462.squirrel@ssl.monsoonwind.com> <20061225110626.GA14665@eric.schwarzvogel.de> <48036.192.168.128.27.1167117823.squirrel@ssl.monsoonwind.com> <20061226102039.GA15003@eric.schwarzvogel.de> Message-ID: Hi there, and happy new year :-) Program Running Time: 10d 21h 22m 42s So, for almost eleven days nagios runs smoothly now, no more latency problems. I'll try it again with EPN (but still without perlcache) now. Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Tue Jan 2 14:39:52 2007 From: dpthakar at hotmail.com (dhaval thakar) Date: Tue, 02 Jan 2007 13:39:52 +0000 Subject: 0 bytes pin using check_ping Message-ID: Dear All, I want to monitor my VSAT branches using nagios, For that I need to make 0 bytes ping. Kindly suggest me how to ping 0 bytes useing check_ping plugin. Regards Dhaval _________________________________________________________________ >From photos to predictions, The MSN Entertainment Guide to Golden Globes has it all. http://tv.msn.com/tv/globes2007/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 2 15:13:33 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 02 Jan 2007 14:13:33 +0000 Subject: 0 bytes pin using check_ping In-Reply-To: References: Message-ID: <459A688D.6090000@mailnetwork.co.uk> Why do you need to make a "0 byte" ping? (I'm not particularly up on networking, but a 0 byte ping would in theory send nothing, right?) Tried doing this on my Fedora system, and you still get a minimum of 8 bytes back: /bin/ping -s 0 www.google.com PING www.l.google.com (216.239.59.99) 0(28) bytes of data. 8 bytes from 216.239.59.99: icmp_seq=1 ttl=243 The Nagios plugin doesn't seem to have a size parameter, so to limit network traffic what you could do is only send 1 packet (in practice I believe it will send 2 - one when it first runs the plugin, then another to confirm the result - don't know why, but it's been bought to light on the list toward the beginning of December.) Thus you would add "-p 1" to your check_ping command (or change the current value of "-p" if it's already present) to only send 1 packet. Hope this helps. Andy. dhaval thakar wrote: > Dear All, > > I want to monitor my VSAT branches using nagios, > For that I need to make 0 bytes ping. > > Kindly suggest me how to ping 0 bytes useing check_ping plugin. > > > Regards > Dhaval > > _________________________________________________________________ > >From photos to predictions, The MSN Entertainment Guide to Golden Globes has > it all. http://tv.msn.com/tv/globes2007/ > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459a60f431946550517838! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 2 16:02:47 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 02 Jan 2007 15:02:47 +0000 Subject: 0 bytes pin using check_ping In-Reply-To: References: Message-ID: <459A7417.10201@mailnetwork.co.uk> Yep I see your problem. One thing you could try, *note* I've not tried this so it may or may not be efficient, when you compile the Nagios plugins, add the following directive to ./configure: --with-ping-command="/bin/ping -s 0 -n -U -w %d -c %d %s" (ie. add the "-s 0" parameter to the ping plugin). In theory this should compile check_ping with the near-0-byte ping command I ran manually earlier. In practice, I don't know how you could check it's OK (unless you can monitor bandwidth manually, or notice really low RTAs compared to the 64-byte command.) Hope this helps some more! Andy. dhaval thakar wrote: > Dear Andy, > > thanks for your reply, > of course practically I'll not get 0 byte ping. > > i need to monitor 200 branches over vsat, > we have limited amount of bandwidth over vsat, this bandwidth is used > for our applications. > > i do not want to make 64 bytres ping for 200 branches, not even for 2 > packets this will consume my 128bytes X 200 for ping. if i could use 0 > byte ping consumption will drop down to 16bytes X 200. > > Secondly VSAT has latency of approx 600ms, this might not get me > proper host result if i ping onely once or twice. > > I tried with check_icmp, > but the results in "check_icmp: Failed to obtain ICMP socket: > Operation not permitted". > i used "chmod 777 check_icmp" but didn't worked out. > > Kindly help me if there any way to drop down ping bytes. > > > >> From: "Andy Shellam (Mailing Lists)" >> >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] 0 bytes pin using check_ping >> Date: Tue, 02 Jan 2007 14:13:33 +0000 >> >> Why do you need to make a "0 byte" ping? (I'm not particularly up on >> networking, but a 0 byte ping would in theory send nothing, right?) >> >> Tried doing this on my Fedora system, and you still get a minimum of 8 >> bytes back: >> >> /bin/ping -s 0 www.google.com >> PING www.l.google.com (216.239.59.99) 0(28) bytes of data. >> 8 bytes from 216.239.59.99: icmp_seq=1 ttl=243 >> >> The Nagios plugin doesn't seem to have a size parameter, so to limit >> network traffic what you could do is only send 1 packet (in practice I >> believe it will send 2 - one when it first runs the plugin, then another >> to confirm the result - don't know why, but it's been bought to light on >> the list toward the beginning of December.) >> >> Thus you would add "-p 1" to your check_ping command (or change the >> current value of "-p" if it's already present) to only send 1 packet. >> >> Hope this helps. >> >> Andy. >> >> >> >> dhaval thakar wrote: >> > Dear All, >> > >> > I want to monitor my VSAT branches using nagios, >> > For that I need to make 0 bytes ping. >> > >> > Kindly suggest me how to ping 0 bytes useing check_ping plugin. >> > >> > >> > Regards >> > Dhaval >> > >> > _________________________________________________________________ >> > >From photos to predictions, The MSN Entertainment Guide to Golden >> Globes has >> > it all. http://tv.msn.com/tv/globes2007/ >> > >> > >> > >> ------------------------------------------------------------------------- >> >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> > ::: Messages without supporting info will risk being sent to /dev/null >> > >> > > >> > >> > >> >> >> -- >> Andy Shellam >> NetServe Support Team >> >> the Mail Network >> "an alternative in a standardised world" >> >> p: +44 (0) 121 288 0832/0839 >> m: +44 (0) 7818 000834 >> >> >> ------------------------------------------------------------------------- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 MSN Entertainment Guide to Golden Globes is here. Get all the > scoop. http://tv.msn.com/tv/globes2007/ > > > !DSPAM:37,459a727031949316020810! > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From parcher at bcm.edu Tue Jan 2 17:54:36 2007 From: parcher at bcm.edu (Paul Archer) Date: Tue, 2 Jan 2007 10:54:36 -0600 (CST) Subject: ftp plugin Message-ID: I couldn't find an ftp plugin that went as far as logging in, changing directories, and grabbing a file--so I wrote one. Does anyone want it, and where should I submit it? Paul Archer ------------------------------ Paul Archer Senior Systems Administrator Baylor College of Medicine Human Genome Sequencing Center 713-798-5288 / 832-969-3422 ------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Tue Jan 2 17:57:03 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Tue, 2 Jan 2007 09:57:03 -0700 Subject: ftp plugin Message-ID: <2D0245E43DEC724F81592D697F05689904C4337A@SIDHQEXCHMB1.Cabelas.Corp> http://www.nagiosexchange.org/ -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Paul Archer Sent: Tuesday, January 02, 2007 9:55 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] ftp plugin I couldn't find an ftp plugin that went as far as logging in, changing directories, and grabbing a file--so I wrote one. Does anyone want it, and where should I submit it? Paul Archer ------------------------------ Paul Archer Senior Systems Administrator Baylor College of Medicine Human Genome Sequencing Center 713-798-5288 / 832-969-3422 ------------------------------ ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 2 18:58:48 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 2 Jan 2007 12:58:48 -0500 Subject: Problem Compiling NRPE 2.6 on Fedora Core 5 In-Reply-To: <459590B8.6030207@mailnetwork.co.uk> References: <459590B8.6030207@mailnetwork.co.uk> Message-ID: <9C63A4713C4E3342B90428CE44806A7302679AF6@PHSXMB5.partners.org> Hi there -- I got around the issue by recompiling nrpe without ssl support. Once I did that, I then configured the command definition on the server not to use ssl, and then also had the client in question run nrpe in a similar manner. I know that is not a solution but really a workaround. As it is, I am now able to monitor the remote client. -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Friday, December 29, 2006 5:04 PM To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem Compiling NRPE 2.6 on Fedora Core 5 This seems as if it could be an error in the makefile, a missing library on your system, or an incorrect path in your /etc/ld.so.conf file. Try passing "LDFLAGS=-ldl" to the configure script - eg. LDFLAGS="-ldl" ./configure --prefix=/usr/local/nagios Or, find the "dl" library (find / -name libdl*) and add the path to it: LDFLAGS="/lib -ldl" ./configure --prefix=/usr/local/nagios Andy. Kaplan, Andrew H. wrote: > > I am trying to compile NRPE 2.6 on a system running Fedora Core 5, but > I am running into issues. > > Whenever I try to complete the make all command as either root, sudo > user, or a regular user, I get > > and Error 1 message. The lines shown below are a sample of the output > I am seeing: > > > > dso_dlfcn.c:(. text+0x746): undefined reference to dlopen > > dso_dlfcn.c:(. text+0x7ba): undefined reference to dlclose > > dso_dlfcn.c:(. text+0x7f1): undefined reference to dlerror > > collect2: ld returned 1 exit status > > make[1]: *** [nrpe] Error 1 > > > > What is the cause of this, and how can I correct it so I can compile > NRPE? > > > > THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS > INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY > CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, > RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION > IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN > THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION > IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND > PROPERLY DISPOSE OF THIS INFORMATION. !DSPAM:37,45958dd231949907517376! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45958dd231949907517376! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45958dd231949907517376! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 2 19:58:55 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 2 Jan 2007 19:58:55 +0100 (CET) Subject: 0 bytes pin using check_ping In-Reply-To: <459A7417.10201@mailnetwork.co.uk> References: <459A7417.10201@mailnetwork.co.uk> Message-ID: On Tue, 2 Jan 2007, Andy Shellam (Mailing Lists) wrote: > dhaval thakar wrote: >> Dear Andy, >> >> thanks for your reply, >> of course practically I'll not get 0 byte ping. Well. As long as there is any stretch of ethernet involved you will get a minimum size of 64 byte packets. Anything below 64 bytes is not valid on ethernet. See also RFC 894 (being one of the few real standards in RFC documents). Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Tue Jan 2 20:15:00 2007 From: chandler at chapman.edu (Jay Chandler) Date: Tue, 02 Jan 2007 11:15:00 -0800 Subject: popen timeout received, but no child process Message-ID: <459AAF34.4020601@chapman.edu> My apologies if this has already been discussed here-- a cursory search of the archives didn't turn up much. The issue is discussed at http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php?7842.last and my installation started throwing this error a couple hours ago after a few weeks of trouble free running. I restarted the Nagios service and haven't had a recurrance since, but has anyone else experienced this? The OS is FreeBSD 6.1 with Nagios installed from the ports tree. Thanks very much in advance-- any other information I can provide, will be! -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: The co-locator cannot verify the frame-relay gateway to the ISDN server. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maemigh at gmail.com Tue Jan 2 20:16:23 2007 From: maemigh at gmail.com (Mike Emigh) Date: Tue, 2 Jan 2007 14:16:23 -0500 Subject: NRPE packet buffer limitations Message-ID: <91eedcbf0701021116w39822d4cp9832d4ef9fe21a96@mail.gmail.com> Greetings, I was wondering if anyone had found the proper way to modify nrpe to receive more than the 1024 character limit imposed in MAX_PACKETBUFFER_LENGTH. I adjusted it from 1024 to 1536 and have used this setting for quite some time now and it works; however, graceful connection shutdowns are not possible when using this modification. It appears that nrpe tries to send all data in just a single packet. Is there a reason that multiple packets aren't used if the packet buffer isn't large enough to accommodate all of the plugin output? I could see this being especially troublesome for Nagios 3.0 as the buffer will be too small to fully take advantage of multiline output. Regards, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikhollo at cisco.com Tue Jan 2 20:53:13 2007 From: mikhollo at cisco.com (Mike Holloway) Date: Tue, 2 Jan 2007 13:53:13 -0600 Subject: popen timeout received, but no child process In-Reply-To: <459AAF34.4020601@chapman.edu> References: <459AAF34.4020601@chapman.edu> Message-ID: <23492B4D-2951-4E29-9301-3267ECA633C6@cisco.com> You might try compiling check_ping --without-ipv6, that solved a different problem for me that I was experiencing with check_ping. Also have a read of this thread: https://sourceforge.net/mailarchive/message.php?msg_id=14887381 "it had to do with the ipv6 host check, where it would check whether or not the host is an IPv6 address, by calling a getaddrinfo(), and that would take long enough that SIGALRM would be tripped, and child_process was NULL at that point." -mike On Jan 2, 2007, at 1:15 PM, Jay Chandler wrote: > My apologies if this has already been discussed here-- a cursory > search > of the archives didn't turn up much. > > The issue is discussed at > http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php? > 7842.last > and my installation started throwing this error a couple hours ago > after > a few weeks of trouble free running. I restarted the Nagios > service and > haven't had a recurrance since, but has anyone else experienced this? > The OS is FreeBSD 6.1 with Nagios installed from the ports tree. > > Thanks very much in advance-- any other information I can provide, > will be! > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler at chapman.edu > Today's Excuse: The co-locator cannot verify the frame-relay > gateway to the ISDN server. > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Tue Jan 2 23:15:37 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Wed, 3 Jan 2007 09:15:37 +1100 Subject: Performance issues, too1 In-Reply-To: References: Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9AF796F@acexp005.portfolio.base> Dear Sir, I am writing to thank you for your letter and say, > -----Original Message----- > ------------------------------ > > Message: 2 > Date: Tue, 2 Jan 2007 08:26:34 +0100 (CET) > From: Daniel Meyer > Subject: Re: [Nagios-users] Performance issues, too > > Hi there, and happy new year :-) > > Program Running Time: 10d 21h 22m 42s > > So, for almost eleven days nagios runs smoothly now, no more > latency problems. I'll try it again with EPN (but still > without perlcache) now. > Context is massive memory leak with ePN. Leak goes when ePN is removed. Firstly, look at the caveats for ePN at http://nagios.sourceforge.net/docs/2_0/embeddedperl.html There should be added another major caveat to this: depending on your plugins you may have a bigger or smaller leak, however leak it will. For me, I wouldn't consider Nagios without ePN since I code most of my plugins in Perl and the advantages for me (and this installation) outweigh the leak. Finally about the meaning of the configure switches for ePN. 1 --enable-embedded-perl This builds Perl into the Nagios executable and at the least means that your system does __not__ fork a new process to run Perl plugins. Instead, Perl is parsed and run by direct calls to the Nagios binary. So, setting this switch saves a context switch. 2 --with-perl-cache If in addition, this switch is set, the Perl plugin is compiled only once (otherwise, each time Nagios goes to run a Perl plugin, it recompiles it). The resultant Perl op code tree remains in memory. Unfortuntaely, for reasons that are not clear to me, this is the source of the leak. > Danny > -- Yours sincerely. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coolguy2007 at comcast.net Tue Jan 2 23:33:41 2007 From: coolguy2007 at comcast.net (coolguy2007 at comcast.net) Date: Tue, 02 Jan 2007 22:33:41 +0000 Subject: check_ssh plugin causing too many log messages written in /var/log/messages Message-ID: <010220072233.23441.459ADDC400083FFD00005B912207020953CDCD9D0A05029A0B030E049C@comcast.net> Hi, Is there a way to make Nagios stop writing the messages like the following in the /var/log/messages on remote host: Jan 8 10:01:00 serverabc sshd[12110]: [ID 800047 auth.crit] fatal: Read from socket failed: Connection reset by peer This happens whenever nagios makes a check using check_ssh to a remote host. This entry is written in the logs of remote host to which Nagios is trying to check the availability of ssh daemon. It looks like that Nagios is trying to make ssh connection to check for this service but it does not actually do it and then it disconnects the connection abruptly (hence the entry like above is written) I do not understand why does it happen on some of the machines while for others there is no entry written in the logs. This is just causing too many messages written in the logs on remote Solaris machines and this is getting too annoying. Please enlighten us on how to cope with this nuisance? Thanks in advance. --Shahid ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Tue Jan 2 23:47:38 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Tue, 2 Jan 2007 15:47:38 -0700 Subject: check_ssh plugin causing too many log messageswritten in /var/log/messages Message-ID: <2D0245E43DEC724F81592D697F05689904C43383@SIDHQEXCHMB1.Cabelas.Corp> Instead of using 'check_ssh', you can use 'check_by_ssh' and just run a simple command like '/bin/ls /tmp' to verify connectivity. This way, the ssh handshake is completed and there's no need to log a 'Read from socket failed' message. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of coolguy2007 at comcast.net Sent: Tuesday, January 02, 2007 3:34 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_ssh plugin causing too many log messageswritten in /var/log/messages Hi, Is there a way to make Nagios stop writing the messages like the following in the /var/log/messages on remote host: Jan 8 10:01:00 serverabc sshd[12110]: [ID 800047 auth.crit] fatal: Read from socket failed: Connection reset by peer This happens whenever nagios makes a check using check_ssh to a remote host. This entry is written in the logs of remote host to which Nagios is trying to check the availability of ssh daemon. It looks like that Nagios is trying to make ssh connection to check for this service but it does not actually do it and then it disconnects the connection abruptly (hence the entry like above is written) I do not understand why does it happen on some of the machines while for others there is no entry written in the logs. This is just causing too many messages written in the logs on remote Solaris machines and this is getting too annoying. Please enlighten us on how to cope with this nuisance? Thanks in advance. --Shahid ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Wed Jan 3 02:41:40 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Tue, 2 Jan 2007 17:41:40 -0800 (PST) Subject: Performance issues, too1 In-Reply-To: <18544FA17F881A4DBC2F41AC89E46BA9AF796F@acexp005.portfolio.base> References: <18544FA17F881A4DBC2F41AC89E46BA9AF796F@acexp005.portfolio.base> Message-ID: <45581.192.168.128.67.1167788500.squirrel@ssl.monsoonwind.com> > Context is massive memory leak with ePN. Leak goes when ePN is > removed. I have a feeling it is more with the way plugin caching works. > There should be added another major caveat to this: depending on > your plugins you may have a bigger or smaller leak, however leak > it will. I have gone through all my perl based plugins and changed "use vars" to "my". (Recommended from the embedded perl documentation.) > For me, I wouldn't consider Nagios without ePN since I code most > of my plugins in Perl and the advantages for me (and this > installation) outweigh the leak. Same here. Especially loading the SNMP MIBs once in Nagios. > > Finally about the meaning of the configure switches for ePN. > > 1 --enable-embedded-perl > > This builds Perl into the Nagios executable and at the least > means that your system does __not__ fork a new process to run > Perl plugins. Instead, Perl is parsed and run by direct > calls to the Nagios binary. > > So, setting this switch saves a context switch. Also you remove the interpreter initialization load. > 2 --with-perl-cache > > If in addition, this switch is set, the Perl plugin is compiled > only once (otherwise, each time Nagios goes to run a Perl plugin, > it recompiles it). The resultant Perl op code tree remains in > memory. > > Unfortunately, for reasons that are not clear to me, this is the > source of the leak. The perl code path that runs in the master Nagios process (after all pluggins have been compiled successfully and you remove argument caching) is: sub eval_file { my ($filename, $delete, undef, $plugin_args) = @_ ; my $mtime = -M $filename ; if ( exists($Cache{$filename}) && $Cache{$filename}[MTIME] && ($Cache{$filename}[MTIME] >= $mtime)) { if ( $Cache{$filename}[PLUGIN_ERROR] ) { ... } else { return $Cache{$filename}[PLUGIN_HNDLR]; }; }; }; I am not sure where the leak is, unless it is in the interpreter itself. With all the tuning my master process gains about 4MBytes a day. -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MJoyce at ccia.unsw.edu.au Wed Jan 3 04:49:43 2007 From: MJoyce at ccia.unsw.edu.au (Matthew Joyce) Date: Wed, 3 Jan 2007 14:49:43 +1100 Subject: Nagios Strategies Message-ID: <2A67EA781EC7F949A2AB0A0D07A86C6A01A67DC8@mail01.ccia.local> Josh, I am just checking that the service is in a running state, I'm checking the SNMP service state via SNMP. That should be fine yes ? I too have sent he SNMP service fail but appear running and dealt with the torrent of notifications. I wrote a python script to search my services.cfg for definitions name-beings-with 'win_snmp', and generate a service dependency config for each host. I'll try some tests later this month. I hope a simple same host service dependency directive will be included with v3. mj -----Original Message----- From: Josh Yost [mailto:Josh.Yost at epsiia.com] Sent: Friday, 22 December 2006 11:05 AM To: Matthew Joyce Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Strategies Hi, Just my quick two cents - I've seen several times on our servers (mostly on Windows 2000) that the SNMP service will be shown as running even though the actual process has stopped responding. Then, we get a flood of pages for all of our checks dependent on SNMP and have to manually kill and restart the service. If you're going to do a generic SNMP check, just make sure it's actually pulling a value from SNMP because a simple NT check to see if the service is in the running state isn't very reliable. (we aren't actually using service deps. yet, but it's something I'm getting around to since we're in the same boat as you =)). - Josh Matthew Joyce wrote: > Hi all, > > I've found myself in a quandary and I'm wondering how other Nagios > uses have address similar problems. > We've recently upgraded to 2.6 and I've been tidying up the configs, > sorting out service groups, etc. > > I've been adding checks for specific windows services, Exchange, > Backup Exec, various MS SQL databases and that sort of thing. > The more services I add, the more I consider their dependencies on > each other. > SNMP service is now a critical service, as without it I will get a > storm of notification. > > I can see that service dependencies would fix this but it does seem > overly complex to have to list each host/service pair in the > dependency definition. > > One way I thought might work is to create a servicegroup called > myserversnmp and add the service to the group in the service definition. > Then, in the dependency definition, make that servicegroup dependent > on SNMP Service on the host. > > This would mean I end up with a load of servicegroups, but make > configuring easier as I just need to add one line per service and > that's often done with copy/past/tweak. > > An alternative might be to regular expressions, but for me this would > be an obfuscation, not really what I'm after. > It would be nice if there was a service dependency directive in the > service definition. > > How do others manage dependencies ? > > > > Thanks > > Matt > > > > ---------------------------------------------------------------------- > -- > > ---------------------------------------------------------------------- > --- Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > DEV > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Wed Jan 3 10:41:12 2007 From: ton.voon at altinity.com (Ton Voon) Date: Wed, 3 Jan 2007 09:41:12 +0000 Subject: popen timeout received, but no child process In-Reply-To: <23492B4D-2951-4E29-9301-3267ECA633C6@cisco.com> References: <459AAF34.4020601@chapman.edu> <23492B4D-2951-4E29-9301-3267ECA633C6@cisco.com> Message-ID: Mike, As you correctly found, slow name resolution is one possible problem of the popen error. Jay, please try the CVS snapshot at http:// nagiosplug.sf.net/snapshot as this has reduced the number of getaddrinfo calls that are made. Ton On 2 Jan 2007, at 19:53, Mike Holloway wrote: > > You might try compiling check_ping --without-ipv6, that solved a > different problem for me that I was experiencing with check_ping. > Also have a read of this thread: > > https://sourceforge.net/mailarchive/message.php?msg_id=14887381 > > "it had to do with the ipv6 host check, where it > would check whether or not the host is an IPv6 address, by calling a > getaddrinfo(), and that would take long enough that SIGALRM would be > tripped, and child_process was NULL at that point." > > > -mike > > > > On Jan 2, 2007, at 1:15 PM, Jay Chandler wrote: > >> My apologies if this has already been discussed here-- a cursory >> search >> of the archives didn't turn up much. >> >> The issue is discussed at >> http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php? >> 7842.last >> and my installation started throwing this error a couple hours ago >> after >> a few weeks of trouble free running. I restarted the Nagios >> service and >> haven't had a recurrance since, but has anyone else experienced this? >> The OS is FreeBSD 6.1 with Nagios installed from the ports tree. >> >> Thanks very much in advance-- any other information I can provide, >> will be! >> >> -- >> Jay Chandler >> Network Administrator, Chapman University >> 714.628.7249 / chandler at chapman.edu >> Today's Excuse: The co-locator cannot verify the frame-relay >> gateway to the ISDN server. >> >> >> --------------------------------------------------------------------- >> - >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 message has been scanned for viruses by MailController - > www.MailController.altohiway.com http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 11:42:28 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 11:42:28 +0100 Subject: Service depedency problem In-Reply-To: <1167327463.459400e7baad9@imp.inmics.fi> References: <1166036312.45804d58a0199@imp.inmics.fi> <20061214002935.GX17454@pmorris.usa.hp.com> <1166081223.4580fcc742bf2@imp.inmics.fi> <45811671.8000506@op5.se> <1166510636.45878a2cb4d63@imp.inmics.fi> <4587AD20.6030604@op5.se> <1167327463.459400e7baad9@imp.inmics.fi> Message-ID: <459B8894.2060709@op5.se> MiikaT wrote: > Quoting Andreas Ericsson : > >> Because you have 'u' (notify when unreachable) in your >> host_notification_options. > > I suppose there is a slight misunderstanding here, as I am very happy with the > current host_notification situation (either parent or dependencies). > >> I suggest not using dependencies at all, but instead using the "parents" >> directive and removing 'u' from your host_notification_options. I also >> suggest reading the documentation regarding parents, >> host_notification_options and notification logic. >> >> Dependencies can be a fine thing for services. It's almost always the >> wrong thing to use for hosts. > > The real problem is WITH services, if a parent host ping, for example, is > critical, I get service alert for hosts that behind the parent host. But if > the parent host is down, no alerts are sent for hosts behind the parent (works > like a charm). > This is by design. It's perfectly OK for a parent to have non-OK services and then move on to check its children. > To rephrase the original issue, how should I change the dependencies.cfg, if I > really don't want to get any service alerts for dependedent services, if all > services rely on the ping status of a parent host PING service? > I believe that *isn't* the original issue though. Your question would probably be better phrased as "how do I stop nagios sending service checks for services behind a parent host that is responding too slowly to its PING service check?". A much simpler solution than mucking with dependencies (which are difficult to set up and quickly gets unwieldy in my experience) is to use the same checkcommand for checking the host as you use for the PING service check. The answer to the question you posted can be found in the manual. Check under object configuration -> service dependencies. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 11:53:58 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 11:53:58 +0100 Subject: Performance issues, too In-Reply-To: <59892.192.168.128.27.1166956533.squirrel@ssl.monsoonwind.com> References: <59892.192.168.128.27.1166956533.squirrel@ssl.monsoonwind.com> Message-ID: <459B8B46.2000700@op5.se> Robert Hajime Lanning wrote: > I have also been having performance issues with Nagios 2.5 on > a Sun E220R with two 400MHz procs and 1GB ram. > > Sys stats are at http://lanning.cc/kipper.html > > The large dips in load and system CPU time are when I restart > Nagios. (cron'd twice a week, but I have also been making > a lot of service updates lately, hence the almost once a day > restarts.) For the restarts to fix the latency, I have > "use_retained_scheduling_info=0". > > After about three days the Service Check latency will grow > to over 300 seconds. It is usually steady at around 0-5 > seconds, for a couple of days, then it will rise over the > course of a few hours to over the 300 second mark. > This is a bit bizarre and simply must be related to something else. Does Nagios run out of commandbuffer slots? Aren't they freed properly? > > I have noticed the Nagios seems to have a memory leak. As, > I have watched over the last hour the process grow from 124M > to 126M. > This can probably be attributed to the fact that Nagios fork()'s, then frees and allocates memory before running execve() in a thread. This isn't per se prohibited, but strongly discouraged. I wouldn't be surprised to find that other applications that do the same thing will leak memory on Sun. On Linux, threads are created in a 1-1 fashion (meaning each thread is actually its own process). This holds true for some other systems as well, and afaik there are 1-1 thread implementations for Sun as well. In any case, the 1-1 thing means that the kernel cleans up any left-over memory for the processes when they exit, which isn't necessarily the case in a 1-many relationship thread implementation. Possibly worth investigating. > I use ePN with caching. Most of my checks are SNMP requests > via ePN scripts (http://lanning.cc/custom_plugins/), with > p1.pl modified with: > > use SNMP 5.0; > SNMP::loadModules("ALL"); > Forgive a novice, but doesn't this make it load all SNMP submodules each time it runs a perl-module? That would certainly be a major impact on load and could well lead to memory leaks (assuming the submodules aren't always freed after having been loaded). > We have put into our budget to move Nagios to a Linux/Intel > server. But, what bugs me is the high CPU time in kernel > space, because of Nagios. > Again, this is a behaviour not regularly experienced on Linux (which is the base for most Nagios installations). Linux is simply very, very good at fork(). It doesn't do bother even trying to do other things properly (like 1-many threading), simply because it's so damn good at forking. It would be interesting to see if your problems go away when you move to Linux. I'm not saying it's superior to Solaris, but afaiu, Ethan runs all his tests on Linux and would certainly have found bugs of this kind if they had bitten him. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 11:57:17 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 11:57:17 +0100 Subject: Performance issues, too In-Reply-To: <36122.192.168.128.27.1167042462.squirrel@ssl.monsoonwind.com> References: <59892.192.168.128.27.1166956533.squirrel@ssl.monsoonwind.com> <200612241228.10211.pitchfork@ederdrom.de> <36122.192.168.128.27.1167042462.squirrel@ssl.monsoonwind.com> Message-ID: <459B8C0D.4070005@op5.se> Robert Hajime Lanning wrote: > >> Just rechecked. After 72 hours nagios still runs perfectly >> with an average service check latency of 0.3 seconds, max. >> 0.9 seconds. >> >> Memory usage is perfectly "flat" now, with epn and perlcache >> it went from 140 mb (whole system) to about 900 mb within 24h. >> >> The average system load is a bit _lower_ than before, but some >> peaks higher than with epn/perlcache. >> >> I'll try pure epn without perlcache first thing in january. > > The main reason for me to use ePN with perlcache, is to get > around the huge load of loading all the MIBs for each SNMP > query. (Since 90% of my services are SNMP queries.) I was > looking for a way to load the MIB tree once, and found I could > do it in p1.pl. > If you use SNMP oid's rather than their "human-readable" mib-names, you don't need to load a single mib. It is indeed a much simpler solution. > For traps, I run snmptrapd (from net-snmp) and have just recently > found it has a memory leak. Over the course of 20 days, it grew > from 5MB to 140MB. It runs snmptthandler, which is actually a C > program (I ported the Perl version to reduce the load during trap > floods). > > snmptt has a big memory leak. I restart it every 6 hours. > > This seems to be pointing to the net-snmp libraries. > > Though, I don't get why it would really effect the nagios master > process. Since all the calls to the SNMP module are run in a > subprocess, other than the initialization that I put into p1.pl. > Unless p1.pl is executed more than once. > strace -e open ./nagios 2>&1 | grep p1.pl will tell you, although strace might not be included in the tool-box shipped with your system. > Back when I had about 200 service checks, my load was about 1.5. > Then I enabled ePN with perlcache and stuck in the "use SNMP" > with the preload of the MIBs. Load went down to 0.3. But, as > I added services, most SNMP, this issue showed up. > Try without perlcache, and try with OID's and without your p1.pl hack. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 12:05:30 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 12:05:30 +0100 Subject: migrating from 1.x to 2.x, mysql backend to flat files In-Reply-To: <1dab01330612251638p7a989e92hb23625c6f86079e9@mail.gmail.com> References: <1dab01330612251638p7a989e92hb23625c6f86079e9@mail.gmail.com> Message-ID: <459B8DFA.4020901@op5.se> Mark wrote: > I'd like to move from 1.x to 2.x but I am currently storing logs in > mysql. I'm not married to mysql, so I don't mind leaving it behind. > However, I need to keep the status/uptime/etc info I have stored in > mysql. If there a process defined somewhere to suck the info out of > the db and put it into flat files for 2.x as if it has always been > there? > Not that I know of, but I should think a mysql -Be query piped to awk would do the trick if you're just interested in one-shotting it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 12:12:24 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 12:12:24 +0100 Subject: ANNOUNCE: Nagios Looking Glass 1.0.0#PRE is here! In-Reply-To: <459301E4.3090206@mailnetwork.co.uk> References: <4592FBE5.4000502@mailnetwork.co.uk> <5E48ADC87B856241AD68C124188E37731FAE5A@PROD-EXCH-01.piramide.lan> <459301E4.3090206@mailnetwork.co.uk> Message-ID: <459B8F98.70906@op5.se> Andy Shellam (Mailing Lists) wrote: > > If you requested the full URL that's passed to the poller back-end, > you'd find it extremely difficult to decipher it without the > s3_class.inc.php file (as this is what the client front-end does) and to > the average Joe it'd be a load of figures and numbers (sure you could > base64 decode the relevant part of it, but it'd mean nothing without the > s3_class.inc.php.) > Correct me if I'm wrong, but s3_class.inc.php is publicly available, no? Either way, securing against "the average Joe" is neither difficult nor sufficient. Just worth considering. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 12:16:35 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 12:16:35 +0100 Subject: ANNOUNCE: Nagios Looking Glass 1.0.0#PRE is here! In-Reply-To: <459413DE.9000700@mailnetwork.co.uk> References: <200612280209.kBS29vKW005258@mx1.cs.umb.edu> <459371D1.7010406@mailnetwork.co.uk> <34672.192.168.128.27.1167291680.squirrel@ssl.monsoonwind.com> <459413DE.9000700@mailnetwork.co.uk> Message-ID: <459B9093.5060401@op5.se> Andy Shellam (Mailing Lists) wrote: > Hi Robert, > > Thanks for your description below but I'm still struggling to come to > terms with how NLG can be used to attack another site. > Firstly, my understanding of an XSS attack is of the following: > > - Client requests a page (eg. www.yahoo.com) > - Hacker strips the response packets off the wire and replaces them with > packets that have come from (eg. www.google.co.uk) > - Client receives www.google.co.uk as a result of hacker's actions > That's a MITM (Man/Monkey In The Middle) attack. XSS is when your browser is fooled to request data from a server but thinks it's requesting it from a place it trusts. No browser can protect itself against MITM (barring encryption ofc, which doesn't work if the monkey holds the key). Securing layer 2 and 3 of network communication is the job of the kernel. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 13:08:02 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 13:08:02 +0100 Subject: 0 bytes pin using check_ping In-Reply-To: <459A688D.6090000@mailnetwork.co.uk> References: <459A688D.6090000@mailnetwork.co.uk> Message-ID: <459B9CA2.40309@op5.se> Andy Shellam (Mailing Lists) wrote: > Why do you need to make a "0 byte" ping? (I'm not particularly up on > networking, but a 0 byte ping would in theory send nothing, right?) > No, it would send the IP and ICMP headers, but with a 0-byte data part of the icmp echo request. > Tried doing this on my Fedora system, and you still get a minimum of 8 > bytes back: > > /bin/ping -s 0 www.google.com > PING www.l.google.com (216.239.59.99) 0(28) bytes of data. > 8 bytes from 216.239.59.99: icmp_seq=1 ttl=243 > That is the struct timeval that ping includes after the ICMP header. 8 bytes of data is the absolute minimum to send in an ICMP packet. It's normally defined as ICMP_MINLEN in /usr/include/netinet/ip_icmp.h. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 3 13:10:31 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 03 Jan 2007 12:10:31 +0000 Subject: ANNOUNCE: Nagios Looking Glass 1.0.0#PRE is here! In-Reply-To: <459B8F98.70906@op5.se> References: <4592FBE5.4000502@mailnetwork.co.uk> <5E48ADC87B856241AD68C124188E37731FAE5A@PROD-EXCH-01.piramide.lan> <459301E4.3090206@mailnetwork.co.uk> <459B8F98.70906@op5.se> Message-ID: <459B9D37.1000704@mailnetwork.co.uk> Andreas Ericsson wrote: > Andy Shellam (Mailing Lists) wrote: >> >> If you requested the full URL that's passed to the poller back-end, >> you'd find it extremely difficult to decipher it without the >> s3_class.inc.php file (as this is what the client front-end does) and >> to the average Joe it'd be a load of figures and numbers (sure you >> could base64 decode the relevant part of it, but it'd mean nothing >> without the s3_class.inc.php.) >> > > Correct me if I'm wrong, but s3_class.inc.php is publicly available, > no? Either way, securing against "the average Joe" is neither > difficult nor sufficient. Just worth considering. Yes, as I've answered before, - a) you'd need to know the application is in fact NLG, b) you'd need to know which file to use and what to do with it, c) you'd need the correct part of the returned code, d) you'd need to know it's a base64-encoded serialisation of the poller object, and at the end of the day, you should use HTTP authentication on the poller feed anyway. Also as I've said before, the poller gives out nothing more than you can access through the front-end anyway (as it's designed to be a public interface) so it'd be a waste of time trying to crack the feed. I'm more worried about securing things like XSS attacks, which I'm pretty certain NLG is not vulnerable to as the GET variables are processed in some other way before-hand, they're not printed to the page verbatim. Thanks, -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 3 13:14:24 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 03 Jan 2007 13:14:24 +0100 Subject: NRPE packet buffer limitations In-Reply-To: <91eedcbf0701021116w39822d4cp9832d4ef9fe21a96@mail.gmail.com> References: <91eedcbf0701021116w39822d4cp9832d4ef9fe21a96@mail.gmail.com> Message-ID: <459B9E20.70802@op5.se> Mike Emigh wrote: > Greetings, > > I was wondering if anyone had found the proper way to modify nrpe to > receive > more than the 1024 character limit imposed in MAX_PACKETBUFFER_LENGTH. I > adjusted it from 1024 to 1536 and have used this setting for quite some > time > now and it works; however, graceful connection shutdowns are not possible > when using this modification. > > It appears that nrpe tries to send all data in just a single packet. Userland (normally) has no control over how many packets are sent to transmit data. Such low-level things are handled by the kernel. The number of bytes that can be passed to send(), write(), sendto() or any of the other means of passing data to a different host over a network is determined by the size of the kernel socket buffers for the socket in question. This is normally much, much larger than the ~1500 bytes which is most systems MTU. In particular, it never makes any sense for the kernel to have less than one page allocated for this purpose. As one page is usually 4096 bytes on 32-bit systems, that's the smallest reasonable minimum size you'll find. > Is > there a reason that multiple packets aren't used if the packet buffer isn't > large enough to accommodate all of the plugin output? Multiple packets are used if the size of the data to transmit is bigger than the MTU - size of packet headers. > I could see this > being especially troublesome for Nagios 3.0 as the buffer will be too small > to fully take advantage of multiline output. > Indeed. It would be better if NRPE just kept reading and outputting as long as there was data to fetch and just ignored all buffer sizes. It has never bothered me though, so I haven't bothered trying to fix what I don't consider broken. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From parcher at bcm.edu Wed Jan 3 16:08:24 2007 From: parcher at bcm.edu (Paul Archer) Date: Wed, 3 Jan 2007 09:08:24 -0600 (CST) Subject: ftp plugin In-Reply-To: <2D0245E43DEC724F81592D697F05689904C4337A@SIDHQEXCHMB1.Cabelas.Corp> References: <2D0245E43DEC724F81592D697F05689904C4337A@SIDHQEXCHMB1.Cabelas.Corp> Message-ID: Thanks for the tip. I had missed nagiosexchange for some reason. Turns out there's a script very similar to mine there. Wish I had seen it before I wrote mine. Still, I suppose I'll upload mine, as it does a couple of things differently. Paul On Tue, 2 Jan 2007, Aaron Segura wrote: > http://www.nagiosexchange.org/ > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Paul > Archer > Sent: Tuesday, January 02, 2007 9:55 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] ftp plugin > > I couldn't find an ftp plugin that went as far as logging in, changing > directories, and grabbing a file--so I wrote one. > Does anyone want it, and where should I submit it? > > Paul Archer > > ------------------------------ > Paul Archer > Senior Systems Administrator > Baylor College of Medicine > Human Genome Sequencing Center > 713-798-5288 / 832-969-3422 > ------------------------------ > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ---------- # pwd /loony/bin ---------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 3 17:27:06 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 03 Jan 2007 16:27:06 +0000 Subject: check_ssh causing log errors on remote servers? Message-ID: <459BD95A.1090108@googlemail.com> I've got check_ssh running against all my *nix boxes, but I have a steady stream of the following in my logs from those servers sshd[2742]: Connection closed by ::ffff:192.168.x.x sshd[2746]: fatal: Read from socket failed: Connection reset by peer sshd[2768]: Connection closed by ::ffff:192.168.x.x There are many "Connection closed by..." logs (one for each nagios check every 3 mins by the look of it) with the odd "Read from socket failed" log in between these, roughly after every 10-20 connection closed logs. I can't say for sure that it is down to check_ssh but it I does look that way to me. has anybody seen this before? -h -- Hari Sekhon ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.chard at sers.ox.ac.uk Wed Jan 3 17:31:57 2007 From: ian.chard at sers.ox.ac.uk (Ian Chard) Date: Wed, 03 Jan 2007 16:31:57 +0000 Subject: check_ssh causing log errors on remote servers? In-Reply-To: <459BD95A.1090108@googlemail.com> References: <459BD95A.1090108@googlemail.com> Message-ID: <459BDA7D.6050102@sers.ox.ac.uk> On 03/01/07 16:27, Hari Sekhon wrote: > I've got check_ssh running against all my *nix boxes, but I have a > steady stream of the following in my logs from those servers > > sshd[2742]: Connection closed by ::ffff:192.168.x.x > sshd[2746]: fatal: Read from socket failed: Connection reset by peer > sshd[2768]: Connection closed by ::ffff:192.168.x.x > > There are many "Connection closed by..." logs (one for each nagios check > every 3 mins by the look of it) with the odd "Read from socket failed" > log in between these, roughly after every 10-20 connection closed logs. This is because check_ssh doesn't actually do any negotiation with the sshd at the other end. It just connects, gets the version string sent by sshd, and disconnects. Your sshd is moaning that the client disconnected before entering into an ssh dialogue. The broader point, I suppose, is that check_ssh only checks that sshd returns a valid version string. It doesn't check if, for example, sshd is misconfigured in such a way as will prevent authentication. - Ian -- Ian Chard, Senior Unix and Network Admin | E: ian.chard at sers.ox.ac.uk Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services | F: (01865) 242287 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 3 17:41:15 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 03 Jan 2007 16:41:15 +0000 Subject: check_ssh plugin causing too many log messageswritten in /var/log/messages In-Reply-To: <2D0245E43DEC724F81592D697F05689904C43383@SIDHQEXCHMB1.Cabelas.Corp> References: <2D0245E43DEC724F81592D697F05689904C43383@SIDHQEXCHMB1.Cabelas.Corp> Message-ID: <459BDCAB.5000903@googlemail.com> I have the same problem. Unfortunately I do not want to put unsecured ssh keys on my nagios server and give the nagios user unrestricted access to all my production servers... Perhaps I can just silence the sshd from complaining? Or even better would be for the check_ssh plugin to work properly and do the negotiation and then exit gracefully without logging in. -h Hari Sekhon Aaron Segura wrote: > Instead of using 'check_ssh', you can use 'check_by_ssh' and just run a > simple command like '/bin/ls /tmp' to verify connectivity. This way, > the ssh handshake is completed and there's no need to log a 'Read from > socket failed' message. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > coolguy2007 at comcast.net > Sent: Tuesday, January 02, 2007 3:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_ssh plugin causing too many log > messageswritten in /var/log/messages > > Hi, > > Is there a way to make Nagios stop writing the messages like the > following in the /var/log/messages on remote host: > > > Jan 8 10:01:00 serverabc sshd[12110]: [ID 800047 auth.crit] fatal: Read > from socket failed: Connection reset by peer > > This happens whenever nagios makes a check using check_ssh to a remote > host. This entry is written in the logs of remote host to which Nagios > is trying to check the availability of ssh daemon. It looks like that > Nagios is trying to make ssh connection to check for this service but it > does not actually do it and then it disconnects the connection abruptly > (hence the entry like above is written) > > > I do not understand why does it happen on some of the machines while for > others there is no entry written in the logs. This is just causing too > many messages written in the logs on remote Solaris machines and this is > getting too annoying. Please enlighten us on how to cope with this > nuisance? Thanks in advance. > > --Shahid > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Wed Jan 3 18:22:02 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Wed, 3 Jan 2007 10:22:02 -0700 Subject: check_ssh plugin causing too many log messageswritten in /var/log/messages Message-ID: <2D0245E43DEC724F81592D697F05689904C4338A@SIDHQEXCHMB1.Cabelas.Corp> You can set SSH so that it can only execute a specific command on the remote end. In your authorized_keys file for the nagios user on the remote end, prepend "command=". For example: command="/bin/ls /tmp/crap" This will tell sshd to execute only this specific command may when this key is used to log in. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon Sent: Wednesday, January 03, 2007 9:41 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] check_ssh plugin causing too many log messageswritten in /var/log/messages I have the same problem. Unfortunately I do not want to put unsecured ssh keys on my nagios server and give the nagios user unrestricted access to all my production servers... Perhaps I can just silence the sshd from complaining? Or even better would be for the check_ssh plugin to work properly and do the negotiation and then exit gracefully without logging in. -h Hari Sekhon Aaron Segura wrote: > Instead of using 'check_ssh', you can use 'check_by_ssh' and just run a > simple command like '/bin/ls /tmp' to verify connectivity. This way, > the ssh handshake is completed and there's no need to log a 'Read from > socket failed' message. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > coolguy2007 at comcast.net > Sent: Tuesday, January 02, 2007 3:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_ssh plugin causing too many log > messageswritten in /var/log/messages > > Hi, > > Is there a way to make Nagios stop writing the messages like the > following in the /var/log/messages on remote host: > > > Jan 8 10:01:00 serverabc sshd[12110]: [ID 800047 auth.crit] fatal: Read > from socket failed: Connection reset by peer > > This happens whenever nagios makes a check using check_ssh to a remote > host. This entry is written in the logs of remote host to which Nagios > is trying to check the availability of ssh daemon. It looks like that > Nagios is trying to make ssh connection to check for this service but it > does not actually do it and then it disconnects the connection abruptly > (hence the entry like above is written) > > > I do not understand why does it happen on some of the machines while for > others there is no entry written in the logs. This is just causing too > many messages written in the logs on remote Solaris machines and this is > getting too annoying. Please enlighten us on how to cope with this > nuisance? Thanks in advance. > > --Shahid > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Wed Jan 3 19:07:53 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Wed, 3 Jan 2007 11:07:53 -0700 Subject: check_ssh plugin causing too manylog messageswritten in /var/log/messages Message-ID: <2D0245E43DEC724F81592D697F05689904C4338B@SIDHQEXCHMB1.Cabelas.Corp> Of course, you could turn up/down your "LogLevel" in sshd_config...but that has it's own risks. Basically you'd have to turn OFF logging for sshd, since the next highest level over FATAL is QUIET...and this appears to be a FATAL error. 'man sshd_config' -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Aaron Segura Sent: Wednesday, January 03, 2007 10:22 AM To: Hari Sekhon; Nagios Users mailinglist Subject: Re: [Nagios-users] check_ssh plugin causing too manylog messageswritten in /var/log/messages You can set SSH so that it can only execute a specific command on the remote end. In your authorized_keys file for the nagios user on the remote end, prepend "command=". For example: command="/bin/ls /tmp/crap" This will tell sshd to execute only this specific command may when this key is used to log in. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon Sent: Wednesday, January 03, 2007 9:41 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] check_ssh plugin causing too many log messageswritten in /var/log/messages I have the same problem. Unfortunately I do not want to put unsecured ssh keys on my nagios server and give the nagios user unrestricted access to all my production servers... Perhaps I can just silence the sshd from complaining? Or even better would be for the check_ssh plugin to work properly and do the negotiation and then exit gracefully without logging in. -h Hari Sekhon Aaron Segura wrote: > Instead of using 'check_ssh', you can use 'check_by_ssh' and just run a > simple command like '/bin/ls /tmp' to verify connectivity. This way, > the ssh handshake is completed and there's no need to log a 'Read from > socket failed' message. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > coolguy2007 at comcast.net > Sent: Tuesday, January 02, 2007 3:34 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_ssh plugin causing too many log > messageswritten in /var/log/messages > > Hi, > > Is there a way to make Nagios stop writing the messages like the > following in the /var/log/messages on remote host: > > > Jan 8 10:01:00 serverabc sshd[12110]: [ID 800047 auth.crit] fatal: Read > from socket failed: Connection reset by peer > > This happens whenever nagios makes a check using check_ssh to a remote > host. This entry is written in the logs of remote host to which Nagios > is trying to check the availability of ssh daemon. It looks like that > Nagios is trying to make ssh connection to check for this service but it > does not actually do it and then it disconnects the connection abruptly > (hence the entry like above is written) > > > I do not understand why does it happen on some of the machines while for > others there is no entry written in the logs. This is just causing too > many messages written in the logs on remote Solaris machines and this is > getting too annoying. Please enlighten us on how to cope with this > nuisance? Thanks in advance. > > --Shahid > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Wed Jan 3 21:17:12 2007 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Wed, 3 Jan 2007 15:17:12 -0500 Subject: plugins with rsh Message-ID: <7f62d2420701031217o68dc1d84h72defb8df1959657@mail.gmail.com> We have a legacy setup with tru64 hosts that are currently configured for rsh, not ssh. I've installed the latest and greatest nagios on a relatively recent fedora host and have used plugins with ssh in the past. The problem is that rsh doesn't return status codes properly. Rather, it returns only the status code of rsh itself, not the command. A search implies you just need to echo $? with rsh. rsh linux to linux, I get this: linux1> rsh linux1 'date ; echo $?' Wed Jan 3 15:15:07 EST 2007 and trying to generate an error: linux1> rsh linux1 'bogus ; echo $?' bogus; Command not found. 1 So that looks ok but first problem is when I put into nagios commands define .... rsh $HOSTADDRESS$ 'mycommand; echo $?' The web page show "(No output!) Is it possible it swallows the quotes? Further, rsh behaves differently on tru64: linux1> rsh tru64-host 'date;echo $?' Variable syntax. Any ideas for these problems? Thanks and -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Wed Jan 3 21:26:26 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Wed, 3 Jan 2007 14:26:26 -0600 Subject: plugins with rsh Message-ID: Try adding a second $ at the end of the command. rsh $HOSTADDRESS$ 'mycommand; echo $$?' Luis Lacayo Sr. UNIX Admin Chicago Public Schools Office of Technology Services 125 S. Clark Street - Suite 300 Chicago, IL 60603 Direct:773-553-3835 Office: 773-553-1300 FAX:773-553-1363 lflacayo at cps.k12.il.us ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of dave stern - e-mail.pluribus.unum Sent: Wednesday, January 03, 2007 2:17 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] plugins with rsh We have a legacy setup with tru64 hosts that are currently configured for rsh, not ssh. I've installed the latest and greatest nagios on a relatively recent fedora host and have used plugins with ssh in the past. The problem is that rsh doesn't return status codes properly. Rather, it returns only the status code of rsh itself, not the command. A search implies you just need to echo $? with rsh. rsh linux to linux, I get this: linux1> rsh linux1 'date ; echo $?' Wed Jan 3 15:15:07 EST 2007 and trying to generate an error: linux1> rsh linux1 'bogus ; echo $?' bogus; Command not found. 1 So that looks ok but first problem is when I put into nagios commands define .... rsh $HOSTADDRESS$ 'mycommand; echo $?' The web page show "(No output!) Is it possible it swallows the quotes? Further, rsh behaves differently on tru64: linux1> rsh tru64-host 'date;echo $?' Variable syntax. Any ideas for these problems? Thanks and -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 3 21:29:25 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 3 Jan 2007 15:29:25 -0500 Subject: Problem with External Command File Message-ID: <9C63A4713C4E3342B90428CE44806A7302679AF9@PHSXMB5.partners.org> I am running Nagios 2.6 and whenever I want to "schedule a check of all services...", I get the following error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update. The permissions on the external command file and/or directory may be incorrect... An error occurred while attempting to commit your command for processing. I first went to the nagios.cfg file and confirmed that external commands were activated, and that the path of the nagios.cmd file, /usr/local/nagios/var/rw/nagios.cmd was uncommented and correct. I checked the permissions on the nagios directory and its subdirectories. The nagios directory is owned by nagios:nagios, and the permissions on the directory are 777. This is also true for child directories under the main one. The ../nagios/var/rw directory has the same owners and permissions, while the nagios.cmd file is owned by nagios:nagios with the permissions prw-rw----. Has anyone seen this, and can tell me what I need to do to correct it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MPetersen at gs1us.org Wed Jan 3 21:42:00 2007 From: MPetersen at gs1us.org (Petersen, Mark) Date: Wed, 3 Jan 2007 14:42:00 -0600 Subject: Problem with External Command File Message-ID: <115F9F24033E1E4AB338024BDF9646F00558F9@chilms1002.UCCORG.org> I'm pretty sure the webserver (apache, nobody, www-data, or whatever you setup) needs write permissions for that file. It may also need to be a named pipe. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 03, 2007 2:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with External Command File I am running Nagios 2.6 and whenever I want to "schedule a check of all services...", I get the following error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update. The permissions on the external command file and/or directory may be incorrect... An error occurred while attempting to commit your command for processing. I first went to the nagios.cfg file and confirmed that external commands were activated, and that the path of the nagios.cmd file, /usr/local/nagios/var/rw/nagios.cmd was uncommented and correct. I checked the permissions on the nagios directory and its subdirectories. The nagios directory is owned by nagios:nagios, and the permissions on the directory are 777. This is also true for child directories under the main one. The ../nagios/var/rw directory has the same owners and permissions, while the nagios.cmd file is owned by nagios:nagios with the permissions prw-rw----. Has anyone seen this, and can tell me what I need to do to correct it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Wed Jan 3 21:45:47 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Wed, 3 Jan 2007 14:45:47 -0600 Subject: Problem with External Command File Message-ID: You should add the user who is running the httpd process to the NAGIOS group. Luis Luis Lacayo Sr. UNIX Admin Chicago Public Schools Office of Technology Services 125 S. Clark Street - Suite 300 Chicago, IL 60603 Direct:773-553-3835 Office: 773-553-1300 FAX:773-553-1363 lflacayo at cps.k12.il.us ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark Sent: Wednesday, January 03, 2007 2:42 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with External Command File I'm pretty sure the webserver (apache, nobody, www-data, or whatever you setup) needs write permissions for that file. It may also need to be a named pipe. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 03, 2007 2:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with External Command File I am running Nagios 2.6 and whenever I want to "schedule a check of all services...", I get the following error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update. The permissions on the external command file and/or directory may be incorrect... An error occurred while attempting to commit your command for processing. I first went to the nagios.cfg file and confirmed that external commands were activated, and that the path of the nagios.cmd file, /usr/local/nagios/var/rw/nagios.cmd was uncommented and correct. I checked the permissions on the nagios directory and its subdirectories. The nagios directory is owned by nagios:nagios, and the permissions on the directory are 777. This is also true for child directories under the main one. The ../nagios/var/rw directory has the same owners and permissions, while the nagios.cmd file is owned by nagios:nagios with the permissions prw-rw----. Has anyone seen this, and can tell me what I need to do to correct it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From guillaume.pratte at revolutionlinux.com Wed Jan 3 21:52:47 2007 From: guillaume.pratte at revolutionlinux.com (Guillaume Pratte) Date: Wed, 03 Jan 2007 15:52:47 -0500 Subject: An simple solution to monitor disk space, swap and memory Message-ID: <459C179F.2020102@revolutionlinux.com> Hello, I would like to propose a plugin I developped that simplify the task of setting up monitoring disks, memory and swap with Nagios. The plugin is part of Virtual server monitor, or, in short, vsmon, which was built specifically for the Linux-VServers technology but was extented to support hosts not using it. The plugin has some advantages over the competition : * You only have to install one program on the hosts to be able to monitor ALL mount points, memory and swap; * The warning and critical thresolds are intelligently determine using an invert logarithmic formula. No need to configure the thresolds : the bigger the disk partition / total memory available, the smaller the thresold in percent will be. vsmon's web site has a table of sample values of disk capacity and their corresponding thresolds: http://vsmon.revolutionlinux.com/Virtual_server_monitor:Nagios_plugin For more informations, see this URL: http://vsmon.revolutionlinux.com Comments are welcomed :-) Thanks, -- Guillaume Pratte Recherche et d?veloppement R?volution Linux Toutes les opinions et les prises de position exprim?es dans ce courriel sont celles de son auteur et ne r?presentent pas n?cessairement celles de R?volution Linux. Any views and opinions expressed in this email are solely those of the author and do not necessarily represent those of Revolution Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 3 21:52:54 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 3 Jan 2007 15:52:54 -0500 Subject: Problem with External Command File In-Reply-To: <115F9F24033E1E4AB338024BDF9646F00558F9@chilms1002.UCCORG.org> References: <115F9F24033E1E4AB338024BDF9646F00558F9@chilms1002.UCCORG.org> Message-ID: <9C63A4713C4E3342B90428CE44806A7302679AFC@PHSXMB5.partners.org> Can you clarify the "named-pipe"? Thanks. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark Sent: Wednesday, January 03, 2007 3:42 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with External Command File I'm pretty sure the webserver (apache, nobody, www-data, or whatever you setup) needs write permissions for that file. It may also need to be a named pipe. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 03, 2007 2:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with External Command File I am running Nagios 2.6 and whenever I want to "schedule a check of all services...", I get the following error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update. The permissions on the external command file and/or directory may be incorrect... An error occurred while attempting to commit your command for processing. I first went to the nagios.cfg file and confirmed that external commands were activated, and that the path of the nagios.cmd file, /usr/local/nagios/var/rw/nagios.cmd was uncommented and correct. I checked the permissions on the nagios directory and its subdirectories. The nagios directory is owned by nagios:nagios, and the permissions on the directory are 777. This is also true for child directories under the main one. The ../nagios/var/rw directory has the same owners and permissions, while the nagios.cmd file is owned by nagios:nagios with the permissions prw-rw----. Has anyone seen this, and can tell me what I need to do to correct it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 3 21:52:02 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 3 Jan 2007 15:52:02 -0500 Subject: Problem with External Command File In-Reply-To: References: Message-ID: <9C63A4713C4E3342B90428CE44806A7302679AFB@PHSXMB5.partners.org> I've added the nobody user to the NAGIOS group, and restarted Nagios. The same problem occurred. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lacayo, Luis F Sent: Wednesday, January 03, 2007 3:46 PM To: Petersen, Mark; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with External Command File You should add the user who is running the httpd process to the NAGIOS group. Luis Luis Lacayo Sr. UNIX Admin Chicago Public Schools Office of Technology Services 125 S. Clark Street - Suite 300 Chicago, IL 60603 Direct:773-553-3835 Office: 773-553-1300 FAX:773-553-1363 lflacayo at cps.k12.il.us ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark Sent: Wednesday, January 03, 2007 2:42 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with External Command File I'm pretty sure the webserver (apache, nobody, www-data, or whatever you setup) needs write permissions for that file. It may also need to be a named pipe. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 03, 2007 2:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with External Command File I am running Nagios 2.6 and whenever I want to "schedule a check of all services...", I get the following error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update. The permissions on the external command file and/or directory may be incorrect... An error occurred while attempting to commit your command for processing. I first went to the nagios.cfg file and confirmed that external commands were activated, and that the path of the nagios.cmd file, /usr/local/nagios/var/rw/nagios.cmd was uncommented and correct. I checked the permissions on the nagios directory and its subdirectories. The nagios directory is owned by nagios:nagios, and the permissions on the directory are 777. This is also true for child directories under the main one. The ../nagios/var/rw directory has the same owners and permissions, while the nagios.cmd file is owned by nagios:nagios with the permissions prw-rw----. Has anyone seen this, and can tell me what I need to do to correct it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 3 21:56:04 2007 From: marc at ena.com (Marc Powell) Date: Wed, 3 Jan 2007 14:56:04 -0600 Subject: Problem with External Command File Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Wednesday, January 03, 2007 2:52 PM > To: Lacayo, Luis F; Petersen, Mark; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problem with External Command File > > I've added the nobody user to the NAGIOS group, and restarted Nagios. The > same problem occurred. You need to restart your webserver. That's the user that's attempting to write to the file. http://nagios.sourceforge.net/docs/2_0/commandfile.html -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 3 21:57:20 2007 From: marc at ena.com (Marc Powell) Date: Wed, 3 Jan 2007 14:57:20 -0600 Subject: Problem with External Command File Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Wednesday, January 03, 2007 2:53 PM > To: Petersen, Mark; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problem with External Command File > > Can you clarify the "named-pipe"? Thanks. > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Wednesday, January 03, 2007 2:29 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problem with External Command File > same owners and permissions, while the nagios.cmd file is owned by > nagios:nagios with the permissions prw-rw----. The 'p' at the beginning of the permissions indicates that it's a named-pipe (a special file created by nagios). You don't need to worry about this as it's correct. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 3 22:01:50 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 3 Jan 2007 16:01:50 -0500 Subject: Problem with External Command File In-Reply-To: References: Message-ID: <9C63A4713C4E3342B90428CE44806A7302679AFD@PHSXMB5.partners.org> Thanks Marc. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Wednesday, January 03, 2007 3:56 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with External Command File > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Wednesday, January 03, 2007 2:52 PM > To: Lacayo, Luis F; Petersen, Mark; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problem with External Command File > > I've added the nobody user to the NAGIOS group, and restarted Nagios. The > same problem occurred. You need to restart your webserver. That's the user that's attempting to write to the file. http://nagios.sourceforge.net/docs/2_0/commandfile.html -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Thu Jan 4 00:13:22 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Thu, 4 Jan 2007 10:13:22 +1100 Subject: ePN Was Performance issues. In-Reply-To: References: Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9AF7974@acexp005.portfolio.base> Dear Sir, I am writing to thank you for your letter and say, > -----Original Message----- > From: "Robert Hajime Lanning" > Subject: Re: [Nagios-users] Performance issues, too1 .. skipped helpful remarks. > > The perl code path that runs in the master Nagios process (after > all pluggins have been compiled successfully and you remove argument > caching) is: > > sub eval_file { > my ($filename, $delete, undef, $plugin_args) = @_ ; > my $mtime = -M $filename ; > if ( exists($Cache{$filename}) && $Cache{$filename}[MTIME] > && ($Cache{$filename}[MTIME] >= $mtime)) { > if ( $Cache{$filename}[PLUGIN_ERROR] ) { > ... > } else { > return $Cache{$filename}[PLUGIN_HNDLR]; > }; > }; > }; > > I am not sure where the leak is, unless it is in the interpreter > itself. > It probably is, since most of the published documents (eg perlembed, 'Extending and Embedding Perl') emphasise the _big_ tradeoffs with embedding Perl. Thank you for repeating the code in your letter as I was trying to remember how it works and grappling with the fact that once the plugins are converted into Perl subroutines and compiled, the C caller (in checks.c) should simply be able to load the Perl stack with the Plugin arguments - as is done in checks.c - and then call Perl_call_sv() with the subroutine reference returned by eval_file (the content of return $Cache{$filename}[PLUGIN_HNDLR]). What happens is more complicated than this and I can't see why at the moment. (Part of the complexity is that the C args must be converted to Perl, and I think I preferred a second call to Perl to do this [after which Perl calls the subroutine itself] rather than converting the arguments - which is tricky - in C and then calling the subroutine from C). 1 refactor the Perl/C interface with a view to improving efficiency/readability/comprehensibility (I thought I understood ..) 2 consider a different approach with PPerl. BTW, for those wishing to play with this, contrib/new_mini_epn.c has most of the guts of the C interface (and uses the same Perl driver in p1.pl) may be the easiest way to start. (The main difference between this and the Nag code is that the Nag code forks for each plugin). Thank you, Yours sincerely. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 00:56:17 2007 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 3 Jan 2007 14:56:17 -0900 Subject: Nagios Timezone Message-ID: I have done some searching on this, and while I have found some similar questions in the archives, I haven't found an answer, so I figure I'll ask. I am running Nagios 2.5 on an OpenBSD 4.0 box. The machine is set to the proper time, and if I run "date" or "perl -e 'print scalar(localtime()) . "\n";' "(as suggested in one of the threads I found) it returns the proper time, in the proper timezone. Nagios, however, displays the time in GMT. Since I am off of GMT by a full 9 hours, this is rather annoying. Any way to fix this? Thanks. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Thu Jan 4 01:38:46 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Wed, 3 Jan 2007 16:38:46 -0800 (PST) Subject: Nagios Timezone In-Reply-To: References: Message-ID: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> > I have done some searching on this, and while I have found some > similar questions in the archives, I haven't found an answer, so I > figure I'll ask. I am running Nagios 2.5 on an OpenBSD 4.0 box. The > machine is set to the proper time, and if I run "date" or "perl -e > 'print scalar(localtime()) . "\n";' "(as suggested in one of the > threads I found) it returns the proper time, in the proper timezone. > Nagios, however, displays the time in GMT. Since I am off of GMT by a > full 9 hours, this is rather annoying. Any way to fix this? Thanks. 1) make sure Nagios is started with the TZ environment variable unset, so it will use the system setting. 2) make sure your web server also does not start with the TZ variable. -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mchandler at star.fielding.nec.co.jp Thu Jan 4 07:41:47 2007 From: mchandler at star.fielding.nec.co.jp (=?ISO-2022-JP?B?GyRCJUElYyVzJUklaRsoQg==?=) Date: Thu, 04 Jan 2007 15:41:47 +0900 Subject: Notification for change in critical state Message-ID: <459CA1AB.4000208@star.fielding.nec.co.jp> Hi, I am running nagios 2.5, monitoring a network that has many devices with multiple IPs (ie. routers). Currently I have each IP registered as a separate host, which works well, but is a pain to manage. What I want to do is set up a multi-ping service that will ping all the IPs and generate a critical state if one of the IPs does not respond. The problem is that, for example, one IP goes down and a notification is sent out, there doesn't seem to be a way to force a notification to be sent if another IP goes down, as the service is already in a hard critical state. I thought about generating an external command from the check script, but the list of external commands (http://nagios.org/developerinfo/externalcommands/commandlist.php) doesn't list one that I could see helping...(like maybe one to force the state type back to soft or something). Setting the notification number to 0 didn't do the trick (see SET_SVC_NOTIFICATION_NUMBER). Is such a scenario possible? or am I barking up the wrong tree? Thanks for any help, Martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 07:54:26 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 4 Jan 2007 01:54:26 -0500 Subject: Notification for change in critical state In-Reply-To: <459CA1AB.4000208@star.fielding.nec.co.jp> References: <459CA1AB.4000208@star.fielding.nec.co.jp> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of ????? > Sent: Wednesday, January 03, 2007 10:42 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] Notification for change in critical state > > Hi, > > I am running nagios 2.5, monitoring a network that has many > devices with multiple IPs (ie. routers). > Currently I have each IP registered as a separate host, which > works well, but is a pain to manage. > What I want to do is set up a multi-ping service that will > ping all the IPs and generate a critical state if one of the > IPs does not respond. > The problem is that, for example, one IP goes down and a > notification is sent out, there doesn't seem to be a way to > force a notification to be sent if another IP goes down, as > the service is already in a hard critical state. > I thought about generating an external command from the check > script, but the list of external commands > (http://nagios.org/developerinfo/externalcommands/commandlist.php) > doesn't list one that I could see helping...(like maybe one > to force the state type back to soft or something). Setting > the notification number to 0 didn't do the trick (see > SET_SVC_NOTIFICATION_NUMBER). > > Is such a scenario possible? or am I barking up the wrong tree? What I'd do, which may or may not work for you, is to set up a service on a single host that pings each IP. That way one interface going down doesn't effect the notification status of the others. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sg at schaubroeck.be Thu Jan 4 09:07:11 2007 From: sg at schaubroeck.be (Stijn Gruwier) Date: Thu, 04 Jan 2007 09:07:11 +0100 Subject: Notification for change in critical state In-Reply-To: <459CA1AB.4000208@star.fielding.nec.co.jp> References: <459CA1AB.4000208@star.fielding.nec.co.jp> Message-ID: <459CB5AF.1040502@schaubroeck.be> Hello, I have a similar issue but with multiple netapp volumes instead of multiple ip addresses being checked by one plugin. Wat might be a solution is is submitting (enough) checkresults to the external command file in your check script, forcing a different state, like unknown, wich will triger a notification when it goes back to critical/warning.... This can be done with the external command process_service_check_result, maybe like this: PROCESS_SERVICE_CHECK_RESULT;routername;check-multiple-ip;3;One more/less ip address is down Then when your check script returns CRITICAL there will be a state changes from critical -> unknown -> critical and notifications will be sent. For this you'd need passive service checks enabled for the service and there should be a delay between submitting the external command and the plugin exit, so nagios has time to process the check results and change the service state. This isn't perfect, there will be 2 notifications, but maybe by disabling notifications for the unknown state there will be only 1 (or 0, I don't know?). Regards, Stijn Gruwier Schaubroeck Informatica ????? schreef: > Hi, > > I am running nagios 2.5, monitoring a network that has many devices with > multiple IPs (ie. routers). > Currently I have each IP registered as a separate host, which works > well, but is a pain to manage. > What I want to do is set up a multi-ping service that will ping all the > IPs and generate a critical state if one of the IPs does not respond. > The problem is that, for example, one IP goes down and a notification is > sent out, there doesn't seem to be a way to force a notification to be > sent if another IP goes down, as the service is already in a hard > critical state. > I thought about generating an external command from the check script, > but the list of external commands > (http://nagios.org/developerinfo/externalcommands/commandlist.php) > doesn't list one that I could see helping...(like maybe one to force the > state type back to soft or something). Setting the notification number > to 0 didn't do the trick (see SET_SVC_NOTIFICATION_NUMBER). > > Is such a scenario possible? or am I barking up the wrong tree? > > Thanks for any help, > Martin > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Thu Jan 4 11:05:20 2007 From: vadi.ksdba at gmail.com (vadi) Date: Thu, 4 Jan 2007 15:35:20 +0530 Subject: nsclient problem to start service Message-ID: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> Respected sir/madam, I am facing some problem in starting nrpe service. I have following specification Negios server: 2.4 version When I am trying to installed nsclient in windows and we are using default port number. But when I am trying to start nrpe service I am getting following error 'net start nsclient' C:\>net start nsclient The Nagios Agent service is starting.. The Nagios Agent service could not be started. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. Please help me to solve this issue. thanks, raj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nsclient.GIF Type: image/gif Size: 13671 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 4 11:12:52 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Jan 2007 11:12:52 +0100 Subject: Problem with External Command File In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679AFC@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679AFC@PHSXMB5.partners.org> Message-ID: <459CD324.5070604@op5.se> Kaplan, Andrew H. wrote: > Can you clarify the "named-pipe"? Thanks. > "named pipe" is a nick-name for FIFO's that have a filesystem entry. Ie, it's actually a (very small) stream-buffer with First In First Out priority reading/writing that any process can connect to by opening a special file (the "named pipe") that exists on-disk. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 4 11:15:15 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Jan 2007 11:15:15 +0100 Subject: An simple solution to monitor disk space, swap and memory In-Reply-To: <459C179F.2020102@revolutionlinux.com> References: <459C179F.2020102@revolutionlinux.com> Message-ID: <459CD3B3.4050705@op5.se> Guillaume Pratte wrote: > > * The warning and critical thresolds are intelligently determine > using an invert logarithmic formula. No need to configure the > thresolds : the bigger the disk partition / total memory > available, the smaller the thresold in percent will be. > This is nice, but is it still possible to force it to accept thresholds? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle at serv.co.za Thu Jan 4 12:24:46 2007 From: kyle at serv.co.za (Kyle Vorster) Date: Thu, 04 Jan 2007 13:24:46 +0200 Subject: Nagios and Graphs Message-ID: <459CE3FE.704@serv.co.za> Hi Guys, I am looking for some kind of graphing software to show ping times, I am pinging google.com and a few other sites to check what speed I get to those sites but I would like to display this on a graph to see when I have slow ping times and so forth. Any one know of any good software for this. Kind Regards, Kyle Vorster ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From barbereau at gmail.com Thu Jan 4 12:37:20 2007 From: barbereau at gmail.com (=?UTF-8?Q?S=C3=A9bastien_Barbereau?=) Date: Thu, 4 Jan 2007 11:37:20 +0000 Subject: Nagios and Graphs In-Reply-To: <459CE3FE.704@serv.co.za> References: <459CE3FE.704@serv.co.za> Message-ID: <4e0e33ee0701040337h20b60204x5d576e2a7c08ba64@mail.gmail.com> this may be what you're looking for: http://www.ederdrom.de/doku.php/nagios/pnp_en On 1/4/07, Kyle Vorster wrote: > > Hi Guys, > > I am looking for some kind of graphing software to show ping times, > > I am pinging google.com and a few other sites to check what speed I get > to those sites but I would like to display this on a graph to see when I > have slow ping times and so forth. > > Any one know of any good software for this. > > Kind Regards, > Kyle Vorster > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 15:57:21 2007 From: marc at ena.com (Marc Powell) Date: Thu, 4 Jan 2007 08:57:21 -0600 Subject: Nagios and Graphs Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kyle Vorster > Sent: Thursday, January 04, 2007 5:25 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios and Graphs > > Hi Guys, > > I am looking for some kind of graphing software to show ping times, > > I am pinging google.com and a few other sites to check what speed I get > to those sites but I would like to display this on a graph to see when I > have slow ping times and so forth. > > Any one know of any good software for this. You can't really measure 'speed' from a ping response but the best tool for graphing latency, latency distribution and packet-loss IMHO is SmokePing -- http://oss.oetiker.ch/smokeping/ -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From guillaume.pratte at revolutionlinux.com Thu Jan 4 16:20:27 2007 From: guillaume.pratte at revolutionlinux.com (Guillaume Pratte) Date: Thu, 04 Jan 2007 10:20:27 -0500 Subject: An simple solution to monitor disk space, swap and memory In-Reply-To: <459CD3B3.4050705@op5.se> References: <459C179F.2020102@revolutionlinux.com> <459CD3B3.4050705@op5.se> Message-ID: <459D1B3B.9060803@revolutionlinux.com> Andreas Ericsson a ?crit : > Guillaume Pratte wrote: >> * The warning and critical thresolds are intelligently determine >> using an invert logarithmic formula. No need to configure the >> thresolds : the bigger the disk partition / total memory >> available, the smaller the thresold in percent will be. > This is nice, but is it still possible to force it to accept thresholds? It was designed to be the easiest disk monitoring plugin to configure in existance : pre-determined values that make senses, almost no configuration. Now if you try it and you think that the pre-dertermined values makes no sense at all, drop me a mail :-) Don't hesitate to use another plugin where you can/have to specify the thresolds. It's your choice. -- Guillaume Pratte Recherche et d?veloppement R?volution Linux Toutes les opinions et les prises de position exprim?es dans ce courriel sont celles de son auteur et ne r?presentent pas n?cessairement celles de R?volution Linux. Any views and opinions expressed in this email are solely those of the author and do not necessarily represent those of Revolution Linux. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Thu Jan 4 16:48:49 2007 From: philc at foundation-it.com (Phil Costelloe) Date: Thu, 4 Jan 2007 15:48:49 -0000 Subject: 0 bytes pin using check_ping In-Reply-To: <459A7417.10201@mailnetwork.co.uk> References: <459A7417.10201@mailnetwork.co.uk> Message-ID: dhaval thakar wrote: > > I tried with check_icmp, > but the results in "check_icmp: Failed to obtain ICMP socket: > Operation not permitted". i used "chmod 777 check_icmp" but didn't > worked out. I think check_icmp needs to be owned by root and setuid in order for it to carry out socket operations. Try: chown root check_icmp chmod u+s check_icmp Standard warning: you should always understand the consequences before setting the setuid or setgid bit on a file. A Google search on "setuid" will turn up plenty of general info. Phil -------------------------------------------------------- Phil Costelloe Technical Consultant philc at foundation-it.com http://www.foundation-it.com Foundation IT Foundation Court Old Street Oare Hermitage Berkshire RG18 9SE Switch: +44 (0) 1635 203700 Helpdesk: +44 (0) 800 0121099 DDI: +44 (0) 1635 203719 Fax: +44 (0) 8700 543537 Mobile: +44 (0) 7884 236299 -------------------------------------------------------- This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philc at foundation-it.com Thu Jan 4 17:01:19 2007 From: philc at foundation-it.com (Phil Costelloe) Date: Thu, 4 Jan 2007 16:01:19 -0000 Subject: nsclient problem to start service In-Reply-To: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> References: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> Message-ID: > I am facing some problem in starting nrpe service. > I have following specification > Negios server: 2.4 version > When I am trying to installed nsclient in windows and we are using default port number. > But when I am trying to start nrpe service I am getting following error > 'net start nsclient' > > C:\>net start nsclient > > The Nagios Agent service is starting.. > > The Nagios Agent service could not be started. > > > A system error has occurred. > > > System error 1067 has occurred. > The process terminated unexpectedly. 1067 is just a general "starting the service didn't work" error so doesn't help much. I'm confused as to whether you're installing nrpe or nsclient, can you clarify the steps you've taken so far? I think you've probably missed something out. Phil -------------------------------------------------------- Phil Costelloe Technical Consultant philc at foundation-it.com http://www.foundation-it.com Foundation IT Foundation Court Old Street Oare Hermitage Berkshire RG18 9SE Switch: +44 (0) 1635 203700 Helpdesk: +44 (0) 800 0121099 DDI: +44 (0) 1635 203719 Fax: +44 (0) 8700 543537 Mobile: +44 (0) 7884 236299 -------------------------------------------------------- This message contains confidential information and is intended only for Nagios-users at lists.sourceforge.net. If you are not Nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 4 17:10:09 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Jan 2007 17:10:09 +0100 Subject: An simple solution to monitor disk space, swap and memory In-Reply-To: <459D1B3B.9060803@revolutionlinux.com> References: <459C179F.2020102@revolutionlinux.com> <459CD3B3.4050705@op5.se> <459D1B3B.9060803@revolutionlinux.com> Message-ID: <459D26E1.4050206@op5.se> Guillaume Pratte wrote: > Andreas Ericsson a ?crit : >> Guillaume Pratte wrote: >>> * The warning and critical thresolds are intelligently determine >>> using an invert logarithmic formula. No need to configure the >>> thresolds : the bigger the disk partition / total memory >>> available, the smaller the thresold in percent will be. >> This is nice, but is it still possible to force it to accept thresholds? > It was designed to be the easiest disk monitoring plugin to configure in > existance : pre-determined values that make senses, almost no configuration. > > Now if you try it and you think that the pre-dertermined values makes no > sense at all, drop me a mail :-) > > Don't hesitate to use another plugin where you can/have to specify the > thresolds. It's your choice. > I'll take that as a "no". Just wondering :-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wrjacqmein at gmail.com Thu Jan 4 17:21:11 2007 From: wrjacqmein at gmail.com (Bill Jacqmein) Date: Thu, 4 Jan 2007 11:21:11 -0500 Subject: nsclient problem to start service In-Reply-To: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> References: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> Message-ID: <3c9a5bae0701040821p4b12c4abl55d513a534651067@mail.gmail.com> Vadi, I would recommend using NagiosClient++ (http://trac.nakednuns.org/nscp/) it has NREP already builtin and is still being developed. Thanks, Bill On 1/4/07, vadi wrote: > > Respected sir/madam, > > I am facing some problem in starting nrpe service. > I have following specification > Negios server: 2.4 version > When I am trying to installed nsclient in windows and we are using default > port number. > But when I am trying to start nrpe service I am getting following error > 'net start nsclient' > > C:\>net start nsclient > > The Nagios Agent service is starting.. > > The Nagios Agent service could not be started. > > A system error has occurred. > > System error 1067 has occurred. > The process terminated unexpectedly. > > > > > > Please help me to solve this issue. > > thanks, > > raj > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jan 4 17:28:35 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 04 Jan 2007 16:28:35 +0000 Subject: 0 bytes pin using check_ping In-Reply-To: References: Message-ID: <459D2B33.3030201@googlemail.com> how about just using sudo to grant the nagios user the suid equivalent privilege since that's what it was designed for... that's what I do with my plugins that need root. -h Hari Sekhon Phil Costelloe wrote: > dhaval thakar wrote: > >> I tried with check_icmp, >> but the results in "check_icmp: Failed to obtain ICMP socket: >> Operation not permitted". i used "chmod 777 check_icmp" but didn't >> worked out. >> > > I think check_icmp needs to be owned by root and setuid in order for it > to carry out socket operations. > > Try: > > chown root check_icmp > chmod u+s check_icmp > > Standard warning: you should always understand the consequences before > setting the setuid or setgid bit on a file. A Google search on "setuid" > will turn up plenty of general info. > > Phil > > -------------------------------------------------------- > > Phil Costelloe > Technical Consultant > > > philc at foundation-it.com > http://www.foundation-it.com > Foundation IT > Foundation Court > Old Street > Oare > Hermitage Berkshire RG18 9SE > Switch: +44 (0) 1635 203700 > Helpdesk: +44 (0) 800 0121099 > DDI: +44 (0) 1635 203719 > Fax: +44 (0) 8700 543537 > Mobile: +44 (0) 7884 236299 > > > > -------------------------------------------------------- > This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. > -------------------------------------------------------- > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 18:01:10 2007 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 4 Jan 2007 08:01:10 -0900 Subject: Nagios Timezone In-Reply-To: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> Message-ID: <92FEC9A0-4866-42B3-BDF4-ED735407199B@frontierflying.com> Just tried it- setting (and unsetting) the TZ environment variable before launching Nagios and Apache makes no difference- Nagios still displays GMT. Other ideas? ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- On Jan 3, 2007, at 3:38 PM, Robert Hajime Lanning wrote: > > >> I have done some searching on this, and while I have found some >> similar questions in the archives, I haven't found an answer, so I >> figure I'll ask. I am running Nagios 2.5 on an OpenBSD 4.0 box. The >> machine is set to the proper time, and if I run "date" or "perl -e >> 'print scalar(localtime()) . "\n";' "(as suggested in one of the >> threads I found) it returns the proper time, in the proper timezone. >> Nagios, however, displays the time in GMT. Since I am off of GMT by a >> full 9 hours, this is rather annoying. Any way to fix this? Thanks. > > 1) make sure Nagios is started with the TZ environment variable > unset, so it will use the system setting. > > 2) make sure your web server also does not start with the TZ variable. > > -- > And, did Galoka think the Ulus were too ugly to save? > -Centauri > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 18:02:25 2007 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 4 Jan 2007 08:02:25 -0900 Subject: Nagios Timezone In-Reply-To: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> Message-ID: <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> Resend-I accidentally didn't post this reply to the list. Sorry :P As far as I can tell, the TZ environment variable is never set. Perhaps it would help if it was set? What would it need to be set to, if so? ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- On Jan 3, 2007, at 3:38 PM, Robert Hajime Lanning wrote: > > >> I have done some searching on this, and while I have found some >> similar questions in the archives, I haven't found an answer, so I >> figure I'll ask. I am running Nagios 2.5 on an OpenBSD 4.0 box. The >> machine is set to the proper time, and if I run "date" or "perl -e >> 'print scalar(localtime()) . "\n";' "(as suggested in one of the >> threads I found) it returns the proper time, in the proper timezone. >> Nagios, however, displays the time in GMT. Since I am off of GMT by a >> full 9 hours, this is rather annoying. Any way to fix this? Thanks. > > 1) make sure Nagios is started with the TZ environment variable > unset, so it will use the system setting. > > 2) make sure your web server also does not start with the TZ variable. > > -- > And, did Galoka think the Ulus were too ugly to save? > -Centauri > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 4 18:20:02 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Jan 2007 18:20:02 +0100 Subject: 0 bytes pin using check_ping In-Reply-To: <459D2B33.3030201@googlemail.com> References: <459D2B33.3030201@googlemail.com> Message-ID: <459D3742.6060301@op5.se> Hari Sekhon wrote: > how about just using sudo to grant the nagios user the suid equivalent > privilege since that's what it was designed for... > > that's what I do with my plugins that need root. > Sometimes that's correct and sometimes it's not. In the case of check_icmp, it requires root privileges roughly 0.2ms of its execution, and drops those privileges before touching any user-input what so ever. sudo does a whole lot more, and doesn't drop its root privileges ever, so for this particular case it's safer to make check_icmp a setsuid binary. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cdrayton at kanbay.com Thu Jan 4 18:37:13 2007 From: cdrayton at kanbay.com (Charles Drayton) Date: Thu, 4 Jan 2007 12:37:13 -0500 Subject: Unsatisfied symbol when compiling on hp 11.23 itanium Message-ID: <4F7924654F01D64080608523EBE6F008762839@bosexc01.kanbay.com> Hi, Has anyone seen this before ? Any suggestions ? Thanks for any input. =============================================== /home/nagios/nrpe-2.5.2/src $ make all gcc -g -O2 -I/usr/local/include/openssl -I/usr/local/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/lib -lssl -lcrypto -lnsl -lwrap -liberty nrpe.c: In function 'wait_for_connections': nrpe.c:768: warning: passing argument 3 of 'getpeername' from incompatible pointer type ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so 1 warnings. /home/nagios/nrpe-2.5.2/src $ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Thu Jan 4 19:05:44 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Thu, 4 Jan 2007 13:05:44 -0500 Subject: Unsatisfied symbol when compiling on hp 11.23 itanium In-Reply-To: <4F7924654F01D64080608523EBE6F008762839@bosexc01.kanbay.com> References: <4F7924654F01D64080608523EBE6F008762839@bosexc01.kanbay.com> Message-ID: <7F477BD26F545A4C8E4779754A38EFB346AE93@PEPWMV00043.corp.pep.pvt> I have had the same difficulties myself and am hoping for a good answer. I get this issue with NRPE 2.5 and 2.6. I can't figure out what happened here, but it looks like HPUX built a library (librwap.so) with unresolved symbols. I've found that I can usually get it to compile if I make it exclude the librwap stuff. To remove it, you'll need to run configure, then - edit include/config.h and change #define HAVE_LIBWRAP 1 to #undef HAVE_LIBWRAP - edit src/Makefile and change LIBWRAPLIBS= -lwrap to LIBWRAPLIBS= This at least gets it to compile, although it then complains that it was built without a TCP wrapper every time you try to run it which is also problematic. I'm still not certain how well it works once it compiles though as I haven't had a lot of time to test it yet. I had also investigated just building my own tcp wrapper library to link against, but that code looks pretty old and is more of a mess to make work with HPUX. -Mark ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Charles Drayton Sent: Thursday, January 04, 2007 12:37 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Unsatisfied symbol when compiling on hp 11.23 itanium Hi, Has anyone seen this before ? Any suggestions ? Thanks for any input. =============================================== /home/nagios/nrpe-2.5.2/src $ make all gcc -g -O2 -I/usr/local/include/openssl -I/usr/local/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/lib -lssl -lcrypto -lnsl -lwrap -liberty nrpe.c: In function 'wait_for_connections': nrpe.c:768: warning: passing argument 3 of 'getpeername' from incompatible pointer type ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so 1 warnings. /home/nagios/nrpe-2.5.2/src $ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Thu Jan 4 19:28:01 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Thu, 04 Jan 2007 12:28:01 -0600 Subject: nsclient problem to start service In-Reply-To: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> References: <5f6b57ee0701040205q58903205h1f4f4dd46c1c7fe2@mail.gmail.com> Message-ID: <459D4731.5050409@epsiia.com> Hi, My guess is that you're running Win 2003 (even though you didn't specify), and Data Execution Prevention is preventing the unregistered executable from starting. If this is the case, you need to go to Control Panel -> System -> Advanced -> Settings (the first one under Performance) Click on the Data Execution Prevention tab and add pNSclient.exe as a valid executable (by clicking Add and browsing to it). If that's not the problem, then please provide some more info. Good luck! - Josh vadi wrote: > Respected sir/madam, > > I am facing some problem in starting nrpe service. > I have following specification > Negios server: 2.4 version > When I am trying to installed nsclient in windows and we are using default > port number. > But when I am trying to start nrpe service I am getting following error > 'net start nsclient' > > C:\>net start nsclient > > The Nagios Agent service is starting.. > > The Nagios Agent service could not be started. > > A system error has occurred. > > System error 1067 has occurred. > The process terminated unexpectedly. > > > > > > Please help me to solve this issue. > > thanks, > > raj > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SStringh at lrlaw.com Thu Jan 4 20:31:04 2007 From: SStringh at lrlaw.com (Stringham, Steven) Date: Thu, 4 Jan 2007 12:31:04 -0700 Subject: Service Check performance improvement Message-ID: <7DE0E56018B2844CA0BCEE739004ED06547F@LRPHXEX1.lrlaw.com> Where can I change my settings to improve my service check latency. As you can see, my average is almost 5 minutes behind when it is scheduled. Any hints would be welcome. I have gone over the docs, and have tried to maximize the system as I best can understand. I am running Fedora 4, with Nagios 2.6. I am also running Cacti and a number of other processes on this machine. The CPU/Net utilization is pretty low, however. Thanks much Steven Stringham Monitoring Performance Service Check Execution Time: 0.02 / 10.61 / 1.621 sec Service Check Latency: 289.93 / 548.10 / 307.947 sec Host Check Execution Time: 4.02 / 4.21 / 4.104 sec Host Check Latency: 297.30 / 318.59 / 308.080 sec # Active Host / Service Checks: 173 / 314 # Passive Host / Service Checks: 0 / 0 Here are the performance related config lines. aggregate_status_updates=1 status_update_interval=15 enable_notifications=1 execute_service_checks=1 accept_passive_service_checks=1 enable_event_handlers=1 check_external_commands=1 command_check_interval=-1 sleep_time=0.1 service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 interval_length=60 use_aggressive_host_checking=0 enable_flap_detection=1 soft_state_dependencies=0 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 obsess_over_services=0 process_performance_data=0 check_for_orphaned_services=0 check_service_freshness=1 execute_host_checks=1 service_inter_check_delay_method=s use_retained_scheduling_info=1 accept_passive_host_checks=1 max_service_check_spread=30 host_inter_check_delay_method=s max_host_check_spread=30 auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=90 check_host_freshness=0 host_freshness_check_interval=60 service_freshness_check_interval=60 event_broker_options=-1 service_perfdata_command=0 ---- For more information about Lewis and Roca LLP, please go to www.lewisandroca.com. Phoenix (602) 262-5311 Tucson (520) 622-2090 Las Vegas (702) 949-8200 Reno (775) 770-2600 Albuquerque (505) 764-5400 This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail by return E-Mail or by telephone. In accordance with Internal Revenue Service Circular 230, we advise you that if this email contains any tax advice, such tax advice was not intended or written to be used, and it cannot be used, by any taxpayer for the purpose of avoiding penalties that may be imposed on the taxpayer. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Jan 4 20:42:22 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 4 Jan 2007 14:42:22 -0500 Subject: Problem with check_pgsql Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B09@PHSXMB5.partners.org> I am encountering and error every time I try to run the check_pgsql plugin. The error is the following: Error while loading shared libraries: libpq.so.5: cannot open shared object file. No such file or directory. I checked the /usr/local/pgsql/lib directory, and there is a symbolic link of that name which points to the libpq.so.5.0 file. The pgsql directory is owned by root:root and has 755 permissions on it and its subdirectories. The version of PostgreSQL is 8.2.0. When I compiled the nagios plugins, version 1.4.5, I made sure to include the -with-pgsql=/usr/local/pgsql syntax option with the configure script. I also made sure that the user compiling the plugins, root, had the /usr/local/pgsql directory in its default path. What steps do I need to take to correct this? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 4 20:54:48 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 4 Jan 2007 11:54:48 -0800 Subject: Problem with check_pgsql In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679B09@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B09@PHSXMB5.partners.org> Message-ID: <20070104195448.GV17454@pmorris.usa.hp.com> Hi Kaplan,! On Thu, 04 Jan 2007, Kaplan, Andrew H. wrote: > I am encountering and error every time I try to run the check_pgsql plugin. The > error is the following: > > Error while loading shared libraries: libpq.so.5: cannot open shared object > file. No such file or directory. > > What steps do I need to take to correct this? Thanks. You haven't said what you're running it on, so I can't give specifics, but you need that directory in the library search path when the plugin is called. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Jan 4 20:49:33 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 4 Jan 2007 14:49:33 -0500 Subject: Problem with check_pgsql In-Reply-To: <20070104195448.GV17454@pmorris.usa.hp.com> References: <20070104195448.GV17454@pmorris.usa.hp.com> Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B0A@PHSXMB5.partners.org> Sorry about that. The OS is Fedora Core 5. How would I add the directory to the library search path? -----Original Message----- From: Patrick Morris [mailto:patrick.morris at hp.com] Sent: Thursday, January 04, 2007 2:55 PM To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with check_pgsql Hi Kaplan,! On Thu, 04 Jan 2007, Kaplan, Andrew H. wrote: > I am encountering and error every time I try to run the check_pgsql plugin. The > error is the following: > > Error while loading shared libraries: libpq.so.5: cannot open shared object > file. No such file or directory. > > What steps do I need to take to correct this? Thanks. You haven't said what you're running it on, so I can't give specifics, but you need that directory in the library search path when the plugin is called. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Thu Jan 4 21:14:47 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Thu, 04 Jan 2007 20:14:47 +0000 Subject: Problem with check_pgsql In-Reply-To: <20070104195448.GV17454@pmorris.usa.hp.com> References: <9C63A4713C4E3342B90428CE44806A7302679B09@PHSXMB5.partners.org> <20070104195448.GV17454@pmorris.usa.hp.com> Message-ID: <459D6037.3050903@mailnetwork.co.uk> I think on Fedora you can edit /etc/ld.so.conf, then run ldconfig. Or make sure there is a symlink to the libpq.so.5 in /lib, /usr/lib and /usr/local/lib (just to cover all bases!) I had a similar problem on FreeBSD, and linking libpq.so.5 in /lib was the trick. Andy. Patrick Morris wrote: > Hi Kaplan,! > > On Thu, 04 Jan 2007, Kaplan, Andrew H. wrote: > > >> I am encountering and error every time I try to run the check_pgsql plugin. The >> error is the following: >> >> Error while loading shared libraries: libpq.so.5: cannot open shared object >> file. No such file or directory. >> >> What steps do I need to take to correct this? Thanks. >> > > You haven't said what you're running it on, so I can't give specifics, > but you need that directory in the library search path when the plugin > is called. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459d5e3331755596269461! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Thu Jan 4 21:28:06 2007 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Thu, 4 Jan 2007 15:28:06 -0500 Subject: plugins with rsh In-Reply-To: <200701032117.NAA27656@redwood.taos.com> References: <7f62d2420701031217o68dc1d84h72defb8df1959657@mail.gmail.com> <200701032117.NAA27656@redwood.taos.com> Message-ID: <7f62d2420701041228r216e42a3uef271968b8a83d13@mail.gmail.com> *Forwarded Conversation* Subject: *plugins with rsh* ------------------------ * From: dave stern - e-mail.pluribus.unum* To: nagios-users at lists.sourceforge.net Date: Wed, Jan 3, 2007 at 3:17 PM We have a legacy setup with tru64 hosts that are currently configured for rsh, not ssh. I've installed the latest and greatest nagios on a relatively recent fedora host and have used plugins with ssh in the past. The problem is that rsh doesn't return status codes properly. Rather, it returns only the status code of rsh itself, not the command. A search implies you just need to echo $? with rsh. rsh linux to linux, I get this: linux1> rsh linux1 'date ; echo $?' Wed Jan 3 15:15:07 EST 2007 and trying to generate an error: linux1> rsh linux1 'bogus ; echo $?' bogus; Command not found. 1 So that looks ok but first problem is when I put into nagios commands define .... rsh $HOSTADDRESS$ 'mycommand; echo $?' The web page show "(No output!) Is it possible it swallows the quotes? Further, rsh behaves differently on tru64: linux1> rsh tru64-host 'date;echo $?' Variable syntax. Any ideas for these problems? Thanks and -------- * From: Lacayo, Luis F* To: "dave stern - e-mail.pluribus.unum" , nagios-users at lists.sourceforge.net Date: Wed, Jan 3, 2007 at 3:26 PM Try adding a second $ at the end of the command. rsh $HOSTADDRESS$ 'mycommand; echo $$?' Luis Lacayo Sr. UNIX Admin Chicago Public Schools Office of Technology Services 125 S. Clark Street ? Suite 300 Chicago, IL 60603 Direct:773-553-3835 Office: 773-553-1300 FAX:773-553-1363 lflacayo at cps.k12.il.us ------------------------------ *From:* nagios-users-bounces at lists.sourceforge.net [mailto: nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *dave stern - e-mail.pluribus.unum *Sent:* Wednesday, January 03, 2007 2:17 PM *To:* nagios-users at lists.sourceforge.net *Subject:* [Nagios-users] plugins with rsh [Quoted text hidden] -------- * From: Darren Dunham* To: "dave stern - e-mail.pluribus.unum" Date: Wed, Jan 3, 2007 at 4:17 PM > Further, rsh behaves differently on tru64: > > linux1> rsh tru64-host 'date;echo $?' > Variable syntax. $? is a bourne-style parameter for status. Older csh-style shells may not support it (although looking around, I was surprised to find a few /bin/csh shells that did). Specifically, "Variable syntax" appears to be a csh error message to me. Is the account you're accessing on the tru64 machine using a csh shell? -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > -------- These were both great suggestions. Here's where I stand now (hopefully this can help others altho this isn't yet resolved) nagios user has a csh. I can either change that or get around it by prepending to the nagios command /usr/bin/sh Also, rsh interprets two dollars as PID eg if I Linux1> rsh hostname 'date; echo $$?' Thu Jan 4 12:38:36 EST 2007 12344 Turns out, it will interpret $status correctly ie Linux1> rsh hostname 'date; echo $status' Thu Jan 4 12:38:36 EST 2007 0 >linux1> rsh hostname 'bogus; echo $status' bogus; Command not found 1 (Hope I got that right, manufacturing this from memory as nagios network is airgapped to internet) The problem is still getting the info back to nagios. Putting the above command into nagios's command.cfg and setting up two such services, one on a host that will report success and one on a host that will fail, I get both hosts reporting "(No output!) in the far right nagios column. If I remove everything after the semicolon, the command runs and the output is correct but the status code isn't returned thus the service color isn't updated. Changing "echo $status" to "echo $$status" also makes no difference so nagios appears to be choking on the two commands (ie when it hits the ";") -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Thu Jan 4 21:41:36 2007 From: dschlecht at doit.nv.gov (David G Schlecht) Date: Thu, 4 Jan 2007 20:41:36 +0000 (UTC) Subject: external commands and segfault -- again Message-ID: Hi All, I'm still getting segfaults when running external commands. I don't understand why I can't get any information on this. As some have suggested, I added a cron job to restart Nagios when it's been down. This is a nice touch but totally useless as Nagios crashes when someone is sending commands and it makes no sense for them to have to wait 10-15-60 minutes for the system to restart. This has happened since v1.2. I'm currently using v2.5 and here is a core dump following a Schedule Downtime call: =========== Detaching after fork from child process 19947. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208391264 (LWP 5431)] 0x0806c951 in hashfunc2 (name1=0x2
, name2=0x80f
, hashslots=1024) at utils.c:4285 4285 for(i=0;i, name2=0x80f
, hashslots=1024) at utils.c:4285 #1 0x080768a1 in find_service (host_name=0x2
, svc_desc=dwarf2_read_address: Corrupted DWARF expression. ) at ../common/objects.c:5016 #2 0x0808ef4b in handle_scheduled_downtime (temp_downtime=0x9f21c00) at ../common/downtime.c:311 #3 0x08063454 in handle_timed_event (event=0x9fa2728) at events.c:1289 #4 0x08063a9d in event_execution_loop () at events.c:964 #5 0x0805394d in main (argc=3, argv=0xbff3f274) at nagios.c:710 (gdb) ======= Looking at the code in utils.c, I see: [4280]int hashfunc2(const char *name1,const char *name2,int hashslots){ [4281] unsigned int i,result; [4282] [4283] result=0; [4284] if(name1) [4285] for(i=0;i References: <459D6037.3050903@mailnetwork.co.uk> Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B0B@PHSXMB5.partners.org> Hi there -- That did it. I added a line to /etc/libpq.so.5 and also symbolic links in the various directories. I then ran the ldconfig command. The plugin worked fine after that. Thanks again. -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Thursday, January 04, 2007 3:15 PM To: Patrick Morris Cc: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problem with check_pgsql I think on Fedora you can edit /etc/ld.so.conf, then run ldconfig. Or make sure there is a symlink to the libpq.so.5 in /lib, /usr/lib and /usr/local/lib (just to cover all bases!) I had a similar problem on FreeBSD, and linking libpq.so.5 in /lib was the trick. Andy. Patrick Morris wrote: > Hi Kaplan,! > > On Thu, 04 Jan 2007, Kaplan, Andrew H. wrote: > > >> I am encountering and error every time I try to run the check_pgsql plugin. The >> error is the following: >> >> Error while loading shared libraries: libpq.so.5: cannot open shared object >> file. No such file or directory. >> >> What steps do I need to take to correct this? Thanks. >> > > You haven't said what you're running it on, so I can't give specifics, > but you need that directory in the library search path when the plugin > is called. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459d5e3331755596269461! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Thu Jan 4 23:22:49 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Thu, 4 Jan 2007 14:22:49 -0800 (PST) Subject: Nagios Timezone In-Reply-To: <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> Message-ID: <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> > Resend-I accidentally didn't post this reply to the list. Sorry :P > As far as I can tell, the TZ environment variable is never set. > Perhaps it would help if it was set? What would it need to be set to, > if so? You could try setting it to your local time zone. I live in California, so I would set it like this: $ TZ=PST8PDT $ export TZ $ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shipway at auckland.ac.nz Thu Jan 4 23:39:43 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 5 Jan 2007 11:39:43 +1300 Subject: Nagios and Graphs In-Reply-To: <459CE3FE.704@serv.co.za> References: <459CE3FE.704@serv.co.za> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A2689E75@UXCHANGE3.UoA.auckland.ac.nz> > I am looking for some kind of graphing software to show ping times, Somkeping is always good if you need a lot of ping time graphs. Looks very pretty, lots of detail. It means a separate web interface of course. If you're already using MRTG for other graphing, then mrtg-ping-probe can provide data to MRTG which can subsequently be displayed in many forms, including as a floating bar if you're using routers2 as the MRTG frontend (but thats outside the scope of this list). I wouldn't suggest doing it via nagios (eg with Nagiosgraph) because a ping is more than just one scalar, but that is a possibility as well. Steve -- Steve Shipway ITSS, University of Auckland (09) 3737 599 x 86487 s.shipway at auckland.ac.nz ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jan 4 23:46:13 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 4 Jan 2007 23:46:13 +0100 (CET) Subject: Problem with check_pgsql In-Reply-To: <459D6037.3050903@mailnetwork.co.uk> References: <9C63A4713C4E3342B90428CE44806A7302679B09@PHSXMB5.partners.org> <20070104195448.GV17454@pmorris.usa.hp.com> <459D6037.3050903@mailnetwork.co.uk> Message-ID: On Thu, 4 Jan 2007, Andy Shellam (Mailing Lists) wrote: > I think on Fedora you can edit /etc/ld.so.conf, then run ldconfig. > > Or make sure there is a symlink to the libpq.so.5 in /lib, /usr/lib and > /usr/local/lib (just to cover all bases!) > > I had a similar problem on FreeBSD, and linking libpq.so.5 in /lib was > the trick. I would recommend doing it the linux way if you run linux. That would be to add the directory to ld.so.conf and (re)run ldconfig. (Both of which would need root priviliges BTW!) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 5 01:05:34 2007 From: marc at ena.com (Marc Powell) Date: Thu, 4 Jan 2007 18:05:34 -0600 Subject: plugins with rsh Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of dave stern - e- > mail.pluribus.unum > Sent: Thursday, January 04, 2007 2:28 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] plugins with rsh > [much of a very badly quoted thread removed] > > These were both great suggestions. Here's where I stand now (hopefully > this can help others altho this > isn't yet resolved) > > nagios user has a csh. I can either change that or get around it by > prepending to the nagios command /usr/bin/sh > Also, rsh interprets two dollars as PID eg if I > Linux1> rsh hostname 'date; echo $$?' > Thu Jan 4 12:38:36 EST 2007 > 12344 > > Turns out, it will interpret $status correctly ie > Linux1> rsh hostname 'date; echo $status' > Thu Jan 4 12:38:36 EST 2007 > 0 > > >linux1> rsh hostname 'bogus; echo $status' > bogus; Command not found > 1 > > (Hope I got that right, manufacturing this from memory as nagios network > is airgapped to internet) > > The problem is still getting the info back to nagios. Putting the above > command into nagios's command.cfg > and setting up two such services, one on a host that will report success > and one on a host that will fail, I get > both hosts reporting "(No output!) in the far right nagios column. If I > remove everything after the semicolon, > the command runs and the output is correct but the status code isn't > returned thus the service color isn't > updated. Changing "echo $status" to "echo $$status" also makes no > difference so nagios appears to be > choking on the two commands (ie when it hits the ";") > That's correct. The status will never be set right because the status is never obtained from the text output of the command that's being run. Nagios expects the command that it runs to be a plugin that conforms to the nagios plugin API (http://nagiosplug.sf.net - Developer Guidelines). rsh isn't a plugin and doesn't return output in the format that Nagios expects; specifically rsh's exit code is not appropriate and that's the only one nagios pays attention to. rsh is running successfully so it's standard exit code is 0. That just happens to correspond with the API code for an OK status to nagios. What you'll need to do is create a wrapper shell script that calls rsh, echo's one line of output for nagios to use for display purposes and exits with an exit() code appropriate to the nagios status. This shell script would be the plugin command{} that you call. For the simplest of plugins you only need to conform to these two API requirements -- http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN34 - one line of text http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN77 - proper exit code HTH -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Jan 5 12:14:35 2007 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 5 Jan 2007 12:14:35 +0100 Subject: Why isn't Nagios notifying about a trap Message-ID: Hello again, please, excuse my x-posting to two lists simultanously but I'm about to despair. I cannot find out on my own why Nagios isn't notifying about this "trap service" that I had defined like this: # Service for testing SMS notifications define service { use generic-service service_description sms_pkg_state servicegroups mcsg_cluster host_name sms notification_options c,r,u contact_groups nagiosadmin,admin_mobile max_check_attempts 1 is_volatile 1 active_checks_enabled 0 passive_checks_enabled 1 check_freshness 0 check_period never check_command passive-check-pad } Because check_period and check_command appear to be mandatory in a service definition, but don't make any sense to me in this context, I provided only these two placeholders for this service to just satisfy nagios: define command { command_name passive-check-pad command_line $USER1$/check_dummy 3 "won't do active checks" } define timeperiod { timeperiod_name never alias Void Timeperiod Definition } When I manually fail the monitored cluster package "sms" by running a "cmhaltpkg sms" on the cluster the trap is sent via send_nsca which takes place in the customer_defined_halt_commands function (in case you happen to know HP MC/ServiceGuard) whithin the package's control script. I can verify that the send_nsca delivered external command of the state change is making it indeed into nagios'es command pipe because it appears in the nagios.log as PROCESS_SERVICE_CHECK_RESULT and looks to me to have the required semicolon delimited parameters. (in between tests I also had a cat on the nagios command fifo lingering and could verify that the PROCESS_SERVICE_CHECK_RESULT appeared instantly after the sms cluster package had gone down; not to empty the fifo that way, as said, I only did that once or twice to just verify that the external command would be caught) $ tail -9 /opt/sw/nagios/var/nagios.log [1167992561] Finished daemonizing... (New PID=95396) [1167992627] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;sms;sms_pkg_state;2;CRITICAL - MC/SG Package sms halting on samoa [1167992642] HOST ALERT: sms;DOWN;SOFT;1;123.123.123.123 is DOWN - rta: nan, lost 100% [1167992653] HOST ALERT: sms;DOWN;SOFT;2;123.123.123.123 is DOWN - rta: nan, lost 100% [1167992664] HOST ALERT: sms;DOWN;SOFT;3;123.123.123.123 is DOWN - rta: nan, lost 100% [1167992675] HOST ALERT: sms;DOWN;SOFT;4;123.123.123.123 is DOWN - rta: nan, lost 100% [1167992686] HOST ALERT: sms;DOWN;HARD;5;123.123.123.123 is DOWN - rta: nan, lost 100% [1167992686] SERVICE ALERT: sms;sms_pkg_state;CRITICAL;HARD;1;CRITICAL - MC/SG Package sms halting on samoa [1167992946] SERVICE ALERT: sms;icmp-host-alive;CRITICAL;HARD;1;CRITICAL - 123.123.123.123: rta nan, lost 100% But why isn't the notification happening? I have no clue. The imported service template looks like this: define service { name generic-service is_volatile 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 0 check_freshness 0 event_handler notify-by-email event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 notification_interval 30 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups nagiosadmin register 0 } My contacts template which is used by contacts in the to be notified contactgroups nagiosadmin and admin_mobile per default enables all notificatios. define contact { name generic-contact register 0 contact_name grothe_ralph alias Must be overridden contactgroups unix_admins host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f service_notification_options w,u,c,r,f host_notification_commands host-notify-by-email service_notification_commands notify-by-email email nagios } Thank you for your patience Ralph ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 5 13:06:01 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 5 Jan 2007 14:06:01 +0200 Subject: DNS - Checkking Message-ID: Hi all Why does it look like that nagios does not have a check_dns command? I need to beable to check DNS aswell. Regards ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 5 13:09:22 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 05 Jan 2007 12:09:22 +0000 Subject: DNS - Checkking In-Reply-To: References: Message-ID: <459E3FF2.1010200@googlemail.com> perhaps you should look in your plugins dir for check_dns. I assume you have read the docs and have installed the standard plugins that go with nagios? -h Hari Sekhon edalB wrote: > Hi all > > Why does it look like that nagios does not have a check_dns command? > > I need to beable to check DNS aswell. > > Regards > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Fri Jan 5 13:11:30 2007 From: az at whoever.org (Az) Date: Fri, 05 Jan 2007 22:11:30 +1000 Subject: DNS - Checkking In-Reply-To: References: Message-ID: <459E4072.8060009@whoever.org> edalB wrote: > Why does it look like that nagios does not have a check_dns command? > > I need to beable to check DNS aswell. The nagios-plugins bundle from SF has... check_dns (nagios-plugins 1.4.5) 1.54 Copyright (c) 1999 Ethan Galstad Copyright (c) 2000-2006 Nagios Plugin Development Team This plugin uses the nslookup program to obtain the IP address for the given host/domain query. An optional DNS server to use may be specified. If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used. ...and... check_dig (nagios-plugins 1.4.5) 1.45 Copyright (c) 2000 Karl DeBisschop Copyright (c) 2002-2006 Nagios Plugin Development Team This plugin test the DNS service on the specified host using dig ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 5 14:54:56 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 5 Jan 2007 15:54:56 +0200 Subject: DNS - Checkking In-Reply-To: <459E4072.8060009@whoever.org> References: <459E4072.8060009@whoever.org> Message-ID: Ok now that I got hold of the check_dns plugin now in my log files I get the error Jan 5 15:54:17 nagios-0 nagios: Warning: Return code of 126 for check of service 'DNS' on host 'dns-0.rba.ispafrica.net' was out of bounds. Make sure the plugin you're trying to run actually exists. Jan 5 15:54:17 nagios-0 nagios: SERVICE ALERT: dns-0.rba.ispafrica.net;DNS;CRITICAL;SOFT;1;(Return code of 126 is out of bounds - plugin may be missing) Thanks sofar On 1/5/07, Az wrote: > edalB wrote: > > Why does it look like that nagios does not have a check_dns command? > > > > I need to beable to check DNS aswell. > The nagios-plugins bundle from SF has... > > check_dns (nagios-plugins 1.4.5) 1.54 > Copyright (c) 1999 Ethan Galstad > Copyright (c) 2000-2006 Nagios Plugin Development Team > > > This plugin uses the nslookup program to obtain the IP address for the > given host/domain query. > An optional DNS server to use may be specified. > If no DNS server is specified, the default server(s) specified in > /etc/resolv.conf will be used. > > ...and... > > check_dig (nagios-plugins 1.4.5) 1.45 > Copyright (c) 2000 Karl DeBisschop > Copyright (c) 2002-2006 Nagios Plugin Development Team > > > This plugin test the DNS service on the specified host using dig > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 5 15:41:42 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 5 Jan 2007 16:41:42 +0200 Subject: DNS - Checkking In-Reply-To: References: <459E4072.8060009@whoever.org> Message-ID: Ok dont worry I went and installed a newer version of the plugins witch I had and it is working 100% now. Regards On 1/5/07, edalB wrote: > Ok now that I got hold of the check_dns plugin now in my log files I > get the error > > Jan 5 15:54:17 nagios-0 nagios: Warning: Return code of 126 for check > of service 'DNS' on host 'dns-0.rba.ispafrica.net' was out of bounds. > Make sure the plugin you're trying to run actually exists. > Jan 5 15:54:17 nagios-0 nagios: SERVICE ALERT: > dns-0.rba.ispafrica.net;DNS;CRITICAL;SOFT;1;(Return code of 126 is out > of bounds - plugin may be missing) > > Thanks sofar > > On 1/5/07, Az wrote: > > edalB wrote: > > > Why does it look like that nagios does not have a check_dns command? > > > > > > I need to beable to check DNS aswell. > > The nagios-plugins bundle from SF has... > > > > check_dns (nagios-plugins 1.4.5) 1.54 > > Copyright (c) 1999 Ethan Galstad > > Copyright (c) 2000-2006 Nagios Plugin Development Team > > > > > > This plugin uses the nslookup program to obtain the IP address for the > > given host/domain query. > > An optional DNS server to use may be specified. > > If no DNS server is specified, the default server(s) specified in > > /etc/resolv.conf will be used. > > > > ...and... > > > > check_dig (nagios-plugins 1.4.5) 1.45 > > Copyright (c) 2000 Karl DeBisschop > > Copyright (c) 2002-2006 Nagios Plugin Development Team > > > > > > This plugin test the DNS service on the specified host using dig > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From h.januschka at krone.at Fri Jan 5 16:08:21 2007 From: h.januschka at krone.at (Helmut W. Januschka) Date: Fri, 5 Jan 2007 16:08:21 +0100 Subject: external commands and segfault -- again Message-ID: <481EAEA6BAED9A4EAF26BA149197AA3E01A782C7@office1.online.krone.at> You may move the strlen() to a sperate variable And after that reproduce the gbd session and use "info locales" to see What are the actual values of the variables and maybe just the strlen fails Also try "print name1" and "print name1[i]" and look if there are some unterminated strings And backtrace to where the call to the hashfunc2 occurs and have a look at the value wich originally gots sended in Maybe its just a old version or a bad implemantion of the tool submitting the external command (sure nagios should do a segfault at all ;)) Regards helmut -----Urspr?ngliche Nachricht----- Von: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Im Auftrag von David G Schlecht Gesendet: Donnerstag, 04. J?nner 2007 21:42 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] external commands and segfault -- again Hi All, I'm still getting segfaults when running external commands. I don't understand why I can't get any information on this. As some have suggested, I added a cron job to restart Nagios when it's been down. This is a nice touch but totally useless as Nagios crashes when someone is sending commands and it makes no sense for them to have to wait 10-15-60 minutes for the system to restart. This has happened since v1.2. I'm currently using v2.5 and here is a core dump following a Schedule Downtime call: =========== Detaching after fork from child process 19947. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208391264 (LWP 5431)] 0x0806c951 in hashfunc2 (name1=0x2
, name2=0x80f
, hashslots=1024) at utils.c:4285 4285 for(i=0;i, name2=0x80f
, hashslots=1024) at utils.c:4285 #1 0x080768a1 in find_service (host_name=0x2
, svc_desc=dwarf2_read_address: Corrupted DWARF expression. ) at ../common/objects.c:5016 #2 0x0808ef4b in handle_scheduled_downtime (temp_downtime=0x9f21c00) at ../common/downtime.c:311 #3 0x08063454 in handle_timed_event (event=0x9fa2728) at events.c:1289 #4 0x08063a9d in event_execution_loop () at events.c:964 #5 0x0805394d in main (argc=3, argv=0xbff3f274) at nagios.c:710 (gdb) ======= Looking at the code in utils.c, I see: [4280]int hashfunc2(const char *name1,const char *name2,int hashslots){ [4281] unsigned int i,result; [4282] [4283] result=0; [4284] if(name1) [4285] for(i=0;i References: <459E4072.8060009@whoever.org> Message-ID: <459E9527.5010800@googlemail.com> go read the nagios docs, all of them before trying to run nagios. it is a lot of work and you'll never get it right until you've read the whole thing at least twice. your path to your plugin is probably wrong, this is a resource you define. You should be able to easily see what is wrong when you read the doc. -h Hari Sekhon edalB wrote: > Ok now that I got hold of the check_dns plugin now in my log files I > get the error > > Jan 5 15:54:17 nagios-0 nagios: Warning: Return code of 126 for check > of service 'DNS' on host 'dns-0.rba.ispafrica.net' was out of bounds. > Make sure the plugin you're trying to run actually exists. > Jan 5 15:54:17 nagios-0 nagios: SERVICE ALERT: > dns-0.rba.ispafrica.net;DNS;CRITICAL;SOFT;1;(Return code of 126 is out > of bounds - plugin may be missing) > > Thanks sofar > > On 1/5/07, Az wrote: > >> edalB wrote: >> >>> Why does it look like that nagios does not have a check_dns command? >>> >>> I need to beable to check DNS aswell. >>> >> The nagios-plugins bundle from SF has... >> >> check_dns (nagios-plugins 1.4.5) 1.54 >> Copyright (c) 1999 Ethan Galstad >> Copyright (c) 2000-2006 Nagios Plugin Development Team >> >> >> This plugin uses the nslookup program to obtain the IP address for the >> given host/domain query. >> An optional DNS server to use may be specified. >> If no DNS server is specified, the default server(s) specified in >> /etc/resolv.conf will be used. >> >> ...and... >> >> check_dig (nagios-plugins 1.4.5) 1.45 >> Copyright (c) 2000 Karl DeBisschop >> Copyright (c) 2002-2006 Nagios Plugin Development Team >> >> >> This plugin test the DNS service on the specified host using dig >> >> >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Fri Jan 5 20:38:31 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Fri, 5 Jan 2007 14:38:31 -0500 Subject: way to pass additional info from check to environment? Message-ID: <7F477BD26F545A4C8E4779754A38EFB3496B92@PEPWMV00043.corp.pep.pvt> I have a somewhat unusual situation. I have a lot of unique service checks in my Nagios config (2.6). When a check fails, I need to have it notify contacts, but also run a program. I have done this by creating a command that a contact runs (something other than the nromal "send some mail" commands). What I was hoping to do was to somehow pass information to the program that run about that service. I see that I can pull a lot of the fields out via the nagios-provided shell environment, but nothing really strikes me as an ideal solution. One can think of this as categorizing the services into various types such as production, development, priority level, application type, etc. Possibilities I've seen are: 1) Attach some parsable string to each service description. So a service description might go from being "HTTP_FOO" to "HTTP_FOO [P7WL]" which I could parse from the $NAGIOS_SERVICEDESC variable. This isn't too good for us as I didn't want to add what appeared to be garbage to a servicename. Also, I have a number of these services tied into nagios_graph which I thought used that service description for the RRD database (I could be wrong there). 2) I could create some servicegroup names that described the type/priority/environment that the checks runs in. I had thought I could parse that out of $NAGIOS_SERVICEGROUP in my program. However, from the documentation (and from my tests) if you have a check in multiple groups, it will only put one of them into $NAGIOS_SERVICEGROUP. >From my tests, you can't even predict which one of the servicegroups will be put into $NAGIOS_SERVICEGROUP which makes it seems somewhat useless. 3) I can just invoke my program with a variety of command line arguments (i.e. multiple commands) that represent all the permutations of service checks that I need to represent. Then based on that, I add the type of contactgroup, which maps to a single contact which maps to a specific invocation of my program for that particular type of service check. I really hate this option as it makes for somewhat complex configuration, but I can't see that there's any other nicer way. It would be great if I could have some kind of user definable field as part of the service definition, but it doesn't look like Nagios supports that. Has anyone else come up against this type of problem and lived to tell the tale? :-) thanks Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 5 20:49:40 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 5 Jan 2007 11:49:40 -0800 Subject: way to pass additional info from check to environment? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB3496B92@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB3496B92@PEPWMV00043.corp.pep.pvt> Message-ID: <20070105194940.GB17454@pmorris.usa.hp.com> On Fri, 05 Jan 2007, Frost, Mark {PBG} wrote: > > I have a somewhat unusual situation. I have a lot of unique service > checks in my Nagios config (2.6). When a check fails, I need to have it > notify contacts, but also run a program. I have done this by creating a > command that a contact runs (something other than the nromal "send some > mail" commands). It sounds like you're trying to do the sort of thing eventhandlers were designed for. Is there a reason they won't work in your case? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 5 20:39:41 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 5 Jan 2007 14:39:41 -0500 Subject: Monitoring NIS Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B1C@PHSXMB5.partners.org> Hi there - Has anyone developed a plugin or has used an existing plugin to monitor the status of an NIS master and/or NIS slave server? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 5 21:02:36 2007 From: israel at frontierflying.com (Israel Brewster) Date: Fri, 5 Jan 2007 11:02:36 -0900 Subject: Nagios Timezone In-Reply-To: <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> Message-ID: <4A580AB1-9B47-4E02-BF26-FB9D0471CE45@frontierflying.com> So how do I determine what the proper setting for my timezone is? I tried setting TZ="America/Anchorage" but this didn't have any effect. Thanks! ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- On Jan 4, 2007, at 1:22 PM, Robert Hajime Lanning wrote: > > >> Resend-I accidentally didn't post this reply to the list. Sorry :P >> As far as I can tell, the TZ environment variable is never set. >> Perhaps it would help if it was set? What would it need to be set to, >> if so? > > You could try setting it to your local time zone. > > I live in California, so I would set it like this: > > $ TZ=PST8PDT > $ export TZ > $ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg > > -- > And, did Galoka think the Ulus were too ugly to save? > -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Fri Jan 5 21:24:39 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Fri, 5 Jan 2007 15:24:39 -0500 Subject: way to pass additional info from check to environment? In-Reply-To: <20070105194940.GB17454@pmorris.usa.hp.com> References: <20070105194940.GB17454@pmorris.usa.hp.com> Message-ID: <7F477BD26F545A4C8E4779754A38EFB3496C9D@PEPWMV00043.corp.pep.pvt> Part of the plan was to eventually incorporate escalations into the calls to the program as well. Ultimately this is about generating tickets into a ticketing system. So for an escalation, we can open a ticket a certain level, but then escalate that type of ticket during a subsequent call of the program some time later. But, it's not inconceivable that I might have to go back to the event route. thanks Mark -----Original Message----- From: Patrick Morris [mailto:patrick.morris at hp.com] Sent: Friday, January 05, 2007 2:50 PM To: Frost, Mark {PBG} Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] way to pass additional info from check to environment? On Fri, 05 Jan 2007, Frost, Mark {PBG} wrote: > > I have a somewhat unusual situation. I have a lot of unique service > checks in my Nagios config (2.6). When a check fails, I need to have it > notify contacts, but also run a program. I have done this by creating a > command that a contact runs (something other than the nromal "send some > mail" commands). It sounds like you're trying to do the sort of thing eventhandlers were designed for. Is there a reason they won't work in your case? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 5 22:27:29 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 5 Jan 2007 16:27:29 -0500 Subject: System appears as down, but services are being monitored Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> Hi there - I am monitoring a Windows XP system that has the NSClient version 1.06 software on it. The Nagios server is running version 2.6 on a Fedora Core 5 system. The remote workstation shows up as being down, but the services that I am monitoring on the workstation, diskspace and McAfee AntiVirus are sending back information to the server. What would cause this to occur, and how do I correct it? THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Fri Jan 5 22:59:15 2007 From: nagios at d.sparks.net (David Miller) Date: Fri, 05 Jan 2007 16:59:15 -0500 Subject: parent/child setup not working Message-ID: <459ECA33.1040805@d.sparks.net> Hi; I'm not sure what I'm doing wrong. Running nagios 2.5 on debian-stable. I have the nagios server in one data center monitoring 30ish servers in another data center. In the hosts.cfg file I have a gateway (firewall) defined: define host { use generic-host ; Name of host template to use host_name pix alias PIX address x.y.z.2 check_command check-host-alive max_check_attempts 1 notification_interval 1 notification_period 24x7 notification_options d,u,r } I then use that as a parent to all the hosts I want to monitor in the remote data center. Those have host entries like this; define host { use generic-host ; Name of host template to use host_name logweb1 alias Logweb1 address logweb1.foo.com parents pix max_check_attempts 1 active_checks_enabled 0 notification_interval 1 notification_period 24x7 notification_options d,r } As I read the documentation, when nagios detects that host "pix" is down that it won't check or report on host logweb1. If the network connection is broken, however, by deleting the default route, I get three messages that the pix is down that look like this: Subject:** PROBLEM alert 1 - PIX host is DOWN ** ***** Nagios ***** Notification Type: PROBLEM Host: PIX State: DOWN for 0d 0h 0m 0s Address: 66.151.232.2 Info: CRITICAL - Network unreachable (x.y.z.2) Date/Time: Fri Jan 5 16:17:48 EST 2007 ACK by: Comment: And a few minutes later I get notice on the child server: Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is CRITICAL ** ***** Nagios ***** Notification Type: PROBLEM Service: Check Simple Webservers Host: Logweb1 State: CRITICAL for 0d 0h 8m 6s Address: logweb1.foo.com Info: Network is unreachable Date/Time: Fri Jan 5 16:29:28 EST 2007 ACK by: Comment: What am I doing wrong? Thanks in advance, --- David ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 5 23:27:36 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 5 Jan 2007 14:27:36 -0800 Subject: parent/child setup not working In-Reply-To: <459ECA33.1040805@d.sparks.net> References: <459ECA33.1040805@d.sparks.net> Message-ID: <20070105222736.GH17454@pmorris.usa.hp.com> On Fri, 05 Jan 2007, David Miller wrote: > Hi; > > I'm not sure what I'm doing wrong. > > Running nagios 2.5 on debian-stable. I have the nagios server in one > data center monitoring 30ish servers in another data center. > > In the hosts.cfg file I have a gateway (firewall) defined: > > define host { > use generic-host ; Name of host template > to use > host_name pix > alias PIX > address x.y.z.2 > check_command check-host-alive > max_check_attempts 1 > notification_interval 1 > notification_period 24x7 > notification_options d,u,r > } > > > I then use that as a parent to all the hosts I want to monitor in the > remote data center. Those have host entries like this; > > > define host { > use generic-host ; Name of host template > to use > host_name logweb1 > alias Logweb1 > address logweb1.foo.com > parents pix > max_check_attempts 1 > active_checks_enabled 0 > notification_interval 1 > notification_period 24x7 > notification_options d,r > } > > As I read the documentation, when nagios detects that host "pix" is down > that it won't check or report on host logweb1. > > If the network connection is broken, however, by deleting the default > route, I get three messages that the pix is down that look like this: [snip] That config looks OK, unless I'm missig something. My guess would be that either the config hasn't been reloaded, or you've got a couple copies of Nagios running, and one is still using the old config. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 5 23:21:48 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 05 Jan 2007 22:21:48 +0000 Subject: parent/child setup not working In-Reply-To: <459ECA33.1040805@d.sparks.net> References: <459ECA33.1040805@d.sparks.net> Message-ID: <459ECF7C.2060702@mailnetwork.co.uk> Hi David, I'm not clued up on parent/child relationships between hosts, however one thing I believe might be happening is that the example of the alert you've sent for the service - it might be a "reminder" notification that the service is still down. (Perhaps as a result of escalation settings?) I think this is because it has a delay in the state variable - ie. "CRITICAL for xxxxx" as opposed to just "CRITICAL." What's the definition for that service? Andy. David Miller wrote: > Hi; > > I'm not sure what I'm doing wrong. > > Running nagios 2.5 on debian-stable. I have the nagios server in one > data center monitoring 30ish servers in another data center. > > In the hosts.cfg file I have a gateway (firewall) defined: > > define host { > use generic-host ; Name of host template > to use > host_name pix > alias PIX > address x.y.z.2 > check_command check-host-alive > max_check_attempts 1 > notification_interval 1 > notification_period 24x7 > notification_options d,u,r > } > > > I then use that as a parent to all the hosts I want to monitor in the > remote data center. Those have host entries like this; > > > define host { > use generic-host ; Name of host template > to use > host_name logweb1 > alias Logweb1 > address logweb1.foo.com > parents pix > max_check_attempts 1 > active_checks_enabled 0 > notification_interval 1 > notification_period 24x7 > notification_options d,r > } > > As I read the documentation, when nagios detects that host "pix" is down > that it won't check or report on host logweb1. > > If the network connection is broken, however, by deleting the default > route, I get three messages that the pix is down that look like this: > > Subject:** PROBLEM alert 1 - PIX host is DOWN ** > > ***** Nagios ***** > > Notification Type: PROBLEM > Host: PIX > State: DOWN for 0d 0h 0m 0s > Address: 66.151.232.2 > Info: > > CRITICAL - Network unreachable (x.y.z.2) > > Date/Time: Fri Jan 5 16:17:48 EST 2007 > > ACK by: > Comment: > > > And a few minutes later I get notice on the child server: > > Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is CRITICAL ** > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Check Simple Webservers > Host: Logweb1 > State: CRITICAL for 0d 0h 8m 6s > Address: logweb1.foo.com > > Info: > > Network is unreachable > > Date/Time: Fri Jan 5 16:29:28 EST 2007 > > ACK by: > Comment: > > > What am I doing wrong? > > Thanks in advance, > > --- David > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459eca57137109261913545! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 5 23:23:27 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 05 Jan 2007 22:23:27 +0000 Subject: System appears as down, but services are being monitored In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> Message-ID: <459ECFDF.9040104@mailnetwork.co.uk> Perhaps the definition for the check_host command for your host is wrong or not succeeding, but your service commands are? Kaplan, Andrew H. wrote: > > Hi there ? > > I am monitoring a Windows XP system that has the NSClient version 1.06 > software on it. The Nagios server is running version 2.6 > > on a Fedora Core 5 system. The remote workstation shows up as being > down, but the services that I am monitoring on the > > workstation, diskspace and McAfee AntiVirus are sending back > information to the server. > > What would cause this to occur, and how do I correct it? > > THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS > INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY > CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, > RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION > IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN > THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION > IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND > PROPERLY DISPOSE OF THIS INFORMATION. !DSPAM:37,459ec30d137107056713303! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,459ec30d137107056713303! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459ec30d137107056713303! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 5 23:27:41 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 05 Jan 2007 22:27:41 +0000 Subject: System appears as down, but services are being monitored In-Reply-To: <459ECFDF.9040104@mailnetwork.co.uk> References: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> <459ECFDF.9040104@mailnetwork.co.uk> Message-ID: <459ED0DD.7040900@mailnetwork.co.uk> Andy Shellam (Mailing Lists) wrote: > Perhaps the definition for the check_host command for your host is wrong > or not succeeding, but your service commands are? > Sorry, that should be "check_command" for your host. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 5 23:32:37 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Fri, 5 Jan 2007 23:32:37 +0100 (CET) Subject: Nagios Timezone In-Reply-To: <4A580AB1-9B47-4E02-BF26-FB9D0471CE45@frontierflying.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> <4A580AB1-9B47-4E02-BF26-FB9D0471CE45@frontierflying.com> Message-ID: On Fri, 5 Jan 2007, Israel Brewster wrote: > So how do I determine what the proper setting for my timezone is? I > tried setting TZ="America/Anchorage" but this didn't have any effect. That is NOT a valid TZ variable. If you take a minute you can use your favorite search engine and actually find the documentation on the TZ variable. Like: http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddunham at taos.com Sat Jan 6 00:25:40 2007 From: ddunham at taos.com (Darren Dunham) Date: Fri, 5 Jan 2007 15:25:40 -0800 (PST) Subject: Nagios Timezone In-Reply-To: from "Hugo van der Kooij" at Jan 05, 2007 11:32:37 PM References: Message-ID: <200701052325.PAA11993@redwood.taos.com> > > So how do I determine what the proper setting for my timezone is? I > > tried setting TZ="America/Anchorage" but this didn't have any effect. > > That is NOT a valid TZ variable. If you take a minute you can use your > favorite search engine and actually find the documentation on the TZ > variable. > > Like: http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html Do you mean that he's leaving the leading ':' off or something else? I've never seen that cause a problem... # TZ=America/Anchorage date Fri Jan 5 14:21:33 AKST 2007 # TZ=:America/Anchorage date Fri Jan 5 14:21:35 AKST 2007 -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Sat Jan 6 00:27:33 2007 From: nagios at d.sparks.net (David Miller) Date: Fri, 05 Jan 2007 18:27:33 -0500 Subject: parent/child setup not working In-Reply-To: <20070105222736.GH17454@pmorris.usa.hp.com> References: <459ECA33.1040805@d.sparks.net> <20070105222736.GH17454@pmorris.usa.hp.com> Message-ID: <459EDEE5.1030408@d.sparks.net> Patrick Morris wrote: > [snip] > > That config looks OK, unless I'm missig something. > > My guess would be that either the config hasn't been reloaded, or you've > got a couple copies of Nagios running, and one is still using the old > config. > I wish is was that simple:) This happens after all nagios processes are dead and all the status and cache files have been removed;( It's good to know that it looks good, at least I'm on the right track;) Thanks, --- David ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Sat Jan 6 00:32:59 2007 From: nagios at d.sparks.net (David Miller) Date: Fri, 05 Jan 2007 18:32:59 -0500 Subject: parent/child setup not working In-Reply-To: <459ECF7C.2060702@mailnetwork.co.uk> References: <459ECA33.1040805@d.sparks.net> <459ECF7C.2060702@mailnetwork.co.uk> Message-ID: <459EE02B.6060404@d.sparks.net> Andy Shellam (Mailing Lists) wrote: Arghh! Sorry for the previous, content free reply. The service entry is; define service{ use generic-service ; Name of service template to use hostgroup_name webservers service_description Check Simple Webservers is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 2 contact_groups ops notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } But the point is, unless I'm missing something, that the service should not be checked at all if the parent is down. Thanks! --- David > Hi David, > > I'm not clued up on parent/child relationships between hosts, however > one thing I believe might be happening is that the example of the > alert you've sent for the service - it might be a "reminder" > notification that the service is still down. (Perhaps as a result of > escalation settings?) > > I think this is because it has a delay in the state variable - ie. > "CRITICAL for xxxxx" as opposed to just "CRITICAL." > > What's the definition for that service? > > Andy. > > > David Miller wrote: >> Hi; >> >> I'm not sure what I'm doing wrong. >> >> Running nagios 2.5 on debian-stable. I have the nagios server in one >> data center monitoring 30ish servers in another data center. >> >> In the hosts.cfg file I have a gateway (firewall) defined: >> >> define host { >> use generic-host ; Name of host >> template to use >> host_name pix >> alias PIX >> address x.y.z.2 >> check_command check-host-alive >> max_check_attempts 1 >> notification_interval 1 >> notification_period 24x7 >> notification_options d,u,r >> } >> >> >> I then use that as a parent to all the hosts I want to monitor in the >> remote data center. Those have host entries like this; >> >> >> define host { >> use generic-host ; Name of host >> template to use >> host_name logweb1 >> alias Logweb1 >> address logweb1.foo.com >> parents pix >> max_check_attempts 1 >> active_checks_enabled 0 >> notification_interval 1 >> notification_period 24x7 >> notification_options d,r >> } >> >> As I read the documentation, when nagios detects that host "pix" is >> down that it won't check or report on host logweb1. >> >> If the network connection is broken, however, by deleting the default >> route, I get three messages that the pix is down that look like this: >> >> Subject:** PROBLEM alert 1 - PIX host is DOWN ** >> >> ***** Nagios ***** >> >> Notification Type: PROBLEM >> Host: PIX >> State: DOWN for 0d 0h 0m 0s >> Address: 66.151.232.2 >> Info: >> >> CRITICAL - Network unreachable (x.y.z.2) >> >> Date/Time: Fri Jan 5 16:17:48 EST 2007 >> >> ACK by: Comment: >> >> And a few minutes later I get notice on the child server: >> >> Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is >> CRITICAL ** >> >> ***** Nagios ***** >> >> Notification Type: PROBLEM >> >> Service: Check Simple Webservers >> Host: Logweb1 >> State: CRITICAL for 0d 0h 8m 6s >> Address: logweb1.foo.com >> >> Info: >> >> Network is unreachable >> >> Date/Time: Fri Jan 5 16:29:28 EST 2007 >> >> ACK by: Comment: >> >> What am I doing wrong? >> >> Thanks in advance, >> >> --- David >> >> >> >> ------------------------------------------------------------------------- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> !DSPAM:37,459eca57137109261913545! >> >> >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 6 00:38:11 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 05 Jan 2007 23:38:11 +0000 Subject: parent/child setup not working In-Reply-To: <459EE02B.6060404@d.sparks.net> References: <459ECA33.1040805@d.sparks.net> <459ECF7C.2060702@mailnetwork.co.uk> <459EE02B.6060404@d.sparks.net> Message-ID: <459EE163.6040603@mailnetwork.co.uk> If I understand it right, your host checks should not be scheduled - but your service checks are. So, every time a service requires checking and Nagios finds the service is down, it checks the host to see if the host is down. If it is, then it suppresses notifications for the service and instead goes into the host's notification handling. However I'm not sure if this is the case for escalated service notifications. You have a notification_interval set - try commenting this out (or setting to 0) and see if you then get the same thing happening. Andy. David Miller wrote: > Andy Shellam (Mailing Lists) wrote: > > Arghh! Sorry for the previous, content free reply. > > The service entry is; > > define service{ > use generic-service ; Name > of service template to use > hostgroup_name webservers > service_description Check Simple Webservers > is_volatile 0 > check_period 24x7 > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 2 > contact_groups ops > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_http > } > > But the point is, unless I'm missing something, that the service > should not be checked at all if the parent is down. > > Thanks! > > --- David > >> Hi David, >> >> I'm not clued up on parent/child relationships between hosts, however >> one thing I believe might be happening is that the example of the >> alert you've sent for the service - it might be a "reminder" >> notification that the service is still down. (Perhaps as a result of >> escalation settings?) >> >> I think this is because it has a delay in the state variable - ie. >> "CRITICAL for xxxxx" as opposed to just "CRITICAL." >> >> What's the definition for that service? >> >> Andy. >> >> >> David Miller wrote: >>> Hi; >>> >>> I'm not sure what I'm doing wrong. >>> >>> Running nagios 2.5 on debian-stable. I have the nagios server in >>> one data center monitoring 30ish servers in another data center. >>> >>> In the hosts.cfg file I have a gateway (firewall) defined: >>> >>> define host { >>> use generic-host ; Name of host >>> template to use >>> host_name pix >>> alias PIX >>> address x.y.z.2 >>> check_command check-host-alive >>> max_check_attempts 1 >>> notification_interval 1 >>> notification_period 24x7 >>> notification_options d,u,r >>> } >>> >>> >>> I then use that as a parent to all the hosts I want to monitor in >>> the remote data center. Those have host entries like this; >>> >>> >>> define host { >>> use generic-host ; Name of host >>> template to use >>> host_name logweb1 >>> alias Logweb1 >>> address logweb1.foo.com >>> parents pix >>> max_check_attempts 1 >>> active_checks_enabled 0 >>> notification_interval 1 >>> notification_period 24x7 >>> notification_options d,r >>> } >>> >>> As I read the documentation, when nagios detects that host "pix" is >>> down that it won't check or report on host logweb1. >>> >>> If the network connection is broken, however, by deleting the >>> default route, I get three messages that the pix is down that look >>> like this: >>> >>> Subject:** PROBLEM alert 1 - PIX host is DOWN ** >>> >>> ***** Nagios ***** >>> >>> Notification Type: PROBLEM >>> Host: PIX >>> State: DOWN for 0d 0h 0m 0s >>> Address: 66.151.232.2 >>> Info: >>> >>> CRITICAL - Network unreachable (x.y.z.2) >>> >>> Date/Time: Fri Jan 5 16:17:48 EST 2007 >>> >>> ACK by: Comment: >>> >>> And a few minutes later I get notice on the child server: >>> >>> Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is >>> CRITICAL ** >>> >>> ***** Nagios ***** >>> >>> Notification Type: PROBLEM >>> >>> Service: Check Simple Webservers >>> Host: Logweb1 >>> State: CRITICAL for 0d 0h 8m 6s >>> Address: logweb1.foo.com >>> >>> Info: >>> >>> Network is unreachable >>> >>> Date/Time: Fri Jan 5 16:29:28 EST 2007 >>> >>> ACK by: Comment: >>> >>> What am I doing wrong? >>> >>> Thanks in advance, >>> >>> --- David >>> >>> >>> >>> ------------------------------------------------------------------------- >>> >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> share your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. ::: Messages without supporting info will risk >>> being sent to /dev/null >>> >>> >>> >>> >>> >> >> > > > !DSPAM:37,459ee03d137101012410913! > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sat Jan 6 00:48:03 2007 From: wnorth at verizon.net (wnorth at verizon.net) Date: Fri, 05 Jan 2007 17:48:03 -0600 (CST) Subject: Service Alerts and Notifications Message-ID: <33030337.3799481168040884108.JavaMail.root@vms073.mailsrvcs.net> I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused But I do not recieve an email. The following service is defined: define service{ host_name ebro service_description Website App Server MS2 check_command check_http_fitness_app max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 contact_groups jboss-admins notification_interval 30 notification_period 24x7 notification_options w,u,c,r,f } The following contact is setup for the jboss-admins groups: define contactgroup{ contactgroup_name jboss-admins alias JBoss Administrators members wnorth } The following contact is setup for wnorth: define contact{ contact_name wnorth alias Wes North service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r,f host_notification_options d,u,r,f service_notification_commands notify-by-email host_notification_commands host-notify-by-email email wnorth at verizon.net } If I bring a host offline I see the following alert in the nagios.log: [1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8) [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated. -Wes ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Sat Jan 6 00:56:13 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Fri, 05 Jan 2007 17:56:13 -0600 Subject: Service Alerts and Notifications In-Reply-To: <33030337.3799481168040884108.JavaMail.root@vms073.mailsrvcs.net> References: <33030337.3799481168040884108.JavaMail.root@vms073.mailsrvcs.net> Message-ID: <459EE59D.8090405@epsiia.com> Hi, This is kind of stupid/obvious, but a) I don't see a HARD service alert in your log snip for the service. Did it actually get to that state? Your retry interval is 3 min, so it would take you 15 min or so to get an alert. b) If it did get to HARD, what was the cmd it tried to run & is that a valid cmd? c) Did you kill all the old processes and restart Nagios w/ the new config? I don't see anything obvious in your cfgs that wouldn't be working. - Josh wnorth at verizon.net wrote: > I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: > > [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 > [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused > [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused > [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused > > But I do not recieve an email. The following service is defined: > > define service{ > host_name ebro > service_description Website App Server MS2 > check_command check_http_fitness_app > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > contact_groups jboss-admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r,f > } > > The following contact is setup for the jboss-admins groups: > > define contactgroup{ > contactgroup_name jboss-admins > alias JBoss Administrators > members wnorth > } > > The following contact is setup for wnorth: > define contact{ > contact_name wnorth > alias Wes North > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r,f > host_notification_options d,u,r,f > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email wnorth at verizon.net > } > > If I bring a host offline I see the following alert in the nagios.log: > > [1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8) > [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms > [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms > > But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated. > > -Wes > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Sat Jan 6 00:58:56 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Fri, 05 Jan 2007 17:58:56 -0600 Subject: Service Alerts and Notifications In-Reply-To: <459EE59D.8090405@epsiia.com> References: <33030337.3799481168040884108.JavaMail.root@vms073.mailsrvcs.net> <459EE59D.8090405@epsiia.com> Message-ID: <459EE640.5020201@epsiia.com> for clarification: By "is that a valid cmd", I mean is the service_notification_command valid? - Josh josh.yost at epsiia.com wrote: > Hi, > This is kind of stupid/obvious, but > > a) I don't see a HARD service alert in your log snip for the service. > Did it actually get to that state? Your retry interval is 3 min, so it > would take you 15 min or so to get an alert. > > b) If it did get to HARD, what was the cmd it tried to run & is that a > valid cmd? > > c) Did you kill all the old processes and restart Nagios w/ the new config? > > I don't see anything obvious in your cfgs that wouldn't be working. > > - Josh > > > wnorth at verizon.net wrote: >> I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: >> >> [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 >> [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused >> [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused >> [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused >> >> But I do not recieve an email. The following service is defined: >> >> define service{ >> host_name ebro >> service_description Website App Server MS2 >> check_command check_http_fitness_app >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 3 >> check_period 24x7 >> contact_groups jboss-admins >> notification_interval 30 >> notification_period 24x7 >> notification_options w,u,c,r,f >> } >> >> The following contact is setup for the jboss-admins groups: >> >> define contactgroup{ >> contactgroup_name jboss-admins >> alias JBoss Administrators >> members wnorth >> } >> >> The following contact is setup for wnorth: >> define contact{ >> contact_name wnorth >> alias Wes North >> service_notification_period 24x7 >> host_notification_period 24x7 >> service_notification_options w,u,c,r,f >> host_notification_options d,u,r,f >> service_notification_commands notify-by-email >> host_notification_commands host-notify-by-email >> email wnorth at verizon.net >> } >> >> If I bring a host offline I see the following alert in the nagios.log: >> >> [1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8) >> [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms >> [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms >> >> But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated. >> >> -Wes >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sat Jan 6 01:19:23 2007 From: wnorth at verizon.net (wnorth) Date: Fri, 05 Jan 2007 16:19:23 -0800 Subject: Service Alerts and Notifications In-Reply-To: <459EE59D.8090405@epsiia.com> References: <459EE59D.8090405@epsiia.com> Message-ID: <0JBF00DUH7L5LXVB@vms046.mailsrvcs.net> That is actually interesting, when the host goes down I see a HARD service alert as follows: HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) But for the check_http I only see the following: SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused Once I changed the retry interval to 1 and the max attempts to 1 I saw the email, so I just wasn't waiting long enough...makes sense. In theory I would want it to try 3 times in a row, if it fails send an email, then wait 5 minutes and retry again. For that to work I tried the following: max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 This should force it to try 3 times before setting a HARD alert and wait 5 minutes between normal intervals, however that is not what it does, it appears it sets the retry_check_interval to 5 minutes between non-OK service alerts, so if I tell it to try 3 times, it will try 3 times and wait in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 minutes in between tries, which comes out to a total of 6 minutes. I'd rather it fail after a minute or so, so if I set it to 0 it will inherit a standard minute...the only way to solve this is to set it at a 1 minute interval and just wait. Sound about right? -----Original Message----- From: Josh Yost [mailto:Josh.Yost at epsiia.com] Sent: Friday, January 05, 2007 3:56 PM To: wnorth at verizon.net Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Hi, This is kind of stupid/obvious, but a) I don't see a HARD service alert in your log snip for the service. Did it actually get to that state? Your retry interval is 3 min, so it would take you 15 min or so to get an alert. b) If it did get to HARD, what was the cmd it tried to run & is that a valid cmd? c) Did you kill all the old processes and restart Nagios w/ the new config? I don't see anything obvious in your cfgs that wouldn't be working. - Josh wnorth at verizon.net wrote: > I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: > > [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 > [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused > [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused > [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused > > But I do not recieve an email. The following service is defined: > > define service{ > host_name ebro > service_description Website App Server MS2 > check_command check_http_fitness_app > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > contact_groups jboss-admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r,f > } > > The following contact is setup for the jboss-admins groups: > > define contactgroup{ > contactgroup_name jboss-admins > alias JBoss Administrators > members wnorth > } > > The following contact is setup for wnorth: > define contact{ > contact_name wnorth > alias Wes North > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r,f > host_notification_options d,u,r,f > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email wnorth at verizon.net > } > > If I bring a host offline I see the following alert in the nagios.log: > > [1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8) > [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms > [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms > > But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated. > > -Wes > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sat Jan 6 01:25:09 2007 From: wnorth at verizon.net (wnorth) Date: Fri, 05 Jan 2007 16:25:09 -0800 Subject: Service Alerts and Notifications In-Reply-To: <0JBF00DUH7L5LXVB@vms046.mailsrvcs.net> References: <0JBF00DUH7L5LXVB@vms046.mailsrvcs.net> Message-ID: <0JBF005CU7UTQLLJ@vms044.mailsrvcs.net> Correction setting it to 0 will cause it to fail, setting it to 1 is the shortest retry interval, which will take about 3 minutes before it sends an email, if the service comes back up right afterwards, it will take another 5 minutes to send a recovery alert. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of wnorth Sent: Friday, January 05, 2007 4:19 PM To: 'Josh Yost' Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications That is actually interesting, when the host goes down I see a HARD service alert as follows: HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) But for the check_http I only see the following: SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused Once I changed the retry interval to 1 and the max attempts to 1 I saw the email, so I just wasn't waiting long enough...makes sense. In theory I would want it to try 3 times in a row, if it fails send an email, then wait 5 minutes and retry again. For that to work I tried the following: max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 This should force it to try 3 times before setting a HARD alert and wait 5 minutes between normal intervals, however that is not what it does, it appears it sets the retry_check_interval to 5 minutes between non-OK service alerts, so if I tell it to try 3 times, it will try 3 times and wait in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 minutes in between tries, which comes out to a total of 6 minutes. I'd rather it fail after a minute or so, so if I set it to 0 it will inherit a standard minute...the only way to solve this is to set it at a 1 minute interval and just wait. Sound about right? -----Original Message----- From: Josh Yost [mailto:Josh.Yost at epsiia.com] Sent: Friday, January 05, 2007 3:56 PM To: wnorth at verizon.net Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Hi, This is kind of stupid/obvious, but a) I don't see a HARD service alert in your log snip for the service. Did it actually get to that state? Your retry interval is 3 min, so it would take you 15 min or so to get an alert. b) If it did get to HARD, what was the cmd it tried to run & is that a valid cmd? c) Did you kill all the old processes and restart Nagios w/ the new config? I don't see anything obvious in your cfgs that wouldn't be working. - Josh wnorth at verizon.net wrote: > I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows: > > [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636 > [1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused > [1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused > [1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused > > But I do not recieve an email. The following service is defined: > > define service{ > host_name ebro > service_description Website App Server MS2 > check_command check_http_fitness_app > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > contact_groups jboss-admins > notification_interval 30 > notification_period 24x7 > notification_options w,u,c,r,f > } > > The following contact is setup for the jboss-admins groups: > > define contactgroup{ > contactgroup_name jboss-admins > alias JBoss Administrators > members wnorth > } > > The following contact is setup for wnorth: > define contact{ > contact_name wnorth > alias Wes North > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r,f > host_notification_options d,u,r,f > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email wnorth at verizon.net > } > > If I bring a host offline I see the following alert in the nagios.log: > > [1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8) > [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms > [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms > > But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated. > > -Wes > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 6 01:33:41 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 06 Jan 2007 00:33:41 +0000 Subject: Service Alerts and Notifications In-Reply-To: <0JBF00DUH7L5LXVB@vms046.mailsrvcs.net> References: <0JBF00DUH7L5LXVB@vms046.mailsrvcs.net> Message-ID: <459EEE65.9010203@mailnetwork.co.uk> Don't know if it helps, but on my services, I check services every 5 minutes. If it fails, it retries 3 times every 30 seconds (so a max. of 1.5 minutes) then it sends me an e-mail/SMS (because it switches to HARD state.) What this will do... max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 ...is it will check your service every 5 minutes - if it goes off-line, it will set it to a SOFT fail, wait 5 minutes then check again, if it still fails (2nd SOFT fail), wait 5 minutes, then check again, then if it fails a third time, you'll get a HARD fail - so in theory, if the service is down, you won't find out for 15 minutes. What might be better is: max_check_attempts 3 retry_check_interval 1 normal_check_interval 5 This will check your service every 5 minutes - if it fails, it'll re-try 3 times with a 1 minute interval between each, so you'll get notified if it's still down after 3 minutes. What you can also do is set retry_check_interval to a seconds interval, like: max_check_attempts 3 retry_check_interval 5s normal_check_interval 5 This tells Nagios to wait 5 seconds between non-OK states, and 5 minutes between active checks. You could of course also set "max_check_attempts" to 2 and "retry_check_interval" to 1 - so the first-time it fails, it waits a minute then checks again - and if it still fails you get a notification, so in theory you only get a minute's lag. hope this random rambling works for you :) Andy. wnorth wrote: > That is actually interesting, when the host goes down I see a HARD service > alert as follows: > > HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) > > But for the check_http I only see the following: > > SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection > refused > > Once I changed the retry interval to 1 and the max attempts to 1 I saw the > email, so I just wasn't waiting long enough...makes sense. In theory I would > want it to try 3 times in a row, if it fails send an email, then wait 5 > minutes and retry again. > > For that to work I tried the following: > max_check_attempts 3 > retry_check_interval 5 > normal_check_interval 5 > > This should force it to try 3 times before setting a HARD alert and wait 5 > minutes between normal intervals, however that is not what it does, it > appears it sets the retry_check_interval to 5 minutes between non-OK service > alerts, so if I tell it to try 3 times, it will try 3 times and wait > in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 > minutes in between tries, which comes out to a total of 6 minutes. I'd > rather it fail after a minute or so, so if I set it to 0 it will inherit a > standard minute...the only way to solve this is to set it at a 1 minute > interval and just wait. > > Sound about right? > > -----Original Message----- > From: Josh Yost [mailto:Josh.Yost at epsiia.com] > Sent: Friday, January 05, 2007 3:56 PM > To: wnorth at verizon.net > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Alerts and Notifications > > Hi, > This is kind of stupid/obvious, but > > a) I don't see a HARD service alert in your log snip for the service. > Did it actually get to that state? Your retry interval is 3 min, so it > would take you 15 min or so to get an alert. > > b) If it did get to HARD, what was the cmd it tried to run & is that a > valid cmd? > > c) Did you kill all the old processes and restart Nagios w/ the new config? > > I don't see anything obvious in your cfgs that wouldn't be working. > > - Josh > > > wnorth at verizon.net wrote: > >> I have setup a few host and HTTP service checks and alerts. When a host >> > goes down I recieve an email, but when the check_http service fails (e.g. > the TCP port is shutdown on the web server) I see the service alert in the > nagios.log as follows: > >> [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App >> > Server MS2;1168038636 > >> [1168038644] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;1;Connection refused > >> [1168038824] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;2;Connection refused > >> [1168039004] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;3;Connection refused > >> But I do not recieve an email. The following service is defined: >> >> define service{ >> host_name ebro >> service_description Website App Server MS2 >> check_command check_http_fitness_app >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 3 >> check_period 24x7 >> contact_groups jboss-admins >> notification_interval 30 >> notification_period 24x7 >> notification_options w,u,c,r,f >> } >> >> The following contact is setup for the jboss-admins groups: >> >> define contactgroup{ >> contactgroup_name jboss-admins >> alias JBoss Administrators >> members wnorth >> } >> >> The following contact is setup for wnorth: >> define contact{ >> contact_name wnorth >> alias Wes North >> service_notification_period 24x7 >> host_notification_period 24x7 >> service_notification_options w,u,c,r,f >> host_notification_options d,u,r,f >> service_notification_commands notify-by-email >> host_notification_commands host-notify-by-email >> email wnorth at verizon.net >> } >> >> If I bring a host offline I see the following alert in the nagios.log: >> >> [1168037707] HOST NOTIFICATION: >> > wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable > (10.0.33.8) > >> [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = >> > 0.40 ms > >> [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING >> > OK - Packet loss = 0%, RTA = 0.40 ms > >> But if I bring a web service offline it fails to email me. I don't know >> > why, I have specified everything correctly. Any insight would be much > appreciated. > >> -Wes >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your > >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> > reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459eeb74137101726516177! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 01:40:32 2007 From: israel at frontierflying.com (Israel Brewster) Date: Fri, 5 Jan 2007 15:40:32 -0900 Subject: Nagios Timezone In-Reply-To: References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> <4A580AB1-9B47-4E02-BF26-FB9D0471CE45@frontierflying.com> Message-ID: <0852BAB6-B6B4-4881-9ADC-D60AEDD5CBF2@frontierflying.com> On Jan 5, 2007, at 1:32 PM, Hugo van der Kooij wrote: > On Fri, 5 Jan 2007, Israel Brewster wrote: > >> So how do I determine what the proper setting for my timezone is? I >> tried setting TZ="America/Anchorage" but this didn't have any effect. > > That is NOT a valid TZ variable. If you take a minute you can use your > favorite search engine and actually find the documentation on the TZ > variable. > > Like: http://www.gnu.org/software/libc/manual/html_node/TZ- > Variable.html Yep, that's exactly what I did, which is where I got the idea to use America/Anchorage. Which, I might point out IS a valid TZ variable according to the page you linked, which you apparently didn't bother to read... Sorry, after a response like that, I couldn't resist. At any rate, setting the variable doesn't appear to have any effect. Is Nagios pulling from the BIOS clock rather than the system clock or something? I suppose I could set the BIOS clock to local time, and just tell the system clock that I am in the GMT time-zone, but that would be downright ugly. I would much prefer to find a nicer solution, if one is available. Even if I have to edit the source, I can do that, as long as I know where to look. Thanks. > > Hugo. > > -- > hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ > This message is using 100% recycled electrons. > > A: Yes. >> Q: Are you sure? >>> A: Because it reverses the logical flow of conversation. >>>> Q: Why is top posting frowned upon? > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Sat Jan 6 02:10:49 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Fri, 5 Jan 2007 17:10:49 -0800 (PST) Subject: Nagios Timezone In-Reply-To: <0852BAB6-B6B4-4881-9ADC-D60AEDD5CBF2@frontierflying.com> References: <37742.192.168.128.67.1167871126.squirrel@ssl.monsoonwind.com> <430E824F-5573-4693-9360-C23BD8599619@frontierflying.com> <60830.192.168.128.67.1167949369.squirrel@ssl.monsoonwind.com> <4A580AB1-9B47-4E02-BF26-FB9D0471CE45@frontierflying.com> <0852BAB6-B6B4-4881-9ADC-D60AEDD5CBF2@frontierflying.com> Message-ID: <60305.192.168.128.67.1168045849.squirrel@ssl.monsoonwind.com> > Yep, that's exactly what I did, which is where I got the idea to use > America/Anchorage. Which, I might point out IS a valid TZ variable > according to the page you linked, which you apparently didn't bother > to read... Sorry, after a response like that, I couldn't resist. At > any rate, setting the variable doesn't appear to have any effect. Is > Nagios pulling from the BIOS clock rather than the system clock or > something? I suppose I could set the BIOS clock to local time, and > just tell the system clock that I am in the GMT time-zone, but that > would be downright ugly. I would much prefer to find a nicer > solution, if one is available. Even if I have to edit the source, I > can do that, as long as I know where to look. Thanks. Nagios uses the system time (ie. what time() returns). That is what is used in the logging and status. Actually it uses time_t as returned from time() (see the nagios.log file.) localtime() is used for plugins when passing the time based variables. The CGIs use localtime() to convert the status information from time_t to localtime formats. Make sure the CGIs are run with the correct TZ value. (ie. start apache after setting the TZ variable.) Make sure you export the variable. -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sat Jan 6 02:39:36 2007 From: wnorth at verizon.net (wnorth) Date: Fri, 05 Jan 2007 17:39:36 -0800 Subject: Service Alerts and Notifications In-Reply-To: <459EEE65.9010203@mailnetwork.co.uk> References: <459EEE65.9010203@mailnetwork.co.uk> Message-ID: <0JBF0053TBB7RA6K@vms044.mailsrvcs.net> It does thanks much, it makes perfect sense, I didn't even realize that one can specify the interval in seconds. I am pretty impressed with nagios as is, compared to thinks like netcool or topaz it has quite a ways to go, but for the simple checks, and even advanced scripting it is very powerful. Thanks again, -Wes -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Friday, January 05, 2007 4:34 PM To: wnorth Cc: 'Josh Yost'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Don't know if it helps, but on my services, I check services every 5 minutes. If it fails, it retries 3 times every 30 seconds (so a max. of 1.5 minutes) then it sends me an e-mail/SMS (because it switches to HARD state.) What this will do... max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 ...is it will check your service every 5 minutes - if it goes off-line, it will set it to a SOFT fail, wait 5 minutes then check again, if it still fails (2nd SOFT fail), wait 5 minutes, then check again, then if it fails a third time, you'll get a HARD fail - so in theory, if the service is down, you won't find out for 15 minutes. What might be better is: max_check_attempts 3 retry_check_interval 1 normal_check_interval 5 This will check your service every 5 minutes - if it fails, it'll re-try 3 times with a 1 minute interval between each, so you'll get notified if it's still down after 3 minutes. What you can also do is set retry_check_interval to a seconds interval, like: max_check_attempts 3 retry_check_interval 5s normal_check_interval 5 This tells Nagios to wait 5 seconds between non-OK states, and 5 minutes between active checks. You could of course also set "max_check_attempts" to 2 and "retry_check_interval" to 1 - so the first-time it fails, it waits a minute then checks again - and if it still fails you get a notification, so in theory you only get a minute's lag. hope this random rambling works for you :) Andy. wnorth wrote: > That is actually interesting, when the host goes down I see a HARD service > alert as follows: > > HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) > > But for the check_http I only see the following: > > SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection > refused > > Once I changed the retry interval to 1 and the max attempts to 1 I saw the > email, so I just wasn't waiting long enough...makes sense. In theory I would > want it to try 3 times in a row, if it fails send an email, then wait 5 > minutes and retry again. > > For that to work I tried the following: > max_check_attempts 3 > retry_check_interval 5 > normal_check_interval 5 > > This should force it to try 3 times before setting a HARD alert and wait 5 > minutes between normal intervals, however that is not what it does, it > appears it sets the retry_check_interval to 5 minutes between non-OK service > alerts, so if I tell it to try 3 times, it will try 3 times and wait > in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 > minutes in between tries, which comes out to a total of 6 minutes. I'd > rather it fail after a minute or so, so if I set it to 0 it will inherit a > standard minute...the only way to solve this is to set it at a 1 minute > interval and just wait. > > Sound about right? > > -----Original Message----- > From: Josh Yost [mailto:Josh.Yost at epsiia.com] > Sent: Friday, January 05, 2007 3:56 PM > To: wnorth at verizon.net > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Alerts and Notifications > > Hi, > This is kind of stupid/obvious, but > > a) I don't see a HARD service alert in your log snip for the service. > Did it actually get to that state? Your retry interval is 3 min, so it > would take you 15 min or so to get an alert. > > b) If it did get to HARD, what was the cmd it tried to run & is that a > valid cmd? > > c) Did you kill all the old processes and restart Nagios w/ the new config? > > I don't see anything obvious in your cfgs that wouldn't be working. > > - Josh > > > wnorth at verizon.net wrote: > >> I have setup a few host and HTTP service checks and alerts. When a host >> > goes down I recieve an email, but when the check_http service fails (e.g. > the TCP port is shutdown on the web server) I see the service alert in the > nagios.log as follows: > >> [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App >> > Server MS2;1168038636 > >> [1168038644] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;1;Connection refused > >> [1168038824] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;2;Connection refused > >> [1168039004] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;3;Connection refused > >> But I do not recieve an email. The following service is defined: >> >> define service{ >> host_name ebro >> service_description Website App Server MS2 >> check_command check_http_fitness_app >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 3 >> check_period 24x7 >> contact_groups jboss-admins >> notification_interval 30 >> notification_period 24x7 >> notification_options w,u,c,r,f >> } >> >> The following contact is setup for the jboss-admins groups: >> >> define contactgroup{ >> contactgroup_name jboss-admins >> alias JBoss Administrators >> members wnorth >> } >> >> The following contact is setup for wnorth: >> define contact{ >> contact_name wnorth >> alias Wes North >> service_notification_period 24x7 >> host_notification_period 24x7 >> service_notification_options w,u,c,r,f >> host_notification_options d,u,r,f >> service_notification_commands notify-by-email >> host_notification_commands host-notify-by-email >> email wnorth at verizon.net >> } >> >> If I bring a host offline I see the following alert in the nagios.log: >> >> [1168037707] HOST NOTIFICATION: >> > wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable > (10.0.33.8) > >> [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = >> > 0.40 ms > >> [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING >> > OK - Packet loss = 0%, RTA = 0.40 ms > >> But if I bring a web service offline it fails to email me. I don't know >> > why, I have specified everything correctly. Any insight would be much > appreciated. > >> -Wes >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your > >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> > reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459eeb74137101726516177! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Sat Jan 6 02:51:28 2007 From: nagios at d.sparks.net (David Miller) Date: Fri, 05 Jan 2007 20:51:28 -0500 Subject: parent/child setup not working In-Reply-To: <459EE163.6040603@mailnetwork.co.uk> References: <459ECA33.1040805@d.sparks.net> <459ECF7C.2060702@mailnetwork.co.uk> <459EE02B.6060404@d.sparks.net> <459EE163.6040603@mailnetwork.co.uk> Message-ID: <459F00A0.6090507@d.sparks.net> Andy Shellam (Mailing Lists) wrote: > If I understand it right, your host checks should not be scheduled - > but your service checks are. > So, every time a service requires checking and Nagios finds the > service is down, it checks the host to see if the host is down. If it > is, then it suppresses notifications for the service and instead goes > into the host's notification handling. That makes some sense - all the hosts with host checks don't send unwanted notices. I'm still missing something though - unless the design is that: host checks aren't executed if the parent is down, but if no host check is specified the host is still presumed up. and service checks are performed as long as the host is known or presumed to be up. But that would makes the parent relationship specification fairly useless. > > However I'm not sure if this is the case for escalated service > notifications. You have a notification_interval set - try commenting > this out (or setting to 0) and see if you then get the same thing > happening. It's a required field, so commenting it out doesn't work. I set it to 0, deleted the default route, and got the same result; Three notices that the pix was down, a five minute wait, and a notice that this host was down. --- David > > Andy. > > > David Miller wrote: >> Andy Shellam (Mailing Lists) wrote: >> >> Arghh! Sorry for the previous, content free reply. >> >> The service entry is; >> >> define service{ >> use generic-service ; Name >> of service template to use >> hostgroup_name webservers >> service_description Check Simple Webservers >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 2 >> contact_groups ops >> notification_interval 120 >> notification_period 24x7 >> notification_options w,u,c,r >> check_command check_http >> } >> But the point is, unless I'm missing something, that the service >> should not be checked at all if the parent is down. >> >> Thanks! >> >> --- David >> >>> Hi David, >>> >>> I'm not clued up on parent/child relationships between hosts, >>> however one thing I believe might be happening is that the example >>> of the alert you've sent for the service - it might be a "reminder" >>> notification that the service is still down. (Perhaps as a result >>> of escalation settings?) >>> >>> I think this is because it has a delay in the state variable - ie. >>> "CRITICAL for xxxxx" as opposed to just "CRITICAL." >>> >>> What's the definition for that service? >>> >>> Andy. >>> >>> >>> David Miller wrote: >>>> Hi; >>>> >>>> I'm not sure what I'm doing wrong. >>>> >>>> Running nagios 2.5 on debian-stable. I have the nagios server in >>>> one data center monitoring 30ish servers in another data center. >>>> >>>> In the hosts.cfg file I have a gateway (firewall) defined: >>>> >>>> define host { >>>> use generic-host ; Name of host >>>> template to use >>>> host_name pix >>>> alias PIX >>>> address x.y.z.2 >>>> check_command check-host-alive >>>> max_check_attempts 1 >>>> notification_interval 1 >>>> notification_period 24x7 >>>> notification_options d,u,r >>>> } >>>> >>>> >>>> I then use that as a parent to all the hosts I want to monitor in >>>> the remote data center. Those have host entries like this; >>>> >>>> >>>> define host { >>>> use generic-host ; Name of host >>>> template to use >>>> host_name logweb1 >>>> alias Logweb1 >>>> address logweb1.foo.com >>>> parents pix >>>> max_check_attempts 1 >>>> active_checks_enabled 0 >>>> notification_interval 1 >>>> notification_period 24x7 >>>> notification_options d,r >>>> } >>>> >>>> As I read the documentation, when nagios detects that host "pix" is >>>> down that it won't check or report on host logweb1. >>>> >>>> If the network connection is broken, however, by deleting the >>>> default route, I get three messages that the pix is down that look >>>> like this: >>>> >>>> Subject:** PROBLEM alert 1 - PIX host is DOWN ** >>>> >>>> ***** Nagios ***** >>>> >>>> Notification Type: PROBLEM >>>> Host: PIX >>>> State: DOWN for 0d 0h 0m 0s >>>> Address: 66.151.232.2 >>>> Info: >>>> >>>> CRITICAL - Network unreachable (x.y.z.2) >>>> >>>> Date/Time: Fri Jan 5 16:17:48 EST 2007 >>>> >>>> ACK by: Comment: >>>> >>>> And a few minutes later I get notice on the child server: >>>> >>>> Subject: ** PROBLEM alert 1 - Logweb1/Check Simple Webservers is >>>> CRITICAL ** >>>> >>>> ***** Nagios ***** >>>> >>>> Notification Type: PROBLEM >>>> >>>> Service: Check Simple Webservers >>>> Host: Logweb1 >>>> State: CRITICAL for 0d 0h 8m 6s >>>> Address: logweb1.foo.com >>>> >>>> Info: >>>> >>>> Network is unreachable >>>> >>>> Date/Time: Fri Jan 5 16:29:28 EST 2007 >>>> >>>> ACK by: Comment: >>>> >>>> What am I doing wrong? >>>> >>>> Thanks in advance, >>>> >>>> --- David >>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> >>>> Take Surveys. Earn Cash. Influence the Future of IT >>>> Join SourceForge.net's Techsay panel and you'll get the chance to >>>> share your >>>> opinions on IT & business topics through brief surveys - and earn cash >>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>> >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. ::: Messages without supporting info will risk >>>> being sent to /dev/null >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> >> !DSPAM:37,459ee03d137101012410913! >> >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 10:31:31 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 6 Jan 2007 10:31:31 +0100 (CET) Subject: Nagios Timezone In-Reply-To: <200701052325.PAA11993@redwood.taos.com> References: <200701052325.PAA11993@redwood.taos.com> Message-ID: On Fri, 5 Jan 2007, Darren Dunham wrote: >>> So how do I determine what the proper setting for my timezone is? I >>> tried setting TZ="America/Anchorage" but this didn't have any effect. >> >> That is NOT a valid TZ variable. If you take a minute you can use your >> favorite search engine and actually find the documentation on the TZ >> variable. >> >> Like: http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html > > Do you mean that he's leaving the leading ':' off or something else? > I've never seen that cause a problem... Well I have seen plenty of cases where this format is not supported. It only works if all the files are present to translate this format. (They do not fit in embedded Linux for example.) > # TZ=America/Anchorage date > Fri Jan 5 14:21:33 AKST 2007 > # TZ=:America/Anchorage date > Fri Jan 5 14:21:35 AKST 2007 By lack of the proper timezone tree you get: $ date Sat Jan 6 10:21:58 CET 2007 $ TZ=America/Anchorage date Sat Jan 6 09:22:09 UTC 2007 So to be safe one does not rely on this tree and uses the explicit definition: TZ='CET-1CEST,M3.5.0/2,M10.5.0/3' Also notice that unless the TZ variable is set in the one-liner containing the call to start Nagios it may have no effect whatsoever. $ TZ=America/Anchorage date Sat Jan 6 00:21:33 AKST 2007 $ TZ=America/Anchorage $ date Sat Jan 6 10:27:35 CET 2007 Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skorbets at rambler.ru Sat Jan 6 14:01:51 2007 From: skorbets at rambler.ru (Danila Kutepkin) Date: Sat, 06 Jan 2007 16:01:51 +0300 Subject: host status change after service check fail Message-ID: hi there! I know that my question is dull, but I can't find the answer. So, please, be mercy... After a service (ping) check failed, host state say that host's still UP. That's not what we want to have as we'd like to make a host check and to know, if the host is UNREACHABLE of DOWN. Please, help. service config define service{ use generic-service hostgroup_name test service_description PING parallelize_check 1 is_volatile 0 servicegroups host_service check_period 24x7 max_check_attempts 1 normal_check_interval 10 retry_check_interval 5 contact_groups router-admins notification_interval 0 notification_period 24x7 notification_options c,r check_command check_ping!1000.0,20%!5000.0,60% } host config define host{ use test-host host_name test_host alias test host address 192.168.0.1 } define host{ name test-host notifications_enabled 1 event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups router-admins register 0 hostgroups test max_check_attempts 2 notification_interval 1 active_checks_enabled 0 check_interval 1 check_command check-host-test-alive notification_interval 1 notification_period 24x7 notification_options d,u,r } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 14:04:44 2007 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Sat, 06 Jan 2007 14:04:44 +0100 Subject: parent/child setup not working In-Reply-To: <459F00A0.6090507@d.sparks.net> References: <459ECA33.1040805@d.sparks.net> <459ECF7C.2060702@mailnetwork.co.uk> <459EE02B.6060404@d.sparks.net> <459EE163.6040603@mailnetwork.co.uk> <459F00A0.6090507@d.sparks.net> Message-ID: <459F9E6C.8030906@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Miller schrieb: > Andy Shellam (Mailing Lists) wrote: >> If I understand it right, your host checks should not be scheduled - >> but your service checks are. >> So, every time a service requires checking and Nagios finds the >> service is down, it checks the host to see if the host is down. If it >> is, then it suppresses notifications for the service and instead goes >> into the host's notification handling. Full ack! > That makes some sense - all the hosts with host checks don't send > unwanted notices. So I guess that these host without host_checks enabled gave you some trouble? > > I'm still missing something though - unless the design is that: > > host checks aren't executed if the parent is down, but if no host check > is specified the host is still presumed up. Half of truth. Your wanted thing is called "Network Outage". This is done by setting parents and grandparents in the kind of the way that your nagios can reach each host. I think, you are getting this right but: Nagios 2 only checks services, let us say, every 5 minutes. If only one of 'x' services on a host returns with a non-OK state nagios will try to check if the host is reachable via the host-check-command, if given. If you don't set a host-check-command, nagios will never try this and you are getting a service alert. AFAIK, if you want to get a message like "Host Abraham is unreachable" (cause your parent host "pix" is down) you have to enable host checks on Abraham and your Host "pix". Network Outage detection relies on host checks. So: no host checks, no outage detection. > > and > > service checks are performed as long as the host is known or presumed to > be up. Service checks are performed as long as your nagios process is running and the service check timeperiod is active. AFAIK nagios tries to check a service even if it knows that the host is down, the only difference between host is up or down is, that you will receive x service alerts if x services are non-OK or just one host alert. I think your logic failure is the "way" that you are thinking how nagios works. Don't think on a checking way like this: Parent Host --> Host --> Service It is more like this: Service --> Host --> Parent Nagios intelligence is that it suppress notifications not the service checks. Hope that helps. Regards, Hendrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFn55rlI0PwfxLQjkRAshTAJ9R/3R0N2wP7TsxkO6mwLO5mzcM6ACfUcq3 sCLnpDrdHvtFX+L/FkdNCK0= =e6iX -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 14:08:54 2007 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Sat, 06 Jan 2007 14:08:54 +0100 Subject: host status change after service check fail In-Reply-To: References: Message-ID: <459F9F66.4090706@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, can you post your definition to your host check command called "check-host-test-alive" and "check_ping"? A few more details were nice too. Is your "PING" Service the only service on that host? Do you have host checks enabled on your nagios? Regards Hendrik Danila Kutepkin schrieb: > hi there! > > I know that my question is dull, but I can't find the answer. So, > please, be mercy... > > After a service (ping) check failed, host state say that host's > still UP. That's not what we want to have as we'd like to make a > host check and to know, if the host is UNREACHABLE of DOWN. Please, > help. > > service config > > define service{ use > generic-service hostgroup_name test > service_description PING parallelize_check > 1 is_volatile 0 servicegroups > host_service check_period 24x7 > max_check_attempts 1 normal_check_interval 10 > retry_check_interval 5 contact_groups > router-admins notification_interval 0 notification_period > 24x7 notification_options c,r check_command > check_ping!1000.0,20%!5000.0,60% } > > host config > > define host{ use > test-host host_name test_host > alias test host address > 192.168.0.1 } > > define host{ name > test-host notifications_enabled 1 > event_handler_enabled 0 flap_detection_enabled > 0 process_perf_data 1 > retain_status_information 1 retain_nonstatus_information > 1 contact_groups router-admins register > 0 hostgroups test > max_check_attempts 2 notification_interval 1 > active_checks_enabled 0 check_interval > 1 check_command check-host-test-alive > notification_interval 1 notification_period 24x7 > notification_options d,u,r } > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and > earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Nagios-users > mailing list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: > Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFn59mlI0PwfxLQjkRAnP+AJ9QhKS2CTR3z+7upaHYwSUFwsQXEACfShAi hS5Tlidlpp/rdLlFiM6d2PY= =FPpD -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 18:46:01 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Sat, 6 Jan 2007 12:46:01 -0500 Subject: host status change after service check fail In-Reply-To: References: Message-ID: > After a service (ping) check failed, host state say that host's still UP. > That's not what we want to have as we'd like to make a host check and to know, > if the host is UNREACHABLE of DOWN. Please, help. [snip] > define host{ > name test-host [snip] > active_checks_enabled 0 If you want host checks to run, don't disable them. :) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sat Jan 6 19:13:08 2007 From: wnorth at verizon.net (wnorth) Date: Sat, 06 Jan 2007 10:13:08 -0800 Subject: Service Alerts and Notifications In-Reply-To: <0JBF0053TBB7RA6K@vms044.mailsrvcs.net> References: <0JBF0053TBB7RA6K@vms044.mailsrvcs.net> Message-ID: <0JBG006S1LDF50Y5@vms048.mailsrvcs.net> Andy, I tried setting the retry value to 30s, and it interpreted it as 30 minutes: max_check_attempts 3 retry_check_interval 30s normal_check_interval 5 I would have thought the above would set a HARD alert after 1.5 minutes, but it checked, then scheduled the next check 30 minutes later. Is there a global setting somewhere that I missed that needs to be changed from minutes to seconds? -Wes -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of wnorth Sent: Friday, January 05, 2007 5:40 PM To: 'Andy Shellam (Mailing Lists)' Cc: 'Josh Yost'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications It does thanks much, it makes perfect sense, I didn't even realize that one can specify the interval in seconds. I am pretty impressed with nagios as is, compared to thinks like netcool or topaz it has quite a ways to go, but for the simple checks, and even advanced scripting it is very powerful. Thanks again, -Wes -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Friday, January 05, 2007 4:34 PM To: wnorth Cc: 'Josh Yost'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Don't know if it helps, but on my services, I check services every 5 minutes. If it fails, it retries 3 times every 30 seconds (so a max. of 1.5 minutes) then it sends me an e-mail/SMS (because it switches to HARD state.) What this will do... max_check_attempts 3 retry_check_interval 5 normal_check_interval 5 ...is it will check your service every 5 minutes - if it goes off-line, it will set it to a SOFT fail, wait 5 minutes then check again, if it still fails (2nd SOFT fail), wait 5 minutes, then check again, then if it fails a third time, you'll get a HARD fail - so in theory, if the service is down, you won't find out for 15 minutes. What might be better is: max_check_attempts 3 retry_check_interval 1 normal_check_interval 5 This will check your service every 5 minutes - if it fails, it'll re-try 3 times with a 1 minute interval between each, so you'll get notified if it's still down after 3 minutes. What you can also do is set retry_check_interval to a seconds interval, like: max_check_attempts 3 retry_check_interval 5s normal_check_interval 5 This tells Nagios to wait 5 seconds between non-OK states, and 5 minutes between active checks. You could of course also set "max_check_attempts" to 2 and "retry_check_interval" to 1 - so the first-time it fails, it waits a minute then checks again - and if it still fails you get a notification, so in theory you only get a minute's lag. hope this random rambling works for you :) Andy. wnorth wrote: > That is actually interesting, when the host goes down I see a HARD service > alert as follows: > > HOST ALERT: ebro;DOWN;HARD;5;CRITICAL - Host Unreachable (10.0.33.8) > > But for the check_http I only see the following: > > SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection > refused > > Once I changed the retry interval to 1 and the max attempts to 1 I saw the > email, so I just wasn't waiting long enough...makes sense. In theory I would > want it to try 3 times in a row, if it fails send an email, then wait 5 > minutes and retry again. > > For that to work I tried the following: > max_check_attempts 3 > retry_check_interval 5 > normal_check_interval 5 > > This should force it to try 3 times before setting a HARD alert and wait 5 > minutes between normal intervals, however that is not what it does, it > appears it sets the retry_check_interval to 5 minutes between non-OK service > alerts, so if I tell it to try 3 times, it will try 3 times and wait > in-between tries for 5 minutes, if I set it to 2 on the retry it will wait 2 > minutes in between tries, which comes out to a total of 6 minutes. I'd > rather it fail after a minute or so, so if I set it to 0 it will inherit a > standard minute...the only way to solve this is to set it at a 1 minute > interval and just wait. > > Sound about right? > > -----Original Message----- > From: Josh Yost [mailto:Josh.Yost at epsiia.com] > Sent: Friday, January 05, 2007 3:56 PM > To: wnorth at verizon.net > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Alerts and Notifications > > Hi, > This is kind of stupid/obvious, but > > a) I don't see a HARD service alert in your log snip for the service. > Did it actually get to that state? Your retry interval is 3 min, so it > would take you 15 min or so to get an alert. > > b) If it did get to HARD, what was the cmd it tried to run & is that a > valid cmd? > > c) Did you kill all the old processes and restart Nagios w/ the new config? > > I don't see anything obvious in your cfgs that wouldn't be working. > > - Josh > > > wnorth at verizon.net wrote: > >> I have setup a few host and HTTP service checks and alerts. When a host >> > goes down I recieve an email, but when the check_http service fails (e.g. > the TCP port is shutdown on the web server) I see the service alert in the > nagios.log as follows: > >> [1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App >> > Server MS2;1168038636 > >> [1168038644] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;1;Connection refused > >> [1168038824] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;2;Connection refused > >> [1168039004] SERVICE ALERT: ebro;Website App Server >> > MS2;CRITICAL;SOFT;3;Connection refused > >> But I do not recieve an email. The following service is defined: >> >> define service{ >> host_name ebro >> service_description Website App Server MS2 >> check_command check_http_fitness_app >> max_check_attempts 5 >> normal_check_interval 5 >> retry_check_interval 3 >> check_period 24x7 >> contact_groups jboss-admins >> notification_interval 30 >> notification_period 24x7 >> notification_options w,u,c,r,f >> } >> >> The following contact is setup for the jboss-admins groups: >> >> define contactgroup{ >> contactgroup_name jboss-admins >> alias JBoss Administrators >> members wnorth >> } >> >> The following contact is setup for wnorth: >> define contact{ >> contact_name wnorth >> alias Wes North >> service_notification_period 24x7 >> host_notification_period 24x7 >> service_notification_options w,u,c,r,f >> host_notification_options d,u,r,f >> service_notification_commands notify-by-email >> host_notification_commands host-notify-by-email >> email wnorth at verizon.net >> } >> >> If I bring a host offline I see the following alert in the nagios.log: >> >> [1168037707] HOST NOTIFICATION: >> > wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable > (10.0.33.8) > >> [1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = >> > 0.40 ms > >> [1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING >> > OK - Packet loss = 0%, RTA = 0.40 ms > >> But if I bring a web service offline it fails to email me. I don't know >> > why, I have specified everything correctly. Any insight would be much > appreciated. > >> -Wes >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your > >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> > reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,459eeb74137101726516177! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 19:25:34 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Sat, 6 Jan 2007 13:25:34 -0500 Subject: Service Alerts and Notifications In-Reply-To: <0JBG006S1LDF50Y5@vms048.mailsrvcs.net> References: <0JBG006S1LDF50Y5@vms048.mailsrvcs.net> Message-ID: > I tried setting the retry value to 30s, and it interpreted it > as 30 minutes: > > max_check_attempts 3 > retry_check_interval 30s > normal_check_interval 5 > > I would have thought the above would set a HARD alert after > 1.5 minutes, but it checked, then scheduled the next check 30 > minutes later. Is there a global setting somewhere that I > missed that needs to be changed from minutes to seconds? Check your interval_length in nagios.cfg. That determines how long a single unit it. If "30" gives you 30 minutes, then it's probably set to 60 (60 seconds/1 minute). Sticking an "s" on your retry interval isn't going to change anything; it'll just be ignored. You'll need to adjust your interval if you want things to happen in under 1 time unit (in the default case, 60 seconds). ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 6 19:31:55 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 06 Jan 2007 18:31:55 +0000 Subject: Service Alerts and Notifications In-Reply-To: <0JBG006S1LDF50Y5@vms048.mailsrvcs.net> References: <0JBG006S1LDF50Y5@vms048.mailsrvcs.net> Message-ID: <459FEB1B.2070505@mailnetwork.co.uk> Hmm, that's bad news. In other time settings within in the config you can set "seconds". I only did this in my new Nagios server build which I haven't gone live with yet - the config checker doesn't throw an error so I'd assumed it was valid. Anyone else know this - In my case what I'd like to do is check each service every 5 minutes, then if it goes down, check 10 seconds later 3 times - so after 30 seconds if it's still down notify me. One of my routers can be flaky, and at least once a day it will fail a Ping check, but succeed straight away with the next one - therefore I don't want to have to wait a minute since it failed to find out that it's OK. I was going to alter the interval units setting in the config, but Nagios warns that the consequences are untested - anyone have anything further on this? Andy. wnorth wrote: > Andy, > > I tried setting the retry value to 30s, and it interpreted it as 30 minutes: > > max_check_attempts 3 > retry_check_interval 30s > normal_check_interval 5 > > I would have thought the above would set a HARD alert after 1.5 minutes, but > it checked, then scheduled the next check 30 minutes later. Is there a > global setting somewhere that I missed that needs to be changed from minutes > to seconds? > > -Wes > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 6 23:29:45 2007 From: israel at frontierflying.com (Israel Brewster) Date: Sat, 6 Jan 2007 13:29:45 -0900 Subject: Nagios Timezone In-Reply-To: References: <200701052325.PAA11993@redwood.taos.com> Message-ID: <3A1449F1-4A5D-460A-AC84-8990DD3A7287@frontierflying.com> On Jan 6, 2007, at 12:31 AM, Hugo van der Kooij wrote: > On Fri, 5 Jan 2007, Darren Dunham wrote: > >>>> So how do I determine what the proper setting for my timezone is? I >>>> tried setting TZ="America/Anchorage" but this didn't have any >>>> effect. >>> >>> That is NOT a valid TZ variable. If you take a minute you can use >>> your >>> favorite search engine and actually find the documentation on the TZ >>> variable. >>> >>> Like: http://www.gnu.org/software/libc/manual/html_node/TZ- >>> Variable.html >> >> Do you mean that he's leaving the leading ':' off or something else? >> I've never seen that cause a problem... > > Well I have seen plenty of cases where this format is not > supported. It > only works if all the files are present to translate this format. > (They do > not fit in embedded Linux for example.) > ... > > So to be safe one does not rely on this tree and uses the explicit > definition Thanks, that's exactly what I needed to make it work. Although the Timezone files did exist on my system, attempting to use them in the TZ variable didn't work, as mentioned before. Using the explicit definition, however, once I managed to figure out what to enter for it, produced the desired result, with one caviat: I had to put AKST+9 rather than AKST-9, even though our offset is -9, not +9. Worked though, so I suppose in the long run it doesn't really matter :) Now I just have to figure out how to set that environment variable before Apache is launched at start up, since the rc.conf file that I edited to enable Apache on startup doesn't actually include the command line used to launch Apache-just the flags used when launching. I'm sure one of my coworkers will know that one though. Thanks for the assistance! ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sun Jan 7 00:40:18 2007 From: wnorth at verizon.net (wnorth) Date: Sat, 06 Jan 2007 15:40:18 -0800 Subject: Service Alerts and Notifications In-Reply-To: References: Message-ID: <0JBH00D4A0IPLV2E@vms046.mailsrvcs.net> Thanks Patrick that fixed it. I had to change the interval_length from 60 to 1 which equates to seconds now instead of minutes I have to specify all my values in seconds, as follows: max_check_attempts 3 retry_check_interval 30s normal_check_interval 300 This causes it to check every 5 minutes, if it receives a non-OK message back it will try 3 times before marking it HARD down, each interval check is set to 30 seconds, so 1.5 minutes before an alert is sent out. Also, I had to specify the notification_interval, which was set to 30 minutes by default, to 1800 which equates to 30 minutes. I think that value should probably be equal to if not greater by 2X the normal check interval, at least that's what I think. This way each time it checks if the condition is still bad it will notify, then again you don't want to get flooded, so perhaps every other time it checks send an email? It's really up to me to decide that. Oh well, onto the next task, trying to see if I can build some sort of transaction based monitor, which will hit a home page, navigate to a specific screen and execute a web query. This is where something like Gomez, Mercury or Netcool would be great at, with Nagios...have to think a bit more out of the box, besides its free right? And from the last 1-2 days I've spent on it, very powerful...starting to like it more and more. ;-) -Wes -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Morris, Patrick Sent: Saturday, January 06, 2007 10:26 AM To: Andy Shellam (Mailing Lists) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications > I tried setting the retry value to 30s, and it interpreted it > as 30 minutes: > > max_check_attempts 3 > retry_check_interval 30s > normal_check_interval 5 > > I would have thought the above would set a HARD alert after > 1.5 minutes, but it checked, then scheduled the next check 30 > minutes later. Is there a global setting somewhere that I > missed that needs to be changed from minutes to seconds? Check your interval_length in nagios.cfg. That determines how long a single unit it. If "30" gives you 30 minutes, then it's probably set to 60 (60 seconds/1 minute). Sticking an "s" on your retry interval isn't going to change anything; it'll just be ignored. You'll need to adjust your interval if you want things to happen in under 1 time unit (in the default case, 60 seconds). ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sun Jan 7 00:48:04 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 06 Jan 2007 23:48:04 +0000 Subject: Service Alerts and Notifications In-Reply-To: <0JBH00D4A0IPLV2E@vms046.mailsrvcs.net> References: <0JBH00D4A0IPLV2E@vms046.mailsrvcs.net> Message-ID: <45A03534.3030103@mailnetwork.co.uk> Thanks for the info Wes, As it appears to work OK I'll try it out on my new box before it goes live, I was a bit cautious with all the warnings about un-tested consequences etc. Can you not do your web request with the check_http plugin, or does it require something a bit more complicated? Andy. wnorth wrote: > Thanks Patrick that fixed it. > > I had to change the interval_length from 60 to 1 which equates to seconds > now instead of minutes I have to specify all my values in seconds, as > follows: > > max_check_attempts 3 > retry_check_interval 30s > normal_check_interval 300 > > > This causes it to check every 5 minutes, if it receives a non-OK message > back it will try 3 times before marking it HARD down, each interval check is > set to 30 seconds, so 1.5 minutes before an alert is sent out. > > Also, I had to specify the notification_interval, which was set to 30 > minutes by default, to 1800 which equates to 30 minutes. I think that value > should probably be equal to if not greater by 2X the normal check interval, > at least that's what I think. This way each time it checks if the condition > is still bad it will notify, then again you don't want to get flooded, so > perhaps every other time it checks send an email? It's really up to me to > decide that. > > Oh well, onto the next task, trying to see if I can build some sort of > transaction based monitor, which will hit a home page, navigate to a > specific screen and execute a web query. This is where something like Gomez, > Mercury or Netcool would be great at, with Nagios...have to think a bit more > out of the box, besides its free right? And from the last 1-2 days I've > spent on it, very powerful...starting to like it more and more. ;-) > > -Wes > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Morris, > Patrick > Sent: Saturday, January 06, 2007 10:26 AM > To: Andy Shellam (Mailing Lists) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Alerts and Notifications > > >> I tried setting the retry value to 30s, and it interpreted it >> as 30 minutes: >> >> max_check_attempts 3 >> retry_check_interval 30s >> normal_check_interval 5 >> >> I would have thought the above would set a HARD alert after >> 1.5 minutes, but it checked, then scheduled the next check 30 >> minutes later. Is there a global setting somewhere that I >> missed that needs to be changed from minutes to seconds? >> > > Check your interval_length in nagios.cfg. That determines how long a > single unit it. > > If "30" gives you 30 minutes, then it's probably set to 60 (60 seconds/1 > minute). Sticking an "s" on your retry interval isn't going to change > anything; it'll just be ignored. > > You'll need to adjust your interval if you want things to happen in > under 1 time unit (in the default case, 60 seconds). > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > !DSPAM:37,45a033fa137101071920780! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wnorth at verizon.net Sun Jan 7 01:34:26 2007 From: wnorth at verizon.net (wnorth) Date: Sat, 06 Jan 2007 16:34:26 -0800 Subject: Service Alerts and Notifications In-Reply-To: <45A03534.3030103@mailnetwork.co.uk> References: <45A03534.3030103@mailnetwork.co.uk> Message-ID: <0JBH006Q130X4SY6@vms048.mailsrvcs.net> Some of the checks the check_http will be fine, since it is hitting a page that accesses the DB layer, so it's a full check. Once we start talking synthetic transaction monitoring, (e.g. trying to monitor what an end-user is seeing in terms of query response times, page latency during a work-flow process etc.) it kind of falls short. But for normal systems monitoring and doing basic health checks, it is fantastic. You have to ask yourself, what does one expect with a tool that is designed to be portable and modulated, a bit of up-front leg work to get the desired outcome should be expected. Tools like Mercury Topaz/Sitescope, Gomez or Micromuse Netcool allow you to actually script out an end-to-end work flow process then measure performance against say an SLA. For us we are looking at 2 tools, one for simple systems and network management, which Nagios does an excellent job, and two synthetic transaction monitoring, which one can still use Nagios, but has to build a custom work-flow tool (e.g. script it out in Perl or build a simple program that nagios can execute). -Wes -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Saturday, January 06, 2007 3:48 PM To: wnorth Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Alerts and Notifications Thanks for the info Wes, As it appears to work OK I'll try it out on my new box before it goes live, I was a bit cautious with all the warnings about un-tested consequences etc. Can you not do your web request with the check_http plugin, or does it require something a bit more complicated? Andy. wnorth wrote: > Thanks Patrick that fixed it. > > I had to change the interval_length from 60 to 1 which equates to seconds > now instead of minutes I have to specify all my values in seconds, as > follows: > > max_check_attempts 3 > retry_check_interval 30s > normal_check_interval 300 > > > This causes it to check every 5 minutes, if it receives a non-OK message > back it will try 3 times before marking it HARD down, each interval check is > set to 30 seconds, so 1.5 minutes before an alert is sent out. > > Also, I had to specify the notification_interval, which was set to 30 > minutes by default, to 1800 which equates to 30 minutes. I think that value > should probably be equal to if not greater by 2X the normal check interval, > at least that's what I think. This way each time it checks if the condition > is still bad it will notify, then again you don't want to get flooded, so > perhaps every other time it checks send an email? It's really up to me to > decide that. > > Oh well, onto the next task, trying to see if I can build some sort of > transaction based monitor, which will hit a home page, navigate to a > specific screen and execute a web query. This is where something like Gomez, > Mercury or Netcool would be great at, with Nagios...have to think a bit more > out of the box, besides its free right? And from the last 1-2 days I've > spent on it, very powerful...starting to like it more and more. ;-) > > -Wes > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Morris, > Patrick > Sent: Saturday, January 06, 2007 10:26 AM > To: Andy Shellam (Mailing Lists) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Alerts and Notifications > > >> I tried setting the retry value to 30s, and it interpreted it >> as 30 minutes: >> >> max_check_attempts 3 >> retry_check_interval 30s >> normal_check_interval 5 >> >> I would have thought the above would set a HARD alert after >> 1.5 minutes, but it checked, then scheduled the next check 30 >> minutes later. Is there a global setting somewhere that I >> missed that needs to be changed from minutes to seconds? >> > > Check your interval_length in nagios.cfg. That determines how long a > single unit it. > > If "30" gives you 30 minutes, then it's probably set to 60 (60 seconds/1 > minute). Sticking an "s" on your retry interval isn't going to change > anything; it'll just be ignored. > > You'll need to adjust your interval if you want things to happen in > under 1 time unit (in the default case, 60 seconds). > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > !DSPAM:37,45a033fa137101071920780! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 7 04:30:41 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Sat, 6 Jan 2007 22:30:41 -0500 Subject: System appears as down, but services are being monitored References: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> <459ECFDF.9040104@mailnetwork.co.uk> <459ED0DD.7040900@mailnetwork.co.uk> Message-ID: <9C63A4713C4E3342B90428CE44806A730D2F47@PHSXMB5.partners.org> Hi there -- What would the correct syntax be? This would apply to a Nagios 2.6 server. Thanks. -----Original Message----- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam-lists at mailnetwork.co.uk] Sent: Fri 1/5/2007 5:27 PM To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] System appears as down, but services are being monitored Andy Shellam (Mailing Lists) wrote: > Perhaps the definition for the check_host command for your host is wrong > or not succeeding, but your service commands are? > Sorry, that should be "check_command" for your host. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 7 11:32:58 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 7 Jan 2007 11:32:58 +0100 (CET) Subject: System appears as down, but services are being monitored In-Reply-To: <9C63A4713C4E3342B90428CE44806A730D2F47@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org> <459ECFDF.9040104@mailnetwork.co.uk> <459ED0DD.7040900@mailnetwork.co.uk> <9C63A4713C4E3342B90428CE44806A730D2F47@PHSXMB5.partners.org> Message-ID: On Sat, 6 Jan 2007, Kaplan, Andrew H. wrote: > What would the correct syntax be? This would apply to a Nagios 2.6 server. The one in the fine manual: http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Sun Jan 7 13:53:32 2007 From: dpthakar at hotmail.com (dhaval thakar) Date: Sun, 07 Jan 2007 12:53:32 +0000 Subject: nagios alerts to pc Message-ID: Dear All, I want to send host/service alters on Windows PC, is there any plugin available for the same?? Regards Dhaval _________________________________________________________________ Get FREE Web site and company branded e-mail from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Sun Jan 7 13:54:37 2007 From: dpthakar at hotmail.com (dhaval thakar) Date: Sun, 07 Jan 2007 12:54:37 +0000 Subject: nagios alerts to pc Message-ID: Dear All, I want to send alerts on windows PC, is there any plugin available for the same?? Regrdas Dhaval _________________________________________________________________ >From photos to predictions, The MSN Entertainment Guide to Golden Globes has it all. http://tv.msn.com/tv/globes2007/?icid=nctagline1 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From admitriev at mentora.com Sun Jan 7 16:54:55 2007 From: admitriev at mentora.com (Andrey Dmitriev) Date: Sun, 7 Jan 2007 10:54:55 -0500 Subject: Looking for a Nagios plugin to alarm on mgs in mailbox In-Reply-To: <001701c731b3$9ea7e9e0$6701a8c0@andreyT43> References: <001701c731b3$9ea7e9e0$6701a8c0@andreyT43> Message-ID: <002701c73274$2d10f670$6701a8c0@andreyT43> All, Is there are a Nagios Plugin that could check let's say a POP account, and if email arrives it would start utilizing its escalation mechanism? E.g. we have certain alerts coming from ArcServ backup failures, or emails from raid managers, or from disk arrays.. basically devices that are not possible to be monitored by nagios directly. Any other suggestions would be appreciated. Thanks, Andrey ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 7 17:21:07 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 7 Jan 2007 17:21:07 +0100 (CET) Subject: Looking for a Nagios plugin to alarm on mgs in mailbox In-Reply-To: <002701c73274$2d10f670$6701a8c0@andreyT43> References: <002701c73274$2d10f670$6701a8c0@andreyT43> Message-ID: On Sun, 7 Jan 2007, Andrey Dmitriev wrote: > Is there are a Nagios Plugin that could check let's say a POP account, and > if email arrives it would start utilizing its escalation mechanism? > > E.g. we have certain alerts coming from ArcServ backup failures, or emails > from raid managers, or from disk arrays.. basically devices that are not > possible to be monitored by nagios directly. > > Any other suggestions would be appreciated. This is not a recipy. But a global thought on how to do this: See if you put sort of script action to these messages. Something like procmail might be able to select the proper messages for this. Define passive services. Use the scripts to set the status of these passive checks. Another approach might be to use snmptraps. I think most of these device should be able to use snmptraps. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Sun Jan 7 18:03:27 2007 From: jperrin at gmail.com (Jim Perrin) Date: Sun, 7 Jan 2007 12:03:27 -0500 Subject: nagios alerts to pc In-Reply-To: References: Message-ID: <302ce8b50701070903q61bcea3bmffa32d886a506d66@mail.gmail.com> On 1/7/07, dhaval thakar wrote: > Dear All, > > I want to send host/service alters on Windows PC, > is there any plugin available for the same?? > Look at http://www.nagiosexchange.org/Notifications.35.0.html There are several things there which may do what you want. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 7 22:45:58 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Sun, 7 Jan 2007 16:45:58 -0500 Subject: System appears as down, but services are being monitored References: <9C63A4713C4E3342B90428CE44806A7302679B1D@PHSXMB5.partners.org><459ECFDF.9040104@mailnetwork.co.uk><459ED0DD.7040900@mailnetwork.co.uk><9C63A4713C4E3342B90428CE44806A730D2F47@PHSXMB5.partners.org> Message-ID: <9C63A4713C4E3342B90428CE44806A730D2F48@PHSXMB5.partners.org> I double-checked the syntax in the hosts.cfg of the host in question with that which is recommended by the Nagios manual. As far as I can tell, the settings match up. I've included an excerpt of the hosts.cfg file with this e-mail. It is shown below: # '' host definition define host{ use generic-host ; Name of host template to use host_name alias address parents check_command check-host-alive max_check_attempts 10 contact_groups nt-admins check_period 24x7 notification_interval 120 notification_period 24x7 notification_options d,u,r } The client system OS is Windows XP SP2. The client software being used with this host is NSClient 1.06. This software has worked well with Nagios 1.x. One question that comes to mind is its compatibility with Nagios 2.x. The check_nt commands have been added to the commands.cfg definition. The Nagios server is running version 2.6 on a Fedora Core 5 system. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net on behalf of Hugo van der Kooij Sent: Sun 1/7/2007 5:32 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] System appears as down, but services are being monitored On Sat, 6 Jan 2007, Kaplan, Andrew H. wrote: > What would the correct syntax be? This would apply to a Nagios 2.6 server. The one in the fine manual: http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjclep at yahoo.com Sun Jan 7 22:54:49 2007 From: jjclep at yahoo.com (John Johnson) Date: Sun, 7 Jan 2007 13:54:49 -0800 (PST) Subject: Return code of 137 is out of bounds Message-ID: <20070107215450.94324.qmail@web58801.mail.re1.yahoo.com> Hi, I am running nagios 1.3 and monitoring different services successfully. I have a problem with the service defined below, I am getting the error Return code of 137 is out of bounds. When I run the check_tcp command from the server I get an ok return. Can someone please help me resolve this issue. Thank you, JJ define service{ use generic-service host_name ldapsevr01 service_description OID is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 2 retry_check_interval 2 contact_groups Administrators notification_interval 0 notification_period 24x7 notification_options c,r check_command check_tcp!636!3!5 } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 7 23:55:14 2007 From: marc at ena.com (Marc Powell) Date: Sun, 7 Jan 2007 16:55:14 -0600 Subject: Return code of 137 is out of bounds Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of John Johnson > Sent: Sunday, January 07, 2007 3:55 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Return code of 137 is out of bounds > > Hi, > > I am running nagios 1.3 and monitoring different services successfully. > I have a problem with the service defined below, I am getting the error > Return code of 137 is out of bounds. 137 or 127? 137 is a very uncommon error. If running on Solaris, this FAQ may be relevant -- http://nagios.org/faqs/viewfaq.php?faq_id=17. If 127, it means that your command_line in your command{} definition is incorrect, specifically that the path to the plugin is incorrect or the plugin file name itself is incorrect. > When I run the check_tcp command from the server I get an ok return. > > Can someone please help me resolve this issue. You'll need to provide OS version, nagios version, how you installed nagios and the plugins (package or source), the command definition for check_tcp, the values for any macros used in that definition and the host definition for ldapsevr1 for us to guess much further. When you performed your test run of the plugin from the command line did you run it as the nagios user exactly as it's defined in your command{} definition? Running a plugin as the nagios user (as nagios does) can result in different behavior than if run as the root user. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikeh at muppetlabs.com Mon Jan 8 07:59:03 2007 From: mikeh at muppetlabs.com (Mike Hamrick) Date: Sun, 7 Jan 2007 22:59:03 -0800 Subject: Separate notification_interval for warnings? Message-ID: <200701080659.l086x3IN026297@muppetlabs.com> Howdy, I have nagios set up to send notifications every five minutes. This makes sense when a service is CRITICAL, but makes less sense when it is simpily WARNING. Warnings go to a separate email alias... every five minutes. Normally during the day I acknowledge them, but during the evening they can generate quite a lot of spam. I couldn't figure out a good way to solve this problem, so I ended up adding a new variable to nagios 2.6 called warn_notification_interval which only gets applied to services/hosts in the WARNING state. My question is, is this useful or is there an easier way to solve this problem I just couldn't think of? I'd be willing to create a patch for my changes if anyone is interested. Mike ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ashishagarwal80 at gmail.com Mon Jan 8 08:20:57 2007 From: ashishagarwal80 at gmail.com (Ashish Agarwal) Date: Mon, 8 Jan 2007 12:50:57 +0530 Subject: New Member Message-ID: Hello friends, I have joined this group today. I am interested to installation of Nagios at linux for monitoring the network. Can you help me in this. Thanking You Ashish Agarwal ashishagarwal80 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Mon Jan 8 08:30:48 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Sun, 7 Jan 2007 23:30:48 -0800 (PST) Subject: Separate notification_interval for warnings? In-Reply-To: <200701080659.l086x3IN026297@muppetlabs.com> References: <200701080659.l086x3IN026297@muppetlabs.com> Message-ID: <52074.192.168.128.27.1168241448.squirrel@ssl.monsoonwind.com> > I have nagios set up to send notifications every five minutes. This > makes sense when a service is CRITICAL, but makes less sense when it > is simpily WARNING. Warnings go to a separate email alias... every > five minutes. Normally during the day I acknowledge them, but during > the evening they can generate quite a lot of spam. I couldn't figure > out a good way to solve this problem, so I ended up adding a new > variable to nagios 2.6 called warn_notification_interval which only > gets applied to services/hosts in the WARNING state. This can be done via escalations. define serviceescalation{ host_name * service_description * contact_groups contactgroup_name first_notification 1 last_notification 0 notification_interval 60 escalation_period timeperiod_name escalation_options w } -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Mon Jan 8 12:06:45 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 8 Jan 2007 12:06:45 +0100 (MET) Subject: New Member In-Reply-To: References: Message-ID: <45A225C4.2090907@its-lehmann.de> Hi, On 1/8/2007 8:20 AM, Ashish Agarwal wrote: > Hello friends, > I have joined this group today. > I am interested to installation of Nagios at linux for monitoring the > network. > Can you help me in this. Use the packages for your distribution. Follow the manual. When you've got questions there will surely be someone who can help, but you'll have to be much more specific. Or pay someone ;-) Arno > Thanking You > Ashish Agarwal > ashishagarwal80 at gmail.com > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 8 13:22:10 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Jan 2007 13:22:10 +0100 Subject: New Member In-Reply-To: References: Message-ID: <45A23772.20109@op5.se> Ashish Agarwal wrote: > Hello friends, > I have joined this group today. Welcome. > I am interested to installation of Nagios at linux for monitoring the > network. Sounds like a good plan. > Can you help me in this. > Yes. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Mon Jan 8 14:09:12 2007 From: dan at langille.org (Dan Langille) Date: Mon, 08 Jan 2007 08:09:12 -0500 Subject: FreeBSD port of fruity Message-ID: <45A1FC28.23110.75749223@dan.langille.org> There is now a FreeBSD port for fruity: http://www.freshports.org/net-mgmt/fruity/ fruity? A PHP based web-frontend to your Nagios configuration. http://www.freshports.org/net-mgmt/fruity/ -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Mon Jan 8 16:38:57 2007 From: dschlecht at doit.nv.gov (David G Schlecht) Date: Mon, 8 Jan 2007 15:38:57 +0000 (UTC) Subject: external commands and segfault -- again References: <481EAEA6BAED9A4EAF26BA149197AA3E01A782C7@office1.online.krone.at> Message-ID: Helmut W. Januschka krone.at> writes: > > You may move the strlen() to a sperate variable > And after that reproduce the gbd session and use "info locales" to see > What are the actual values of the variables and maybe just the strlen fails > > Also try "print name1" and "print name1[i]" and look if there are some unterminated strings > > And backtrace to where the call to the hashfunc2 occurs and have a look at the value wich originally gots > sended in > > Maybe its just a old version or a bad implemantion of the tool submitting the external command (sure nagios > should do a segfault at all ;)) > Thanks for your reply, Helmut. From the segfault, it appears that both name1 and name2 are corrupt as both are outside the program's address space. Since name1 is received as a const, it's unlikely that this routine (hashfunc2) is causing the problem. The calling routine (find_service) doesn't change the contents of the variable so it's not likely the problem. Tracing all the way back, event_execution_loop seems the most likely cause of the segfault. However this is not a trivial routine and I'm not able to debug it. Is there anyone familiar enough with the code available to take a look? This problem doesn't occur with each external command, but only once every 200-300 times. Any help would be most appreciated. -Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 8 16:44:27 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 08 Jan 2007 15:44:27 +0000 Subject: Statusmap.cgi missing Message-ID: <45A266DB.1030102@googlemail.com> I am running Nagios 2.5 on gentoo but it seems that I don't have the statusmap.cgi. Looking in the filesystem it is indeed gone, but I don't know where it is gone and emerge doesn't show any USE flags that could account for this: # emerge -pv nagios-core These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-analyzer/nagios-core-2.5 USE="apache2 perl -debug -noweb" 0 kB Is the flat statusmap deprecated or something? If so then why is there a link in my nagios web interface so that I get a url not found error. Any Ideas? -- Hari Sekhon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 8 16:48:50 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Jan 2007 16:48:50 +0100 Subject: [Nagios-users] external commands and segfault -- again In-Reply-To: References: <481EAEA6BAED9A4EAF26BA149197AA3E01A782C7@office1.online.krone.at> Message-ID: <45A267E2.2010602@op5.se> David G Schlecht wrote: > Helmut W. Januschka krone.at> writes: > >> You may move the strlen() to a sperate variable >> And after that reproduce the gbd session and use "info locales" to see >> What are the actual values of the variables and maybe just the strlen fails >> >> Also try "print name1" and "print name1[i]" and look if there are some > unterminated strings >> And backtrace to where the call to the hashfunc2 occurs and have a look at > the value wich originally gots >> sended in >> >> Maybe its just a old version or a bad implemantion of the tool submitting the > external command (sure nagios >> should do a segfault at all ;)) >> > > > Thanks for your reply, Helmut. From the segfault, it appears that > both name1 and name2 are corrupt as both are outside the program's > address space. Since name1 is received as a const, it's unlikely > that this routine (hashfunc2) is causing the problem. The calling > routine (find_service) doesn't change the contents of the variable > so it's not likely the problem. Tracing all the way back, > event_execution_loop seems the most likely cause of the segfault. > However this is not a trivial routine and I'm not able to debug it. > Is there anyone familiar enough with the code available to take a look? > > This problem doesn't occur with each external command, but only > once every 200-300 times. > > Any help would be most appreciated. > I think you'd have better luck posting this to the nagios-devel list, so I'm cross-posting it there now. Provided you're subscribed there, we should be able to drop this from the nagios-users list where it really doesn't belong. Anyways... What command is being sent into the command-pipe when nagios crashes? Have you made any modifications to the code? Does this happen with latest CVS code (without any local modifications)? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV From jperrin at gmail.com Mon Jan 8 16:50:10 2007 From: jperrin at gmail.com (Jim Perrin) Date: Mon, 8 Jan 2007 10:50:10 -0500 Subject: Statusmap.cgi missing In-Reply-To: <45A266DB.1030102@googlemail.com> References: <45A266DB.1030102@googlemail.com> Message-ID: <302ce8b50701080750ke4f7234yc3d169fe9a939d24@mail.gmail.com> > I am running Nagios 2.5 on gentoo but it seems that I don't have the > statusmap.cgi. You're missing the build dependencies for statusmap most likely. > Looking in the filesystem it is indeed gone, but I don't know where it is > gone and emerge doesn't show any USE flags that could account for this: > # emerge -pv nagios-core You're relying on the gentoo folks to have calculated dependencies properly, and that may be more optimistic than you need to be. > Is the flat statusmap deprecated or something? If so then why is there a > link in my nagios web interface so that I get a url not found error. > > > > Any Ideas? Check to make sure that you have the appropriate gd, png, and jpg development libraries installed. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 8 16:51:30 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Jan 2007 16:51:30 +0100 Subject: Statusmap.cgi missing In-Reply-To: <45A266DB.1030102@googlemail.com> References: <45A266DB.1030102@googlemail.com> Message-ID: <45A26882.9090604@op5.se> Hari Sekhon wrote: > I am running Nagios 2.5 on gentoo but it seems that I don't have the > statusmap.cgi. > > Looking in the filesystem it is indeed gone, but I don't know where it > is gone and emerge doesn't show any USE flags that could account for this: > > # emerge -pv nagios-core > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > [ebuild R ] net-analyzer/nagios-core-2.5 USE="apache2 perl -debug > -noweb" 0 kB > > > Is the flat statusmap deprecated or something? If so then why is there a > link in my nagios web interface so that I get a url not found error. > I'm surprised that nagios-core brings in any gui at all. Seems like gentoo botched it here. Most other distros have nagios-core and nagios-gui. Only the gui requires apache. Nagios works just fine without it. Are there other nagios-* packages available for emerge'ing? If so, my guess is that the statusmap hides in one of those. > > Any Ideas? > Many. The most prominent one involves a game of pool and a large beer. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddunham at taos.com Mon Jan 8 16:53:48 2007 From: ddunham at taos.com (Darren Dunham) Date: Mon, 8 Jan 2007 07:53:48 -0800 (PST) Subject: Nagios Timezone In-Reply-To: from "Hugo van der Kooij" at Jan 06, 2007 10:31:31 AM References: Message-ID: <200701081553.HAA32486@redwood.taos.com> > Also notice that unless the TZ variable is set in the one-liner containing > the call to start Nagios it may have no effect whatsoever. > > $ TZ=America/Anchorage date > Sat Jan 6 00:21:33 AKST 2007 > > $ TZ=America/Anchorage > $ date > Sat Jan 6 10:27:35 CET 2007 All the one above does is set a shell variable. Just like any other environment variable you really need to make sure it's exported before trying to use it. $ TZ=America/Anchorage $ date # TZ not exported yet Mon Jan 8 07:48:52 PST 2007 $ export TZ # Now it's visible in the environment $ date Mon Jan 8 06:48:57 AKST 2007 -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ahmed.foued at gmail.com Mon Jan 8 16:57:03 2007 From: ahmed.foued at gmail.com (Ahmed Foued HAMED) Date: Mon, 8 Jan 2007 16:57:03 +0100 Subject: problem with statusmap.cgi Message-ID: hi; i have all the necessary lib's [root at xxxxxx root]# rpm -q gd gd-1.8.4-12 [root at xxxxxx root]# rpm -q gd-devel gd-devel-1.8.4-12 [root at xxxxxx root]# rpm -q libpng libpng-1.2.2-16 [root at xxxxxx root]# rpm -q libpng-devel libpng-devel-1.2.2-16 [root at xxxxxx root]# rpm -q libjpeg libjpeg-6b-30 [root at xxxxxx root]# rpm -q libjpeg-devel libjpeg-devel-6b-34 [root at xxxxxx root]# rpm -q zlib zlib-1.1.4-8.1 [root at xxxxxx root]# rpm -q zlib-devel zlib-devel-1.1.4-8.1 i have run the : make devclean ./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include make all make install but statusmap.cgi is not generated yet.... any help ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 8 17:02:15 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 08 Jan 2007 16:02:15 +0000 Subject: Statusmap.cgi missing In-Reply-To: <45A26882.9090604@op5.se> References: <45A266DB.1030102@googlemail.com> <45A26882.9090604@op5.se> Message-ID: <45A26B07.8070209@googlemail.com> a quick search shows that everything with the word nagios in it includes app-vim/nagios-syntax net-analyzer/nagios net-analyzer/nagios-core net-analyzer/nagios-imagepack net-analyzer/nagios-nrpe net-analyzer/nagios-nsca net-analyzer/nagios-plugins net-analyzer/nagios-sap-ccms-plugin net-analyzer/prelude-nagios of which I have net-analyzer/nagios net-analyzer/nagios-core net-analyzer/nagios-imagepack net-analyzer/nagios-nrpe net-analyzer/nagios-nsca net-analyzer/nagios-plugins installed. Hari Sekhon Andreas Ericsson wrote: > Hari Sekhon wrote: >> I am running Nagios 2.5 on gentoo but it seems that I don't have the >> statusmap.cgi. >> >> Looking in the filesystem it is indeed gone, but I don't know where >> it is gone and emerge doesn't show any USE flags that could account >> for this: >> >> # emerge -pv nagios-core >> >> These are the packages that would be merged, in order: >> >> Calculating dependencies... done! >> [ebuild R ] net-analyzer/nagios-core-2.5 USE="apache2 perl -debug >> -noweb" 0 kB >> >> >> Is the flat statusmap deprecated or something? If so then why is >> there a link in my nagios web interface so that I get a url not found >> error. >> > > I'm surprised that nagios-core brings in any gui at all. Seems like > gentoo botched it here. Most other distros have nagios-core and > nagios-gui. Only the gui requires apache. Nagios works just fine > without it. Are there other nagios-* packages available for > emerge'ing? If so, my guess is that the statusmap hides in one of those. > >> >> Any Ideas? >> > > Many. The most prominent one involves a game of pool and a large beer. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pvandenberg at mirabeau.nl Mon Jan 8 17:23:26 2007 From: pvandenberg at mirabeau.nl (Peter van den Berg) Date: Mon, 8 Jan 2007 17:23:26 +0100 Subject: Notification at beginning of service window Message-ID: Hi all I have defined a timeperiod within which I want to be notified of problems. When a problem arises during this period, I do get notified immediatly, so no problems there. However, if the problem starts outside this timeperiod, I am not notified at the beginning of the timeperiod. For instance: My service and host checks run 24x7 My timeperiod for notification is 08:00-18:00 My notification interval is 120 When a problem arises at 07:15, I get my first notification at 09:15 (120 minutes after first). However, I would like to get notified at 08:00 (without changing the interval) Is this possible? Details: Nagios 2.6 define timeperiod{ timeperiod_name 24x7 alias 24 Hours/day, 7 Days/week 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 sunday 00:00-24:00 } define timeperiod{ timeperiod_name test alias test monday 08:00-18:00 tuesday 08:00-18:00 wednesday 08:00-18:00 thursday 08:00-18:00 friday 08:00-18:00 saturday 08:00-18:00 sunday 08:00-18:00 } define contact{ contact_name sms alias SMS notificatie host_notification_period test service_notification_period test service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email *******@gin.nl } define contactgroup{ contactgroup_name sms alias sms notificatie members nagios,peter,sms } define service{ host_name watermeloen service_description PING max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options u,c,r,f check_command check_ping!100.0,20%!500.0,60% contact_groups sms } Thanks, Peter van den Berg Applicatiebeheerder Mirabeau | Application Management ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Mon Jan 8 17:53:06 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Mon, 8 Jan 2007 10:53:06 -0600 Subject: Separate notification_interval for warnings? Message-ID: HI, Does this actually work, define serviceescalation{ host_name * service_description * contact_groups contactgroup_name first_notification 1 last_notification 0 notification_interval 60 escalation_period timeperiod_name escalation_options w } I am looking for a way to do escalations, but I have many hosts and many contact groups. So I would like to do this by host so I can handle the escalations a little bit cleaner. I would like to do this define serviceescalation{ host_name my_server service_description * contact_groups unix_team first_notification 1 last_notification 10 notification_interval 60 escalation_period 24x7 } define serviceescalation{ host_name my_server service_description * contact_groups unix_supervisor first_notification 4 last_notification 10 notification_interval 60 escalation_period 24x7 } Or is there a better way to handle this? As always thanks in Advance for all the input. Luis Lacayo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 17:57:52 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 8 Jan 2007 07:57:52 -0900 Subject: Nagios Timezone In-Reply-To: <200701081558.HAA32582@redwood.taos.com> References: <200701081558.HAA32582@redwood.taos.com> Message-ID: <18EA9DB2-223B-4BB3-992E-B1E472593E85@frontierflying.com> Ack! Reply-all didn't include the mailing list. Fixed :) On Jan 8, 2007, at 6:58 AM, Darren Dunham wrote: >> Thanks, that's exactly what I needed to make it work. Although the >> Timezone files did exist on my system, attempting to use them in the >> TZ variable didn't work, as mentioned before. Using the explicit >> definition, however, once I managed to figure out what to enter for >> it, produced the desired result, with one caviat: I had to put AKST+9 >> rather than AKST-9, even though our offset is -9, not +9. > > It all depends on how you look at it. :-) POSIX defines timezones > such > that positive offsets are west and negative offsets east. Maybe you > think of it as what you have to add to the local timezone to get UTC. Ok, yeah, that makes sense. AK time +9=UTC. Guess I was just thinking about it backwards :) > >> Worked >> though, so I suppose in the long run it doesn't really matter :) Now >> I just have to figure out how to set that environment variable before >> Apache is launched at start up, since the rc.conf file that I edited >> to enable Apache on startup doesn't actually include the command line >> used to launch Apache-just the flags used when launching. > > It doesn't call 'httpd' or 'apachectl'? Either way you should be able > to set and export TZ before that point. rc.conf doesn't call either directly - it just has a httpd_flags="" entry, that when commented out disables the server, and when not commented out causes the server to start with whatever flags are on that line (-u, -DSSL, etc.) I'm sure apachectl or httpd is called somewhere, but I don't know from where- generally you just edit the rc.conf or rc.local files to enable/disable services. Now it may work to just put an "export TZ=..." line before the httpd_flags entry, but I haven't experimented with that yet. > > -- > Darren Dunham > ddunham at taos.com > Senior Technical Consultant TAOS http:// > www.taos.com/ > Got some Dr Pepper? San Francisco, CA bay > area > < This line left intentionally blank to confuse you. > ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobi at netshel.net Mon Jan 8 18:55:43 2007 From: bobi at netshel.net (bobi at netshel.net) Date: Mon, 8 Jan 2007 09:55:43 -0800 (PST) Subject: [Nagios-users] external commands and segfault -- again In-Reply-To: <45A267E2.2010602@op5.se> References: <481EAEA6BAED9A4EAF26BA149197AA3E01A782C7@office1.online.krone.at> <45A267E2.2010602@op5.se> Message-ID: <5732.216.49.181.128.1168278943.squirrel@webmail.netshel.net> Hey Fellow Nagios-ites: I've been having this *exact* same segfault problem for the last couple o' months. And, after looking at David's stack trace output, it is segfaulting for him in the exact same way/place as it is for me. Here's what I've found: The core dump's that I've examined are all segfaulting when handling the expiration of a scheduled downtime. Since David's stack trace looks identical to mine, I don't think it is in the external command processing, as he believes, but it is in the downtime expiration handling, as well. Having examined about a dozen of these identical core dumps, I see that it is a corruption of the entire sheduled_downtime structure that is being passed into the handled_scheduled_downtime() function. The handled_scheduled_downtime() function is being invoked by the high priority event processing logic in the event_execution_loop(). So it pulls a EVENT_SCHEDULED_DOWNTIME timed_event structure off of the high priority event list, and then hands it to handle_timed_event(), which in turns invoke the handle_scheduled_downtime() routine to handle the expiration of the specified downtime event. The problem is, the scheduled_downtime structure is already corrupted while sitting in the high_priority list - well before it is dequeued by the event_execution_loop() logic. I've walked the high priority list in memory with gdb to examine other timed_event structures and have noticed that only the scheduled_downtime structure associated with EVENT_SCHEDULED_DOWNTIME timed events are affected by the memory corruption. In fact, one time, I found nine scheduled downtime expiration event sequentially listed in the high priority list and the first three had their scheduled_downtime structures corrupted and the remaining six were in pristine condition. So, I've narrowed it down to a couple of possibilities (feel free to add your own!): 1. The scheduled_downtime structure is already corrupted when it is being added to the high priority timed event scheduling list, or 2. The scheduled_downtime structure is OK when it is added to the high priority list, but perhaps a bad pointer access is overwriting it with garbage at some other point in the program. This would might be somewhat painful to track down. Of the two, I suspect that the second one is the more likely candidate. Some other notes: 1. The timed event expirations that segfault Nagios seem to be "randomly" chosen. We have some regularly submitted (via cron) scheduled downtimes that will work fine for weeks, and then one of them will come up for expiration and trigger this scheduled-downtime-expiration bug. I've also seen it happen with ad-hoc scheduled downtime submissions via the CGI interface. I've seen it happen with "regular" scheduled downtimes as well as the new "triggered" scheduled downtime. We thought it might have been related to the new triggered downtime, since that was one of the first events causing a segfault. But then after eliminating the use of triggered downtimes altogether, the segfaults still occur with the regular scheduled downtime expirations. 2. I've had this problem with Nagios 2.4, 2.5 and 2.6. So, "upgrading" hasn't gotten rid of it. 3. We are currently running Nagios 2.6 on a 64-bit Linux platform: SLES-9 x86-64, Kernel 2.6.5-7.267-smp 4. We don't have any other segfault problems with other other apps on this system. So I'm still trying figure out *what* is overwriting the scheduled_downtime structures with garbage in memory. Any ideas, based upon this additional information? Thanks, Bob > David G Schlecht wrote: >> Helmut W. Januschka krone.at> writes: >> >>> You may move the strlen() to a sperate variable >>> And after that reproduce the gbd session and use "info locales" to see >>> What are the actual values of the variables and maybe just the strlen >>> fails >>> >>> Also try "print name1" and "print name1[i]" and look if there are some >> unterminated strings >>> And backtrace to where the call to the hashfunc2 occurs and have a >>> look at >> the value wich originally gots >>> sended in >>> >>> Maybe its just a old version or a bad implemantion of the tool >>> submitting the >> external command (sure nagios >>> should do a segfault at all ;)) >>> >> >> >> Thanks for your reply, Helmut. From the segfault, it appears that >> both name1 and name2 are corrupt as both are outside the program's >> address space. Since name1 is received as a const, it's unlikely >> that this routine (hashfunc2) is causing the problem. The calling >> routine (find_service) doesn't change the contents of the variable >> so it's not likely the problem. Tracing all the way back, >> event_execution_loop seems the most likely cause of the segfault. >> However this is not a trivial routine and I'm not able to debug it. >> Is there anyone familiar enough with the code available to take a look? >> >> This problem doesn't occur with each external command, but only >> once every 200-300 times. >> >> Any help would be most appreciated. >> > > I think you'd have better luck posting this to the nagios-devel list, so > I'm cross-posting it there now. Provided you're subscribed there, we > should be able to drop this from the nagios-users list where it really > doesn't belong. > > Anyways... > > What command is being sent into the command-pipe when nagios crashes? > Have you made any modifications to the code? > Does this happen with latest CVS code (without any local modifications)? > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV From ae at op5.se Mon Jan 8 18:25:26 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Jan 2007 18:25:26 +0100 Subject: Separate notification_interval for warnings? In-Reply-To: References: Message-ID: <45A27E86.30704@op5.se> Lacayo, Luis F wrote: > HI, > > Does this actually work, > fyi, all emails starting with (or containing this sentence) will get the standard response of TAFO (Try And Find Out). It would have taken you all of 30 seconds of your own time to test, as opposed to 30 seconds of mine to tell you to try it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 18:30:21 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 8 Jan 2007 08:30:21 -0900 Subject: check_mrtgtraf question Message-ID: <0F04F3B3-E482-4557-809A-24015453A008@frontierflying.com> Quick question- I currently use MRTG to monitor the traffic on a number of my routers, and then use the check_mrtgtraf Nagios plug-in to keep an eye on it. This plug-in has the dual benefit of watching the traffic on the routers as well as alerting me if MRTG stops functioning for some reason (by checking the age of the log files) I have been considering switching MRTG over to a RRD logging format, so I can use things like routers2 (http://www.steveshipway.org/software/ index2.html) as well as for performance (this whole setup is running on a 300 MHZ box), but I suspect this would break the check_mrtgtraf plug-in. Is this suspicion correct? I haven't been able to find any documentation to confirm or refute my suspicion. If correct, what other options might I have so as to not lose the monitoring functionality of the check_mrtgtraf plug-in? Thanks! ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 8 18:40:20 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Jan 2007 18:40:20 +0100 Subject: [Nagios-users] external commands and segfault -- again In-Reply-To: <5732.216.49.181.128.1168278943.squirrel@webmail.netshel.net> References: <481EAEA6BAED9A4EAF26BA149197AA3E01A782C7@office1.online.krone.at> <45A267E2.2010602@op5.se> <5732.216.49.181.128.1168278943.squirrel@webmail.netshel.net> Message-ID: <45A28204.9090807@op5.se> bobi at netshel.net wrote: > Hey Fellow Nagios-ites: > > I've been having this *exact* same segfault problem for the last couple o' > months. > > And, after looking at David's stack trace output, it is segfaulting for > him in the exact same way/place as it is for me. > > Here's what I've found: > > The core dump's that I've examined are all segfaulting when handling the > expiration of a scheduled downtime. > > Since David's stack trace looks identical to mine, I don't think it is in > the external command processing, as he believes, but it is in the downtime > expiration handling, as well. > > Having examined about a dozen of these identical core dumps, I see that it > is a corruption of the entire sheduled_downtime structure that is being > passed into the handled_scheduled_downtime() function. > > The handled_scheduled_downtime() function is being invoked by the high > priority event processing logic in the event_execution_loop(). So it > pulls a EVENT_SCHEDULED_DOWNTIME timed_event structure off of the high > priority event list, and then hands it to handle_timed_event(), which in > turns invoke the handle_scheduled_downtime() routine to handle the > expiration of the specified downtime event. > > The problem is, the scheduled_downtime structure is already corrupted > while sitting in the high_priority list - well before it is dequeued by > the event_execution_loop() logic. > > I've walked the high priority list in memory with gdb to examine other > timed_event structures and have noticed that only the scheduled_downtime > structure associated with EVENT_SCHEDULED_DOWNTIME timed events are > affected by the memory corruption. In fact, one time, I found nine > scheduled downtime expiration event sequentially listed in the high > priority list and the first three had their scheduled_downtime structures > corrupted and the remaining six were in pristine condition. > > > So, I've narrowed it down to a couple of possibilities (feel free to add > your own!): > > 1. The scheduled_downtime structure is already corrupted when it is being > added to the high priority timed event scheduling list, or > > > 2. The scheduled_downtime structure is OK when it is added to the high > priority list, but perhaps a bad pointer access is overwriting it with > garbage at some other point in the program. This would might be somewhat > painful to track down. > > > Of the two, I suspect that the second one is the more likely candidate. > I think the first, as it only happens with scheduled downtime stuff. Otherwise you'd see it on other high-prio events as well (unless you're extremely unlucky each time the crash happens). > > Some other notes: > > 1. The timed event expirations that segfault Nagios seem to be "randomly" > chosen. > > We have some regularly submitted (via cron) scheduled downtimes that will > work fine for weeks, and then one of them will come up for expiration and > trigger this scheduled-downtime-expiration bug. I've also seen it happen > with ad-hoc scheduled downtime submissions via the CGI interface. > > I've seen it happen with "regular" scheduled downtimes as well as the new > "triggered" scheduled downtime. We thought it might have been related to > the new triggered downtime, since that was one of the first events causing > a segfault. But then after eliminating the use of triggered downtimes > altogether, the segfaults still occur with the regular scheduled downtime > expirations. > > 2. I've had this problem with Nagios 2.4, 2.5 and 2.6. So, "upgrading" > hasn't gotten rid of it. > > 3. We are currently running Nagios 2.6 on a 64-bit Linux platform: SLES-9 > x86-64, Kernel 2.6.5-7.267-smp > This is the culprit, I guess. As this isn't a widespread problem, I wouldn't be surprised if it's related to 64-bit archs (kernel-2.6.5 is fairly ancient too, but that shouldn't matter as this is the only app you're seeing it in). I'm guessing this actually is an SMP-system and that SuSE doesn't install SMP kernels on all systems, correct? If so, this could also be a source of problem for you. Nagios doesn't follow the pthread guidelines very closely and does some pretty inappropriate things post-fork() for being a threaded application. This could be one of those problems that doesn't happen on single-cpu systems because the only cpu doesn't have anything to compete with when racing for the memory. > 4. We don't have any other segfault problems with other other apps on this > system. > > > So I'm still trying figure out *what* is overwriting the > scheduled_downtime structures with garbage in memory. > > Any ideas, based upon this additional information? > Upgrade glibc and the kernel and pray. Other than that, I guess running it in valgrind and/or gdb for a long period of time or chucking assert()'s and printf()'s at the Nagios code and seeing where it breaks is the only solution. btw, thanks for the nicely detailed problem report. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV From gwcook at arcadis-us.com Mon Jan 8 18:44:41 2007 From: gwcook at arcadis-us.com (Cook, Garry) Date: Mon, 8 Jan 2007 10:44:41 -0700 Subject: check_mrtgtraf question In-Reply-To: <0F04F3B3-E482-4557-809A-24015453A008@frontierflying.com> References: <0F04F3B3-E482-4557-809A-24015453A008@frontierflying.com> Message-ID: <38D6D515FC15924693F2640881AF4620AEDE00@corpexbe2.arcadis-us.com> -----Original Message----- >Quick question- I currently use MRTG to monitor the traffic on a number of my routers, and [snip] >I have been considering switching MRTG over to a RRD logging format, so I can use things [snip] >what other options might I have so as to not lose the monitoring functionality of the check_mrtgtraf plug-in? Thanks! There might be other plugins out there that monitor RRDs, I'm not sure. I wrote one a while back for use on datacenter switch uplinks. It's a simple shell script plugin, but you might find it useful. Feel free to hack away and release it if you and/or others might find it useful. #!/bin/sh ######################################################################## ######## # # CHECK_RRD_BW plugin for Nagios # # Written by Garry W. Cook # # # Description: # This plugin will read the current value from an rrd file and compare with # warning and critical values, for either inbound or outbound bandwidth # parameters. # # Notes: # - This plugin requires: # rrdtool # awk # # # Example checkcommands.cfg entry: # # 'check_rrd' command definition #define command{ # command_name check_rrd_bw.sh # command_line $USER1$/check_rrd $ARG1$ $ARG2$ $ARG3$ $ARG4$ [$ARG5$] # } # # # Edit the following variables to match your system. # RRDTOOL Binary Directory RRDTOOL="/usr/local/rrdtool/bin" # RRD Files Directory RRDFILES="/var/www/html/mrtg/rrdfiles" # # Nothing to change below this line # PROGNAME=`basename $0` PROGPATH=`echo $0 | /bin/sed -e 's,[\\/][^\\/][^\\/]*$,,'` REVISION=`echo '$Revision: 1.4 $' | sed -e 's/[^0-9.]//g'` . $PROGPATH/utils.sh print_usage() { echo "" echo "Usage:" echo " $0 [-bkmg] " echo " $0 (-V | --version)" echo " $0 (-h | --help)" echo "" # Need to change this to ranges in future echo "Warning and critical thresholds are MAX values," echo "going above the threshold will trigger an alert." echo "" echo "Labels and multiplier for warning and critical values" echo "are determined by the first argument:" echo "B=bps; K=Kbps (Default); M=Mbps; G=Gbps" echo "" } print_help() { print_revision $PROGNAME $REVISION print_usage echo "Nagios Plugin: Check Bandwidth within an RRD." echo "" support } exitstatus=$STATE_UNKNOWN #default # Check for --help, etc. case $1 in -V) print_revision exit $STATE_UNKNOWN ;; --version) print_revision exit $STATE_UNKNOWN ;; -h) print_help exit $STATE_UNKNOWN ;; --help) print_help exit $STATE_UNKNOWN ;; esac # Verify correct number of arguments if [ $# -lt 4 ]; then print_usage exit $STATE_UNKNOWN fi while [ $# -eq 5 ];do case $1 in B) LABEL="" DIV="1000" ;; K) LABEL="$1" DIV="100000" ;; M) LABEL="$1" DIV="1000000" ;; G) LABEL="$1" DIV="1000000000" ;; *) echo "$1 not a valid Label/Multiplier" exit $STATE_UNKNOWN ;; esac shift done FILE=$1 BW=$2 WARNING=$3 CRITICAL=$4 ######################################################################## ####################### # Hmmm... Am I multiplying by 8 to get Bytes and then dividing by an extra 100 to get bits??? # ######################################################################## ####################### # Verify file exists and calculate current inbound or outbound bandwidth if [ -e "$RRDFILES/$FILE" ]; then if [ $BW = "in" ]; then VALUE="$($RRDTOOL/rrdtool fetch $RRDFILES/$FILE AVERAGE -s -5minutes | awk 'BEGIN { IFS=":" } NR==3 { printf("%d\n", $2 * 8) }')" elif [ $BW = "out" ]; then VALUE="$($RRDTOOL/rrdtool fetch $RRDFILES/$FILE AVERAGE -s -5minutes | awk 'BEGIN { IFS=":" } NR==3 { printf("%d\n", $3 * 8) }')" fi if [ $(($VALUE/${DIV:-100000})) -gt $CRITICAL ]; then echo "CRITICAL - Current BW $BW: $(($VALUE/${DIV:-100000}))"${LABEL:-K}"bps" exit $STATE_CRITICAL elif [ $(($VALUE/${DIV:-100000})) -gt $WARNING ]; then echo "WARNING - Current BW $BW: $(($VALUE/${DIV:-100000}))"${LABEL:-K}"bps" exit $STATE_WARNING else echo "OK - Current BW $BW: $(($VALUE/${DIV:-100000}))"${LABEL:-K}"bps" exit $STATE_OK fi else echo "$RRDFILES/$FILE does not exist." exit $STATE_UNKNOWN fi exit $exitstatus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Mon Jan 8 18:53:19 2007 From: dschlecht at doit.nv.gov (David G. Schlecht) Date: Mon, 8 Jan 2007 09:53:19 -0800 Subject: [Nagios-devel] external commands and segfault -- again In-Reply-To: <45A28204.9090807@op5.se> References: <45A28204.9090807@op5.se> Message-ID: <6DB6E1ED582EFE45BE27468BD45B982F0E033BBF@MX1.STATE.NV.US> > > 2. I've had this problem with Nagios 2.4, 2.5 and 2.6. So, > "upgrading" > > hasn't gotten rid of it. > > > > 3. We are currently running Nagios 2.6 on a 64-bit Linux platform: > > SLES-9 x86-64, Kernel 2.6.5-7.267-smp > > > > This is the culprit, I guess. As this isn't a widespread > problem, I wouldn't be surprised if it's related to 64-bit > archs (kernel-2.6.5 is fairly ancient too, but that shouldn't > matter as this is the only app you're seeing it in). > > I'm guessing this actually is an SMP-system and that SuSE > doesn't install SMP kernels on all systems, correct? If so, > this could also be a source of problem for you. Nagios > doesn't follow the pthread guidelines very closely and does > some pretty inappropriate things post-fork() for being a > threaded application. This could be one of those problems > that doesn't happen on single-cpu systems because the only > cpu doesn't have anything to compete with when racing for the memory. > I've seen this problem on every platform I've used, including z/os, 32-bit 64-bit, sles, RedHat... I'll admit that the problems with the older platforms and Nagios versions (v1.2 and up) may have been different though they all appeared to fail the same to me. My first guess was SLES threading so I ported to RH and still no happiness. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 19:56:36 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 8 Jan 2007 19:56:36 +0100 (CET) Subject: Nagios Timezone In-Reply-To: <200701081553.HAA32486@redwood.taos.com> References: <200701081553.HAA32486@redwood.taos.com> Message-ID: On Mon, 8 Jan 2007, Darren Dunham wrote: >> Also notice that unless the TZ variable is set in the one-liner containing >> the call to start Nagios it may have no effect whatsoever. >> >> $ TZ=America/Anchorage date >> Sat Jan 6 00:21:33 AKST 2007 >> >> $ TZ=America/Anchorage >> $ date >> Sat Jan 6 10:27:35 CET 2007 > > All the one above does is set a shell variable. Just like any other > environment variable you really need to make sure it's exported before > trying to use it. > > $ TZ=America/Anchorage > $ date # TZ not exported yet > Mon Jan 8 07:48:52 PST 2007 > $ export TZ # Now it's visible in the environment > $ date > Mon Jan 8 06:48:57 AKST 2007 I know that. But exporting a variable means it will be there for any follow-up command as well. And there are some cases where that is not what one wants. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 19:58:48 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 8 Jan 2007 19:58:48 +0100 (CET) Subject: problem with statusmap.cgi In-Reply-To: References: Message-ID: On Mon, 8 Jan 2007, Ahmed Foued HAMED wrote: > i have all the necessary lib's > > [root at xxxxxx root]# rpm -q gd > gd-1.8.4-12 > [root at xxxxxx root]# rpm -q gd-devel > gd-devel-1.8.4-12 > [root at xxxxxx root]# rpm -q libpng > libpng-1.2.2-16 > [root at xxxxxx root]# rpm -q libpng-devel > libpng-devel-1.2.2-16 > [root at xxxxxx root]# rpm -q libjpeg > libjpeg-6b-30 > [root at xxxxxx root]# rpm -q libjpeg-devel > libjpeg-devel-6b-34 > [root at xxxxxx root]# rpm -q zlib > zlib-1.1.4-8.1 > [root at xxxxxx root]# rpm -q zlib-devel > zlib-devel-1.1.4-8.1 > > > i have run the : > > make devclean > ./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include > make all > make install Hold on. Does this mean you have packages that install in /usr/local? I find that somewhat unlikely. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Mon Jan 8 20:31:17 2007 From: teng at dataway.com (Tedman Eng) Date: Mon, 8 Jan 2007 11:31:17 -0800 Subject: Nagios Timezone Message-ID: > On Mon, 8 Jan 2007, Darren Dunham wrote: > > >> Also notice that unless the TZ variable is set in the > one-liner containing > >> the call to start Nagios it may have no effect whatsoever. > >> > >> $ TZ=America/Anchorage date > >> Sat Jan 6 00:21:33 AKST 2007 > >> > >> $ TZ=America/Anchorage > >> $ date > >> Sat Jan 6 10:27:35 CET 2007 > > > > All the one above does is set a shell variable. Just like any other > > environment variable you really need to make sure it's > exported before > > trying to use it. > > > > $ TZ=America/Anchorage > > $ date # TZ not exported yet > > Mon Jan 8 07:48:52 PST 2007 > > $ export TZ # Now it's visible in the environment > > $ date > > Mon Jan 8 06:48:57 AKST 2007 > > I know that. But exporting a variable means it will be there for any > follow-up command as well. And there are some cases where > that is not what > one wants. > > Hugo. I'm jumping into this a little late, so pardon if this has been mentioned already. It may be easier to set the timezone for the entire OS rather than just individual environments. In Redhat-based systems, the system timezone file is called "/etc/localtime". This file is either a symlink or a copy of the proper timezone file, located in "/usr/share/zoneinfo/". To set "Ancorage time" as the local system time globally, do this: # cp /usr/share/zoneinfo/America/Anchorage /etc/localtime Other distributions follow similar convention, though file locations may vary slightly. -Tedman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danno at appliedi.net Mon Jan 8 20:46:28 2007 From: danno at appliedi.net (Dan Farrell) Date: Mon, 8 Jan 2007 14:46:28 -0500 Subject: New Member In-Reply-To: <45A23772.20109@op5.se> References: <45A23772.20109@op5.se> Message-ID: I'm a new member to this list as well... just wanted to jump on the bandwagon and say 'hello'... so, hello! About Me- I run Nagios on Fedora Core and OpenBSD and absolutely love it. We are a webhosting company in South Florida and we monitor internet connections, outside hosts, core internal servers and their respective services. We also monitor a wireless network and tie in the monitored hosts with cacti graphing related to them. I can't wait for 3.0 to come out without the C coded cgi's. Dan Farrell Applied Innovations danno at appliedi.net > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andreas Ericsson > Sent: Monday, January 08, 2007 7:22 AM > To: Ashish Agarwal > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] New Member > > Ashish Agarwal wrote: > > Hello friends, > > I have joined this group today. > > Welcome. > > > I am interested to installation of Nagios at linux for monitoring the > > network. > > Sounds like a good plan. > > > Can you help me in this. > > > > Yes. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 21:07:14 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 8 Jan 2007 11:07:14 -0900 Subject: Nagios Timezone In-Reply-To: References: Message-ID: On Jan 8, 2007, at 10:31 AM, Tedman Eng wrote: > I'm jumping into this a little late, so pardon if this has been > mentioned already. > It may be easier to set the timezone for the entire OS rather than > just > individual environments. > > In Redhat-based systems, the system timezone file is called > "/etc/localtime". This file is either a symlink or > a copy of the proper timezone file, located in "/usr/share/zoneinfo/". > To set "Ancorage time" as the local system time globally, do this: > > # cp /usr/share/zoneinfo/America/Anchorage /etc/localtime > > > Other distributions follow similar convention, though file > locations may > vary slightly. > > -Tedman Ok, looks like I've got things figured out here. The problem appears to stem from Apache being chrooted, specifically that the Nagios CGI's, running under the Apache chroot, can't see the /etc/localtime file. When I copy the /etc/localtime file to /var/www/etc/localtime (inside the Apache chroot), Nagios now shows the correct time. Remove /var/www/etc/localtime, and Nagios goes back to showing GMT, even without restarting Nagios or Apache. It seems to me that this is an issue with the Nagios package distributed with OpenBSD 4.0- that file should have been linked into the chroot with the Nagios install, just like the /etc/nagios directory was. At any rate, problem solved. Thanks for the suggestions and help! ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 8 21:32:25 2007 From: marc at ena.com (Marc Powell) Date: Mon, 8 Jan 2007 14:32:25 -0600 Subject: New Member Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Dan Farrell > Sent: Monday, January 08, 2007 1:46 PM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] New Member > > I'm a new member to this list as well... just wanted to jump on the > bandwagon and say 'hello'... so, hello! > Welcome! > cacti graphing related to them. I can't wait for 3.0 to come out without > the C coded cgi's. Hopefully no breath-holding here... Latest word is that "official" replacement has been pushed back to 4.0 ;) http://www.netways.de/uploads/media/Ethan.Galstad_Nagios.3.and.Beyond.pd f (Sept 2006) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danno at appliedi.net Mon Jan 8 22:14:02 2007 From: danno at appliedi.net (Dan Farrell) Date: Mon, 8 Jan 2007 16:14:02 -0500 Subject: New Member In-Reply-To: References: Message-ID: That page is not accessible, but I doubt that means it'll be in 3.0 anyway lol... Dan Farrell Applied Innovations danno at appliedi.net > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Monday, January 08, 2007 3:32 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] New Member > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Dan Farrell > > Sent: Monday, January 08, 2007 1:46 PM > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] New Member > > > > I'm a new member to this list as well... just wanted to jump on the > > bandwagon and say 'hello'... so, hello! > > > > Welcome! > > > cacti graphing related to them. I can't wait for 3.0 to come out > without > > the C coded cgi's. > > Hopefully no breath-holding here... Latest word is that "official" > replacement has been pushed back to 4.0 ;) > > http://www.netways.de/uploads/media/Ethan.Galstad_Nagios.3.and.Beyond.pd > f (Sept 2006) > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Mon Jan 8 22:33:12 2007 From: jpratt at norwich.edu (James E. Pratt) Date: Mon, 8 Jan 2007 16:33:12 -0500 Subject: New Member In-Reply-To: References: Message-ID: <6EEFEBFF8DD65C478E0BB75BEB90A6DEA0239E@XMAIL.norwich.edu> Put a lower-cased f on the end of the link,,, it got chopped off.. http://www.netways.de/uploads/media/Ethan.Galstad_Nagios.3.and.Beyond.pd f Regards, jamie -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dan Farrell Sent: Monday, January 08, 2007 4:14 PM To: Marc Powell; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] New Member That page is not accessible, but I doubt that means it'll be in 3.0 anyway lol... Dan Farrell Applied Innovations danno at appliedi.net > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Monday, January 08, 2007 3:32 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] New Member > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Dan Farrell > > Sent: Monday, January 08, 2007 1:46 PM > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] New Member > > > > I'm a new member to this list as well... just wanted to jump on the > > bandwagon and say 'hello'... so, hello! > > > > Welcome! > > > cacti graphing related to them. I can't wait for 3.0 to come out > without > > the C coded cgi's. > > Hopefully no breath-holding here... Latest word is that "official" > replacement has been pushed back to 4.0 ;) > > http://www.netways.de/uploads/media/Ethan.Galstad_Nagios.3.and.Beyond.pd > f (Sept 2006) > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 23:35:40 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 8 Jan 2007 23:35:40 +0100 (CET) Subject: Nagios Timezone In-Reply-To: References: Message-ID: On Mon, 8 Jan 2007, Israel Brewster wrote: > Ok, looks like I've got things figured out here. The problem appears > to stem from Apache being chrooted, specifically that the Nagios > CGI's, running under the Apache chroot, can't see the /etc/localtime > file. When I copy the /etc/localtime file to /var/www/etc/localtime > (inside the Apache chroot), Nagios now shows the correct time. > Remove /var/www/etc/localtime, and Nagios goes back to showing GMT, > even without restarting Nagios or Apache. It seems to me that this is > an issue with the Nagios package distributed with OpenBSD 4.0- that > file should have been linked into the chroot with the Nagios install, > just like the /etc/nagios directory was. At any rate, problem solved. Sounds to me /var/www is the domain for apache. So if anyone should link it then it would be part of the chrooted apache. But considering one might run servers for different timezones on 1 system it is propably left to the admin on purpose. (Today Alaska, tommorow Japan? ;-) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 8 23:38:44 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 8 Jan 2007 23:38:44 +0100 (CET) Subject: New Member In-Reply-To: <6EEFEBFF8DD65C478E0BB75BEB90A6DEA0239E@XMAIL.norwich.edu> References: <6EEFEBFF8DD65C478E0BB75BEB90A6DEA0239E@XMAIL.norwich.edu> Message-ID: On Mon, 8 Jan 2007, James E. Pratt wrote: > Put a lower-cased f on the end of the link,,, it got chopped off.. > > http://www.netways.de/uploads/media/Ethan.Galstad_Nagios.3.and.Beyond.pd > f And again. But that is Outlook for you. it tries to be smart about URL's but behaves ..... (well, not so smart ;-) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jan 9 01:04:23 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 8 Jan 2007 15:04:23 -0900 Subject: Nagios Timezone In-Reply-To: References: Message-ID: <1DCAE91C-A192-4212-BD00-C299A590EABA@frontierflying.com> On Jan 8, 2007, at 1:35 PM, Hugo van der Kooij wrote: > Sounds to me /var/www is the domain for apache. So if anyone should > link > it then it would be part of the chrooted apache. > > But considering one might run servers for different timezones on 1 > system > it is propably left to the admin on purpose. (Today Alaska, tommorow > Japan? ;-) > > Hugo. hmm...Japan....Nah, I'll stick to Alaska :) Anyway, yeah, /var/www is the "root" for Apache. The issue, however, appears to lie not with Apache specifically, but with Nagios. The timestamps that Apache puts in its log files show the correct timezone, so the server itself is seeing the correct timezone. On the other hand, I suspect that unless Nagios is doing something weird (which, from what I have been told, it isn't) any other CGI that attempted to get the time would have the same issue. So who's fault is it really? In my opinion, I would think that since the Nagios CGI's need the file to display the time correctly, it should have been linked/copied by the Nagios installer. By default, Apache would have no need for this file, so I can understand the Apache install not doing it. I suppose there might be SOME reason that the Nagios package maintainer decided not to link or copy this file by default, but such a reason eludes me. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Tue Jan 9 08:18:38 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 9 Jan 2007 02:18:38 -0500 Subject: Splitting files Message-ID: <7abcf48e0701082318p73bb04c3w5d48da1aea0edf1f@mail.gmail.com> Hey everyone here is a question i have nagios working but how do you do this below spliting these files into its own like minimal.cfg thanks # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. #cfg_file=/etc/nagios/minimal.cfg cfg_file=/etc/nagios/contactgroups.cfg cfg_file=/etc/nagios/contacts.cfg #cfg_file=/etc/nagios/dependencies.cfg #cfg_file=/etc/nagios/escalations.cfg cfg_file=/etc/nagios/hostgroups.cfg cfg_file=/etc/nagios/hosts.cfg cfg_file=/etc/nagios/services.cfg cfg_file=/etc/nagios/timeperiods.cfg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ismail at habari.co.tz Tue Jan 9 08:38:39 2007 From: ismail at habari.co.tz (Ismail M. Settenda) Date: Tue, 9 Jan 2007 10:38:39 +0300 Subject: Splitting files In-Reply-To: <7abcf48e0701082318p73bb04c3w5d48da1aea0edf1f@mail.gmail.com> References: <7abcf48e0701082318p73bb04c3w5d48da1aea0edf1f@mail.gmail.com> Message-ID: <3c1cf0fd0701082338r43503625l6ce8c400a7964fd2@mail.gmail.com> My understanding was that instead of having all the cfg options i.e contactgroups.cfg in one file (objects.cfg). One can split these to different files as specified in nagios.cfg. So that you don't have one lengthy file and locating/editing particular issues becomes easier. -- Ismail On 1/9/07, Nedim Bicic wrote: > > Hey everyone here is a question i have nagios working but how > do you do this below spliting these files into its own like minimal.cfg > > thanks > > > # You can split other types of object definitions across several > # config files if you wish (as done here), or keep them all in a > # single config file. > > #cfg_file=/etc/nagios/minimal.cfg > > cfg_file=/etc/nagios/contactgroups.cfg > cfg_file=/etc/nagios/contacts.cfg > #cfg_file=/etc/nagios/dependencies.cfg > #cfg_file=/etc/nagios/escalations.cfg > cfg_file=/etc/nagios/hostgroups.cfg > cfg_file=/etc/nagios/hosts.cfg > cfg_file=/etc/nagios/services.cfg > cfg_file=/etc/nagios/timeperiods.cfg > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 10:21:21 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 09:21:21 +0000 Subject: Splitting files In-Reply-To: <3c1cf0fd0701082338r43503625l6ce8c400a7964fd2@mail.gmail.com> References: <7abcf48e0701082318p73bb04c3w5d48da1aea0edf1f@mail.gmail.com> <3c1cf0fd0701082338r43503625l6ce8c400a7964fd2@mail.gmail.com> Message-ID: <45A35E91.5010100@mailnetwork.co.uk> To make things easier in nagios.cfg, you can create a subfolder - put any *.cfg files in it, and add "cfg_dir=" into nagios.cfg instead of a ton of "cfg_file" directives. When Nagios starts it will load any *.cfg from your subfolder dynamically saving you the hassle of having to remember to add a new config file into nagios.cfg. Ismail M. Settenda wrote: > My understanding was that instead of having all the cfg options i.e > contactgroups.cfg in one file (objects.cfg). One can split these to > different files as specified in nagios.cfg. > > So that you don't have one lengthy file and locating/editing > particular issues becomes easier. > > -- > Ismail > > On 1/9/07, *Nedim Bicic* > > wrote: > > Hey everyone here is a question i have nagios working but how > do you do this below spliting these files into its own like > minimal.cfg > > thanks > > > # You can split other types of object definitions across several > # config files if you wish (as done here), or keep them all in a > # single config file. > > #cfg_file=/etc/nagios/minimal.cfg > > > cfg_file=/etc/nagios/contactgroups.cfg > cfg_file=/etc/nagios/contacts.cfg > #cfg_file=/etc/nagios/dependencies.cfg > #cfg_file=/etc/nagios/escalations.cfg > cfg_file=/etc/nagios/hostgroups.cfg > cfg_file=/etc/nagios/hosts.cfg > > cfg_file=/etc/nagios/services.cfg > cfg_file=/etc/nagios/timeperiods.cfg > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > !DSPAM:37,45a346a4137101011318293! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45a346a4137101011318293! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a346a4137101011318293! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Tue Jan 9 10:25:12 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Tue, 9 Jan 2007 10:25:12 +0100 Subject: Performance issues, too In-Reply-To: References: <59892.192.168.128.27.1166956533.squirrel@ssl.monsoonwind.com> <200612241228.10211.pitchfork@ederdrom.de> <36122.192.168.128.27.1167042462.squirrel@ssl.monsoonwind.com> <20061225110626.GA14665@eric.schwarzvogel.de> <48036.192.168.128.27.1167117823.squirrel@ssl.monsoonwind.com> <20061226102039.GA15003@eric.schwarzvogel.de> Message-ID: <20070109092512.GA5355@eric.schwarzvogel.de> Hi! On Tue, 02 Jan 2007, Daniel Meyer wrote: > Program Running Time: 10d 21h 22m 42s > > So, for almost eleven days nagios runs smoothly now, no more > latency problems. I'll try it again with EPN (but still without > perlcache) now. I've finally gotten around to recompile Nagios without EPN and without the Perlcache. As you can see on these graphs: http://eric.schwarzvogel.de/~klausman/nagios-perf-3/ (especially http://eric.schwarzvogel.de/~klausman/nagios-perf-3/latencies.png ) I didn't quite help (much). While the curve now has a flatter slope and it even goes down in spots, it still seems to ever increase on the whole. Even it would stay on the level we saw last night (~100s check latency) I wouldn't be too happy. With a 300s check interval, 100s latency is just too much (IMHO). What's left is enabling Perlcache again (yet keeping EPN off). I'm not terribly hopeful that that will help, but I'm running out of ideas quickly. Also note that switching *off* EPN/PC led to *less* CPU usage. Strange, isn't it? Regards, Tobias -- Never touch a burning system. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ml at bortal.de Tue Jan 9 12:34:00 2007 From: ml at bortal.de (mario) Date: Tue, 09 Jan 2007 12:34:00 +0100 Subject: Parents on ubuntu Message-ID: <45A37DA8.2080306@bortal.de> Hello List, i have my nagios box in an internal network and i monitor "out to the world". Sometimes our internet connections is down for some minutes, and i get like 40 Mails with alerts. Thats when the parent dependecy gets intresting. I read the docs to understand the differences. I am quite sure i want to use the child/parent structure in my case. Nagio-Box --> Router/Firewall --> A-FEW-Hosts I am running Ubuntu breezy with nagios 1.3-cvs.20050402-4ubuntu3.2. define host{ use generic-host ; Name of host template to use host_name service.server.de address service.server.de check_command check-host-alive max_check_attempts 20 notification_interval 5 notification_period 24x7 notification_options d,u,r parents provider-gateway } The exspected parent feature does not work though. If my internet connection fails, i still get a error msg for each host, instead from the parent "provider-gateway". What am i doning wrong? Thanks, Mario ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 9 13:38:49 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 09 Jan 2007 13:38:49 +0100 Subject: Parents on ubuntu In-Reply-To: <45A37DA8.2080306@bortal.de> References: <45A37DA8.2080306@bortal.de> Message-ID: <45A38CD9.10508@op5.se> mario wrote: > Hello List, > > i have my nagios box in an internal network and i monitor "out to the > world". Sometimes our internet connections is down for some minutes, and > i get like 40 Mails with alerts. > > Thats when the parent dependecy gets intresting. I read the docs to > understand the differences. I am quite sure i want to use the > child/parent structure in my case. > > Nagio-Box --> Router/Firewall --> A-FEW-Hosts > > I am running Ubuntu breezy with nagios 1.3-cvs.20050402-4ubuntu3.2. > > define host{ > use generic-host ; Name of host > template to use > host_name service.server.de > address service.server.de > check_command check-host-alive > max_check_attempts 20 > notification_interval 5 > notification_period 24x7 > notification_options d,u,r > parents provider-gateway > } > > > The exspected parent feature does not work though. If my internet > connection fails, i still get a error msg for each host, instead from > the parent "provider-gateway". > What am i doning wrong? > You've added "u" to the notification_options, explicitly telling Nagios that you want it to notify you for hosts that are down even if its parent is down as well. Hardly any users at all *really* wants "u" in their notification_options. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 13:41:48 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 12:41:48 +0000 Subject: Parents on ubuntu In-Reply-To: <45A37DA8.2080306@bortal.de> References: <45A37DA8.2080306@bortal.de> Message-ID: <45A38D8C.1010601@mailnetwork.co.uk> There is a much newer version of Nagios available, plus the version you've reported appears to a CVS export, not a stable release. Try downloading and compiling 2.6 from www.nagios.org and try again - note you will possibly need to adjust your configs to suit Nagios 2.x, but not by much. Note you are also including "u" in your notification_options for the host - this means that if the host is unreachable (ie. parent hosts are down) you will still get a notification. I'd set "notification_options d,r" in your generic-host template and remove the override per host. Regards Andy mario wrote: > Hello List, > > i have my nagios box in an internal network and i monitor "out to the > world". Sometimes our internet connections is down for some minutes, and > i get like 40 Mails with alerts. > > Thats when the parent dependecy gets intresting. I read the docs to > understand the differences. I am quite sure i want to use the > child/parent structure in my case. > > Nagio-Box --> Router/Firewall --> A-FEW-Hosts > > I am running Ubuntu breezy with nagios 1.3-cvs.20050402-4ubuntu3.2. > > define host{ > use generic-host ; Name of host > template to use > host_name service.server.de > address service.server.de > check_command check-host-alive > max_check_attempts 20 > notification_interval 5 > notification_period 24x7 > notification_options d,u,r > parents provider-gateway > } > > > The exspected parent feature does not work though. If my internet > connection fails, i still get a error msg for each host, instead from > the parent "provider-gateway". > What am i doning wrong? > > Thanks, Mario > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a37de4137102559373519! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Tue Jan 9 13:47:48 2007 From: dpthakar at hotmail.com (Dhaval Thakar) Date: Tue, 9 Jan 2007 18:17:48 +0530 Subject: Fw: nagios alerts to pc Message-ID: Hi, Thanks for the reply, I tried configuring alters using smbclient as mentioned in the following URL. http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php?file=uploads/tx_netnagext_pi1/Net_send_notification/configuration.txt&ext=.txt I checked following "smbclient -M adminmachine -I adminip" is working properly. redirecting output of the to log file, does not shows any input to the file. command_line /bin/echo '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/smbclient -M netbios_name_of_client -U NAGIOS >> /tmp/smbclient.log i suspect there must some problem with contact configuration. define contact{ contact_name nagios-fw1 alias Nagios fw1 service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-smbclient host_notification_commands host-notify-by-smbclient email nag_fw at domain.co } i intentionaly kept email object for the contact nagios-fw1, as putting smbclient or address throws error "Error: Invalid contact object directive 'smbclient'." Kindly suggest if there any solution for the same. ----- Original Message ----- From: "Jim Perrin" To: "dhaval thakar" Cc: Sent: Sunday, January 07, 2007 10:33 PM Subject: Re: [Nagios-users] nagios alerts to pc > On 1/7/07, dhaval thakar wrote: >> Dear All, >> >> I want to send host/service alters on Windows PC, >> is there any plugin available for the same?? >> > > Look at http://www.nagiosexchange.org/Notifications.35.0.html > There are several things there which may do what you want. > > > -- > During times of universal deceit, telling the truth becomes a > revolutionary act. > George Orwell > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 13:57:18 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 12:57:18 +0000 Subject: Fw: nagios alerts to pc In-Reply-To: References: Message-ID: <45A3912E.4080205@mailnetwork.co.uk> Why are you re-directing to a log file? What does the output of "smbclient -M adminmachine -I adminip" give you? Does the nagios user have write permissions on /tmp and tmp/smbclient.log (e.g. if smbclient.log was created by root, Nagios won't have write access to append to it.) Andy. Dhaval Thakar wrote: > Hi, > > > Thanks for the reply, > I tried configuring alters using smbclient as mentioned in the following > URL. > http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php?file=uploads/tx_netnagext_pi1/Net_send_notification/configuration.txt&ext=.txt > > I checked following > > "smbclient -M adminmachine -I adminip" is working properly. > > redirecting output of the to log file, does not shows any input to the file. > command_line /bin/echo '$SERVICESTATE$ alert for > $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/smbclient -M netbios_name_of_client -U > NAGIOS >> /tmp/smbclient.log > > i suspect there must some problem with contact configuration. > > define contact{ > contact_name nagios-fw1 > alias Nagios fw1 > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,r > service_notification_commands notify-by-smbclient > host_notification_commands host-notify-by-smbclient > email nag_fw at domain.co > } > > i intentionaly kept email object for the contact nagios-fw1, as putting > smbclient or address throws error "Error: Invalid contact object directive > 'smbclient'." > > Kindly suggest if there any solution for the same. > ----- Original Message ----- > From: "Jim Perrin" > To: "dhaval thakar" > Cc: > Sent: Sunday, January 07, 2007 10:33 PM > Subject: Re: [Nagios-users] nagios alerts to pc > > > >> On 1/7/07, dhaval thakar wrote: >> >>> Dear All, >>> >>> I want to send host/service alters on Windows PC, >>> is there any plugin available for the same?? >>> >>> >> Look at http://www.nagiosexchange.org/Notifications.35.0.html >> There are several things there which may do what you want. >> >> >> -- >> During times of universal deceit, telling the truth becomes a >> revolutionary act. >> George Orwell >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a38f1a137101219915068! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 14:34:20 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 13:34:20 +0000 Subject: Fw: nagios alerts to pc In-Reply-To: References: <45A3912E.4080205@mailnetwork.co.uk> Message-ID: <45A399DC.3080909@mailnetwork.co.uk> Dhaval Thakar wrote: > the reason to redirect to logs was to ensure execution of the command, > but log is not created. i tried with mentioned command from shell > using root. it is working hence communication to windows machine is ok. There could be your problem - test the plugin running as the "nagios" user. > > i have not created file "/tmp/smbclient.log", just mentioned in > commands.cfg > nagios user has the rights to write to /tmp dir Don't forget to copy the list in on your replies as it could help somebody else in the future when searching the archives. Andy. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Tue Jan 9 15:14:44 2007 From: dpthakar at hotmail.com (Dhaval Thakar) Date: Tue, 9 Jan 2007 19:44:44 +0530 Subject: Fw: Fw: nagios alerts to pc Message-ID: Andy, Same command (smbclient -M adminmachine -I adminip) I checked with nagios user, it is working. I created "/tmp/smbclient.log" file with nagios user, but still there is no input in the file ----- Original Message ----- From: "Andy Shellam (Mailing Lists)" To: "Dhaval Thakar" ; "Nagios Users mailinglist" Sent: Tuesday, January 09, 2007 7:04 PM Subject: Re: [Nagios-users] Fw: nagios alerts to pc > Dhaval Thakar wrote: >> the reason to redirect to logs was to ensure execution of the command, >> but log is not created. i tried with mentioned command from shell using >> root. it is working hence communication to windows machine is ok. > There could be your problem - test the plugin running as the "nagios" > user. >> >> i have not created file "/tmp/smbclient.log", just mentioned in >> commands.cfg >> nagios user has the rights to write to /tmp dir > Don't forget to copy the list in on your replies as it could help somebody > else in the future when searching the archives. > > > Andy. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 15:30:08 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 14:30:08 +0000 Subject: Fw: Fw: nagios alerts to pc In-Reply-To: References: Message-ID: <45A3A6F0.500@mailnetwork.co.uk> Post your configuration for the service, host, command and contact in question - we're just stabbing in the dark without it. Andy. Dhaval Thakar wrote: > Andy, > > Same command (smbclient -M adminmachine -I adminip) I checked with nagios > user, it is working. > > I created "/tmp/smbclient.log" file with nagios user, but still there is no > input in the file > > ----- Original Message ----- > From: "Andy Shellam (Mailing Lists)" > To: "Dhaval Thakar" ; "Nagios Users mailinglist" > > Sent: Tuesday, January 09, 2007 7:04 PM > Subject: Re: [Nagios-users] Fw: nagios alerts to pc > > > >> Dhaval Thakar wrote: >> >>> the reason to redirect to logs was to ensure execution of the command, >>> but log is not created. i tried with mentioned command from shell using >>> root. it is working hence communication to windows machine is ok. >>> >> There could be your problem - test the plugin running as the "nagios" >> user. >> >>> i have not created file "/tmp/smbclient.log", just mentioned in >>> commands.cfg >>> nagios user has the rights to write to /tmp dir >>> >> Don't forget to copy the list in on your replies as it could help somebody >> else in the future when searching the archives. >> >> >> Andy. >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a3a3b9137101955318944! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Tue Jan 9 15:55:24 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Tue, 9 Jan 2007 08:55:24 -0600 Subject: NAGIOS 3.0 Message-ID: Sorry if this has already been answered. Is there a schedule for the NAGIOS 3.0 release? I am in the middle of my budget request for equipment for this year. My plan is to replace my current NAGIOS system and would like to know if anyone has information about the resource requirements for NAGIOS V3.0 and want to purchase a server that will handle the load. Thanks in advance. Luis Lacayo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Tue Jan 9 16:09:11 2007 From: nagios at d.sparks.net (David Miller) Date: Tue, 09 Jan 2007 10:09:11 -0500 Subject: parent/child setup not working (Resolved) In-Reply-To: <459F9E6C.8030906@process-zero.de> References: <459ECA33.1040805@d.sparks.net> <459ECF7C.2060702@mailnetwork.co.uk> <459EE02B.6060404@d.sparks.net> <459EE163.6040603@mailnetwork.co.uk> <459F00A0.6090507@d.sparks.net> <459F9E6C.8030906@process-zero.de> Message-ID: <45A3B017.4070907@d.sparks.net> Hendrik B?cker wrote: I finally got this figured out, and thought I'd send a summary for the archives. Hopefully it will help others with the search engines and archives. Keywords; nagios debian parent child network outage unwanted notifications > Your wanted thing is called "Network Outage". This is done by setting > parents and grandparents in the kind of the way that your nagios can > reach each host. I think, you are getting this right but: > > Nagios 2 only checks services, let us say, every 5 minutes. If only > one of 'x' services on a host returns with a non-OK state nagios will > try to check if the host is reachable via the host-check-command, if > given. If you don't set a host-check-command, nagios will never try > this and you are getting a service alert. > > > Network Outage detection relies on host checks. > So: no host checks, no outage detection. > >> and >> >> service checks are performed as long as the host is known or presumed to >> be up. >> > Service checks are performed as long as your nagios process is running > and the service check timeperiod is active. > AFAIK nagios tries to check a service even if it knows that the host > is down, the only difference between host is up or down is, that you > will receive x service alerts if x services are non-OK or just one > host alert. > > I think your logic failure is the "way" that you are thinking how > nagios works. > > Don't think on a checking way like this: > > Parent Host --> Host --> Service > > It is more like this: > > Service --> Host --> Parent > > Nagios intelligence is that it suppress notifications not the service > checks. > This is pretty much the key. Perhaps the documentation could be clearer; it's possible to read the documentation the right way, but a lot of people thought my configs looked right, so it's easy to read it the wrong way as well. The way I thought it would work is that one could define service checks for host "web", and define a parent for web of "pix", and that if host pix was down that services for web would stop. Or at the very least not be reported on, since web certainly couldn't be functional if its parents were down. However, that's not the way it works. Nagios2.x tries hard not to do host checks; it only performs host checks if service checks fail. It also doesn't walk up the tree to see if a parent host check fails a service check fails. Intuitively, that's the behavior I expected. The solution requires a host check be specified for every host with a service check. If the service check fails nagios will perform said host check, determine the host is unreachable. If a parent host (pix) is defined for the unreachable host (web) notifications will be surpressed. So if you don't want notifications about hosts beyond a gateway you have to define a host check on that host, not just the gateway parent. As an aside, the documentation alludes to performance issues from host check, most of which are based on pings. Is this due to the nastiness of handling icmp packets on their return? IE, when an icmp packet is received the kernel hands a copy of it to all processes listening for a reply; this gets ugly quickly if too many processes are pinging at once. If that's the case I have some code I'd be happy to donate that solves that particular problem. Thanks to all the list members who helped! --- David ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Tue Jan 9 16:14:58 2007 From: dpthakar at hotmail.com (Dhaval Thakar) Date: Tue, 9 Jan 2007 20:44:58 +0530 Subject: Fw: Fw: Fw: nagios alerts to pc Message-ID: contact config ################################################################################ define contact{ contact_name nagios-bsupport alias Nagios bsupport service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email bsupport at domain.com address1 dhaval address2 192.168.10.5 } define contactgroup{ contactgroup_name fw alias Administrators members nagios-fw } Host config ################################################################################ #BackFW define host{ use generic-host ; Name of host template to use host_name BackFW alias BackFW address 172.20.20.7 check_command check-host-alive max_check_attempts 10 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups fw } #ping define service{ use generic-service ; Name of service template to use host_name BackFW service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups fw notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_ping!100.0,20%!500.0,60% } service config ################################################################################ # 'service-notify-by-smbclient' command definition define command{ command_name notify-by-smbclient command_line /bin/echo '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/sm bclient -M $CONTACTADDRESS1$ -I $CONTACTADDRESS2$ -U NAGIOS >> /tmp/smbconfig.log } ----- Original Message ----- From: "Andy Shellam (Mailing Lists)" To: "Dhaval Thakar" Cc: Sent: Tuesday, January 09, 2007 8:00 PM Subject: Re: [Nagios-users] Fw: Fw: nagios alerts to pc > Post your configuration for the service, host, command and contact in > question - we're just stabbing in the dark without it. > > Andy. > > Dhaval Thakar wrote: >> Andy, >> >> Same command (smbclient -M adminmachine -I adminip) I checked with nagios >> user, it is working. >> >> I created "/tmp/smbclient.log" file with nagios user, but still there is no >> input in the file >> >> ----- Original Message ----- >> From: "Andy Shellam (Mailing Lists)" >> To: "Dhaval Thakar" ; "Nagios Users mailinglist" >> >> Sent: Tuesday, January 09, 2007 7:04 PM >> Subject: Re: [Nagios-users] Fw: nagios alerts to pc >> >> >> >>> Dhaval Thakar wrote: >>> >>>> the reason to redirect to logs was to ensure execution of the command, >>>> but log is not created. i tried with mentioned command from shell using >>>> root. it is working hence communication to windows machine is ok. >>>> >>> There could be your problem - test the plugin running as the "nagios" >>> user. >>> >>>> i have not created file "/tmp/smbclient.log", just mentioned in >>>> commands.cfg >>>> nagios user has the rights to write to /tmp dir >>>> >>> Don't forget to copy the list in on your replies as it could help somebody >>> else in the future when searching the archives. >>> >>> >>> Andy. >>> >>> >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> !DSPAM:37,45a3a3b9137101955318944! >> >> >> > > > -- > Andy Shellam > NetServe Support Team > > the Mail Network > "an alternative in a standardised world" > > p: +44 (0) 121 288 0832/0839 > m: +44 (0) 7818 000834 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 9 17:57:53 2007 From: marc at ena.com (Marc Powell) Date: Tue, 9 Jan 2007 10:57:53 -0600 Subject: parent/child setup not working (Resolved) Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of David Miller > Sent: Tuesday, January 09, 2007 9:09 AM > To: Hendrik B?cker > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] parent/child setup not working (Resolved) > > Hendrik B?cker wrote: > > I finally got this figured out, and thought I'd send a summary for the > archives. Hopefully it will help others with the search engines and > archives. Thanks! > > Don't think on a checking way like this: > > > > Parent Host --> Host --> Service > > > > It is more like this: > > > > Service --> Host --> Parent > > > > Nagios intelligence is that it suppress notifications not the service > > checks. > > > > This is pretty much the key. Perhaps the documentation could be > clearer; it's possible to read the documentation the right way, but a > lot of people thought my configs looked right, so it's easy to read it > the wrong way as well. > Feel free to submit suggested changes =) Logically, this part of the host{} definition combined with the Determining Status And Reachability of Network hosts is sufficient for me -- "check_command: This directive is used to specify the short name of the command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is "alive". The command must return a status of OK (0) or Nagios will assume the host is down. ***If you leave this argument blank, the host will not be checked - Nagios will always assume the host is up.*** This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the host_check_timeout option." Emphasis mine. If the host status is UP, then it's not possible for it's parent to be down so no check is performed. > > The solution requires a host check be specified for every host with a > service check. If the service check fails nagios will perform said host > check, determine the host is unreachable. If a parent host (pix) is > defined for the unreachable host (web) notifications will be > surpressed. So if you don't want notifications about hosts beyond a No quite right. The check of the host that the service is running on only determines if that host is up/down. If the parent for that host is reachable then it is assumed that the host is down, otherwise the host is unreachable. That process works it's way up the tree to the top parent. > As an aside, the documentation alludes to performance issues from host > check, most of which are based on pings. Is this due to the nastiness > of handling icmp packets on their return? IE, when an icmp packet is > received the kernel hands a copy of it to all processes listening for a > reply; this gets ugly quickly if too many processes are pinging at > once. If that's the case I have some code I'd be happy to donate that > solves that particular problem. No, the problem is that in the current version of nagios, performing a host check stops _all_ other activity until the check has been performed up to max check attempts. No other service checks, host checks, notifications, anything. If you have a host check that pings 10 times, and a max_checks of 3, nagios will stop everything for 30 seconds or longer. If you have 10 hosts down, you've now stopped everything else for 3 minutes. If you're checking parents for those hosts, add more time. The problem compounds quickly. That's why you want host checks to be simple and quick. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 9 18:52:38 2007 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Tue, 09 Jan 2007 18:52:38 +0100 Subject: NAGIOS 3.0 In-Reply-To: References: Message-ID: <45A3D666.8000109@process-zero.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lacayo, Luis F schrieb: > Sorry if this has already been answered. > > Is there a schedule for the NAGIOS 3.0 release? I am in the middle of > my budget request for equipment for this year. My plan is to replace my > current NAGIOS system and would like to know if anyone has information > about the resource requirements for NAGIOS V3.0 and want to purchase a > server that will handle the load. Think about the amount of services you want to check. I would say if the amount is gt than 5000 Services => Take the best hardware you can get for money. Oh wait... get two of them and send one to me *just kidding* Without further informations how big your nagios installation is or should be, it is hard to say what hardware you will need. Some people say a 64bit arch will improve performance, other say that parts of nagios wouldn't compile (on a amd 64bit arch - I haven't any problems) .... I would say: take fast harddisks, a huge amount of ram, and actual cpu's with ht function. > > Thanks in advance. > > Luis Lacayo > Regards Hendrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) iD8DBQFFo9ZmlI0PwfxLQjkRAn5dAJ4tpJL1AV23LqLVKMaQd0QlqnVq6ACeLsxs AlT8o78aVvAa//B4iiP60YE= =WEyO -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Tue Jan 9 20:11:50 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Tue, 9 Jan 2007 13:11:50 -0600 Subject: NAGIOS 3.0 Message-ID: Thanks, I am currently monitoring 534 active devices and over 2100 services. I am thinking of a dell 2950, Dual Core Intel? Xeon? 5140, 4MB Cache, 2.33GHz, 1333MHz FSB with 4G or RAM. I think that should do it. I might add cacti to this same server. Thanks again, Luis Lacayo -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hendrik B?cker Sent: Tuesday, January 09, 2007 11:53 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] NAGIOS 3.0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lacayo, Luis F schrieb: > Sorry if this has already been answered. > > Is there a schedule for the NAGIOS 3.0 release? I am in the middle of > my budget request for equipment for this year. My plan is to replace my > current NAGIOS system and would like to know if anyone has information > about the resource requirements for NAGIOS V3.0 and want to purchase a > server that will handle the load. Think about the amount of services you want to check. I would say if the amount is gt than 5000 Services => Take the best hardware you can get for money. Oh wait... get two of them and send one to me *just kidding* Without further informations how big your nagios installation is or should be, it is hard to say what hardware you will need. Some people say a 64bit arch will improve performance, other say that parts of nagios wouldn't compile (on a amd 64bit arch - I haven't any problems) .... I would say: take fast harddisks, a huge amount of ram, and actual cpu's with ht function. > > Thanks in advance. > > Luis Lacayo > Regards Hendrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) iD8DBQFFo9ZmlI0PwfxLQjkRAn5dAJ4tpJL1AV23LqLVKMaQd0QlqnVq6ACeLsxs AlT8o78aVvAa//B4iiP60YE= =WEyO -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zsitfa at t-online.hu Tue Jan 9 20:18:40 2007 From: zsitfa at t-online.hu (Horvath Tamas) Date: Tue, 9 Jan 2007 20:18:40 +0100 Subject: "Initialize" a lot of passive check status Message-ID: <20070109191833.92097ACAF9@mail00a.mail.t-online.hu> Hello Listmembers! I have 327 passive service checks. After I configured them, status of all of them is "PENDING" and their status information is "Service check is not scheduled for execution...". Is there any script or tool that can help me to change all of the "PENDING" status to something, say: "Service assumed to be up", all at a once? In my sceanrio I can do it only manually. It is so tedious... I use Nagios 1.3, but I think it would be helpful both Nagios 1.x and 2.x. Thanks in advanced. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Neal.Giger at chandleraz.gov Tue Jan 9 20:51:27 2007 From: Neal.Giger at chandleraz.gov (Neal.Giger at chandleraz.gov) Date: Tue, 9 Jan 2007 12:51:27 -0700 Subject: NAGIOS - check_by_ssh failed Message-ID: Hey Guys, I am having an issue with the check_by_ssh plugin and was wondering if someone could lend a hand. I have compiled and installed both NAGIOS version 2.5 and the nagios-plugins 1.4.4 on EL4. When trying to execute the check_by_ssh_plugin and telling it to run just a basic file listing command on a HPUX 11.11 host I receive the following error: ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Remote command execution failed: However If I just cut and past the verbose output from the command calling ssh directly I have no problems: /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Any ideas? Neal J. Giger City of Chandler - Information Technology Phone 480.782.2457 Fax 480.782.2606 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 21:01:05 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 20:01:05 +0000 Subject: NAGIOS - check_by_ssh failed In-Reply-To: References: Message-ID: <45A3F481.3070306@mailnetwork.co.uk> Hi Neal, Have you tried running your command as the Nagios user? Also does /usr/bin/ssh exist on your Nagios machine? Just a couple of ideas. Regards, Andy. Neal.Giger at chandleraz.gov wrote: > > Hey Guys, > > I am having an issue with the check_by_ssh plugin and was wondering if > someone could lend a hand. I have compiled and installed both NAGIOS > version 2.5 and the nagios-plugins 1.4.4 on EL4. > > When trying to execute the check_by_ssh_plugin and telling it to run > just a basic file listing command on a HPUX 11.11 host I receive the > following error: > > ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' > Remote command execution failed: > > However If I just cut and past the verbose output from the command > calling ssh directly I have no problems: > > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' > > Any ideas? > > Neal J. Giger > City of Chandler - Information Technology > Phone 480.782.2457 > Fax 480.782.2606 !DSPAM:37,45a3f2d8137101509920716! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45a3f2d8137101509920716! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a3f2d8137101509920716! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 21:16:12 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 20:16:12 +0000 Subject: NAGIOS - check_by_ssh failed In-Reply-To: References: Message-ID: <45A3F80C.6030105@mailnetwork.co.uk> When it says, "remote execution failed" - does it give an error after it? Neal.Giger at chandleraz.gov wrote: > > Yes , /usr/bin/ssh is in its place and the user portion doesn't make > any difference either. > > Neal J. Giger > City of Chandler - Information Technology > Phone 480.782.2457 > Fax 480.782.2606 > > > *"Andy Shellam (Mailing Lists)" * > Sent by: nagios-users-bounces at lists.sourceforge.net > > 01/09/2007 01:01 PM > > > To > Neal.Giger at chandleraz.gov > cc > nagios-users at lists.sourceforge.net > Subject > Re: [Nagios-users] NAGIOS - check_by_ssh failed > > > > > > > > > > Hi Neal, > > Have you tried running your command as the Nagios user? > Also does /usr/bin/ssh exist on your Nagios machine? > > Just a couple of ideas. > > Regards, > > Andy. > > Neal.Giger at chandleraz.gov wrote: > > > > Hey Guys, > > > > I am having an issue with the check_by_ssh plugin and was wondering if > > someone could lend a hand. I have compiled and installed both NAGIOS > > version 2.5 and the nagios-plugins 1.4.4 on EL4. > > > > When trying to execute the check_by_ssh_plugin and telling it to run > > just a basic file listing command on a HPUX 11.11 host I receive the > > following error: > > > > ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' > > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' > > Remote command execution failed: > > > > However If I just cut and past the verbose output from the command > > calling ssh directly I have no problems: > > > > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' > > > > Any ideas? > > > > Neal J. Giger > > City of Chandler - Information Technology > > Phone 480.782.2457 > > Fax 480.782.2606 > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > !DSPAM:37,45a3f2d8137101509920716! > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > !DSPAM:37,45a3f2d8137101509920716! > > > > > -- > Andy Shellam > NetServe Support Team > > the Mail Network > "an alternative in a standardised world" > > p: +44 (0) 121 288 0832/0839 > m: +44 (0) 7818 000834 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a3f5b4137104580613464! -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sauloaugustosilva at gmail.com Tue Jan 9 22:14:27 2007 From: sauloaugustosilva at gmail.com (Saulo Silva) Date: Tue, 9 Jan 2007 18:14:27 -0300 Subject: How to use the "use" statament Message-ID: <3ddff6900701091314o278c82a2q4f64ee3e0d3caf4c@mail.gmail.com> Hi all , I am installed I Nagios in a Suse 10 box And have a question. How I can use the "use" statement when I am writing a service definition based in templates . first idea - Create all services templates separated and put all in the service definition that should be monitoring : the s_default_template.cfg define service{ name default_service process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 0 max_check_attempts 3 normal_check_interval 45 retry_check_interval 8 notification_interval 120 notification_period 24x7 notification_options w,u,c,r } define service{ name Service_Defaults_Active active_checks_enabled 1 passive_checks_enabled 0 obsess_over_service 1 check_freshness 0 notifications_enabled 0 flap_detection_enabled 1 check_period 24x7 register 0 } define service{ name Service_Defaults_Passive active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 check_freshness 1 notifications_enabled 1 flap_detection_enabled 0 check_period none register 0 } the s_cpu_template.cfg ( part of ) define service{ name Service_CPU_Prod_Local register 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 check_command $USER6$/rcheck_cpu } the service itself define service{ host_name ztux-appserv.pok.ibm.com service_description CPU_check use Service_Defaults_Passive use Service_CPU_Prod_Local use default_service contact_groups cyoung } And the second one : Use templates cascaded to final service define service{ name default_service process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 0 max_check_attempts 3 normal_check_interval 45 retry_check_interval 8 notification_interval 120 notification_period 24x7 notification_options w,u,c,r } define service{ name Service_Defaults_Passive active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 check_freshness 1 notifications_enabled 1 flap_detection_enabled 0 check_period none register 0 use default_service } define service{ name Service_CPU_Prod_Local register 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 check_command $USER6$/rcheck_cpu use Service_Defaults_Passive } define service{ host_name ztux-appserv.pok.ibm.com service_description CPU_check use Service_CPU_Prod_Local contact_groups cyoung } So that is the simple question . One of this kind of construction works ? I test with nagios -v in version 1.2 ( SUSE 9 ) no error , in nagios 1.3 ( Suse 10 ) I had error . Or should I create just one template for each different kind of check and copy all other information ? Best regards, Saulo Augusto Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sauloaugustosilva at gmail.com Tue Jan 9 22:23:58 2007 From: sauloaugustosilva at gmail.com (Saulo Silva) Date: Tue, 9 Jan 2007 18:23:58 -0300 Subject: How to use the "use" statement Message-ID: <3ddff6900701091323t22dc018qee2c0a273e23fcb8@mail.gmail.com> Hi all , I am installed I Nagios in a Suse 10 box And have a question. How I can use the "use" statement when I am writing a service definition based in templates . first idea - Create all services templates separated and put all in the service definition that should be monitoring : the s_default_template.cfg define service{ name default_service process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 0 max_check_attempts 3 normal_check_interval 45 retry_check_interval 8 notification_interval 120 notification_period 24x7 notification_options w,u,c,r } define service{ name Service_Defaults_Active active_checks_enabled 1 passive_checks_enabled 0 obsess_over_service 1 check_freshness 0 notifications_enabled 0 flap_detection_enabled 1 check_period 24x7 register 0 } define service{ name Service_Defaults_Passive active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 check_freshness 1 notifications_enabled 1 flap_detection_enabled 0 check_period none register 0 } the s_cpu_template.cfg ( part of ) define service{ name Service_CPU_Prod_Local register 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 check_command $USER6$/rcheck_cpu } the service itself define service{ host_name ztux-appserv.pok.ibm.com service_description CPU_check use Service_Defaults_Passive use Service_CPU_Prod_Local use default_service contact_groups cyoung } And the second one : Use templates cascaded to final service define service{ name default_service process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 0 max_check_attempts 3 normal_check_interval 45 retry_check_interval 8 notification_interval 120 notification_period 24x7 notification_options w,u,c,r } define service{ name Service_Defaults_Passive active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 check_freshness 1 notifications_enabled 1 flap_detection_enabled 0 check_period none register 0 use default_service } define service{ name Service_CPU_Prod_Local register 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 check_command $USER6$/rcheck_cpu use Service_Defaults_Passive } define service{ host_name ztux-appserv.pok.ibm.com service_description CPU_check use Service_CPU_Prod_Local contact_groups cyoung } So that is the simple question . One of this kind of construction works ? I test with nagios -v in version 1.2 ( SUSE 9 ) no error , in nagios 1.3 ( Suse 10 ) I had error . Or should I create just one template for each different kind of check and copy all other information ? Best regards, Saulo Augusto Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 9 22:54:57 2007 From: marc at ena.com (Marc Powell) Date: Tue, 9 Jan 2007 15:54:57 -0600 Subject: How to use the "use" statement Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Saulo Silva > Sent: Tuesday, January 09, 2007 3:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to use the "use" statement > > Hi all , > > I am installed I Nagios in a Suse 10 box And have a question. > > How I can use the "use" statement when I am writing a service definition > based in templates . [chop] > > > > So that is the simple question . One of this kind of construction works ? > I test with nagios -v in version 1.2 ( SUSE 9 ) no error , in nagios 1.3 > ( Suse 10 ) I had error . Or should I create just one template for each > different kind of check and copy all other information ? Does this documentation answer your questions? -- You're probably looking for Inheritance Chaining. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 23:00:54 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 22:00:54 +0000 Subject: FreeBSD could not get group entry for Nagios Message-ID: <45A41096.8080107@mailnetwork.co.uk> I'm testing Nagios out on a FreeBSD 6.1 system, and am getting a warning about Nagios' group entry when I run a config file check - will this cause any problems? --- Nagios 2.6 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 11-27-2006 License: GPL Reading configuration data... Warning: Could not get group entry for 'nagios' --- Passwd entry: nagios:*:1002:1001:Nagios Service Account:/home/nagios:/usr/local/bin/bash Group file entry: localservice:*:1001: Thanks, Andy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Tue Jan 9 23:02:37 2007 From: dan at langille.org (Dan Langille) Date: Tue, 09 Jan 2007 17:02:37 -0500 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A41096.8080107@mailnetwork.co.uk> References: <45A41096.8080107@mailnetwork.co.uk> Message-ID: <45A3CAAD.25138.7C833B82@dan.langille.org> On 9 Jan 2007 at 22:00, Andy Shellam (Mailing Lists) wrote: > I'm testing Nagios out on a FreeBSD 6.1 system, and am getting a warning > about Nagios' group entry when I run a config file check - will this > cause any problems? Did you install via ports? > Nagios 2.6 > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) > Last Modified: 11-27-2006 > License: GPL > > Reading configuration data... > > Warning: Could not get group entry for 'nagios' > --- > > Passwd entry: > nagios:*:1002:1001:Nagios Service Account:/home/nagios:/usr/local/bin/bash > > Group file entry: > localservice:*:1001: Are you missing this? $ grep nagios /etc/group nagios:*:1005: -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 9 23:36:40 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 22:36:40 +0000 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A3CAAD.25138.7C833B82@dan.langille.org> References: <45A41096.8080107@mailnetwork.co.uk> <45A3CAAD.25138.7C833B82@dan.langille.org> Message-ID: <45A418F8.3000700@mailnetwork.co.uk> Hi Dan, Thanks for the reply (answers inline below) Dan Langille wrote: > Did you install via ports? > No - downloaded 2.6 and compiled from source. > Are you missing this? > > $ grep nagios /etc/group > nagios:*:1005: > I don't think so - I configured Nagios with: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=localservice --with-command-group=webservice so this should say the Nagios group is "localservice" - right? The Nagios user has "localservice" set as it's default group, and it's also a member of "webservice" - the command group. Thanks, Andy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danm at prime.gushi.org Tue Jan 9 23:48:20 2007 From: danm at prime.gushi.org (Dan Mahoney, System Admin) Date: Tue, 9 Jan 2007 17:48:20 -0500 (EST) Subject: Plugin to check mail throughput? Message-ID: <20070109174641.A52544@prime.gushi.org> Hey all, I *know* I've seen this somewhere in the past, but it was years ago. Wasn't there, at one time, a plugin to SEND an outbound mail, then CHECK for that mail on a pop3 box within a certain timeframe? I've had some issues lately with mail slowdowns and I'd like to be able to detect when it's happening. -Dan -- "The first annual 5th of July party...have you been invited?" "It's a Jack Party." "Okay, so Long Island's been invited." --Cali and Gushi, 6/23/02 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Tue Jan 9 23:55:24 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Tue, 9 Jan 2007 15:55:24 -0700 Subject: Plugin to check mail throughput? Message-ID: <2D0245E43DEC724F81592D697F05689904C433D2@SIDHQEXCHMB1.Cabelas.Corp> http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_v iew]=372 http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_v iew] =328 Yeah, those URLs got chopped...be sure to connect the lines. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dan Mahoney, System Admin Sent: Tuesday, January 09, 2007 3:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Plugin to check mail throughput? Hey all, I *know* I've seen this somewhere in the past, but it was years ago. Wasn't there, at one time, a plugin to SEND an outbound mail, then CHECK for that mail on a pop3 box within a certain timeframe? I've had some issues lately with mail slowdowns and I'd like to be able to detect when it's happening. -Dan -- "The first annual 5th of July party...have you been invited?" "It's a Jack Party." "Okay, so Long Island's been invited." --Cali and Gushi, 6/23/02 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --------------------------- ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 00:02:35 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 23:02:35 +0000 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A418F8.3000700@mailnetwork.co.uk> References: <45A41096.8080107@mailnetwork.co.uk> <45A3CAAD.25138.7C833B82@dan.langille.org> <45A418F8.3000700@mailnetwork.co.uk> Message-ID: <45A41F0B.8010806@mailnetwork.co.uk> For info - this warning does not prevent Nagios from starting up - however if you add a group called "nagios" it goes away. Perhaps there's a bug in this/other versions where it checks for the specific group called "nagios" and not the one used in the configure script - or is this a "feature?" ;) Andy. Andy Shellam (Mailing Lists) wrote: > Hi Dan, > > Thanks for the reply (answers inline below) > > Dan Langille wrote: >> Did you install via ports? >> > > No - downloaded 2.6 and compiled from source. >> Are you missing this? >> >> $ grep nagios /etc/group >> nagios:*:1005: >> > > I don't think so - I configured Nagios with: > > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios --with-nagios-user=nagios > --with-nagios-group=localservice --with-command-group=webservice > > so this should say the Nagios group is "localservice" - right? > The Nagios user has "localservice" set as it's default group, and it's > also a member of "webservice" - the command group. > > Thanks, > > Andy > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Wed Jan 10 00:14:52 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Tue, 9 Jan 2007 15:14:52 -0800 (PST) Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A41F0B.8010806@mailnetwork.co.uk> References: <45A41096.8080107@mailnetwork.co.uk> <45A3CAAD.25138.7C833B82@dan.langille.org> <45A418F8.3000700@mailnetwork.co.uk> <45A41F0B.8010806@mailnetwork.co.uk> Message-ID: <50575.192.168.128.67.1168384492.squirrel@ssl.monsoonwind.com> > For info - this warning does not prevent Nagios from starting up - > however if you add a group called "nagios" it goes away. > Perhaps there's a bug in this/other versions where it checks for the > specific group called "nagios" and not the one used in the configure > script - or is this a "feature?" ;) in nagios.cfg: # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 00:29:25 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 23:29:25 +0000 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <50575.192.168.128.67.1168384492.squirrel@ssl.monsoonwind.com> References: <45A41096.8080107@mailnetwork.co.uk> <45A3CAAD.25138.7C833B82@dan.langille.org> <45A418F8.3000700@mailnetwork.co.uk> <45A41F0B.8010806@mailnetwork.co.uk> <50575.192.168.128.67.1168384492.squirrel@ssl.monsoonwind.com> Message-ID: <45A42555.4050908@mailnetwork.co.uk> Robert Hajime Lanning wrote: > > >> For info - this warning does not prevent Nagios from starting up - >> however if you add a group called "nagios" it goes away. >> Perhaps there's a bug in this/other versions where it checks for the >> specific group called "nagios" and not the one used in the configure >> script - or is this a "feature?" ;) >> > > in nagios.cfg: > > # NAGIOS GROUP > # This determines the effective group that Nagios should run as. > # You can either supply a group name or a GID. > > nagios_group=nagios > > Ah brill! Thanks for that Robert :) I hadn't thought about checking the config - I thought that's what the configure option was for :S -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 00:39:21 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 09 Jan 2007 23:39:21 +0000 Subject: Plugin error text confusion Message-ID: <45A427A9.1010002@mailnetwork.co.uk> After playing around with Nagios 2.6 and the latest plugins (1.4.5) I found a little inaccuracy in the text displayed in the check_ping plugin. For the plugin, consider the command: /usr/local/nagios/libexec/check_ping -p 3 -t 10 -4 -H 10.100.9.201 -w 1000,20% -c 2000,50% This works. Take the percentage sign off the "critical" indicator so it reads "-c 2000,50" - and you get: check_ping: %s: Warning threshold must be integer or percentage! ... displayed in the plugin status for Nagios. However the error is on the "critical" threshold not the warning threshold. Got my head scratching for a tad! -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Wed Jan 10 01:14:21 2007 From: dan at langille.org (Dan Langille) Date: Tue, 09 Jan 2007 19:14:21 -0500 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A418F8.3000700@mailnetwork.co.uk> References: <45A41096.8080107@mailnetwork.co.uk>, <45A3CAAD.25138.7C833B82@dan.langille.org>, <45A418F8.3000700@mailnetwork.co.uk> Message-ID: <45A3E98D.7473.7CFBD5A7@dan.langille.org> On 9 Jan 2007 at 22:36, Andy Shellam (Mailing Lists) wrote: > Hi Dan, > > Thanks for the reply (answers inline below) > > Dan Langille wrote: > > Did you install via ports? > > > > No - downloaded 2.6 and compiled from source. > > Are you missing this? > > > > $ grep nagios /etc/group > > nagios:*:1005: > > > > I don't think so - I configured Nagios with: > > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios --with-nagios-user=nagios > --with-nagios-group=localservice --with-command-group=webservice > > so this should say the Nagios group is "localservice" - right? > The Nagios user has "localservice" set as it's default group, and it's > also a member of "webservice" - the command group. Sorry, I don' t know. I always use the port, and let it do what it does. :( By using the port, it trivializes upgrades and removals, and makes security notices easier (e.g. security/portaudit). cd /usr/port/net-mgtm/nagios make install pretty easy... and if you need/want special config items, you can still do them, plus you get the benefits of packaging. My recommendation: remove what you installed, and use the port. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sjaaknabuurs at citytower.com Wed Jan 10 01:40:14 2007 From: sjaaknabuurs at citytower.com (Sjaak Nabuurs) Date: Wed, 10 Jan 2007 01:40:14 +0100 Subject: nagios High Availability Message-ID: <45A435EE.5030604@citytower.com> Hello I've a question from a customer to setup a nagios monitoring system.and use nagios for SLA, I have to write a reporting script My big concern is how much I'm up. How do you guys garantee nagios system is 101% up. There are 2 ways to do this I think. 1) running 2 nagios systems with a distributed file system syncing the /var/ dir for SLA reporting. Check if nagios 1 is running if not nagios 2 starts. Problem with this system is that you need always 2 IP's in all clients firewall and other configs like nrpe. A pro is that you can run nagios for 2 totaly different locations. 2) Run nagios on a HA system, but I don't know what kind of system to use for nagios. I'm looking for a system with 2 servers and 1 nagios system is running on those 2 servers. Plugin server 3 and shutdown server 1 or 2 and nagios is still running. Server must in this case melting together in cpu, memory and disk. Is this posible !!!!! Please if somebody can give me advice on this. Thanks a lott Sjaak ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Wed Jan 10 05:05:15 2007 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Tue, 09 Jan 2007 23:05:15 -0500 Subject: Plugin to check mail throughput? In-Reply-To: Your message of "Tue, 09 Jan 2007 17:48:20 EST." <20070109174641.A52544@prime.gushi.org> References: <20070109174641.A52544@prime.gushi.org> Message-ID: <200701100405.l0A45FPj014764@mx1.cs.umb.edu> In message <20070109174641.A52544 at prime.gushi.org>, "Dan Mahoney, System Admin" writes: >Wasn't there, at one time, a plugin to SEND an outbound mail, then CHECK >for that mail on a pop3 box within a certain timeframe? Sounds like check_email_loop.pl in the contrib subdirectory of the plugins distribution. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 05:26:58 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 9 Jan 2007 23:26:58 -0500 Subject: general Message-ID: <7abcf48e0701092026r48efe02frdc69ae9d96f74361@mail.gmail.com> hey i configured all .cfg files seperatly from the original nagios.cfg file but when i try to split them and add host to it but i cant add host dependencies its giving me an error Does anyone know how to fix it thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Jan 10 05:30:52 2007 From: jperrin at gmail.com (Jim Perrin) Date: Tue, 9 Jan 2007 23:30:52 -0500 Subject: general In-Reply-To: <7abcf48e0701092026r48efe02frdc69ae9d96f74361@mail.gmail.com> References: <7abcf48e0701092026r48efe02frdc69ae9d96f74361@mail.gmail.com> Message-ID: <302ce8b50701092030j4823e25fy4dcb9e33133b3d6d@mail.gmail.com> On 1/9/07, Nedim Bicic wrote: > hey i configured all .cfg files seperatly from the original nagios.cfg file > but when i try to split them and add host to it but i cant add host > dependencies its giving me an error > > Does anyone know how to fix it Would you mind terribly providing us with even a little information to go on here? The crystal ball isn't properly dialed in yet. What version of nagios are you running? HOW are your cfg files set up? What is the error you're getting? How did you install nagios? We can't see your screen from here. You have to give us the basics if you want any help. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skumarsmails at gmail.com Wed Jan 10 05:44:21 2007 From: skumarsmails at gmail.com (Saravana Kumar) Date: Wed, 10 Jan 2007 10:14:21 +0530 Subject: Plugin to check the File size Message-ID: <620e4cdb0701092044l9656a3fq23fa5e676e43c7bb@mail.gmail.com> Hi We are using nagios 1.2 on Linux box. and we are monitoring jboss services in Live servers. my requirement is we need to monitor the jboss log file according the size based. Do we have any plugins to monitor the file size ?? if so kindly provide me the link Thanks in Advance... -- Saravana Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 10 06:32:45 2007 From: marc at ena.com (Marc Powell) Date: Tue, 9 Jan 2007 23:32:45 -0600 Subject: Plugin to check the File size Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Saravana Kumar > Sent: Tuesday, January 09, 2007 10:44 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Plugin to check the File size > > > Hi > > We are using nagios 1.2 on Linux box. and we are monitoring > jboss services in Live servers. my requirement is we need to monitor the > jboss log file according the size based. > > Do we have any plugins to monitor the file size ?? if so > kindly provide me the link Search engines can answer a lot of questions if they're asked -- or -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 06:36:58 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 10 Jan 2007 00:36:58 -0500 Subject: need help Message-ID: <7abcf48e0701092136k2a3bb59fm424125ca5ce51122@mail.gmail.com> I am running Nagios version 2.4 I set them up by simply going to nagios.cfg edited out # for each object file ex: cfg_file=etc/nagios/host.cfg and so on then created the file in the nagios directory using touch and chown for full permission now when i add hosts and serives for each file and then go to webinterface nagios it works i can see several hosts and they are shown as being up but when i try editing out # next to conacts group and dependencies and try to restart nagios it keeps giving me an error " Reading etc/nagios main config file line 31 Null variable" soemthing like this. But Hosts and services do work when i restart nagios no problem just the other objects. I installed Cacti EZ on the linux box Red hat and had a nagios version along with the distribution cd thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lui.external at infineon.com Wed Jan 10 06:54:45 2007 From: Lui.external at infineon.com (Lui.external at infineon.com) Date: Wed, 10 Jan 2007 13:54:45 +0800 Subject: How to reduce non-useful notifications? Message-ID: <23F7A4F100EC2341BB8581D551E7BA09011AF422@sinse301.ap.infineon.com> > Hi, > > I have nagios set up to send notifications when a service is critical > or warning. > > Below is the configuration of a service: > max_check_attempts 5 > retry_check_interval 5 > normal_check_interval 5 > > When a service is CRITICAL, a HARD CRITICAL alert is sent out after 25 > minutes. I am fine with that. > > But when a service is changed from CRITICAL (HARD state) to WARNING > (HARD state), a HARD WARNING alert is sent out immediately without the > max_attempts retries. Same goes when a service is changed from WARNING > (HARD) to CRITICAL (HARD). > > This can generate quite a lot of non-useful alerts especially for > CPU_usage. > > Sometimes, I received more than 7 alerts of CPU usage within 30 > minutes. > > Warning alert: [10-01-2007 04:44:55] SERVICE ALERT: > SINSA016;MEM_USAGE;WARNING;HARD;5;WARNING: MEM_USAGE (94 %) > reached/exceeded warning threshold of 90 %! > > Critical alert: [10-01-2007 04:49:56] SERVICE ALERT: > SINSA016;MEM_USAGE;CRITICAL;HARD;5;CRITICAL: MEM_USAGE (95 %) > reached/exceeded critical threshold of 95 %! > > Warning alert [10-01-2007 04:54:56] SERVICE ALERT: > SINSA016;MEM_USAGE;WARNING;HARD;5;WARNING: MEM_USAGE (94 %) > reached/exceeded warning threshold of 90 %! > > Critical alert: [10-01-2007 05:09:56] SERVICE ALERT: > SINSA016;MEM_USAGE;CRITICAL;HARD;5;CRITICAL: MEM_USAGE (95 %) > reached/exceeded critical threshold of 95 %! > > Warning alert: [10-01-2007 05:24:56] SERVICE ALERT: > SINSA016;MEM_USAGE;WARNING;HARD;5;WARNING: MEM_USAGE (94 %) > reached/exceeded warning threshold of 90 %! > > My question is, is there a way to check the healthiness of a service > for max_attempts times when the service is in CRITICAL/WARNING HARD > state? > How to reduce the non-useful notifications of CPU usage problems? > Thanks for any helps. > > Regards, > Louise > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Wed Jan 10 11:07:19 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Wed, 10 Jan 2007 10:07:19 -0000 Subject: Problems compiling ndoutils-1.4b1 Message-ID: <418B502A3861E242AFDED453F3D5B89C1188A80D@i2km99-ukbr.domain1.systemhost.net> Hi List, My box config is as follows SUSE Linux enterprise Server 9.2 Mysql 5.0.27 Php 5.2.0 Apache 2.0.59 Nagios 2.6 Nagios Plugins 1.4.5 Im trying to install ndoutils on my SLES 9.2 box and getting an error whilst doing a make. I see the following in my ./configure ---------------------------------< SNIP >--------------------------------- *** MySQL library could not be located... ************************** You chose to compile NDBXT with MySQL support, but I was unable to locate the MySQL library on your system. If the library is installed, use the --with-mysql-lib argument to specify the location of the MySQL library. NOTE: After you install the necessary libraries on your system: 1. Make sure /etc/ld.so.conf has an entry for the directory in which the MySQL libraries are installed. 2. Run 'ldconfig' to update the run-time linker options. 3. Run 'make devclean' in the NDBXT distribution to clean out any old references to your previous compile. 4. Rerun the configure script. TIP: Try the following.... ./configure --with-mysql-lib=/usr/lib/mysql ******************************************************************** checking mysql/mysql.h usability... yes checking mysql/mysql.h presence... yes checking for mysql/mysql.h... yes checking for PQconnectdb in -lpq... No ---------------------------------< SNIP >--------------------------------- Now I have done everything it has said in the sections above from ./configure and I still get the error. I compiled mysql from source and I have installed the following from RPMs MySQL-client-5.0.27-0.glibc23.i386.rpm MySQL-devel-5.0.27-0.glibc23.i386.rpm MySQL-shared-5.0.27-0.glibc23.i386.rpm If I run a 'make' I get the following before it bombs out make[2]: Entering directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src' gcc -O0 -g -DHAVE_CONFIG_H -c -o db.o db.c gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o db.o -L/usr/lib/mysql -lnsl utils.o(.text+0x131): In function `ndo_dbuf_strcat': /home/welsht2/downloads/nagios/ndoutils-1.4b1/src/utils.c:67: undefined reference to `ceil' collect2: ld returned 1 exit status make[2]: *** [ndo2db-2x] Error 1 make[2]: Leaving directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src' make[1]: *** [ndo2db] Error 2 make[1]: Leaving directory `/home/welsht2/downloads/nagios/ndoutils-1.4b1/src' Anyone any ideas what ive done wrong. All help gratefully received. Regards Tom Welsh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 11:17:24 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 10 Jan 2007 10:17:24 +0000 Subject: FreeBSD could not get group entry for Nagios In-Reply-To: <45A3E98D.7473.7CFBD5A7@dan.langille.org> References: <45A41096.8080107@mailnetwork.co.uk>, <45A3CAAD.25138.7C833B82@dan.langille.org>, <45A418F8.3000700@mailnetwork.co.uk> <45A3E98D.7473.7CFBD5A7@dan.langille.org> Message-ID: <45A4BD34.8050403@mailnetwork.co.uk> Personally I prefer to compile from source as I know exactly what it does and where things go. I sorted it anyway, it was basically a config item that still read "nagios_group=nagios" - I changed that to "nagios_group=localservice" and the warning went away. Thanks Andy Dan Langille wrote: > On 9 Jan 2007 at 22:36, Andy Shellam (Mailing Lists) wrote: > > >> Hi Dan, >> >> Thanks for the reply (answers inline below) >> >> Dan Langille wrote: >> >>> Did you install via ports? >>> >>> >> No - downloaded 2.6 and compiled from source. >> >>> Are you missing this? >>> >>> $ grep nagios /etc/group >>> nagios:*:1005: >>> >>> >> I don't think so - I configured Nagios with: >> >> ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin >> --with-htmurl=/nagios --with-nagios-user=nagios >> --with-nagios-group=localservice --with-command-group=webservice >> >> so this should say the Nagios group is "localservice" - right? >> The Nagios user has "localservice" set as it's default group, and it's >> also a member of "webservice" - the command group. >> > > Sorry, I don' t know. I always use the port, and let it do what it > does. :( By using the port, it trivializes upgrades and removals, > and makes security notices easier (e.g. security/portaudit). > > cd /usr/port/net-mgtm/nagios > make install > > pretty easy... and if you need/want special config items, you can > still do them, plus you get the benefits of packaging. > > My recommendation: remove what you installed, and use the port. > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 10 11:17:44 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Jan 2007 11:17:44 +0100 Subject: NAGIOS 3.0 In-Reply-To: References: Message-ID: <45A4BD48.1010006@op5.se> Lacayo, Luis F wrote: > Thanks, > > I am currently monitoring 534 active devices and over 2100 services. I am thinking of a dell 2950, Dual Core Intel? Xeon? 5140, 4MB Cache, 2.33GHz, 1333MHz FSB with 4G or RAM. > > I think that should do it. I might add cacti to this same server. > You should have no problems what so ever. Nagios doesn't consume a lot of memory (as it doesn't use a database or something else that stays resident for a long time in memory), but having loads of it will let the kernel cache all the files it uses instead, which is a Good Thing(tm). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 10 11:23:32 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Jan 2007 11:23:32 +0100 Subject: NAGIOS - check_by_ssh failed In-Reply-To: References: Message-ID: <45A4BEA4.1090101@op5.se> Neal.Giger at chandleraz.gov wrote: > Hey Guys, > > I am having an issue with the check_by_ssh plugin and was wondering if > someone could lend a hand. I have compiled and installed both NAGIOS > version 2.5 and the nagios-plugins 1.4.4 on EL4. > > When trying to execute the check_by_ssh_plugin and telling it to run just > a basic file listing command on a HPUX 11.11 host I receive the following > error: > > ./check_by_ssh -v -H 10.1.9.21 -t 60 -n hpux2 -C '/usr/bin/ll /tmp' > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' Are you absolutely sure that "/usr/bin/ll" exists on hpux? On fedora core 5, "ll" is an alias for "/bin/ls -l --color=tty -F". Try running /usr/bin/ssh 10.1.9.21 'ls /tmp' I can guarantee you that "ls" exists and is in the path. Not even HP-UX diverges from that convention. > Remote command execution failed: > > However If I just cut and past the verbose output from the command calling > ssh directly I have no problems: > > /usr/bin/ssh 10.1.9.21 '/usr/bin/ll /tmp' > Sounds very odd indeed. What happens if you do echo $? after running the command manually? If it says anything other than "0" (or possibly provides a long listing of /tmp), the command actually failed to run, although you didn't get an error message, or the HP-UX version of sshd didn't forward stderr to you. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From termx23 at gmail.com Wed Jan 10 14:05:39 2007 From: termx23 at gmail.com (Peter Edmonds) Date: Thu, 11 Jan 2007 00:05:39 +1100 Subject: Plugin to check mail throughput? In-Reply-To: <200701100405.l0A45FPj014764@mx1.cs.umb.edu> References: <20070109174641.A52544@prime.gushi.org> <200701100405.l0A45FPj014764@mx1.cs.umb.edu> Message-ID: <6b8cee7e0701100505r2294b25dxe4b12b1102fed9c9@mail.gmail.com> > >Wasn't there, at one time, a plugin to SEND an outbound mail, then CHECK > >for that mail on a pop3 box within a certain timeframe? This might do the job. IMAP only though. http://lopsa.org/node/625 http://www.nebrwesleyan.edu/people/stpierre/mailping.pl Peter ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 10 16:01:26 2007 From: marc at ena.com (Marc Powell) Date: Wed, 10 Jan 2007 09:01:26 -0600 Subject: need help Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Tuesday, January 09, 2007 11:37 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] need help > > I am running Nagios version 2.4 > I set them up by simply going to nagios.cfg edited out # for each object > file ex: cfg_file=etc/nagios/host.cfg and so on then created the file in > the nagios directory using touch and chown for full permission > > now when i add hosts and serives for each file and then go to webinterface > nagios it works > i can see several hosts and they are shown as being up > > but when i try editing out # next to conacts group and dependencies and > try to restart nagios it keeps giving me an error " Reading etc/nagios > main config file line 31 Null variable" soemthing like this. This is like saying "I have a cough or something like that. Do I have the flu?" What's the _exact_ error and what is line 31 of the file the error references? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 16:05:53 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 10 Jan 2007 10:05:53 -0500 Subject: general In-Reply-To: <302ce8b50701100534o73db5333n43e2ad521858bcbb@mail.gmail.com> References: <7abcf48e0701092026r48efe02frdc69ae9d96f74361@mail.gmail.com> <302ce8b50701092030j4823e25fy4dcb9e33133b3d6d@mail.gmail.com> <7abcf48e0701092044x66e99822ndd387c1661e0e6f8@mail.gmail.com> <302ce8b50701100534o73db5333n43e2ad521858bcbb@mail.gmail.com> Message-ID: <7abcf48e0701100705h4d6ae077o4989f79bd765e9a@mail.gmail.com> ok here is exactly what i get when i run the folwing command when i try to restart nagios I guess this mean its working when i restart it using follwing command *> /etc/rc.d/init.d/nagios restart* Running configuration check...done Stopping network monitor: nagios Waiting for nagios to exit . done. Starting network monitor: nagios Then i try to run this bellow is it set up right i dont know you tell me guys *> nagios -v /etc/rc.d/init.d/nagios restart* Nagios 2.4 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 05-31-2006 License: GPL Reading configuration data... Error in configuration file '/etc/rc.d/init.d/nagios' - Line 31 (NULL variable) ***> The name of the main configuration file looks suspicious... Make sure you are specifying the name of the MAIN configuration file on the command line and not the name of another configuration file. The main configuration file is typically '/usr/local/nagios/etc/nagios.cfg' ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Nagios 2.4 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 05-31-2006 License: GPL Reading configuration data... Error: Cannot open main configuration file '/etc/nagios' for reading! ***> The name of the main configuration file looks suspicious... Make sure you are specifying the name of the MAIN configuration file on the command line and not the name of another configuration file. The main configuration file is typically '/usr/local/nagios/etc/nagios.cfg' ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed thanks On 1/10/07, Jim Perrin wrote: > > Be sure to copy the nagios list in your replies, not just me. > > On 1/9/07, Nedim Bicic wrote: > > I am running Nagios version 2.4 > > I set them up by simply going to nagios.cfg edited out # for each object > > file ex: cfg_file=etc/nagios/host.cfg and so on then > > created the file in the nagios directory using touch and chown for full > > permission > > > > now when i add hosts and serives for each file and then go to > webinterface > > nagios it works > > i can see several hosts and they are shown as being up > > > > but when i try editing out # next to conacts group and dependencies and > try > > to restart nagios it keeps giving me an error " Reading etc/nagios main > > config file line 31 Null variable" soemthing like this. > > Then you're not doing something properly. Without seeing the config > file you're talking about, I have no way of knowing what you're > screwing up. > > running nagios -v /path/to/your/nagios/etc/nagios.cfg is a good way to > help figure out what you're screwing up. > > > -- > During times of universal deceit, telling the truth becomes a > revolutionary act. > George Orwell > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 10 16:28:23 2007 From: marc at ena.com (Marc Powell) Date: Wed, 10 Jan 2007 09:28:23 -0600 Subject: general Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Wednesday, January 10, 2007 9:06 AM > To: Jim Perrin > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] general > > > ok here is exactly what i get when i run the folwing command when i try to > restart nagios > I guess this mean its working when i restart it using follwing command > > > /etc/rc.d/init.d/nagios restart > Running configuration check...done > Stopping network monitor: nagios > Waiting for nagios to exit . done. > Starting network monitor: nagios Looks like nagios started successfully. Is it running? If not, look in your nagios.log file for error output. > Then i try to run this bellow is it set up right i dont know you tell me > guys > > > nagios -v /etc/rc.d/init.d/nagios restart 'nagios -v' verifies the current nagios configuration. It's not a way to start nagios. Additionally, it expect its argument to be the path to nagios.cfg. It's complaining because /etc/rc.d/init.d/nagios isn't the nagios config file. Try -- '/path/to/nagios -v /path/to/nagios.cfg', substituting the correct path, of course. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mh+nagios-users at zugschlus.de Wed Jan 10 16:39:39 2007 From: mh+nagios-users at zugschlus.de (Marc Haber) Date: Wed, 10 Jan 2007 16:39:39 +0100 Subject: Debian Bug #401738: statuswml.cgi cannot schedule check commands Message-ID: <20070110153939.GA22972@torres.zugschlus.de> Hi, this is from the Debian BTS, http://bugs.debian.org/401738: | When trying to re-schedule a check for a service from the wml pages I | get the following error message: "Start time must be non-zero". If I | manually submit start_time= to cmd.cgi the commands works fine. | The same method works fine from the normal status.cgi. The bug submitter confirms that this still holds for Nagios 2.6. I report this bug here because the Nagios project does not seem to have a publicly visible bug tracker. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 10 16:57:29 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Jan 2007 16:57:29 +0100 Subject: general In-Reply-To: <7abcf48e0701100705h4d6ae077o4989f79bd765e9a@mail.gmail.com> References: <7abcf48e0701092026r48efe02frdc69ae9d96f74361@mail.gmail.com> <302ce8b50701092030j4823e25fy4dcb9e33133b3d6d@mail.gmail.com> <7abcf48e0701092044x66e99822ndd387c1661e0e6f8@mail.gmail.com> <302ce8b50701100534o73db5333n43e2ad521858bcbb@mail.gmail.com> <7abcf48e0701100705h4d6ae077o4989f79bd765e9a@mail.gmail.com> Message-ID: <45A50CE9.2030500@op5.se> Nedim Bicic wrote: > ok here is exactly what i get when i run the folwing command when i try to > restart nagios > I guess this mean its working when i restart it using follwing command > > *> /etc/rc.d/init.d/nagios restart* > Running configuration check...done > Stopping network monitor: nagios > Waiting for nagios to exit . done. > Starting network monitor: nagios > > Then i try to run this bellow is it set up right i dont know you tell me > guys > > *> nagios -v /etc/rc.d/init.d/nagios restart* > RTFM. Twice. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 10 16:59:00 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Jan 2007 16:59:00 +0100 Subject: Debian Bug #401738: statuswml.cgi cannot schedule check commands In-Reply-To: <20070110153939.GA22972@torres.zugschlus.de> References: <20070110153939.GA22972@torres.zugschlus.de> Message-ID: <45A50D44.3080503@op5.se> Marc Haber wrote: > Hi, > > this is from the Debian BTS, http://bugs.debian.org/401738: > > | When trying to re-schedule a check for a service from the wml pages I > | get the following error message: "Start time must be non-zero". If I > | manually submit start_time= to cmd.cgi the commands works fine. > | The same method works fine from the normal status.cgi. > > The bug submitter confirms that this still holds for Nagios 2.6. > > I report this bug here because the Nagios project does not seem to > have a publicly visible bug tracker. > The nagios-devel mailing list would be a better place, I think, although I'm not sure how maintained the wml-pages are. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 17:05:41 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 10 Jan 2007 11:05:41 -0500 Subject: general In-Reply-To: References: Message-ID: <7abcf48e0701100805i6e63020etfd83a88f271fd2ee@mail.gmail.com> *> nagios -v /etc/nagios/nagios.cfg* Nagios 2.4 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 05-31-2006 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 7 services. Checking hosts... Checked 3 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 22 commands. Checking time periods... Checked 1 time periods. Checking extended host info definitions... Checked 0 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check ok i guess everything is ok here i can access the the webinterface and see my my hosts and servfices but i cant edit out # in nagios.cfg for other objects On 1/10/07, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > > Sent: Wednesday, January 10, 2007 9:06 AM > > To: Jim Perrin > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] general > > > > > > ok here is exactly what i get when i run the folwing command when i > try to > > restart nagios > > I guess this mean its working when i restart it using follwing command > > > > > /etc/rc.d/init.d/nagios restart > > Running configuration check...done > > Stopping network monitor: nagios > > Waiting for nagios to exit . done. > > Starting network monitor: nagios > > Looks like nagios started successfully. Is it running? If not, look in > your nagios.log file for error output. > > > Then i try to run this bellow is it set up right i dont know you tell > me > > guys > > > > > nagios -v /etc/rc.d/init.d/nagios restart > > 'nagios -v' verifies the current nagios configuration. It's not a way to > start nagios. Additionally, it expect its argument to be the path to > nagios.cfg. It's complaining because /etc/rc.d/init.d/nagios isn't the > nagios config file. > > Try -- > > '/path/to/nagios -v /path/to/nagios.cfg', substituting the correct path, > of course. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Jan 10 17:18:31 2007 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 10 Jan 2007 11:18:31 -0500 Subject: general In-Reply-To: <7abcf48e0701100805i6e63020etfd83a88f271fd2ee@mail.gmail.com> References: <7abcf48e0701100805i6e63020etfd83a88f271fd2ee@mail.gmail.com> Message-ID: <302ce8b50701100818j47158a04w9cac3362d3c625ce@mail.gmail.com> Top posting is bad. Please use inline comments to only relevant material to make archiving easier, and threading more sane. > ok i guess everything is ok here i can access the the webinterface and see > my my hosts and servfices but i cant edit out # in nagios.cfg for other > objects > As has been stated already in the thread. PLEASE READ THE NAGIOS DOCUMENTATION. After each change you make, run nagios -v, so that you can see if things are formatted properly and are considered sane by nagios. If you're having problems, then you're doing something wrong. If you're not sharing the info here, then there's no way we can assist. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luc.maignan at winxpert.com Wed Jan 10 17:23:25 2007 From: luc.maignan at winxpert.com (Luc MAIGNAN) Date: Wed, 10 Jan 2007 17:23:25 +0100 Subject: Bandwidth Message-ID: <45A512FD.70402@winxpert.com> Hi all, I need to monitor the evolution of my internet connection (evolution of the bandwidth available). How it is possible with Nagios ? Thanks for any help BR -- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Wed Jan 10 17:55:08 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Wed, 10 Jan 2007 10:55:08 -0600 Subject: general In-Reply-To: <7abcf48e0701100805i6e63020etfd83a88f271fd2ee@mail.gmail.com> References: <7abcf48e0701100805i6e63020etfd83a88f271fd2ee@mail.gmail.com> Message-ID: <45A51A6C.40304@epsiia.com> Nedim Bicic wrote: > *> nagios -v /etc/nagios/nagios.cfg* > ok i guess everything is ok here i can access the the webinterface and see > my my hosts and servfices but i cant edit out # in nagios.cfg for other > objects > My guess would be you didn't put the '#' at the very beginning of the line, but like everyone else said - a little info would help. /* shrug */ - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 10 18:43:45 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 10 Jan 2007 18:43:45 +0100 (CET) Subject: Bandwidth In-Reply-To: <45A512FD.70402@winxpert.com> References: <45A512FD.70402@winxpert.com> Message-ID: On Wed, 10 Jan 2007, Luc MAIGNAN wrote: > I need to monitor the evolution of my internet connection (evolution of > the bandwidth available). How it is possible with Nagios ? Can you slam a nail into the wall with a screwdriver? Sure. But a hammer is a much better tool. Monitoring bandwidth is something you should propably do with a tool like cacti. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 19:25:24 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 10 Jan 2007 13:25:24 -0500 Subject: email help Message-ID: <7abcf48e0701101025u10056903o2177e993e0f5eefb@mail.gmail.com> Hey how do you get the notifications to work and send emails it doesnt work i put in my email address in the conacts.cfg file i restart the server where nagios is installed but i dont get any emails -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Jan 10 19:37:12 2007 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 10 Jan 2007 13:37:12 -0500 Subject: email help In-Reply-To: <7abcf48e0701101025u10056903o2177e993e0f5eefb@mail.gmail.com> References: <7abcf48e0701101025u10056903o2177e993e0f5eefb@mail.gmail.com> Message-ID: <302ce8b50701101037p7630e7a7u48fb1a8fe5664be4@mail.gmail.com> On 1/10/07, Nedim Bicic wrote: > Hey how do you get the notifications to work and send emails it doesnt work > i put in my email address in the conacts.cfg file i restart the server where > nagios is installed but i dont get any emails Read The Fine Manual. Check your MTA for proper configuration and email handling. Ensure nagios is configured correctly. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 10 19:40:26 2007 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 10 Jan 2007 09:40:26 -0900 Subject: check_mrtgtraf question In-Reply-To: <38D6D515FC15924693F2640881AF4620AEDE00@corpexbe2.arcadis-us.com> References: <38D6D515FC15924693F2640881AF4620AEDE00@corpexbe2.arcadis-us.com> Message-ID: On Jan 8, 2007, at 8:44 AM, Cook, Garry wrote: > -----Original Message----- >> Quick question- I currently use MRTG to monitor the traffic on a >> number > of my routers, and > [snip] >> I have been considering switching MRTG over to a RRD logging >> format, so > I can use things > [snip] >> what other options might I have so as to not lose the monitoring > functionality of the check_mrtgtraf plug-in? Thanks! > > There might be other plugins out there that monitor RRDs, I'm not > sure. > I wrote one a while back for use on datacenter switch uplinks. It's a > simple shell script plugin, but you might find it useful. Feel free to > hack away and release it if you and/or others might find it useful. [snip] Yeah, I can probably make that work. Course, I was hoping for a lazier solution :p :D. On the other hand, right now this may all be a moot point, as I can't get routers2 to run under my chrooted apache- it wants to access /usr/bin/perl, which, of course, can't be accessed from within the chroot. Thanks for the script though- I may be able to make use of it anyway. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 20:28:35 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 10 Jan 2007 19:28:35 +0000 Subject: email help In-Reply-To: <302ce8b50701101037p7630e7a7u48fb1a8fe5664be4@mail.gmail.com> References: <7abcf48e0701101025u10056903o2177e993e0f5eefb@mail.gmail.com> <302ce8b50701101037p7630e7a7u48fb1a8fe5664be4@mail.gmail.com> Message-ID: <45A53E63.5000203@mailnetwork.co.uk> Jim Perrin wrote: > On 1/10/07, Nedim Bicic wrote: > >> Hey how do you get the notifications to work and send emails it doesnt work >> i put in my email address in the conacts.cfg file i restart the server where >> nagios is installed but i dont get any emails >> > > Read The Fine Manual. Check your MTA for proper configuration and > email handling. Ensure nagios is configured correctly. > > > > AFAIK Nagios doesn't include a send e-mail command - you need to configure your own Nagios command to pipe the required details to your MTA. And yes - read the manual ;) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 10 21:11:52 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 10 Jan 2007 15:11:52 -0500 Subject: email help In-Reply-To: References: Message-ID: <7abcf48e0701101211u6aa95b30tb8e63dbe6a163b26@mail.gmail.com> I get emails on my local machine its a sendmail option on the linux box whenever a host goes down it sends it to nagios mailbox on the local server cant i somehow redirect it so it can send it to nedo72 at gmail.com i tried adding myself to the contact group but says i am not part of the group and there is nothing in the manual or creating seprate pipes for email just says add email under contacts do you guys have a link that shows how to set this up thanks On 1/10/07, Lacayo, Luis F wrote: > > Before you have nagios send emails, make sure that your mailer is working > (sendmail, or whatever you have installed). If you are able to send mail > from the command prompt look at your maillog. > > > > > > Luis Lacayo > ------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *Nedim Bicic > *Sent:* Wednesday, January 10, 2007 12:25 PM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] email help > > > > Hey how do you get the notifications to work and send emails it doesnt > work i put in my email address in the conacts.cfg file i restart the > server where nagios is installed but i dont get any emails > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Jan 10 21:24:18 2007 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 10 Jan 2007 15:24:18 -0500 Subject: email help In-Reply-To: <7abcf48e0701101211u6aa95b30tb8e63dbe6a163b26@mail.gmail.com> References: <7abcf48e0701101211u6aa95b30tb8e63dbe6a163b26@mail.gmail.com> Message-ID: <302ce8b50701101224x462dc773vb12d980c618b2ccc@mail.gmail.com> To repeat myself from your other thread, please do not top post. It's bad manners, and makes for unreadable archives of the mailing list. On 1/10/07, Nedim Bicic wrote: > I get emails on my local machine its a sendmail option on the linux box > whenever a host goes down it sends it to nagios mailbox on the local server > cant i somehow redirect it so it can send it to nedo72 at gmail.com > i tried adding myself to the contact group but says i am not part of the > group Then you have not configured your contacts and groups correctly. > and there is nothing in the manual or creating seprate pipes for email just > says add email under contacts You don't need to create pipes. You need a properly configured mail server. The inter-tubes will take care of it from there. > do you guys have a link that shows how to set this up Yes. In the documentation, that stuff we keep recommending that you read -> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From samfraser at yahoo.co.uk Wed Jan 10 21:57:17 2007 From: samfraser at yahoo.co.uk (Sam Fraser) Date: Wed, 10 Jan 2007 20:57:17 +0000 (GMT) Subject: no libexec after intalling plugins! Message-ID: <20070110205717.78326.qmail@web23105.mail.ird.yahoo.com> Hello All, could someone please advise me where I've gone wrong installing my plugins? The problem is with this installation step Install the compiled plugins and plugin scripts with the following command: make install The installation procedure will attempt to place the plugins in a 'libexec/' subdirectory in the base directory you specified with the --prefix argument to the configure script. The problem is that this folder never turns up in ls -l /usr/local/nagios/ total 40 drwxrwxrwx 2 samfraser nagcmd 4096 Dec 7 16:52 bin drwxrwxr-x 2 samfraser nagcmd 4096 Jan 10 19:32 etc drwxrwxrwx 2 samfraser nagcmd 4096 Jan 10 18:55 sbin drwxrwxrwx 8 samfraser nagcmd 4096 Jan 10 18:54 share drwxrwxrwx 3 samfraser nagcmd 4096 Jan 10 19:51 var even though I specified /usr/local/nagios in the ./configure statement this is the output from make install. make install Making install in lib make[1]: Entering directory `/root/nagios-plugins-1.4.5/lib' make install-recursive make[2]: Entering directory `/root/nagios-plugins-1.4.5/lib' Making install in tests make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests' make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests' make[4]: Nothing to be done for `install-exec-am'. make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests' make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests' make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib' make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib' make[4]: Nothing to be done for `install-exec-am'. make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib' make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib' make[2]: Leaving directory `/root/nagios-plugins-1.4.5/lib' make[1]: Leaving directory `/root/nagios-plugins-1.4.5/lib' Making install in plugins make[1]: Entering directory `/root/nagios-plugins-1.4.5/plugins' if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/u sr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu ffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT che ck_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || e cho './'`check_mysql.c; \ then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql .Tpo"; exit 1; fi check_mysql.c:51:19: error: mysql.h: No such file or directory check_mysql.c:52:20: error: errmsg.h: No such file or directory check_mysql.c:58: error: ???MYSQL_PORT??? undeclared here (not in a function) check_mysql.c: In function ???main???: check_mysql.c:73: error: ???MYSQL??? undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: expected ???;??? before ???mysql??? check_mysql.c:74: error: ???MYSQL_RES??? undeclared (first use in this function) check_mysql.c:74: error: ???res??? undeclared (first use in this function) check_mysql.c:75: error: ???MYSQL_ROW??? undeclared (first use in this function) check_mysql.c:75: error: expected ???;??? before ???row??? check_mysql.c:91: error: ???mysql??? undeclared (first use in this function) check_mysql.c:93: error: ???MYSQL_READ_DEFAULT_GROUP??? undeclared (first use in this function) check_mysql.c:97: error: ???CR_UNKNOWN_HOST??? undeclared (first use in this function) check_mysql.c:99: error: ???CR_VERSION_ERROR??? undeclared (first use in this function) check_mysql.c:101: error: ???CR_OUT_OF_MEMORY??? undeclared (first use in this function) check_mysql.c:103: error: ???CR_IPSOCK_ERROR??? undeclared (first use in this function) check_mysql.c:105: error: ???CR_SOCKET_CREATE_ERROR??? undeclared (first use in this function) check_mysql.c:112: warning: cast to pointer from integer of different size check_mysql.c:112: warning: cast to pointer from integer of different size check_mysql.c:112: warning: cast to pointer from integer of different size check_mysql.c:112: warning: passing argument 1 of ???strlen??? makes pointer from integer without a cast check_mysql.c:112: warning: passing argument 2 of ???__builtin___memcpy_chk??? makes pointer from integer without a cast check_mysql.c:112: warning: passing argument 2 of ???__memcpy_ichk??? makes pointer from integer without a cast check_mysql.c:112: warning: passing argument 1 of ???__strdup??? makes pointer from integer without a cast check_mysql.c:116: error: ???CR_SERVER_GONE_ERROR??? undeclared (first use in this function) check_mysql.c:118: error: ???CR_SERVER_LOST??? undeclared (first use in this function) check_mysql.c:120: error: ???CR_UNKNOWN_ERROR??? undeclared (first use in this function) check_mysql.c:127: warning: cast to pointer from integer of different size check_mysql.c:127: warning: cast to pointer from integer of different size check_mysql.c:127: warning: cast to pointer from integer of different size check_mysql.c:127: warning: passing argument 1 of ???strlen??? makes pointer from integer without a cast check_mysql.c:127: warning: passing argument 2 of ???__builtin___memcpy_chk??? makes pointer from integer without a cast check_mysql.c:127: warning: passing argument 2 of ???__memcpy_ichk??? makes pointer from integer without a cast check_mysql.c:127: warning: passing argument 1 of ???__strdup??? makes pointer from integer without a cast check_mysql.c:134: warning: cast to pointer from integer of different size check_mysql.c:134: warning: cast to pointer from integer of different size check_mysql.c:134: warning: cast to pointer from integer of different size check_mysql.c:134: warning: passing argument 1 of ???strlen??? makes pointer from integer without a cast check_mysql.c:134: warning: passing argument 2 of ???__builtin___memcpy_chk??? makes pointer from integer without a cast check_mysql.c:134: warning: passing argument 2 of ???__memcpy_ichk??? makes pointer from integer without a cast check_mysql.c:134: warning: passing argument 1 of ???__strdup??? makes pointer from integer without a cast check_mysql.c:146: error: ???row??? undeclared (first use in this function) check_mysql.c:147: warning: cast to pointer from integer of different size check_mysql.c:147: warning: cast to pointer from integer of different size check_mysql.c:147: warning: cast to pointer from integer of different size check_mysql.c:147: warning: passing argument 1 of ???strlen??? makes pointer from integer without a cast check_mysql.c:147: warning: passing argument 2 of ???__builtin___memcpy_chk??? makes pointer from integer without a cast check_mysql.c:147: warning: passing argument 2 of ???__memcpy_ichk??? makes pointer from integer without a cast check_mysql.c:147: warning: passing argument 1 of ???__strdup??? makes pointer from integer without a cast check_mysql.c:165: error: ???MYSQL_FIELD??? undeclared (first use in this function) check_mysql.c:165: error: ???fields??? undeclared (first use in this function) make[1]: *** [check_mysql-check_mysql.o] Error 1 make[1]: Leaving directory `/root/nagios-plugins-1.4.5/plugins' make: *** [install-recursive] Error 1 Sam Fraser ___________________________________________________________ All New Yahoo! Mail ? Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 10 22:09:25 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 10 Jan 2007 21:09:25 +0000 Subject: no libexec after intalling plugins! In-Reply-To: <20070110205717.78326.qmail@web23105.mail.ird.yahoo.com> References: <20070110205717.78326.qmail@web23105.mail.ird.yahoo.com> Message-ID: <45A55605.1030104@mailnetwork.co.uk> Sam Fraser wrote: > Hello All, could someone please advise me where I've gone wrong > installing my plugins? > > The problem is with this installation step > > Install the compiled plugins and plugin scripts with the following > command: > > make install > > The installation procedure will attempt to place the plugins in a > 'libexec/' subdirectory in the base directory you specified with > the --prefix argument to the configure script. > > The problem is that this folder never turns up in The problem is you've got a lot of MySQL errors - have you specified the correct path to MySQL in the ./configure statement? (--with-mysql=/usr/local/mysql). > make[1]: *** [check_mysql-check_mysql.o] Error 1 > make[1]: Leaving directory `/root/nagios-plugins-1.4.5/plugins' > make: *** [install-recursive] Error 1 This indicates the "make" operation failed - which is why you don't have a libexec directory yet. Sort your MySQL errors out and you should be OK then. Regards Andy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dpthakar at hotmail.com Thu Jan 11 05:52:09 2007 From: dpthakar at hotmail.com (Dhaval Thakar) Date: Thu, 11 Jan 2007 10:22:09 +0530 Subject: Fw: Fw: Fw: Fw: nagios alerts to pc Message-ID: Dear All, My problem got resolved with monor changes in the contact define contact{ contact_name nagios-bsupport alias Nagios bsupport service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email,notify-by-smbclient host_notification_commands host-notify-by-email email bsupport at domain.com address1 dhaval address2 192.168.10.5 } ----- Original Message ----- From: Dhaval Thakar To: nagios-users at lists.sourceforge.net Sent: Tuesday, January 09, 2007 8:44 PM Subject: [Nagios-users] Fw: Fw: Fw: nagios alerts to pc contact config ################################################################################ define contact{ contact_name nagios-bsupport alias Nagios bsupport service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email bsupport at domain.com address1 dhaval address2 192.168.10.5 } define contactgroup{ contactgroup_name fw alias Administrators members nagios-fw } Host config ################################################################################ #BackFW define host{ use generic-host ; Name of host template to use host_name BackFW alias BackFW address 172.20.20.7 check_command check-host-alive max_check_attempts 10 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups fw } #ping define service{ use generic-service ; Name of service template to use host_name BackFW service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups fw notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_ping!100.0,20%!500.0,60% } service config ################################################################################ # 'service-notify-by-smbclient' command definition define command{ command_name notify-by-smbclient command_line /bin/echo '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/sm bclient -M $CONTACTADDRESS1$ -I $CONTACTADDRESS2$ -U NAGIOS >> /tmp/smbconfig.log } ----- Original Message ----- From: "Andy Shellam (Mailing Lists)" To: "Dhaval Thakar" Cc: Sent: Tuesday, January 09, 2007 8:00 PM Subject: Re: [Nagios-users] Fw: Fw: nagios alerts to pc > Post your configuration for the service, host, command and contact in > question - we're just stabbing in the dark without it. > > Andy. > > Dhaval Thakar wrote: >> Andy, >> >> Same command (smbclient -M adminmachine -I adminip) I checked with nagios >> user, it is working. >> >> I created "/tmp/smbclient.log" file with nagios user, but still there is no >> input in the file >> >> ----- Original Message ----- >> From: "Andy Shellam (Mailing Lists)" >> To: "Dhaval Thakar" ; "Nagios Users mailinglist" >> >> Sent: Tuesday, January 09, 2007 7:04 PM >> Subject: Re: [Nagios-users] Fw: nagios alerts to pc >> >> >> >>> Dhaval Thakar wrote: >>> >>>> the reason to redirect to logs was to ensure execution of the command, >>>> but log is not created. i tried with mentioned command from shell using >>>> root. it is working hence communication to windows machine is ok. >>>> >>> There could be your problem - test the plugin running as the "nagios" >>> user. >>> >>>> i have not created file "/tmp/smbclient.log", just mentioned in >>>> commands.cfg >>>> nagios user has the rights to write to /tmp dir >>>> >>> Don't forget to copy the list in on your replies as it could help somebody >>> else in the future when searching the archives. >>> >>> >>> Andy. >>> >>> >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> !DSPAM:37,45a3a3b9137101955318944! >> >> >> > > > -- > Andy Shellam > NetServe Support Team > > the Mail Network > "an alternative in a standardised world" > > p: +44 (0) 121 288 0832/0839 > m: +44 (0) 7818 000834 > > -------------------------------------------------------------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jolivan at sertec-si.com Thu Jan 11 11:12:56 2007 From: jolivan at sertec-si.com (=?ISO-8859-1?Q?Jes=FAs_Oliv=E1n?=) Date: Thu, 11 Jan 2007 11:12:56 +0100 Subject: setting service visibility Message-ID: <45A60DA8.70309@sertec-si.com> Hi! is it possible to allow some users (or group of users) to see a service and don't allow other users to see it? Thanks! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skumarsmails at gmail.com Thu Jan 11 14:54:03 2007 From: skumarsmails at gmail.com (Saravana Kumar) Date: Thu, 11 Jan 2007 19:24:03 +0530 Subject: Plugin to check the File size In-Reply-To: References: Message-ID: <620e4cdb0701110554k593733fvfd0aaeb1206be957@mail.gmail.com> Thank you Marc Can you provide me the syntax to check the file size using check_file plugin Thanks Saravana On 1/10/07, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Saravana Kumar > > Sent: Tuesday, January 09, 2007 10:44 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Plugin to check the File size > > > > > > Hi > > > > We are using nagios 1.2 on Linux box. and we are monitoring > > jboss services in Live servers. my requirement is we need to monitor > the > > jboss log file according the size based. > > > > Do we have any plugins to monitor the file size ?? if so > > kindly provide me the link > > Search engines can answer a lot of questions if they're asked -- > > or > 1%5Bphrase%5D=size&tx_netnagext_pi1%5Bsubmit%5D=search&tx_netnagext_pi1% > 5Bsearch%5D=1> > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Saravana Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Thu Jan 11 15:06:55 2007 From: dan at langille.org (Dan Langille) Date: Thu, 11 Jan 2007 09:06:55 -0500 Subject: setting service visibility In-Reply-To: <45A60DA8.70309@sertec-si.com> References: <45A60DA8.70309@sertec-si.com> Message-ID: <45A5FE2F.15587.851C637B@dan.langille.org> On 11 Jan 2007 at 11:12, Jes?s Oliv?n wrote: > Hi! > > is it possible to allow some users (or group of users) to see a service > and don't allow other users to see it? Failing other solutions... By default users can see only those hosts/services for which they are contacts. See authorized_for_all_service in cgi.cfg Does that help? -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 15:23:29 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 08:23:29 -0600 Subject: Plugin to check the File size Message-ID: > -----Original Message----- > From: Saravana Kumar [mailto:skumarsmails at gmail.com] > Sent: Thursday, January 11, 2007 7:54 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Plugin to check the File size > > Thank you Marc > > > Can you provide me the syntax to check the file size using > > check_file plugin No. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 thebug.demon.nl Thu Jan 11 15:45:35 2007 From: nagios at thebug.demon.nl (Richard Luys-Nagios User) Date: Thu, 11 Jan 2007 15:45:35 +0100 Subject: Nagios / NDO utils and Cacti Message-ID: Hello List, I know, Nagios and Cacti is asked before. But this one is with a twist. I compiled Nagios with event-broker-support and use the NDO Utils to fill a MySQL database with the check output and perfdata (default NDO2DB functionality). Now I like to install Cacti in such a manner that it uses the data in the NDO tables to create graphs. So basically, Nagios checks everything, and Cacti only uses the data from the NDO database. I think this must be possible, but I am new to Nagios and have no clue how to do this. I think I have to create some scripts that query the database and feed the info to Cacti. Is this done before? Has someone tips or clues, or nudges in the right direction? Any links to usefull documentation / forum posts are welcome too. I already looked at NPC (Nagios Plugin for Cacti) but that's not what I am looking for. TIA, Richard Luys ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 16:02:05 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 09:02:05 -0600 Subject: Nagios / NDO utils and Cacti Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Richard Luys-Nagios User > Sent: Thursday, January 11, 2007 8:46 AM > To: Nagios Userlist > Subject: [Nagios-users] Nagios / NDO utils and Cacti > > Hello List, > > Is this done before? Has someone tips or clues, or nudges in the right > direction? Any links to usefull documentation / forum posts are welcome > too. Just a nudge -- google, try to figure it out on your own, then ask the cacti list. Nagios is doing its part correctly, you just need to learn how to get cacti to pull information from a database. It just happens, and is mostly irrelevant, that the database is populated by nagios. This feature from the cacti page looks to be just what you need -- "Contains a "data input" mechanism which allows users to define custom scripts that can be used to gather data. Each script can contain arguments that must be entered for each data source created using the script (such as an IP address)." -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jolivan at sertec-si.com Thu Jan 11 16:38:07 2007 From: jolivan at sertec-si.com (=?ISO-8859-1?Q?Jes=FAs_Oliv=E1n?=) Date: Thu, 11 Jan 2007 16:38:07 +0100 Subject: setting service visibility In-Reply-To: <45A5FE2F.15587.851C637B@dan.langille.org> References: <45A60DA8.70309@sertec-si.com> Message-ID: <45A659DF.5090801@sertec-si.com> yeah, it works! Thanks! i didn't know that contact_groups works in services.cfg too. o:) Dan Langille escribi?: > On 11 Jan 2007 at 11:12, Jes?s Oliv?n wrote: > > >> Hi! >> >> is it possible to allow some users (or group of users) to see a service >> and don't allow other users to see it? >> > > Failing other solutions... > > By default users can see only those hosts/services for which they are > contacts. See authorized_for_all_service in cgi.cfg > > Does that help? > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jolivan at sertec-si.com Thu Jan 11 16:39:38 2007 From: jolivan at sertec-si.com (=?ISO-8859-1?Q?Jes=FAs_Oliv=E1n?=) Date: Thu, 11 Jan 2007 16:39:38 +0100 Subject: PDC plugin Message-ID: <45A65A3A.6010709@sertec-si.com> Hi! is there any plugin to verify that a domain controller is working? (basically authenticating users). Thx! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Thu Jan 11 16:52:44 2007 From: andrew at profitability.net (Andrew Cruse) Date: Thu, 11 Jan 2007 10:52:44 -0500 Subject: Nagios / NDO utils and Cacti In-Reply-To: References: Message-ID: <02a601c73598$88922a10$6400000a@andrew2> Richard Luys-Nagios User wrote: > Hello List, > > I know, Nagios and Cacti is asked before. But this one is with a > twist. > > I compiled Nagios with event-broker-support and use the NDO Utils to > fill a MySQL database with the check output and perfdata (default > NDO2DB functionality). Now I like to install Cacti in such a manner > that it uses the data in the NDO tables to create graphs. > > So basically, Nagios checks everything, and Cacti only uses the data > from the NDO database. I think this must be possible, but I am new to > Nagios and have no clue how to do this. I think I have to create some > scripts that query the database and feed the info to Cacti. You *could* do it this way, but why? The only way I could see without doing some major hacking up of Cacti would be to write an input script for Cacti that pulls the current values from the database. Cacti would take those values and insert them into RRD files, and would then read the RRD files and display graphs based on those. So you're going to a lot of work just to get the data into an RRD file when there are handy plugins for Nagios that will take perfdata and RRD-ize them automatically. Then you can just point Cacti to those RRD's. Andrew ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 18:25:33 2007 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 11 Jan 2007 08:25:33 -0900 Subject: Plugin to check the File size In-Reply-To: <620e4cdb0701110554k593733fvfd0aaeb1206be957@mail.gmail.com> References: <620e4cdb0701110554k593733fvfd0aaeb1206be957@mail.gmail.com> Message-ID: <1C948B4C-3E8B-48BA-99D0-DADA0EEAC57A@frontierflying.com> On Jan 11, 2007, at 4:54 AM, Saravana Kumar wrote: > Thank you Marc > > > Can you provide me the syntax to check the file size > using > > check_file plugin Sure- just run ./check_file --help from the directory in which the check_file plugin exists, and it will spit out that information. This actually works on any well-written Nagios plugin. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- > > Thanks > Saravana > > On 1/10/07, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > users- > > bounces at lists.sourceforge.net] On Behalf Of Saravana Kumar > > Sent: Tuesday, January 09, 2007 10:44 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Plugin to check the File size > > > > > > Hi > > > > We are using nagios 1.2 on Linux box. and we are > monitoring > > jboss services in Live servers. my requirement is we need to monitor > the > > jboss log file according the size based. > > > > Do we have any plugins to monitor the file size ?? if so > > kindly provide me the link > > Search engines can answer a lot of questions if they're asked -- > > < http://www.google.com/search?q=nagios+check+file+size> or > tx_netnagext_pi > 1%5Bphrase%5D=size&tx_netnagext_pi1%5Bsubmit% > 5D=search&tx_netnagext_pi1% > 5Bsearch%5D=1> > > -- > Marc > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Saravana Kumar > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Thu Jan 11 18:46:53 2007 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Thu, 11 Jan 2007 10:46:53 -0700 Subject: CHECK_FTP returns "Connection refused" Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C7B5B@QMAIL.corp.questar.com> I am running the check_ftp plugin against a server that is running ftp. If I run the plugin from the command line (either as root or nagios), the plugin appears to work, and gives me the following repsonse: [root at dev02 plugins]# ./check_ftp -H dev01 FTP OK - 0.004 second response time on port 21 [220 (vsFTPd 2.0.1)]|time=0.003810s;0.000000;0.000000;0.000000;10.000000 [root at dev02 plugins]# But, when this plugin runs from Nagios, the browser display shows the Service information to be: "Connection refused", and the nagios log has the following entry: [1168498800] CURRENT SERVICE STATE: dev01;ftp;CRITICAL; HARD;3;Connection refused Any ideas on this one? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 18:58:32 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 11:58:32 -0600 Subject: CHECK_FTP returns "Connection refused" Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Bret Goodfellow > Sent: Thursday, January 11, 2007 11:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] CHECK_FTP returns "Connection refused" > > I am running the check_ftp plugin against a server that is running ftp. > If I run the plugin from the command line (either as root or nagios), the > plugin appears to work, and gives me the following repsonse: > > [root at dev02 plugins]# ./check_ftp -H dev01 > FTP OK - 0.004 second response time on port 21 [220 (vsFTPd > 2.0.1)]|time=0.003810s;0.000000;0.000000;0.000000;10.000000 > [root at dev02 plugins]# Always run plugin tests as the nagios user. Tests as any other user are not valid. > But, when this plugin runs from Nagios, the browser display shows the > Service information to be: "Connection refused", and the nagios log has > the following entry: > > [1168498800] CURRENT SERVICE STATE: dev01;ftp;CRITICAL; HARD;3;Connection > refused > > Any ideas on this one? Look at your host definition. The 'address' is most likely incorrect or unresolve-able by the nagios user. Check to make sure that you're testing the plugin in exactly the same way that it's run by nagios. You can see what nagios is running by echoing your plugin command to a tmp file like below. If you can't figure it out, please post the complete host, service and command definitions. define somecommand { ... command_line echo "$USER1$/check_ftp " >> /tmp/nagios-runs-me } -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Thu Jan 11 20:06:15 2007 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Thu, 11 Jan 2007 12:06:15 -0700 Subject: CHECK_FTP returns "Connection refused" In-Reply-To: References: Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C7B5C@QMAIL.corp.questar.com> I set up a separate command as you said, but I took out the "echo", and the command executed as expected with the response coming back as: FTP OK - 0.0003 second response time on port 21 ....... Here are my config files: Checkcommands.cfg # 'check_ftp' command definition define command{ command_name check_ftp command_line $USER1$/check_ftp -H $HOSTADDRESS$ } Hosts.cfg ######################################################################## ############## # 'dev01' host definition # ######################################################################## ############## define host{ use generic-host ; Name of host template to use host_name dev01 alias dev01 address 10.8.24.170 check_command check-host-alive contact_groups linux-admins max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } Services.cfg # Service definition: check_ftp define service{ use generic-service ; Name of service template to use host_name dev01 service_description ftp is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 1440 notification_period 24x7 notification_options w,u,c,r check_command check_ftp } Other services for dev01 work ok, it's just check_ftp that doesn't work. Thanks in advance, Bret -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, January 11, 2007 10:59 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Bret Goodfellow > Sent: Thursday, January 11, 2007 11:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] CHECK_FTP returns "Connection refused" > > I am running the check_ftp plugin against a server that is running ftp. > If I run the plugin from the command line (either as root or nagios), the > plugin appears to work, and gives me the following repsonse: > > [root at dev02 plugins]# ./check_ftp -H dev01 FTP OK - 0.004 second > response time on port 21 [220 (vsFTPd > 2.0.1)]|time=0.003810s;0.000000;0.000000;0.000000;10.000000 > [root at dev02 plugins]# Always run plugin tests as the nagios user. Tests as any other user are not valid. > But, when this plugin runs from Nagios, the browser display shows the > Service information to be: "Connection refused", and the nagios log has > the following entry: > > [1168498800] CURRENT SERVICE STATE: dev01;ftp;CRITICAL; HARD;3;Connection > refused > > Any ideas on this one? Look at your host definition. The 'address' is most likely incorrect or unresolve-able by the nagios user. Check to make sure that you're testing the plugin in exactly the same way that it's run by nagios. You can see what nagios is running by echoing your plugin command to a tmp file like below. If you can't figure it out, please post the complete host, service and command definitions. define somecommand { ... command_line echo "$USER1$/check_ftp " >> /tmp/nagios-runs-me } -- Marc ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivera01 at sbcglobal.net Thu Jan 11 20:21:42 2007 From: rivera01 at sbcglobal.net (David Rivera) Date: Thu, 11 Jan 2007 11:21:42 -0800 (PST) Subject: Solaris 10 and the nrpe client Message-ID: <545532.16567.qm@web82112.mail.mud.yahoo.com> Hi, I have recently built a new instance of a Nagios server, it is running on Linux. The clients are Linux and Solaris. All clients are able to communicate with the Nagios server via the nrpe client pkg, EXCEPT my 2 solaris 10 boxes. I can not get it to run on these servers, it does not want to start up on the client. I am wondering if this is a Solaris 10 in-compatible issue, or am I doing something wrong. I am using the standalone version for the client so when I do: ./nrpe -c /usr/local/nagios/etc/nrpe.cfg -d & it just will not start as all the other Solaris and linux server do. Any help would be appreciated. thanks DR Money can't buy happiness, but neither can poverty. -Leo Rosten -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 20:50:28 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 13:50:28 -0600 Subject: CHECK_FTP returns "Connection refused" Message-ID: > -----Original Message----- > From: Bret Goodfellow [mailto:Bret.Goodfellow at questar.com] > Sent: Thursday, January 11, 2007 1:06 PM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > I set up a separate command as you said, but I took out the "echo", and > the command executed as expected with the response coming back as: > > FTP OK - 0.0003 second response time on port 21 ....... The echo was a vital part of the command I wanted you use in nagios. It was designed specifically to output information to /tmp/nagios-runs-me so that you could see the command nagios was executing, but not actually execute it. This may still be informational and is worth doing right. The key question right now though is how does this successful command definition differ from the one you were using previously? You saw this successful run from the web interface? > Here are my config files: > > Checkcommands.cfg > # 'check_ftp' command definition > define command{ > command_name check_ftp > command_line $USER1$/check_ftp -H $HOSTADDRESS$ > } > OK. This is good. $HOSTADDRESS$ is going to be 10.8.24.170 based on your host definition. I am assuming at this point that $USER1$ is defined properly. What happens when you run '/path/to/nagios/plugins/check_ftp -H 10.8.24.170' as the nagios user? Finally, is it possible that you had a bad host address or different check_ftp{} command definition in the past and you've changed them recently? You might have an old nagios daemon running in tandem with old config information. Do you have any nagios processes running with a start time older than your last restart? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Thu Jan 11 21:23:40 2007 From: vadi.ksdba at gmail.com (vadi) Date: Fri, 12 Jan 2007 01:53:40 +0530 Subject: MySQL replication broken status in nagios Message-ID: <5f6b57ee0701111223u426cc1a4yfad2493f91b9ff97@mail.gmail.com> Respected Sir/Madam, I want to see MySQL replication broken status in nagios As of now I am collecting/shows below mention data but I am facing some problem in replication so we need monitor MySQL replication broken information in nagios. Master Log Position: 20448679 1st Slave Log Position: 20447619 Difference: 1060 2nd Slave Log Position: 20448414 Difference: 265 Can anyone please help me in this? Thanks, vadiraj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MPetersen at gs1us.org Thu Jan 11 21:31:03 2007 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 11 Jan 2007 14:31:03 -0600 Subject: MySQL replication broken status in nagios Message-ID: <115F9F24033E1E4AB338024BDF9646F00559A9@chilms1002.UCCORG.org> Why can you not use check_mysql -S slave stuff from the standard nagios plugins? If this won't work you'll have to write a script/plugin following the guildelines available here - http://nagiosplug.sourceforge.net/developer-guidelines.html and/or ask more specific questions. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 11 22:53:41 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 15:53:41 -0600 Subject: CHECK_FTP returns "Connection refused" Message-ID: Always respond on list so that others may benefit from your experience. > -----Original Message----- > From: Bret Goodfellow [mailto:Bret.Goodfellow at questar.com] > Sent: Thursday, January 11, 2007 2:45 PM > To: Marc Powell > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > Okay, I put the "echo" back in to see what was being executed. Here it > is: > > /usr/lib64/nagios/plugins/check_ftp -H dev01 This is not possible if the information you have given previously about your current host and command definitions is correct. Your command definition uses the $HOSTADDRESS$ macro. That value can only be 10.8.24.170 as defined in your host definition, therefore the output you have to be seeing is /usr/lib64/nagios/plugins/check_ftp -H 10.8.24.170 Which is correct, the configuration or the output? You must be restarting nagios to test the command{} definition variations so nagios should be using the information you provided. Are you sure that nagios is reading the cfg_file(s) with the host{} definition and/or command{} definition you provided earlier and not some other? > This command looks no different from what I have run from the command > line. And to answer the last question, the service has not been > successful from the web interface. Nagios isn't running in a login shell so your OS could be doing something funny with the hostname expansion needed to perform the DNS lookup. *shrug*. Regardless, it should be using the IP and not the hostname 'dev01' anyway so I think there's something else going on. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 duckland.org Fri Jan 12 00:37:27 2007 From: ian at duckland.org (Ian Forde) Date: Thu, 11 Jan 2007 15:37:27 -0800 Subject: Bug in Nagios 2.6 regarding multiple hostgroups lines in services.cfg Message-ID: <1168558647.5657.2.camel@x-wing.iforde.net> Hi all - I've noticed that you can have multiple "members" lines in the hostgroups.cfg hostgroup entries. Unfortunately, while rewriting a fairly large Nagios configuration to support Distributed monitoring, I separated out our services.cfg lines to have multiple "hostgroups" lines for a given services. This quite neatly broke the config, as it seems that it only reads the last hostgroups line listed for a given service. Any chance of a fix? Thanks, -Ian Forde -- _______________________________________ Ian Forde RHCE (7,EL4), CCSE, SCNA, SCDME ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 12 01:34:17 2007 From: marc at ena.com (Marc Powell) Date: Thu, 11 Jan 2007 18:34:17 -0600 Subject: Bug in Nagios 2.6 regarding multiple hostgroupslines in services.cfg Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Ian Forde > Sent: Thursday, January 11, 2007 5:37 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Bug in Nagios 2.6 regarding multiple > hostgroupslines in services.cfg > > Hi all - > > I've noticed that you can have multiple "members" lines in the > hostgroups.cfg hostgroup entries. Unfortunately, while rewriting a > fairly large Nagios configuration to support Distributed monitoring, I > separated out our services.cfg lines to have multiple "hostgroups" lines > for a given services. This quite neatly broke the config, as it seems > that it only reads the last hostgroups line listed for a given service. > > Any chance of a fix? That's pretty unclear. You're sure it's a bug because...? It's specifically documented as possible at...? The definition you're trying to use looks like...? It sounds to me that what you're trying to do just isn't supported. Multiple 'members' lines are only supported for hostgroup{} definitions and is a new feature with nagios-2.0 (http://nagios.sourceforge.net/docs/2_0/whatsnew.html). No other object type supports that kind of construct (multiple object{} atoms) that I can think of off the top of my head. It sounds to me that you have a feature request, not a bug report. In either case, it is best suited to nagios-devel. I'm under the impression that Ethan rarely reads this list, at least he rarely participates. Be very clear about what you're trying to do, giving examples, when you post. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 12 08:44:00 2007 From: andrea.gabellini at telecomitalia.sm (Andrea Gabellini) Date: Fri, 12 Jan 2007 08:44:00 +0100 Subject: Solaris 10 and the nrpe client In-Reply-To: <545532.16567.qm@web82112.mail.mud.yahoo.com> References: <545532.16567.qm@web82112.mail.mud.yahoo.com> Message-ID: <45A73C40.8020605@telecomitalia.sm> David, I have had the same problem on some solaris installation (from 7 to 10) with SSL communications, so disabling the SSL with the -n flag works for me. Obviously also the Nagios server have to do the connection without using SSL. Andrea David Rivera wrote: > Hi, > > I have recently built a new instance of a Nagios server, it is running on Linux. > The clients are Linux and Solaris. All clients are able to communicate with the Nagios server via the nrpe client pkg, EXCEPT my 2 solaris 10 boxes. I can not get it to run on these servers, it does not want to start up on the client. I am wondering if this is a Solaris 10 in-compatible issue, or am I doing something wrong. I am using the standalone version for the client > > so when I do: ./nrpe -c /usr/local/nagios/etc/nrpe.cfg -d & > > it just will not start as all the other Solaris and linux server do. > > Any help would be appreciated. > > thanks > DR > > > > > > Money can't buy happiness, but neither can poverty. > -Leo Rosten > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------------------------- A flashlight is a case for holding dead batteries. --------------------------------------- Ing. Andrea Gabellini Email: andrea.gabellini at telecomitalia.sm Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International) Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino http://www.omniway.sm http://www.telecomitalia.sm ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 12 09:52:40 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 12 Jan 2007 10:52:40 +0200 Subject: Nagios not executing sms script Message-ID: Hi all I have written my own sms script for notifications The script works 100% When I execute it manualy. But when I ask nagios to execute the script I get the following error in my log file. Jan 11 17:09:06 nagios-0 nagios: Warning: Attempting to execute the command "/root/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: RECOVERY\n\nService: HTTP\nHost: 196.23.28.207\nAddress: 10.0.4.19\nState: OK\n\nDate/Time: Thu Jan 11 17:09:06 SAST 2007\n\nAdditional Info:\n\nHTTP OK HTTP/1.1 200 OK - 235 bytes in 0.002 seconds"" resulted in a return code of 126. Make sure the script or binary you are trying to execute actually exists... The script does exist. nagios-0 ~ # ls -la /root/sms.rb -rwxrwxrwx 1 nobody nobody 750 Jan 11 16:52 sms.rb This is how I also added the script into the commands.cfg file # 'notify-by-sms' command definition define command{ command_name notify-by-sms command_line /root/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC $\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTP UT$" } # 'notify-by-sms' command definition define command{ command_name host-notify-by-sms command_line /usr/bin/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState : $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" } Thank you ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlongland at grintek.com Fri Jan 12 10:16:41 2007 From: jlongland at grintek.com (John Longland) Date: Fri, 12 Jan 2007 11:16:41 +0200 Subject: Nagios not executing sms script Message-ID: <97DAFA85DDDB9D4CA206918E0375033E02CDF7@Jupiter.Grintel.com> I would suggest you put the script in /usr/local/nagios/libexec. This is where I put my script ( I also wrote my own script to do the SMS-ing ). Nagios dopes not have permissions into the /root -DIR. John -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net]On Behalf Of edalB Sent: 12 January 2007 10:53 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios not executing sms script Hi all I have written my own sms script for notifications The script works 100% When I execute it manualy. But when I ask nagios to execute the script I get the following error in my log file. Jan 11 17:09:06 nagios-0 nagios: Warning: Attempting to execute the command "/root/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: RECOVERY\n\nService: HTTP\nHost: 196.23.28.207\nAddress: 10.0.4.19\nState: OK\n\nDate/Time: Thu Jan 11 17:09:06 SAST 2007\n\nAdditional Info:\n\nHTTP OK HTTP/1.1 200 OK - 235 bytes in 0.002 seconds"" resulted in a return code of 126. Make sure the script or binary you are trying to execute actually exists... The script does exist. nagios-0 ~ # ls -la /root/sms.rb -rwxrwxrwx 1 nobody nobody 750 Jan 11 16:52 sms.rb This is how I also added the script into the commands.cfg file # 'notify-by-sms' command definition define command{ command_name notify-by-sms command_line /root/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC $\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTP UT$" } # 'notify-by-sms' command definition define command{ command_name host-notify-by-sms command_line /usr/bin/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState : $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" } Thank you ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Fri Jan 12 10:52:52 2007 From: chandler at chapman.edu (Jay Chandler) Date: Fri, 12 Jan 2007 01:52:52 -0800 Subject: Nagios not executing sms script In-Reply-To: References: Message-ID: <45A75A74.2000107@chapman.edu> edalB wrote: > Hi all I have written my own sms script for notifications > > The script works 100% > > When I execute it manualy. > But when I ask nagios to execute the script I get the following error > in my log file. > > Jan 11 17:09:06 nagios-0 nagios: Warning: Attempting to execute the > command "/root/sms.rb -m "***** Nagios 2.6 *****\n\nNotification Type: > RECOVERY\n\nService: HTTP\nHost: 196.23.28.207\nAddress: > 10.0.4.19\nState: OK\n\nDate/Time: Thu Jan 11 17:09:06 SAST > 2007\n\nAdditional Info:\n\nHTTP OK HTTP/1.1 200 OK - 235 bytes in > 0.002 seconds"" resulted in a return code of 126. Make sure the > script or binary you are trying to execute actually exists... > > The script does exist. > > nagios-0 ~ # ls -la /root/sms.rb > -rwxrwxrwx 1 nobody nobody 750 Jan 11 16:52 sms.rb > > This is how I also added the script into the commands.cfg file > > # 'notify-by-sms' command definition > define command{ > command_name notify-by-sms > command_line /root/sms.rb -m "***** Nagios 2.6 > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC > $\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTP > UT$" > } > > # 'notify-by-sms' command definition > define command{ > command_name host-notify-by-sms > command_line /usr/bin/sms.rb -m "***** Nagios 2.6 > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: > $HOSTNAME$\nState > : $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" > } > > Thank you > > If you wouldn't mind, I'd dearly like a look at that script... -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Your processor has processed too many instructions. Turn it off immediately, do not type any commands!! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Fri Jan 12 11:14:19 2007 From: chandler at chapman.edu (Jay Chandler) Date: Fri, 12 Jan 2007 02:14:19 -0800 Subject: Nagios not executing sms script In-Reply-To: References: <45A75A74.2000107@chapman.edu> Message-ID: <45A75F7B.6040209@chapman.edu> edalB wrote: > Sure NP. > > Just note I wrote this script in Ruby. > > And it uses a South African sms provider that allowes me to do a post > to there sms portal. > Thanks! I'm using TMobile here in the states, but NUMBER at tmomail.net doesn't seem to work after the first few days... -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Your processor has processed too many instructions. Turn it off immediately, do not type any commands!! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 12 12:09:15 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 12 Jan 2007 11:09:15 +0000 Subject: check for terminal servers/rdp? Message-ID: <45A76C5B.3080304@googlemail.com> Does anybody know if there is a test for Terminal Servers/RDP other than just check_tcp? I couldn't find any on nagios exchange... Thanks -- Hari Sekhon ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Fri Jan 12 19:34:16 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Fri, 12 Jan 2007 12:34:16 -0600 Subject: notification question... Message-ID: HI all, I have a very strange problem. I just upgrade to NAGIOS 2.6 from a version 1. (Don't ask please). On my previous production server, I had the host-notify-by-email command define as: define command{ name host-notify-by-email command_name host-notify-by-email command_line $USER1$/notify-email.pl --HOSTNAME="$HOSTNAME$" --HOSTALIAS="$HOSTALIAS$" --HOSTADDRESS="$HOSTADDRESS$" --LASTSTATECHANGE="$LASTSTATECHANGE$" --TIMET="$TIMET$" --HOSTSTATE="$HOSTSTATE$" --OUTPUT="$OUTPUT$" --DATETIME="$DATETIME$" --NOTIFICATIONTYPE="$NOTIFICATIONTYPE$" | /bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTALIAS$! ($HOSTNAME$)' $CONTACTEMAIL$ } The same as the new production version, however when I get an alert I am not getting the same information on the email. The $OUTPUT$ and the $DATETIME$ is not being sent on the email. It works fine on the previous version. Any help is greatly appreciated. Luis Lacayo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Fri Jan 12 19:42:43 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Fri, 12 Jan 2007 11:42:43 -0700 Subject: notification question... In-Reply-To: References: Message-ID: <2D0245E43DEC724F81592D697F05689904C433FC@SIDHQEXCHMB1.Cabelas.Corp> http://nagios.sourceforge.net/docs/2_0/macros.html#servicedesc $OUTPUT$ -> $HOSTOUTPUT$ $DATETIME$ -> either $SHORTDATETIME$ or $LONGDATETIME$ -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lacayo, Luis F Sent: Friday, January 12, 2007 11:34 AM To: Nagios Users mailinglist Subject: [Nagios-users] notification question... HI all, I have a very strange problem. I just upgrade to NAGIOS 2.6 from a version 1. (Don't ask please). On my previous production server, I had the host-notify-by-email command define as: define command{ name host-notify-by-email command_name host-notify-by-email command_line $USER1$/notify-email.pl --HOSTNAME="$HOSTNAME$" --HOSTALIAS="$HOSTALIAS$" --HOSTADDRESS="$HOSTADDRESS$" --LASTSTATECHANGE="$LASTSTATECHANGE$" --TIMET="$TIMET$" --HOSTSTATE="$HOSTSTATE$" --OUTPUT="$OUTPUT$" --DATETIME="$DATETIME$" --NOTIFICATIONTYPE="$NOTIFICATIONTYPE$" | /bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTALIAS$! ($HOSTNAME$)' $CONTACTEMAIL$ } The same as the new production version, however when I get an alert I am not getting the same information on the email. The $OUTPUT$ and the $DATETIME$ is not being sent on the email. It works fine on the previous version. Any help is greatly appreciated. Luis Lacayo ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Fri Jan 12 20:01:11 2007 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Fri, 12 Jan 2007 12:01:11 -0700 Subject: CHECK_FTP returns "Connection refused" In-Reply-To: <91EDB00F83BAD443A9D05FA67623955A027C7B61@QMAIL.corp.questar.com> References: <91EDB00F83BAD443A9D05FA67623955A027C7B61@QMAIL.corp.questar.com> Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C7B62@QMAIL.corp.questar.com> I tried the IP address from the command line (logged in as nagios), and I did get the expected reponse: FTP OK - ......etc. There is only one daemon running for nagios. BTW, there are other services setup and running okay for this particular host. It's just that the service "check_ftp" responds with "Connection refused" on the web interface. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, January 11, 2007 2:54 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" Always respond on list so that others may benefit from your experience. > -----Original Message----- > From: Bret Goodfellow [mailto:Bret.Goodfellow at questar.com] > Sent: Thursday, January 11, 2007 2:45 PM > To: Marc Powell > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > Okay, I put the "echo" back in to see what was being executed. Here it > is: > > /usr/lib64/nagios/plugins/check_ftp -H dev01 This is not possible if the information you have given previously about your current host and command definitions is correct. Your command definition uses the $HOSTADDRESS$ macro. That value can only be 10.8.24.170 as defined in your host definition, therefore the output you have to be seeing is /usr/lib64/nagios/plugins/check_ftp -H 10.8.24.170 Which is correct, the configuration or the output? You must be restarting nagios to test the command{} definition variations so nagios should be using the information you provided. Are you sure that nagios is reading the cfg_file(s) with the host{} definition and/or command{} definition you provided earlier and not some other? > This command looks no different from what I have run from the command > line. And to answer the last question, the service has not been > successful from the web interface. Nagios isn't running in a login shell so your OS could be doing something funny with the hostname expansion needed to perform the DNS lookup. *shrug*. Regardless, it should be using the IP and not the hostname 'dev01' anyway so I think there's something else going on. -- Marc ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 12 20:57:55 2007 From: marc at ena.com (Marc Powell) Date: Fri, 12 Jan 2007 13:57:55 -0600 Subject: notification question... Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Lacayo, Luis F > Sent: Friday, January 12, 2007 12:34 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] notification question... > > HI all, > > I have a very strange problem. I just upgrade to NAGIOS 2.6 from a > version 1. (Don't ask please). In addition to the previous response, you'll probably want to look at the What's New documentation or Changelog to see the other changes between versions. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Fri Jan 12 21:17:00 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 12 Jan 2007 15:17:00 -0500 Subject: nagios unreachable timeout Message-ID: <7abcf48e0701121217l230c4cb4nff0ac0a30e79e85c@mail.gmail.com> Hey guys i am using nagios 2.4 it sends out email alert when the host is unreachable but doesnt send out email when host is timing out Also when i restart a switch on the nagios staus map the service is shown up when in fact its restarting does this have to do with refreshing the status map how do you do this its not in the documentations!! why is this ? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Fri Jan 12 21:22:03 2007 From: vadi.ksdba at gmail.com (vadi) Date: Sat, 13 Jan 2007 01:52:03 +0530 Subject: MySQL replication broken status in nagios In-Reply-To: <115F9F24033E1E4AB338024BDF9646F00559A9@chilms1002.UCCORG.org> References: <115F9F24033E1E4AB338024BDF9646F00559A9@chilms1002.UCCORG.org> Message-ID: <5f6b57ee0701121222i2ac99d76i60cf8976d4457b2d@mail.gmail.com> Hi Mark, First let me tell thanks for replaying to this mail. Do you have any script by using check_mysql which is used for showing replication error in nagios For example: mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: Master_User: repl Master_Port: 3306 Connect_Retry: 60 Master_Log_File: lindb200603-bin.000003 Read_Master_Log_Pos: 775021520 Relay_Log_File: lindb200604-relay-bin.000247 Relay_Log_Pos: 1542020 Relay_Master_Log_File: lindb200603-bin.000003 Slave_IO_Running: Yes Slave_SQL_Running: No Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 1064 Last_Error: Error 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''c' at line 1' on query.Query: 'update active_sessions set val='Y2JheV9zZXNzaW9uOiR0aGlzLT5pbiA9ICcwJzsgJHRoaXMtPnB0ID0gYXJyYXkoKTsg', changed='20061228080327' where sid='4c142f92c875fd820c81bd71fe03f95f' and name='c' Skip_Counter: 0 Exec_Master_Log_Pos: 532520812 Relay_Log_Space: 244044800 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL 1 row in set (0.00 sec) If there is any error in this field Last_Error: it should display this error massage in nagio and also it should send mail on this issue. I am not able find replication broken info in nagios Due to this I usually need to check manually in the database Please kindly help me Thanks, vadiraj On 1/12/07, Petersen, Mark wrote: > > Why can you not use check_mysql ?S slave stuff from the standard nagios > plugins? If this won't work you'll have to write a script/plugin following > the guildelines available here - > http://nagiosplug.sourceforge.net/developer-guidelines.html and/or ask > more specific questions. > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 12 21:31:03 2007 From: marc at ena.com (Marc Powell) Date: Fri, 12 Jan 2007 14:31:03 -0600 Subject: nagios unreachable timeout Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Friday, January 12, 2007 2:17 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios unreachable timeout > > Hey guys i am using nagios 2.4 it sends out email alert when the host is > unreachable but doesnt send out email when host is timing out Your specific configuration examples/log entries would be useful but, does your host definition include 'd' for notification_options? Does your contact have the same for host_notification_options? Do those options specifically omit the 'n' directive? Is the host status properly reflected in the GUI when it's down? Does nagios.log show anything interesting around the time that you expect nagios to send out a notification? > > Also when i restart a switch on the nagios staus map the service is shown > up when in fact its restarting does this have to do with refreshing the > status map how do you do this its not in the documentations!! I don't use the status map. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 12 21:31:17 2007 From: marc at ena.com (Marc Powell) Date: Fri, 12 Jan 2007 14:31:17 -0600 Subject: CHECK_FTP returns "Connection refused" Message-ID: I'm sorry, I can't help you. I've tried to be clear about what you need to do/provide and you're either not understanding, purposely ignoring or providing conflicting information to my questions. Perhaps someone else will have better luck. -- Marc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Bret Goodfellow > Sent: Friday, January 12, 2007 1:01 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" > > I tried the IP address from the command line (logged in as nagios), and > I did get the expected reponse: > FTP OK - ......etc. > There is only one daemon running for nagios. BTW, there are other > services setup and running okay for this particular host. It's just > that the service "check_ftp" responds with "Connection refused" on the > web interface. > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc > Powell > Sent: Thursday, January 11, 2007 2:54 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" > > Always respond on list so that others may benefit from your experience. > > > -----Original Message----- > > From: Bret Goodfellow [mailto:Bret.Goodfellow at questar.com] > > Sent: Thursday, January 11, 2007 2:45 PM > > To: Marc Powell > > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > > > Okay, I put the "echo" back in to see what was being executed. Here > it > > is: > > > > /usr/lib64/nagios/plugins/check_ftp -H dev01 > > This is not possible if the information you have given previously about > your current host and command definitions is correct. Your command > definition uses the $HOSTADDRESS$ macro. That value can only be > 10.8.24.170 as defined in your host definition, therefore the output you > have to be seeing is > > /usr/lib64/nagios/plugins/check_ftp -H 10.8.24.170 > > Which is correct, the configuration or the output? You must be > restarting nagios to test the command{} definition variations so nagios > should be using the information you provided. Are you sure that nagios > is reading the cfg_file(s) with the host{} definition and/or command{} > definition you provided earlier and not some other? > > > This command looks no different from what I have run from the command > > line. And to answer the last question, the service has not been > > successful from the web interface. > > Nagios isn't running in a login shell so your OS could be doing > something funny with the hostname expansion needed to perform the DNS > lookup. *shrug*. Regardless, it should be using the IP and not the > hostname 'dev01' anyway so I think there's something else going on. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danm at prime.gushi.org Fri Jan 12 22:02:09 2007 From: danm at prime.gushi.org (Dan Mahoney, System Admin) Date: Fri, 12 Jan 2007 16:02:09 -0500 (EST) Subject: Official NRPE_NT Message-ID: <20070112160132.F13059@prime.gushi.org> Hey all, I found several different sources for NRPE for NT. Is there some "official" version? -Dan -- "Happy, Sad, Happy, Sad, Happy, Sad, Happy, Intruiged! I've never been so in touch with my emotions!" -AndrAIa as Hexadecimal, Reboot Episode 3.2.3 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bret.Goodfellow at questar.com Fri Jan 12 22:56:41 2007 From: Bret.Goodfellow at questar.com (Bret Goodfellow) Date: Fri, 12 Jan 2007 14:56:41 -0700 Subject: CHECK_FTP returns "Connection refused" In-Reply-To: References: Message-ID: <91EDB00F83BAD443A9D05FA67623955A027C7B66@QMAIL.corp.questar.com> I responded to this thread to: nagios-users at lists.sourceforge.net but haven't seen the thread posted. Am I doing something wrong? Sorry for this post. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, January 11, 2007 2:54 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" Always respond on list so that others may benefit from your experience. > -----Original Message----- > From: Bret Goodfellow [mailto:Bret.Goodfellow at questar.com] > Sent: Thursday, January 11, 2007 2:45 PM > To: Marc Powell > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > Okay, I put the "echo" back in to see what was being executed. Here it > is: > > /usr/lib64/nagios/plugins/check_ftp -H dev01 This is not possible if the information you have given previously about your current host and command definitions is correct. Your command definition uses the $HOSTADDRESS$ macro. That value can only be 10.8.24.170 as defined in your host definition, therefore the output you have to be seeing is /usr/lib64/nagios/plugins/check_ftp -H 10.8.24.170 Which is correct, the configuration or the output? You must be restarting nagios to test the command{} definition variations so nagios should be using the information you provided. Are you sure that nagios is reading the cfg_file(s) with the host{} definition and/or command{} definition you provided earlier and not some other? > This command looks no different from what I have run from the command > line. And to answer the last question, the service has not been > successful from the web interface. Nagios isn't running in a login shell so your OS could be doing something funny with the hostname expansion needed to perform the DNS lookup. *shrug*. Regardless, it should be using the IP and not the hostname 'dev01' anyway so I think there's something else going on. -- Marc ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Sat Jan 13 04:16:35 2007 From: daniel at ipv6-network.de (Daniel) Date: Sat, 13 Jan 2007 04:16:35 +0100 Subject: Interval setup Message-ID: <1498384093.20070113041635@ipv6-network.de> Hi all, i want to setup different intervals on my checked hosts: In this case i want that nagios checks every 60sec but it seems that nagios wont do that. Here a snip out of my config: define host{ use generic-host host_name bla alias bla address xx.xx.xx.xx check_command check-host-alive max_check_attempts 7 contact_groups IPv6 notification_interval 10 notification_period 24x7 notification_options d,u,r } define service{ use generic-service ; Name of service template to use host_name bla service_description PING is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 contact_groups bla notification_options w,u,c,r notification_interval 60 notification_period 24x7 check_command check_ping!100.0,20%!500.0,60% It seems that he check every 5 minutes or so... Any ideas? I use Nagios 2.6 -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Sat Jan 13 06:06:17 2007 From: chandler at chapman.edu (Jay Chandler) Date: Fri, 12 Jan 2007 21:06:17 -0800 Subject: Interval setup In-Reply-To: <1498384093.20070113041635@ipv6-network.de> References: <1498384093.20070113041635@ipv6-network.de> Message-ID: <45A868C8.1040701@chapman.edu> Daniel wrote: > Hi all, > > i want to setup different intervals on my checked hosts: > > In this case i want that nagios checks every 60sec but it seems that > nagios wont do that. > > Here a snip out of my config: > > define host{ > use generic-host > host_name bla > alias bla > address xx.xx.xx.xx > check_command check-host-alive > max_check_attempts 7 > contact_groups IPv6 > notification_interval 10 > notification_period 24x7 > notification_options d,u,r > } > define service{ > use generic-service ; Name of service template to use > host_name bla > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > contact_groups bla > notification_options w,u,c,r > notification_interval 60 > notification_period 24x7 > check_command check_ping!100.0,20%!500.0,60% > > > > It seems that he check every 5 minutes or so... > > Any ideas? I use Nagios 2.6 > > Works correctly here-- stupid question, but did you reload Nagios? Failing that, what's the output of nagios -v /your/config/file? -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Incorrectly configured static routes on the corerouters. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyrus at icsit.jkuat.ac.ke Sat Jan 13 09:01:48 2007 From: tyrus at icsit.jkuat.ac.ke (tyrus at icsit.jkuat.ac.ke) Date: Sat, 13 Jan 2007 11:01:48 +0300 (EAT) Subject: Plugin issue Message-ID: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> Hi guys am still running nagios and now there,s this error am getting with the check_ping command. It is giving me an error that: check_ping: %s: Warning threshold must be integer or percentage! Am wondering why that is the case and yet am able to ping th machine. am running red hat 9 AS and nagios version 2.6. Your assistance will highly be appreciated. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 13 12:08:36 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 13 Jan 2007 11:08:36 +0000 Subject: Plugin issue In-Reply-To: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> Message-ID: <45A8BDB4.9060102@mailnetwork.co.uk> What's the command line of your check_ping command (as defined in Nagios?) The correct syntax is: /path/to/nagios/plugins/check_ping -H -w 2000,25% -c 4000,50% whereby is the IP of the machine to ping, 2000 is the round-trip time (in ms) to generate a warning, 25% is the packet-loss amount to generate a warning, and ditto for the critical. Also note there's a bug in the check_ping whereby if the "critical" parameters are incorrect, it says the error is with the "warning" parameters - so check that's not the case as well. And you do need the percent signs ;) Andy. tyrus at icsit.jkuat.ac.ke wrote: > Hi guys am still running nagios and now there,s this error am getting with > the check_ping command. It is giving me an error that: > check_ping: %s: Warning threshold must be integer or percentage! > Am wondering why that is the case and yet am able to ping th machine. > am running red hat 9 AS and nagios version 2.6. > Your assistance will highly be appreciated. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45a892bd137106816226190! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob.blake at gmail.com Sat Jan 13 13:30:22 2007 From: rob.blake at gmail.com (Rob Blake) Date: Sat, 13 Jan 2007 12:30:22 +0000 Subject: Interval setup In-Reply-To: <1498384093.20070113041635@ipv6-network.de> References: <1498384093.20070113041635@ipv6-network.de> Message-ID: On 1/13/07, Daniel wrote: > > Hi all, > > i want to setup different intervals on my checked hosts: > > In this case i want that nagios checks every 60sec but it seems that > nagios wont do that. > > Here a snip out of my config: > > define host{ > use generic-host > host_name bla > alias bla > address xx.xx.xx.xx > check_command check-host-alive > max_check_attempts 7 > contact_groups IPv6 > notification_interval 10 > notification_period 24x7 > notification_options d,u,r > } > define service{ > use generic-service ; Name of > service template to use > host_name bla > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > contact_groups bla > notification_options w,u,c,r > notification_interval 60 > notification_period 24x7 > check_command check_ping!100.0,20%!500.0,60% > > > > It seems that he check every 5 minutes or so... > > Any ideas? I use Nagios 2.6 > > -- > greetz daniel In your nagios.cfg, what is the timing_interval set to? Taken from the main Nagios docs: **"This is the number of seconds per "unit interval" used for timing in the scheduling queue, re-notifications, etc. "Units intervals" are used in the object configuration file to determine how often to run a service check, how often of re-notify a contact, etc." ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 13 16:08:26 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 13 Jan 2007 15:08:26 +0000 Subject: Plugin issue In-Reply-To: <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> Message-ID: <45A8F5EA.9030602@mailnetwork.co.uk> tyrus at icsit.jkuat.ac.ke wrote: > you mean the one in the command.cfg file?its like this: > define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p 5 > } > well the vales are being passed to the variables declared so am wondering > where the issue might be. > thanks > > Don't forget to copy the mailing list in so others can chip in and help. What are the values of $ARG1$ and $ARG2$ being passed in from your host/service definition? For that to work your host/service definition must include something like "2000,25%" for those two arguments. Andy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sholland at sandara.ca Sat Jan 13 18:28:42 2007 From: sholland at sandara.ca (Shawn Holland) Date: Sat, 13 Jan 2007 13:28:42 -0400 Subject: Host Duration Macro Message-ID: <200701131328.42495.sholland@sandara.ca> Hi all, I am running: Nagios 2.2 SuSE 10.1 I have modified libexec/send_mail.pl and my config file to include the macro $HOSTDURATION$ As per doc: $HOSTDURATION$ A string indicating the amount of time that the host has spent in its current state. Format is "XXh YYm ZZs", indicating hours, minutes and seconds. Emails of host down are being sent but the value of $HOSTDURATION$ is always showing a value of 1. This does not correspond with the above description. Can anyone assist. Please let me know what information you require. -- Regards, Shawn Holland ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Sat Jan 13 19:25:16 2007 From: daniel at ipv6-network.de (Daniel) Date: Sat, 13 Jan 2007 19:25:16 +0100 Subject: Interval setup In-Reply-To: References: <1498384093.20070113041635@ipv6-network.de> Message-ID: <129526930.20070113192516@ipv6-network.de> Guten Tag Rob Blake, am Samstag, 13. Januar 2007 um 13:30 schrieben Sie: > In your nagios.cfg, what is the timing_interval set to? Taken from the main > Nagios docs: > **"This is the number of seconds per "unit interval" used for timing in the > scheduling queue, re-notifications, etc. "Units intervals" are used in the > object configuration file to determine how often to run a service check, how > often of re-notify a contact, etc." i cant find anythink about that: [ ?timing_interval? not found ] in nagios.cfg I will try it with that command ;) -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Sat Jan 13 19:38:23 2007 From: daniel at ipv6-network.de (Daniel) Date: Sat, 13 Jan 2007 19:38:23 +0100 Subject: Interval setup In-Reply-To: <129526930.20070113192516@ipv6-network.de> References: <1498384093.20070113041635@ipv6-network.de> <129526930.20070113192516@ipv6-network.de> Message-ID: <531325541.20070113193823@ipv6-network.de> Guten Tag Daniel, am Samstag, 13. Januar 2007 um 19:25 schrieben Sie: > Guten Tag Rob Blake, > am Samstag, 13. Januar 2007 um 13:30 schrieben Sie: >> In your nagios.cfg, what is the timing_interval set to? Taken from the main >> Nagios docs: >> **"This is the number of seconds per "unit interval" used for timing in the >> scheduling queue, re-notifications, etc. "Units intervals" are used in the >> object configuration file to determine how often to run a service check, how >> often of re-notify a contact, etc." > i cant find anythink about that: > [ ?timing_interval? not found ] in nagios.cfg > I will try it with that command ;) Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 132 (UNKNOWN VARIABLE) ***> One or more problems was encountered while processing the config files... Was set to: timeing_interval=60 bzw timing_interval=60 both entries wont work... -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 13 19:44:45 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 13 Jan 2007 18:44:45 +0000 Subject: Interval setup In-Reply-To: <531325541.20070113193823@ipv6-network.de> References: <1498384093.20070113041635@ipv6-network.de> <129526930.20070113192516@ipv6-network.de> <531325541.20070113193823@ipv6-network.de> Message-ID: <45A9289D.2010706@mailnetwork.co.uk> Along with the usual "read the manual" comment ;) ... ----- Timing Interval Length This is the number of seconds per "unit interval" used for timing in the scheduling queue, re-notifications, etc. "Units intervals" are used in the object configuration file to determine how often to run a service check, how often of re-notify a contact, etc. Format: interval_length= ----- Your directive should therefore be "interval_length=60" This is from the Nagios 2.x manual btw. Andy. Daniel wrote: > Guten Tag Daniel, > > am Samstag, 13. Januar 2007 um 19:25 schrieben Sie: > > >> Guten Tag Rob Blake, >> > > >> am Samstag, 13. Januar 2007 um 13:30 schrieben Sie: >> > > > >>> In your nagios.cfg, what is the timing_interval set to? Taken from the main >>> Nagios docs: >>> > > >>> **"This is the number of seconds per "unit interval" used for timing in the >>> scheduling queue, re-notifications, etc. "Units intervals" are used in the >>> object configuration file to determine how often to run a service check, how >>> often of re-notify a contact, etc." >>> > > >> i cant find anythink about that: >> > > >> [ ?timing_interval? not found ] in nagios.cfg >> > > >> I will try it with that command ;) >> > > > > Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 132 (UNKNOWN VARIABLE) > > ***> One or more problems was encountered while processing the config files.... > > Was set to: timeing_interval=60 bzw timing_interval=60 > > both entries wont work... > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 13 20:37:19 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 13 Jan 2007 20:37:19 +0100 (CET) Subject: Down time in UP messages? Message-ID: Hi, Did someone manage to get the down time in UP messages for hosts and/or services? I have been tampering a little bit with it but could not get any reliable/workable results. But I may havebeen missing out something rather obvious. I tried a thing like: # 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$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nDuration: $SERVICEDURATION$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ But it tells me the duration of the uptime. (Which is usually around 1 second.) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jedrzej at man.poznan.pl Sat Jan 13 20:59:01 2007 From: jedrzej at man.poznan.pl (Jedrzej Jajor) Date: Sat, 13 Jan 2007 20:59:01 +0100 Subject: Down time in UP messages? In-Reply-To: References: Message-ID: <45A93A05.4000809@man.poznan.pl> Hi Hugo, > Hi, > > Did someone manage to get the down time in UP messages for hosts and/or > services? > > I have been tampering a little bit with it but could not get any > reliable/workable results. But I may havebeen missing out something rather > obvious. > > I tried a thing like: > > # 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$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\nDuration: $SERVICEDURATION$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** > $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > > But it tells me the duration of the uptime. (Which is usually around 1 > second.) > I'd try to play with $LASTHOSTUP$ and $LASTSERVICEOK$ macros. Substracting these values from current date in $TIMET$ should give approximate host/service downtime in seconds. I was planning on trying that soon in my own Nagios, but let me know if you find out whether it works. Jedrzej. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3325 bytes Desc: S/MIME Cryptographic Signature URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 15 04:19:09 2007 From: nagios at ayksolutions.com (Artyom Khmelnitsky) Date: Mon, 15 Jan 2007 04:19:09 +0100 (CET) Subject: Using external commands with web interface Message-ID: <20070115031909.896E54F4046@desire.netways.de> Hello, I am trying to enable the full usage of the web interface. I looked at the faq and setup the correct permissions on /var/nagios/rw/nagios.cmd. The nagios config file also looks correct, but for some reason it still says that there is an issue with permissions when I try to add a Comment to a host via the web interface. Could someone please point me in the right direction? Thank you ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 10:41:09 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 15 Jan 2007 09:41:09 +0000 Subject: check for terminal servers/rdp? In-Reply-To: <45A8D35D.2000304@etmiesje.de> References: <45A76C5B.3080304@googlemail.com> <45A8D35D.2000304@etmiesje.de> Message-ID: <45AB4C35.2030101@googlemail.com> If I wanted to test just the port I'd use check_tcp. I'd like to check that it can properly talk to rdp if I can. For example, I also use vnc, so I wrote a bash script around vncsnapshot to form a valid plugin to send creds and then pull the screen from the machine. Only if it pulled successfully would you get an OK status. Since I'm moving away from vnc and towards terminal servers I would like to be able to implement a similar test, although the login part isn't necessary, as long as I can get to the login prompt I know it'll work and I don't want to fill up logs with continuous windows logins. Hari Sekhon Christian Mies wrote: > Hi Hari, > what do you want to test? The RDP Port? The Login - Functionality? > > regards > Christian > > Hari Sekhon schrieb: >> Does anybody know if there is a test for Terminal Servers/RDP other >> than just check_tcp? >> >> I couldn't find any on nagios exchange... >> >> >> Thanks >> >> > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Mon Jan 15 12:56:01 2007 From: daniel at ipv6-network.de (Daniel) Date: Mon, 15 Jan 2007 12:56:01 +0100 Subject: Some spezial nagios 2.6 questions Message-ID: <1769698944.20070115125601@ipv6-network.de> Hi all, i have some questions about nagios 2.6 and config issue's. First, i want to know if it is possible to say: "alert me every X minutes" when the down status isn't changed to up. I makes me nervouse to get every 10 minutes a sms where i can see "Host is down"... its enough when i see it every 1 Hour for example. I dont want to change it globaly, only per host. Next questions is: I get a sms where i can see: PING WARNING - Packet loss = 20%, RTA = 17.12 ms I setup in the host config following: check_command check_ping!200.0,40%!700.0,60% I thought that the ping to 200ms is OK a loss to 40% is ok Loss more then 40% is a WARNING and more then 60% is DOWN Is that correct or must i setup some else? Sorry for my english ;) -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 14:56:54 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 07:56:54 -0600 Subject: Using external commands with web interface Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Artyom Khmelnitsky > Sent: Sunday, January 14, 2007 9:19 PM > To: nagios-users at lists.sourceforge.net; nagios at ayksolutions.com > Subject: [Nagios-users] Using external commands with web interface > > Hello, > > I am trying to enable the full usage of the web interface. I looked at > the faq and setup the correct permissions on /var/nagios/rw/nagios.cmd. > The nagios config file also looks correct, but for some reason it still > says that there is an issue with permissions when I try to add a Comment > to a host via the web interface. > > Could someone please point me in the right direction? Giving the exact error message you see, any errors in your web server log file and specifically what you've done so far would go a long way to clear up the crystal ball. The documentation is going to be more useful than the FAQ. Have you read -- http://nagios.sourceforge.net/docs/2_0/cgiauth.html and http://nagios.sourceforge.net/docs/2_0/installweb.html? Are you using an OS that uses SELinux? If so, have you allowed http_context to the command file? Did you manually create nagios.cmd? If so, don't, nagios must create it. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 15:19:49 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 08:19:49 -0600 Subject: Some spezial nagios 2.6 questions Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Daniel > Sent: Monday, January 15, 2007 5:56 AM > To: Nagios Users mailinglist > Subject: [Nagios-users] Some spezial nagios 2.6 questions > > Hi all, > > i have some questions about nagios 2.6 and config issue's. > > First, i want to know if it is possible to say: > > "alert me every X minutes" when the down status isn't changed to up. > I makes me nervouse to get every 10 minutes a sms where i can see > "Host is down"... its enough when i see it every 1 Hour for example. > I dont want to change it globaly, only per host. You probably want notification_interval - (http://nagios.sourceforge.net/docs/2_0/xodtemplate.html) > Next questions is: > > I get a sms where i can see: PING WARNING - Packet loss = 20%, RTA = 17.12 > ms > > I setup in the host config following: > > check_command check_ping!200.0,40%!700.0,60% > > I thought that the ping to 200ms is OK > a loss to 40% is ok > > Loss more then 40% is a WARNING and more then 60% is DOWN > > Is that correct or must i setup some else? You haven't provided enough information to tell. Does the check_ping command{} make use of those arguments? Did you restart nagios after setting them? It would seem that one or the other isn't true or you'd see the results you were expecting. I've never seen a discrepancy like the otherwise. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Mon Jan 15 15:39:06 2007 From: m.borsani at it.net (Marco Borsani) Date: Mon, 15 Jan 2007 15:39:06 +0100 Subject: NsClient 2.0.1 Message-ID: <000801c738b2$e947cf00$0900d40a@intranet.it.net> Hi all . I installed NsClient (2.0.1) on a Windows 2000 server. It is working fine, but if I want to check CPULOAD I will read following error message: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&5 Nagios server is a 1.4 version Have you got any idea? Thanks ! Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 15:59:37 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 08:59:37 -0600 Subject: Some spezial nagios 2.6 questions Message-ID: Please always respond on list so that others may benefit from your experience. That's part of the OSS credo ;) > -----Original Message----- > From: Daniel [mailto:daniel at ipv6-network.de] > Sent: Monday, January 15, 2007 8:45 AM > To: Marc Powell > Subject: Re[2]: [Nagios-users] Some spezial nagios 2.6 questions > > Guten Tag Marc Powell, > > am Montag, 15. Januar 2007 um 15:19 schrieben Sie: > > > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > >> bounces at lists.sourceforge.net] On Behalf Of Daniel > >> Sent: Monday, January 15, 2007 5:56 AM > >> I setup in the host config following: > >> > >> check_command check_ping!200.0,40%!700.0,60% > >> Is that correct or must i setup some else? > > > You haven't provided enough information to tell. Does the check_ping > > command{} make use of those arguments? Did you restart nagios after > > setting them? It would seem that one or the other isn't true or you'd > > see the results you were expecting. I've never seen a discrepancy like > > the otherwise. > > > -- > # 'check_ping' command definition > define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p 5 > } > > > That seems that it is correct. But he wont do it :( Yes, it does seem correct. Nagios has been restarted to make sure the config is up to date? You don't happen to have multiple nagios daemons running do you (i.e. one or more nagios processes older than your last restart time). -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Mon Jan 15 16:04:56 2007 From: daniel at ipv6-network.de (Daniel) Date: Mon, 15 Jan 2007 16:04:56 +0100 Subject: Some spezial nagios 2.6 questions In-Reply-To: References: Message-ID: <1803320189.20070115160456@ipv6-network.de> Guten Tag Marc Powell, am Montag, 15. Januar 2007 um 15:59 schrieben Sie: > Please always respond on list so that others may benefit from your > experience. That's part of the OSS credo ;) Sry, i thought i have doese that hehe... I pushed the wrng button ;) >> > -- >> # 'check_ping' command definition >> define command{ >> command_name check_ping >> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ > -c >> $ARG2$ -p 5 >> } >> >> >> That seems that it is correct. But he wont do it :( > Yes, it does seem correct. Nagios has been restarted to make sure the > config is up to date? You don't happen to have multiple nagios daemons > running do you (i.e. one or more nagios processes older than your last > restart time). Let see, sometime i see so nagios processes running.. quite strange. I killed all und restarted it. Now it seems to works. Many more quiestios later about nagios ;) thx to all -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 15 16:07:03 2007 From: nagios at ayksolutions.com (nagios) Date: Mon, 15 Jan 2007 10:07:03 -0500 Subject: Using external commands with web interface In-Reply-To: <45AB37D8.3070907@schaubroeck.be> References: <20070115031909.896E54F4046@desire.netways.de> <45AB37D8.3070907@schaubroeck.be> Message-ID: <45AB9897.1090200@ayksolutions.com> Stijn and Marc, thanks for your help. I'll check the below ideas but I'm pretty sure it's setup already. I'll also take a look at the links. I checked out the documentation and that did not fix the problem. I added the group, user, setup the permissions. My nagios.cmd file was made by Nagios. It's modded 0660 I believe. I'll check the webserver logs as well. If you have any other ideas, keep them coming. :) Stijn Gruwier wrote: > Check if you are enabled to do that in cgi.cfg: > > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > Then make sure the cgi's know you as nagiosadmin by logging in as > nagiosadmin or using > > use_authentication=1 > default_user_name=nagiosadmin > > Artyom Khmelnitsky schreef: >> Hello, >> >> I am trying to enable the full usage of the web interface. I looked >> at the faq and setup the correct permissions on >> /var/nagios/rw/nagios.cmd. The nagios config file also looks correct, >> but for some reason it still says that there is an issue with >> permissions when I try to add a Comment to a host via the web interface. >> >> Could someone please point me in the right direction? >> >> Thank you > > > **** DISCLAIMER **** > http://www.schaubroeck.be/maildisclaimer.htm > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 16:26:29 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 09:26:29 -0600 Subject: Using external commands with web interface Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of nagios > Sent: Monday, January 15, 2007 9:07 AM > To: Stijn Gruwier > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Using external commands with web interface > > Stijn and Marc, thanks for your help. I'll check the below ideas but I'm > pretty sure it's setup already. I'll also take a look at the links. I > checked out the documentation and that did not fix the problem. I added > the group, user, setup the permissions. My nagios.cmd file was made by > Nagios. It's modded 0660 I believe. I'll check the webserver logs as well. > > If you have any other ideas, keep them coming. :) If you need more help, show us the specific error messages you are seeing. Show your specific config options in nagios.cfg and cgi.cfg related to external command configuration. Show an 'ls -al' of ~nagios/var/rw. Show your /etc/group configuration for nagios and your web server. Show which group your web server is actually running as (ps -eo "%p %U %G %a"). -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danm at prime.gushi.org Mon Jan 15 16:33:38 2007 From: danm at prime.gushi.org (Dan Mahoney, System Admin) Date: Mon, 15 Jan 2007 10:33:38 -0500 (EST) Subject: check for terminal servers/rdp? In-Reply-To: <45AB4C35.2030101@googlemail.com> References: <45A76C5B.3080304@googlemail.com> <45A8D35D.2000304@etmiesje.de> <45AB4C35.2030101@googlemail.com> Message-ID: <20070115103231.Q57194@prime.gushi.org> On Mon, 15 Jan 2007, Hari Sekhon wrote: The other question being, is there some in-band error sent that's easily parseable when a terminal server has exceeded its number of allowed logins (I'd treat this as a WARN, not a CRIT), without having to parse and screen-scrape the screen image for that dialog box. -Dan > If I wanted to test just the port I'd use check_tcp. > > I'd like to check that it can properly talk to rdp if I can. For > example, I also use vnc, so I wrote a bash script around vncsnapshot to > form a valid plugin to send creds and then pull the screen from the > machine. Only if it pulled successfully would you get an OK status. > > Since I'm moving away from vnc and towards terminal servers I would like > to be able to implement a similar test, although the login part isn't > necessary, as long as I can get to the login prompt I know it'll work > and I don't want to fill up logs with continuous windows logins. > > > Hari Sekhon > > > > Christian Mies wrote: >> Hi Hari, >> what do you want to test? The RDP Port? The Login - Functionality? >> >> regards >> Christian >> >> Hari Sekhon schrieb: >>> Does anybody know if there is a test for Terminal Servers/RDP other >>> than just check_tcp? >>> >>> I couldn't find any on nagios exchange... >>> >>> >>> Thanks >>> >>> >> >> >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- "What's with the server farm down in the basement?" -Spider, Three Skulls Commons at Selden House, 4/15/00 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --------------------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 15 16:51:42 2007 From: nagios at ayksolutions.com (Artyom Khmelnitsky) Date: Mon, 15 Jan 2007 16:51:42 +0100 (CET) Subject: Upgrading to latest Message-ID: <20070115155142.D0A834F4046@desire.netways.de> Hello, One other question I have is regarding the whole upgrading process. We currently run 2.0, but want to upgrade to 2.6. We do nightly backups, but does anything get overwritten that we would need to reconfigure again, such as the .cfg files, the web interface, icons, etc..? Or do we just upload hte files and run configure make make install and that's it? Thank you again ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 17:38:43 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 10:38:43 -0600 Subject: Upgrading to latest Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Artyom Khmelnitsky > Sent: Monday, January 15, 2007 9:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Upgrading to latest > > Hello, > > One other question I have is regarding the whole upgrading process. We > currently run 2.0, but want to upgrade to 2.6. We do nightly backups, but > does anything get overwritten that we would need to reconfigure again, > such as the .cfg files, the web interface, icons, etc..? Or do we just > upload hte files and run configure make make install and that's it? The last is correct. It's simple to upgrade within major versions unless you've customized the source. ./configure -- && make all && make install. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dimma at higis.ru Mon Jan 15 14:57:33 2007 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Mon, 15 Jan 2007 16:57:33 +0300 Subject: Some spezial nagios 2.6 questions In-Reply-To: <1769698944.20070115125601@ipv6-network.de> References: <1769698944.20070115125601@ipv6-network.de> Message-ID: <20070115135729.GB5266@dkirhlarov.mow.oilspace.com> Hi! On Mon, Jan 15, 2007 at 12:56:01PM +0100, Daniel wrote: > i have some questions about nagios 2.6 and config issue's. > > First, i want to know if it is possible to say: > > "alert me every X minutes" when the down status isn't changed to up. > I makes me nervouse to get every 10 minutes a sms where i can see > "Host is down"... its enough when i see it every 1 Hour for example. > I dont want to change it globaly, only per host. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html You need option notification_interval, I think. Possible, you can be interested in http://nagios.sourceforge.net/docs/2_0/escalations.html > Next questions is: > > I get a sms where i can see: PING WARNING - Packet loss = 20%, RTA = 17.12 ms > > I setup in the host config following: > > check_command check_ping!200.0,40%!700.0,60% Check your checkcommands.cfg: grep -A 3 -B 2 -E "^.*command_name.*check_ping" checkcommands.cfg WBR Dmitriy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Mon Jan 15 18:04:25 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Mon, 15 Jan 2007 10:04:25 -0700 Subject: Patch for NRPE Message-ID: <2D0245E43DEC724F81592D697F05689904C43406@SIDHQEXCHMB1.Cabelas.Corp> While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG option today I think I found a small error in the code and have included a patch to fix it. This is for nrpe.c 1053,1056c1053,1056 < fp=fopen("/tmp/packet","w"); < if(fp){ < fwrite(&receive_packet,1,sizeof(receive_packet),fp); < fclose(fp); --- > errfp=fopen("/tmp/packet","w"); > if(errfp){ > fwrite(&receive_packet,1,sizeof(receive_packet),errfp); > fclose(errfp); I realize this is the "users" list. Sorry if this is the wrong place to post it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Mon Jan 15 18:09:13 2007 From: daniel at ipv6-network.de (Daniel) Date: Mon, 15 Jan 2007 18:09:13 +0100 Subject: addicted from other hosts Message-ID: <1657077320.20070115180913@ipv6-network.de> Hi all, is there any way to make some addicted between hosts? Here my solution: /---node3--node4 Nagios---Router \---node1--node2 So, when nagios see that the touter is offline they dont need to alert that alle nodes are offline becaus i know that all nodes must be offline too ;) I hope that is my last questions for the next time ;) When this will work my nagios do realy cool work ;) -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 15 18:22:29 2007 From: nagios at ayksolutions.com (nagios) Date: Mon, 15 Jan 2007 12:22:29 -0500 Subject: Upgrading to latest In-Reply-To: References: Message-ID: <45ABB855.8080006@ayksolutions.com> Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Artyom Khmelnitsky >> Sent: Monday, January 15, 2007 9:52 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Upgrading to latest >> >> Hello, >> >> One other question I have is regarding the whole upgrading process. We >> currently run 2.0, but want to upgrade to 2.6. We do nightly backups, >> > but > >> does anything get overwritten that we would need to reconfigure again, >> such as the .cfg files, the web interface, icons, etc..? Or do we just >> upload hte files and run configure make make install and that's it? >> > > The last is correct. It's simple to upgrade within major versions unless > you've customized the source. ./configure -- && make all && > make install. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Alright, great, thanks! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmills at accessdc.com Mon Jan 15 18:45:47 2007 From: cmills at accessdc.com (Mills, Charles) Date: Mon, 15 Jan 2007 12:45:47 -0500 Subject: addicted from other hosts In-Reply-To: <1657077320.20070115180913@ipv6-network.de> References: <1657077320.20070115180913@ipv6-network.de> Message-ID: <58E0B21FC367B24485855A1DBD96B0BB0953C3A2@adc-prd-exch1.internal.accessdc.com> If I understand your question correctly you should just have to set the parent/child relationships accordingly. Chuck Charles L. Mills Senior Network Engineer Access Data Corporation 90 Beta Drive Pittsburgh, PA 15238 (412) 968-4024 cmills at accessdc.com Managed Hosting, Colocation and Disaster Recovery Solutions -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Daniel Sent: Monday, January 15, 2007 12:09 PM To: Nagios Users mailinglist Subject: [Nagios-users] addicted from other hosts Hi all, is there any way to make some addicted between hosts? Here my solution: /---node3--node4 Nagios---Router \---node1--node2 So, when nagios see that the touter is offline they dont need to alert that alle nodes are offline becaus i know that all nodes must be offline too ;) I hope that is my last questions for the next time ;) When this will work my nagios do realy cool work ;) -- greetz daniel ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Mon Jan 15 18:51:15 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Mon, 15 Jan 2007 10:51:15 -0700 Subject: FW: Patch for NRPE Message-ID: <2D0245E43DEC724F81592D697F05689904C43408@SIDHQEXCHMB1.Cabelas.Corp> Attached. -----Original Message----- From: Antoine Musso [mailto:antoine.musso at laposte.fr] Sent: Monday, January 15, 2007 10:33 AM To: Aaron Segura Subject: Re: [Nagios-users] Patch for NRPE Aaron Segura a ?crit : > While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG > option today I think I found a small error in the code and have included > a patch to fix it. > > This is for nrpe.c > > 1053,1056c1053,1056 > < fp=fopen("/tmp/packet","w"); > < if(fp){ > < fwrite(&receive_packet,1,sizeof(receive_packet),fp); > < fclose(fp); > --- >> errfp=fopen("/tmp/packet","w"); >> if(errfp){ >> fwrite(&receive_packet,1,sizeof(receive_packet),errfp); >> fclose(errfp); Hello Aaron, You want to post an 'unified' diff. It can be done using the '-u' switch: $ diff -u nrpe.c-back nrpe.c -- Antoine MUSSO DISIT/PROD/QFO/OUT mailto:antoine.musso at laposte.fr t?l. 02 40 12 73 62 -------------- next part -------------- A non-text attachment was scrubbed... Name: nrpe.patch Type: application/octet-stream Size: 527 bytes Desc: nrpe.patch URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 18:52:39 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 11:52:39 -0600 Subject: addicted from other hosts Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Daniel > Sent: Monday, January 15, 2007 11:09 AM > To: Nagios Users mailinglist > Subject: [Nagios-users] addicted from other hosts > > Hi all, > > is there any way to make some addicted between hosts? > > Here my solution: > > > > > /---node3--node4 > Nagios---Router > \---node1--node2 > > > > So, when nagios see that the touter is offline they dont need to alert > that alle nodes are offline becaus i know that all nodes must be > offline too ;) http://nagios.sourceforge.net/docs/2_0/toc.html and specifically, http://nagios.sourceforge.net/docs/2_0/networkreachability.html > I hope that is my last questions for the next time ;) 95% of questions can be answered by glancing through the documentation. It's really pretty thorough. > When this will work my nagios do realy cool work ;) Yes, I'm sure it will. =) -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 19:06:16 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 15 Jan 2007 18:06:16 +0000 Subject: check for terminal servers/rdp? In-Reply-To: <3ddff6900701120704l5c2c2123pf6046b4f51b7dcbf@mail.gmail.com> References: <45A76C5B.3080304@googlemail.com> <3ddff6900701120704l5c2c2123pf6046b4f51b7dcbf@mail.gmail.com> Message-ID: <45ABC298.4010406@googlemail.com> if I was going to do that I would just use check_tcp... -h Hari Sekhon Saulo Silva wrote: > Hi, > > Do you try just to create a script with telnet in the rdp port ?? I > believe that is the easiest way . > > Best Regards , > > Saulo Augusto Silva > ================================== > RHCE - LPI Professional . > > 2007/1/12, Hari Sekhon >: > > Does anybody know if there is a test for Terminal Servers/RDP > other than > just check_tcp? > > I couldn't find any on nagios exchange... > > > Thanks > > -- > Hari Sekhon > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 15 20:24:24 2007 From: nagios at ayksolutions.com (nagios) Date: Mon, 15 Jan 2007 14:24:24 -0500 Subject: Using external commands with web interface In-Reply-To: References: Message-ID: <45ABD4E8.6040202@ayksolutions.com> Marc, You hit it right on the head. The problem was with the wrong httpd user assigned to the nagcmd group. I followed the instructions in the following link: http://nagios.sourceforge.net/docs/2_0/commandfile.html Did everything correct except for assigning "nobody" to nagcmd instead of 'apache'. After viewing the /etc/group file and changing nobody to apache and then restarting httpd, it works just fine and I am able to use the web interface. Thanks again and hopefully this will help someone else too ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 15 06:04:16 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Mon, 15 Jan 2007 00:04:16 -0500 Subject: Email notifications cont. Message-ID: <7abcf48e0701142104x32cef7dendff8b27ae66e17a1@mail.gmail.com> I am using Nagios 2.4 I can not get email notifications when my system is timing out but when i check the event log on nagios i see the log: " [image: Service Warning][01-14-2007 23:47:16] SERVICE ALERT: nedo;PING;WARNING;HARD;4;PING WARNING - Packet loss = 0%, RTA = 135.06 ms [image: Service Warning][01-14-2007 23:46:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;3;PING WARNING - Packet loss = 0%, RTA = 173.10 ms [image: Service Warning][01-14-2007 23:45:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;2;PING WARNING - Packet loss = 0%, RTA = 141.35 ms [image: Service Critical][01-14-2007 23:44:56] SERVICE ALERT: nedo;PING;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 10 seconds [image: Host Up][01-14-2007 23:44:56] HOST ALERT: nedo;UP;SOFT;4;PING WARNING - Packet loss = 85%, RTA = 17.35 ms [image: Host Down][01-14-2007 23:44:50] HOST ALERT: nedo;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds [image: Host Down][01-14-2007 23:44:40] HOST ALERT: nedo;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds " i think my contacts are all set right since i can get notifications when a host is unreachable here is my misccomands.cfg file # 'host-notify-by-email' command definition # 'notify-by-email' command definition define command{ command_name host-notify-by-email command_line /bin/echo -e "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 20:57:52 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 13:57:52 -0600 Subject: Email notifications cont. Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Sunday, January 14, 2007 11:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Email notifications cont. > > I am using Nagios 2.4 > > I can not get email notifications when my system is timing out but when i > check the event log on nagios i see the log: > " > Service Warning [01-14-2007 > 23:47:16] SERVICE ALERT: nedo;PING;WARNING;HARD;4;PING WARNING - Packet > loss = 0%, RTA = 135.06 ms > Service Warning [01-14-2007 > 23:46:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;3;PING WARNING - Packet > loss = 0%, RTA = 173.10 ms > Service Warning [01-14-2007 > 23:45:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;2;PING WARNING - Packet > loss = 0%, RTA = 141.35 ms > Service Critical [01-14- > 2007 23:44:56] SERVICE ALERT: nedo;PING;CRITICAL;SOFT;1;CRITICAL - Plugin > timed out after 10 seconds > Host Up [01-14-2007 > 23:44:56] HOST ALERT: nedo;UP;SOFT;4;PING WARNING - Packet loss = 85%, RTA > = 17.35 ms > Host Down [01-14-2007 > 23:44:50] HOST ALERT: nedo;DOWN;SOFT;3;CRITICAL - Plugin timed out after > 10 seconds > Host Down [01-14-2007 > 23:44:40] HOST ALERT: nedo;DOWN;SOFT;2;CRITICAL - Plugin timed out after > 10 seconds > " I only see a HARD state for 1 WARNING. I also don't see any SERVICE NOTIFICATION entries. Nagios doesn't think it's supposed to send a notification on WARNING and nothing else reached a HARD state. > i think my contacts are all set right since i can get notifications when a > host is unreachable Guess we'll have to take your word on that but just because you have your host notification options right doesn't mean that service notification options are right. They're independent (for the most part). > here is my misccomands.cfg file > > # 'host-notify-by-email' command definition > # 'notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /bin/echo -e "***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | > /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ > } Looks pretty standard for a host notification. Seems irrelevant since you seem to be looking for help with service notifications. Read through http://nagios.sourceforge.net/docs/2_0/notifications.html. That details the filters that must be met before a notification will go out. Chances are high that if you go through that you'll hit upon what you've missed. Arbitrarily, I'd guess that either your service/contact definitions have incorrect notification periods or notification options. HTH -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Mon Jan 15 21:04:00 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Mon, 15 Jan 2007 15:04:00 -0500 Subject: Question about hosts when setting up Message-ID: Hello, I have setup monitoring on our companies website and when I check to see if it will run correctly I get this message. Error: Could not find any host matching ?(username)? Error: Could not expand member hosts specified in hostgroup (config file ?/etc/nagios/hostgroups.cfg?, starting on line2) Now I have defined my username in contacts.cfg and the other files. Anyone else run into this problem and fixed it? Thanks.. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sun Jan 14 11:28:06 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sun, 14 Jan 2007 10:28:06 +0000 Subject: Plugin issue In-Reply-To: <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> <45A8F5EA.9030602@mailnetwork.co.uk> <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> Message-ID: <45AA05B6.7000005@mailnetwork.co.uk> tyrus at icsit.jkuat.ac.ke wrote: >> Don't forget to copy the mailing list in so others can chip in and help. >> Read the above line again!! > HI Andy am kinda confused here: when you say i insert the values > "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i should > insert them in the check_ping command defination or what?? > Kindly explain! > Thanks > OK there are a few ways of doing it - in your current definition, you need something like this "2000,25%" in anything that uses your check_ping command - i.e. host, service, whatever. I'll show you an example using a host definition. Firstly, the way you're doing it: define command { command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } You need to be passing, for example, 2000,25% as $ARG1$ and, for example, 4000,50% as $ARG2$. So, your object definition (in this example, host) will need to be as follows: define host { ... check_command cmd-Ping!2000,25%!4000,50% ... } Your check_ping command will then turn out to be something like: "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c 4000,50% -p 5" The second way is the way I'm doing it at the moment. The check_ping command: define command { command_name cmd-Ping command_line $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$% } The object definition: define host { ... check_command cmd-Ping!$HOSTADDRESS$!1000!20!2000!50 ... } As you can see, a few more arguments need to be passed from the object, but you can override any of the thresholds for one particular object. Another way is simply to "hard-code" the values in your command, and have no arguments passed in from the object. The command: define command { command_name cmd-Ping command_line $USER1$/check_ping -p 3 -t 10 -4 -H $HOSTADDRESS$ -w 2000,25% -c 4000,50% } The object: define host { ... check_command cmd-Ping ... } Hopefully this clears things up - but *don't forget to copy the mailing list in* to your replies - hit "Reply to all" in your mailer and it'll sort it out for you. -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyrus at icsit.jkuat.ac.ke Mon Jan 15 05:56:47 2007 From: tyrus at icsit.jkuat.ac.ke (tyrus at icsit.jkuat.ac.ke) Date: Mon, 15 Jan 2007 07:56:47 +0300 (EAT) Subject: Plugin issue In-Reply-To: <45AA05B6.7000005@mailnetwork.co.uk> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> <45A8F5EA.9030602@mailnetwork.co.uk> <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> <45AA05B6.7000005@mailnetwork.co.uk> Message-ID: <41936.212.49.82.52.1168837007.squirrel@212.49.82.54> > tyrus at icsit.jkuat.ac.ke wrote: >>> Don't forget to copy the mailing list in so others can chip in and >>> help. >>> > Read the above line again!! >> HI Andy am kinda confused here: when you say i insert the values >> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i >> should >> insert them in the check_ping command defination or what?? >> Kindly explain! >> Thanks >> > OK there are a few ways of doing it - in your current definition, you > need something like this "2000,25%" in anything that uses your > check_ping command - i.e. host, service, whatever. > I'll show you an example using a host definition. > > Firstly, the way you're doing it: > > define command { > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p 5 > } > > You need to be passing, for example, 2000,25% as $ARG1$ and, for > example, 4000,50% as $ARG2$. > So, your object definition (in this example, host) will need to be as > follows: > > define host { > ... > check_command cmd-Ping!2000,25%!4000,50% > ... > } > > Your check_ping command will then turn out to be something like: > "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c > 4000,50% -p 5" > > The second way is the way I'm doing it at the moment. > The check_ping command: > > define command { > command_name cmd-Ping > command_line $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ > -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$% > } > > The object definition: > > define host { > ... > check_command cmd-Ping!$HOSTADDRESS$!1000!20!2000!50 > ... > } > > As you can see, a few more arguments need to be passed from the object, > but you can override any of the thresholds for one particular object. > > Another way is simply to "hard-code" the values in your command, and > have no arguments passed in from the object. > > The command: > > define command { > command_name cmd-Ping > command_line $USER1$/check_ping -p 3 -t 10 -4 -H > $HOSTADDRESS$ -w 2000,25% -c 4000,50% > } > > The object: > > define host { > ... > check_command cmd-Ping > ... > } > > Hopefully this clears things up - but *don't forget to copy the mailing > list in* to your replies - hit "Reply to all" in your mailer and it'll > sort it out for you. > > -- > Andy Shellam > NetServe Support Team > > the Mail Network > "an alternative in a standardised world" > > > Hallo thanks so much for your time.However the command is still timing out and giving me the same error.Here is my command definition in the hosts object: define host { .......... check_command check_ping!2000,25%!4000,50% .......... } Now my question is if the above command will check the values of the check_ping command in the command definition, then are those the values i should insert in the command defination file? And also you said: >Your check_ping command will then turn out to be something like: > "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c > 4000,50% -p 5" However when i go to my command defination it still reads as before. Kindly assist.I really hope am not missing out on something. cheers. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sg at schaubroeck.be Mon Jan 15 09:14:16 2007 From: sg at schaubroeck.be (Stijn Gruwier) Date: Mon, 15 Jan 2007 09:14:16 +0100 Subject: Using external commands with web interface In-Reply-To: <20070115031909.896E54F4046@desire.netways.de> References: <20070115031909.896E54F4046@desire.netways.de> Message-ID: <45AB37D8.3070907@schaubroeck.be> Check if you are enabled to do that in cgi.cfg: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Then make sure the cgi's know you as nagiosadmin by logging in as nagiosadmin or using use_authentication=1 default_user_name=nagiosadmin Artyom Khmelnitsky schreef: > Hello, > > I am trying to enable the full usage of the web interface. I looked at > the faq and setup the correct permissions on /var/nagios/rw/nagios.cmd. > The nagios config file also looks correct, but for some reason it still > says that there is an issue with permissions when I try to add a Comment > to a host via the web interface. > > Could someone please point me in the right direction? > > Thank you **** DISCLAIMER **** http://www.schaubroeck.be/maildisclaimer.htm ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 15 23:06:29 2007 From: marc at ena.com (Marc Powell) Date: Mon, 15 Jan 2007 16:06:29 -0600 Subject: Question about hosts when setting up Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Monday, January 15, 2007 2:04 PM > To: nagios-users > Subject: [Nagios-users] Question about hosts when setting up > > Hello, > > > > I have setup monitoring on our companies website and when I check to see > if it will run correctly I get this message. > > > > Error: Could not find any host matching '(username)' > > Error: Could not expand member hosts specified in hostgroup (config file > '/etc/nagios/hostgroups.cfg', starting on line2) What does the definition starting on line 2 of /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining about and it's a unique configuration that you've created. I would guess that you've included '(username)' on the members line as if it were a host. You shouldn't. Only host names should go there, not contacts. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.rudder at reliableresponse.net Mon Jan 15 23:11:27 2007 From: david.rudder at reliableresponse.net (David Rudder) Date: Mon, 15 Jan 2007 15:11:27 -0700 Subject: Nagios receiving acknowledgements from behind firewall? Message-ID: <45ABFC0F.9050901@reliableresponse.net> Hi, I'm building a website which will be hosted on a paid-hosting provider. I'd like to be able to click on a link that will send acknowledgments and comments in to a Nagios server running on a corporate LAN. So, there's a firewall between the hosted website and the Nagios site, with Nagios able to connect directly to the hosted site, but the hosted site can't talk to Nagios. Is there any way to get Nagios to poll for acknowledgments and comments? I looked into using NRPE for this, but it seems to only handle service and host checks, not acks and comments. Has anyone done this before? Disclaimer: it's for a commercial service. I won't advertise it here, but I just wanted y'all to know, just in case. -Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Tue Jan 16 00:08:44 2007 From: dan at langille.org (Dan Langille) Date: Mon, 15 Jan 2007 18:08:44 -0500 Subject: NRPE: Unable to read output Message-ID: <45ABC32C.26173.9BA5C323@dan.langille.org> Hi folks, I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote script to work. It seems that no perl script works, but I can get compiled plug-ins to work. The result is, which invoked on the nagios server is: $ ./check_nrpe -H app09 -c check_raid_dell NRPE: Unable to read output On the remote machine, app09, I get: $ perl check_raid_dell RAID_DELL CRITICAL: RAID is critical. $ I know that a value is being returned: $ echo $? 2 $ It's as if the remote script is inappropriate for use with nrpe. I can get other scripts to work: $ ./check_nrpe -H app09 -c check_users USERS OK - 1 users currently logged in |users=1;5;10;0 $ ./check_nrpe -H app09 -c check_load OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; FWIW, both of the above scripts are binaries: $ file check_load check_users check_raid_dell check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped check_raid_dell: perl script text I have confirmed that the user that nrpe is running as can execute the command: # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl check_raid_dell" RAID_DELL CRITICAL: RAID is critical. Ideas? Suggestions? Plans? -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shipway at auckland.ac.nz Mon Jan 15 23:56:04 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 16 Jan 2007 11:56:04 +1300 Subject: NsClient 2.0.1 In-Reply-To: <000801c738b2$e947cf00$0900d40a@intranet.it.net> References: <000801c738b2$e947cf00$0900d40a@intranet.it.net> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A27978D5@UXCHANGE3.UoA.auckland.ac.nz> The client is sending None&2&5 which is correct for a 5-min CPU average request with the default password. If you have modified the password on the pnsclient agent then this may be the cause (this is done in the registry). Alternatively check your check_nt program as it may be more recent and not compatible? We use nagios-plugins 1.4 and this works with pnsclient2.0.1 correctly. Steve -- Steve Shipway ITSS, University of Auckland (09) 3737 599 x 86487 s.shipway at auckland.ac.nz ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: Tuesday, 16 January 2007 3:39 a.m. To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NsClient 2.0.1 Hi all . I installed NsClient (2.0.1) on a Windows 2000 server. It is working fine, but if I want to check CPULOAD I will read following error message: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&5 Nagios server is a 1.4 version Have you got any idea? Thanks ! Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Tue Jan 16 00:24:12 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Mon, 15 Jan 2007 16:24:12 -0700 Subject: NRPE: Unable to read output In-Reply-To: <45ABC32C.26173.9BA5C323@dan.langille.org> References: <45ABC32C.26173.9BA5C323@dan.langille.org> Message-ID: <2D0245E43DEC724F81592D697F05689904C4340D@SIDHQEXCHMB1.Cabelas.Corp> What does the nrpe.cfg definition for your 'check_raid_dell' command look like? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dan Langille Sent: Monday, January 15, 2007 4:09 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NRPE: Unable to read output Hi folks, I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote script to work. It seems that no perl script works, but I can get compiled plug-ins to work. The result is, which invoked on the nagios server is: $ ./check_nrpe -H app09 -c check_raid_dell NRPE: Unable to read output On the remote machine, app09, I get: $ perl check_raid_dell RAID_DELL CRITICAL: RAID is critical. $ I know that a value is being returned: $ echo $? 2 $ It's as if the remote script is inappropriate for use with nrpe. I can get other scripts to work: $ ./check_nrpe -H app09 -c check_users USERS OK - 1 users currently logged in |users=1;5;10;0 $ ./check_nrpe -H app09 -c check_load OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; FWIW, both of the above scripts are binaries: $ file check_load check_users check_raid_dell check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped check_raid_dell: perl script text I have confirmed that the user that nrpe is running as can execute the command: # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl check_raid_dell" RAID_DELL CRITICAL: RAID is critical. Ideas? Suggestions? Plans? -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Tue Jan 16 00:40:04 2007 From: dan at langille.org (Dan Langille) Date: Mon, 15 Jan 2007 18:40:04 -0500 Subject: NRPE: Unable to read output In-Reply-To: <45ABC32C.26173.9BA5C323@dan.langille.org> References: <45ABC32C.26173.9BA5C323@dan.langille.org> Message-ID: <45ABCA84.4827.9BC2740B@dan.langille.org> On 15 Jan 2007 at 18:08, Dan Langille wrote: > Hi folks, > > I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote > script to work. It seems that no perl script works, but I can get > compiled plug-ins to work. > > The result is, which invoked on the nagios server is: > > $ ./check_nrpe -H app09 -c check_raid_dell > NRPE: Unable to read output > > On the remote machine, app09, I get: > > $ perl check_raid_dell > RAID_DELL CRITICAL: RAID is critical. > $ > > I know that a value is being returned: > > $ echo $? > 2 > $ > > It's as if the remote script is inappropriate for use with nrpe. I > can get other scripts to work: > > > $ ./check_nrpe -H app09 -c check_users > USERS OK - 1 users currently logged in |users=1;5;10;0 > > $ ./check_nrpe -H app09 -c check_load > OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; > load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; > > > FWIW, both of the above scripts are binaries: > > $ file check_load check_users check_raid_dell > check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_raid_dell: perl script text > > I have confirmed that the user that nrpe is running as can execute > the command: > > # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl > check_raid_dell" > RAID_DELL CRITICAL: RAID is critical. > > Ideas? Suggestions? Plans? My thanks to bernardl for the repeated questions about what I was doing. The solution: write a wrapper which does a cd. # cat check_raid_dell_wrapper #!/bin/sh cd /usr/local/libexec/nagios perl check_raid_dell Then refer to the wrapper in the nrpe.cfg on the remote server: # grep dell /usr/local/etc/nrpe.cfg command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra pper NOTE the use of the wrapper path Restart nrpe on the remote box and then test it on the server: $ ./check_nrpe -H app09 -c check_raid_dell RAID_DELL CRITICAL: RAID is critical. \o/ cheers -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 00:46:08 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Mon, 15 Jan 2007 18:46:08 -0500 Subject: Question about hosts when setting up In-Reply-To: References: Message-ID: > What does the definition starting on line 2 of > /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining > about and it's a unique configuration that you've created. I would guess > that you've included '(username)' on the members line as if it were a > host. You shouldn't. Only host names should go there, not contacts. > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup -- Marc Thanks Marc- I was putting in the usernames and not my host - works fine now. Now on to setting up more services :P ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jan 16 01:12:53 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 16 Jan 2007 01:12:53 +0100 (MET) Subject: NRPE: Unable to read output In-Reply-To: <45ABCA84.4827.9BC2740B@dan.langille.org> References: <45ABC32C.26173.9BA5C323@dan.langille.org> <45ABCA84.4827.9BC2740B@dan.langille.org> Message-ID: <45AC1884.80705@its-lehmann.de> Hi, On 1/16/2007 12:40 AM, Dan Langille wrote: > On 15 Jan 2007 at 18:08, Dan Langille wrote: > > >>Hi folks, >> >>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >>script to work. It seems that no perl script works, but I can get >>compiled plug-ins to work. ... > My thanks to bernardl for the repeated questions about what I was > doing. The solution: write a wrapper which does a cd. > > # cat check_raid_dell_wrapper > #!/bin/sh > cd /usr/local/libexec/nagios > perl check_raid_dell > > Then refer to the wrapper in the nrpe.cfg on the remote server: > > # grep dell /usr/local/etc/nrpe.cfg > command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra > pper Interesting. Should be possible to invoke the check script directly, though. You can call it with its path, it should have a hash bang line, and the necessary inclusion of utils.pm could be handled from inside the script. Which, incidentially, is how the standard plugins I know work :-) But a wrapper is often the solution to plugin problems... Arno > NOTE the use of the wrapper path > > Restart nrpe on the remote box and then test it on the server: > > > $ ./check_nrpe -H app09 -c check_raid_dell > RAID_DELL CRITICAL: RAID is critical. > > \o/ > > cheers > > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Tue Jan 16 01:26:49 2007 From: dan at langille.org (Dan Langille) Date: Mon, 15 Jan 2007 19:26:49 -0500 Subject: NRPE: Unable to read output In-Reply-To: <45AC1884.80705@its-lehmann.de> References: <45ABC32C.26173.9BA5C323@dan.langille.org>, <45ABCA84.4827.9BC2740B@dan.langille.org>, <45AC1884.80705@its-lehmann.de> Message-ID: <45ABD579.18355.9BED426B@dan.langille.org> On 16 Jan 2007 at 1:12, Arno Lehmann wrote: > Hi, > > On 1/16/2007 12:40 AM, Dan Langille wrote: > > On 15 Jan 2007 at 18:08, Dan Langille wrote: > > > > > >>Hi folks, > >> > >>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote > >>script to work. It seems that no perl script works, but I can get > >>compiled plug-ins to work. > ... > > My thanks to bernardl for the repeated questions about what I was > > doing. The solution: write a wrapper which does a cd. > > > > # cat check_raid_dell_wrapper > > #!/bin/sh > > cd /usr/local/libexec/nagios > > perl check_raid_dell > > > > Then refer to the wrapper in the nrpe.cfg on the remote server: > > > > # grep dell /usr/local/etc/nrpe.cfg > > command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra > > pper > > Interesting. Should be possible to invoke the check script directly, > though. You can call it with its path, it should have a hash bang line, > and the necessary inclusion of utils.pm could be handled from inside the > script. Which, incidentially, is how the standard plugins I know work :-) > > But a wrapper is often the solution to plugin problems... We write that, with the full path. That is what led us to the wrapper solution: # su -m -c nagios nagios c "/usr/local/libexec/nagios/check_raid_dell" Can't locate utils.pm in @INC (@INC contains: nagios /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/libexec/nagios/check_raid_dell line 17. BEGIN failed--compilation aborted at /usr/local/libexec/nagios/check_raid_dell line 17. # -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jan 16 02:06:04 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 16 Jan 2007 02:06:04 +0100 (MET) Subject: NRPE: Unable to read output In-Reply-To: <45ABD579.18355.9BED426B@dan.langille.org> References: <45ABC32C.26173.9BA5C323@dan.langille.org>, <45ABCA84.4827.9BC2740B@dan.langille.org>, <45AC1884.80705@its-lehmann.de> <45ABD579.18355.9BED426B@dan.langille.org> Message-ID: <45AC24FA.70300@its-lehmann.de> Hi, On 1/16/2007 1:26 AM, Dan Langille wrote: > On 16 Jan 2007 at 1:12, Arno Lehmann wrote: > > >>Hi, >> >>On 1/16/2007 12:40 AM, Dan Langille wrote: >> >>>On 15 Jan 2007 at 18:08, Dan Langille wrote: >>> >>> >>> >>>>Hi folks, >>>> >>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >>>>script to work. It seems that no perl script works, but I can get >>>>compiled plug-ins to work. >> >>... >> >>>My thanks to bernardl for the repeated questions about what I was >>>doing. The solution: write a wrapper which does a cd. >>> >>># cat check_raid_dell_wrapper >>>#!/bin/sh >>>cd /usr/local/libexec/nagios >>>perl check_raid_dell >>> >>>Then refer to the wrapper in the nrpe.cfg on the remote server: >>> >>># grep dell /usr/local/etc/nrpe.cfg >>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra >>>pper >> >>Interesting. Should be possible to invoke the check script directly, >>though. You can call it with its path, it should have a hash bang line, >>and the necessary inclusion of utils.pm could be handled from inside the >>script. Which, incidentially, is how the standard plugins I know work :-) >> >>But a wrapper is often the solution to plugin problems... > > > > We write that, with the full path. That is what led us to the > wrapper solution: > > # su -m -c nagios nagios c > "/usr/local/libexec/nagios/check_raid_dell" > Can't locate utils.pm in @INC (@INC contains: nagios > /usr/local/lib/perl5/5.8.8/BSDPAN > /usr/local/lib/perl5/site_perl/5.8.8/mach > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at > /usr/local/libexec/nagios/check_raid_dell line 17. > BEGIN failed--compilation aborted at > /usr/local/libexec/nagios/check_raid_dell line 17. > # > Well, I'm not a perl guru, but in the standard plugins I looked at I have a line "use lib "/usr/local/nagios2/libexec" ;" which looks like it is important for cases like yours... Arno -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Tue Jan 16 02:25:02 2007 From: dan at langille.org (Dan Langille) Date: Mon, 15 Jan 2007 20:25:02 -0500 Subject: NRPE: Unable to read output In-Reply-To: <45AC24FA.70300@its-lehmann.de> References: <45ABC32C.26173.9BA5C323@dan.langille.org>, <45ABD579.18355.9BED426B@dan.langille.org>, <45AC24FA.70300@its-lehmann.de> Message-ID: <45ABE31E.14131.9C228E28@dan.langille.org> On 16 Jan 2007 at 2:06, Arno Lehmann wrote: > Hi, > > On 1/16/2007 1:26 AM, Dan Langille wrote: > > On 16 Jan 2007 at 1:12, Arno Lehmann wrote: > > > > > >>Hi, > >> > >>On 1/16/2007 12:40 AM, Dan Langille wrote: > >> > >>>On 15 Jan 2007 at 18:08, Dan Langille wrote: > >>> > >>> > >>> > >>>>Hi folks, > >>>> > >>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote > >>>>script to work. It seems that no perl script works, but I can get > >>>>compiled plug-ins to work. > >> > >>... > >> > >>>My thanks to bernardl for the repeated questions about what I was > >>>doing. The solution: write a wrapper which does a cd. > >>> > >>># cat check_raid_dell_wrapper > >>>#!/bin/sh > >>>cd /usr/local/libexec/nagios > >>>perl check_raid_dell > >>> > >>>Then refer to the wrapper in the nrpe.cfg on the remote server: > >>> > >>># grep dell /usr/local/etc/nrpe.cfg > >>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra > >>>pper > >> > >>Interesting. Should be possible to invoke the check script directly, > >>though. You can call it with its path, it should have a hash bang line, > >>and the necessary inclusion of utils.pm could be handled from inside the > >>script. Which, incidentially, is how the standard plugins I know work :-) > >> > >>But a wrapper is often the solution to plugin problems... > > > > > > > > We write that, with the full path. That is what led us to the > > wrapper solution: > > > > # su -m -c nagios nagios c > > "/usr/local/libexec/nagios/check_raid_dell" > > Can't locate utils.pm in @INC (@INC contains: nagios > > /usr/local/lib/perl5/5.8.8/BSDPAN > > /usr/local/lib/perl5/site_perl/5.8.8/mach > > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl > > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at > > /usr/local/libexec/nagios/check_raid_dell line 17. > > BEGIN failed--compilation aborted at > > /usr/local/libexec/nagios/check_raid_dell line 17. > > # > > > > Well, I'm not a perl guru, but in the standard plugins I looked at I > have a line "use lib "/usr/local/nagios2/libexec" ;" which looks like > it is important for cases like yours... $ grep "use lib" check_* check_breeze:use lib "nagios" ; check_disk_smb:use lib "nagios" ; check_file_age:use lib "nagios"; check_flexlm:use lib "nagios"; check_ifoperstatus:use lib "nagios" ; check_ifstatus:use lib "nagios" ; check_ircd:use lib "nagios"; check_mailq:use lib "nagios"; check_rpc:use lib "nagios"; check_wave:use lib "nagios"; Yep... How unfortunate that the one I chose to base my plugin on is check_file_age, which does not have this. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 07:23:27 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 01:23:27 -0500 Subject: sending email out Message-ID: Hey guys I had a service go into warning tonight and I did not receive and email. I have notification interval at 120, period 24x7, options w,u,c,r I went in and changed commands.cfg to mailq because in my /bin it is mailq and not mailx.. I configured the other files with my name and email address and have the admin email set as the email in my main conf file. Anything else I can do to get emails sent to me? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Tue Jan 16 07:57:30 2007 From: chandler at chapman.edu (Jay Chandler) Date: Mon, 15 Jan 2007 22:57:30 -0800 Subject: sending email out In-Reply-To: References: Message-ID: <45AC775A.20601@chapman.edu> Formoso, Travis wrote: > > Hey guys > > > > I had a service go into warning tonight and I did not receive and > email. I have notification interval at 120, period 24x7, options w,u,c,r > > > > I went in and changed commands.cfg to mailq because in my /bin it is > mailq and not mailx.. > > > > I configured the other files with my name and email address and have > the admin email set as the email in my main conf file. > > > > Anything else I can do to get emails sent to me? > From my config: contacts.cfg: define contact{ contact_name chandler alias chandler service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email chandler at chapman.edu } commands.cfg: # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\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$ } # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } Then I set my host and service definitions, and everything works like a charm. That help any? -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: emissions from GSM-phones ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Tue Jan 16 07:58:40 2007 From: chandler at chapman.edu (Jay Chandler) Date: Mon, 15 Jan 2007 22:58:40 -0800 Subject: sending email out In-Reply-To: References: Message-ID: <45AC77A0.8070504@chapman.edu> Formoso, Travis wrote: > > Hey guys > > > > I had a service go into warning tonight and I did not receive and > email. I have notification interval at 120, period 24x7, options w,u,c,r > > > > I went in and changed commands.cfg to mailq because in my /bin it is > mailq and not mailx.. > > > > I configured the other files with my name and email address and have > the admin email set as the email in my main conf file. > > > > Anything else I can do to get emails sent to me? > Oh, one other thought: Any chance it was caused by a soft fail state, wherein the service recovered before it entered a hard state? If so, you won't receive a notification about it. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: emissions from GSM-phones ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 08:14:07 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 02:14:07 -0500 Subject: sending email out In-Reply-To: <45AC775A.20601@chapman.edu> References: <45AC775A.20601@chapman.edu> Message-ID: Ok here are my config files: Config: # 'tformoso' contact definition define contact{ contact_name tformoso alias nagios admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email travis.formoso at blueslate.net } # 'bssadmins' contact group definition define contactgroup{ contactgroup_name bssadmins alias blueslateadmins members tformoso } # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.6 *****\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$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ I see on the web interface it trys to send me a email - however it still does not get to me. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Tue Jan 16 08:30:34 2007 From: chandler at chapman.edu (Jay Chandler) Date: Mon, 15 Jan 2007 23:30:34 -0800 Subject: sending email out In-Reply-To: References: Message-ID: <45AC7F1A.3050403@chapman.edu> Formoso, Travis wrote: > Ok here are my config files: > > [...snip] > All right... beat this into the command line, all on one line: /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: TEST \nHost: PRETENDIEXIST \nState: DENIAL \nAddress: 192.168.1.1\nInfo: Wuznme boss\n\nDate/Time: now\n" | /bin/mail -s "Host On Prozac alert for PRETENDIEXIST!" travis.formoso at blueslate.net And see what happens. Here, it shows the path to /mail isn't correct, so I have to adjust it to get it to work. You'll probably have to play with the syntax a bit, but when the command line works, so'll the Nagios alerts. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Atilla the Hub ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dimma at higis.ru Tue Jan 16 08:41:45 2007 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Tue, 16 Jan 2007 10:41:45 +0300 Subject: Plugin issue In-Reply-To: <41936.212.49.82.52.1168837007.squirrel@212.49.82.54> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> <45A8F5EA.9030602@mailnetwork.co.uk> <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> <45AA05B6.7000005@mailnetwork.co.uk> <41936.212.49.82.52.1168837007.squirrel@212.49.82.54> Message-ID: <20070116074144.GA1383@dkirhlarov.mow.oilspace.com> On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote: > Hallo thanks so much for your time.However the command is still timing out > and giving me the same error.Here is my command definition in the hosts 1. Try to run command manualy. 2. Check your host with "ping" command. Host alive? 3. What your operation system? AFAIR, FreeBSD port have special patch for check_ping. WBR Dmitriy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Tue Jan 16 08:44:22 2007 From: chandler at chapman.edu (Jay Chandler) Date: Mon, 15 Jan 2007 23:44:22 -0800 Subject: Plugin issue In-Reply-To: <20070116074144.GA1383@dkirhlarov.mow.oilspace.com> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> <45A8F5EA.9030602@mailnetwork.co.uk> <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> <45AA05B6.7000005@mailnetwork.co.uk> <41936.212.49.82.52.1168837007.squirrel@212.49.82.54> <20070116074144.GA1383@dkirhlarov.mow.oilspace.com> Message-ID: <45AC8256.4070205@chapman.edu> Dmitriy Kirhlarov wrote: > On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote: > > >> Hallo thanks so much for your time.However the command is still timing out >> and giving me the same error.Here is my command definition in the hosts >> > > 1. Try to run command manualy. > 2. Check your host with "ping" command. Host alive? > 3. What your operation system? AFAIR, FreeBSD port have special patch > for check_ping. > I don't have the original message handy, but on FreeBSD 6.1 a few weeks ago I had a problem where the ping would choke unexpectedly. I solved this by installing a replacement compiled with IPv6 turned off, and it hasn't recurred since. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Atilla the Hub ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dimma at higis.ru Tue Jan 16 08:51:19 2007 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Tue, 16 Jan 2007 10:51:19 +0300 Subject: addicted from other hosts In-Reply-To: <1657077320.20070115180913@ipv6-network.de> References: <1657077320.20070115180913@ipv6-network.de> Message-ID: <20070116075119.GC1383@dkirhlarov.mow.oilspace.com> On Mon, Jan 15, 2007 at 06:09:13PM +0100, Daniel wrote: > /---node3--node4 > Nagios---Router > \---node1--node2 > > > > So, when nagios see that the touter is offline they dont need to alert > that alle nodes are offline becaus i know that all nodes must be > offline too ;) http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicedependency http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostdependency WBR Dmitriy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From odenbach at uni-paderborn.de Tue Jan 16 09:28:47 2007 From: odenbach at uni-paderborn.de (Christopher Odenbach) Date: Tue, 16 Jan 2007 09:28:47 +0100 Subject: check for terminal servers/rdp? In-Reply-To: <45AB4C35.2030101@googlemail.com> References: <45A76C5B.3080304@googlemail.com> <45A8D35D.2000304@etmiesje.de> <45AB4C35.2030101@googlemail.com> Message-ID: <200701160928.48609.odenbach@uni-paderborn.de> Hi, > I'd like to check that it can properly talk to rdp if I can. For > example, I also use vnc, so I wrote a bash script around vncsnapshot > to form a valid plugin to send creds and then pull the screen from > the machine. Only if it pulled successfully would you get an OK > status. > > Since I'm moving away from vnc and towards terminal servers I would > like to be able to implement a similar test, although the login part > isn't necessary, as long as I can get to the login prompt I know > it'll work and I don't want to fill up logs with continuous windows > logins. Perhaps you just ask the people from rdesktop. They have deep knowledge of the rdp protocol and might know how to get information about the status of a terminal server. If you find anything useful please let me know - I am interested too. Christopher -- ====================================================== Dipl.-Ing. Christopher Odenbach Zentrum fuer Informations- und Medientechnologien Universitaet Paderborn Raum N5.110 odenbach at uni-paderborn.de Tel.: +49 5251 60 5315 ====================================================== -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Jan 16 09:59:24 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 16 Jan 2007 09:59:24 +0100 Subject: R: NsClient 2.0.1 In-Reply-To: <12A6FDDD13C460408A6E47E5DB1235A27978D5@UXCHANGE3.UoA.auckland.ac.nz> References: <000801c738b2$e947cf00$0900d40a@intranet.it.net> <12A6FDDD13C460408A6E47E5DB1235A27978D5@UXCHANGE3.UoA.auckland.ac.nz> Message-ID: <003d01c7394c$9edeae80$0900d40a@intranet.it.net> I did not modified the password. I am checking correctly (on the same host) memory and disk spaces. On other hosts I can check correctly also the CPULOAD. Marco _____ Da: Steve Shipway [mailto:s.shipway at auckland.ac.nz] Inviato: luned? 15 gennaio 2007 23.56 A: Marco Borsani; nagios-users at lists.sourceforge.net Oggetto: RE: [Nagios-users] NsClient 2.0.1 The client is sending None&2&5 which is correct for a 5-min CPU average request with the default password. If you have modified the password on the pnsclient agent then this may be the cause (this is done in the registry). Alternatively check your check_nt program as it may be more recent and not compatible? We use nagios-plugins 1.4 and this works with pnsclient2.0.1 correctly. Steve -- Steve Shipway ITSS, University of Auckland (09) 3737 599 x 86487 s.shipway at auckland.ac.nz _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco Borsani Sent: Tuesday, 16 January 2007 3:39 a.m. To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NsClient 2.0.1 Hi all . I installed NsClient (2.0.1) on a Windows 2000 server. It is working fine, but if I want to check CPULOAD I will read following error message: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&5 Nagios server is a 1.4 version Have you got any idea? Thanks ! Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyrus at icsit.jkuat.ac.ke Tue Jan 16 10:13:07 2007 From: tyrus at icsit.jkuat.ac.ke (tyrus at icsit.jkuat.ac.ke) Date: Tue, 16 Jan 2007 12:13:07 +0300 (EAT) Subject: Nagios-users Digest, Vol 8, Issue 23 In-Reply-To: References: Message-ID: <40769.212.49.82.52.1168938787.squirrel@212.49.82.54> > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. Re: Plugin issue (Andy Shellam (Mailing Lists)) > 2. Re: Plugin issue (tyrus at icsit.jkuat.ac.ke) > 3. Re: Using external commands with web interface (Stijn Gruwier) > 4. Re: Question about hosts when setting up (Marc Powell) > 5. Nagios receiving acknowledgements from behind firewall? > (David Rudder) > 6. Re: NsClient 2.0.1 (Steve Shipway) > 7. NRPE: Unable to read output (Dan Langille) > 8. Re: NRPE: Unable to read output (Aaron Segura) > 9. Re: NRPE: Unable to read output (Dan Langille) > 10. Re: Question about hosts when setting up (Formoso, Travis) > 11. Re: NRPE: Unable to read output (Arno Lehmann) > 12. Re: NRPE: Unable to read output (Dan Langille) > 13. Re: NRPE: Unable to read output (Arno Lehmann) > 14. Re: NRPE: Unable to read output (Dan Langille) > 15. sending email out (Formoso, Travis) > 16. Re: sending email out (Jay Chandler) > 17. Re: sending email out (Jay Chandler) > 18. Re: sending email out (Formoso, Travis) > 19. Re: sending email out (Jay Chandler) > 20. Re: Plugin issue (Dmitriy Kirhlarov) > 21. Re: Plugin issue (Jay Chandler) > 22. Re: addicted from other hosts (Dmitriy Kirhlarov) > 23. Re: check for terminal servers/rdp? (Christopher Odenbach) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 14 Jan 2007 10:28:06 +0000 > From: "Andy Shellam (Mailing Lists)" > > Subject: Re: [Nagios-users] Plugin issue > To: tyrus at icsit.jkuat.ac.ke > Cc: Nagios Users mailinglist > Message-ID: <45AA05B6.7000005 at mailnetwork.co.uk> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > tyrus at icsit.jkuat.ac.ke wrote: >>> Don't forget to copy the mailing list in so others can chip in and >>> help. >>> > Read the above line again!! >> HI Andy am kinda confused here: when you say i insert the values >> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i >> should >> insert them in the check_ping command defination or what?? >> Kindly explain! >> Thanks >> > OK there are a few ways of doing it - in your current definition, you > need something like this "2000,25%" in anything that uses your > check_ping command - i.e. host, service, whatever. > I'll show you an example using a host definition. > > Firstly, the way you're doing it: > > define command { > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p 5 > } > > You need to be passing, for example, 2000,25% as $ARG1$ and, for > example, 4000,50% as $ARG2$. > So, your object definition (in this example, host) will need to be as > follows: > > define host { > ... > check_command cmd-Ping!2000,25%!4000,50% > ... > } > > Your check_ping command will then turn out to be something like: > "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c > 4000,50% -p 5" > > The second way is the way I'm doing it at the moment. > The check_ping command: > > define command { > command_name cmd-Ping > command_line $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ > -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$% > } > > The object definition: > > define host { > ... > check_command cmd-Ping!$HOSTADDRESS$!1000!20!2000!50 > ... > } > > As you can see, a few more arguments need to be passed from the object, > but you can override any of the thresholds for one particular object. > > Another way is simply to "hard-code" the values in your command, and > have no arguments passed in from the object. > > The command: > > define command { > command_name cmd-Ping > command_line $USER1$/check_ping -p 3 -t 10 -4 -H > $HOSTADDRESS$ -w 2000,25% -c 4000,50% > } > > The object: > > define host { > ... > check_command cmd-Ping > ... > } > > Hopefully this clears things up - but *don't forget to copy the mailing > list in* to your replies - hit "Reply to all" in your mailer and it'll > sort it out for you. > > -- > Andy Shellam > NetServe Support Team > > the Mail Network > "an alternative in a standardised world" > > > > > > ------------------------------ > > Message: 2 > Date: Mon, 15 Jan 2007 07:56:47 +0300 (EAT) > From: tyrus at icsit.jkuat.ac.ke > Subject: Re: [Nagios-users] Plugin issue > To: "Andy Shellam (Mailing Lists)" > > Cc: tyrus at icsit.jkuat.ac.ke, Nagios Users mailinglist > > Message-ID: <41936.212.49.82.52.1168837007.squirrel at 212.49.82.54> > Content-Type: text/plain;charset=iso-8859-1 > >> tyrus at icsit.jkuat.ac.ke wrote: >>>> Don't forget to copy the mailing list in so others can chip in and >>>> help. >>>> >> Read the above line again!! >>> HI Andy am kinda confused here: when you say i insert the values >>> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i >>> should >>> insert them in the check_ping command defination or what?? >>> Kindly explain! >>> Thanks >>> >> OK there are a few ways of doing it - in your current definition, you >> need something like this "2000,25%" in anything that uses your >> check_ping command - i.e. host, service, whatever. >> I'll show you an example using a host definition. >> >> Firstly, the way you're doing it: >> >> define command { >> command_name check_ping >> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ >> -c >> $ARG2$ -p 5 >> } >> >> You need to be passing, for example, 2000,25% as $ARG1$ and, for >> example, 4000,50% as $ARG2$. >> So, your object definition (in this example, host) will need to be as >> follows: >> >> define host { >> ... >> check_command cmd-Ping!2000,25%!4000,50% >> ... >> } >> >> Your check_ping command will then turn out to be something like: >> "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c >> 4000,50% -p 5" >> >> The second way is the way I'm doing it at the moment. >> The check_ping command: >> >> define command { >> command_name cmd-Ping >> command_line $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ >> -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$% >> } >> >> The object definition: >> >> define host { >> ... >> check_command cmd-Ping!$HOSTADDRESS$!1000!20!2000!50 >> ... >> } >> >> As you can see, a few more arguments need to be passed from the object, >> but you can override any of the thresholds for one particular object. >> >> Another way is simply to "hard-code" the values in your command, and >> have no arguments passed in from the object. >> >> The command: >> >> define command { >> command_name cmd-Ping >> command_line $USER1$/check_ping -p 3 -t 10 -4 -H >> $HOSTADDRESS$ -w 2000,25% -c 4000,50% >> } >> >> The object: >> >> define host { >> ... >> check_command cmd-Ping >> ... >> } >> >> Hopefully this clears things up - but *don't forget to copy the mailing >> list in* to your replies - hit "Reply to all" in your mailer and it'll >> sort it out for you. >> >> -- >> Andy Shellam >> NetServe Support Team >> >> the Mail Network >> "an alternative in a standardised world" >> >> >> > > Hallo thanks so much for your time.However the command is still timing out > and giving me the same error.Here is my command definition in the hosts > object: > define host > { > .......... > check_command check_ping!2000,25%!4000,50% > .......... > } > Now my question is if the above command will check the values of the > check_ping command in the command definition, then are those the values i > should insert in the command defination file? And also you said: >>Your check_ping command will then turn out to be something like: >> "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c >> 4000,50% -p 5" > However when i go to my command defination it still reads as before. > Kindly assist.I really hope am not missing out on something. > cheers. > > > > > ------------------------------ > > Message: 3 > Date: Mon, 15 Jan 2007 09:14:16 +0100 > From: Stijn Gruwier > Subject: Re: [Nagios-users] Using external commands with web interface > To: Artyom Khmelnitsky > Cc: nagios-users at lists.sourceforge.net > Message-ID: <45AB37D8.3070907 at schaubroeck.be> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Check if you are enabled to do that in cgi.cfg: > > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > Then make sure the cgi's know you as nagiosadmin by logging in as > nagiosadmin or using > > use_authentication=1 > default_user_name=nagiosadmin > > Artyom Khmelnitsky schreef: >> Hello, >> >> I am trying to enable the full usage of the web interface. I looked at >> the faq and setup the correct permissions on /var/nagios/rw/nagios.cmd. >> The nagios config file also looks correct, but for some reason it still >> says that there is an issue with permissions when I try to add a Comment >> to a host via the web interface. >> >> Could someone please point me in the right direction? >> >> Thank you > > > **** DISCLAIMER **** > http://www.schaubroeck.be/maildisclaimer.htm > > > > ------------------------------ > > Message: 4 > Date: Mon, 15 Jan 2007 16:06:29 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] Question about hosts when setting up > To: "nagios-users" > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis >> Sent: Monday, January 15, 2007 2:04 PM >> To: nagios-users >> Subject: [Nagios-users] Question about hosts when setting up >> >> Hello, >> >> >> >> I have setup monitoring on our companies website and when I check to > see >> if it will run correctly I get this message. >> >> >> >> Error: Could not find any host matching '(username)' >> >> Error: Could not expand member hosts specified in hostgroup (config > file >> '/etc/nagios/hostgroups.cfg', starting on line2) > > What does the definition starting on line 2 of > /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining > about and it's a unique configuration that you've created. I would guess > that you've included '(username)' on the members line as if it were a > host. You shouldn't. Only host names should go there, not contacts. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup > > -- > Marc > > > > > > ------------------------------ > > Message: 5 > Date: Mon, 15 Jan 2007 15:11:27 -0700 > From: David Rudder > Subject: [Nagios-users] Nagios receiving acknowledgements from behind > firewall? > To: Nagios Users mailinglist > Message-ID: <45ABFC0F.9050901 at reliableresponse.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > I'm building a website which will be hosted on a paid-hosting provider. > I'd like to be able to click on a link that will send acknowledgments > and comments in to a Nagios server running on a corporate LAN. So, > there's a firewall between the hosted website and the Nagios site, with > Nagios able to connect directly to the hosted site, but the hosted site > can't talk to Nagios. > > Is there any way to get Nagios to poll for acknowledgments and > comments? I looked into using NRPE for this, but it seems to only > handle service and host checks, not acks and comments. Has anyone done > this before? > > Disclaimer: it's for a commercial service. I won't advertise it here, > but I just wanted y'all to know, just in case. > > -Dave > > > > > ------------------------------ > > Message: 6 > Date: Tue, 16 Jan 2007 11:56:04 +1300 > From: "Steve Shipway" > Subject: Re: [Nagios-users] NsClient 2.0.1 > To: "Marco Borsani" , > > Message-ID: > <12A6FDDD13C460408A6E47E5DB1235A27978D5 at UXCHANGE3.UoA.auckland.ac.nz> > Content-Type: text/plain; charset="us-ascii" > > The client is sending None&2&5 which is correct for a 5-min CPU average > request with the default password. > > If you have modified the password on the pnsclient agent then this may > be the cause (this is done in the registry). Alternatively check your > check_nt program as it may be more recent and not compatible? We use > nagios-plugins 1.4 and this works with pnsclient2.0.1 correctly. > > Steve > > > -- > Steve Shipway > ITSS, University of Auckland > (09) 3737 599 x 86487 > s.shipway at auckland.ac.nz > > > > > > > ________________________________ > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco > Borsani > Sent: Tuesday, 16 January 2007 3:39 a.m. > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NsClient 2.0.1 > > > > Hi all . > > > > I installed NsClient (2.0.1) on a Windows 2000 server. It is > working fine, but if I want to check CPULOAD I will read following error > message: > > > > NSClient - ERROR:Malformed request or internal error. Check > EventLog:None&2&5 > > > > Nagios server is a 1.4 version > > > > Have you got any idea? > > > > Thanks ! > > Marco > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/c3213985/attachment.html > > ------------------------------ > > Message: 7 > Date: Mon, 15 Jan 2007 18:08:44 -0500 > From: "Dan Langille" > Subject: [Nagios-users] NRPE: Unable to read output > To: nagios-users at lists.sourceforge.net > Message-ID: <45ABC32C.26173.9BA5C323 at dan.langille.org> > Content-Type: text/plain; charset=US-ASCII > > Hi folks, > > I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote > script to work. It seems that no perl script works, but I can get > compiled plug-ins to work. > > The result is, which invoked on the nagios server is: > > $ ./check_nrpe -H app09 -c check_raid_dell > NRPE: Unable to read output > > On the remote machine, app09, I get: > > $ perl check_raid_dell > RAID_DELL CRITICAL: RAID is critical. > $ > > I know that a value is being returned: > > $ echo $? > 2 > $ > > It's as if the remote script is inappropriate for use with nrpe. I > can get other scripts to work: > > > $ ./check_nrpe -H app09 -c check_users > USERS OK - 1 users currently logged in |users=1;5;10;0 > > $ ./check_nrpe -H app09 -c check_load > OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; > load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; > > > FWIW, both of the above scripts are binaries: > > $ file check_load check_users check_raid_dell > check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_raid_dell: perl script text > > I have confirmed that the user that nrpe is running as can execute > the command: > > # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl > check_raid_dell" > RAID_DELL CRITICAL: RAID is critical. > > Ideas? Suggestions? Plans? > > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > > > > ------------------------------ > > Message: 8 > Date: Mon, 15 Jan 2007 16:24:12 -0700 > From: "Aaron Segura" > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: "Dan Langille" , > > Message-ID: > <2D0245E43DEC724F81592D697F05689904C4340D at SIDHQEXCHMB1.Cabelas.Corp> > Content-Type: text/plain; charset="us-ascii" > > What does the nrpe.cfg definition for your 'check_raid_dell' command > look like? > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dan > Langille > Sent: Monday, January 15, 2007 4:09 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE: Unable to read output > > Hi folks, > > I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote > script to work. It seems that no perl script works, but I can get > compiled plug-ins to work. > > The result is, which invoked on the nagios server is: > > $ ./check_nrpe -H app09 -c check_raid_dell > NRPE: Unable to read output > > On the remote machine, app09, I get: > > $ perl check_raid_dell > RAID_DELL CRITICAL: RAID is critical. > $ > > I know that a value is being returned: > > $ echo $? > 2 > $ > > It's as if the remote script is inappropriate for use with nrpe. I > can get other scripts to work: > > > $ ./check_nrpe -H app09 -c check_users > USERS OK - 1 users currently logged in |users=1;5;10;0 > > $ ./check_nrpe -H app09 -c check_load > OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; > load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; > > > FWIW, both of the above scripts are binaries: > > $ file check_load check_users check_raid_dell > check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 > (FreeBSD), dynamically linked (uses shared libs), stripped > check_raid_dell: perl script text > > I have confirmed that the user that nrpe is running as can execute > the command: > > # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl > check_raid_dell" > RAID_DELL CRITICAL: RAID is critical. > > Ideas? Suggestions? Plans? > > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: 9 > Date: Mon, 15 Jan 2007 18:40:04 -0500 > From: "Dan Langille" > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: nagios-users at lists.sourceforge.net > Message-ID: <45ABCA84.4827.9BC2740B at dan.langille.org> > Content-Type: text/plain; charset=US-ASCII > > On 15 Jan 2007 at 18:08, Dan Langille wrote: > >> Hi folks, >> >> I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >> script to work. It seems that no perl script works, but I can get >> compiled plug-ins to work. >> >> The result is, which invoked on the nagios server is: >> >> $ ./check_nrpe -H app09 -c check_raid_dell >> NRPE: Unable to read output >> >> On the remote machine, app09, I get: >> >> $ perl check_raid_dell >> RAID_DELL CRITICAL: RAID is critical. >> $ >> >> I know that a value is being returned: >> >> $ echo $? >> 2 >> $ >> >> It's as if the remote script is inappropriate for use with nrpe. I >> can get other scripts to work: >> >> >> $ ./check_nrpe -H app09 -c check_users >> USERS OK - 1 users currently logged in |users=1;5;10;0 >> >> $ ./check_nrpe -H app09 -c check_load >> OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; >> load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0; >> >> >> FWIW, both of the above scripts are binaries: >> >> $ file check_load check_users check_raid_dell >> check_load: ELF 64-bit LSB executable, AMD x86-64, version 1 >> (FreeBSD), dynamically linked (uses shared libs), stripped >> check_users: ELF 64-bit LSB executable, AMD x86-64, version 1 >> (FreeBSD), dynamically linked (uses shared libs), stripped >> check_raid_dell: perl script text >> >> I have confirmed that the user that nrpe is running as can execute >> the command: >> >> # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl >> check_raid_dell" >> RAID_DELL CRITICAL: RAID is critical. >> >> Ideas? Suggestions? Plans? > > My thanks to bernardl for the repeated questions about what I was > doing. The solution: write a wrapper which does a cd. > > # cat check_raid_dell_wrapper > #!/bin/sh > cd /usr/local/libexec/nagios > perl check_raid_dell > > Then refer to the wrapper in the nrpe.cfg on the remote server: > > # grep dell /usr/local/etc/nrpe.cfg > command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra > pper > > NOTE the use of the wrapper path > > Restart nrpe on the remote box and then test it on the server: > > > $ ./check_nrpe -H app09 -c check_raid_dell > RAID_DELL CRITICAL: RAID is critical. > > \o/ > > cheers > > > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > > > > > > ------------------------------ > > Message: 10 > Date: Mon, 15 Jan 2007 18:46:08 -0500 > From: "Formoso, Travis" > Subject: Re: [Nagios-users] Question about hosts when setting up > To: marc > Cc: nagios-users > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > >> What does the definition starting on line 2 of >> /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining >> about and it's a unique configuration that you've created. I would guess >> that you've included '(username)' on the members line as if it were a >> host. You shouldn't. Only host names should go there, not contacts. > >> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup > > -- > Marc > > Thanks Marc- I was putting in the usernames and not my host - works fine > now. Now on to setting up more services :P > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > or any action taken in reliance on this e-mail is strictly prohibited > and may be unlawful. > > > > ------------------------------ > > Message: 11 > Date: Tue, 16 Jan 2007 01:12:53 +0100 (MET) > From: Arno Lehmann > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: nagios-users at lists.sourceforge.net > Message-ID: <45AC1884.80705 at its-lehmann.de> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > On 1/16/2007 12:40 AM, Dan Langille wrote: >> On 15 Jan 2007 at 18:08, Dan Langille wrote: >> >> >>>Hi folks, >>> >>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >>>script to work. It seems that no perl script works, but I can get >>>compiled plug-ins to work. > ... >> My thanks to bernardl for the repeated questions about what I was >> doing. The solution: write a wrapper which does a cd. >> >> # cat check_raid_dell_wrapper >> #!/bin/sh >> cd /usr/local/libexec/nagios >> perl check_raid_dell >> >> Then refer to the wrapper in the nrpe.cfg on the remote server: >> >> # grep dell /usr/local/etc/nrpe.cfg >> command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra >> pper > > Interesting. Should be possible to invoke the check script directly, > though. You can call it with its path, it should have a hash bang line, > and the necessary inclusion of utils.pm could be handled from inside the > script. Which, incidentially, is how the standard plugins I know work :-) > > But a wrapper is often the solution to plugin problems... > > Arno > >> NOTE the use of the wrapper path >> >> Restart nrpe on the remote box and then test it on the server: >> >> >> $ ./check_nrpe -H app09 -c check_raid_dell >> RAID_DELL CRITICAL: RAID is critical. >> >> \o/ >> >> cheers >> >> > > -- > IT-Service Lehmann al at its-lehmann.de > Arno Lehmann http://www.its-lehmann.de > > > > ------------------------------ > > Message: 12 > Date: Mon, 15 Jan 2007 19:26:49 -0500 > From: "Dan Langille" > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: Arno Lehmann > Cc: nagios-users at lists.sourceforge.net > Message-ID: <45ABD579.18355.9BED426B at dan.langille.org> > Content-Type: text/plain; charset=US-ASCII > > On 16 Jan 2007 at 1:12, Arno Lehmann wrote: > >> Hi, >> >> On 1/16/2007 12:40 AM, Dan Langille wrote: >> > On 15 Jan 2007 at 18:08, Dan Langille wrote: >> > >> > >> >>Hi folks, >> >> >> >>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >> >>script to work. It seems that no perl script works, but I can get >> >>compiled plug-ins to work. >> ... >> > My thanks to bernardl for the repeated questions about what I was >> > doing. The solution: write a wrapper which does a cd. >> > >> > # cat check_raid_dell_wrapper >> > #!/bin/sh >> > cd /usr/local/libexec/nagios >> > perl check_raid_dell >> > >> > Then refer to the wrapper in the nrpe.cfg on the remote server: >> > >> > # grep dell /usr/local/etc/nrpe.cfg >> > command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra >> > pper >> >> Interesting. Should be possible to invoke the check script directly, >> though. You can call it with its path, it should have a hash bang line, >> and the necessary inclusion of utils.pm could be handled from inside the >> script. Which, incidentially, is how the standard plugins I know work >> :-) >> >> But a wrapper is often the solution to plugin problems... > > > We write that, with the full path. That is what led us to the > wrapper solution: > > # su -m -c nagios nagios c > "/usr/local/libexec/nagios/check_raid_dell" > Can't locate utils.pm in @INC (@INC contains: nagios > /usr/local/lib/perl5/5.8.8/BSDPAN > /usr/local/lib/perl5/site_perl/5.8.8/mach > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at > /usr/local/libexec/nagios/check_raid_dell line 17. > BEGIN failed--compilation aborted at > /usr/local/libexec/nagios/check_raid_dell line 17. > # > > > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > > > > > > ------------------------------ > > Message: 13 > Date: Tue, 16 Jan 2007 02:06:04 +0100 (MET) > From: Arno Lehmann > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: nagios-users at lists.sourceforge.net > Message-ID: <45AC24FA.70300 at its-lehmann.de> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > On 1/16/2007 1:26 AM, Dan Langille wrote: >> On 16 Jan 2007 at 1:12, Arno Lehmann wrote: >> >> >>>Hi, >>> >>>On 1/16/2007 12:40 AM, Dan Langille wrote: >>> >>>>On 15 Jan 2007 at 18:08, Dan Langille wrote: >>>> >>>> >>>> >>>>>Hi folks, >>>>> >>>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >>>>>script to work. It seems that no perl script works, but I can get >>>>>compiled plug-ins to work. >>> >>>... >>> >>>>My thanks to bernardl for the repeated questions about what I was >>>>doing. The solution: write a wrapper which does a cd. >>>> >>>># cat check_raid_dell_wrapper >>>>#!/bin/sh >>>>cd /usr/local/libexec/nagios >>>>perl check_raid_dell >>>> >>>>Then refer to the wrapper in the nrpe.cfg on the remote server: >>>> >>>># grep dell /usr/local/etc/nrpe.cfg >>>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra >>>>pper >>> >>>Interesting. Should be possible to invoke the check script directly, >>>though. You can call it with its path, it should have a hash bang line, >>>and the necessary inclusion of utils.pm could be handled from inside the >>>script. Which, incidentially, is how the standard plugins I know work >>> :-) >>> >>>But a wrapper is often the solution to plugin problems... >> >> >> >> We write that, with the full path. That is what led us to the >> wrapper solution: >> >> # su -m -c nagios nagios c >> "/usr/local/libexec/nagios/check_raid_dell" >> Can't locate utils.pm in @INC (@INC contains: nagios >> /usr/local/lib/perl5/5.8.8/BSDPAN >> /usr/local/lib/perl5/site_perl/5.8.8/mach >> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl >> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at >> /usr/local/libexec/nagios/check_raid_dell line 17. >> BEGIN failed--compilation aborted at >> /usr/local/libexec/nagios/check_raid_dell line 17. >> # >> > > Well, I'm not a perl guru, but in the standard plugins I looked at I > have a line "use lib "/usr/local/nagios2/libexec" ;" which looks like > it is important for cases like yours... > > Arno > > > -- > IT-Service Lehmann al at its-lehmann.de > Arno Lehmann http://www.its-lehmann.de > > > > ------------------------------ > > Message: 14 > Date: Mon, 15 Jan 2007 20:25:02 -0500 > From: "Dan Langille" > Subject: Re: [Nagios-users] NRPE: Unable to read output > To: Arno Lehmann > Cc: nagios-users at lists.sourceforge.net > Message-ID: <45ABE31E.14131.9C228E28 at dan.langille.org> > Content-Type: text/plain; charset=US-ASCII > > On 16 Jan 2007 at 2:06, Arno Lehmann wrote: > >> Hi, >> >> On 1/16/2007 1:26 AM, Dan Langille wrote: >> > On 16 Jan 2007 at 1:12, Arno Lehmann wrote: >> > >> > >> >>Hi, >> >> >> >>On 1/16/2007 12:40 AM, Dan Langille wrote: >> >> >> >>>On 15 Jan 2007 at 18:08, Dan Langille wrote: >> >>> >> >>> >> >>> >> >>>>Hi folks, >> >>>> >> >>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote >> >>>>script to work. It seems that no perl script works, but I can get >> >>>>compiled plug-ins to work. >> >> >> >>... >> >> >> >>>My thanks to bernardl for the repeated questions about what I was >> >>>doing. The solution: write a wrapper which does a cd. >> >>> >> >>># cat check_raid_dell_wrapper >> >>>#!/bin/sh >> >>>cd /usr/local/libexec/nagios >> >>>perl check_raid_dell >> >>> >> >>>Then refer to the wrapper in the nrpe.cfg on the remote server: >> >>> >> >>># grep dell /usr/local/etc/nrpe.cfg >> >>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra >> >>>pper >> >> >> >>Interesting. Should be possible to invoke the check script directly, >> >>though. You can call it with its path, it should have a hash bang >> line, >> >>and the necessary inclusion of utils.pm could be handled from inside >> the >> >>script. Which, incidentially, is how the standard plugins I know work >> :-) >> >> >> >>But a wrapper is often the solution to plugin problems... >> > >> > >> > >> > We write that, with the full path. That is what led us to the >> > wrapper solution: >> > >> > # su -m -c nagios nagios c >> > "/usr/local/libexec/nagios/check_raid_dell" >> > Can't locate utils.pm in @INC (@INC contains: nagios >> > /usr/local/lib/perl5/5.8.8/BSDPAN >> > /usr/local/lib/perl5/site_perl/5.8.8/mach >> > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl >> > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at >> > /usr/local/libexec/nagios/check_raid_dell line 17. >> > BEGIN failed--compilation aborted at >> > /usr/local/libexec/nagios/check_raid_dell line 17. >> > # >> > >> >> Well, I'm not a perl guru, but in the standard plugins I looked at I >> have a line "use lib "/usr/local/nagios2/libexec" ;" which looks like >> it is important for cases like yours... > > $ grep "use lib" check_* > check_breeze:use lib "nagios" ; > check_disk_smb:use lib "nagios" ; > check_file_age:use lib "nagios"; > check_flexlm:use lib "nagios"; > check_ifoperstatus:use lib "nagios" ; > check_ifstatus:use lib "nagios" ; > check_ircd:use lib "nagios"; > check_mailq:use lib "nagios"; > check_rpc:use lib "nagios"; > check_wave:use lib "nagios"; > > Yep... How unfortunate that the one I chose to base my plugin on is > check_file_age, which does not have this. > > > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > > > > > > ------------------------------ > > Message: 15 > Date: Tue, 16 Jan 2007 01:23:27 -0500 > From: "Formoso, Travis" > Subject: [Nagios-users] sending email out > To: nagios-users > Message-ID: > Content-Type: text/plain; charset="us-ascii" > > Hey guys > > > > I had a service go into warning tonight and I did not receive and email. > I have notification interval at 120, period 24x7, options w,u,c,r > > > > I went in and changed commands.cfg to mailq because in my /bin it is > mailq and not mailx.. > > > > I configured the other files with my name and email address and have the > admin email set as the email in my main conf file. > > > > Anything else I can do to get emails sent to me? > > > > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > or any action taken in reliance on this e-mail is strictly prohibited > and may be unlawful. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/834db3ad/attachment.html > > ------------------------------ > > Message: 16 > Date: Mon, 15 Jan 2007 22:57:30 -0800 > From: Jay Chandler > Subject: Re: [Nagios-users] sending email out > To: "Formoso, Travis" > Cc: nagios-users > Message-ID: <45AC775A.20601 at chapman.edu> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Formoso, Travis wrote: >> >> Hey guys >> >> >> >> I had a service go into warning tonight and I did not receive and >> email. I have notification interval at 120, period 24x7, options w,u,c,r >> >> >> >> I went in and changed commands.cfg to mailq because in my /bin it is >> mailq and not mailx.. >> >> >> >> I configured the other files with my name and email address and have >> the admin email set as the email in my main conf file. >> >> >> >> Anything else I can do to get emails sent to me? >> > > From my config: > > contacts.cfg: > > > define contact{ > contact_name chandler > alias chandler > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,u,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email chandler at chapman.edu > } > > commands.cfg: > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios 2.6 > *****\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$ > } > > # 'host-notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios 2.6 > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for > $HOSTNAME$!" $CONTACTEMAIL$ > } > > > Then I set my host and service definitions, and everything works like a > charm. That help any? > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler at chapman.edu > Today's Excuse: emissions from GSM-phones > > > > > ------------------------------ > > Message: 17 > Date: Mon, 15 Jan 2007 22:58:40 -0800 > From: Jay Chandler > Subject: Re: [Nagios-users] sending email out > To: "Formoso, Travis" > Cc: nagios-users > Message-ID: <45AC77A0.8070504 at chapman.edu> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Formoso, Travis wrote: >> >> Hey guys >> >> >> >> I had a service go into warning tonight and I did not receive and >> email. I have notification interval at 120, period 24x7, options w,u,c,r >> >> >> >> I went in and changed commands.cfg to mailq because in my /bin it is >> mailq and not mailx.. >> >> >> >> I configured the other files with my name and email address and have >> the admin email set as the email in my main conf file. >> >> >> >> Anything else I can do to get emails sent to me? >> > Oh, one other thought: > > Any chance it was caused by a soft fail state, wherein the service > recovered before it entered a hard state? If so, you won't receive a > notification about it. > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler at chapman.edu > Today's Excuse: emissions from GSM-phones > > > > > ------------------------------ > > Message: 18 > Date: Tue, 16 Jan 2007 02:14:07 -0500 > From: "Formoso, Travis" > Subject: Re: [Nagios-users] sending email out > To: chandler > Cc: nagios-users > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > Ok here are my config files: > > Config: # 'tformoso' contact definition > define contact{ > contact_name tformoso > alias nagios admin > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,u,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email travis.formoso at blueslate.net > } > > # 'bssadmins' contact group definition > define contactgroup{ > contactgroup_name bssadmins > alias blueslateadmins > members tformoso > } > > # 'host-notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios 2.6 > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: > $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: > $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host > $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ > } > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios 2.6 > *****\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$ > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > > I see on the web interface it trys to send me a email - however it still > does not get to me. > > > > > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > or any action taken in reliance on this e-mail is strictly prohibited > and may be unlawful. > > > > ------------------------------ > > Message: 19 > Date: Mon, 15 Jan 2007 23:30:34 -0800 > From: Jay Chandler > Subject: Re: [Nagios-users] sending email out > To: "Formoso, Travis" , nagios-users > > Message-ID: <45AC7F1A.3050403 at chapman.edu> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Formoso, Travis wrote: >> Ok here are my config files: >> >> [...snip] >> > > All right... beat this into the command line, all on one line: > > /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: TEST > \nHost: PRETENDIEXIST \nState: DENIAL \nAddress: 192.168.1.1\nInfo: Wuznme > boss\n\nDate/Time: now\n" | /bin/mail -s "Host On Prozac alert for > PRETENDIEXIST!" travis.formoso at blueslate.net > > And see what happens. Here, it shows the path to /mail isn't correct, > so I have to adjust it to get it to work. You'll probably have to play > with the syntax a bit, but when the command line works, so'll the Nagios > alerts. > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler at chapman.edu > Today's Excuse: Atilla the Hub > > > > > ------------------------------ > > Message: 20 > Date: Tue, 16 Jan 2007 10:41:45 +0300 > From: Dmitriy Kirhlarov > Subject: Re: [Nagios-users] Plugin issue > To: nagios-users at lists.sourceforge.net > Message-ID: <20070116074144.GA1383 at dkirhlarov.mow.oilspace.com> > Content-Type: text/plain; charset=us-ascii > > On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote: > >> Hallo thanks so much for your time.However the command is still timing >> out >> and giving me the same error.Here is my command definition in the hosts > > 1. Try to run command manualy. > 2. Check your host with "ping" command. Host alive? > 3. What your operation system? AFAIR, FreeBSD port have special patch > for check_ping. > > WBR > Dmitriy > > > > ------------------------------ > > Message: 21 > Date: Mon, 15 Jan 2007 23:44:22 -0800 > From: Jay Chandler > Subject: Re: [Nagios-users] Plugin issue > To: nagios-users at lists.sourceforge.net > Message-ID: <45AC8256.4070205 at chapman.edu> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Dmitriy Kirhlarov wrote: >> On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote: >> >> >>> Hallo thanks so much for your time.However the command is still timing >>> out >>> and giving me the same error.Here is my command definition in the hosts >>> >> >> 1. Try to run command manualy. >> 2. Check your host with "ping" command. Host alive? >> 3. What your operation system? AFAIR, FreeBSD port have special patch >> for check_ping. >> > > I don't have the original message handy, but on FreeBSD 6.1 a few weeks > ago I had a problem where the ping would choke unexpectedly. > > I solved this by installing a replacement compiled with IPv6 turned off, > and it hasn't recurred since. > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler at chapman.edu > Today's Excuse: Atilla the Hub > > > > > ------------------------------ > > Message: 22 > Date: Tue, 16 Jan 2007 10:51:19 +0300 > From: Dmitriy Kirhlarov > Subject: Re: [Nagios-users] addicted from other hosts > To: nagios-users at lists.sourceforge.net > Message-ID: <20070116075119.GC1383 at dkirhlarov.mow.oilspace.com> > Content-Type: text/plain; charset=us-ascii > > On Mon, Jan 15, 2007 at 06:09:13PM +0100, Daniel wrote: > >> /---node3--node4 >> Nagios---Router >> \---node1--node2 >> >> >> >> So, when nagios see that the touter is offline they dont need to alert >> that alle nodes are offline becaus i know that all nodes must be >> offline too ;) > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicedependency > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostdependency > > WBR > Dmitriy > > > > ------------------------------ > > Message: 23 > Date: Tue, 16 Jan 2007 09:28:47 +0100 > From: Christopher Odenbach > Subject: Re: [Nagios-users] check for terminal servers/rdp? > To: nagios-users at lists.sourceforge.net > Message-ID: <200701160928.48609.odenbach at uni-paderborn.de> > Content-Type: text/plain; charset="iso-8859-1" > > > Hi, > >> I'd like to check that it can properly talk to rdp if I can. For >> example, I also use vnc, so I wrote a bash script around vncsnapshot >> to form a valid plugin to send creds and then pull the screen from >> the machine. Only if it pulled successfully would you get an OK >> status. >> >> Since I'm moving away from vnc and towards terminal servers I would >> like to be able to implement a similar test, although the login part >> isn't necessary, as long as I can get to the login prompt I know >> it'll work and I don't want to fill up logs with continuous windows >> logins. > > Perhaps you just ask the people from rdesktop. They have deep knowledge > of the rdp protocol and might know how to get information about the > status of a terminal server. > > If you find anything useful please let me know - I am interested too. > > Christopher > > -- > ====================================================== > Dipl.-Ing. Christopher Odenbach > Zentrum fuer Informations- und Medientechnologien > Universitaet Paderborn > Raum N5.110 > odenbach at uni-paderborn.de > Tel.: +49 5251 60 5315 > ====================================================== > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: not available > Url : > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/e13cef2b/attachment.bin > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 8, Issue 23 > ******************************************* > Thanks alot andy and everyone else who chipped in.Now how do i enable it so that i can receive sms notifications? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 16 10:38:57 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 09:38:57 +0000 Subject: Plugin issue In-Reply-To: <20070116074144.GA1383@dkirhlarov.mow.oilspace.com> References: <39725.212.49.82.52.1168675308.squirrel@212.49.82.54> <45A8BDB4.9060102@mailnetwork.co.uk> <33295.212.49.82.52.1168690411.squirrel@212.49.82.54> <45A8F5EA.9030602@mailnetwork.co.uk> <36382.212.49.82.52.1168759312.squirrel@212.49.82.54> <45AA05B6.7000005@mailnetwork.co.uk> <41936.212.49.82.52.1168837007.squirrel@212.49.82.54> <20070116074144.GA1383@dkirhlarov.mow.oilspace.com> Message-ID: <45AC9D31.9030205@mailnetwork.co.uk> Dmitriy Kirhlarov wrote: > On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote: > > >> Hallo thanks so much for your time.However the command is still timing out >> and giving me the same error.Here is my command definition in the hosts >> > > 1. Try to run command manualy. > 2. Check your host with "ping" command. Host alive? > 3. What your operation system? AFAIR, FreeBSD port have special patch > for check_ping. > FYI, the standard plugins distribution (built from source) works fine for me on FreeBSD 6.1. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 16 10:46:21 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 09:46:21 +0000 Subject: Nagios-users Digest, Vol 8, Issue 23 In-Reply-To: <40769.212.49.82.52.1168938787.squirrel@212.49.82.54> References: <40769.212.49.82.52.1168938787.squirrel@212.49.82.54> Message-ID: <45AC9EED.9040908@mailnetwork.co.uk> > Thanks alot andy and everyone else who chipped in.Now how do i enable it > so that i can receive sms notifications? > http://nagios.sourceforge.net/docs/2_0/notifications.html http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contactgroup http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service To send a regular e-mail: 1. You need to create a command that will send an e-mail (with the relevant host/service information and states.) 2. You need to create a contact to receive the e-mail, and assign that contact to a contact group. 3. You need to configure the contact to use your command created in (1) for host and service notifications. 4. You need to set the notification group of your host/service to the contact group you created in (2). 5. You need to set any additional options for the notification. To send an SMS: You need an e-mail-to-SMS provider (www.aql.com, www.textanywhere.net etc) who will give you an e-mail such as @smsprovider.com. You need to use that e-mail address in your contact definition. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jan 16 10:59:40 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 16 Jan 2007 10:59:40 +0100 (MET) Subject: Nagios-users Digest, Vol 8, Issue 23 In-Reply-To: <40769.212.49.82.52.1168938787.squirrel@212.49.82.54> References: <40769.212.49.82.52.1168938787.squirrel@212.49.82.54> Message-ID: <45ACA20B.9090608@its-lehmann.de> Hi, had you snipped the lot of unnecessary messages in your mail and used a fitting subject line you might even get answers... Arno ...snipped about 50k of text -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sg at schaubroeck.be Tue Jan 16 11:13:37 2007 From: sg at schaubroeck.be (Stijn Gruwier) Date: Tue, 16 Jan 2007 11:13:37 +0100 Subject: Processing passive service check results Message-ID: <45ACA551.20402@schaubroeck.be> Hello, Is there a way to process the output of passive service check results with a script? I'm using the nagiosgraph tool to extract info from the check results. It is configured as an obsessive compulsive host/service processing command but nagios only runs it after every *active* check. Thanks in advance, Stijn Gruwier **** DISCLAIMER **** http://www.schaubroeck.be/maildisclaimer.htm ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Tue Jan 16 12:09:15 2007 From: daniel at ipv6-network.de (Daniel) Date: Tue, 16 Jan 2007 12:09:15 +0100 Subject: interval setup wont work Message-ID: <1124686922.20070116120915@ipv6-network.de> Hi there, i setup a host to check every 30secs btw every 60secs. The last check command was sheduled: Last Check Time: 01-16-2007 11:54:11 Now 10 minutes are over and nothink happends: Here my config for this host: define host{ name ipv6 ; The name of this host template - referenced in other host definitions, used for template recurs$ notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 0 ; Flap detection 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 parents ipv6 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ ; The 'name' of this service template, referenced in other service definitions name ipv6 active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 0 ; Passive service checks are enabled/disabled 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 disabled event_handler_enabled 1 ; Service event handler is disabled flap_detection_enabled 0 ; Flap detection is disabled 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 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! normal_check_interval 30 retry_check_interval 30 } define host{ use ipv6 host_name vs-uptime alias vs-uptime address 89.106.71.100 check_command check-host-alive max_check_attempts 5 process_perf_data 0 retain_nonstatus_information 0 contact_groups IPv6 notification_interval 10 notification_period 24x7 notification_options d,u,r } define service{ use ipv6 host_name vs-uptime service_description PING is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 contact_groups IPv6 notification_options w,u,c,r notification_interval 10 notification_period 24x7 check_command check_ping!100.0,40%!500.0,60% } In the nagios.cfg the normal check interval is set to 60secs. Nothink seems to be work... :( -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Tue Jan 16 12:29:21 2007 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Tue, 16 Jan 2007 12:29:21 +0100 Subject: NRPE: static linked libraries? Message-ID: Hi list, Is there any possiblity to compile NRPE with static linked libs? I?ve the problem, that NRPE ist missing (ssl-)libs when running it under inetd/user root, the environment of my nagios user is not set. Is there any simple solution? Thanks & Greets, Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de <> Diese E-Mail und eventuell beigef?gte Anh?nge enthalten vertrauliche Informationen, die rechtlich besonders gesch?tzt sein k?nnen, z.B. durch das Bankgeheimnis. Diese Informationen sind ausschlie?lich f?r die als Adressaten genannten Personen bestimmt. Wenn Sie nicht der angeschriebene Empf?nger sind oder diese E-Mail durch einen ?bertragungsfehler erhalten haben, informieren Sie uns bitte sofort per E-Mail, Telefon oder Fax und l?schen danach vorliegende E-Mail. Das unbefugte Kopieren dieser E-Mail, ihrer eventuell beigef?gten Anh?nge sowie die unbefugte Weitergabe der enthaltenen Informationen an Dritte sind nicht gestattet. Wir danken f?r Ihre Hilfe. This e-mail message together with its attachments, if any, is confidential and may contain information subject to legal privilege, i.e. banking secrecy. The information contained in this e-mail or its attachments is intended solely for the persons named as addressees. If you are not the intended recipient or have received this e-mail in error, please advise us immediately by e-mail, telephone or fax and delete this message. Any unauthorised copying of this message or unauthorised distribution of the information contained herein is prohibited. Thank you for your co-operation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: text/x-vcard Size: 264 bytes Desc: Zimmer, Thomas (Produktservices und Betrieb).vcf URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jan 16 12:31:21 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 16 Jan 2007 12:31:21 +0100 (MET) Subject: interval setup wont work In-Reply-To: <1124686922.20070116120915@ipv6-network.de> References: <1124686922.20070116120915@ipv6-network.de> Message-ID: <45ACB788.7080900@its-lehmann.de> Hi, On 1/16/2007 12:09 PM, Daniel wrote: > Hi there, > > i setup a host to check every 30secs btw every 60secs. > > The last check command was sheduled: > > Last Check Time: 01-16-2007 11:54:11 > > Now 10 minutes are over and nothink happends: > > Here my config for this host: Your config shows an interval of 60. The normal interval length is 1 minute. You'll have to change your configuration accordingly. This is all in the Manual, by the way. Arno > define host{ > name ipv6 ; The name of this host template - referenced in other host definitions, used for template recurs$ > notifications_enabled 1 ; Host notifications are enabled > event_handler_enabled 1 ; Host event handler is enabled > flap_detection_enabled 0 ; Flap detection 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 > parents ipv6 > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > define service{ > ; The 'name' of this service template, referenced in other service definitions > name ipv6 > active_checks_enabled 1 ; Active service checks are enabled > passive_checks_enabled 0 ; Passive service checks are enabled/disabled > 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 disabled > event_handler_enabled 1 ; Service event handler is disabled > flap_detection_enabled 0 ; Flap detection is disabled > 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 > > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > normal_check_interval 30 > retry_check_interval 30 > > } > > > > define host{ > use ipv6 > host_name vs-uptime > alias vs-uptime > address 89.106.71.100 > check_command check-host-alive > max_check_attempts 5 > process_perf_data 0 > retain_nonstatus_information 0 > contact_groups IPv6 > notification_interval 10 > notification_period 24x7 > notification_options d,u,r > } > > define service{ > use ipv6 > host_name vs-uptime > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > contact_groups IPv6 > notification_options w,u,c,r > notification_interval 10 > notification_period 24x7 > check_command check_ping!100.0,40%!500.0,60% > } > > > In the nagios.cfg the normal check interval is set to 60secs. > > Nothink seems to be work... :( > > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 13:33:46 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 07:33:46 -0500 (EST) Subject: sending email out In-Reply-To: <45AC7F1A.3050403@chapman.edu> References: <45AC7F1A.3050403@chapman.edu> Message-ID: <21601944.5091168950826562.JavaMail.root@mars.blueslate.net> > All right... beat this into the command line, all on one line: Hi Jay, Last night at 4am the email did come through. Should the email take that long or come instantly - I guess that is the only concern as of right now. Thanks a lot for the help! This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 16 14:52:53 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Jan 2007 14:52:53 +0100 Subject: check for terminal servers/rdp? In-Reply-To: <45AB4C35.2030101@googlemail.com> References: <45A76C5B.3080304@googlemail.com> <45A8D35D.2000304@etmiesje.de> <45AB4C35.2030101@googlemail.com> Message-ID: <45ACD8B5.6010209@op5.se> Hari Sekhon wrote: > If I wanted to test just the port I'd use check_tcp. > > I'd like to check that it can properly talk to rdp if I can. For > example, I also use vnc, so I wrote a bash script around vncsnapshot to > form a valid plugin to send creds and then pull the screen from the > machine. Only if it pulled successfully would you get an OK status. > I've never come across a plugin that does what you want. However, RDP is an open protocol and there are opensource clients for it, implementing the protocol. > Since I'm moving away from vnc and towards terminal servers I would like > to be able to implement a similar test, although the login part isn't > necessary, as long as I can get to the login prompt I know it'll work > and I don't want to fill up logs with continuous windows logins. > RDP works by sending images followed by deltas against the first image, along with some pointers on "here's your cursor" and things like that. Deciding if it's the login screen or not would require fetching an image over the network and passing it to image-recognition software. It's not extremely complicated, but still far from easy. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 15:08:22 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 09:08:22 -0500 Subject: C Message-ID: This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 15:10:45 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 09:10:45 -0500 Subject: check_oracle Message-ID: When I try to run check_oracle from the command prompt I get: ./check_oracle --tns 172.20.1.xx Cannot determine ORACLE_HOME for sid 172.20.1.xx Now the 172.20.1.xx has oracle installed and my nagios box does not have oracle of sql on it. How can I go about checking oracle on the oracle box. Thanks. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 15:45:48 2007 From: marc at ena.com (Marc Powell) Date: Tue, 16 Jan 2007 08:45:48 -0600 Subject: sending email out Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Tuesday, January 16, 2007 6:34 AM > To: Jay Chandler > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] sending email out > > > All right... beat this into the command line, all on one line: > > > Hi Jay, > > Last night at 4am the email did come through. Should the email take that > long or come instantly - I guess that is the only concern as of right now. /bin/mail passes it to your local mail program (sendmail?) immediately so the delay is in the MTA process. Check your mail server logs files. They should indicate the reason for the delay. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 16:01:06 2007 From: marc at ena.com (Marc Powell) Date: Tue, 16 Jan 2007 09:01:06 -0600 Subject: Nagios receiving acknowledgements from behindfirewall? Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of David Rudder > Sent: Monday, January 15, 2007 4:11 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] Nagios receiving acknowledgements from > behindfirewall? > Is there any way to get Nagios to poll for acknowledgments and > comments? I looked into using NRPE for this, but it seems to only > handle service and host checks, not acks and comments. Has anyone done > this before? Yes, I can think of a way, and it doesn't involve getting Nagios to do anything unusual. You're on the right track with polling though. > Disclaimer: it's for a commercial service. I won't advertise it here, > but I just wanted y'all to know, just in case. Thanks for the disclosure. It does feel inappropriate for you to be asking for free help creating a commercial product unless you plan to OSS the results. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 16:21:29 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 10:21:29 -0500 Subject: check_disk_smb Message-ID: I am trying to set up monitoring on more than one share on our file server ? here is my script # smb define service{ use generic-service host_name linuxdev1 service_description SMB is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups bssadmins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_disk_smb!public!guest check_command check_disk_smb!backups!guest } However it only is monitoring the backups ? is their a way to set it up so it can monitor all shares on this server? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jan 16 17:48:03 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 16 Jan 2007 11:48:03 -0500 (EST) Subject: sending email out In-Reply-To: <45AC77A0.8070504@chapman.edu> References: <45AC77A0.8070504@chapman.edu> Message-ID: <20070116114712.P3987@arbitor.digitalfreaks.org> > Oh, one other thought: > > Any chance it was caused by a soft fail state, wherein the service > recovered before it entered a hard state? If so, you won't receive a > notification about it. It would be nice if one could flag soft states as cause for sending alerts. The Nagios CGI passive checks always seem to make states soft-down, which is bad. ~BAS ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jan 16 17:57:06 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 16 Jan 2007 11:57:06 -0500 (EST) Subject: Sending Notifications on Soft (from Passive Checks) Message-ID: <20070116115348.E3987@arbitor.digitalfreaks.org> Whenver the CGI submits passive check results; the state transition is always "SOFT". If you submit a "Critical" down passive result, you then get "SERVICE ALERT" as state "SOFT", which does not result in actually exec'ing the CONTACT commands. Is there any way to make these external command result result in "HARD"? [1168966519] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;NCCluster04;Foo Web Cluster Health Check;2;TestPagers|TestPagers [1168966525] SERVICE ALERT: NCCluster04;Foo Web Cluster Health Check;CRITICAL;SOFT;1;TestPagers TIA, l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "...from back in the heady days when "helpdesk" meant nothing, "diskquota" meant everything, and lives could be bought and sold for a couple of pages of laser printout - and frequently were." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jan 16 18:42:23 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 16 Jan 2007 12:42:23 -0500 (EST) Subject: Sending Notifications on Soft (from Passive Checks) In-Reply-To: <20070116115348.E3987@arbitor.digitalfreaks.org> References: <20070116115348.E3987@arbitor.digitalfreaks.org> Message-ID: <20070116124154.X3987@arbitor.digitalfreaks.org> Nevermind -- just Submit 3 passive service checks and the state transitions from Soft -> Hard; What a PITA from the web interface. A macro would be great; a checkbox. ~BAS On Tue, 16 Jan 2007, Brian A. Seklecki wrote: > > Whenver the CGI submits passive check results; the state transition is always > "SOFT". > > If you submit a "Critical" down passive result, you then get "SERVICE ALERT" > as state "SOFT", which does not result in actually exec'ing the CONTACT > commands. > > Is there any way to make these external command result result in "HARD"? > > > [1168966519] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;NCCluster04;Foo > Web Cluster Health Check;2;TestPagers|TestPagers > > [1168966525] SERVICE ALERT: NCCluster04;Foo Web Cluster Health > Check;CRITICAL;SOFT;1;TestPagers > > TIA, > > l8* > -lava (Brian A. Seklecki - Pittsburgh, PA, USA) > http://www.spiritual-machines.org/ > > "...from back in the heady days when "helpdesk" meant nothing, "diskquota" > meant everything, and lives could be bought and sold for a couple of pages > of laser printout - and frequently were." > l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "...from back in the heady days when "helpdesk" meant nothing, "diskquota" meant everything, and lives could be bought and sold for a couple of pages of laser printout - and frequently were." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 14:33:31 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 08:33:31 -0500 Subject: sending email out In-Reply-To: <21601944.5091168950826562.JavaMail.root@mars.blueslate.net> References: <21601944.5091168950826562.JavaMail.root@mars.blueslate.net> Message-ID: > Hi Jay, > Last night at 4am the email did come through. Should the email take that > long or come instantly - I guess that is the only concern as of right now. > Thanks a lot for the help! Jay - After setting the new email settings you told me to it is now working. It is sending me an email every two hours which the statement says. What is a good way to set up intervals of email w/ warnings or when a host goes down. Sending an email every few hours for a warning can get annoying - so what do you set your options for best performance for emailing? Thanks. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 16 14:47:51 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Jan 2007 14:47:51 +0100 Subject: Bug in Nagios 2.6 regarding multiple hostgroups lines in services.cfg In-Reply-To: <1168558647.5657.2.camel@x-wing.iforde.net> References: <1168558647.5657.2.camel@x-wing.iforde.net> Message-ID: <45ACD787.9020106@op5.se> Ian Forde wrote: > Hi all - > > I've noticed that you can have multiple "members" lines in the > hostgroups.cfg hostgroup entries. Unfortunately, while rewriting a > fairly large Nagios configuration to support Distributed monitoring, I > separated out our services.cfg lines to have multiple "hostgroups" lines > for a given services. This quite neatly broke the config, as it seems > that it only reads the last hostgroups line listed for a given service. > > Any chance of a fix? > I'm not sure if this is a bug or by design. I believe "members" was treated specially because those lines tended to grow very, very large. Everywhere else the last specified option takes precedence. define service{ hostgroups foo hostgroups bar } will assign this service to hostgroup "bar" only. define service{ hostgroups foo,bar } will assign this service to hostgroups "foo" and "bar". Some fairly simple perl/python/php/ruby/manual hackery should work famously. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 14:50:27 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 16 Jan 2007 08:50:27 -0500 Subject: NSClient Question Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B47@PHSXMB5.partners.org> Is NSClient still being maintained and/or develeoped? Also, will it be usable with Nagios 3.x and beyond? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 19:45:51 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 16 Jan 2007 19:45:51 +0100 (CET) Subject: Sending Notifications on Soft (from Passive Checks) In-Reply-To: <20070116124154.X3987@arbitor.digitalfreaks.org> References: <20070116115348.E3987@arbitor.digitalfreaks.org> <20070116124154.X3987@arbitor.digitalfreaks.org> Message-ID: On Tue, 16 Jan 2007, Brian A. Seklecki wrote: > > Nevermind -- just Submit 3 passive service checks and the state > transitions from Soft -> Hard; > > What a PITA from the web interface. A macro would be great; a checkbox. Wouldn't this be related to the default retry counter? If you set the retry counter to 1 will it change the amount of passive check results one has to submit? Haven't tried anything but just thinking out loud. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 20:09:04 2007 From: marc at ena.com (Marc Powell) Date: Tue, 16 Jan 2007 13:09:04 -0600 Subject: check_disk_smb Message-ID: Please use text/plain when posting to the list. > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Tuesday, January 16, 2007 9:21 AM > To: nagios-users > Subject: [Nagios-users] check_disk_smb > > I am trying to set up monitoring on more than one share on our file server > - here is my script > > > > # smb > > define service{ > > use generic-service > > > > host_name linuxdev1 > > service_description SMB > [chop] > check_command check_disk_smb!public!guest > > check_command check_disk_smb!backups!guest > > } > > > > However it only is monitoring the backups - is their a way to set it up so > it can monitor all shares on this server? Multiple check_commands per service is not supported. Create a new service{} entry for each share or create a wrapper script that runs check_disk_smb for each share you pass to it and summarizes the results. That wrapper script would need to follow the Plugin Guidelines. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 16 20:11:40 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 19:11:40 +0000 Subject: check_disk_smb In-Reply-To: References: Message-ID: <45AD236C.9080509@mailnetwork.co.uk> Create one service definition per share. You could do, for each extra share: define service { use SMB service_description SMB2 check_command check_disk_smb!backups!guest } You could then set up a dependency of the extra shares on the main share so if the SMB service fails you won't get a notification for each additional share. Only one check_command per service/host is processed and it's the last one in the list - hence why you're only seeing the backup share being checked. Andy. Formoso, Travis wrote: > > I am trying to set up monitoring on more than one share on our file > server ? here is my script > > > > # smb > > define service{ > > use generic-service > > > > host_name linuxdev1 > > service_description SMB > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 1 > > retry_check_interval 1 > > contact_groups bssadmins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_disk_smb!public!guest > > check_command check_disk_smb!backups!guest > > } > > > > However it only is monitoring the backups ? is their a way to set it > up so it can monitor all shares on this server? > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this > email or any action taken in reliance on this e-mail is strictly > prohibited and may be unlawful. > > !DSPAM:37,45ad148e137101336215360! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45ad148e137101336215360! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45ad148e137101336215360! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 16 20:13:26 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 19:13:26 +0000 Subject: Sending Notifications on Soft (from Passive Checks) In-Reply-To: <20070116115348.E3987@arbitor.digitalfreaks.org> References: <20070116115348.E3987@arbitor.digitalfreaks.org> Message-ID: <45AD23D6.3070007@mailnetwork.co.uk> Set a maximum attempts to 1 in your service definitions, then any change in state results in a HARD state. Brian A. Seklecki wrote: > Whenver the CGI submits passive check results; the state transition is > always "SOFT". > > If you submit a "Critical" down passive result, you then get "SERVICE > ALERT" as state "SOFT", which does not result in actually exec'ing the > CONTACT commands. > > Is there any way to make these external command result result in "HARD"? > > > [1168966519] EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;NCCluster04;Foo Web Cluster Health > Check;2;TestPagers|TestPagers > > [1168966525] SERVICE ALERT: NCCluster04;Foo Web Cluster Health > Check;CRITICAL;SOFT;1;TestPagers > > TIA, > > l8* > -lava (Brian A. Seklecki - Pittsburgh, PA, USA) > http://www.spiritual-machines.org/ > > "...from back in the heady days when "helpdesk" meant nothing, "diskquota" > meant everything, and lives could be bought and sold for a couple of pages > of laser printout - and frequently were." > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45ad1505137103131262399! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 16 20:15:54 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 19:15:54 +0000 Subject: Sending Notifications on Soft (from Passive Checks) In-Reply-To: References: <20070116115348.E3987@arbitor.digitalfreaks.org> <20070116124154.X3987@arbitor.digitalfreaks.org> Message-ID: <45AD246A.9010707@mailnetwork.co.uk> Hugo van der Kooij wrote: > On Tue, 16 Jan 2007, Brian A. Seklecki wrote: > > >> Nevermind -- just Submit 3 passive service checks and the state >> transitions from Soft -> Hard; >> >> What a PITA from the web interface. A macro would be great; a checkbox. >> > > Wouldn't this be related to the default retry counter? If you set the > retry counter to 1 will it change the amount of passive check results one > has to submit? > > Haven't tried anything but just thinking out loud. > > Hugo. > Ah, hadn't seen your reply Hugo before I replied - yep that's basically what I've suggested. My system currently has a retry of 1 for each service, and when you submit a passive check through the web interface, it does result in a HARD state as opposed to SOFT - as expected. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sholland at sandara.ca Tue Jan 16 19:41:19 2007 From: sholland at sandara.ca (Shawn Holland) Date: Tue, 16 Jan 2007 14:41:19 -0400 Subject: Host Duration Macro In-Reply-To: <200701131328.42495.sholland@sandara.ca> References: <200701131328.42495.sholland@sandara.ca> Message-ID: <200701161441.20245.sholland@sandara.ca> If needed I am running: nagios-plugins-1.4.3 Any help is apreciated. On Saturday 13 January 2007 1:28 pm, Shawn Holland wrote: > Hi all, > > I am running: > > Nagios 2.2 > SuSE 10.1 > > I have modified libexec/send_mail.pl and my config file to include the > macro $HOSTDURATION$ > > As per doc: > > $HOSTDURATION$ A string indicating the amount of time that the host has > spent in its current state. Format is "XXh YYm ZZs", indicating hours, > minutes and seconds. > > Emails of host down are being sent but the value of $HOSTDURATION$ is > always showing a value of 1. > > This does not correspond with the above description. Can anyone assist. > Please let me know what information you require. -- Regards, Shawn Holland ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 21:03:26 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 16 Jan 2007 12:03:26 -0800 Subject: sending email out In-Reply-To: <20070116114712.P3987@arbitor.digitalfreaks.org> References: <45AC77A0.8070504@chapman.edu> <20070116114712.P3987@arbitor.digitalfreaks.org> Message-ID: <20070116200326.GN12042@pmorris.usa.hp.com> On Tue, 16 Jan 2007, Brian A. Seklecki wrote: > > Oh, one other thought: > > > > Any chance it was caused by a soft fail state, wherein the service > > recovered before it entered a hard state? If so, you won't receive a > > notification about it. > > It would be nice if one could flag soft states as cause for sending > alerts. > > The Nagios CGI passive checks always seem to make states soft-down, which > is bad. Is max_check attempts for those services set to something other than 1? If you've told it to wait for (for example) 3 checks, it's doing what you told it to and keeping the state soft until the third check arrives. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Tue Jan 16 21:07:42 2007 From: nagios at d.sparks.net (David Miller) Date: Tue, 16 Jan 2007 15:07:42 -0500 Subject: Scheduling maintenance Message-ID: <45AD308E.8090806@d.sparks.net> Hi All; I recently converted from nagios 1.3 to 2.5, both on debian stable. Under 1.3 I had cron run a shell script that wrote a line to the /var/run/nagios/nagios.cmd to perform automated, scheduled, maintenance. I changed it to write to /var/run/nagios2/nagios.cmd. The external commands parameter in nagios.cfg is: check_external_commands=1, and I have command_check_interval=-1. As far as I can tell the external command interface hasn't changed. I'm not getting any sort of error from the script. I get a line like this in the log: [1168977971] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;web1;Check New Web Servers;1168948740;1168950600;1;3600;auto;Weekly tomcat restart But the maintenance never shows up as scheduled maintenance. What am I missing? Thanks, --- David ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 d.sparks.net Tue Jan 16 21:23:39 2007 From: nagios at d.sparks.net (David Miller) Date: Tue, 16 Jan 2007 15:23:39 -0500 Subject: Scheduling downtime for groups of hosts? Message-ID: <45AD344B.6040305@d.sparks.net> Nagios 2.5 running on debian stable. Packages came from the backport collection. If I have a group of a dozen web servers, is there a way to schedule downtime for all of them? I read about triggered downtime in the docs: *_Triggered Downtime_* When scheduling host or service downtime you have the option of making it "triggered" downtime. What is triggered downtime, you ask? With triggered downtime the start of the downtime is triggered by the start of some other scheduled host or service downtime. This is extremely useful if you're scheduling downtime for a large number or hosts or services and the start time of the downtime period depends on the start time of another downtime entry. For instance, if you schedule flexible downtime for a particular host (because its going down for maintenance), you might want to schedule triggered downtime for all of that hosts's "children". .... but I don't have a natural parent for the group that isn't also parent to a lot of things that I need to keep monitoring. Entering a hostgroup name instead of a hostname gives this message: "Sorry, but you are not authorized to commit the specified command." This is being run by the nagiosadmin user with no restrictions placed on it. Ideas? Thanks, --- David ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From NBicic at gen-networks.com Tue Jan 16 21:29:28 2007 From: NBicic at gen-networks.com (Nedim Bicic) Date: Tue, 16 Jan 2007 15:29:28 -0500 Subject: getting snmp traps set on nagios Message-ID: Ok I have nagios 2.4 My nagios is working fine just need some additional the docs I don't understand in nagios I am trying to get snmp on nagios at least get the logs working I have downloaded snmptt some beta version 1.2 but I don't know how to correlate it with nagios. For instructions and if someone has snmp traps set up and would like to share how they set it up would be nice Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Tue Jan 16 21:42:50 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Tue, 16 Jan 2007 13:42:50 -0700 Subject: Scheduling downtime for groups of hosts? In-Reply-To: <45AD344B.6040305@d.sparks.net> References: <45AD344B.6040305@d.sparks.net> Message-ID: <2D0245E43DEC724F81592D697F05689904C43413@SIDHQEXCHMB1.Cabelas.Corp> http://www.nagios.org/developerinfo/externalcommands/commandlist.php Pay special attention to SCHEDULE_HOSTGROUP_HOST_DOWNTIME Alternatively, I wrote a php script to handle scheduling downtime for things that can't be done via the web interface: http://www.nagiosexchange.org/Downtimes.38.0.html?&tx_netnagext_pi1[p_vi ew]=628 (broken HTML link, be sure to get both lines) -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of David Miller Sent: Tuesday, January 16, 2007 1:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Scheduling downtime for groups of hosts? Nagios 2.5 running on debian stable. Packages came from the backport collection. If I have a group of a dozen web servers, is there a way to schedule downtime for all of them? I read about triggered downtime in the docs: *_Triggered Downtime_* When scheduling host or service downtime you have the option of making it "triggered" downtime. What is triggered downtime, you ask? With triggered downtime the start of the downtime is triggered by the start of some other scheduled host or service downtime. This is extremely useful if you're scheduling downtime for a large number or hosts or services and the start time of the downtime period depends on the start time of another downtime entry. For instance, if you schedule flexible downtime for a particular host (because its going down for maintenance), you might want to schedule triggered downtime for all of that hosts's "children". .... but I don't have a natural parent for the group that isn't also parent to a lot of things that I need to keep monitoring. Entering a hostgroup name instead of a hostname gives this message: "Sorry, but you are not authorized to commit the specified command." This is being run by the nagiosadmin user with no restrictions placed on it. Ideas? Thanks, --- David ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 16 21:59:18 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 16 Jan 2007 12:59:18 -0800 Subject: check_oracle In-Reply-To: References: Message-ID: <20070116205918.GA12042@pmorris.usa.hp.com> On Tue, 16 Jan 2007, Formoso, Travis wrote: > When I try to run check_oracle from the command prompt I get: > ./check_oracle --tns 172.20.1.xx > > Cannot determine ORACLE_HOME for sid 172.20.1.xx > > > > Now the 172.20.1.xx has oracle installed and my nagios box does not have > oracle of sql on it. How can I go about checking oracle on the oracle > box. You're going to need a properly installed Oracle client on the box doing the checking. Whether you do that on your Nagios box and check remotely, or do it on the remote box and run a remote check, is up to you. In either case, the plugin needs to run on a box with an oracle client installed on it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shipway at auckland.ac.nz Tue Jan 16 22:18:32 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 17 Jan 2007 10:18:32 +1300 Subject: NsClient 2.0.1 In-Reply-To: <003d01c7394c$9edeae80$0900d40a@intranet.it.net> References: <000801c738b2$e947cf00$0900d40a@intranet.it.net> <12A6FDDD13C460408A6E47E5DB1235A27978D5@UXCHANGE3.UoA.auckland.ac.nz> <003d01c7394c$9edeae80$0900d40a@intranet.it.net> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A2797995@UXCHANGE3.UoA.auckland.ac.nz> My only guess, then, is that you have different encryption/encoding settings between the two. Strange that this would only affect the CPU check, though. Since I've never encountered any problems with nsclient I've never needed to look into debugging... My only remeaining suggestion is to try installing nsclient++ or nc_net and see if they work, or if it still fails then the problem lies with your check_nt call. Double check that you are really passing meaningful parameters to check_nt. Steve -- Steve Shipway ITSS, University of Auckland (09) 3737 599 x 86487 s.shipway at auckland.ac.nz I did not modified the password. I am checking correctly (on the same host) memory and disk spaces. On other hosts I can check correctly also the CPULOAD. Marco ________________________________ The client is sending None&2&5 which is correct for a 5-min CPU average request with the default password. If you have modified the password on the pnsclient agent then this may be the cause (this is done in the registry). Alternatively check your check_nt program as it may be more recent and not compatible? We use nagios-plugins 1.4 and this works with pnsclient2.0.1 correctly. Steve I installed NsClient (2.0.1) on a Windows 2000 server. It is working fine, but if I want to check CPULOAD I will read following error message: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&5 Nagios server is a 1.4 version Have you got any idea? Thanks ! Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Tue Jan 16 22:55:44 2007 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Tue, 16 Jan 2007 13:55:44 -0800 (PST) Subject: getting snmp traps set on nagios In-Reply-To: References: Message-ID: <35436.192.168.128.67.1168984544.squirrel@ssl.monsoonwind.com> > I am trying to get snmp on nagios at least get the logs working I have > downloaded snmptt some beta version 1.2 but I don't know how to > correlate it with nagios. search "snmp trap" in the list archives. http://sourceforge.net/mailarchive/forum.php?forum=nagios-users -- And, did Galoka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Tue Jan 16 23:51:40 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 17:51:40 -0500 (EST) Subject: Monitoring question Message-ID: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> Hi guys, When monitoring services - I wanted to know if and when a service goes down - is their a script to run that would try to bring the service back up automatically? I wanted to know if nagios went this far. Thanks a lot. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Wed Jan 17 00:00:04 2007 From: chandler at chapman.edu (Jay Chandler) Date: Tue, 16 Jan 2007 15:00:04 -0800 Subject: Monitoring question In-Reply-To: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> References: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> Message-ID: <45AD58F4.7060107@chapman.edu> Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot. > > It's called the Event Handler-- check the documentation for more on this. It's part of the service definition, and it runs a command defined like most other commands. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: Atilla the Hub ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 17 00:04:19 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 16 Jan 2007 23:04:19 +0000 Subject: Monitoring question In-Reply-To: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> References: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> Message-ID: <45AD59F3.4040908@mailnetwork.co.uk> Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot. There are event handlers which, according to the docs, will run a command to try and recover the service before sending a notification, but I haven't (yet) implemented them, so you'd have to have a look at the manual. You'd need to write the script yourself, it's impossible for Nagios to know how to bring a service up, or even if it was the service that had failed and not an underlying problem, such as networking. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Wed Jan 17 00:04:28 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Tue, 16 Jan 2007 16:04:28 -0700 Subject: Monitoring question In-Reply-To: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> References: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> Message-ID: <2D0245E43DEC724F81592D697F05689904C43419@SIDHQEXCHMB1.Cabelas.Corp> http://nagios.sourceforge.net/docs/2_0/eventhandlers.html ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis Sent: Tuesday, January 16, 2007 3:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Monitoring question Hi guys, When monitoring services - I wanted to know if and when a service goes down - is their a script to run that would try to bring the service back up automatically? I wanted to know if nagios went this far. Thanks a lot. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 00:03:57 2007 From: marc at ena.com (Marc Powell) Date: Tue, 16 Jan 2007 17:03:57 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Tuesday, January 16, 2007 4:52 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring question > > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service back > up automatically? I wanted to know if nagios went this far. Thanks a lot. Yes, nagios can run a script when a service goes down to do what you want. You'll need to write the script though to perform whatever action is appropriate for that service. -- http://nagios.sourceforge.net/docs/2_0/eventhandlers.html -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GreenmanSE at ldschurch.org Wed Jan 17 00:24:03 2007 From: GreenmanSE at ldschurch.org (Scott Greenman) Date: Tue, 16 Jan 2007 16:24:03 -0700 Subject: Defining different notification behavior for the same service on different hosts Message-ID: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> I can't any way to have the same service on two hosts have different notification rules. Am I missing anything? Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on both hosts. If 'S' goes down on 'A', I want notifications sent. If 'S' goes down on 'B', I don't want any notifications sent. If I set the 'notifications_enabled' directive on the service to either on or off, it's wrong for one host or the other. If I set the 'notifications_enabled' directive on the two hosts, this only affects host notifications, it seems to have no effect on service notifications on those hosts. To get what I want, It seems I'd have to create two services, one with 'notifications_enabled' set to 1 and one with it set to 0 (zero). That would be a real pain because most of my services would have to be duplicated this way. We run one group of machines as our 'production' environment where notifications are turned on and another group of machines as a 'test' environment where notifications are turned off. Both of these are monitored by the same nagios server and both run the same set of services. Unless someone can suggest an alternative, I am planning on having notifications turned on for both environments, and add filtering in the script defined as the 'service_notification_commands' for the contacts. This has the down side that Nagios will show I sent notifications to both hosts, when some of those notifications will have been filtered out by my script. Any help or ideas would be greatly appreciated. Scott Greenman ---------------------------------------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GreenmanSE at ldschurch.org Wed Jan 17 00:31:07 2007 From: GreenmanSE at ldschurch.org (Scott Greenman) Date: Tue, 16 Jan 2007 16:31:07 -0700 Subject: Any way to get Nagios to ignore errors on startup? Message-ID: <45ACFDCB020000AC000198BA@inet-wh2.gmhwh.org> I have a set of services that I monitor in two different locations using two different Nagios servers. The services define the host-groups they apply to in their definitions. Some of these host-groups exist in one location but not the other. If I try to start Nagios in the location *without* a particular host group, I get an error: Error: Could not find any hostgroup matching 'all-bogus' Error: Could not expand hostgroups and/or hosts specified in service Is there any way to make Nagios consider this a warning instead of an error, so it could still run. I'd prefer to not have to keep two sets of service definitions around, one for each site, that differ only in that one lists some host-groups that the other does not. Thanks Scott Greenman ---------------------------------------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 02:05:16 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Tue, 16 Jan 2007 20:05:16 -0500 Subject: Monitoring question In-Reply-To: <45AD59F3.4040908@mailnetwork.co.uk> References: <45AD59F3.4040908@mailnetwork.co.uk> Message-ID: > There are event handlers which, according to the docs, will run a > command to try and recover the service before sending a notification, > but I haven't (yet) implemented them, so you'd have to have a look at > the manual. You'd need to write the script yourself, it's impossible > for Nagios to know how to bring a service up, or even if it was the > service that had failed and not an underlying problem, such as networking. Thanks for all the responses! This will be a huge help - I probably will need help along the way - thanks to all. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 17 10:11:16 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Jan 2007 10:11:16 +0100 Subject: Patch for NRPE In-Reply-To: <2D0245E43DEC724F81592D697F05689904C43406@SIDHQEXCHMB1.Cabelas.Corp> References: <2D0245E43DEC724F81592D697F05689904C43406@SIDHQEXCHMB1.Cabelas.Corp> Message-ID: <45ADE834.1070907@op5.se> Aaron Segura wrote: > While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG > option today I think I found a small error in the code and have included > a patch to fix it. > > > > This is for nrpe.c > > > > 1053,1056c1053,1056 > > < fp=fopen("/tmp/packet","w"); > > < if(fp){ > > < fwrite(&receive_packet,1,sizeof(receive_packet),fp); > > < fclose(fp); > > --- > >> errfp=fopen("/tmp/packet","w"); > >> if(errfp){ > >> fwrite(&receive_packet,1,sizeof(receive_packet),errfp); > >> fclose(errfp); > > > > I realize this is the "users" list. Sorry if this is the wrong place to > post it. > There's no difference what so ever between these two code-snippets. Just renaming a variable doesn't really warrant a patch, imo. Did you see some compile-error that made this patch needed? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 17 10:20:32 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Jan 2007 10:20:32 +0100 Subject: NRPE: static linked libraries? In-Reply-To: References: Message-ID: <45ADEA60.4010702@op5.se> Thomas.Zimmer at oppenheim.de wrote: > Hi list, > > Is there any possiblity to compile NRPE with static linked libs? > Yes. The man-page for your linker (or possibly your compiler) will tell you how to do this. > I?ve the problem, that NRPE ist missing (ssl-)libs when running it under inetd/user root, the environment of my nagios user is not set. > This sounds strange. Where are the ssl-libs located? Is that directory one where the dynamic link loader looks for libraries (mentioned in /etc/ld.so.conf or LD_RUN_PATH (for ELF systems) or LD_LIBRARY_PATH (for ancient unix type systems)? Have you run ldconfig (or your system's equivalence) since you installed the libraries? > Is there any simple solution? > Check the above and do the appropriate fix, or link nrpe statically. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 17 10:27:44 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Jan 2007 10:27:44 +0100 Subject: Defining different notification behavior for the same service on different hosts In-Reply-To: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> References: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> Message-ID: <45ADEC10.3060004@op5.se> Scott Greenman wrote: > I can't any way to have the same service on two hosts have different > notification rules. Am I missing anything? > > Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on > both hosts. > > If 'S' goes down on 'A', I want notifications sent. If 'S' goes down on 'B', I > don't want any notifications sent. > > If I set the 'notifications_enabled' directive on the service to either on or > off, it's wrong for one host or the other. > > If I set the 'notifications_enabled' directive on the two hosts, this only > affects host notifications, it seems to have no effect on service notifications > on those hosts. > > To get what I want, It seems I'd have to create two services, one with > 'notifications_enabled' set to 1 and one with it set to 0 (zero). > > That would be a real pain because most of my services would have to be > duplicated this way. We run one group of machines as our 'production' > environment where notifications are turned on and another group of machines as a > 'test' environment where notifications are turned off. Both of these are > monitored by the same nagios server and both run the same set of services. > > Unless someone can suggest an alternative, I am planning on having > notifications turned on for both environments, and add filtering in the script > defined as the 'service_notification_commands' for the contacts. This has the > down side that Nagios will show I sent notifications to both hosts, when some of > those notifications will have been filtered out by my script. > > Any help or ideas would be greatly appreciated. > Sounds sensible. Since the two services really have different options defined, you can't keep them as one service without hackery. If the hackery lets you maintain configuration in a very simple manner I'd say it's worth it. Otherwise I'd go with creating two services. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob.blake at gmail.com Wed Jan 17 10:33:46 2007 From: rob.blake at gmail.com (Rob Blake) Date: Wed, 17 Jan 2007 09:33:46 +0000 Subject: Defining different notification behavior for the same service on different hosts In-Reply-To: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> References: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> Message-ID: On 1/16/07, Scott Greenman wrote: > > I can't any way to have the same service on two hosts have different > notification rules. Am I missing anything? > > Say you have two hosts, 'A' and 'B'. The service 'S' is defined as > existing on both hosts. > > If 'S' goes down on 'A', I want notifications sent. If 'S' goes down on > 'B', I don't want any notifications sent. > > If I set the 'notifications_enabled' directive on the service to either on > or off, it's wrong for one host or the other. > > If I set the 'notifications_enabled' directive on the two hosts, this only > affects host notifications, it seems to have no effect on service > notifications on those hosts. > > To get what I want, It seems I'd have to create two services, one with > 'notifications_enabled' set to 1 and one with it set to 0 (zero). > > That would be a real pain because most of my services would have to be > duplicated this way. We run one group of machines as our 'production' > environment where notifications are turned on and another group of machines > as a 'test' environment where notifications are turned off. Both of these > are monitored by the same nagios server and both run the same set of > services. > > Unless someone can suggest an alternative, I am planning on having > notifications turned on for both environments, and add filtering in the > script defined as the 'service_notification_commands' for the contacts. This > has the down side that Nagios will show I sent notifications to both hosts, > when some of those notifications will have been filtered out by my script. > > Any help or ideas would be greatly appreciated. > > Scott Greenman > > ------------------------------ > I guess it really depends on how many different hosts your are monitoring the service, but you could always template the service description and then override the hostname and notifcation_enabled directives when you actually come to use the service. It's probably overkill for monitoring on only 2 hosts, but if your scenario is applicable to a wider number of Hosts, it could be an option. Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Wed Jan 17 11:03:59 2007 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Wed, 17 Jan 2007 11:03:59 +0100 Subject: NRPE: static linked libraries? (solved) Message-ID: The prob was solved, while typing this mail (as often ;) ): Meanwhile, I managed it to link the ssl-libs statically (I have no root-access to our machines, so I can?t simply install libs) Perhaps my config will help to solve the prob: NRPE-Version used: 2.0 Solaris-Compile-System: SunOS ### 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4 Exec-Sys/inetd: SunOS ### 5.8 Generic_117350-08 sun4u sparc SUNW,Ultra-4 For compilation I changed src/Makefile: ... LDFLAGS= -L/opt/prod/nagios/lib/ssl/lib /opt/prod/nagios/lib/ssl/lib/libssl.a /opt/prod/nagios/lib/ssl/lib/libcrypto.a ... Inetd.conf: ... nrpe stream tcp nowait nagios /opt/prod/nagios/bin/nrpe -c /opt/prod/nagios/cfg/nrpe.cfg -i ... Also tried (as described on http://nagios.org/faqs/viewfaq.php?faq_id=152): nrpe stream tcp nowait nagios /opt/prod/nagios/bin/nrpe /opt/prod/nagios/bin/nrpe -c /opt/prod/nagios/cfg/nrpe.cfg -i Services: nrpe 5666/tcp nagios # nagios Ldd shows: [###]/opt/prod/nagios $ ldd bin/nrpe libnsl.so.1 => /usr/lib/libnsl.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1 => Everything ok. Started as Deamon: => Everything ok. May reqest NRPE from other machines Started under inetd: [###]/opt/prod/nagios $ ps -ef|grep inetd nagios 3491 1 0 10:58:38 ? 0:00 inetd -s /etc/inetd.conf nagios@### /opt/prod/nagios/install_dir/clients/nrpe-2.0 > src/check_nrpe -H ### -c check_load OK - load average: 0.01, 0.01, 0.01 => Everything ok. Now inetd started under root: [###]/root # ps -ef|grep inet root 3499 1 0 11:00:24 ? 0:00 inetd -s /etc/inetd.conf nagios@### /opt/prod/nagios/install_dir/clients/nrpe-2.0 > src/check_nrpe -H ### -c check_load OK - load average: 0.00, 0.00, 0.01 => Ups, everything ok, too. Must have been missed something yesterday... Thanks a lot :), have a nice day! Greetings, Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: Andreas Ericsson [mailto:ae at op5.se] Gesendet: Mittwoch, 17. Januar 2007 10:21 An: Zimmer, Thomas (BB) Frankfurt/M. Cc: nagios-users at lists.sourceforge.net Betreff: Re: [Nagios-users] NRPE: static linked libraries? Thomas.Zimmer at oppenheim.de wrote: > Hi list, > > Is there any possiblity to compile NRPE with static linked libs? > Yes. The man-page for your linker (or possibly your compiler) will tell you how to do this. > I?ve the problem, that NRPE ist missing (ssl-)libs when running it > under inetd/user root, the environment of my nagios user is not set. > This sounds strange. Where are the ssl-libs located? Is that directory one where the dynamic link loader looks for libraries (mentioned in /etc/ld.so.conf or LD_RUN_PATH (for ELF systems) or LD_LIBRARY_PATH (for ancient unix type systems)? Have you run ldconfig (or your system's equivalence) since you installed the libraries? > Is there any simple solution? > Check the above and do the appropriate fix, or link nrpe statically. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Diese E-Mail und eventuell beigef?gte Anh?nge enthalten vertrauliche Informationen, die rechtlich besonders gesch?tzt sein k?nnen, z.B. durch das Bankgeheimnis. Diese Informationen sind ausschlie?lich f?r die als Adressaten genannten Personen bestimmt. Wenn Sie nicht der angeschriebene Empf?nger sind oder diese E-Mail durch einen ?bertragungsfehler erhalten haben, informieren Sie uns bitte sofort per E-Mail, Telefon oder Fax und l?schen danach vorliegende E-Mail. Das unbefugte Kopieren dieser E-Mail, ihrer eventuell beigef?gten Anh?nge sowie die unbefugte Weitergabe der enthaltenen Informationen an Dritte sind nicht gestattet. Wir danken f?r Ihre Hilfe. This e-mail message together with its attachments, if any, is confidential and may contain information subject to legal privilege, i.e. banking secrecy. The information contained in this e-mail or its attachments is intended solely for the persons named as addressees. If you are not the intended recipient or have received this e-mail in error, please advise us immediately by e-mail, telephone or fax and delete this message. Any unauthorised copying of this message or unauthorised distribution of the information contained herein is prohibited. Thank you for your co-operation. -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: text/x-vcard Size: 264 bytes Desc: Zimmer, Thomas (Produktservices und Betrieb).vcf URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 17 11:18:44 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 17 Jan 2007 10:18:44 +0000 Subject: Defining different notification behavior for the same service on different hosts In-Reply-To: <45ADEC10.3060004@op5.se> References: <45ACFC23020000AC000198A9@inet-wh2.gmhwh.org> <45ADEC10.3060004@op5.se> Message-ID: <45ADF804.1060508@mailnetwork.co.uk> As part of the "hackery" I would have the first (live) service have all options set, and the second (test-bed) service simply "use" the first service as a template, and override the "notifications_enabled" setting (and obviously the host too.) That way you really only have one service to change should you need to. Andreas Ericsson wrote: > Scott Greenman wrote: > >> I can't any way to have the same service on two hosts have different >> notification rules. Am I missing anything? >> >> Say you have two hosts, 'A' and 'B'. The service 'S' is defined as existing on >> both hosts. >> >> If 'S' goes down on 'A', I want notifications sent. If 'S' goes down on 'B', I >> don't want any notifications sent. >> >> If I set the 'notifications_enabled' directive on the service to either on or >> off, it's wrong for one host or the other. >> >> If I set the 'notifications_enabled' directive on the two hosts, this only >> affects host notifications, it seems to have no effect on service notifications >> on those hosts. >> >> To get what I want, It seems I'd have to create two services, one with >> 'notifications_enabled' set to 1 and one with it set to 0 (zero). >> >> That would be a real pain because most of my services would have to be >> duplicated this way. We run one group of machines as our 'production' >> environment where notifications are turned on and another group of machines as a >> 'test' environment where notifications are turned off. Both of these are >> monitored by the same nagios server and both run the same set of services. >> >> Unless someone can suggest an alternative, I am planning on having >> notifications turned on for both environments, and add filtering in the script >> defined as the 'service_notification_commands' for the contacts. This has the >> down side that Nagios will show I sent notifications to both hosts, when some of >> those notifications will have been filtered out by my script. >> >> Any help or ideas would be greatly appreciated. >> >> > > Sounds sensible. Since the two services really have different options > defined, you can't keep them as one service without hackery. If the > hackery lets you maintain configuration in a very simple manner I'd say > it's worth it. Otherwise I'd go with creating two services. > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlongland at grintek.com Wed Jan 17 14:09:00 2007 From: jlongland at grintek.com (John Longland) Date: Wed, 17 Jan 2007 15:09:00 +0200 Subject: Adding buttons Message-ID: <97DAFA85DDDB9D4CA206918E0375033E02CE04@Jupiter.Grintel.com> Hi all !!! a Hearty 2007 to all !!! My Nagios system is standing in our call-center and I have a few servers spread out over a few venues. At one of the distant locations, I have a DNS server and at certain times I need to have an operator trigger some scripts on this DNS server. What I was hoping to do is add a button ( on the left-panel perhaps ) of my nagios screen. The operator must then click this and this can be used to trigger the scripts on the DNS server. Is there a way of adding buttons to the nagios display ?? Thanks !!!! John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 17 15:53:23 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 17 Jan 2007 15:53:23 +0100 (CET) Subject: Adding buttons In-Reply-To: <97DAFA85DDDB9D4CA206918E0375033E02CE04@Jupiter.Grintel.com> References: <97DAFA85DDDB9D4CA206918E0375033E02CE04@Jupiter.Grintel.com> Message-ID: On Wed, 17 Jan 2007, John Longland wrote: > My Nagios system is standing in our call-center and I have a few > servers spread out over a few venues. At one of the distant locations, > I have a DNS server and at certain times I need to have an operator > trigger some scripts on this DNS server. What I was hoping to do > is add a button ( on the left-panel perhaps ) of my nagios screen. > The operator must then click this and this can be used to trigger > the scripts on the DNS server. > > Is there a way of adding buttons to the nagios display ?? There must be 50 ways to do this. But wether any of them fit your team is yet to be determined. You can try and edit the code for the CGI's but I do not expect you will be able to do so gathering from your request. Or edit the HTML files and see if you can fit something in. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 16:00:12 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 09:00:12 -0600 Subject: Adding buttons Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of John Longland > Sent: Wednesday, January 17, 2007 7:09 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Adding buttons > > Hi all !!! > > a Hearty 2007 to all !!! > > > My Nagios system is standing in our call-center and I have a few > servers spread out over a few venues. At one of the distant locations, > I have a DNS server and at certain times I need to have an operator > trigger some scripts on this DNS server. What I was hoping to do > is add a button ( on the left-panel perhaps ) of my nagios screen. > The operator must then click this and this can be used to trigger > the scripts on the DNS server. > > Is there a way of adding buttons to the nagios display ?? Editing the left side menu is simple; it's just plain html (~nagios/share/side.html). You'll want to make a copy of your changes as they'll be overwritten when you upgrade. If you want to modify the right frame contents you'll need to edit the C source and recompile. Alternately, if you want to have this functionality added to specific hosts or services, look at the Extended Info documentation. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 16:09:39 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 10:09:39 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > There are event handlers which, according to the docs, will run a > command to try and recover the service before sending a notification, > but I haven't (yet) implemented them, so you'd have to have a look at > the manual. You'd need to write the script yourself, it's impossible > for Nagios to know how to bring a service up, or even if it was the > service that had failed and not an underlying problem, such as networking. OK I tried to set up my first one today - testing the local host http from the sample provided on the page. Here is what I did. define command{ command_name restart-httpd command_line /usr/lib/nagios/plugins/eventhandlers/restart-httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } Here is the services - not sure if this is correct. # httpd-restart define service{ use generic-service host_name localhost service_description HTTPD is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 1 retry_check_interval 1 event_handler restart-httpd contact_groups bssadmins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ntp } I used the sameple script they provided: http://nagios.sourceforge.net/docs/2_0/eventhandlers.html Now on the web interface it will say local host HTTPD: NTP CRITICAL: No response from NTP server. So I am not sure why this was running when httpd did not go down and why I am getting a NTP error - I am sure things are set up wrong - just need to know what to change to test this out. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 16:16:06 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 10:16:06 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > OK I tried to set up my first one today - testing the local host http from > the sample provided on the page. Here is what I did. >check_command check_ntp } Well here is my error - however what would be the check_command for this event_handler? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob.blake at gmail.com Wed Jan 17 16:20:46 2007 From: rob.blake at gmail.com (Rob Blake) Date: Wed, 17 Jan 2007 15:20:46 +0000 Subject: Monitoring question In-Reply-To: References: Message-ID: If you are checking for http to be running, then I would have thought that the check_command would be something like check_http, assuming you have it defined in your object configuration file. What you have currently is checking for NTP and is therefore giving you an alert even though, as you say, http did not go down. Rob On 1/17/07, Formoso, Travis wrote: > > > > OK I tried to set up my first one today - testing the local host http > from > the sample provided on the page. Here is what I did. > > >check_command check_ntp > } > > Well here is my error - however what would be the check_command for this > event_handler? > > > > > > > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > or any action taken in reliance on this e-mail is strictly prohibited > and may be unlawful. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 16:25:50 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 10:25:50 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > If you are checking for http to be running, then I would have thought that the check_command would be something like > check_http, assuming you have it defined > in your object configuration file. What you have currently is checking for > NTP and is therefore giving you an alert even though, as you say, http did not go down. >Rob OK I will try to give it the check_http check and see if it works when I bring down the httpd. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Wed Jan 17 16:43:08 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Wed, 17 Jan 2007 08:43:08 -0700 Subject: Patch for NRPE In-Reply-To: <45ADE834.1070907@op5.se> References: <45ADE834.1070907@op5.se> Message-ID: <2D0245E43DEC724F81592D697F05689904C4341E@SIDHQEXCHMB1.Cabelas.Corp> No, I just like to rename variables so I can say that I submit patches to popular open source projects... :/ Near the top of the source there is already: #ifdef DEBUG FILE *errfp #endif But no: FILE *fp The *errfp var is used in other '#ifdef DEBUG/#endif' blocks, but not the particular one which I submitted the patch for. $ export CFLAGS=-DDEBUG $ make cd ./src/; make ; cd .. make[1]: Entering directory `/home/asegura/work/nrpe-2.6/src' gcc -DDEBUG -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/lib -lssl -lcrypto -lnsl -lwrap nrpe.c: In function `handle_connection': nrpe.c:1053: error: `fp' undeclared (first use in this function) nrpe.c:1053: error: (Each undeclared identifier is reported only once nrpe.c:1053: error: for each function it appears in.) make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/home/asegura/work/nrpe-2.6/src' *** Compile finished *** -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Wednesday, January 17, 2007 2:11 AM To: Aaron Segura Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] Patch for NRPE Aaron Segura wrote: > While attempting to compile NRPE (v2.6 / 12/11/2006) with the DEBUG > option today I think I found a small error in the code and have included > a patch to fix it. > > > > This is for nrpe.c > > > > 1053,1056c1053,1056 > > < fp=fopen("/tmp/packet","w"); > > < if(fp){ > > < fwrite(&receive_packet,1,sizeof(receive_packet),fp); > > < fclose(fp); > > --- > >> errfp=fopen("/tmp/packet","w"); > >> if(errfp){ > >> fwrite(&receive_packet,1,sizeof(receive_packet),errfp); > >> fclose(errfp); > > > > I realize this is the "users" list. Sorry if this is the wrong place to > post it. > There's no difference what so ever between these two code-snippets. Just renaming a variable doesn't really warrant a patch, imo. Did you see some compile-error that made this patch needed? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 16:58:30 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 10:58:30 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > OK I will try to give it the check_http check and see if it works when I > > bring down the httpd. Here is what I have now: (I added the event handler to http) # http define service{ use generic-service host_name www.blueslate.net,prpc,mars.blueslate.net,localhost service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 event_handler restart-httpd normal_check_interval 3 retry_check_interval 1 contact_groups bssadmins notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_http!guest:guest } Here is the output of the log file: [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused [1169048695] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;1;restart-httpd [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused [1169048755] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;2;restart-httpd [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection refused [1169048815] SERVICE NOTIFICATION: tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused [1169048815] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;HARD;3;restart-httpd I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 17 18:29:40 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 17 Jan 2007 17:29:40 +0000 Subject: Monitoring question In-Reply-To: References: Message-ID: <45AE5D04.3000500@mailnetwork.co.uk> Formoso, Travis wrote: >> OK I will try to give it the check_http check and see if it works when I > > bring down the httpd. >> > > Here is what I have now: (I added the event handler to http) > > # http > define service{ > use generic-service > > host_name www.blueslate.net,prpc,mars.blueslate.net,localhost > service_description HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > event_handler restart-httpd > normal_check_interval 3 > retry_check_interval 1 > contact_groups bssadmins > notification_interval 60 > notification_period 24x7 > notification_options w,u,c,r > check_command check_http!guest:guest > } > > Here is the output of the log file: > > [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused > [1169048695] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;1;restart-httpd > [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused > [1169048755] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;2;restart-httpd > [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection refused > [1169048815] SERVICE NOTIFICATION: tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused > [1169048815] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;HARD;3;restart-httpd > > I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong? > Have you tried running the "restart-httpd" command as the Nagios user from the console? Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, and it looks like Nagios doesn't provide any delay between running the event handler, and the subsequent check if httpd's running. If the command works OK, try adding a "sleep for 5 seconds" command (e.g. "sleep 5" for bash) to your event handler script after Apache has started. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 18:25:35 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 11:25:35 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Wednesday, January 17, 2007 9:59 AM > To: nagios-users > Subject: Re: [Nagios-users] Monitoring question > > > > OK I will try to give it the check_http check and see if it works when I > > > bring down the httpd. > [chop] > Here is the output of the log file: > > [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection > refused > [1169048695] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;SOFT;1;restart-httpd > [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection > refused > [1169048755] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;SOFT;2;restart-httpd > [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection > refused > [1169048815] SERVICE NOTIFICATION: > tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused > [1169048815] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;HARD;3;restart-httpd > > I shut down the httpd - however the service did not restart auto - so the > handler is not working. Any thing I can try or did wrong? The event handler _is_ being called ("SERVICE EVENT HANDLER"). If you're using the example handler as is, it won't work. I'll bet you a free beer that the nagios user does not have permission to restart httpd via the init script. In cases such as this I use visudo to grant nagios passwordless sudo access to the script and call it from the event handler via 'sudo /etc/rc.d/init.d/httpd restart'. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 17 18:18:16 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 17 Jan 2007 12:18:16 -0500 Subject: APAN and Nagios 2.6 Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B57@PHSXMB5.partners.org> Does APAN work with Nagios 2.6? THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 18:50:53 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 11:50:53 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andy Shellam (Mailing Lists) > Sent: Wednesday, January 17, 2007 11:30 AM > To: Formoso, Travis > Cc: nagios-users > Subject: Re: [Nagios-users] Monitoring question > > Formoso, Travis wrote: > >> OK I will try to give it the check_http check and see if it works when > I > > bring down the httpd. > > Here is the output of the log file: > > > > [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection > refused > > [1169048695] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;SOFT;1;restart-httpd > > [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection > refused > > [1169048755] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;SOFT;2;restart-httpd > > [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection > refused > > [1169048815] SERVICE NOTIFICATION: > tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused > > [1169048815] SERVICE EVENT HANDLER: > localhost;HTTP;CRITICAL;HARD;3;restart-httpd > > > > I shut down the httpd - however the service did not restart auto - so > the handler is not working. Any thing I can try or did wrong? > > > > Have you tried running the "restart-httpd" command as the Nagios user > from the console? Always a good suggestion. > Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, > and it looks like Nagios doesn't provide any delay between running the > event handler, and the subsequent check if httpd's running. Yes, there is a delay between the event_handler running and the next check for services at least. Whatever retry_check_interval is set to is the time nagios will wait to check again after executing the event_handler. Travis's retry_check_interval appears to be 1 minute (60 seconds). -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 18:57:44 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 12:57:44 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > The event handler _is_ being called ("SERVICE EVENT HANDLER"). If you're > using the example handler as is, it won't work. I'll bet you a free beer > that the nagios user does not have permission to restart httpd via the > init script. In cases such as this I use visudo to grant nagios > passwordless sudo access to the script and call it from the event > handler via 'sudo /etc/rc.d/init.d/httpd restart'. Marc - I am running the command line as user root (it is a virtual machine). Do I still need to set permission for the nagios user to restart httpd. If so how do I grant nagios user passwordless access? Also if it is being called SERVICE EVENT HANDLER what do I need to change this to and where? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 19:21:43 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 13:21:43 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > > I shut down the httpd - however the service did not restart auto - so > the handler is not working. Any thing I can try or did wrong? > > > > Have you tried running the "restart-httpd" command as the Nagios user > from the console? Always a good suggestion. I never was able to run anything as the Nagios user. I tried to su nagios and got: The account is currently not available. I ran ./check-httpd as root and when I typed that in - nothing happened. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 17 19:43:09 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 17 Jan 2007 18:43:09 +0000 Subject: Monitoring question In-Reply-To: References: Message-ID: <45AE6E3D.8010900@mailnetwork.co.uk> Marc Powell wrote: >> the handler is not working. Any thing I can try or did wrong? >> >> Have you tried running the "restart-httpd" command as the Nagios user >> from the console? >> > > Always a good suggestion. > > >> Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, >> and it looks like Nagios doesn't provide any delay between running the >> event handler, and the subsequent check if httpd's running. >> > > Yes, there is a delay between the event_handler running and the next > check for services at least. Whatever retry_check_interval is set to is > the time nagios will wait to check again after executing the > event_handler. Travis's retry_check_interval appears to be 1 minute (60 > seconds). > Ah, yes, sorry I was reading the Nagios log from bottom-to-top instead of top-to-bottom (don't ask why! It's been a long day....!) Noting that, you can see the delay clearly - good to know! :) Andy. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 17 19:47:32 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 17 Jan 2007 18:47:32 +0000 Subject: Monitoring question In-Reply-To: References: Message-ID: <45AE6F44.2050307@mailnetwork.co.uk> Formoso, Travis wrote: >>> I shut down the httpd - however the service did not restart auto - >>> > so > >> the handler is not working. Any thing I can try or did wrong? >> >> Have you tried running the "restart-httpd" command as the Nagios user >> from the console? >> > > Always a good suggestion. > > I never was able to run anything as the Nagios user. I tried to su nagios and got: The account is currently not available. > If your Nagios user's shell is set to /sbin/nologin (good practice) that's why. So use "sudo" not "su." You need to be reading your Operating System's "sudo" and "sudoers" man page to learn how to grant passwordless access to a user to run commands - the default "/etc/sudoers" file has an example of how to do this. You will need to add "sudo" at the beginning of your command in Nagios - e.g. "sudo /usr/local/nagios/libexec/eventhandler......" > I ran ./check-httpd as root and when I typed that in - nothing happened. > The command is usually "check_http" and requires the relevant parameters (website address to check, status code to cause an error on etc.) It's basically checking to see that a visitor to a website would get a "valid" http response from your server - if httpd is not running, this won't happen and the Nagios check will fail. Run "/usr/local/nagios/libexec/check_http -h" for more info (substitute Nagios plugins path as appropriate.) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Wed Jan 17 19:47:07 2007 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Wed, 17 Jan 2007 18:47:07 +0000 (GMT) Subject: nagios status map Message-ID: <20070117184707.92106.qmail@web23305.mail.ird.yahoo.com> I installed Nagios 2.5 and I would like to set the 2-D Status Map or 3-D Status Map. I am monitoring 200 hosts and 1000 services but when I try to set the co-ordinate the images overlap each other images. Has any one successfully set the status map for 200 or more host? If so can you please send me the co-ordinate for your hosts? Thanks ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 19:59:15 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 13:59:15 -0500 Subject: Monitoring question In-Reply-To: <45AE6F44.2050307@mailnetwork.co.uk> References: <45AE6F44.2050307@mailnetwork.co.uk> Message-ID: > You will need to add "sudo" at the beginning of your command in Nagios - > e.g. "sudo /usr/local/nagios/libexec/eventhandler......" > I ran ./check-httpd as root and when I typed that in - nothing happened. I was trying to run the check-httpd script in the /eventhandler folder. If I run ./check_http it comes back fine because the local host is up and running. Should I take httpd down and then run it? Also if I am running as root user - do I need to still use sudo? This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 19:58:54 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 12:58:54 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: Formoso, Travis [mailto:Travis.Formoso at blueslate.net] > Sent: Wednesday, January 17, 2007 11:58 AM > To: Marc Powell > Cc: nagios-users > Subject: RE: [Nagios-users] Monitoring question > > > The event handler _is_ being called ("SERVICE EVENT HANDLER"). If you're > > using the example handler as is, it won't work. I'll bet you a free beer > > that the nagios user does not have permission to restart httpd via the > > init script. In cases such as this I use visudo to grant nagios > > passwordless sudo access to the script and call it from the event > > handler via 'sudo /etc/rc.d/init.d/httpd restart'. > > Marc - > > I am running the command line as user root (it is a virtual machine). Do I > still need to set permission for the nagios user to restart httpd. If so Yes, you do. The nagios program runs as user nagios so logically, any programs that are called from nagios are run as that user. > how do I grant nagios user passwordless access? Also if it is being called 'man sudoers' ;) The hand-holding approach is to -- - run 'visudo' as root - at the end of the file add 'nagios ALL= NOPASSWD: /etc/rc.d/init.d/httpd' - exit your editor - test. Become the nagios user. If you're root, run 'su - nagios' to become the nagios user. Type 'id' to verify that you are indeed nagios, then run 'sudo /etc/rc.d/init.d/httpd restart' and verify that httpd restarted. - modify your event handler script to include 'sudo ' in front of every occurrence of '/etc/rc.d/init.d/httpd' > SERVICE EVENT HANDLER what do I need to change this to and where? It's not being called that. I was just pointing out that nagios was logging that it was running your event handler (described later in those lines). -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 20:05:30 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 13:05:30 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: Formoso, Travis [mailto:Travis.Formoso at blueslate.net] > Sent: Wednesday, January 17, 2007 12:22 PM > To: Marc Powell > Cc: nagios-users > Subject: RE: [Nagios-users] Monitoring question > > > > I shut down the httpd - however the service did not restart auto - > so > > the handler is not working. Any thing I can try or did wrong? > > > > > > > Have you tried running the "restart-httpd" command as the Nagios user > > from the console? > > Always a good suggestion. > > I never was able to run anything as the Nagios user. I tried to su nagios > and got: The account is currently not available. Sounds like you need to give nagios a real shell in /etc/passwd. > I ran ./check-httpd as root and when I typed that in - nothing happened. This really speaks of such a basic misunderstanding of how nagios interacts with plugins that I'd suggest re-reading the documentation, specifically the object configuration documentation and plugin theory. Use the sample config files as a reference until you understand how they're related to what's in the documentation. Finally, testing nagios functions as the root user will not reliably provide the same results as when run from nagios. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 20:24:19 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 14:24:19 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > This really speaks of such a basic misunderstanding of how nagios > interacts with plugins that I'd suggest re-reading the documentation, > specifically the object configuration documentation and plugin theory. > Use the sample config files as a reference until you understand how > they're related to what's in the documentation. Marc Thanks Marc - I just started using nagios a few days ago so there is a lot of learning on my part - however I have made great progress in the past few days. Thanks again for the help! This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 17 20:25:24 2007 From: marc at ena.com (Marc Powell) Date: Wed, 17 Jan 2007 13:25:24 -0600 Subject: Monitoring question Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis > Sent: Wednesday, January 17, 2007 12:59 PM > To: andy.shellam-lists > Cc: nagios-users > Subject: Re: [Nagios-users] Monitoring question > > > You will need to add "sudo" at the beginning of your command in Nagios - > > e.g. "sudo /usr/local/nagios/libexec/eventhandler......" > > I ran ./check-httpd as root and when I typed that in - nothing happened. That's because the check-httpd script expects a number of command line arguments that are passed to it and specific values before taking action. If it doesn't see those, it just exits cleanly. You can read the script to see what those are. define command{ command_name restart-httpd command_line /usr/local/nagios/libexec/eventhandlers/restart-httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } Nagios will substitute appropriate information for the $MACROS$ when calling your script. The end result would be something like -- /usr/local/nagios/libexec/eventhandlers/restart-httpd CRITICAL SOFT 1 Or /usr/local/nagios/libexec/eventhandlers/restart-httpd CRITICAL HARD 3 > Also if I am running as root user - do I need to still use sudo? Not if you're wanting to see if your event handler, when run with root permissions, will restart httpd. If you want to test if nagios can run it then you need to become the nagios user (after setting up sudo and your event handler as previously noted) then call the event handler directly. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Wed Jan 17 21:42:56 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Wed, 17 Jan 2007 15:42:56 -0500 Subject: Monitoring question In-Reply-To: References: Message-ID: > 'man sudoers' ;) The hand-holding approach is to -- > - run 'visudo' as root > - at the end of the file add 'nagios ALL= NOPASSWD: > /etc/rc.d/init.d/httpd' > - exit your editor > - test. Become the nagios user. If you're root, run 'su - > nagios' to become the nagios user. Type 'id' to verify that you are > indeed nagios, then run 'sudo /etc/rc.d/init.d/httpd restart' and verify > that httpd restarted. > - modify your event handler script to include 'sudo ' in front > of every occurrence of '/etc/rc.d/init.d/httpd' Thanks worked great - service restarted once it went down. I will be looking more into restarting services - thanks for the help. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cecil.williams at autozone.com Wed Jan 17 23:01:31 2007 From: cecil.williams at autozone.com (cecil.williams at autozone.com) Date: Wed, 17 Jan 2007 16:01:31 -0600 Subject: Cecil Williams/STS/AUTOZONE is out of the office. Message-ID: I will be out of the office starting 01/17/2007 and will not return until 01/22/2007. Please send all requests/problems to IT AIX SUPPORT via lotus notes. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sg at schaubroeck.be Thu Jan 18 08:37:25 2007 From: sg at schaubroeck.be (Stijn Gruwier) Date: Thu, 18 Jan 2007 08:37:25 +0100 Subject: log rotation - how many files are kept? Message-ID: <45AF23B5.5090304@schaubroeck.be> Hello, I'm aware that nagios is able to copy the nagios.log file to the archives directory on an hourly/daily/weekly/monthly basis. It seems that nagios keeps that files forever since I've got 11 archived weekly logs. But the word 'rotation' suggests that at some time the old ones are removed and replaced by newer logs. Is this the case? I searched the mailing list and the documentation but I couldn't find the answer. Thanks in advance, Stijn Gruwier **** DISCLAIMER **** http://www.schaubroeck.be/maildisclaimer.htm ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Thu Jan 18 10:36:37 2007 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Thu, 18 Jan 2007 01:36:37 -0800 Subject: nrpe help Message-ID: I have one sun machine with Solaris 9. I have installed nagios and nrpe. Nrpe works perfect on command prompt. root at localhost# ./check_nrpe -H localhost -c check_load OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; load5=0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; but on gui it shows "No output returned from plugin" .Also it doesn't show any thing in logs. nrpe.cfg: command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 services.cfg define service{ use generic-service host_name localhost service_description NRPE - check_load is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 5 contact_groups nagios notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_load } I am not getting the problem.my nagios version is 1.3 and nrpe 2.6 Thanks Chandresh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Thu Jan 18 12:49:42 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Thu, 18 Jan 2007 11:49:42 -0000 Subject: FW: log rotation - how many files are kept? Message-ID: -----Original Message----- From: nagios-users On Behalf Of Stijn Gruwier Sent: 18 January 2007 07:37 > I'm aware that nagios is able to copy the nagios.log file to the > archives directory on an hourly/daily/weekly/monthly basis. It seems > that nagios keeps that files forever since I've got 11 archived weekly > logs. But the word 'rotation' suggests that at some time the old ones > are removed and replaced by newer logs. Is this the case? I searched the > mailing list and the documentation but I couldn't find the answer. I also came across this problem and have written a script to organise our archived logs. At present I run it manually, but it could be a cron script. What is does is to keep up to 180 logs (1 per day for 6 months), but all but most recent 5 are zipped. The numbers in the previous sentence are parameters at the head of the script. Unfortunately the form of the name of the archived logs is not suitable for processing with standard logrotate. I am happy to let others use this script if a) no one has anything better, and b) if someone can tell me where to submit it. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sjaak at vsm-hosting.nl Thu Jan 18 13:48:43 2007 From: sjaak at vsm-hosting.nl (Sjaak Nabuurs) Date: Thu, 18 Jan 2007 13:48:43 +0100 Subject: FW: log rotation - how many files are kept? In-Reply-To: References: Message-ID: <45AF6CAB.1000703@vsm-hosting.nl> Wheeler, JF (Jonathan) wrote: >-----Original Message----- >From: nagios-users On Behalf Of Stijn Gruwier >Sent: 18 January 2007 07:37 > > > >>I'm aware that nagios is able to copy the nagios.log file to the >>archives directory on an hourly/daily/weekly/monthly basis. It seems >>that nagios keeps that files forever since I've got 11 archived weekly >> >> > > > >>logs. But the word 'rotation' suggests that at some time the old ones >>are removed and replaced by newer logs. Is this the case? I searched >> >> >the > > >>mailing list and the documentation but I couldn't find the answer. >> >> > >I also came across this problem and have written a script to organise >our archived logs. At present I run it manually, but it could be a cron >script. What is does is to keep up to 180 logs (1 per day for 6 >months), but all but most recent 5 are zipped. The numbers in the >previous sentence are parameters at the head of the script. >Unfortunately the form of the name of the archived logs is not suitable >for processing with standard logrotate. I am happy to let others use >this script if a) no one has anything better, and b) if someone can tell >me where to submit it. > > Is it not that nagios is extracting data from these logs for different type reporting ? I think the best way to submit your script is in www.nagiosexchange.com Sjaak ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 18 14:02:46 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Jan 2007 14:02:46 +0100 Subject: APAN and Nagios 2.6 In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679B57@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B57@PHSXMB5.partners.org> Message-ID: <45AF6FF6.4020107@op5.se> Kaplan, Andrew H. wrote: > Does APAN work with Nagios 2.6? > TAFO. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From werner.flamme at ufz.de Thu Jan 18 14:58:56 2007 From: werner.flamme at ufz.de (Werner Flamme) Date: Thu, 18 Jan 2007 14:58:56 +0100 Subject: nrpe help In-Reply-To: References: Message-ID: <45AF7D20.4050601@ufz.de> Chandresh Suthar schrieb am 18.01.2007 10:36: > I have one sun machine with Solaris 9. I have installed nagios and nrpe. > Nrpe works perfect on command prompt. > > root at localhost# ./check_nrpe -H localhost -c check_load > OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; > load5=0.188;10.000;25.000;0; > load15=0.195;5.000;20.000;0; > > but on gui it shows "No output returned from plugin" .Also it doesn't show > any thing in logs. The data that is shown in the GUI is not collected as root. Test the nrpe plugin as the user that nrpe runs with. This is the main problem in about 90% of all the cases where the plugin seems to refuse work... ;-) > I am not getting the problem.my nagios version is 1.3 and nrpe 2.6 > > Thanks > Chandresh HTH Werner -- Werner Flamme, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: werner.flamme at ufz.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 15:00:48 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 08:00:48 -0600 Subject: FW: log rotation - how many files are kept? Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sjaak Nabuurs > Sent: Thursday, January 18, 2007 6:49 AM > To: Wheeler, JF (Jonathan) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] FW: log rotation - how many files are kept? > > > > Wheeler, JF (Jonathan) wrote: > > >-----Original Message----- > >From: nagios-users On Behalf Of Stijn Gruwier > >Sent: 18 January 2007 07:37 > > > >I also came across this problem and have written a script to organise > >our archived logs. At present I run it manually, but it could be a cron > >script. What is does is to keep up to 180 logs (1 per day for 6 > >months), but all but most recent 5 are zipped. The numbers in the > >previous sentence are parameters at the head of the script. > >Unfortunately the form of the name of the archived logs is not suitable > >for processing with standard logrotate. I am happy to let others use > >this script if a) no one has anything better, and b) if someone can tell > >me where to submit it. > > > > > Is it not that nagios is extracting data from these logs for different > type reporting ? Yes, nagios uses the archived log files for historical reporting (availability, etc) and expects them to have a particular name and be in a particular location. If you modify either then you break the reports*. Since the furthest time period you can go back in the reports is 'Last Year', you'd need at most 2 years of log files to obtain accurate reports. If you don't need reporting for that long, it's a simple matter to use find to remove or move old logs. * location is special in that you can specify the directory that contains all the archive log files in nagios.cfg -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 15:04:38 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 08:04:38 -0600 Subject: nrpe help Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Thursday, January 18, 2007 3:37 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nrpe help > > I have one sun machine with Solaris 9. I have installed nagios and nrpe. > Nrpe works perfect on command prompt. > > root at localhost# ./check_nrpe -H localhost -c check_load > OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; > load5=0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; > > but on gui it shows "No output returned from plugin" .Also it doesn't show > any thing in logs. Beyond the question of why you're using NRPE to monitor local resources, your test above isn't really valid. Nagios isn't the root user and doesn't use the root environment. Become the nagios user and try again. Make sure that the command you're executing matches the command_line for the check_nrpe command definition, including full path substation, etc. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jan 18 15:26:16 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 18 Jan 2007 14:26:16 +0000 Subject: PDC plugin In-Reply-To: <45A65A3A.6010709@sertec-si.com> References: <45A65A3A.6010709@sertec-si.com> Message-ID: <45AF8388.5060807@googlemail.com> I would also be very interested if anyone knows how to do this. I am using 2003 Active Directory. I was thinking about just doing check_tcp again the ldap and kerberos ports but that is a pretty lame test since they are always bound. I think a more specific test like an ldap query and a kerberos request would be better. Anybody got anything more on this? Thanks -h Hari Sekhon Jes?s Oliv?n wrote: > Hi! > > is there any plugin to verify that a domain controller is working? > (basically authenticating users). > > Thx! > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmohammed at batelco.jo Thu Jan 18 16:00:10 2007 From: mmohammed at batelco.jo (Moayad Mohammad) Date: Thu, 18 Jan 2007 17:00:10 +0200 Subject: Timeout Message-ID: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> Dears, When I check on SMTP service using nagios, nagios gave me the following error: ==> CRITICAL - Socket timeout after 10 seconds I don't know from were can I change the timeout value, if I can, can I change it just for SMTP service or just for whole services. Thank you in advance. Moayad ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Thu Jan 18 16:12:28 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Thu, 18 Jan 2007 16:12:28 +0100 Subject: Completely stumped Message-ID: <20070118151228.GA11125@eric.schwarzvogel.de> Hi! The other day, we got our beefier machine. I had hoped my latency problems (ever increasing check latencies) would go away or at least turn irrelevant with that. They didn't. More precisely: we have migrated to a four-core Opteron 2.2GHz with 2GBs of RAM and a quite fast I/O Subsystem. We have 331 / 2940 hosts/services which are all checked actively. Still, after less than an hour, our check latency skyrockets well over 120s. Unacceptable. I've tested a whole slew of stuff in order to find out what the hell is wrong. I've played with concurrency settings and just about any performance tip save distributing the setup. Nothing worked. Not a single metric on the machine itself (interrupt rate, context switches or anything else the *stat utilities show me) tells me it's the machine's fault. I'm out of ideas (and to be frank, a bit desperate). What the hell can I do? The *only* thing I've left to try is removing the multiuser patch we talked about at the end of last year. If that does it, at least I have an idea *where* in the code my problem lies. I'll try that route tonight. Until then, I'm happy to hear your theories. Regards, Tobias (exhausted) -- Never touch a burning system. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 16:21:24 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 09:21:24 -0600 Subject: Timeout Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Moayad Mohammad > Sent: Thursday, January 18, 2007 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Timeout > > Dears, > When I check on SMTP service using nagios, nagios gave me the following > error: > ==> CRITICAL - Socket timeout after 10 seconds > > I don't know from were can I change the timeout value, if I can, can I > change it just for SMTP service or just for whole services. Standard plugins can be passed a timeout value typically with the '-t' parameter. Run the plugin from the command line with '--help' to see if it's supported and how to pass it. You can then modify your command{} definition for your SMTP plugin to specify the timeout value. You could even go so far as to pass the timeout value as an argument from your service definitions so you could have different timeouts for different SMTP service checks. Additionally, nagios has its own max time that it will allow a plugin to run (service_check_timeout in nagios.cfg). This value should be equal to or higher than your longest running plugin's timeout. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 16:29:41 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 09:29:41 -0600 Subject: Completely stumped Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Tobias Klausmann > Sent: Thursday, January 18, 2007 9:12 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Completely stumped > > Hi! > > The other day, we got our beefier machine. I had hoped my latency > problems (ever increasing check latencies) would go away or at > least turn irrelevant with that. They didn't. > > More precisely: we have migrated to a four-core Opteron 2.2GHz > with 2GBs of RAM and a quite fast I/O Subsystem. > > We have 331 / 2940 hosts/services which are all checked actively. > > Still, after less than an hour, our check latency skyrockets well > over 120s. Unacceptable. > [chop] > I'm out of ideas (and to be frank, a bit desperate). > > What the hell can I do? What's your normal_check_interval, 'nagios -s /path/to/nagios.cfg' output and Performance Info (all metrics). I would try disabling all host checks by setting 'check_period none' in your host definitions. Host checks can have significant performance impact and that may at least give a direction to look. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 16:41:02 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 09:41:02 -0600 Subject: Completely stumped Message-ID: Replying to myself... > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Thursday, January 18, 2007 9:30 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Completely stumped > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Tobias Klausmann > > Sent: Thursday, January 18, 2007 9:12 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Completely stumped > > > > > > What the hell can I do? > > What's your normal_check_interval, 'nagios -s /path/to/nagios.cfg' > output and Performance Info (all metrics). I would try disabling all > host checks by setting 'check_period none' in your host definitions. > Host checks can have significant performance impact and that may at > least give a direction to look. So I've just re-read the early December thread and most of these seem moot. I don't really have any other suggestions other than to try lowering service_reaper_frequency=5... -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joshua.Parsell at aerojet.com Thu Jan 18 16:49:12 2007 From: Joshua.Parsell at aerojet.com (Parsell, Joshua (AJ-East Engineering/Technology)) Date: Thu, 18 Jan 2007 10:49:12 -0500 Subject: Scheduled/unscheduled breakdown for Group Availability Reports Message-ID: <4E1E01DD02DCA94F899AB7D4BE319D37017366F1@GVENGEXCH1.gveng.aerojet.gencorp.local> Hi, I have noticed that when I generate an Availability report for a single Host or Service, it is broken down by Scheduled and Unscheduled Downtime. However, when I generate the report for a group of Hosts or Services, I don't get that breakdown of Scheduled and Unscheduled. Our IT organization has specific requirements for Planned and Unplanned downtime, and we have to report these values on a monthly basis to the CIO. Generating the Availability reports separately for each individual Host and Service would be very tedious. It would be much nicer if I could make just a few Hostgroups and Servicegroups for all the various types of Hosts and Services I am required to report (e.g. "Mail Servers", "Networking Equipment", "FLEXlm License Services", etc.). Then I would only need to generate those few availability reports each month to get my numbers. Is there a technical reason the Scheduled/Unscheduled breakdown is not computed for groups? I know the group display is in columns, while the individual display uses rows to show the breakdown. But it still seems like it would be easy enough to display the breakdown in columns. Currently, a servicegroup report looks like this: Servicegroup 'flexlm_svcs' Service State Breakdowns: Host Service % Time OK % Time Warning % Time Unknown % Time Critical % Time Undetermined gvengfs01 FLEXlm-Compaq_FORTRAN 5.928% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 94.072% FLEXlm-MATLAB 9.798% (73.665%) 3.503% (26.335%) 0.000% (0.000%) 0.000% (0.000%) 86.700% FLEXlm-MathCAD 5.928% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 94.072% Can't the OK, Warning, Unknown, and Critical columns just be divided into two columns? % OK Planned, % OK Unplanned, % Warning Planned, % Warning Unplanned, etc.? Each of those columns would still contain "% Total (% Known)" just like now. Like this: Host Service % Time OK % Time Warning % Time Unknown % Time Critical % Time Undetermined Unscheduled Scheduled Unscheduled Scheduled Unscheduled Scheduled Unscheduled Scheduled gvengfs01 FLEXlm-Compaq_FORTRAN 6.035% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 93.97% FLEXlm-MATLAB 9.798% (73.074%) 0.000% (0.000%) 3.610% (26.926%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 86.59% FLEXlm-MathCAD 6.035% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 93.97% This seems like an odd thing to leave out. I was surprised that in searching the mailing lists and some other Nagios forums, I can't find any mention of this. Am I the first person to ever ask about it? (Or did I not search very well? :) Thanks, Joshua Parsell -- Joshua.Parsell at Aerojet.com Senior Application Analyst Aerojet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 16:56:57 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 09:56:57 -0600 Subject: PDC plugin Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Thursday, January 18, 2007 8:26 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] PDC plugin > > I would also be very interested if anyone knows how to do this. I am > using 2003 Active Directory. I was thinking about just doing check_tcp > again the ldap and kerberos ports but that is a pretty lame test since > they are always bound. > > I think a more specific test like an ldap query and a kerberos request > would be better. > > Anybody got anything more on this? Big caveat: I'm not a Windows kind-of-guy but... We use a program named dcdiag that actively checks the state of our domain controllers and send its output to us via e-mail. It performs many tests such as connectivity, replication, netlogons, advertising, etc, etc etc... If I were trying to do this I'd install ActiveState perl and create a simple plugin that called dcdiag and parsed its output looking for failures. Run the plugin via NRPENT (or other) and you should have interesting results. Now, I'm sure there's a better way to parse the output than AS Perl that's native to Windows but I'm just not familiar enough to know what it is. dcdiag from MS TechNet - http://207.46.196.114/WindowsServer/en/library/f7396ad6-0baa-4e66-8d18-1 7f83c5e4e6c1033.mspx?mfr=true Try running it with 'dcdiag /s: /e' HTH, Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 17:02:03 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 10:02:03 -0600 Subject: nrpe help Message-ID: Please always reply on list. That expected when you use OSS software so that others like yourself can benefit from your experience when they search the archives/google. > -----Original Message----- > From: Chandresh Suthar [mailto:chandresh.suthar at gmail.com] > Sent: Thursday, January 18, 2007 8:35 AM > To: Marc Powell > Subject: Re: [Nagios-users] nrpe help > > as a nagios user: > > bash-2.05$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load > OK - load average: 0.02, 0.02, 0.07|load1=0.016;15.000;30.000;0; > load5=0.016;10.000;25.000;0; load15=0.066;5.000;20.000;0; Please post the host and service definitions. Verify that you do not have multiple nagios daemons running. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joshua.Parsell at aerojet.com Thu Jan 18 17:11:53 2007 From: Joshua.Parsell at aerojet.com (Parsell, Joshua (AJ-East Engineering/Technology)) Date: Thu, 18 Jan 2007 11:11:53 -0500 Subject: Scheduled/unscheduled breakdown for Group Availability Reports Message-ID: <4E1E01DD02DCA94F899AB7D4BE319D370173671C@GVENGEXCH1.gveng.aerojet.gencorp.local> I guess it may actually be good to break those columns into 3 columns, "% OK Unscheduled", "% OK Scheduled", and "% OK Total", "% Warning Unscheduled", "% Warning Scheduled", and "% Warning Total", etc., for the benefit of those who are not concerned with the Scheduled/Unscheduled values. -- Joshua.Parsell at Aerojet.com Senior Application Analyst Aerojet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Jan 18 17:47:27 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Jan 2007 17:47:27 +0100 Subject: Completely stumped In-Reply-To: <20070118151228.GA11125@eric.schwarzvogel.de> References: <20070118151228.GA11125@eric.schwarzvogel.de> Message-ID: <45AFA49F.1030808@op5.se> Tobias Klausmann wrote: > Hi! > > The other day, we got our beefier machine. I had hoped my latency > problems (ever increasing check latencies) would go away or at > least turn irrelevant with that. They didn't. > > More precisely: we have migrated to a four-core Opteron 2.2GHz > with 2GBs of RAM and a quite fast I/O Subsystem. > > We have 331 / 2940 hosts/services which are all checked actively. > > Still, after less than an hour, our check latency skyrockets well > over 120s. Unacceptable. > This sounds truly bizarre. Could you send me the nagios binary you're using along with all your configuration, as well as the status.sav file? Make sure to remove any passwords and stuff in the configuration before you bzip2 it up and send it. > I've tested a whole slew of stuff in order to find out what the > hell is wrong. I've played with concurrency settings and just > about any performance tip save distributing the setup. > > Nothing worked. > > Not a single metric on the machine itself (interrupt rate, > context switches or anything else the *stat utilities show me) > tells me it's the machine's fault. > > I'm out of ideas (and to be frank, a bit desperate). > > What the hell can I do? > > The *only* thing I've left to try is removing the multiuser patch > we talked about at the end of last year. If that does it, at > least I have an idea *where* in the code my problem lies. I'll > try that route tonight. > Which patch was this? I didn't find it in the december archives. For now though, try lowering your reaper frequency to 2 (lowest allowed value) and see what happens. When you get desperate, set all your services to be checked with the exact same interval settings (5 minutes normal_check_interval, 1 minute retry_check_interval or something like that). ---%<---%<---%<--- There has been a slight thinko in Nagios. I don't know if it's still there in recent CVS versions. The thinko is that it (used to?) calculate average service check interval by adding up all normal_check_interval values and dividing it by the number of services configured (or something along those lines), which leads to long latencies. This normally didn't make those latencies increase though. Humm... ---%<---%<---%<--- If that one fails, I think only some long-on-going monitoring of both the server and Nagios (using printf()-debugging) could get to the bottom of this. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Thu Jan 18 17:26:15 2007 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Thu, 18 Jan 2007 08:26:15 -0800 Subject: nrpe help In-Reply-To: References: Message-ID: as a nagios user: bash-2.05$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load OK - load average: 0.02, 0.02, 0.07|load1=0.016;15.000;30.000;0; load5=0.016;10.000;25.000;0; load15=0.066;5.000;20.000;0; working fine. On 1/18/07, Chandresh Suthar wrote: > > I have one sun machine with Solaris 9. I have installed nagios and nrpe. > Nrpe works perfect on command prompt. > > root at localhost# ./check_nrpe -H localhost -c check_load > OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; load5= > 0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; > > but on gui it shows "No output returned from plugin" .Also it doesn't show > any thing in logs. > > nrpe.cfg: > > command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c > 30,25,20 > > services.cfg > > define service{ > use generic-service > host_name localhost > service_description NRPE - check_load > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 5 > contact_groups nagios > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command check_nrpe!check_load > } > > I am not getting the problem.my nagios version is 1.3 and nrpe 2.6 > > Thanks > Chandresh > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Thu Jan 18 17:27:55 2007 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Thu, 18 Jan 2007 08:27:55 -0800 Subject: nrpe help In-Reply-To: References: Message-ID: hosts.cfg define host{ use generic-host ; Name of host template to use host_name localhost alias Solaris Server address 127.0.0.1 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } services.cfg define service{ use generic-service ; Name of service template to use host_name localhost service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nagios notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } define service{ use generic-service host_name localhost service_description NRPE - check_load is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 5 contact_groups nagios notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_load } On 1/18/07, Chandresh Suthar wrote: > > as a nagios user: > > bash-2.05$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load > OK - load average: 0.02, 0.02, 0.07|load1=0.016;15.000;30.000;0; load5= > 0.016;10.000;25.000;0; load15=0.066;5.000;20.000;0; > > working fine. > > > On 1/18/07, Chandresh Suthar wrote: > > > > I have one sun machine with Solaris 9. I have installed nagios and > > nrpe. Nrpe works perfect on command prompt. > > > > root at localhost# ./check_nrpe -H localhost -c check_load > > OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; load5= > > 0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; > > > > but on gui it shows "No output returned from plugin" .Also it doesn't > > show any thing in logs. > > > > nrpe.cfg: > > > > command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c > > 30,25,20 > > > > services.cfg > > > > define service{ > > use generic-service > > host_name localhost > > service_description NRPE - check_load > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 5 > > contact_groups nagios > > notification_options w,u,c,r > > notification_interval 960 > > notification_period 24x7 > > check_command check_nrpe!check_load > > } > > > > I am not getting the problem.my nagios version is 1.3 and nrpe 2.6 > > > > Thanks > > Chandresh > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Thu Jan 18 19:09:20 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Thu, 18 Jan 2007 12:09:20 -0600 Subject: ALPHA UPS - snmp checks Message-ID: Hi There, Is anyone monitoring the ALPHA UPS's with NAGIOS. IF so can you share your checkcommand? Thanks, Luis Lacayo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Thu Jan 18 20:00:44 2007 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Thu, 18 Jan 2007 13:00:44 -0600 Subject: NRPE Check Slow Response Message-ID: I have a perl script that is reside on one of our Solaris Production servers that is called from our Nagios server via the "check_nrpe" command. I have been told that we are reporting failures that are not really failures. Can anyone tell me if there is latency between Nagios-->remote server (nrpe)-->command and results back? I have included some timings that I did this morning. Thanks, Ed The following was run from the Nagios server using check_nrpe Nagios Server netmont01# timex ./check_nrpe -H prds01 -t 120 -c check_advantage Ok real 24.61 user 0.01 sys 0.00 The following was run on the remote server executing the same command without using nrpe Remote Server prds01# timex check_advantage real 0.97 user 0.83 sys 0.14 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 22:19:03 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 15:19:03 -0600 Subject: NRPE Check Slow Response Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Edwin Zoeller > Sent: Thursday, January 18, 2007 1:01 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE Check Slow Response > > I have a perl script that is reside on one of our Solaris Production > servers that is called from our Nagios server via the "check_nrpe" > command. I have been told that we are reporting failures that are not > really failures. Can anyone tell me if there is latency between Nagios-- > >remote server (nrpe)-->command and results back? I have included some It looks like you answered your own question. I wouldn't consider them normal though. Have you enabled debug mode for NRPE to see if you see anything interesting? Truss on both sides could yield interesting information as well. Are you running nrpe from inetd? If so, could you have some restriction or requirement in place that's delaying the connection? rDNS lookup, CPS, or something like that? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Jan 18 22:43:51 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 18 Jan 2007 16:43:51 -0500 Subject: System call sent warnings to stderr message Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B66@PHSXMB5.partners.org> Hi there - I am monitoring for the total amount of processes and also zombie processes on a remote system. The Nagios server and NRPE clients are both version 2.6. The plugins on the Nagios server are version 1.4.5, while those on the client are 1.4. The operating system on the server is Fedora Core 5, and that on the client is Fedora Core 3. I configured the nrpe.cfg file on the client to have the following lines for monitoring the two types of processes: command[check_zombie_procs]=/usr/local/nrpe/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nrpe/libexec/check_procs -w 150 -c 200 The Nagios server services.cfg file has the following entries for the above two lines: check_nrpe!check_zombie_procs ... check_nrpe!check_total_procs The error message that I am getting for both services is the following: System call sent warnings to stderr message What changes should I make to correct this? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 18 22:57:58 2007 From: marc at ena.com (Marc Powell) Date: Thu, 18 Jan 2007 15:57:58 -0600 Subject: System call sent warnings to stderr message Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Thursday, January 18, 2007 3:44 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] System call sent warnings to stderr message > > Hi there - > > [chop] > > The error message that I am getting for both services is the following: > > > > System call sent warnings to stderr message > > > > What changes should I make to correct this? Thanks. What's the error that you see when you run check_nrpe as the nagios user on your nagios machine? If you see only the error above there, what is the error that you see when you run check_procs as the nrpe user on your destination machine? One or the other is sending error messages to stderr that nagios doesn't capture. I would guess that there's a problem running check_procs on the destination host. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Thu Jan 18 23:28:20 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Thu, 18 Jan 2007 20:28:20 -0200 Subject: Monitoring question In-Reply-To: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> References: <22090745.8451168987900620.JavaMail.root@mars.blueslate.net> Message-ID: <1169159300.2815.1.camel@localhost> On Tue, 2007-01-16 at 17:51 -0500, Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot. Take a look at this article: http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-networks.html And mindless your network. HTH > > > > > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this > email or any action taken in reliance on this e-mail is strictly > prohibited and may be unlawful. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Fri Jan 19 02:27:07 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Thu, 18 Jan 2007 20:27:07 -0500 (EST) Subject: Monitoring question In-Reply-To: <1169159300.2815.1.camel@localhost> References: <1169159300.2815.1.camel@localhost> Message-ID: <12616457.9281169170027960.JavaMail.root@mars.blueslate.net> From: Marcel Mitsuto Fucatu Sugano > Take a look at this article: > http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-networks.html > And mindless your network. > HTH Excellent - thank you! This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 03:06:03 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 18 Jan 2007 18:06:03 -0800 Subject: Timeout In-Reply-To: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> References: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> Message-ID: <20070119020603.GD11333@pmorris.usa.hp.com> Check the docs, specifically the sections about service object configuration. You can also get the plugini's available command-line parameters with the -h switch. On Thu, 18 Jan 2007, Moayad Mohammad wrote: > Dears, > When I check on SMTP service using nagios, nagios gave me the following > error: > ==> CRITICAL - Socket timeout after 10 seconds > > I don't know from were can I change the timeout value, if I can, can I > change it just for SMTP service or just for whole services. > > > Thank you in advance. > Moayad > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at mitsein.net Fri Jan 19 05:18:53 2007 From: mark at mitsein.net (Mark) Date: Thu, 18 Jan 2007 21:18:53 -0700 Subject: consistent service logging across hosts Message-ID: <1dab01330701182018n1f6d4ebcn8998139ce90a5250@mail.gmail.com> I have a service that can fail over between hosts that each have their own IP (if they failed over IP's this would be easy). It is very hard to get availability numbers for this service because of this. Are there any solutions to this? Another catch is that the service happens to follow the failover of the master nagios server as well, so my logs end up in two places as well. -- Mark "Blessed is he who finds happiness in his own foolishness, for he will always be happy." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Fri Jan 19 09:45:30 2007 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Fri, 19 Jan 2007 00:45:30 -0800 Subject: nrpe help (problem resolved) Message-ID: Hi, Problem resolved. previoulsy i was using *checkcommands.cfg* : command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$ I changed this line to : $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ Thanks for your support Chandresh On 1/18/07, Michael Connors wrote: > > Try using check_nrpe_1arg instead of check_nrpe in the line: > > check_command check_nrpe!check_load > > Chandresh Suthar wrote: > > hosts.cfg > > > > define host{ > > use generic-host ; Name of host > > template to use > > > > host_name localhost > > alias Solaris Server > > address 127.0.0.1 > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > services.cfg > > > > define service{ > > use generic-service ; Name > > of service template to use > > > > host_name localhost > > service_description PING > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups nagios > > notification_interval 120 > > notification_period 24x7 > > notification_options c,r > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > define service{ > > use generic-service > > host_name localhost > > service_description NRPE - check_load > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 5 > > contact_groups nagios > > notification_options w,u,c,r > > notification_interval 960 > > notification_period 24x7 > > check_command check_nrpe!check_load > > } > > > > > > > > > > On 1/18/07, *Chandresh Suthar* > > wrote: > > > > as a nagios user: > > > > bash-2.05$ /usr/local/nagios/libexec/check_nrpe -H localhost -c > > check_load > > OK - load average: 0.02, 0.02, 0.07|load1=0.016;15.000;30.000;0; > > load5=0.016;10.000;25.000;0; load15=0.066;5.000;20.000;0; > > > > working fine. > > > > > > On 1/18/07, *Chandresh Suthar* > > wrote: > > > > I have one sun machine with Solaris 9. I have installed > > nagios and nrpe. Nrpe works perfect on command prompt. > > > > root at localhost # ./check_nrpe -H > > localhost -c check_load > > OK - load average: 0.08, 0.19, > > 0.20|load1=0.082;15.000;30.000;0; load5= > > 0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; > > > > but on gui it shows "No output returned from plugin" .Also it > > doesn't show any thing in logs. > > > > nrpe.cfg: > > > > command[check_load]=/usr/local/nagios/libexec/check_load -w > > 15,10,5 -c 30,25,20 > > > > services.cfg > > > > define service{ > > use generic-service > > host_name localhost > > service_description NRPE - check_load > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 5 > > contact_groups nagios > > notification_options w,u,c,r > > notification_interval 960 > > notification_period 24x7 > > check_command check_nrpe!check_load > > } > > > > I am not getting the problem.my nagios version is 1.3 and nrpe > 2.6 > > > > Thanks > > Chandresh > > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Fri Jan 19 10:45:39 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Fri, 19 Jan 2007 10:45:39 +0100 Subject: Completely stumped In-Reply-To: <45AFA49F.1030808@op5.se> References: <20070118151228.GA11125@eric.schwarzvogel.de> <45AFA49F.1030808@op5.se> Message-ID: <20070119094539.GA8130@eric.schwarzvogel.de> Hi! On Thu, 18 Jan 2007, Andreas Ericsson wrote: > > The *only* thing I've left to try is removing the multiuser patch > > we talked about at the end of last year. If that does it, at > > least I have an idea *where* in the code my problem lies. I'll > > try that route tonight. > > > > Which patch was this? I didn't find it in the december archives. It's the advanced permission patch as created by Altinity and Alex Burger. The thread has the subject "Advanced permissions". First mail is by me and has the message id 20061031095636.GA31688 at eric.schwarzvogel.de As far as I can tell, backdating from my own packages (2.6 with said patch) to dsitro packages (Gentoo, Nagios v2.5) fixed the problem. The new machine has run close to 12 hours without even remotely acting up. I've now updated to 2.6, still sans patch. I'll post in a few hours or sooner if I find out anything new. Also, I have a suspicion bout the reasons. Originally I didn't suspect the patch to be at fault: I only use it to regulate who can see what and who can use commands in the web interface. How that should affect the usual checks was beyond me. Added to that, we hadn't deplyed any production config with that feature in use - yet the production machine acted up. The other day I realized that the patch goes beyond what I was using: it also modifies notification behaviour. Looking back, I seem to recall that the degradation of check latency was coupled to the amount of notifications being sent. Unrelated to the Nagios troubles, we had some issues yesterday and Wednesday (with quite a few notifications being sent) and voila, the curves skyrocketed. My C-fu is weak, so I ask those more versed in it to take a look at the patch. I'll also hand it to our local C guru, but he's quite swamped in work, so that may take some time. Regards (and thanks!), Tobias PS: The patch I use is attached. -- Never touch a burning system. -------------- next part -------------- diff -ur nagios-2.5.org/base/notifications.c nagios-2.5/base/notifications.c --- nagios-2.5.org/base/notifications.c 2006-04-07 18:24:13.000000000 -0400 +++ nagios-2.5/base/notifications.c 2006-11-05 22:23:57.000000000 -0500 @@ -832,7 +832,7 @@ /* find all contacts for this service */ for(temp_contact=contact_list;temp_contact!=NULL;temp_contact=temp_contact->next){ - if(is_contact_for_service(svc,temp_contact)==TRUE) + if(is_contact_for_service_perm(svc,temp_contact,'n')==TRUE) add_notification(temp_contact); } } @@ -1572,7 +1572,7 @@ /* get all contacts for this host */ for(temp_contact=contact_list;temp_contact!=NULL;temp_contact=temp_contact->next){ - if(is_contact_for_host(hst,temp_contact)==TRUE) + if(is_contact_for_host_perm(hst,temp_contact,'n')==TRUE) add_notification(temp_contact); } } diff -ur nagios-2.5.org/cgi/cgiauth.c nagios-2.5/cgi/cgiauth.c --- nagios-2.5.org/cgi/cgiauth.c 2006-10-08 19:35:18.000000000 -0400 +++ nagios-2.5/cgi/cgiauth.c 2006-11-05 22:55:28.000000000 -0500 @@ -218,7 +218,7 @@ temp_contact=find_contact(authinfo->username); /* see if this user is a contact for the host */ - if(is_contact_for_host(hst,temp_contact)==TRUE) + if(is_contact_for_host_perm(hst,temp_contact,'r')==TRUE) return TRUE; /* see if this user is an escalated contact for the host */ @@ -295,14 +295,14 @@ return FALSE; /* if this user is authorized for this host, they are for all services on it as well... */ - if(is_authorized_for_host(temp_host,authinfo)==TRUE) - return TRUE; + /* if(is_authorized_for_host(temp_host,authinfo)==TRUE) + return TRUE;*/ /* find the contact */ temp_contact=find_contact(authinfo->username); /* see if this user is a contact for the service */ - if(is_contact_for_service(svc,temp_contact)==TRUE) + if(is_contact_for_service_perm(svc,temp_contact,'r')==TRUE) return TRUE; /* see if this user is an escalated contact for the service */ @@ -419,16 +419,16 @@ if(temp_contact && temp_contact->can_submit_commands==FALSE) return FALSE; - /* see if this user is a contact for the host */ - if(is_contact_for_host(temp_host,temp_contact)==TRUE) + /* see if this user is a contact for the host with permissions */ + if(is_contact_for_host_perm(temp_host,temp_contact,'x')==TRUE) return TRUE; /* see if this user is an escalated contact for the host */ if(is_escalated_contact_for_host(temp_host,temp_contact)==TRUE) return TRUE; - /* this user is a contact for the service, so they have permission... */ - if(is_contact_for_service(svc,temp_contact)==TRUE) + /* see if this user is a contact for the service with permissions */ + if(is_contact_for_service_perm(svc,temp_contact,'x')==TRUE) return TRUE; /* this user is an escalated contact for the service, so they have permission... */ @@ -469,8 +469,8 @@ if(temp_contact && temp_contact->can_submit_commands==FALSE) return FALSE; - /* this user is a contact for the host, so they have permission... */ - if(is_contact_for_host(hst,temp_contact)==TRUE) + /* see if this user is a contact for the host with permissions */ + if(is_contact_for_host_perm(hst,temp_contact,'x')==TRUE) return TRUE; /* this user is an escalated contact for the host, so they have permission... */ diff -ur nagios-2.5.org/common/objects.c nagios-2.5/common/objects.c --- nagios-2.5.org/common/objects.c 2006-10-08 19:35:18.000000000 -0400 +++ nagios-2.5/common/objects.c 2006-11-05 22:20:44.000000000 -0500 @@ -4926,6 +4926,8 @@ /* find a contact group from the list in memory */ contactgroup * find_contactgroup(char *name){ contactgroup *temp_contactgroup; + char *temp_contactgroup_name; + char *perms; #ifdef DEBUG0 printf("find_contactgroup() start\n"); @@ -4934,11 +4936,21 @@ if(name==NULL || contactgroup_hashlist==NULL) return NULL; - for(temp_contactgroup=contactgroup_hashlist[hashfunc1(name,CONTACTGROUP_HASHSLOTS)];temp_contactgroup && compare_hashdata1(temp_contactgroup->group_name,name)<0;temp_contactgroup=temp_contactgroup->nexthash); + /* Ignore permissions */ + temp_contactgroup_name = strdup(name); + perms = strchr(temp_contactgroup_name, ':'); + if (perms) + *perms = '\0'; - if(temp_contactgroup && (compare_hashdata1(temp_contactgroup->group_name,name)==0)) + for(temp_contactgroup=contactgroup_hashlist[hashfunc1(temp_contactgroup_name,CONTACTGROUP_HASHSLOTS)];temp_contactgroup && compare_hashdata1(temp_contactgroup->group_name,temp_contactgroup_name)<0;temp_contactgroup=temp_contactgroup->nexthash); + + if(temp_contactgroup && (compare_hashdata1(temp_contactgroup->group_name,temp_contactgroup_name)==0)) return temp_contactgroup; + if(temp_contactgroup_name) + free(temp_contactgroup_name); + + #ifdef DEBUG0 printf("find_contactgroup() end\n"); #endif @@ -5427,7 +5439,9 @@ int is_contact_for_host(host *hst, contact *cntct){ contactgroupsmember *temp_contactgroupsmember; contactgroup *temp_contactgroup; - + char *temp_contactgroup_name; + char *perms; + if(hst==NULL || cntct==NULL){ return FALSE; } @@ -5435,8 +5449,16 @@ /* search all contact groups of this host */ for(temp_contactgroupsmember=hst->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ + /* Ignore permissions */ + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); + perms = strchr(temp_contactgroup_name, ':'); + if (perms) + *perms = '\0'; + /* find the contact group */ - temp_contactgroup=find_contactgroup(temp_contactgroupsmember->group_name); + temp_contactgroup=find_contactgroup(temp_contactgroup_name); + if (temp_contactgroup_name) + free (temp_contactgroup_name); if(temp_contactgroup==NULL) continue; @@ -5447,6 +5469,47 @@ return FALSE; } +/* tests whether a contact is a contact for a particular host with write permissions */ +int is_contact_for_host_perm(host *hst, contact *cntct, char perm){ + contactgroupsmember *temp_contactgroupsmember; + contactgroup *temp_contactgroup; + char *temp_contactgroup_name; + char *perms; + + if(hst==NULL || cntct==NULL){ + return FALSE; + } + + /* search all contact groups of this host */ + for(temp_contactgroupsmember=hst->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ + + /* Check for permissions */ + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); + perms = strchr(temp_contactgroup_name, ':'); + if (perms) { + perms = strchr(perms, perm); + if (! (perms)) { /* permission not found so deny */ + if (temp_contactgroup_name) + free(temp_contactgroup_name); + continue; + } + } + + /* No permissions set so defaulting to full access, or user has permission */ + + /* find the contact group */ + temp_contactgroup=find_contactgroup(temp_contactgroup_name); + if (temp_contactgroup_name) + free(temp_contactgroup_name); + if(temp_contactgroup==NULL) + continue; + + if(is_contact_member_of_contactgroup(temp_contactgroup,cntct)==TRUE) + return TRUE; + } + + return FALSE; + } /* tests whether or not a contact is an escalated contact for a particular host */ @@ -5481,6 +5544,8 @@ int is_contact_for_service(service *svc, contact *cntct){ contactgroupsmember *temp_contactgroupsmember; contactgroup *temp_contactgroup; + char *temp_contactgroup_name; + char *perms; if(svc==NULL || cntct==NULL) return FALSE; @@ -5488,8 +5553,16 @@ /* search all contact groups of this service */ for(temp_contactgroupsmember=svc->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ + /* Ignore permissions */ + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); + perms = strchr(temp_contactgroup_name, ':'); + if (perms) + *perms = '\0'; + /* find the contact group */ - temp_contactgroup=find_contactgroup(temp_contactgroupsmember->group_name); + temp_contactgroup=find_contactgroup(temp_contactgroup_name); + if (temp_contactgroup_name) + free (temp_contactgroup_name); if(temp_contactgroup==NULL) continue; @@ -5500,6 +5573,47 @@ return FALSE; } +/* tests whether a contact is a contact for a particular service */ +int is_contact_for_service_perm(service *svc, contact *cntct, char perm){ + contactgroupsmember *temp_contactgroupsmember; + contactgroup *temp_contactgroup; + char *temp_contactgroup_name; + char *perms; + + if(svc==NULL || cntct==NULL) + return FALSE; + + /* search all contact groups of this service */ + for(temp_contactgroupsmember=svc->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ + + + /* Check for permissions */ + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); + perms = strchr(temp_contactgroup_name, ':'); + if (perms) { + perms = strchr(perms, perm); + if (! (perms)) { /* permission not found so deny */ + if (temp_contactgroup_name) + free(temp_contactgroup_name); + continue; + } + } + + /* No permissions set so defaulting to full access, or user has permission */ + + /* find the contact group */ + temp_contactgroup=find_contactgroup(temp_contactgroup_name); + if (temp_contactgroup_name) + free (temp_contactgroup_name); + if(temp_contactgroup==NULL) + continue; + + if(is_contact_member_of_contactgroup(temp_contactgroup,cntct)==TRUE) + return TRUE; + } + + return FALSE; + } /* tests whether or not a contact is an escalated contact for a particular service */ -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ivan.Garcia at leroymerlin.es Fri Jan 19 10:32:59 2007 From: Ivan.Garcia at leroymerlin.es (Ivan.Garcia at leroymerlin.es) Date: Fri, 19 Jan 2007 10:32:59 +0100 Subject: Sub-groups Nagios Message-ID: I'm configuring a Nagios into my Enterprise and I'd like to know if is possible to make a group into other group hosts for creating a tree with subgroups. Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 19 13:38:08 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 19 Jan 2007 12:38:08 +0000 Subject: PDC plugin In-Reply-To: References: Message-ID: <45B0BBB0.1060501@googlemail.com> Thanks for the suggestion Marc, that is a good idea! I only used dcdiag when setting up the domain to check things and then forgot all about it. The only problem is that is creates a lot of output, I'd have to create quite a plugin to test everything and then try and get something meaningful in 1 line... -h Hari Sekhon Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon >> Sent: Thursday, January 18, 2007 8:26 AM >> To: Nagios Users mailinglist >> Subject: Re: [Nagios-users] PDC plugin >> >> I would also be very interested if anyone knows how to do this. I am >> using 2003 Active Directory. I was thinking about just doing check_tcp >> again the ldap and kerberos ports but that is a pretty lame test since >> they are always bound. >> >> I think a more specific test like an ldap query and a kerberos request >> would be better. >> >> Anybody got anything more on this? >> > > Big caveat: I'm not a Windows kind-of-guy but... > > We use a program named dcdiag that actively checks the state of our > domain controllers and send its output to us via e-mail. It performs > many tests such as connectivity, replication, netlogons, advertising, > etc, etc etc... If I were trying to do this I'd install ActiveState perl > and create a simple plugin that called dcdiag and parsed its output > looking for failures. Run the plugin via NRPENT (or other) and you > should have interesting results. Now, I'm sure there's a better way to > parse the output than AS Perl that's native to Windows but I'm just not > familiar enough to know what it is. > > dcdiag from MS TechNet - > http://207.46.196.114/WindowsServer/en/library/f7396ad6-0baa-4e66-8d18-1 > 7f83c5e4e6c1033.mspx?mfr=true > > Try running it with 'dcdiag /s: /e' > > HTH, > > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 19 13:42:01 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 19 Jan 2007 12:42:01 +0000 Subject: Timeout In-Reply-To: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> References: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> Message-ID: <45B0BC99.3090509@googlemail.com> most plugins have a -t switch to specify timeout. They also have --help which can answer these questions faster for you. Do check_smtp--help -h Hari Sekhon Moayad Mohammad wrote: > Dears, > When I check on SMTP service using nagios, nagios gave me the following > error: > ==> CRITICAL - Socket timeout after 10 seconds > > I don't know from were can I change the timeout value, if I can, can I > change it just for SMTP service or just for whole services. > > > Thank you in advance. > Moayad > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 19 13:42:49 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 19 Jan 2007 12:42:49 +0000 Subject: Timeout In-Reply-To: <45B0BC99.3090509@googlemail.com> References: <591D8758FF6E69408854F8B2D5887B3F35BC02@BATEXCH.batelcojordan.jo> <45B0BC99.3090509@googlemail.com> Message-ID: <45B0BCC9.5010406@googlemail.com> err, typo, there should have been a space between the check_smtp and the --help check_smtp --help -h Hari Sekhon Hari Sekhon wrote: > most plugins have a -t switch to specify timeout. They also have > --help which can answer these questions faster for you. Do > > check_smtp--help > > -h > > Hari Sekhon > > > > Moayad Mohammad wrote: >> Dears, When I check on SMTP service using nagios, nagios gave me the >> following >> error: >> ==> CRITICAL - Socket timeout after 10 seconds >> >> I don't know from were can I change the timeout value, if I can, can I >> change it just for SMTP service or just for whole services. >> >> >> Thank you in advance. >> Moayad >> >> ------------------------------------------------------------------------- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 14:26:26 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 19 Jan 2007 08:26:26 -0500 Subject: System call sent warnings to stderr message In-Reply-To: References: Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B67@PHSXMB5.partners.org> Hi there -- When I manually run check_nrpe -H -n -c check_total_procs on the Nagios server, I get the System call sent warnings to stderr message. This is also true when I ran the above command with check_zombie_procs. I then went to the client system, and ran the check_procs command as the nagios user with the following syntax for checking zombie processes: ./check_procs -w 5 -c 10 -s Z The response I got was the following: System call sent warnings to stderr I ran the check_procs command again as the nagios users to check the total amount of processes: ./check_procs -w 150 -c 200 The response this time was the following: System call sent warnings to stderr PROCS WARNING: 77 processes -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, January 18, 2007 4:58 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] System call sent warnings to stderr message > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Thursday, January 18, 2007 3:44 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] System call sent warnings to stderr message > > Hi there - > > [chop] > > The error message that I am getting for both services is the following: > > > > System call sent warnings to stderr message > > > > What changes should I make to correct this? Thanks. What's the error that you see when you run check_nrpe as the nagios user on your nagios machine? If you see only the error above there, what is the error that you see when you run check_procs as the nrpe user on your destination machine? One or the other is sending error messages to stderr that nagios doesn't capture. I would guess that there's a problem running check_procs on the destination host. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 19 14:31:43 2007 From: werner.flamme at ufz.de (Werner Flamme) Date: Fri, 19 Jan 2007 14:31:43 +0100 Subject: nrpe help In-Reply-To: References: Message-ID: <45B0C83F.3030205@ufz.de> Chandresh Suthar schrieb am 18.01.2007 17:27: > services.cfg > > define service{ > use generic-service ; > > host_name localhost > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nagios > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_ping!100.0,20%!500.0,60% > } > > define service{ > use generic-service > host_name localhost > service_description NRPE - check_load > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 5 > contact_groups nagios > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command check_nrpe!check_load > } Well, in each of my service definitions I have a line like name nrpe_check_load so that the service is identified . Maybe that name of the service is needed by the gui? Werner -- Werner Flamme, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: werner.flamme at ufz.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 19 14:42:05 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 19 Jan 2007 15:42:05 +0200 Subject: Executing Of Event Handlers Message-ID: Hi all. I have created a event handler as a test to see how it works. The hard part I have done. I created a ssh key on on the nagios server. I tested that I am able to connect via ssh over to the other server working 100% fine. I then next tested my ssh connection using my ssh key to execute the sudo apache2 restart on the other server all worked 100%. So in thury all is working nicely from command line. The command line command I am using is. /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo /etc/init.d/apache2 restart So what I did was I then added a extra line in my host define service{ use local-service host_name imap-1.rba.ispafrica.net service_description HTTP event_handler restart-httpd check_command check_http } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Fri Jan 19 14:42:11 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Fri, 19 Jan 2007 14:42:11 +0100 Subject: Completely stumped In-Reply-To: <20070119094539.GA8130@eric.schwarzvogel.de> References: <20070118151228.GA11125@eric.schwarzvogel.de> <45AFA49F.1030808@op5.se> <20070119094539.GA8130@eric.schwarzvogel.de> Message-ID: <20070119134211.GC27930@eric.schwarzvogel.de> Hi! On Fri, 19 Jan 2007, Tobias Klausmann wrote: > As far as I can tell, backdating from my own packages (2.6 with > said patch) to dsitro packages (Gentoo, Nagios v2.5) fixed the > problem. The new machine has run close to 12 hours without even > remotely acting up. I've now updated to 2.6, still sans patch. > I'll post in a few hours or sooner if I find out anything new. So far, a vanilla 2.6 works just as advertised. This is prrof enough (to me at least) that the advanced permissions patch is buggy. Somewhere in there, a data structure is not freed correctly, I suspect. Could those who initially created the patch take a look? I'd be most grateful for that (since I really like it's "advertised" functionality). Regards, Tobias ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 19 14:45:34 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 19 Jan 2007 15:45:34 +0200 Subject: Event Handlers Message-ID: Hi all. I have created a event handler as a test to see how it works. The hard part I have done. I created a ssh key on on the nagios server. I tested that I am able to connect via ssh over to the other server working 100% fine. I then next tested my ssh connection using my ssh key to execute the sudo apache2 restart on the other server all worked 100%. So in thury all is working nicely from command line. The command line command I am using is. /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo /etc/init.d/apache2 restart So what I did was I then added a extra line in my host define service{ use local-service host_name imap-1.rba.ispafrica.net service_description HTTP event_handler restart-httpd check_command check_http } And the command define command{ command_name restart-httpd command_line /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo /etc/init.d/apache2 res tart } So now nagios still does not want to execute my command Any advice would be appriciated. Thanks ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From taieb.riahi at topnet.tn Fri Jan 19 14:53:22 2007 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Fri, 19 Jan 2007 14:53:22 +0100 Subject: check host alive Message-ID: <45B0CD52.2060302@topnet.tn> HI , I'd like to know the difference between : "Time to live exceeded" and "Plugin timed out after 10 seconds" in the check_host_alive command Thx -- Riahi Taieb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 19 14:56:26 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 19 Jan 2007 13:56:26 +0000 Subject: Event Handlers In-Reply-To: References: Message-ID: <45B0CE0A.7040600@mailnetwork.co.uk> Are event handlers enabled for this service? Do they show up as executed in the log file when your HTTP service goes down? edalB wrote: > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > I created a ssh key on on the nagios server. I tested that I am able > to connect via ssh over to the other server working 100% fine. > > I then next tested my ssh connection using my ssh key to execute the > sudo apache2 restart on the other server all worked 100%. > > So in thury all is working nicely from command line. > > The command line command I am using is. > > /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo > /etc/init.d/apache2 restart > > So what I did was I then added a extra line in my host > > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler restart-httpd > check_command check_http > } > > And the command > > > define command{ > command_name restart-httpd > command_line /usr/bin/ssh -p 222 -i > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > /etc/init.d/apache2 res > tart > } > > So now nagios still does not want to execute my command > > Any advice would be appriciated. > > Thanks > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45b0cbd1137101304915882! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 19 15:05:02 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 19 Jan 2007 16:05:02 +0200 Subject: Event Handlers In-Reply-To: <43F744E0C1D7334E8AC73B02B5697F757AAF70@mail.paynet.co.ke> References: <43F744E0C1D7334E8AC73B02B5697F757AAF70@mail.paynet.co.ke> Message-ID: I have it sent in my nagios.cfg as enable_event_handlers=1 regards On 1/19/07, Steve Barnes wrote: > event_handler_enabled = 1 > > In the service definition? > > Steve > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of edalB > Sent: 19 January 2007 16:46 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > I created a ssh key on on the nagios server. I tested that I am able to > connect via ssh over to the other server working 100% fine. > > I then next tested my ssh connection using my ssh key to execute the > sudo apache2 restart on the other server all worked 100%. > > So in thury all is working nicely from command line. > > The command line command I am using is. > > /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo > /etc/init.d/apache2 restart > > So what I did was I then added a extra line in my host > > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler restart-httpd > check_command check_http > } > > And the command > > > define command{ > command_name restart-httpd > command_line /usr/bin/ssh -p 222 -i > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > /etc/init.d/apache2 res > tart > } > > So now nagios still does not want to execute my command > > Any advice would be appriciated. > > Thanks > > ------------------------------------------------------------------------ > - > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 19 15:06:36 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 19 Jan 2007 14:06:36 +0000 Subject: check host alive In-Reply-To: <45B0CD52.2060302@topnet.tn> References: <45B0CD52.2060302@topnet.tn> Message-ID: <45B0D06C.4080808@mailnetwork.co.uk> "Time to live exceeded" is an error response from a router/intermediate host during a Ping/traceroute - I think it usually means that a packet has exceeded its "max hops" count, so if you're getting this error, chances are it's encountered a loop somewhere as I'm sure the default TTL is 128 hops (I could be wrong though.) "Plugin timed out after 10 seconds" means the plugin didn't get a response back from any router within 10 seconds. Andy. Riahi Taieb wrote: > HI , > > I'd like to know the difference between : "Time to live exceeded" and > "Plugin timed out after 10 seconds" in the check_host_alive command > > Thx > > -- > Riahi Taieb > > !DSPAM:37,45b0cf3b137101178362045! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45b0cf3b137101178362045! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45b0cf3b137101178362045! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 19 15:10:16 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 19 Jan 2007 14:10:16 +0000 Subject: Event Handlers In-Reply-To: References: <45B0CE0A.7040600@mailnetwork.co.uk> Message-ID: <45B0D148.1010907@mailnetwork.co.uk> Please please please don't forgot to copy your responses to the list! Yep Nagios is executing your service handler (or at least trying to.) Try executing your command from an SSH console as the Nagios user. Andy. edalB wrote: > This is what I see in the log file > > Jan 19 15:21:18 nagios-0 nagios: SERVICE ALERT: > imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;Connection refused > Jan 19 15:21:18 nagios-0 nagios: SERVICE EVENT HANDLER: > imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;restart-httpd > > And I do have it enabled in my nagios.cfg config file > > Regards > > On 1/19/07, Andy Shellam (Mailing Lists) > wrote: >> Are event handlers enabled for this service? >> Do they show up as executed in the log file when your HTTP service goes >> down? >> >> >> edalB wrote: >> > Hi all. >> > >> > I have created a event handler as a test to see how it works. The hard >> > part I have done. >> > >> > I created a ssh key on on the nagios server. I tested that I am able >> > to connect via ssh over to the other server working 100% fine. >> > >> > I then next tested my ssh connection using my ssh key to execute the >> > sudo apache2 restart on the other server all worked 100%. >> > >> > So in thury all is working nicely from command line. >> > >> > The command line command I am using is. >> > >> > /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo >> > /etc/init.d/apache2 restart >> > >> > So what I did was I then added a extra line in my host >> > >> > define service{ >> > use local-service >> > >> > host_name imap-1.rba.ispafrica.net >> > service_description HTTP >> > event_handler restart-httpd >> > check_command check_http >> > } >> > >> > And the command >> > >> > >> > define command{ >> > command_name restart-httpd >> > command_line /usr/bin/ssh -p 222 -i >> > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo >> > /etc/init.d/apache2 res >> > tart >> > } >> > >> > So now nagios still does not want to execute my command >> > >> > Any advice would be appriciated. >> > >> > Thanks >> > >> > >> ------------------------------------------------------------------------- >> >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> > ::: Messages without supporting info will risk being sent to /dev/null >> > >> > > >> > >> > >> >> >> -- >> Andy Shellam >> NetServe Support Team >> >> the Mail Network >> "an alternative in a standardised world" >> >> p: +44 (0) 121 288 0832/0839 >> m: +44 (0) 7818 000834 >> >> > > !DSPAM:37,45b0d09e137101451594761! > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Fri Jan 19 15:13:35 2007 From: edalb1979 at gmail.com (edalB) Date: Fri, 19 Jan 2007 16:13:35 +0200 Subject: Event Handlers In-Reply-To: <45B0D148.1010907@mailnetwork.co.uk> References: <45B0CE0A.7040600@mailnetwork.co.uk> <45B0D148.1010907@mailnetwork.co.uk> Message-ID: I have done that and it does work. nagios-0 libexec # su nagios nagios at nagios-0 /usr/local/nagios/libexec $ /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo /etc/init.d/apache2 restart * Service apache2 stopping apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName * Service apache2 stopped * Service apache2 starting apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName * Service apache2 started nagios at nagios-0 /usr/local/nagios/libexec $ On 1/19/07, Andy Shellam (Mailing Lists) wrote: > Please please please don't forgot to copy your responses to the list! > > Yep Nagios is executing your service handler (or at least trying to.) > Try executing your command from an SSH console as the Nagios user. > > Andy. > > > edalB wrote: > > This is what I see in the log file > > > > Jan 19 15:21:18 nagios-0 nagios: SERVICE ALERT: > > imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;Connection refused > > Jan 19 15:21:18 nagios-0 nagios: SERVICE EVENT HANDLER: > > imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;restart-httpd > > > > And I do have it enabled in my nagios.cfg config file > > > > Regards > > > > On 1/19/07, Andy Shellam (Mailing Lists) > > wrote: > >> Are event handlers enabled for this service? > >> Do they show up as executed in the log file when your HTTP service goes > >> down? > >> > >> > >> edalB wrote: > >> > Hi all. > >> > > >> > I have created a event handler as a test to see how it works. The hard > >> > part I have done. > >> > > >> > I created a ssh key on on the nagios server. I tested that I am able > >> > to connect via ssh over to the other server working 100% fine. > >> > > >> > I then next tested my ssh connection using my ssh key to execute the > >> > sudo apache2 restart on the other server all worked 100%. > >> > > >> > So in thury all is working nicely from command line. > >> > > >> > The command line command I am using is. > >> > > >> > /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa user at server sudo > >> > /etc/init.d/apache2 restart > >> > > >> > So what I did was I then added a extra line in my host > >> > > >> > define service{ > >> > use local-service > >> > > >> > host_name imap-1.rba.ispafrica.net > >> > service_description HTTP > >> > event_handler restart-httpd > >> > check_command check_http > >> > } > >> > > >> > And the command > >> > > >> > > >> > define command{ > >> > command_name restart-httpd > >> > command_line /usr/bin/ssh -p 222 -i > >> > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > >> > /etc/init.d/apache2 res > >> > tart > >> > } > >> > > >> > So now nagios still does not want to execute my command > >> > > >> > Any advice would be appriciated. > >> > > >> > Thanks > >> > > >> > > >> ------------------------------------------------------------------------- > >> > >> > Take Surveys. Earn Cash. Influence the Future of IT > >> > Join SourceForge.net's Techsay panel and you'll get the chance to > >> share your > >> > opinions on IT & business topics through brief surveys - and earn cash > >> > > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> > >> > _______________________________________________ > >> > Nagios-users mailing list > >> > Nagios-users at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> > ::: Messages without supporting info will risk being sent to /dev/null > >> > > >> > > > >> > > >> > > >> > >> > >> -- > >> Andy Shellam > >> NetServe Support Team > >> > >> the Mail Network > >> "an alternative in a standardised world" > >> > >> p: +44 (0) 121 288 0832/0839 > >> m: +44 (0) 7818 000834 > >> > >> > > > > !DSPAM:37,45b0d09e137101451594761! > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Jan 19 15:17:24 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Jan 2007 15:17:24 +0100 Subject: Completely stumped In-Reply-To: <20070119094539.GA8130@eric.schwarzvogel.de> References: <20070118151228.GA11125@eric.schwarzvogel.de> <45AFA49F.1030808@op5.se> <20070119094539.GA8130@eric.schwarzvogel.de> Message-ID: <45B0D2F4.9020707@op5.se> Tobias Klausmann wrote: > Hi! > > On Thu, 18 Jan 2007, Andreas Ericsson wrote: >>> The *only* thing I've left to try is removing the multiuser patch >>> we talked about at the end of last year. If that does it, at >>> least I have an idea *where* in the code my problem lies. I'll >>> try that route tonight. >>> >> Which patch was this? I didn't find it in the december archives. > > It's the advanced permission patch as created by Altinity and > Alex Burger. The thread has the subject "Advanced permissions". > First mail is by me and has the message id > 20061031095636.GA31688 at eric.schwarzvogel.de > > As far as I can tell, backdating from my own packages (2.6 with > said patch) to dsitro packages (Gentoo, Nagios v2.5) fixed the > problem. The new machine has run close to 12 hours without even > remotely acting up. I've now updated to 2.6, still sans patch. > I'll post in a few hours or sooner if I find out anything new. > > Also, I have a suspicion bout the reasons. > > Originally I didn't suspect the patch to be at fault: I only use > it to regulate who can see what and who can use commands in the > web interface. How that should affect the usual checks was beyond > me. Added to that, we hadn't deplyed any production config with > that feature in use - yet the production machine acted up. > > The other day I realized that the patch goes beyond what I was > using: it also modifies notification behaviour. Looking back, I > seem to recall that the degradation of check latency was coupled > to the amount of notifications being sent. Unrelated to the > Nagios troubles, we had some issues yesterday and Wednesday (with > quite a few notifications being sent) and voila, the curves > skyrocketed. > Was this by any chance coupled with a big fat spike of memory usage on the Nagios server? I assume you do monitor memory usage, right? > My C-fu is weak, so I ask those more versed in it to take a look > at the patch. I'll also hand it to our local C guru, but he's > quite swamped in work, so that may take some time. > Comments inline. > > diff -ur nagios-2.5.org/base/notifications.c nagios-2.5/base/notifications.c > --- nagios-2.5.org/base/notifications.c 2006-04-07 18:24:13.000000000 -0400 > +++ nagios-2.5/base/notifications.c 2006-11-05 22:23:57.000000000 -0500 > @@ -832,7 +832,7 @@ > /* find all contacts for this service */ > for(temp_contact=contact_list;temp_contact!=NULL;temp_contact=temp_contact->next){ > > - if(is_contact_for_service(svc,temp_contact)==TRUE) > + if(is_contact_for_service_perm(svc,temp_contact,'n')==TRUE) > add_notification(temp_contact); > } > } > @@ -1572,7 +1572,7 @@ > /* get all contacts for this host */ > for(temp_contact=contact_list;temp_contact!=NULL;temp_contact=temp_contact->next){ > > - if(is_contact_for_host(hst,temp_contact)==TRUE) > + if(is_contact_for_host_perm(hst,temp_contact,'n')==TRUE) > add_notification(temp_contact); > } > } > diff -ur nagios-2.5.org/cgi/cgiauth.c nagios-2.5/cgi/cgiauth.c > --- nagios-2.5.org/cgi/cgiauth.c 2006-10-08 19:35:18.000000000 -0400 > +++ nagios-2.5/cgi/cgiauth.c 2006-11-05 22:55:28.000000000 -0500 > @@ -218,7 +218,7 @@ > temp_contact=find_contact(authinfo->username); > > /* see if this user is a contact for the host */ > - if(is_contact_for_host(hst,temp_contact)==TRUE) > + if(is_contact_for_host_perm(hst,temp_contact,'r')==TRUE) > return TRUE; > > /* see if this user is an escalated contact for the host */ > @@ -295,14 +295,14 @@ > return FALSE; > > /* if this user is authorized for this host, they are for all services on it as well... */ > - if(is_authorized_for_host(temp_host,authinfo)==TRUE) > - return TRUE; > + /* if(is_authorized_for_host(temp_host,authinfo)==TRUE) > + return TRUE;*/ > > /* find the contact */ > temp_contact=find_contact(authinfo->username); > > /* see if this user is a contact for the service */ > - if(is_contact_for_service(svc,temp_contact)==TRUE) > + if(is_contact_for_service_perm(svc,temp_contact,'r')==TRUE) > return TRUE; > > /* see if this user is an escalated contact for the service */ > @@ -419,16 +419,16 @@ > if(temp_contact && temp_contact->can_submit_commands==FALSE) > return FALSE; > > - /* see if this user is a contact for the host */ > - if(is_contact_for_host(temp_host,temp_contact)==TRUE) > + /* see if this user is a contact for the host with permissions */ > + if(is_contact_for_host_perm(temp_host,temp_contact,'x')==TRUE) > return TRUE; > > /* see if this user is an escalated contact for the host */ > if(is_escalated_contact_for_host(temp_host,temp_contact)==TRUE) > return TRUE; > > - /* this user is a contact for the service, so they have permission... */ > - if(is_contact_for_service(svc,temp_contact)==TRUE) > + /* see if this user is a contact for the service with permissions */ > + if(is_contact_for_service_perm(svc,temp_contact,'x')==TRUE) > return TRUE; > > /* this user is an escalated contact for the service, so they have permission... */ > @@ -469,8 +469,8 @@ > if(temp_contact && temp_contact->can_submit_commands==FALSE) > return FALSE; > > - /* this user is a contact for the host, so they have permission... */ > - if(is_contact_for_host(hst,temp_contact)==TRUE) > + /* see if this user is a contact for the host with permissions */ > + if(is_contact_for_host_perm(hst,temp_contact,'x')==TRUE) > return TRUE; > > /* this user is an escalated contact for the host, so they have permission... */ > diff -ur nagios-2.5.org/common/objects.c nagios-2.5/common/objects.c > --- nagios-2.5.org/common/objects.c 2006-10-08 19:35:18.000000000 -0400 > +++ nagios-2.5/common/objects.c 2006-11-05 22:20:44.000000000 -0500 > @@ -4926,6 +4926,8 @@ > /* find a contact group from the list in memory */ > contactgroup * find_contactgroup(char *name){ > contactgroup *temp_contactgroup; > + char *temp_contactgroup_name; > + char *perms; > > #ifdef DEBUG0 > printf("find_contactgroup() start\n"); > @@ -4934,11 +4936,21 @@ > if(name==NULL || contactgroup_hashlist==NULL) > return NULL; > > - for(temp_contactgroup=contactgroup_hashlist[hashfunc1(name,CONTACTGROUP_HASHSLOTS)];temp_contactgroup && compare_hashdata1(temp_contactgroup->group_name,name)<0;temp_contactgroup=temp_contactgroup->nexthash); > + /* Ignore permissions */ > + temp_contactgroup_name = strdup(name); > + perms = strchr(temp_contactgroup_name, ':'); > + if (perms) > + *perms = '\0'; > > - if(temp_contactgroup && (compare_hashdata1(temp_contactgroup->group_name,name)==0)) > + for(temp_contactgroup=contactgroup_hashlist[hashfunc1(temp_contactgroup_name,CONTACTGROUP_HASHSLOTS)];temp_contactgroup && compare_hashdata1(temp_contactgroup->group_name,temp_contactgroup_name)<0;temp_contactgroup=temp_contactgroup->nexthash); > + > + if(temp_contactgroup && (compare_hashdata1(temp_contactgroup->group_name,temp_contactgroup_name)==0)) > return temp_contactgroup; > This leaks sizeof(contactgroup) * persons_to_contact per notification. There needs to be a if (temp_contactgroup_name) free(temp_contactgroup_name) above that return (alhough the if()'s not strictly necessary as it's always true). Alternatively, one could have if (perm && !*perm) *perm = ':'; and not bother with copying the string in the first place. It's not a const, so modifying the struct directly is OK. > + if(temp_contactgroup_name) > + free(temp_contactgroup_name); > + Again, doesn't need if(). temp_contactgroup_name is set unconditionally. > + > #ifdef DEBUG0 > printf("find_contactgroup() end\n"); > #endif > @@ -5427,7 +5439,9 @@ > int is_contact_for_host(host *hst, contact *cntct){ > contactgroupsmember *temp_contactgroupsmember; > contactgroup *temp_contactgroup; > - > + char *temp_contactgroup_name; > + char *perms; > + > if(hst==NULL || cntct==NULL){ > return FALSE; > } > @@ -5435,8 +5449,16 @@ > /* search all contact groups of this host */ > for(temp_contactgroupsmember=hst->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ > > + /* Ignore permissions */ > + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); > + perms = strchr(temp_contactgroup_name, ':'); > + if (perms) > + *perms = '\0'; > + > /* find the contact group */ > - temp_contactgroup=find_contactgroup(temp_contactgroupsmember->group_name); > + temp_contactgroup=find_contactgroup(temp_contactgroup_name); > + if (temp_contactgroup_name) > + free (temp_contactgroup_name); > if(temp_contactgroup==NULL) > continue; Again, needs no if(). > > @@ -5447,6 +5469,47 @@ > return FALSE; > } > > +/* tests whether a contact is a contact for a particular host with write permissions */ > +int is_contact_for_host_perm(host *hst, contact *cntct, char perm){ > + contactgroupsmember *temp_contactgroupsmember; > + contactgroup *temp_contactgroup; > + char *temp_contactgroup_name; > + char *perms; > + > + if(hst==NULL || cntct==NULL){ > + return FALSE; > + } > + > + /* search all contact groups of this host */ > + for(temp_contactgroupsmember=hst->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ > + > + /* Check for permissions */ > + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); This strdup() is unnecessary. A simple assignment would be enough, as the variable is never modified. > + perms = strchr(temp_contactgroup_name, ':'); > + if (perms) { > + perms = strchr(perms, perm); > + if (! (perms)) { /* permission not found so deny */ > + if (temp_contactgroup_name) > + free(temp_contactgroup_name); > + continue; > + } > + } > + > + /* No permissions set so defaulting to full access, or user has permission */ > + > + /* find the contact group */ > + temp_contactgroup=find_contactgroup(temp_contactgroup_name); This is buggy. temp_contactgroup will always be empty if perms is set. If it's the other way around, it'll never match extended permissions anyway, so it might as well return early. > + if (temp_contactgroup_name) > + free(temp_contactgroup_name); > + if(temp_contactgroup==NULL) > + continue; > + > + if(is_contact_member_of_contactgroup(temp_contactgroup,cntct)==TRUE) > + return TRUE; > + } > + > + return FALSE; > + } > > > /* tests whether or not a contact is an escalated contact for a particular host */ > @@ -5481,6 +5544,8 @@ > int is_contact_for_service(service *svc, contact *cntct){ > contactgroupsmember *temp_contactgroupsmember; > contactgroup *temp_contactgroup; > + char *temp_contactgroup_name; > + char *perms; > > if(svc==NULL || cntct==NULL) > return FALSE; > @@ -5488,8 +5553,16 @@ > /* search all contact groups of this service */ > for(temp_contactgroupsmember=svc->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ > > + /* Ignore permissions */ > + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); > + perms = strchr(temp_contactgroup_name, ':'); > + if (perms) > + *perms = '\0'; > + > /* find the contact group */ > - temp_contactgroup=find_contactgroup(temp_contactgroupsmember->group_name); > + temp_contactgroup=find_contactgroup(temp_contactgroup_name); > + if (temp_contactgroup_name) > + free (temp_contactgroup_name); > if(temp_contactgroup==NULL) > continue; > > @@ -5500,6 +5573,47 @@ > return FALSE; > } > > +/* tests whether a contact is a contact for a particular service */ > +int is_contact_for_service_perm(service *svc, contact *cntct, char perm){ > + contactgroupsmember *temp_contactgroupsmember; > + contactgroup *temp_contactgroup; > + char *temp_contactgroup_name; > + char *perms; > + > + if(svc==NULL || cntct==NULL) > + return FALSE; > + > + /* search all contact groups of this service */ > + for(temp_contactgroupsmember=svc->contact_groups;temp_contactgroupsmember!=NULL;temp_contactgroupsmember=temp_contactgroupsmember->next){ > + > + > + /* Check for permissions */ > + temp_contactgroup_name = strdup(temp_contactgroupsmember->group_name); > + perms = strchr(temp_contactgroup_name, ':'); > + if (perms) { > + perms = strchr(perms, perm); > + if (! (perms)) { /* permission not found so deny */ > + if (temp_contactgroup_name) > + free(temp_contactgroup_name); > + continue; > + } > + } > + > + /* No permissions set so defaulting to full access, or user has permission */ > + > + /* find the contact group */ > + temp_contactgroup=find_contactgroup(temp_contactgroup_name); > + if (temp_contactgroup_name) > + free (temp_contactgroup_name); > + if(temp_contactgroup==NULL) > + continue; > + > + if(is_contact_member_of_contactgroup(temp_contactgroup,cntct)==TRUE) > + return TRUE; > + } > + > + return FALSE; > + } > > > /* tests whether or not a contact is an escalated contact for a particular service */ > > All in all, I'd advice against using this patch, or at least try without it first thing you do in case you run into problems. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Jan 19 15:27:35 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Jan 2007 15:27:35 +0100 Subject: check host alive In-Reply-To: <45B0D06C.4080808@mailnetwork.co.uk> References: <45B0CD52.2060302@topnet.tn> <45B0D06C.4080808@mailnetwork.co.uk> Message-ID: <45B0D557.5090003@op5.se> Andy Shellam (Mailing Lists) wrote: > "Time to live exceeded" is an error response from a router/intermediate > host during a Ping/traceroute - I think it usually means that a packet > has exceeded its "max hops" count, so if you're getting this error, > chances are it's encountered a loop somewhere as I'm sure the default > TTL is 128 hops (I could be wrong though.) > Most systems have 64 as default TTL, otherwise you're right. There are two "variants" of "Time to live exceeded". One is where the there are more hops to the target than the TTL set in the packet. This is known as "Time to live exceeded in transit". The other is if you're sending packets larger than the networks MTU and one part of the packet gets lost on the way. In this case you get a "Packet reassembly time exceeded". Both usually show up as "Time to live exceeded" by most system pings, as that's the "icmp type" (while the "icmp code", a different field in the icmp packet header, shows the variant). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 19 15:40:52 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 19 Jan 2007 14:40:52 +0000 Subject: check host alive In-Reply-To: <45B0D557.5090003@op5.se> References: <45B0CD52.2060302@topnet.tn> <45B0D06C.4080808@mailnetwork.co.uk> <45B0D557.5090003@op5.se> Message-ID: <45B0D874.7000209@mailnetwork.co.uk> > Most systems have 64 as default TTL, otherwise you're right. There are two > "variants" of "Time to live exceeded". One is where the there are more hops > to the target than the TTL set in the packet. This is known as "Time to live > exceeded in transit". > Hmmm something rang a bell when you've said 64, however I've just got a completely different answer to both of our theories! On Windows, the TTL is set to 127, on my FreeBSD 6.1 box it's set to 246, and on Fedora 5 it's 243. The TTL displayed in the ping output, is this the same TTL as what we're both referring to? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Jan 19 16:04:12 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Jan 2007 16:04:12 +0100 Subject: check host alive In-Reply-To: <45B0D874.7000209@mailnetwork.co.uk> References: <45B0CD52.2060302@topnet.tn> <45B0D06C.4080808@mailnetwork.co.uk> <45B0D557.5090003@op5.se> <45B0D874.7000209@mailnetwork.co.uk> Message-ID: <45B0DDEC.1040907@op5.se> Andy Shellam (Mailing Lists) wrote: > >> Most systems have 64 as default TTL, otherwise you're right. There are >> two >> "variants" of "Time to live exceeded". One is where the there are more >> hops >> to the target than the TTL set in the packet. This is known as "Time >> to live >> exceeded in transit". >> > > Hmmm something rang a bell when you've said 64, however I've just got a > completely different answer to both of our theories! > On Windows, the TTL is set to 127, on my FreeBSD 6.1 box it's set to > 246, and on Fedora 5 it's 243. > > The TTL displayed in the ping output, is this the same TTL as what we're > both referring to? > No, that's the TTL in the response packet, which will be "defult TTL of host sending ICMP_ECHOREPLY" minus "hops between pinged host and self". The TTL on the outgoing packets are, by default, 64 on *BSD and Linux, 128 on Windows and HP switches/routers, 255 on Cisco and 3Com stuff... 64 is usually as high a TTL as one can stomach for most practical reasons (I reach Australia with 36 hops from Sweden). On Linux, the default TTL can be accessed through /proc/sys/net/ipv4/ip_default_ttl -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 16:16:35 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 09:16:35 -0600 Subject: PDC plugin {Disarmed} {Fraud?} Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Friday, January 19, 2007 6:38 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] PDC plugin {Disarmed} {Fraud?} > > Thanks for the suggestion Marc, that is a good idea! I only used dcdiag > when setting up the domain to check things and then forgot all about it. > > The only problem is that is creates a lot of output, I'd have to create > quite a plugin to test everything and then try and get something > meaningful in 1 line... It's not that significant. In your case, running dcdiag as I suggested tests everything in one go and returns a result that looks like -- Starting test: Replications ......................... MISDC02 passed test Replications Starting test: NCSecDesc ......................... MISDC02 passed test NCSecDesc Starting test: NetLogons ......................... MISDC02 passed test NetLogons Starting test: Advertising ......................... MISDC02 passed test Advertising While I have never seen a failure, I would expect that they might look something like -- Starting test: Replications ......................... MISDC02 failed test Replications Starting test: NCSecDesc ......................... MISDC02 passed test NCSecDesc Starting test: NetLogons ......................... MISDC02 failed test NetLogons Starting test: Advertising ......................... MISDC02 passed test Advertising With perl it'd be an easy task to pick off the lines that 'failed', grab the last word, concatenate it to an output variable then exit with something like -- CRITICAL: failed Replications, NetLogons -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.frasa at nl.tiscali.com Fri Jan 19 16:20:02 2007 From: m.frasa at nl.tiscali.com (Mark Frasa) Date: Fri, 19 Jan 2007 16:20:02 +0100 Subject: Nagios defunct processes Message-ID: <20070119152002.GD22734@nl.tiscali.com> Hello, We have nagios running for our network elements. The amount of elements we are monotoring is 453 and the number of services is 588 The problem we are experiencing is that (mostly) after a restart of nagios we are getting defunct processes like: nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] Some notes about the hardware: Dell PowerEdge Dual Intel(R) Xeon(TM) CPU 2.40GHz 1GB Memory Nagios version: # nagios -V Nagios 2.5 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 07-13-2006 Operating System: Red Hat Enterprise Linux ES release 3 (Taroon Update 8) After some debugging it turns out that every nagios command that's finished gets the status defunct first before being actually killed: nagios 14489 0.0 0.0 0 0 ? Z 15:44 0:00 [check_snmp] nagios 16851 0.0 0.0 0 0 ? Z 15:44 0:00 [check_ssh] nagios 16851 0.0 0.0 0 0 ? Z 15:44 0:00 [check_ssh] nagios 17838 0.0 0.0 0 0 ? Z 15:44 0:00 [check_http] But when we have a defunct process we get served wrong information, like nagios is running twice. After we issue: kill -HUP ; kill -9 ; /etc/init.d/nagios start Everything runs fine.. Does anyone know what causes this? Of even better; know how to fix this? Thnx in advance! Cheers, Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 19 16:22:39 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 19 Jan 2007 15:22:39 +0000 Subject: check host alive In-Reply-To: <45B0DDEC.1040907@op5.se> References: <45B0CD52.2060302@topnet.tn> <45B0D06C.4080808@mailnetwork.co.uk> <45B0D557.5090003@op5.se> <45B0D874.7000209@mailnetwork.co.uk> <45B0DDEC.1040907@op5.se> Message-ID: <45B0E23F.8020008@mailnetwork.co.uk> Andreas Ericsson wrote: > No, that's the TTL in the response packet, which will be "defult TTL of > host sending ICMP_ECHOREPLY" minus "hops between pinged host and self". > The TTL on the outgoing packets are, by default, 64 on *BSD and Linux, > 128 on Windows and HP switches/routers, 255 on Cisco and 3Com stuff... > > 64 is usually as high a TTL as one can stomach for most practical > reasons (I reach Australia with 36 hops from Sweden). > > On Linux, the default TTL can be accessed through > /proc/sys/net/ipv4/ip_default_ttl > Ah great, thanks for the info :) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 16:30:33 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 09:30:33 -0600 Subject: Event Handlers Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of edalB > Sent: Friday, January 19, 2007 7:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > [chop] > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler restart-httpd > check_command check_http > } Do you have 'event_handler_enabled 1' in your local-service template? You need it either there or in this definition. Enabling event handlers in nagios.cfg isn't sufficient. You need to tell nagios which services it should actually run them for. > And the command > > > define command{ > command_name restart-httpd > command_line /usr/bin/ssh -p 222 -i > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > /etc/init.d/apache2 res > tart > } > > So now nagios still does not want to execute my command You really should follow the documented methodology for event handlers (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html). I'm not sure the above is going to work and if it does, it will attempt to restart httpd on any kind of status change, even WARNING -> OK. I'm sure that you don't want that. Additionally, if you follow the documented way you can easily send debugging output to a file so that you can see if your event handler is being run, how and what it's doing. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 16:31:35 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 09:31:35 -0600 Subject: consistent service logging across hosts Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mark > Sent: Thursday, January 18, 2007 10:19 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] consistent service logging across hosts > > I have a service that can fail over between hosts that each have their > own IP (if they failed over IP's this would be easy). It is very hard > to get availability numbers for this service because of this. Are > there any solutions to this? Another catch is that the service Check_cluster2 + a shared nagios log dir comes to mind. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 16:36:30 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 09:36:30 -0600 Subject: Sub-groups Nagios Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Ivan.Garcia at leroymerlin.es > Sent: Friday, January 19, 2007 3:33 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Sub-groups Nagios > > I'm configuring a Nagios into my Enterprise and I'd like to know if is > possible to make a group into other group hosts for creating a tree with > subgroups. No, not yet. Nagios 3 will allow you to include other hostgroups in a hostgroup{} definition as below. # All Windows servers # All Windows servers define hostgroup{ hostgroup_name windows-servers hostgroup_names web-servers,file-servers members pdc,bdc,!fs1 } # Windows web servers # Windows web servers define hostgroup{ hostgroup_name web-servers members a,b,c } # Windows file servers # Windows file servers define hostgroup{ hostgroup_name file-servers members x,y,z,fs1 } -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 16:41:07 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 09:41:07 -0600 Subject: Nagios defunct processes Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > Sent: Friday, January 19, 2007 9:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios defunct processes > > Hello, > > We have nagios running for our network elements. > The amount of elements we are monotoring is 453 and the number of services > is 588 > > The problem we are experiencing is that (mostly) after a restart of nagios > we are getting defunct processes like: > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > Just a semi-educated guess as I haven't seen this before but do you have a reasonable value set for service_reaper_frequency in nagios.cfg? Mine's set to 2. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.frasa at nl.tiscali.com Fri Jan 19 17:01:45 2007 From: m.frasa at nl.tiscali.com (Mark Frasa) Date: Fri, 19 Jan 2007 17:01:45 +0100 Subject: Nagios defunct processes In-Reply-To: References: Message-ID: <20070119170145.27ce10fc.m.frasa@nl.tiscali.com> On Fri, 19 Jan 2007 09:41:07 -0600 "Marc Powell" wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > > Sent: Friday, January 19, 2007 9:20 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios defunct processes > > > > Hello, > > > > We have nagios running for our network elements. > > The amount of elements we are monotoring is 453 and the number of > services > > is 588 > > > > The problem we are experiencing is that (mostly) after a restart of > nagios > > we are getting defunct processes like: > > > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > > > Just a semi-educated guess as I haven't seen this before but do you have > a reasonable value set for service_reaper_frequency in nagios.cfg? > Mine's set to 2. > > -- > Marc Hello, The value for this setting is: service_reaper_frequency=10 Cheers, Mark > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 17:05:51 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 10:05:51 -0600 Subject: Nagios defunct processes Message-ID: > -----Original Message----- > From: Mark Frasa [mailto:m.frasa at nl.tiscali.com] > Sent: Friday, January 19, 2007 10:02 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios defunct processes > > On Fri, 19 Jan 2007 09:41:07 -0600 > "Marc Powell" wrote: > > > > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > > > Sent: Friday, January 19, 2007 9:20 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nagios defunct processes > > > > > > Hello, > > > > > > We have nagios running for our network elements. > > > The amount of elements we are monotoring is 453 and the number of > > services > > > is 588 > > > > > > The problem we are experiencing is that (mostly) after a restart of > > nagios > > > we are getting defunct processes like: > > > > > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > > > > > > Just a semi-educated guess as I haven't seen this before but do you have > > a reasonable value set for service_reaper_frequency in nagios.cfg? > > Mine's set to 2. > > > > -- > > Marc > > Hello, > > The value for this setting is: > > service_reaper_frequency=10 And do your defunct processes go away after 10 seconds? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 17:05:51 2007 From: jcall at verio.net (Jonathan Call) Date: Fri, 19 Jan 2007 11:05:51 -0500 Subject: Preferred configuration utility? Message-ID: <04F3233F47E2714CB7431AE913E57E7701B9B373@IAD-WPRD-XCHB02.corp.verio.net> Looking over nagiosexchange I see several web based configuration management utilities. I've been using NagiosWeb; it's simple, somewhat immature, but effective. It lacks the ability to import configurations, which has become more important now that I'm moving my Nagios deployment to a distributed model. I looked at Fruity, but the forums for it have pointed out a showstopper problem with importing and exporting configurations (especially contacts) Monarch has also been mentioned but their website appears to be non-functional on sourceforge right now. Has anyone found one that stands out among the others? Jonathan Call Network Engineer - NTT/Verio ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.frasa at nl.tiscali.com Fri Jan 19 17:20:45 2007 From: m.frasa at nl.tiscali.com (Mark Frasa) Date: Fri, 19 Jan 2007 17:20:45 +0100 Subject: Nagios defunct processes In-Reply-To: References: Message-ID: <20070119172045.39a09033.m.frasa@nl.tiscali.com> On Fri, 19 Jan 2007 10:05:51 -0600 "Marc Powell" wrote: > > > > -----Original Message----- > > From: Mark Frasa [mailto:m.frasa at nl.tiscali.com] > > Sent: Friday, January 19, 2007 10:02 AM > > To: Marc Powell > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Nagios defunct processes > > > > On Fri, 19 Jan 2007 09:41:07 -0600 > > "Marc Powell" wrote: > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users- > > > > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > > > > Sent: Friday, January 19, 2007 9:20 AM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] Nagios defunct processes > > > > > > > > Hello, > > > > > > > > We have nagios running for our network elements. > > > > The amount of elements we are monotoring is 453 and the number of > > > services > > > > is 588 > > > > > > > > The problem we are experiencing is that (mostly) after a restart > of > > > nagios > > > > we are getting defunct processes like: > > > > > > > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > > > > > > > > > Just a semi-educated guess as I haven't seen this before but do you > have > > > a reasonable value set for service_reaper_frequency in nagios.cfg? > > > Mine's set to 2. > > > > > > -- > > > Marc > > > > Hello, > > > > The value for this setting is: > > > > service_reaper_frequency=10 > > And do your defunct processes go away after 10 seconds? > > -- > Marc Hello, The little ones i pasted go away even faster, but you are orientating on the wrong part of my question :) The real problem is that this process: nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] Will last there until we kill -HUP kill -9 and restart nagios. And while this process stays defunct nagios is acting like there are two instances running. Thanks for your help so far, i appreciate it! Cheers, Mark. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 17:58:25 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 10:58:25 -0600 Subject: Nagios defunct processes Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > Sent: Friday, January 19, 2007 10:21 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios defunct processes > > On Fri, 19 Jan 2007 10:05:51 -0600 > "Marc Powell" wrote: > > > [chop] > > And do your defunct processes go away after 10 seconds? > > > > -- > > Marc > > Hello, > > The little ones i pasted go away even faster, but you are orientating on > the wrong part of my question :) > The real problem is that this process: > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] I'm not necessarily on the wrong track but admittedly this is a grey area for me. Others on the list (Andreas Ericsson for example) have a better understanding of the internals of this process than I. My understanding is that nagios forks child/grandchild process for each service check that it executes and sends results up via IPC pipe. [nagios parent] (fork)-> [nagios child] (fork)-> [nagios grandchild] (fork)-> [plugin] A defunct process is one in which the parent has not yet released the child process. Logically, the nagios grandchild will release the plugin after it executes and then the child will release the grandchild after processing its results on up to the top so something would appear to be preventing that release. > The real problem is that this process: > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > Will last there until we kill -HUP kill -9 and restart nagios. > And while this process stays defunct nagios is acting like there are two > instances running. This is a child process of parent 2593. Is 2593 your master nagios daemon? In the end the grandchild should be owned by init, not nagios. I am presuming that you've stopped nagios and have verified that you really don't have multiple master processes running. What OS and nagios version are you seeing this on? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jorg.Schulz at systeam.se Fri Jan 19 18:04:41 2007 From: Jorg.Schulz at systeam.se (Jorg.Schulz at systeam.se) Date: Fri, 19 Jan 2007 18:04:41 +0100 Subject: Preferred configuration utility? In-Reply-To: <04F3233F47E2714CB7431AE913E57E7701B9B373@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E7701B9B373@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: Hi Did you try NagiosQL 2005 Works very well for me http://www.nagiosql.org/wiki/Main_Page /J?rg nagios-users-bounces at lists.sourceforge.net wrote on 2007-01-19 17:05:51: > Looking over nagiosexchange I see several web based configuration > management utilities. > > I've been using NagiosWeb; it's simple, somewhat immature, but > effective. It lacks the ability to import configurations, which has > become more important now that I'm moving my Nagios deployment to a > distributed model. > > I looked at Fruity, but the forums for it have pointed out a showstopper > problem with importing and exporting configurations (especially > contacts) > > Monarch has also been mentioned but their website appears to be > non-functional on sourceforge right now. > > Has anyone found one that stands out among the others? > > Jonathan Call > Network Engineer - NTT/Verio > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Jan 19 18:05:49 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Jan 2007 18:05:49 +0100 Subject: Nagios defunct processes In-Reply-To: <20070119170145.27ce10fc.m.frasa@nl.tiscali.com> References: <20070119170145.27ce10fc.m.frasa@nl.tiscali.com> Message-ID: <45B0FA6D.1090002@op5.se> Mark Frasa wrote: > On Fri, 19 Jan 2007 09:41:07 -0600 > "Marc Powell" wrote: > >> >>> -----Original Message----- >>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >>> bounces at lists.sourceforge.net] On Behalf Of Mark Frasa >>> Sent: Friday, January 19, 2007 9:20 AM >>> To: nagios-users at lists.sourceforge.net >>> Subject: [Nagios-users] Nagios defunct processes >>> >>> Hello, >>> >>> We have nagios running for our network elements. >>> The amount of elements we are monotoring is 453 and the number of >> services >>> is 588 >>> >>> The problem we are experiencing is that (mostly) after a restart of >> nagios >>> we are getting defunct processes like: >>> >>> nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] >>> >> Just a semi-educated guess as I haven't seen this before but do you have >> a reasonable value set for service_reaper_frequency in nagios.cfg? >> Mine's set to 2. >> >> -- >> Marc > > Hello, > > The value for this setting is: > > service_reaper_frequency=10 > Lower it to 2, or at least something below 5. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Travis.Formoso at blueslate.net Fri Jan 19 18:23:15 2007 From: Travis.Formoso at blueslate.net (Formoso, Travis) Date: Fri, 19 Jan 2007 12:23:15 -0500 Subject: LDAPS question Message-ID: Hello, I am trying to monitor LDAPS on my server and I am using this command: ./check_ldaps -H mars.blueslate.net -b o=scalix -p 636 I get the following error: Could not bind to the ldap-server When monitoring LDAP it worked fine using: ./check_ldap -H mars.blueslate.net -b o=scalix LDAP OK - 0.228 seconds response time|time=0.227919s;;;0.000000 We are using stunnel to implement LDAPS on port 636. This e-mail and any files transmitted with it are for the sole use of Blue Slate Solutions and the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 19 18:28:36 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 19 Jan 2007 17:28:36 +0000 Subject: Event Handlers In-Reply-To: References: Message-ID: <45B0FFC4.50004@googlemail.com> I was think that, I've done event handlers and the way you have tried to do that is just wrong. Look at the docs, there is a template bash script to get you started. That is what I based my event handlers on and it makes much more sense. You can choose when to do certain actions, not every single time the status changes which can be a heck of a lot. For example when one of my known problem websites fails, the event handler only fires if it's critical and the plugin output tells me that a certain condition has occurred. I don't do anything when it's a warning state or a soft error or if the service check just timed out as sometimes happens since the website isn't down or broken. Otherwise a congested pipe that causes the service check to time out and temporarily go critical then results in you trashing the website and kicking out users! Follow the white rabbit... I mean... follow the docs... -h Hari Sekhon Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of edalB >> Sent: Friday, January 19, 2007 7:46 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Event Handlers >> >> Hi all. >> >> I have created a event handler as a test to see how it works. The hard >> part I have done. >> >> > > [chop] > > >> define service{ >> use local-service >> >> host_name imap-1.rba.ispafrica.net >> service_description HTTP >> event_handler restart-httpd >> check_command check_http >> } >> > > Do you have 'event_handler_enabled 1' in your local-service template? > You need it either there or in this definition. Enabling event handlers > in nagios.cfg isn't sufficient. You need to tell nagios which services > it should actually run them for. > > >> And the command >> >> >> define command{ >> command_name restart-httpd >> command_line /usr/bin/ssh -p 222 -i >> /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo >> /etc/init.d/apache2 res >> tart >> } >> >> So now nagios still does not want to execute my command >> > > You really should follow the documented methodology for event handlers > (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html). I'm not > sure the above is going to work and if it does, it will attempt to > restart httpd on any kind of status change, even WARNING -> OK. I'm sure > that you don't want that. Additionally, if you follow the documented way > you can easily send debugging output to a file so that you can see if > your event handler is being run, how and what it's doing. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 18:34:41 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 19 Jan 2007 12:34:41 -0500 Subject: System call sent warnings to stderr message In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679B67@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B67@PHSXMB5.partners.org> Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B68@PHSXMB5.partners.org> I believe I solved the problem. The version of the plugins on the Nagios server is 1.4.5, while those on the client were 1.4. I upgraded the client plugins to match those on the Nagios server, and once that was done the stderr error messages were no longer present. Thanks for the help anyway. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Friday, January 19, 2007 8:26 AM To: Marc Powell; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] System call sent warnings to stderr message Hi there -- When I manually run check_nrpe -H -n -c check_total_procs on the Nagios server, I get the System call sent warnings to stderr message. This is also true when I ran the above command with check_zombie_procs. I then went to the client system, and ran the check_procs command as the nagios user with the following syntax for checking zombie processes: ./check_procs -w 5 -c 10 -s Z The response I got was the following: System call sent warnings to stderr I ran the check_procs command again as the nagios users to check the total amount of processes: ./check_procs -w 150 -c 200 The response this time was the following: System call sent warnings to stderr PROCS WARNING: 77 processes -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, January 18, 2007 4:58 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] System call sent warnings to stderr message > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Thursday, January 18, 2007 3:44 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] System call sent warnings to stderr message > > Hi there - > > [chop] > > The error message that I am getting for both services is the following: > > > > System call sent warnings to stderr message > > > > What changes should I make to correct this? Thanks. What's the error that you see when you run check_nrpe as the nagios user on your nagios machine? If you see only the error above there, what is the error that you see when you run check_procs as the nrpe user on your destination machine? One or the other is sending error messages to stderr that nagios doesn't capture. I would guess that there's a problem running check_procs on the destination host. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.frasa at nl.tiscali.com Fri Jan 19 18:52:15 2007 From: m.frasa at nl.tiscali.com (Mark Frasa) Date: Fri, 19 Jan 2007 18:52:15 +0100 Subject: Nagios defunct processes In-Reply-To: References: Message-ID: <20070119175214.GA7613@nl.tiscali.com> On 2007.01.19 10:58:25 -0600, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > > Sent: Friday, January 19, 2007 10:21 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Nagios defunct processes > > > > On Fri, 19 Jan 2007 10:05:51 -0600 > > "Marc Powell" wrote: > > > > > > > [chop] > > > > And do your defunct processes go away after 10 seconds? > > > > > > -- > > > Marc > > > > Hello, > > > > The little ones i pasted go away even faster, but you are orientating > on > > the wrong part of my question :) > > The real problem is that this process: > > > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > I'm not necessarily on the wrong track but admittedly this is a grey > area for me. Others on the list (Andreas Ericsson for example) have a > better understanding of the internals of this process than I. My > understanding is that nagios forks child/grandchild process for each > service check that it executes and sends results up via IPC pipe. > > [nagios parent] (fork)-> [nagios child] (fork)-> [nagios grandchild] > (fork)-> [plugin] > > A defunct process is one in which the parent has not yet released the > child process. Logically, the nagios grandchild will release the plugin > after it executes and then the child will release the grandchild after > processing its results on up to the top so something would appear to be > preventing that release. > > > The real problem is that this process: > > > > nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > > > > Will last there until we kill -HUP kill -9 and restart nagios. > > And while this process stays defunct nagios is acting like there are > two > > instances running. > > This is a child process of parent 2593. Is 2593 your master nagios > daemon? In the end the grandchild should be owned by init, not nagios. I > am presuming that you've stopped nagios and have verified that you > really don't have multiple master processes running. What OS and nagios > version are you seeing this on? > > -- > Marc Hello, The versions: Red Hat Enterprise Linux ES release 3 (Taroon Update 8) Nagios 2.5 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 07-13-2006 Cheers, Mark > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dimma at higis.ru Fri Jan 19 18:55:35 2007 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Fri, 19 Jan 2007 20:55:35 +0300 Subject: LDAPS question In-Reply-To: References: Message-ID: <20070119175534.GB1340@dkirhlarov.mow.oilspace.com> On Fri, Jan 19, 2007 at 12:23:15PM -0500, Formoso, Travis wrote: > Hello, > > I am trying to monitor LDAPS on my server and I am using this command: ./check_ldaps -H mars.blueslate.net -b o=scalix -p 636 > > I get the following error: Could not bind to the ldap-server put in your openldap/ldap.conf directives: TLS_CACERT TLS_REQCERT (if needed) Details -- ldap.conf(5) WBR Dmitriy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.frasa at nl.tiscali.com Fri Jan 19 18:58:48 2007 From: m.frasa at nl.tiscali.com (Mark Frasa) Date: Fri, 19 Jan 2007 18:58:48 +0100 Subject: Nagios defunct processes In-Reply-To: <45B0FA6D.1090002@op5.se> References: <20070119170145.27ce10fc.m.frasa@nl.tiscali.com> <45B0FA6D.1090002@op5.se> Message-ID: <20070119175848.GB7613@nl.tiscali.com> On 2007.01.19 18:05:49 +0100, Andreas Ericsson wrote: > Mark Frasa wrote: > > On Fri, 19 Jan 2007 09:41:07 -0600 > > "Marc Powell" wrote: > > > >> > >>> -----Original Message----- > >>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > >>> bounces at lists.sourceforge.net] On Behalf Of Mark Frasa > >>> Sent: Friday, January 19, 2007 9:20 AM > >>> To: nagios-users at lists.sourceforge.net > >>> Subject: [Nagios-users] Nagios defunct processes > >>> > >>> Hello, > >>> > >>> We have nagios running for our network elements. > >>> The amount of elements we are monotoring is 453 and the number of > >> services > >>> is 588 > >>> > >>> The problem we are experiencing is that (mostly) after a restart of > >> nagios > >>> we are getting defunct processes like: > >>> > >>> nagios 14417 2593 0 Jan16 ? 00:00:00 [nagios ] > >>> > >> Just a semi-educated guess as I haven't seen this before but do you have > >> a reasonable value set for service_reaper_frequency in nagios.cfg? > >> Mine's set to 2. > >> > >> -- > >> Marc > > > > Hello, > > > > The value for this setting is: > > > > service_reaper_frequency=10 > > > > Lower it to 2, or at least something below 5. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 Hello, I have changed the value to 2. A probably usefull note: Sometimes when we restart nagios it says: Warning - running nagios did not exit in time The default init script waits 10 seconds, i made it wait 25 but then it still happens sometimes.. Cheers, Mark. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From baka.rob at gmail.com Fri Jan 19 19:01:44 2007 From: baka.rob at gmail.com (Parker Anderson) Date: Fri, 19 Jan 2007 12:01:44 -0600 Subject: LDAPS question In-Reply-To: References: Message-ID: On 1/19/07, Formoso, Travis wrote: > Hello, > > I am trying to monitor LDAPS on my server and I am using this command: ./check_ldaps -H mars.blueslate.net -b o=scalix -p 636 > > I get the following error: Could not bind to the ldap-server Have you checked the LDAP daemon logs on the server for any errors / entries as you run check_ldaps against it? Is the server / stunnel sending out self-signed, expired, or otherwise[-invalid/-untrusted] credentials? Have you used any other clients to verify that LDAPS is functional? By checking the certificate with openssl, I can see that the certificate isn't in my default trusted certificate authority list (checked on Redhat Enterprise Linux AS4 Update 4): $ openssl s_client -connect 66.194.182.14:636 CONNECTED(00000003) depth=0 /O=mail.blueslate.net/OU=Domain Control Validated/CN=mail.blueslate.net verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 /O=mail.blueslate.net/OU=Domain Control Validated/CN=mail.blueslate.net verify error:num=27:certificate not trusted verify return:1 depth=0 /O=mail.blueslate.net/OU=Domain Control Validated/CN=mail.blueslate.net verify error:num=21:unable to verify the first certificate verify return:1 So maybe there is an issue there? I don't use check_ldaps (we just have a test implementation of OpenLDAP going at work; Nagios isn't running against it yet), but I know that there are client-side hoops to jump through if you are using a certificate signed by [someone other than Verisign or a handful of authorities]. I hope that helps a bit, or at least gives you something else to look into! > > When monitoring LDAP it worked fine using: ./check_ldap -H mars.blueslate.net -b o=scalix > LDAP OK - 0.228 seconds response time|time=0.227919s;;;0.000000 > > We are using stunnel to implement LDAPS on port 636. > > > > > This e-mail and any files transmitted with it are for the sole use of > Blue Slate Solutions and the intended recipient(s) and may contain > confidential and privileged information. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all > copies of the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > or any action taken in reliance on this e-mail is strictly prohibited > and may be unlawful. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Sincerely, -Parker ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Fri Jan 19 19:51:47 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 19 Jan 2007 13:51:47 -0500 Subject: getting email again Nagios Message-ID: <7abcf48e0701191051v30bcf2basd7fbdbb7e13b8d2b@mail.gmail.com> I have Nagios 2.4 hey people i have been getting nagios notification email but dont get anymore after i added the hosts here is what i have so far I have MTA and tried sending email through my local server which is fine and this is how i have contacts.cfg set up : # 'Master' contact definition define contact{ contact_name genesis alias genesis net service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r,n service_notification_commands notify-by-email host_notification_commands host-notify-by-email email nedo72 at gmail.com } and this is what i have for my contactgroup.cfg define contactgroup{ contactgroup_name gmaster alias test Group members genesis } And this is one sample host i have: define host{ use generic-host ; Name of host template to use host_name cpu1 alias cpu1 address 10.8.1.53 check_command check-host-alive max_check_attempts 10 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options d,r,n contact_groups gmaster } and this is what i have for my miscommands.cfg for my email commands: ---->this is for hosts define command{ command_name host-notify-by-email command_line /bin/echo -e "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } ->>this is for services # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /bin/echo -e "***** 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$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } I dont why i dont get any email notifications after a host goes down when i unplug it thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Fri Jan 19 20:09:04 2007 From: jperrin at gmail.com (Jim Perrin) Date: Fri, 19 Jan 2007 14:09:04 -0500 Subject: getting email again Nagios In-Reply-To: <7abcf48e0701191051v30bcf2basd7fbdbb7e13b8d2b@mail.gmail.com> References: <7abcf48e0701191051v30bcf2basd7fbdbb7e13b8d2b@mail.gmail.com> Message-ID: <302ce8b50701191109q63863afer61ec130bc61ac205@mail.gmail.com> On 1/19/07, Nedim Bicic wrote: > I have Nagios 2.4 > hey people i have been getting nagios notification email but dont get > anymore after i added the hosts You're telling nagios not to send email in the notification options. Look in the manual again at what the d,r,u,n options do, then look at the options you're using in your definitions. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Fri Jan 19 21:30:41 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 19 Jan 2007 15:30:41 -0500 Subject: getting email again Nagios In-Reply-To: <302ce8b50701191109q63863afer61ec130bc61ac205@mail.gmail.com> References: <7abcf48e0701191051v30bcf2basd7fbdbb7e13b8d2b@mail.gmail.com> <302ce8b50701191109q63863afer61ec130bc61ac205@mail.gmail.com> Message-ID: <7abcf48e0701191230xa2355bbxf91bbf11e1a9dcbe@mail.gmail.com> Yea ok thanks I know RTFM If you specify *n* (none) as an option, no host notifications will be sent out very stupid of me damn i didnt see this On 1/19/07, Jim Perrin wrote: > > On 1/19/07, Nedim Bicic wrote: > > I have Nagios 2.4 > > hey people i have been getting nagios notification email but dont get > > anymore after i added the hosts > > You're telling nagios not to send email in the notification options. > Look in the manual again at what the d,r,u,n options do, then look at > the options you're using in your definitions. > > > > -- > During times of universal deceit, telling the truth becomes a > revolutionary act. > George Orwell > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Fri Jan 19 21:47:01 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 19 Jan 2007 15:47:01 -0500 Subject: Resfresh rate for Nagios Message-ID: <7abcf48e0701191247q1068372bt7ad7f219d426717b@mail.gmail.com> I have nagios 2.4 i have the email setup and working just want to recive email right of way when a host goes down do i have to set the refresh rate or how do you do that or where in the manual do they explain what i want -thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sujiannming at gmail.com Fri Jan 19 22:10:20 2007 From: sujiannming at gmail.com (Jiann-Ming Su) Date: Fri, 19 Jan 2007 16:10:20 -0500 Subject: "!" in SNMP Community? Message-ID: <561dc3260701191310u74ff032bk20a020d8476b2177@mail.gmail.com> My SNMP community string has a bang (!) in it. How do I properly pass the community string with the check_snmp module? I've tried using %21 as suggested by FAQ ID F0157 (http://www.nagios.org/faqs/viewfaq.php?faq_id=157), but that doesn't work. I've tried escaping it with \, but then the service doesn't even execute. I've tried putting the entire community string in quotes (""), but that doesn't work either. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Aaron.Segura at cabelas.com Fri Jan 19 22:18:38 2007 From: Aaron.Segura at cabelas.com (Aaron Segura) Date: Fri, 19 Jan 2007 14:18:38 -0700 Subject: "!" in SNMP Community? In-Reply-To: <561dc3260701191310u74ff032bk20a020d8476b2177@mail.gmail.com> References: <561dc3260701191310u74ff032bk20a020d8476b2177@mail.gmail.com> Message-ID: <2D0245E43DEC724F81592D697F05689904C43444@SIDHQEXCHMB1.Cabelas.Corp> Create a $USERn$ macro with your community name in it and use that in your commands... http://nagios.sourceforge.net/docs/2_0/macros.html (go to the bottom and check out the '$USERn$' entry) http://nagios.sourceforge.net/docs/2_0/configmain.html#resource_file ? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jiann-Ming Su Sent: Friday, January 19, 2007 2:10 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] "!" in SNMP Community? My SNMP community string has a bang (!) in it. How do I properly pass the community string with the check_snmp module? I've tried using %21 as suggested by FAQ ID F0157 (http://www.nagios.org/faqs/viewfaq.php?faq_id=157), but that doesn't work. I've tried escaping it with \, but then the service doesn't even execute. I've tried putting the entire community string in quotes (""), but that doesn't work either. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 19 22:42:19 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 15:42:19 -0600 Subject: Resfresh rate for Nagios Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Friday, January 19, 2007 2:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Resfresh rate for Nagios > > I have nagios 2.4 > > i have the email setup and working just want to recive email right of way > when a host goes down do i have to set the refresh rate or how do you do > that > > or where in the manual do they explain what i want http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sujiannming at gmail.com Fri Jan 19 23:15:49 2007 From: sujiannming at gmail.com (Jiann-Ming Su) Date: Fri, 19 Jan 2007 17:15:49 -0500 Subject: "!" in SNMP Community? In-Reply-To: <2D0245E43DEC724F81592D697F05689904C43444@SIDHQEXCHMB1.Cabelas.Corp> References: <561dc3260701191310u74ff032bk20a020d8476b2177@mail.gmail.com> <2D0245E43DEC724F81592D697F05689904C43444@SIDHQEXCHMB1.Cabelas.Corp> Message-ID: <561dc3260701191415r798ec151uf6c9fc6ca58d9937@mail.gmail.com> On 1/19/07, Aaron Segura wrote: > Create a $USERn$ macro with your community name in it and use that in > your commands... > > http://nagios.sourceforge.net/docs/2_0/macros.html (go to the bottom and > check out the '$USERn$' entry) > > http://nagios.sourceforge.net/docs/2_0/configmain.html#resource_file > That did it. Thanks! -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Sat Jan 20 00:25:24 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 19 Jan 2007 18:25:24 -0500 Subject: Inheritence and host dependencies Message-ID: <7abcf48e0701191525x6655bad0nb7fffccb06236618@mail.gmail.com> hey guys I have nagios 2.4 on my linux i also have 54 host dependencies set up the follwing way define hostdependency{ host_name parent dependent_host_name child1,child2,child3 notification_failure_criteria d,u ; These are the criteria for which notifications will be suppressed } parent is my master hostname and child1 and child2 and child3 are are the dependents as you can see Now what I read from the manual if "parent" goes down then logically child1, child2 and child3 are also down thats what i see on my network But i keep getting 4 emails from parent, child1, child2 and child 3 I want only to get email from "parent" i thought the host dependency cfg file above does that for me ?? Can you help out thanks I dont know if this command in the template is the answer but help would be appricated " inherits_parent [0/1] " -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 20 00:45:59 2007 From: marc at ena.com (Marc Powell) Date: Fri, 19 Jan 2007 17:45:59 -0600 Subject: Inheritence and host dependencies Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Friday, January 19, 2007 5:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Inheritence and host dependencies > > hey guys > > I have nagios 2.4 on my linux > > i also have 54 host dependencies set up the follwing way > > define hostdependency{ > host_name parent > dependent_host_name child1,child2,child3 > notification_failure_criteria d,u ; These are the criteria for which > notifications will be suppressed > } > > parent is my master hostname and child1 and child2 and child3 are are the > dependents as you can see > > Now what I read from the manual if "parent" goes down then logically > child1, child2 and child3 are also down thats what i see on my network It sounds to me that what you _really_ want is to use the 'parents' directive in your child host{} definitions, not host dependencies. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/2_0/networkreachability.html >From the Host Dependencies docs as well -- "BEWARE! Do not confuse host dependencies with parent/child host relationships. You should be using parent/child host relationships (defined with the parents directive in host definitions) for most cases, rather than host dependencies." -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Sat Jan 20 02:03:17 2007 From: knobdy at gmail.com (Brian Loe) Date: Fri, 19 Jan 2007 19:03:17 -0600 Subject: check commands Message-ID: <3c4611bc0701191703x1df1915bv6b3360ff970f01f2@mail.gmail.com> I want to use check_dns for our two DNS servers, but I want to do an nslookup on our main web server, and specify some other specific command line options (does -A work correctly?). Is the proper way to do this just to change the check_dns configuration in checkcommands.cfg? What if you wanted different checks for four different servers using the check_dns command - add a new line and call it something different for each? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From termx23 at gmail.com Sat Jan 20 10:52:55 2007 From: termx23 at gmail.com (Peter Edmonds) Date: Sat, 20 Jan 2007 20:52:55 +1100 Subject: Preferred configuration utility? In-Reply-To: <04F3233F47E2714CB7431AE913E57E7701B9B373@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E7701B9B373@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <6b8cee7e0701200152j24f43c60tadd35196ce9ff566@mail.gmail.com> Hi Jonathon, > Monarch has also been mentioned but their website appears to be > non-functional on sourceforge right now. Has anyone found one that stands out among the others? I would suggest you evaluate Groundwork Monitor Open Source. You can grab a pre-built VMWare VM from http://richard.trezza.us/vmach/index.html Existing configurations should import without difficulty (mine did). You can easily add graphing of performance data with PNP - http://www.ederdrom.de/doku.php/nagios/pnp_en Peter Edmonds ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Jan 20 11:28:28 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 20 Jan 2007 11:28:28 +0100 (CET) Subject: check commands In-Reply-To: <3c4611bc0701191703x1df1915bv6b3360ff970f01f2@mail.gmail.com> References: <3c4611bc0701191703x1df1915bv6b3360ff970f01f2@mail.gmail.com> Message-ID: On Fri, 19 Jan 2007, Brian Loe wrote: > I want to use check_dns for our two DNS servers, but I want to do an > nslookup on our main web server, and specify some other specific > command line options (does -A work correctly?). Is the proper way to > do this just to change the check_dns configuration in > checkcommands.cfg? What if you wanted different checks for four > different servers using the check_dns command - add a new line and > call it something different for each? I would recommend to leave the default definitions as they are and copy the few lines to create your own definition. The tiny bit of extra work is going to save you a lot of time later. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.rudder at reliableresponse.net Sun Jan 21 00:32:21 2007 From: david.rudder at reliableresponse.net (David Rudder) Date: Sat, 20 Jan 2007 16:32:21 -0700 Subject: Nagios receiving acknowledgements from behind firewall? In-Reply-To: References: Message-ID: <45B2A685.5040301@reliableresponse.net> I've written a service to do this, and I've applied to put it into SourceForge, under an Apache license. SourceForge takes a couple business days to review each request, so I'm hoping it'll get posted to http://sourceforge.net/projects/ackpoller by Wednesday or so. I've made it totally divorced from my product, except in the example config files I'm shipping with it. But, there's no code sharing, and no dependencies, so it can be used by other people for other uses. I'll also be hosting an ackpoller service, so if you just want to be able to acknowledge via a public web browser without paying for my software, you can. I'll be adding docs and whatnot to the CVS repository, once it's up on SourceForge. The basic idea is this: AckPoller runs on a server somewhere out on the Internet You setup a service in Nagios which polls regularly. You use the check_ackpoller as the check_command. You can also just run it from cron. check_poller uses SOAP::Lite to ask the server for new updates. If it gets any, it posts a CGI request back to your Nagios server. WSDL is at http://www.reliableresponse.net:8080/ackpoller/GetUpdates.jws?wsdl To acknowledge an alert, you can then go to a webpage (mine's at http://www.reliableresponse.net:8080/ackpoller/nagios.jsp). It'll demand a password, but it'll log you in with whatever username/password you give it. The username and password are not used for authentication, just as a way of indexing the updates. Then, it'll give you a form like the "Acknowledge" screen on Nagios. It uses exactly the same CGI parameters as Nagios, so my software will work with it unadulterated. When you submit this form, ackpoller stores the info in the database, keyed on the username and password you supplied. When check_ackpoller runs, it supplies a username/password pair also. That's how we know which updates are for you. In theory, you could have 2 people with the same name, but different passwords. There's no checking to see if you're using the same username/password pair, so make sure to choose a password you feel is reasonably unique. Marc, thanks for the help. I hope this code is useful to people. Once the project is up on SF, I'll be happy to add anyone as contributors who are interested. -Dave P.S. I don't have my hosted server setup for real yet. For instance, the database tables :) So, it won't actually work for a few days. But, you can see the nagios.jsp page and the wsdl file. Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of David Rudder >> Sent: Monday, January 15, 2007 4:11 PM >> To: Nagios Users mailinglist >> Subject: [Nagios-users] Nagios receiving acknowledgements from >> behindfirewall? >> > > > >> Is there any way to get Nagios to poll for acknowledgments and >> comments? I looked into using NRPE for this, but it seems to only >> handle service and host checks, not acks and comments. Has anyone >> > done > >> this before? >> > > Yes, I can think of a way, and it doesn't involve getting Nagios to do > anything unusual. You're on the right track with polling though. > > >> Disclaimer: it's for a commercial service. I won't advertise it >> > here, > >> but I just wanted y'all to know, just in case. >> > > Thanks for the disclosure. It does feel inappropriate for you to be > asking for free help creating a commercial product unless you plan to > OSS the results. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Sun Jan 21 02:14:22 2007 From: stava at telcotec.se (Lars Stavholm) Date: Sun, 21 Jan 2007 02:14:22 +0100 Subject: check_fping Message-ID: <45B2BE6E.1020101@telcotec.se> Hi All! I'm trying to use the check_fping plugin and when I run it separately on the command line it works just fine, but when I let nagios run it I always get a warning status. Anyone seen this? /Lars ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Sun Jan 21 12:53:00 2007 From: az at whoever.org (Az) Date: Sun, 21 Jan 2007 21:53:00 +1000 Subject: check_fping In-Reply-To: <45B2BE6E.1020101@telcotec.se> References: <45B2BE6E.1020101@telcotec.se> Message-ID: <45B3541C.3030109@whoever.org> Lars Stavholm wrote: > I'm trying to use the check_fping plugin and when > I run it separately on the command line it works > just fine, but when I let nagios run it I always > get a warning status. Anyone seen this? > Have you tried running fping itself as the nagios user? You'll probably get the following... az at raven:~$ /usr/local/sbin/fping This program can only be run by root, or it must be setuid root. Thus, you'll need to address this before the check_fping plugin will work. Cheers. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Sun Jan 21 13:09:32 2007 From: stava at telcotec.se (Lars Stavholm) Date: Sun, 21 Jan 2007 13:09:32 +0100 Subject: check_fping In-Reply-To: <45B3541C.3030109@whoever.org> References: <45B2BE6E.1020101@telcotec.se> <45B3541C.3030109@whoever.org> Message-ID: <45B357FC.30008@telcotec.se> Az wrote: > Lars Stavholm wrote: >> I'm trying to use the check_fping plugin and when >> I run it separately on the command line it works >> just fine, but when I let nagios run it I always >> get a warning status. Anyone seen this? >> > Have you tried running fping itself as the nagios user? You'll probably > get the following... > > az at raven:~$ /usr/local/sbin/fping > This program can only be run by root, or it must be setuid root. > > Thus, you'll need to address this before the check_fping plugin will work. Yes, thank you, I just discovered that. However, all I got from check_fping was "FPING - WARNING", somewhat misleading. A bit of guesswork and trial and error showed that the check_fping has to be executed as root. In my environment all nagios processes are run by nagios, so I did the suid trick and now it works. Thank you /Lars ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 22 00:15:25 2007 From: nagios at ayksolutions.com (Artyom Khmelnitsky) Date: Mon, 22 Jan 2007 00:15:25 +0100 (CET) Subject: Adding contacts Message-ID: <20070121231525.B9D454F4046@desire.netways.de> Hello, Is it possible to declare multiple email contacts for a single contact? For instance: email myname at domain.com, admin at domain.com The reason I'm asking is because I added it, restarted and it didn't throw any errors. However, when I got the notification for something, it only got sent to the first contact, not the second. Thanks for your help ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Mon Jan 22 00:28:20 2007 From: btmanmeh at verizon.net (Max H.) Date: Sun, 21 Jan 2007 18:28:20 -0500 Subject: Adding contacts In-Reply-To: <20070121231525.B9D454F4046@desire.netways.de> References: <20070121231525.B9D454F4046@desire.netways.de> Message-ID: <45B3F714.1090903@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Artyom Khmelnitsky wrote: > Hello, > > Is it possible to declare multiple email contacts for a single contact? For instance: > > email myname at domain.com, admin at domain.com > > The reason I'm asking is because I added it, restarted and it didn't throw any errors. However, when I got the notification for something, it only got sent to the first contact, not the second. > You need to create a contact group. Set up your contacts by however you plan on sending them their notifications e-mail, pager, etc. and then create a contact group to put them into. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contactgroup Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD4DBQFFs/cUHoeeepPau2ERAkK9AJ4iXxtp4JajWuviCR718hjOdKU00wCYkcx0 szyECENAisTKtwf1STmVeA== =7rQK -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 22 00:32:37 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Sun, 21 Jan 2007 18:32:37 -0500 Subject: nagios.cmd external Message-ID: <7abcf48e0701211532r288e74b5g84c1fa9d80fa5502@mail.gmail.com> Hi all, i have nagios 2.4 I need want to change and input settings via the web interface like scheduale downtime etc, which i read that the external command does this i enabled it in nagiod.cfg =1 but i aslo found out that you need to create a nagios.cmd file and give it directory permission , located in one of the folders that keeps this log my question is how do i create this file and make it point to external command so when i do isue an extenal command on web interface does anyone know how this is set ...manual doesnt tell me much from what i already did thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Mon Jan 22 01:48:56 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Mon, 22 Jan 2007 07:48:56 +0700 Subject: Accessing /dev/ttyUSB0 to send SMS Message-ID: Dear all, I use gnokii to send Nagios notification. Gnokii need to access /dev/ttyUSB0 in order to deliver message to Handphone. At present, I need to set nagios user to root group in order to accomplish this task. If the nagios user is not in root group, it could not access /dev/ttyUSB0. Previously when nagios user is not in root group, I tried to do some workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is there's any way to access /dev/ttyUSB0 without setting nagios user as root group ? Thank you. Regards, Herman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 22 02:02:23 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Sun, 21 Jan 2007 20:02:23 -0500 Subject: Fwd: nagios.cmd external In-Reply-To: <7abcf48e0701211532r288e74b5g84c1fa9d80fa5502@mail.gmail.com> References: <7abcf48e0701211532r288e74b5g84c1fa9d80fa5502@mail.gmail.com> Message-ID: <7abcf48e0701211702lf6bb5d0kf34f2183f2c37296@mail.gmail.com> ok here is what i have so far when i try putting in a comment error says: Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. and i set external command to 1 and check interval to 1 and then i checked for the permission with this command *> cd /var/log/nagios/rw* *> ls -l* total 0 prw-rw---- 1 nagios nagiocmd 0 Jan 21 19:52 nagios.cmd i restarted appache few times and stil with the same error could it be that i created a user nobody and i am accessing nagios web interface with a diffrent user?? thanks ---------- Forwarded message ---------- From: Nedim Bicic Date: Jan 21, 2007 6:32 PM Subject: nagios.cmd external To: nagios-users at lists.sourceforge.net Hi all, i have nagios 2.4 I need want to change and input settings via the web interface like scheduale downtime etc, which i read that the external command does this i enabled it in nagiod.cfg =1 but i aslo found out that you need to create a nagios.cmd file and give it directory permission , located in one of the folders that keeps this log my question is how do i create this file and make it point to external command so when i do isue an extenal command on web interface does anyone know how this is set ...manual doesnt tell me much from what i already did thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Mon Jan 22 05:38:18 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Sun, 21 Jan 2007 22:38:18 -0600 Subject: Email - question.... Message-ID: HI all, I am trying to figure out how to change the email address that sends the service/host emails. Right now, the messages are sent by NAGIOS at nagioshost.domain.com but I want it to be nagios at domain.com. Luis ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Vignesh.Kumar at in.flextronics.com Mon Jan 22 05:40:14 2007 From: Vignesh.Kumar at in.flextronics.com (Vignesh Kumar) Date: Mon, 22 Jan 2007 12:40:14 +0800 Subject: Email - question.... In-Reply-To: References: Message-ID: Hi, You can change the hostname by using the command hostname domainname.com Thanks & Regards, P.Vignesh Kumar | +91-98943-58008 | VOIP 6666-914-5351 | Distributed Systems Support -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lacayo, Luis F Sent: Monday, January 22, 2007 10:08 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Email - question.... HI all, I am trying to figure out how to change the email address that sends the service/host emails. Right now, the messages are sent by NAGIOS at nagioshost.domain.com but I want it to be nagios at domain.com. Luis ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 22 07:30:54 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 22 Jan 2007 07:30:54 +0100 (CET) Subject: Accessing /dev/ttyUSB0 to send SMS In-Reply-To: References: Message-ID: On Mon, 22 Jan 2007, Herman (ISTD) wrote: > I use gnokii to send Nagios notification. Gnokii need to access > /dev/ttyUSB0 in order to deliver message to Handphone. At present, I > need to set nagios user to root group in order to accomplish this task. > If the nagios user is not in root group, it could not access > /dev/ttyUSB0. > > Previously when nagios user is not in root group, I tried to do some > workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is > there's any way to access /dev/ttyUSB0 without setting nagios user as > root group ? There is a touch one. USB devices get removed and recreated so if you set it once it will be gone the next time. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 22 07:36:37 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 22 Jan 2007 07:36:37 +0100 (CET) Subject: Email - question.... In-Reply-To: References: Message-ID: On Sun, 21 Jan 2007, Lacayo, Luis F wrote: > I am trying to figure out how to change the email address that sends the > service/host emails. > > Right now, the messages are sent by NAGIOS at nagioshost.domain.com but I > want it to be nagios at domain.com. That trick needs to be done by your local MTA. If you run sendmail you may need to add something like ... MASQUERADE_AS(vanderkooij.org) to your MC config file. A short note on sendmail can be found on: http://hugo.vanderkooij.org/email/sendmail.htm But as I do not run sendmail anymore as main MTA I am not updating the document amd you have to use the Dutch version. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From taieb.riahi at topnet.tn Mon Jan 22 09:55:02 2007 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Mon, 22 Jan 2007 09:55:02 +0100 Subject: Host escalation config Message-ID: <45B47BE6.1000005@topnet.tn> Hi, I want to be notified on host down or recovery not more than 4 times, so i configured host escalation this way but still sending me host notification every 30 minutes !! have i made something wrong on my config?? (still running nagios 1.3 because i found a ready to use package for my ubuntu server :s ) define host{ use generic-host host_name switch alias Switch address x.x.x.x parents parentSwitch check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,r } define hostescalation{ host_name switch first_notification 2 last_notification 2 notification_interval 120 contact_groups router-admins } THX Riahi Taieb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Mon Jan 22 10:10:17 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 22 Jan 2007 09:10:17 +0000 Subject: nagios.cmd external In-Reply-To: <7abcf48e0701211532r288e74b5g84c1fa9d80fa5502@mail.gmail.com> References: <7abcf48e0701211532r288e74b5g84c1fa9d80fa5502@mail.gmail.com> Message-ID: <45B47F79.30104@mailnetwork.co.uk> Nedim Bicic wrote: > Hi all, i have nagios 2.4 > > I need want to change and input settings via the web interface like > scheduale downtime etc, which i read that the external command does > this i enabled it in nagiod.cfg =1 > but i aslo found out that you need to create a nagios.cmd file and > give it directory permission , located in one of the folders that > keeps this log > > my question is how do i create this file and make it point to external > command so when i do isue an extenal command on web interface > > does anyone know how this is set ...manual doesnt tell me much from > what i already did You shouldn't create it yourself - Nagios creates it as required. Just make sure the "rw" directory has read/write permission to the Nagios user and start Nagios. You should get a nagios.cmd file in there. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Mon Jan 22 10:12:21 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 22 Jan 2007 09:12:21 +0000 Subject: Accessing /dev/ttyUSB0 to send SMS In-Reply-To: References: Message-ID: <45B47FF5.6070904@mailnetwork.co.uk> Herman (ISTD) wrote: > Dear all, > > I use gnokii to send Nagios notification. Gnokii need to access > /dev/ttyUSB0 in order to deliver message to Handphone. At present, I > need to set nagios user to root group in order to accomplish this task. > If the nagios user is not in root group, it could not access > /dev/ttyUSB0. > > Previously when nagios user is not in root group, I tried to do some > workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is > there's any way to access /dev/ttyUSB0 without setting nagios user as > root group ? > Thank you. > Will "sudo" not accomplish this? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Mon Jan 22 10:19:08 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Mon, 22 Jan 2007 10:19:08 +0100 Subject: Completely stumped In-Reply-To: <45B0D2F4.9020707@op5.se> References: <20070118151228.GA11125@eric.schwarzvogel.de> <45AFA49F.1030808@op5.se> <20070119094539.GA8130@eric.schwarzvogel.de> <45B0D2F4.9020707@op5.se> Message-ID: <20070122091908.GA32404@eric.schwarzvogel.de> Hi! On Fri, 19 Jan 2007, Andreas Ericsson wrote: > Was this by any chance coupled with a big fat spike of memory usage > on the Nagios server? I assume you do monitor memory usage, right? I've checked it every now and then and found nothing unusal. While switching around 2.5/2.6 with and without patches, I've added a graph for memory usage and noticed that there probably is some sort of memory leak at least in 2.6 (without patch). Here's the graph so far: http://eric.schwarzvogel.de/~klausman/nagios-perf-4/memusage-week.png That inital drop is a restart I did by hand. I'm currently testing 2.5 sans patches to see if this leak was introduced with 2.5 -> 2.6. > > My C-fu is weak, so I ask those more versed in it to take a look > > at the patch. I'll also hand it to our local C guru, but he's > > quite swamped in work, so that may take some time. > > Comments inline. I'll take a look at them today/tomorrow. > [...] > All in all, I'd advice against using this patch, or at least try without it > first thing you do in case you run into problems. Hm. I was afraid you'd say that. You think it's wortwhile trying to "rescue" the patch? Regards, Tobias -- Never touch a burning system. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmohammed at batelco.jo Mon Jan 22 10:28:43 2007 From: mmohammed at batelco.jo (Moayad Mohammad) Date: Mon, 22 Jan 2007 11:28:43 +0200 Subject: Distributed Monitoring Message-ID: <591D8758FF6E69408854F8B2D5887B3F35BC08@BATEXCH.batelcojordan.jo> Dears, I have one nagios server working in my company, and I need to add another nagios server to monitor another servers in other subnets, I don't know if there's any solution to have 2 nagios servers(1 central nagios) and 1 monitor screen... it's mean the second server will send all check results to the central nagios. Thank you in advance Moayad Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Mon Jan 22 10:52:55 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Mon, 22 Jan 2007 16:52:55 +0700 Subject: Accessing /dev/ttyUSB0 to send SMS Message-ID: May be sudo could solve this problem but not permanently, since sudo only add root rights to user for certain period of time. Is there any way to make devs such as serial line and USB controlled by certain user ? Another question, is it common to run nagios as root ? Thx. Regards, Herman > -----Original Message----- > From: Andy Shellam (Mailing Lists) [mailto:andy.shellam- > lists at mailnetwork.co.uk] > Sent: Monday, January 22, 2007 4:12 PM > To: Herman (ISTD) > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS > > Herman (ISTD) wrote: > > Dear all, > > > > I use gnokii to send Nagios notification. Gnokii need to access > > /dev/ttyUSB0 in order to deliver message to Handphone. At present, I > > need to set nagios user to root group in order to accomplish this task. > > If the nagios user is not in root group, it could not access > > /dev/ttyUSB0. > > > > Previously when nagios user is not in root group, I tried to do some > > workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is > > there's any way to access /dev/ttyUSB0 without setting nagios user as > > root group ? > > Thank you. > > > > Will "sudo" not accomplish this? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlongland at grintek.com Mon Jan 22 10:56:01 2007 From: jlongland at grintek.com (John Longland) Date: Mon, 22 Jan 2007 11:56:01 +0200 Subject: Distributed Monitoring Message-ID: <97DAFA85DDDB9D4CA206918E0375033E02CE11@Jupiter.Grintel.com> Yes you can. Do a google for distributed monitoring. Basically it caomes down to having the one nagios configured as a slave. It then passes all its info to the main Nagios. The services that are monitored on the slave nagios, are configured as "passive" on the main Nagios., but the data is still displayed with all the other "active" check-data on the same screen. One thing that I did: Because the data from the slave gets passed on NOT on request but passively, if the slave nagios dies, the main will not know about it. So my slave-nagios is actively checked with a ping by the main-nagios. John -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net]On Behalf Of Moayad Mohammad Sent: 22 January 2007 11:29 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed Monitoring Dears, I have one nagios server working in my company, and I need to add another nagios server to monitor another servers in other subnets, I don't know if there's any solution to have 2 nagios servers(1 central nagios) and 1 monitor screen... it's mean the second server will send all check results to the central nagios. Thank you in advance Moayad Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 22 10:59:37 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Jan 2007 10:59:37 +0100 Subject: Completely stumped In-Reply-To: <20070122091908.GA32404@eric.schwarzvogel.de> References: <20070118151228.GA11125@eric.schwarzvogel.de> <45AFA49F.1030808@op5.se> <20070119094539.GA8130@eric.schwarzvogel.de> <45B0D2F4.9020707@op5.se> <20070122091908.GA32404@eric.schwarzvogel.de> Message-ID: <45B48B09.9010206@op5.se> Tobias Klausmann wrote: > > On Fri, 19 Jan 2007, Andreas Ericsson wrote: >> All in all, I'd advice against using this patch, or at least try without it >> first thing you do in case you run into problems. > > Hm. I was afraid you'd say that. You think it's wortwhile trying > to "rescue" the patch? > Possibly, if you have some in-house coders that can take a look at it, or if you're prepared to spend a bit of cash to get it fixed. One cheap way of getting it done is advertising it as desired functionality at whatever local university/high school you have and make a competition of it. The first one to send in a properly working patch that does what you want gets a Nintendo Wii or something. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Mon Jan 22 11:04:32 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 22 Jan 2007 11:04:32 +0100 (MET) Subject: Accessing /dev/ttyUSB0 to send SMS In-Reply-To: References: Message-ID: <45B48C30.1080904@its-lehmann.de> Hallo, On 1/22/2007 10:52 AM, Herman (ISTD) wrote: > May be sudo could solve this problem but not permanently, since sudo > only add root rights to user for certain period of time. > Is there any way to make devs such as serial line and USB controlled by > certain user ? That's done by another part of the OS, for example udev. Basically you configure how device links are created for hot-plugged devices. You'll have to tell us the OS and its version at least... or look up the documentation for your system, or ask the mailing list / support / frum for your OS. > Another question, is it common to run nagios as root ? Depends. I strongly adviso to not run Nagios as root - only processes that really need root permissions should be run as such, and Nagios definitely does not need root access to your system. Arno > Thx. > > Regards, > > Herman > > >>-----Original Message----- >>From: Andy Shellam (Mailing Lists) [mailto:andy.shellam- >>lists at mailnetwork.co.uk] >>Sent: Monday, January 22, 2007 4:12 PM >>To: Herman (ISTD) >>Cc: Nagios Users mailinglist >>Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS >> >>Herman (ISTD) wrote: >> >>>Dear all, >>> >>>I use gnokii to send Nagios notification. Gnokii need to access >>>/dev/ttyUSB0 in order to deliver message to Handphone. At present, I >>>need to set nagios user to root group in order to accomplish this > > task. > >>>If the nagios user is not in root group, it could not access >>>/dev/ttyUSB0. >>> >>>Previously when nagios user is not in root group, I tried to do some >>>workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. > > Is > >>>there's any way to access /dev/ttyUSB0 without setting nagios user > > as > >>>root group ? >>>Thank you. >>> >> >>Will "sudo" not accomplish this? > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dimma at higis.ru Mon Jan 22 11:08:40 2007 From: dimma at higis.ru (Dmitriy Kirhlarov) Date: Mon, 22 Jan 2007 13:08:40 +0300 Subject: Distributed Monitoring In-Reply-To: <591D8758FF6E69408854F8B2D5887B3F35BC08@BATEXCH.batelcojordan.jo> References: <591D8758FF6E69408854F8B2D5887B3F35BC08@BATEXCH.batelcojordan.jo> Message-ID: <20070122100839.GC1243@dkirhlarov.mow.oilspace.com> On Mon, Jan 22, 2007 at 11:28:43AM +0200, Moayad Mohammad wrote: > I have one nagios server working in my company, and I > need to add another nagios server to monitor another servers in other > subnets, > > I don't know if there's any solution to have 2 nagios servers(1 central > nagios) and 1 monitor screen... it's mean the second server will send > all check results to the central nagios. It's work in our installation. But, I don't find no one web config tool support this. :( It's not complicated. Look schema: Central Host (location1 + location2) ^ ^ | | | | location1 location2 You making service_template_locations and host_template_locations. On central host and on locations it's different templates (active_check_enable 0 and 1 correspondingly) All checks for locations based on this templates. Next, you must setup nsca on central host and send_nsca on location{1,2}, configure on location{1,2}: obsess_over_services= ocsp_command= obsess_over_hosts= ochp_command= and disable direct notification on locations -- only central host sending notifications. Also, good idea make checks on location{1,2} for nagios on central host (over nrpe) and make eventhandler in this check for enabling notification directly on location[1,2}, when nagios on central host dead. eventhadler example: -------------------- #!/bin/sh # $Id: service_notification,v 1.1 2006/01/18 14:40:02 dkirhlarov Exp $ # this handler switching notifications. # for details contact dimma at oilspace.com DATE="`which date 2>/dev/null`" || DATE="/bin/date" CAT="`which cat 2>/dev/null`" || CAT="/bin/cat" BASENAME="`which basename 2>/dev/null`" || BASENAME="/bin/basename" ECHO="`which echo 2>/dev/null`" || ECHO="/bin/echo" AWK="`which awk 2>/dev/null`" || AWK="/bin/awk" PRINTF="`which printf 2>/dev/null`" || PRINTF="/usr/bin/printf" PROGNAME=`${BASENAME} $0` NAGIOSCMD="/usr/local/nagios/var/rw/nagios.cmd" NOW=`${DATE} +%s` print_help() { ${CAT} < ${NAGIOSCMD} } disable_event() { ${PRINTF} "[%lu] DISABLE_NOTIFICATIONS\n" ${NOW} > ${NAGIOSCMD} } # Make sure the correct number of command line # arguments have been supplied if [ $# -lt 4 ]; then print_help exit -1 fi $ECHO $* >> /usr/local/nagios/var/event.out # Grab the command line arguments while [ -n "$1" ]; do case "$1" in --help|-h) print_help exit -1 ;; -s) # state of service STATE=$2 shift ;; -st) # state type of service STATETYPE=$2 shift ;; -c) # command file NAGIOSCMD=$2 shift ;; *) ${ECHO} "Wrong param '$1'" print_help exit -1 ;; esac shift done # Run check case "$STATETYPE" in HARD) case "$STATE" in CRITICAL) # Time to enabling local notification feature enable_event ;; WARNING|UNKNOWN) # Just smoke ;; OK) # Disable local notification feature disable_event ;; *) # What the shit we are get? ${ECHO} "What?.. Can't understand '$STATE'" exit -1 ;; esac ;; esac exit 0 -------------------- WBR. Dmitriy ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From statlow at gmail.com Mon Jan 22 13:48:35 2007 From: statlow at gmail.com (Steve Tatlow) Date: Mon, 22 Jan 2007 12:48:35 +0000 Subject: check_rrd plugin Message-ID: Hi, I am trying to monitor thresholds in certain RRDs. I have added my nagios command group to the cacti rra directory, this has allowed me to run the ./check_rrd.pl plugin as user statlow. However, nagios is reporting no output in the web interface. I was wondering if anyone could point me in the right direction? statlow at t2:/usr/local/nagios/libexec$ ./check_rrd.pl -F /var/lib/cacti/rra/london_3_cpu1_167.rrd -w 20 -c 50 -a AVERAGE -v 3 OK Average cpu5 = 1 Permissions of cacti rra directory: drwxrwx--- 2 root ncmd 4096 2007-01-22 09:56 rra ncmd group = statlow,nagios,www-data #'check_rrd' command definition define command{ command_name check_rrd.pl command_line $USER1$/check_rrd.pl -F $ARG1$ -w $ARG2$ -c $ARG3$ -a $ARG4$ -v $ARG5$ } -rwxr-xr-x 1 root root 7758 2007-01-12 14:02 check_rrd.pl define service{ use generic-service ; Name of service template to use host_name London_1 service_description RRD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups Administrators notification_interval 120 notification_period none notification_options c,r check_command check_rrd.pl!/var/lib/cacti/rra/london_3_cpu1_167.rrd!20!50!AVERAGE!3 nagios web: London_1 RRD CRITICAL 22-01-2007 12:42:25 0d 0h 44m 8s 3/3 (No output!) Thanks in advance. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 22 16:40:57 2007 From: nagios at ayksolutions.com (Artyom Khmelnitsky) Date: Mon, 22 Jan 2007 16:40:57 +0100 (CET) Subject: =?iso-8859-1?q?Adding_Contacts_?= Message-ID: <20070122154057.412844F4046@desire.netways.de> Sorry for posting again but was not able to reply to nagios_users at lists.sourceforge.net via email for some reason. Here's the Contact issue continued. I'm sure that I'm just missing something simple, just don't know what. Thanks for the help Max, I did just that. Added them under contactgroups and then also in contacts.cfg seperated by a comma for the contact. For some reason, no emails are being sent still. here's what I have in my contactgroups.cfg define contactgroup{ contactgroup_name localadmin alias Site Administrator members nagios, monitor } here's my contact.cfg define contact{ contact_name monitor alias AYK monitoring host_notification_period 24x7 service_notification_period 24x7 service_notification_options w,u,c,r,f host_notification_options d,u,r,f service_notification_commands notify-by-email host_notification_commands host-notify-by-email email monitor at mydomain.com } Any ideas what may be wrong or why they are not being sent? I'll check the mail logs, but the email account does work. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Mon Jan 22 16:46:41 2007 From: btmanmeh at verizon.net (Max H.) Date: Mon, 22 Jan 2007 10:46:41 -0500 Subject: Adding contacts In-Reply-To: <45B4D543.90605@ayksolutions.com> References: <20070121231525.B9D454F4046@desire.netways.de> <45B3F714.1090903@verizon.net> <45B4D543.90605@ayksolutions.com> Message-ID: <45B4DC61.3040807@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 nagios wrote: > Any ideas what may be wrong or why they are not being sent? I'll check > the mail logs, but the email account does work. That seems ok to me. Like you mentioned, check your mail logs and see what's going on. Also, check your nagios log (mine is located at/var/log/nagios/nagios.log), and see if the actual alerts are being generated. Aside from that, your contact setup looks ok to me. Except, where is your nagios contact definition? You showed the contact "monitor," but not "nagios." I'm not sure how Nagios handles non-existent contacts being specified within the contactgroup. It should error out. Dumb question, but you have checked your configurations? nagios -v nagios.cfg from within your configuration directory? Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFFtNxhHoeeepPau2ERAjkDAJ44nBiz8tJhWgf7CK9fqJBaiKZhfACgwk0w Lkj7P8y2UPk5Tvg9vmB0pUU= =XVbW -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From btmanmeh at verizon.net Mon Jan 22 16:59:05 2007 From: btmanmeh at verizon.net (Max H.) Date: Mon, 22 Jan 2007 10:59:05 -0500 Subject: Adding contacts In-Reply-To: <45B4DCF9.6090409@ayksolutions.com> References: <20070121231525.B9D454F4046@desire.netways.de> <45B3F714.1090903@verizon.net> <45B4D543.90605@ayksolutions.com> <45B4DC61.3040807@verizon.net> <45B4DCF9.6090409@ayksolutions.com> Message-ID: <45B4DF49.4040908@verizon.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 nagios wrote: > Yeah, nagios is declared, I just didn't put it up. Alerts are being > generated as I have it sent to my PDA and those work fine. It compiles > fine as well. So, will have to check the logs I guess. Make sure you click Reply All on your e-mail client, otherwise the list can't benefit from our replies. I get in a hurry and forget to do this sometimes as well. Some get really mad about it, but just wanted to remind you. :) Hmm, yeah then I'd make sure you check the logs and see what's going on because that seems ok. I don't think it would matter, but make sure you don't have a space between your members. For example you have: members nagios, monitor Try without a space: members nagios,monitor I don't know if spaces after the commas matter. The examples show no spaces. Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFFtN9JHoeeepPau2ERAuQ4AJsFS/4zJf6tizTczU2Uk/Q6CZU7twCgtJ/3 YK83wPdxe/FY/yB5Rk1Y1Rw= =81AP -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ait at p2ee.org Mon Jan 22 17:17:49 2007 From: ait at p2ee.org (Alejandro Imass) Date: Mon, 22 Jan 2007 12:17:49 -0400 Subject: Using the Trending Graph Message-ID: <1169482669.32676.30.camel@localhost.localdomain> Hi, new to Nagios so please bear with me. I queried the list archives and there were some similar threads but several with no answers so I hope I have better luck. Nagios Version: 2.5, from distro binary distribution Platform: Debian Linux Sarge 3.1r4 Stable Problem: - If I run the graph with First assumed host state: Unspecified I get 100% Indeterminate - If I run the graph with First assumed host state: Host Up I get 100% Up - If I run the graph with First assumed host state: Host Down I get 100% Down - If I run the graph with First assumed host state: Unreachable I get 100% Unreachable etc.. Obviously something is not working properly. I want a trend of the different states in time so I can give my ISP some info on where the problem is and see if we can discount their failures from our bill ;-] Important note and possible lead to the root cause: I used the default logging options in my config: log_file=/var/log/nagios2/nagios.log log_rotation_method=d log_archive_path=/var/log/nagios2/archives Nevertheless, this configuration did NOT store the archives in archives directory as expected so I changed to: log_archive_path=/var/log/nagios2/ This did NOT work either because the nagios web interface was expecting log names like: nagios-01-19-2007-00.log instead of the ones nagios has been generating which are of the form: nagios.log.X.gz I decompressed all the gz files and create soft links so the web interface could display past notifications: poseidon:/var/log/nagios2# ls -l total 140 lrwxrwxrwx 1 root adm 12 2007-01-22 09:54 nagios-01-19-2007-00.log -> nagios.log.4 lrwxrwxrwx 1 root adm 12 2007-01-22 09:53 nagios-01-20-2007-00.log -> nagios.log.3 lrwxrwxrwx 1 root adm 12 2007-01-22 09:52 nagios-01-21-2007-00.log -> nagios.log.2 lrwxrwxrwx 1 root adm 12 2007-01-22 09:50 nagios-01-22-2007-00.log -> nagios.log.1 -rw-r--r-- 1 nagios adm 9265 2007-01-22 11:17 nagios.log -rw-r--r-- 1 nagios adm 52767 2007-01-22 06:25 nagios.log.1 -rw-r--r-- 1 nagios adm 45689 2007-01-22 06:25 nagios.log.2 -rw-r--r-- 1 nagios adm 10469 2007-01-21 06:25 nagios.log.3 -rw-r--r-- 1 nagios adm 10419 2007-01-20 06:25 nagios.log.4 It is my guess that my log problem is related to the trending problem given some of the threads that I read on the user's mailing list archives. Any help greatly appreciated. Perhaps there is some extended documentation on the trending interface and on the log file configuration from that included in the package install? Thanks, Alejandro Imass Caracas, Venezuela ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jay.radcliffe at gmail.com Mon Jan 22 17:08:38 2007 From: jay.radcliffe at gmail.com (Jay Radcliffe) Date: Mon, 22 Jan 2007 11:08:38 -0500 Subject: Nagios Modification for No Host Dependency? Message-ID: <3075aa7f0701220808p16ee6fc9h9ae586be6e2292ee@mail.gmail.com> Hello, I have been running a fairly large Nagios setup (40,000 service checks 4500 hosts) and I wanted to see if anyone has worked on a certain "problem". When nagios runs service checks and gets no response from a service check, it stops working other service checks until it can determine if that host that had the timeout is up or not. After reading the archives I know that other people have ran into this situation. The reason it puts all service checks on hold is due to the feature of dependencies. If there is a host down then nagios assumes that there could be other hosts/services dependent on that host, thus it stops checking services until it can determine if that host is up. Previous posts have indicated that this is a feature, not a bug. While I agree that this is usually the case there are some special circumstances. In my situation there are no host dependencies. I would prefer nagios to keep running service checks while it runs through the host checks to see if the service check timeout is due to the host being down. I wanted to see if there is a patch or source code modification that would take this action. Obviously I would prefer it to be something configurable in the nagios.cfg file (ignorehostdependancy=0/1) but that might be harder then just making a source code tweak. Before I went digging in the source, I wanted to see if anyone else had tried this. Jay Radcliffe ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Mon Jan 22 17:17:58 2007 From: nagios at ayksolutions.com (nagios) Date: Mon, 22 Jan 2007 11:17:58 -0500 Subject: Adding contacts In-Reply-To: <45B4DF49.4040908@verizon.net> References: <20070121231525.B9D454F4046@desire.netways.de> <45B3F714.1090903@verizon.net> <45B4D543.90605@ayksolutions.com> <45B4DC61.3040807@verizon.net> <45B4DCF9.6090409@ayksolutions.com> <45B4DF49.4040908@verizon.net> Message-ID: <45B4E3B6.8080601@ayksolutions.com> Max H. wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > nagios wrote: > >> Yeah, nagios is declared, I just didn't put it up. Alerts are being >> generated as I have it sent to my PDA and those work fine. It compiles >> fine as well. So, will have to check the logs I guess. >> > > Make sure you click Reply All on your e-mail client, otherwise the list > can't benefit from our replies. I get in a hurry and forget to do this > sometimes as well. Some get really mad about it, but just wanted to > remind you. :) > > Hmm, yeah then I'd make sure you check the logs and see what's going on > because that seems ok. I don't think it would matter, but make sure you > don't have a space between your members. > > For example you have: > members nagios, monitor > > Try without a space: > members nagios,monitor > > I don't know if spaces after the commas matter. The examples show no spaces. > > Max > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org > > iD8DBQFFtN9JHoeeepPau2ERAuQ4AJsFS/4zJf6tizTczU2Uk/Q6CZU7twCgtJ/3 > YK83wPdxe/FY/yB5Rk1Y1Rw= > =81AP > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Ah yes, I'll try without the space, thanks! And thanks for the heads up on the reply-all :) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 17:27:26 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 10:27:26 -0600 Subject: Adding contacts Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Artyom Khmelnitsky > Sent: Sunday, January 21, 2007 5:15 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Adding contacts > > Hello, > > Is it possible to declare multiple email contacts for a single contact? > For instance: > > email myname at domain.com, admin at domain.com Yes, if your notification command supports it. For example, /bin/mail, the standard mail program used in notifications, expects multiple addresses to use multiple -c or -b args -- mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr... In your example, you could pass $CONTACTEMAIL$ to a wrapper script that split the comma separated addresses, used one as the to-addr and created appropriate -c args for the rest before calling /bin/mail. The other recommendation for multiple contacts in a group is usually easier for most. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 17:35:18 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 10:35:18 -0600 Subject: nagios.cmd external Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Sunday, January 21, 2007 5:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios.cmd external > > Hi all, i have nagios 2.4 > > I need want to change and input settings via the web interface like > scheduale downtime etc, which i read that the external command does this i > enabled it in nagiod.cfg =1 > but i aslo found out that you need to create a nagios.cmd file and give it > directory permission , located in one of the folders that keeps this log > > my question is how do i create this file and make it point to external > command so when i do isue an extenal command on web interface Please read the documentation for the section titled 'External Commands'. It answers all your questions. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Mon Jan 22 17:42:13 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 22 Jan 2007 16:42:13 +0000 Subject: ANNOUNCE: Nagios Looking Glass 1.0.0 released! Message-ID: <45B4E965.7080400@mailnetwork.co.uk> With immediate effect, Nagios Looking Glass v1.0.0 is available for download! The Important Bits === ========= ==== The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see upgrading.txt in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under "Documentation" and the majority of it still applies for 1.0.0. More Detail ==== ====== NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a "network summary" view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=5 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. Thanks to everyone who's beta-tested over the last few months, to Dave Green for the Safari testing, and thanks to Mark Novak for the documentation. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmap Enjoy!! -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 17:47:46 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 10:47:46 -0600 Subject: Using the Trending Graph Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Alejandro Imass > Sent: Monday, January 22, 2007 10:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Using the Trending Graph > > This did NOT work either because the nagios web interface was expecting > log names like: > > nagios-01-19-2007-00.log Yes, it is. > instead of the ones nagios has been generating which are of the form: > > nagios.log.X.gz Yes, this is a problem. Nagios is not creating these. > I decompressed all the gz files and create soft links so the web > interface could display past notifications: > > poseidon:/var/log/nagios2# ls -l > total 140 > lrwxrwxrwx 1 root adm 12 2007-01-22 09:54 nagios-01-19-2007-00.log > -> nagios.log.4 > lrwxrwxrwx 1 root adm 12 2007-01-22 09:53 nagios-01-20-2007-00.log > -> nagios.log.3 > lrwxrwxrwx 1 root adm 12 2007-01-22 09:52 nagios-01-21-2007-00.log > -> nagios.log.2 > lrwxrwxrwx 1 root adm 12 2007-01-22 09:50 nagios-01-22-2007-00.log > -> nagios.log.1 > -rw-r--r-- 1 nagios adm 9265 2007-01-22 11:17 nagios.log > -rw-r--r-- 1 nagios adm 52767 2007-01-22 06:25 nagios.log.1 > -rw-r--r-- 1 nagios adm 45689 2007-01-22 06:25 nagios.log.2 > -rw-r--r-- 1 nagios adm 10469 2007-01-21 06:25 nagios.log.3 > -rw-r--r-- 1 nagios adm 10419 2007-01-20 06:25 nagios.log.4 Nagios is not creating the .tar.gz files, nor is it rotating the logs as above. You need to figure out what is and stop it. My guess would be logrotate. Nagios must have the uncompressed files in the archive directory with the proper names (nagios handles this) for historical reporting. > It is my guess that my log problem is related to the trending problem > given some of the threads that I read on the user's mailing list > archives. Yes, you're correct. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 17:51:18 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 10:51:18 -0600 Subject: Nagios Modification for No Host Dependency? Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jay Radcliffe > Sent: Monday, January 22, 2007 10:09 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Modification for No Host Dependency? > > Hello, > In my situation there are no host dependencies. I would prefer nagios > to keep running service checks while it runs through the host checks > to see if the service check timeout is due to the host being down. I > wanted to see if there is a patch or source code modification that > would take this action. Obviously I would prefer it to be something This will be supported under nagios-3. This is a significant change and is unlikely to be backported. See the PDF at for more information. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 22 18:30:12 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Mon, 22 Jan 2007 12:30:12 -0500 Subject: nagios.cmd external In-Reply-To: References: Message-ID: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> ok this is how far i got with the documentation but same error keeps coming up when i try to put in external command ex: comment in host: Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for update! ok and here is what i have for my permission set since thats indicating to be the problem *> ls -al* total 612 drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:20 . drwxr-xr-x 6 root root 4096 Jan 21 04:02 .. drwxr-xr-x 2 nagios nagios 4096 Jan 22 00:00 archives -rw-rw-r-- 1 nagios nagios 238 Jan 21 09:18 comments.dat -rw------- 1 nagios nagios 16161 Jan 2 09:45 dead.letter -rw-rw-r-- 1 nagios nagios 239 Nov 1 19:59 downtime.dat -rw-rw-r-- 1 nagios nagios 24965 Jan 22 12:12 nagios.log -rw------- 1 nagios nagios 18260 Jan 2 13:34 nagios.tmpXc4VgH -rw-r--r-- 1 nagios nagios 146210 Jan 22 11:53 objects.cache -rw------- 1 nagios nagios 180872 Jan 22 11:53 retention.dat drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 rw -rw-rw-r-- 1 nagios nagios 173636 Jan 22 12:20 status.dat *> cd rw* *> ls* nagios.cmd *> ls -al* total 16 drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 . drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:21 .. prw-rw---- 1 nagios nagiocmd 0 Jan 22 11:53 nagios.cmd everything is how it suppose to be as shown in the manual need help nagios.cmd file is there just can not edit anything and i have external_command enables and interval check set to -1 thanks On 1/22/07, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > > Sent: Sunday, January 21, 2007 5:33 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios.cmd external > > > > Hi all, i have nagios 2.4 > > > > I need want to change and input settings via the web interface like > > scheduale downtime etc, which i read that the external command does > this i > > enabled it in nagiod.cfg =1 > > but i aslo found out that you need to create a nagios.cmd file and > give it > > directory permission , located in one of the folders that keeps this > log > > > > my question is how do i create this file and make it point to external > > command so when i do isue an extenal command on web interface > > Please read the documentation for the section titled 'External > Commands'. It answers all your questions. > > -- > Marc > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 22 18:43:56 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 22 Jan 2007 08:43:56 -0900 Subject: nagios.cmd external In-Reply-To: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> Message-ID: <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> On Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote: > ok and here is what i have for my permission set since thats > indicating to be the problem > > > ls -al > total 612 > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:20 . > drwxr-xr-x 6 root root 4096 Jan 21 04:02 .. > drwxr-xr-x 2 nagios nagios 4096 Jan 22 00:00 archives > -rw-rw-r-- 1 nagios nagios 238 Jan 21 09:18 comments.dat > -rw------- 1 nagios nagios 16161 Jan 2 09:45 dead.letter > -rw-rw-r-- 1 nagios nagios 239 Nov 1 19:59 downtime.dat > -rw-rw-r-- 1 nagios nagios 24965 Jan 22 12:12 nagios.log > -rw------- 1 nagios nagios 18260 Jan 2 13:34 nagios.tmpXc4VgH > -rw-r--r-- 1 nagios nagios 146210 Jan 22 11:53 objects.cache > -rw------- 1 nagios nagios 180872 Jan 22 11:53 retention.dat > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 rw > -rw-rw-r-- 1 nagios nagios 173636 Jan 22 12:20 status.dat > > cd rw > > ls > nagios.cmd > > ls -al > total 16 > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 . > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:21 .. > prw-rw---- 1 nagios nagiocmd 0 Jan 22 11:53 nagios.cmd > > > everything is how it suppose to be as shown in the manual > > need help nagios.cmd file is there just can not edit anything and i > have external_command enables and interval check set to -1 > > > thanks I'm coming into this discussion late, and haven't read all the back messages, so I apologize if this has already been asked, but is the user your webserver runs under in the nagiocmd group? ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 ----------------------------------------------- > > > > > > > > > > > > > > > > > > > > On 1/22/07, Marc Powell wrote: > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > users- > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > > Sent: Sunday, January 21, 2007 5:33 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios.cmd external > > > > Hi all, i have nagios 2.4 > > > > I need want to change and input settings via the web interface like > > scheduale downtime etc, which i read that the external command does > this i > > enabled it in nagiod.cfg =1 > > but i aslo found out that you need to create a nagios.cmd file and > give it > > directory permission , located in one of the folders that keeps this > log > > > > my question is how do i create this file and make it point to > external > > command so when i do isue an extenal command on web interface > > Please read the documentation for the section titled 'External > Commands'. It answers all your questions. > > -- > Marc > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 22 19:05:39 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Mon, 22 Jan 2007 13:05:39 -0500 Subject: nagios.cmd external In-Reply-To: <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> Message-ID: <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> yeah i think thats the problem i am loging in as nagiosadmin but from what i copied and pasted from documentation in nagios created user nobody and nagios ' But when i log into nagios i am logging in as nagiosadmin not nobody or nagios i tried adding nagiosadmin with this command: */usr/sbin/usermod -G nagiocmd nagiosadmin* usermod: user nagiosadmin does not exist keeps giving me this error but i think difinitly this might be casuing the error can you show me what i can do to add the user to this group or check weather it has been added?? thanks On 1/22/07, Israel Brewster wrote: > > On Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote: > > > ok and here is what i have for my permission set since thats > > indicating to be the problem > > > > > ls -al > > total 612 > > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:20 . > > drwxr-xr-x 6 root root 4096 Jan 21 04:02 .. > > drwxr-xr-x 2 nagios nagios 4096 Jan 22 00:00 archives > > -rw-rw-r-- 1 nagios nagios 238 Jan 21 09:18 comments.dat > > -rw------- 1 nagios nagios 16161 Jan 2 09:45 dead.letter > > -rw-rw-r-- 1 nagios nagios 239 Nov 1 19:59 downtime.dat > > -rw-rw-r-- 1 nagios nagios 24965 Jan 22 12:12 nagios.log > > -rw------- 1 nagios nagios 18260 Jan 2 13:34 nagios.tmpXc4VgH > > -rw-r--r-- 1 nagios nagios 146210 Jan 22 11:53 objects.cache > > -rw------- 1 nagios nagios 180872 Jan 22 11:53 retention.dat > > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 rw > > -rw-rw-r-- 1 nagios nagios 173636 Jan 22 12:20 status.dat > > > cd rw > > > ls > > nagios.cmd > > > ls -al > > total 16 > > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 . > > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:21 .. > > prw-rw---- 1 nagios nagiocmd 0 Jan 22 11:53 nagios.cmd > > > > > > everything is how it suppose to be as shown in the manual > > > > need help nagios.cmd file is there just can not edit anything and i > > have external_command enables and interval check set to -1 > > > > > > thanks > > I'm coming into this discussion late, and haven't read all the back > messages, so I apologize if this has already been asked, but is the > user your webserver runs under in the nagiocmd group? > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service INC. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > ----------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 1/22/07, Marc Powell wrote: > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > > users- > > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > > > Sent: Sunday, January 21, 2007 5:33 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] nagios.cmd external > > > > > > Hi all, i have nagios 2.4 > > > > > > I need want to change and input settings via the web interface like > > > scheduale downtime etc, which i read that the external command does > > this i > > > enabled it in nagiod.cfg =1 > > > but i aslo found out that you need to create a nagios.cmd file and > > give it > > > directory permission , located in one of the folders that keeps this > > log > > > > > > my question is how do i create this file and make it point to > > external > > > command so when i do isue an extenal command on web interface > > > > Please read the documentation for the section titled 'External > > Commands'. It answers all your questions. > > > > -- > > Marc > > > > > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php? > > page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php? > > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > > _______________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 22 19:08:25 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 22 Jan 2007 12:08:25 -0600 Subject: nagios In-Reply-To: References: Message-ID: <3c4611bc0701221008j17c5df6ex785368e85f2921d8@mail.gmail.com> I'm using the following check command (in checkcommands.cfg): # 'check_dns' command definition define command{ command_name check_dns1 command_line $USER1$/check_dns -H www. define command{ command_name check_dns2 command_line $USER1$/check_dns -H www. Shouldn't that work to verify OUR DNS server is up and replying? Do I need both of them or shouldn't just the one work? Also, when looking at Service or Host Alert History I see a bunch of this: Program End[01-22-2007 11:35:01] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... Program Start[01-22-2007 11:35:01] Nagios 2.4 starting... (PID=3720) Program End[01-22-2007 11:25:01] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... Program Start[01-22-2007 11:25:01] Nagios 2.4 starting... (PID=1772) Program End[01-22-2007 11:15:01] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... Program Start[01-22-2007 11:15:01] Nagios 2.4 starting... (PID=32247) Program End[01-22-2007 11:05:02] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... Program Start[01-22-2007 11:05:02] Nagios 2.4 starting... (PID=30324) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 22 19:28:46 2007 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 22 Jan 2007 09:28:46 -0900 Subject: nagios.cmd external In-Reply-To: <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> Message-ID: <6C82C18D-6E4B-4C58-ABD2-0604E9D63287@frontierflying.com> On Jan 22, 2007, at 9:05 AM, Nedim Bicic wrote: > yeah i think thats the problem i am loging in as nagiosadmin but > from what i copied and pasted from documentation in nagios created > user nobody and nagios ' > > But when i log into nagios i am logging in as nagiosadmin not > nobody or nagios i tried adding nagiosadmin with this command: > > /usr/sbin/usermod -G nagiocmd nagiosadmin > usermod: user nagiosadmin does not exist > > keeps giving me this error > but i think difinitly this might be casuing the error can you show > me what i can do to add the user to this group or check weather it > has been added?? Yeah. The key here is that you need the user your webserver RUNS as, NOT the user you log into your webpages as. You can find this by looking at your httpd.conf file, the User directive. Usually it is either apache or www, but this can vary. once you have found that, use the command you tried above with that user to add it to the nagiocmd group. > > thanks > > > > > On 1/22/07, Israel Brewster wrote: On > Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote: > > > ok and here is what i have for my permission set since thats > > indicating to be the problem > > > > > ls -al > > total 612 > > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:20 . > > drwxr-xr-x 6 root root 4096 Jan 21 04:02 .. > > drwxr-xr-x 2 nagios nagios 4096 Jan 22 00:00 archives > > -rw-rw-r-- 1 nagios nagios 238 Jan 21 09:18 comments.dat > > -rw------- 1 nagios nagios 16161 Jan 2 09:45 dead.letter > > -rw-rw-r-- 1 nagios nagios 239 Nov 1 19:59 downtime.dat > > -rw-rw-r-- 1 nagios nagios 24965 Jan 22 12:12 nagios.log > > -rw------- 1 nagios nagios 18260 Jan 2 13:34 nagios.tmpXc4VgH > > -rw-r--r-- 1 nagios nagios 146210 Jan 22 11:53 objects.cache > > -rw------- 1 nagios nagios 180872 Jan 22 11:53 retention.dat > > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 rw > > -rw-rw-r-- 1 nagios nagios 173636 Jan 22 12:20 status.dat > > > cd rw > > > ls > > nagios.cmd > > > ls -al > > total 16 > > drwxrwsr-x 2 nagios nagiocmd 4096 Jan 22 11:53 . > > drwxr-xr-x 4 nagios nagios 4096 Jan 22 12:21 .. > > prw-rw---- 1 nagios nagiocmd 0 Jan 22 11:53 nagios.cmd > > > > > > everything is how it suppose to be as shown in the manual > > > > need help nagios.cmd file is there just can not edit anything and i > > have external_command enables and interval check set to -1 > > > > > > thanks > > I'm coming into this discussion late, and haven't read all the back > messages, so I apologize if this has already been asked, but is the > user your webserver runs under in the nagiocmd group? > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service INC. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > ----------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 1/22/07, Marc Powell wrote: > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > > users- > > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > > > Sent: Sunday, January 21, 2007 5:33 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] nagios.cmd external > > > > > > Hi all, i have nagios 2.4 > > > > > > I need want to change and input settings via the web interface > like > > > scheduale downtime etc, which i read that the external command > does > > this i > > > enabled it in nagiod.cfg =1 > > > but i aslo found out that you need to create a nagios.cmd file and > > give it > > > directory permission , located in one of the folders that keeps > this > > log > > > > > > my question is how do i create this file and make it point to > > external > > > command so when i do isue an extenal command on web interface > > > > Please read the documentation for the section titled 'External > > Commands'. It answers all your questions. > > > > -- > > Marc > > > > > > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn > cash > > http://www.techsay.com/default.php? > > page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/ > null > > > > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn > cash > > http://www.techsay.com/default.php? > > > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > > _______________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/ > null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Mon Jan 22 19:32:35 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 22 Jan 2007 18:32:35 +0000 Subject: nagios.cmd external In-Reply-To: <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> Message-ID: <45B50343.4040704@mailnetwork.co.uk> You may be connecting to Nagios using nagiosadmin, but that is a user under your webserver, not an OS user. If your Apache runs under the user "nobody", that is the user you need to add to the nagioscmd group. Nedim Bicic wrote: > yeah i think thats the problem i am loging in as nagiosadmin but from > what i copied and pasted from documentation in nagios created user > nobody and nagios ' > > But when i log into nagios i am logging in as nagiosadmin not nobody > or nagios i tried adding nagiosadmin with this command: > > */usr/sbin/usermod -G nagiocmd nagiosadmin* > usermod: user nagiosadmin does not exist > > keeps giving me this error > but i think difinitly this might be casuing the error can you show me > what i can do to add the user to this group or check weather it has > been added?? > > thanks > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 22 20:02:20 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 22 Jan 2007 20:02:20 +0100 (CET) Subject: nagios.cmd external In-Reply-To: <45B50343.4040704@mailnetwork.co.uk> References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> <45B50343.4040704@mailnetwork.co.uk> Message-ID: On Mon, 22 Jan 2007, Andy Shellam (Mailing Lists) wrote: > You may be connecting to Nagios using nagiosadmin, but that is a user > under your webserver, not an OS user. > If your Apache runs under the user "nobody", that is the user you need > to add to the nagioscmd group. A better suggestion is in fact to run apache as it's own user. Letting nobody run all your daemons was a poor security concept and has been abonded for years on almost any system I know of. It's like break one and get the rest of them for free. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Mon Jan 22 20:03:02 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Mon, 22 Jan 2007 17:03:02 -0200 Subject: Distributed Monitoring In-Reply-To: <20070122100839.GC1243@dkirhlarov.mow.oilspace.com> References: <591D8758FF6E69408854F8B2D5887B3F35BC08@BATEXCH.batelcojordan.jo> <20070122100839.GC1243@dkirhlarov.mow.oilspace.com> Message-ID: <1169492582.16787.24.camel@localhost> On Mon, 2007-01-22 at 13:08 +0300, Dmitriy Kirhlarov wrote: > > > I have one nagios server working in my company, and > I > > need to add another nagios server to monitor another servers in > other > > subnets, > > > > I don't know if there's any solution to have 2 nagios servers(1 > central > > nagios) and 1 monitor screen... it's mean the second server will > send > > all check results to the central nagios. > > It's work in our installation. > But, I don't find no one web config tool support this. :( I've tested monarch, and with wome tweaking you can generate configs for distributed and central nagios instances. You just tell monarch the file you are generating, and with something like cronned ssh/scp/rsync you can upload the config to your distributed server and reload the new config in an automated way. > It's not complicated. > > Look schema: > > Central Host (location1 + location2) > ^ ^ > | | > | | > location1 location2 > > You making service_template_locations and host_template_locations. On > central host and on locations it's different templates > (active_check_enable 0 and 1 correspondingly) Not necessarily that configuration. Central nagios can act as a fail-over active nagios instance if you configure it correctly. Like, if for some dark force, your distributed nagios instance fails to monitor correctly, the central instance can detect that (freshness_checking), and issue the active check instead of waiting any longer for the passive check to come up. > All checks for locations based on this templates. Also, you don't need to stick with nsca to send results from distributed to central nagios. You can do that with syslog-ng too. At my location, we have hibrid syslog-ng/nsca distributing passive check results to both instances of central nagios, that act redundantly. Fail over is coming soon :) HTH, Marcel AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at mitsein.net Mon Jan 22 21:18:08 2007 From: mark at mitsein.net (Mark) Date: Mon, 22 Jan 2007 13:18:08 -0700 Subject: consistent service logging across hosts In-Reply-To: References: Message-ID: <1dab01330701221218r45959c0dq76629964fcd5b79c@mail.gmail.com> so NFS mount my log dir? It would have to be from a third server I suppose. On 1/19/07, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mark > > Sent: Thursday, January 18, 2007 10:19 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] consistent service logging across hosts > > > > I have a service that can fail over between hosts that each have their > > own IP (if they failed over IP's this would be easy). It is very hard > > to get availability numbers for this service because of this. Are > > there any solutions to this? Another catch is that the service > > Check_cluster2 + a shared nagios log dir comes to mind. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mark "Blessed is he who finds happiness in his own foolishness, for he will always be happy." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 21:23:22 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 22 Jan 2007 15:23:22 -0500 Subject: Remote Linux Client Appears Down But Services Are Monitored Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B7E@PHSXMB5.partners.org> Hi there -- I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server that is running Fedora Core 5. The remote client in question is running NRPE 2.6 with plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to run with the -n option on the server as well as the client. NRPE is configured to run on the client via the /etc/rc.local file with the following syntax: /usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d The remote client appears in the web interface as down, but its monitored services appear as OK. I checked the remote client to make sure the services in question were those that were on the client, and everything appears to match up. I ran the plugins on the client from the server using check_nrpe from the command line, and the output from the commands came back without a problem. I also ran the plugins directly on the client without any problem. The web interface, for some reason, is seeing the client as down even though from the command line it appears the client is fine and easily monitored. What has caused this problem, and how can I fix it? Thanks. THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at mitsein.net Mon Jan 22 21:24:35 2007 From: mark at mitsein.net (Mark) Date: Mon, 22 Jan 2007 13:24:35 -0700 Subject: consistent service logging across hosts In-Reply-To: <1dab01330701221218r45959c0dq76629964fcd5b79c@mail.gmail.com> References: <1dab01330701221218r45959c0dq76629964fcd5b79c@mail.gmail.com> Message-ID: <1dab01330701221224q64e94614v1867eaf7e30707b6@mail.gmail.com> Wait, that would not work. I have a standby nagios server accepting passive check info for all the services that the active nagios server is monitoring. They are both writing to logs at the same time. I think I'd need something where I could send the availability logs to a third party, so to speak. On 1/22/07, Mark wrote: > so NFS mount my log dir? It would have to be from a third server I suppose. > > On 1/19/07, Marc Powell wrote: > > > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > bounces at lists.sourceforge.net] On Behalf Of Mark > > > Sent: Thursday, January 18, 2007 10:19 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] consistent service logging across hosts > > > > > > I have a service that can fail over between hosts that each have their > > > own IP (if they failed over IP's this would be easy). It is very hard > > > to get availability numbers for this service because of this. Are > > > there any solutions to this? Another catch is that the service > > > > Check_cluster2 + a shared nagios log dir comes to mind. > > > > -- > > Marc > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > -- > Mark > "Blessed is he who finds happiness in his own foolishness, for he will > always be happy." > -- Mark "Blessed is he who finds happiness in his own foolishness, for he will always be happy." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter at berghold.net Mon Jan 22 22:25:40 2007 From: Peter at berghold.net (Peter L. Berghold) Date: Mon, 22 Jan 2007 16:25:40 -0500 Subject: Nagios CGI authentication woes. Message-ID: <45B52BD4.20909@Berghold.Net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi folks, Just put up a new installation of Nagios (version 2.6) and it's not like I haven't done this before so there is obviously something I'm overlooking. When I set up authentication I did the same things I've done before (I think) but it ain't working. When I try to log in I see in the Apache error logs: [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to /nagios/cgi-bin/status.cgi failed, reason: verification of user id 'peter' not configured, referer: http://monitor.berghold.net/side.html and in the cgi.cfg file I've done this: authorized_for_system_information=* authorized_for_configuration_information=* authorized_for_system_commands=* authorized_for_all_services=* authorized_for_all_hosts=* authorized_for_all_service_commands=* authorized_for_all_host_commands=* which is not quite where I want to be but I've gotten there through desperation at this point. The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess file that looks like this: - -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess permissions wise and has the following contents: AuthName "Nagios Access" AuthType Basic AuthUserFile /local/nagios/etc/nagios.users require valid-user The nagios.users file has the requisite userids in it with passwords generated by htpasswd. I'm baffled at this point. From my experience this should work but it isn't. Is there something I'm overlooking? - -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Peter L. Berghold Peter at Berghold.Net "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFFtSvTUM9/01RIhaARAngyAKCqy74Fr08zqftXz8HZ/ikoz3SdqwCeL8IE cDDSPoFwKyjD2Mb6EWYsvoQ= =EUNJ -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: Peter.vcf Type: text/x-vcard Size: 239 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 22:34:32 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 15:34:32 -0600 Subject: Remote Linux Client Appears Down But Services AreMonitored Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Monday, January 22, 2007 2:23 PM > To: Nagios-Users (E-mail) > Subject: [Nagios-users] Remote Linux Client Appears Down But Services > AreMonitored > > Hi there -- > > I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server > that is > running Fedora Core 5. The remote client in question is running NRPE 2.6 > with > plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to > run > with the -n option on the server as well as the client. NRPE is configured > to > run on the client via the /etc/rc.local file with the following syntax: > > /usr/local/nrpe/bin/nrpe -n -c > /usr/local/nrpe/etc/nrpe.cfg -d > > The remote client appears in the web interface as down, but its monitored > services appear as OK. I checked the remote client to make sure the I am interpreting this to mean that the Host status for the remote host is CRITICAL but the services on the host, checked by NRPE, show as OK. If that is the case then the check_command in the host{} definition for the client does not accurately determine the status of the host. What is that check_command and does it work if you run it as the nagios user from your nagios machine? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Mon Jan 22 22:35:24 2007 From: daniel at ipv6-network.de (Daniel) Date: Mon, 22 Jan 2007 22:35:24 +0100 Subject: definition of notification Message-ID: <1627355414.20070122223524@ipv6-network.de> Hi all, is there a way to change the email template? I wanne see in the subject following info: Address: 127.0.0.1 in the normal notification emails is iz displayed as text and i cant find the email-template f?r $ADDRESS$ bzw it wont work.. -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 22:43:55 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 15:43:55 -0600 Subject: Nagios CGI authentication woes. Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Peter L. Berghold > Sent: Monday, January 22, 2007 3:26 PM > To: nagios Users Mailing List > Subject: [Nagios-users] Nagios CGI authentication woes. > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi folks, > > Just put up a new installation of Nagios (version 2.6) and it's not like > I haven't done this before so there is obviously something I'm > overlooking. > > When I set up authentication I did the same things I've done before (I > think) but it ain't working. When I try to log in I see in the Apache > error logs: > > [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to > /nagios/cgi-bin/status.cgi failed, reason: verification of user id > 'peter' not configured, referer: http://monitor.berghold.net/side.html > [chop] > The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess > file that looks like this: > > - -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess > > permissions wise and has the following contents: > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /local/nagios/etc/nagios.users > require valid-user Is that *really* the path to nagios.users? I would expect that to be /usr/local/nagios/etc/nagios.users. I place my bets here ;) > > The nagios.users file has the requisite userids in it with passwords > generated by htpasswd. > > I'm baffled at this point. From my experience this should work but it > isn't. Is there something I'm overlooking? Are you using Apache-2.x? I googled for the error and that would appear to be possible. The auth configuration changed in 2.x from 1.3 -- http://httpd.apache.org/docs/2.2/howto/auth.html The sample .htaccess file on that page implies that you need something like -- AuthType Basic AuthName "Restricted Files" AuthBasicProvider file AuthUserFile /local/nagios/etc/nagios.users Require valid-user Hope one of those two helps. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 22:47:20 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 15:47:20 -0600 Subject: definition of notification Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Daniel > Sent: Monday, January 22, 2007 3:35 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] definition of notification > > Hi all, > > is there a way to change the email template? Yes, just take a look at your notification command definitions. If it's using /bin/mail, the subject is specified after the -s switch. > I wanne see in the subject following info: > > Address: 127.0.0.1 > > in the normal notification emails is iz displayed as text > and i cant find the email-template f?r $ADDRESS$ bzw it wont work.. All available macros are listed at http://nagios.sourceforge.net/docs/2_0/macros.html -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandler at chapman.edu Mon Jan 22 22:51:54 2007 From: chandler at chapman.edu (Jay Chandler) Date: Mon, 22 Jan 2007 13:51:54 -0800 Subject: Nagios CGI authentication woes. In-Reply-To: References: Message-ID: <45B531FA.20207@chapman.edu> Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Peter L. Berghold >> Sent: Monday, January 22, 2007 3:26 PM >> To: nagios Users Mailing List >> Subject: [Nagios-users] Nagios CGI authentication woes. >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi folks, >> >> Just put up a new installation of Nagios (version 2.6) and it's not >> > like > >> I haven't done this before so there is obviously something I'm >> overlooking. >> >> When I set up authentication I did the same things I've done before (I >> think) but it ain't working. When I try to log in I see in the Apache >> error logs: >> >> [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to >> /nagios/cgi-bin/status.cgi failed, reason: verification of user id >> 'peter' not configured, referer: http://monitor.berghold.net/side.html >> >> > > [chop] > > >> The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess >> file that looks like this: >> >> - -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess >> >> permissions wise and has the following contents: >> >> AuthName "Nagios Access" >> AuthType Basic >> AuthUserFile /local/nagios/etc/nagios.users >> require valid-user >> > > Is that *really* the path to nagios.users? I would expect that to be > /usr/local/nagios/etc/nagios.users. I place my bets here ;) I'd go one further and bet it's /usr/local/nagios/etc/nagios/users. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler at chapman.edu Today's Excuse: excess surge protection ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 22:55:55 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 22 Jan 2007 16:55:55 -0500 Subject: Remote Linux Client Appears Down But ServicesAreMonitored In-Reply-To: References: Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B82@PHSXMB5.partners.org> > I am interpreting this to mean that the Host status for the remote host is > CRITICAL but the services on the host, checked by NRPE, show as OK. > If that is the case then the check_command in the host{} definition for > the client does not accurately determine the status of the host. What is > that check_command and does it work if you run it as the nagios user from > your nagios machine? If I understand you correctly, you are referring to the check-host-alive command in the hosts.cfg file. I'm sorry if I sound like and idiot, but there is no check_host_alive plugin in the libexec directory. What command should I run in this case? I did run the plugins on the server and client as the nagios user, and both came back without errors. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, January 22, 2007 4:35 PM To: Nagios-Users (E-mail) Subject: Re: [Nagios-users] Remote Linux Client Appears Down But ServicesAreMonitored > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Monday, January 22, 2007 2:23 PM > To: Nagios-Users (E-mail) > Subject: [Nagios-users] Remote Linux Client Appears Down But Services > AreMonitored > > Hi there -- > > I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server > that is > running Fedora Core 5. The remote client in question is running NRPE 2.6 > with > plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to > run > with the -n option on the server as well as the client. NRPE is configured > to > run on the client via the /etc/rc.local file with the following syntax: > > /usr/local/nrpe/bin/nrpe -n -c > /usr/local/nrpe/etc/nrpe.cfg -d > > The remote client appears in the web interface as down, but its monitored > services appear as OK. I checked the remote client to make sure the I am interpreting this to mean that the Host status for the remote host is CRITICAL but the services on the host, checked by NRPE, show as OK. If that is the case then the check_command in the host{} definition for the client does not accurately determine the status of the host. What is that check_command and does it work if you run it as the nagios user from your nagios machine? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Mon Jan 22 23:19:35 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Mon, 22 Jan 2007 17:19:35 -0500 Subject: nagios.cmd external In-Reply-To: References: <7abcf48e0701220930s21c114f7p1adeaab355f502ce@mail.gmail.com> <560CE475-FD65-4468-AAA6-4463DBC098B7@frontierflying.com> <7abcf48e0701221005u104063f7rc3e5e39e6a97f25b@mail.gmail.com> <45B50343.4040704@mailnetwork.co.uk> Message-ID: <7abcf48e0701221419o52150d89t9a8204cf2cc4dfd5@mail.gmail.com> thanks for the advice guys it was apache that needed to be added to the group it works now i can finnaly add comments and do external commands thanks On 1/22/07, Hugo van der Kooij wrote: > > On Mon, 22 Jan 2007, Andy Shellam (Mailing Lists) wrote: > > > You may be connecting to Nagios using nagiosadmin, but that is a user > > under your webserver, not an OS user. > > If your Apache runs under the user "nobody", that is the user you need > > to add to the nagioscmd group. > > A better suggestion is in fact to run apache as it's own user. Letting > nobody run all your daemons was a poor security concept and has been > abonded for years on almost any system I know of. > > It's like break one and get the rest of them for free. > > Hugo. > > -- > hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ > This message is using 100% recycled electrons. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Mon Jan 22 23:54:41 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Mon, 22 Jan 2007 20:54:41 -0200 Subject: Remote Linux Client Appears Down But ServicesAre Monitored In-Reply-To: <9C63A4713C4E3342B90428CE44806A7302679B7E@PHSXMB5.partners.org> References: <9C63A4713C4E3342B90428CE44806A7302679B7E@PHSXMB5.partners.org> Message-ID: <1169506481.16787.54.camel@localhost> Is execute_host_checks disabled? On Mon, 2007-01-22 at 15:23 -0500, Kaplan, Andrew H. wrote: > Hi there -- > > I have Nagios 2.6 with plugins 1.4.5, and NRPE 2.6 installed on a server that is > running Fedora Core 5. The remote client in question is running NRPE 2.6 with > plugins 1.4.5 on a Fedora Core 2 operating system. NRPE is configured to run > with the -n option on the server as well as the client. NRPE is configured to > run on the client via the /etc/rc.local file with the following syntax: > > /usr/local/nrpe/bin/nrpe -n -c > /usr/local/nrpe/etc/nrpe.cfg -d > > The remote client appears in the web interface as down, but its monitored > services appear as OK. I checked the remote client to make sure the services in > question > were those that were on the client, and everything appears to match up. I ran > the plugins on the client from the server using check_nrpe from the command > line, and the output from the commands came back without a problem. I also ran > the plugins directly on the client without any problem. > > The web interface, for some reason, is seeing the client as down even though > from the command line it appears the client is fine and easily monitored. What > has caused this problem, and how can I fix it? Thanks. > > > > > > > THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Tue Jan 23 00:00:57 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Mon, 22 Jan 2007 21:00:57 -0200 Subject: consistent service logging across hosts In-Reply-To: <1dab01330701221224q64e94614v1867eaf7e30707b6@mail.gmail.com> References: <1dab01330701221218r45959c0dq76629964fcd5b79c@mail.gmail.com> <1dab01330701221224q64e94614v1867eaf7e30707b6@mail.gmail.com> Message-ID: <1169506857.16787.61.camel@localhost> On Mon, 2007-01-22 at 13:24 -0700, Mark wrote: > Wait, that would not work. I have a standby nagios server accepting > passive check info for all the services that the active nagios server > is monitoring. They are both writing to logs at the same time. If your active servers are sending check results passively to the standby nagios server, so the one log that matters is the one that the passive standby nagios server logs, because, if you ever needs to grow your distributed nagios active pool, you should just point the ocsp command to the standby nagios server for it to log all your active checks passively. We have 11 distributed active nagios servers sending (but not logging) check results to one central nagios that logs everything and keeps all the services aggregated within the same Web-GUI for the NOC people to ticketing who they might need to. Notifications and logging are handled by the central server. > > I think I'd need something where I could send the availability logs to > a third party, so to speak. > > On 1/22/07, Mark wrote: > > so NFS mount my log dir? It would have to be from a third server I suppose. > > > > On 1/19/07, Marc Powell wrote: > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > > bounces at lists.sourceforge.net] On Behalf Of Mark > > > > Sent: Thursday, January 18, 2007 10:19 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] consistent service logging across hosts > > > > > > > > I have a service that can fail over between hosts that each have their > > > > own IP (if they failed over IP's this would be easy). It is very hard > > > > to get availability numbers for this service because of this. Are > > > > there any solutions to this? Another catch is that the service > > > > > > Check_cluster2 + a shared nagios log dir comes to mind. > > > > > > -- > > > Marc > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > -- > > Mark > > "Blessed is he who finds happiness in his own foolishness, for he will > > always be happy." > > > > AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 00:11:09 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 17:11:09 -0600 Subject: Remote Linux Client Appears Down But ServicesAreMonitored Message-ID: > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Monday, January 22, 2007 3:56 PM > To: Marc Powell; Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Remote Linux Client Appears Down But > ServicesAreMonitored > > > I am interpreting this to mean that the Host status for the remote host > is > > CRITICAL but the services on the host, checked by NRPE, show as OK. > > If that is the case then the check_command in the host{} definition for > > the client does not accurately determine the status of the host. What is > > that check_command and does it work if you run it as the nagios user > from > > your nagios machine? > > If I understand you correctly, you are referring to the check-host-alive > command > in the hosts.cfg file. I'm sorry if I sound like and idiot, but there is > no > check_host_alive plugin in the libexec directory. What command should I > run in > this case? You'll have a file with all the command{} definitions in it (typically named commands.cfg or checkcommands.cfg). One of those command{} definitions will be named 'check-host-alive'. That command definition will specify a command_line that will be run to check if the host is alive. That command_line, substituting in proper variables as required, would be the command you should be testing as the nagios user. It's probably something like define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } In which case, as the nagios user, you'd run '/path/to/nagios/libexec/check_ping -H -w 3000.0,80% -c 5000.0,100% -p 1 Where is the value for 'address' specified in the client host{} definition. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From traxplayer at gmail.com Tue Jan 23 00:15:59 2007 From: traxplayer at gmail.com (=?ISO-8859-1?Q?Martin_M=F8ller_Pedersen?=) Date: Tue, 23 Jan 2007 00:15:59 +0100 Subject: [Nagiosplug-help] Cannot compile plugins In-Reply-To: <2ACC6C4EDD48B2488636E58DE63AA35E8DEECB@picasso-server.PicassoHR.local> References: <2ACC6C4EDD48B2488636E58DE63AA35E8DEECB@picasso-server.PicassoHR.local> Message-ID: > I have tried 1.4.4, 1.4.5 and the latest snapshot. Running Redhat 9 on a > 686. Crypto library is 0.9.8b [...] add the compiler switch -ldl to the various Makefiles and it will work. Regards Martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 00:20:28 2007 From: marc at ena.com (Marc Powell) Date: Mon, 22 Jan 2007 17:20:28 -0600 Subject: nagios Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Monday, January 22, 2007 12:08 PM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] nagios > > I'm using the following check command (in checkcommands.cfg): > > # 'check_dns' command definition > define command{ > command_name check_dns1 > command_line $USER1$/check_dns -H www. -s $HOSTADDRESS$ -a > > define command{ > command_name check_dns2 > command_line $USER1$/check_dns -H www. -s $HOSTADDRESS$ -a > > Shouldn't that work to verify OUR DNS server is up and replying? Do I > need both of them or shouldn't just the one work? It would have taken about a minute for you to Try And Find Out if it worked by running it manually yourself. To answer, yes, it works. You don't need both of them because they're identical. > Also, when looking at Service or Host Alert History I see a bunch of this: > > Program End[01-22-2007 11:35:01] Lockfile > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... > Program Start[01-22-2007 11:35:01] Nagios 2.4 starting... (PID=3720) > Program End[01-22-2007 11:25:01] Lockfile > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... > Program Start[01-22-2007 11:25:01] Nagios 2.4 starting... (PID=1772) > Program End[01-22-2007 11:15:01] Lockfile > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... > Program Start[01-22-2007 11:15:01] Nagios 2.4 starting... (PID=32247) > Program End[01-22-2007 11:05:02] Lockfile > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... > Program Start[01-22-2007 11:05:02] Nagios 2.4 starting... (PID=30324) Do you have multiple nagios daemons running? Looks like you do. Stop nagios, verify that all processes are gone, kill any that might remain, remove /usr/local/nagios/var/nagios.lock if it still exists and restart nagios. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Tue Jan 23 06:04:52 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Tue, 23 Jan 2007 12:04:52 +0700 Subject: Accessing /dev/ttyUSB0 to send SMS Message-ID: Dear Arno, Thx for your tips. It works with udev . Best Regards, Herman > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Arno Lehmann > Sent: Monday, January 22, 2007 5:05 PM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS > > Hallo, > > On 1/22/2007 10:52 AM, Herman (ISTD) wrote: > > May be sudo could solve this problem but not permanently, since sudo > > only add root rights to user for certain period of time. > > Is there any way to make devs such as serial line and USB controlled by > > certain user ? > > That's done by another part of the OS, for example udev. > > Basically you configure how device links are created for hot-plugged > devices. > > You'll have to tell us the OS and its version at least... or look up the > documentation for your system, or ask the mailing list / support / frum > for your OS. > > > Another question, is it common to run nagios as root ? > > Depends. > > I strongly adviso to not run Nagios as root - only processes that really > need root permissions should be run as such, and Nagios definitely does > not need root access to your system. > > Arno > > > Thx. > > > > Regards, > > > > Herman > > > > > >>-----Original Message----- > >>From: Andy Shellam (Mailing Lists) [mailto:andy.shellam- > >>lists at mailnetwork.co.uk] > >>Sent: Monday, January 22, 2007 4:12 PM > >>To: Herman (ISTD) > >>Cc: Nagios Users mailinglist > >>Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS > >> > >>Herman (ISTD) wrote: > >> > >>>Dear all, > >>> > >>>I use gnokii to send Nagios notification. Gnokii need to access > >>>/dev/ttyUSB0 in order to deliver message to Handphone. At present, I > >>>need to set nagios user to root group in order to accomplish this > > > > task. > > > >>>If the nagios user is not in root group, it could not access > >>>/dev/ttyUSB0. > >>> > >>>Previously when nagios user is not in root group, I tried to do some > >>>workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. > > > > Is > > > >>>there's any way to access /dev/ttyUSB0 without setting nagios user > > > > as > > > >>>root group ? > >>>Thank you. > >>> > >> > >>Will "sudo" not accomplish this? > > > > > > > > ------------------------------------------------------------------------ > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > IT-Service Lehmann al at its-lehmann.de > Arno Lehmann http://www.its-lehmann.de > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shasanbeg at gmail.com Tue Jan 23 06:11:52 2007 From: shasanbeg at gmail.com (Semir H.) Date: Tue, 23 Jan 2007 16:11:52 +1100 Subject: separating important from non-important hosts/services on tactical overview Message-ID: <359aca410701222111p39c2c882g1aaa9f6dd15af290@mail.gmail.com> Hi All - I was wondering if it is possible to not include some hosts/services in the Tactical Overview page. We use Nagios to monitor mostly production resources but there are a few dev and test resources in there as well. I was wondering if it is possible to NOT have the Tactical overview page report on warning/critical states for those dev/test hosts/services? We just want that page to report for the hosts we deem important to us but we still want to monitor all the hosts/services we do now and have detailed reports in the services page. Thanks Semir -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Tue Jan 23 06:13:14 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Tue, 23 Jan 2007 12:13:14 +0700 Subject: Several map views of Nagios Message-ID: I learned several commercial software of NMS could defined several views of Monitoring maps and customize it for certain need. I think it's a good idea. Let say we have hundreds of server to monitor, and it would be very crowded and quite invisible if we put all the servers in one monitoring map. So the idea is to classify the servers/network devices into several categories such as routers, servers related with App A, servers with App B. Then PIC for routers will only have to monitor the map with routers devices, the same thing applies to PIC for application A only need to monitor the map with App A servers. Is it possible for Nagios to do several map views ? Best Regards, Herman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 07:33:18 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 23 Jan 2007 01:33:18 -0500 Subject: Several map views of Nagios In-Reply-To: References: Message-ID: > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Herman (ISTD) > Sent: Monday, January 22, 2007 9:13 PM > To: Nagios-Users (E-mail) > Subject: [Nagios-users] Several map views of Nagios > > Is it possible for Nagios to do several map views ? Sure. Take a look at the map page, and you'll see boxes to show or hide all the hostgroups you've set up. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntserafica at yahoo.com Tue Jan 23 08:13:01 2007 From: ntserafica at yahoo.com (Nelson Serafica) Date: Mon, 22 Jan 2007 23:13:01 -0800 (PST) Subject: No host details Message-ID: <167026.60755.qm@web62406.mail.re1.yahoo.com> Good day, Just wondering why are there no details in my host detail links. I'm using Nagios 2.6. Never encountered this scenario before. Did I forgot to include something in my .cfg files??? See attached file for your reference. TIA ____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios.GIF Type: image/gif Size: 10529 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Vignesh.Kumar at in.flextronics.com Tue Jan 23 08:16:17 2007 From: Vignesh.Kumar at in.flextronics.com (Vignesh Kumar) Date: Tue, 23 Jan 2007 15:16:17 +0800 Subject: No host details In-Reply-To: <167026.60755.qm@web62406.mail.re1.yahoo.com> References: <167026.60755.qm@web62406.mail.re1.yahoo.com> Message-ID: Hi Nelson, This may be due to the following reason. NSclient (Nagios Client tool) may not be installed in the client machine. Thanks & Regards, P.Vignesh Kumar | +91-98943-58008 | VOIP 6666-914-5351 | Distributed Systems Support ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Nelson Serafica Sent: Tuesday, January 23, 2007 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] No host details Good day, Just wondering why are there no details in my host detail links. I'm using Nagios 2.6. Never encountered this scenario before. Did I forgot to include something in my .cfg files??? See attached file for your reference. TIA ________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 08:21:50 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 23 Jan 2007 02:21:50 -0500 Subject: No host details In-Reply-To: <167026.60755.qm@web62406.mail.re1.yahoo.com> References: <167026.60755.qm@web62406.mail.re1.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Nelson Serafica > Sent: Monday, January 22, 2007 11:13 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] No host details > > Good day, > > Just wondering why are there no details in my host detail > links. I'm using Nagios 2.6. Never encountered this scenario > before. Did I forgot to include something in my .cfg files??? > > See attached file for your reference. That's normal. Nagios normally won't run a host check unless a service check transitions into a non-OK state. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Tue Jan 23 09:10:41 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Tue, 23 Jan 2007 15:10:41 +0700 Subject: Several map views of Nagios Message-ID: Dear Patrick, Did you mean that we can groups several hosts as one hostgroup and then we can select only to view the hosts in the hostgroup at the Map. Previously I thought the hostgroup is used to define some correspond parameters of several hosts, just know that it was for display purpose. Thank you very much. Best Regards, Herman > -----Original Message----- > From: Morris, Patrick [mailto:patrick.morris at hp.com] > Sent: Tuesday, January 23, 2007 1:33 PM > To: Herman (ISTD); Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Several map views of Nagios > > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > > Of Herman (ISTD) > > Sent: Monday, January 22, 2007 9:13 PM > > To: Nagios-Users (E-mail) > > Subject: [Nagios-users] Several map views of Nagios > > > > Is it possible for Nagios to do several map views ? > > Sure. Take a look at the map page, and you'll see boxes to show or hide > all the hostgroups you've set up. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wetenschapper at gmail.com Tue Jan 23 10:02:35 2007 From: wetenschapper at gmail.com (De Wetenschapper) Date: Tue, 23 Jan 2007 10:02:35 +0100 Subject: different check_command output on host than on server Message-ID: <704e18b60701230102k5360416egcb18eee89af4985c@mail.gmail.com> hi guys, when I execute a certain command on the client itself it is OK, but when executed from the server I get an other output. I have no idea where to look for this, What is different from executing it from the server or on the client itself, or that I'm forgetting? I thought the output on the nagios server should be the same as the output of the script in the client?? script executed on the client (GD6): [root at BEEVSGD6 a125507]# /usr/lib/nagios/plugins/check_dell_sensors.pl OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; script ran from the server with nrpe: [root at BEEVSGD4 a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd6 -c check_omchassis ALARM: omreport could not obtain user name. -- omreport could not obtain user name.=Error!**; same script ran from the server but on an other machine(GD5) here it does work. [root at BEEVSGD4 a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd5 -c check_omchassis OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; I don't know where to look. Can someone point me in the right direction? Thanks in Advance, Jan Lenaerts -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Tue Jan 23 10:46:40 2007 From: edalb1979 at gmail.com (edalB) Date: Tue, 23 Jan 2007 11:46:40 +0200 Subject: Event Handlers In-Reply-To: <45B0FFC4.50004@googlemail.com> References: <45B0FFC4.50004@googlemail.com> Message-ID: Ok I have followed the white rabbit. I have followed the docs and I have modified the the script to work the way I need it to work for me. But still no luck. After trying allot of stuff I have now changed my config in the .cfg file and it looks like folloes. define service{ use local-service host_name imap-1.rba.ispafrica.net service_description HTTP event_handler_enabled 1 event_handler restart-httpd check_command check_http } Then the commands.cfg file looks like follows. define command{ command_name restart-httpd command_line /usr/local/nagios/libexec/restart-httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } But I still dont have any luck with the Event Handlers. Regards On 1/19/07, Hari Sekhon wrote: > > I was think that, I've done event handlers and the way you have tried to do > that is just wrong. Look at the docs, there is a template bash script to get > you started. That is what I based my event handlers on and it makes much > more sense. You can choose when to do certain actions, not every single time > the status changes which can be a heck of a lot. > > For example when one of my known problem websites fails, the event handler > only fires if it's critical and the plugin output tells me that a certain > condition has occurred. I don't do anything when it's a warning state or a > soft error or if the service check just timed out as sometimes happens since > the website isn't down or broken. > > Otherwise a congested pipe that causes the service check to time out and > temporarily go critical then results in you trashing the website and kicking > out users! > > Follow the white rabbit... I mean... follow the docs... > > > -h > Hari Sekhon > > > > Marc Powell wrote: > > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of edalB > Sent: Friday, January 19, 2007 7:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Event Handlers > > Hi all. > > I have created a event handler as a test to see how it works. The hard > part I have done. > > > [chop] > > > > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler restart-httpd > check_command check_http > } > > Do you have 'event_handler_enabled 1' in your local-service template? > You need it either there or in this definition. Enabling event handlers > in nagios.cfg isn't sufficient. You need to tell nagios which services > it should actually run them for. > > > > And the command > > > define command{ > command_name restart-httpd > command_line /usr/bin/ssh -p 222 -i > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > /etc/init.d/apache2 res > tart > } > > So now nagios still does not want to execute my command > > You really should follow the documented methodology for event handlers > (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html). > I'm not > sure the above is going to work and if it does, it will attempt to > restart httpd on any kind of status change, even WARNING -> OK. I'm sure > that you don't want that. Additionally, if you follow the documented way > you can easily send debugging output to a file so that you can see if > your event handler is being run, how and what it's doing. > > -- > Marc > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 23 11:51:10 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 23 Jan 2007 10:51:10 +0000 Subject: ANNOUNCE: Nagios Looking Glass 1.0.1 released! Message-ID: <45B5E89E.9050608@mailnetwork.co.uk> Nagios Looking Glass v1.0.1 is available for download! *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a possible vulnerability has been patched *** The Important Bits === ========= ==== The official project site is: http://www.nagioslookingglass.co.uk Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. The files on Nagios Exchange will be upgraded once the documentation has been released, so please download from the project site (above.) To upgrade from a previous version, please see UPGRADING.TXT in the distribution. The documentation is not currently in the distribution but will be added in the next few days. The 1.0.0#PRE administrator manual is still available on the NLG project website under "Documentation" and the majority of it still applies for 1.0.0. More Detail ==== ====== NLG is a Web-2.0 browser-based application that works in Firefox, IE, Safari and Konqueror. It shows visitors the status of your network without giving them access to the Nagios CGIs, and starts at a "network summary" view with the options to drill down into servers (hosts) and their metrics (services). NLG can easily be customised to match your company's look and feel, and is ideal for hosting companies who run Nagios. For the full changelog for this version, please see the CHANGELOG.TXT file in the distribution, or visit: http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8 Please see the 'Support' section on the NLG project website to see the best way to report bugs / request new features etc. To see where NLG is headed in the future, visit: http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2 Regards, Andy Shellam ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 15:03:52 2007 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 23 Jan 2007 09:03:52 -0500 Subject: Remote Linux Client Appears Down ButServicesAreMonitored In-Reply-To: References: Message-ID: <9C63A4713C4E3342B90428CE44806A7302679B84@PHSXMB5.partners.org> I ran the command in question, and it did time out. I believe I know why that is happening, and I am contacting the appropriate people to hopefully have it resolved. Until that happens, is there a workaround that I can put into place? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, January 22, 2007 6:11 PM To: Nagios-Users (E-mail) Subject: Re: [Nagios-users] Remote Linux Client Appears Down ButServicesAreMonitored > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Monday, January 22, 2007 3:56 PM > To: Marc Powell; Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Remote Linux Client Appears Down But > ServicesAreMonitored > > > I am interpreting this to mean that the Host status for the remote host > is > > CRITICAL but the services on the host, checked by NRPE, show as OK. > > If that is the case then the check_command in the host{} definition for > > the client does not accurately determine the status of the host. What is > > that check_command and does it work if you run it as the nagios user > from > > your nagios machine? > > If I understand you correctly, you are referring to the check-host-alive > command > in the hosts.cfg file. I'm sorry if I sound like and idiot, but there is > no > check_host_alive plugin in the libexec directory. What command should I > run in > this case? You'll have a file with all the command{} definitions in it (typically named commands.cfg or checkcommands.cfg). One of those command{} definitions will be named 'check-host-alive'. That command definition will specify a command_line that will be run to check if the host is alive. That command_line, substituting in proper variables as required, would be the command you should be testing as the nagios user. It's probably something like define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } In which case, as the nagios user, you'd run '/path/to/nagios/libexec/check_ping -H -w 3000.0,80% -c 5000.0,100% -p 1 Where is the value for 'address' specified in the client host{} definition. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE OF THIS INFORMATION. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 23 15:49:44 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Jan 2007 15:49:44 +0100 Subject: Nagios CGI authentication woes. In-Reply-To: <45B531FA.20207@chapman.edu> References: <45B531FA.20207@chapman.edu> Message-ID: <45B62088.60006@op5.se> Jay Chandler wrote: > Marc Powell wrote: >> >>> -----Original Message----- >>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >>> bounces at lists.sourceforge.net] On Behalf Of Peter L. Berghold >>> Sent: Monday, January 22, 2007 3:26 PM >>> To: nagios Users Mailing List >>> Subject: [Nagios-users] Nagios CGI authentication woes. >>> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Hi folks, >>> >>> Just put up a new installation of Nagios (version 2.6) and it's not >>> >> like >> >>> I haven't done this before so there is obviously something I'm >>> overlooking. >>> >>> When I set up authentication I did the same things I've done before (I >>> think) but it ain't working. When I try to log in I see in the Apache >>> error logs: >>> >>> [Mon Jan 22 16:18:26 2007] [error] [client 68.37.227.52] access to >>> /nagios/cgi-bin/status.cgi failed, reason: verification of user id >>> 'peter' not configured, referer: http://monitor.berghold.net/side.html >>> >>> >> [chop] >> >> >>> The cgi-bin directory (/local/nagios/sbin in my case) has an .htaccess >>> file that looks like this: >>> >>> - -rw-r--r-- 1 apache root 104 Jan 22 15:58 .htaccess >>> >>> permissions wise and has the following contents: >>> >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /local/nagios/etc/nagios.users >>> require valid-user >>> >> Is that *really* the path to nagios.users? I would expect that to be >> /usr/local/nagios/etc/nagios.users. I place my bets here ;) > I'd go one further and bet it's /usr/local/nagios/etc/nagios/users. > I put my money with htaccess=$(find /usr/local -type f -name .htaccess) path_to=$(find /usr/local -type f -name "*users") sed -i "s/\\(AuthUserFile \\).*/\1 $path_to/" $htaccess -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter at berghold.net Tue Jan 23 15:59:40 2007 From: Peter at berghold.net (Peter L. Berghold) Date: Tue, 23 Jan 2007 09:59:40 -0500 Subject: Nagios CGI authentication woes. In-Reply-To: <45B62088.60006@op5.se> References: <45B531FA.20207@chapman.edu> <45B62088.60006@op5.se> Message-ID: <45B622DC.4000207@Berghold.Net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Ericsson wrote: > > htaccess=$(find /usr/local -type f -name .htaccess) > path_to=$(find /usr/local -type f -name "*users") > sed -i "s/\\(AuthUserFile \\).*/\1 $path_to/" $htaccess > Actually... nagios on the system in question really is stored in /local and the full path really is /local/nagios/etc/nagios.users Just my quirky way of doing things. - -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Peter L. Berghold Peter at Berghold.Net "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFFtiLbUM9/01RIhaARAtxBAKC7XhUcrnQOiLy1qbGonmiED2k7KQCfTgdy 80DUizo9pkoAU/qT0V3fSAc= =ws7z -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: Peter.vcf Type: text/x-vcard Size: 239 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Tue Jan 23 16:32:28 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Tue, 23 Jan 2007 16:32:28 +0100 Subject: Memory leaks Message-ID: <20070123153228.GA18139@eric.schwarzvogel.de> Hi! (First off: if this should also go to nagios-devel, just yell at me.) Nagios 2.6 and 2.5 have memory leaks. They are not that big that within hours your machine will be swapping, but they degrade performance in other ways. First off, their approximate extent. 2.5 and 2.6 without perl cache have the smallest memory leaks. A fairly busy Nagios server (hardware quoted below) with about 3000 services on about 330 hosts will degrade from 330M used (that's *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 MB per hour. The very same machine behaves neutral if Nagios is not running, so it's definitely Nagios itself. Activating the embedded Perl interpreter and -cache will increase the amount of lost memory to about 5-6M per hour. In this case, however, sometimes the memory usage snaps back, i.e. some of the lost memory is collected. I've not yet found out what triggers the reclaim. Still, over the course of hours, more and more memory is lost. Still, it's roughly linear memory loss. And finally, there's the advanced permission patch. With that patch, memory leaking skyrockets to about 15M/hour. Now all of this could be alleviated by simply restarting Nagios every night. It's not actually a bugfix but merely doctoring on the symptoms, but still, it's pragmatic. Unfortunately, performance degradation is not just on the memory used front. With increased memory usage, check latency increases. In the worst case, this can mean that latency increases by 120s in about six hours. This has the net effect that for our case, we have to restart Nagios every two hours. For the case of 2.5 and 2.6 without the permissions patch, it's a lot less bad, but still bad enough to require restarting Nagios at least every eight hours. Without all the fancy stuff, we get to restarting Nagios every 24 hours, as described above. Further observations: the permission patch causes latency degradation to be directly correlated to amount of notifications, The more notifications, the quicker things get nasty. For vanilla Nagios, at least it's clear that in whatever way memory is wasted, it also slows Nagios down - a possibility would be a linked list that is walked and gets appended over and over. But I guess those with knowledge of the inner workings of Nagios have more clue about this than I do. The question that remains is, if this can (and will) be tackled before 3.0 is released. A related question is if Nagios 3 will be prone to the same problem. Any thoughts, ideas etc. are appreciated. Regards, Tobias PS: On a whim, I tried running Nagios through/in Valgrind but honestly got knocked over by the amount of info Valgrind spewed at me. PPS: Our setup uses only active service checks, notifications by mail (some of it to SMS gateways etc). All host checks are active yet only are executed if needed (the usual way Nagios works). All host checks are using ping. All plugins have a hard timeout of 10s. PPPS: Hardware specs of the machine I tested with: Dual dualcore Opteron 2.2GHz (Model 2214) 2GBytes of RAM (if there's anything else relevant, drop me a line) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Tue Jan 23 16:56:02 2007 From: daniel at ipv6-network.de (Daniel) Date: Tue, 23 Jan 2007 16:56:02 +0100 Subject: strange probs Message-ID: <142364337.20070123165602@ipv6-network.de> Hi there, i setup up following method for notifications: define command{ command_name notify-by-sms command_line /usr/bin/sudo /usr/local/sbin/sendsms $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ Service $SERVICEDESC$ is $SERVICESTATE$" he sends the sms and everthinks works BUT he dont display me the UP/DOWN message ($SERVICESTATE$) When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN text. -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Tue Jan 23 17:05:27 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Tue, 23 Jan 2007 11:05:27 -0500 Subject: problems with Nagios Looking Glass Message-ID: <7F477BD26F545A4C8E4779754A38EFB370D65C@PEPWMV00043.corp.pep.pvt> Hello. I've been trying to use Nagios Looking Glass and have so far been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. When I go to the client URL (http://nagioshost/nlg/client) it sits there working on it for 30 seconds and gives me back an error page which includes: The checksum I received with the feed is invalid compared to my local check. Network problems may be causing packet loss The long wait before the error was consistent with behavior in 1.0Pre and 1.0, but each version has given me different errors (or none at all I think with 1.0Pre). I'm running Nagios 2.6 with authentication to the Nagios "share" directory. I've got both the NLG client and server on the same box which is the same as the Nagios server itself. One thing I'm doing differently here (and maybe I can't do this) is that I put the NLG stuff *outside* of the nagios share directory. I tweaked my Apache config so that it would find 'nlg' as a separate URL with no authentication. So the NLG URLs would be something like http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php I modified the php include files per the 1.0PRE documentation (that's still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a little unclear about authentication here because I wasn't sure that NLG would need it as it's accessing files directly. That is, since the entire /nlg URL tree is unauthenticated and I thought NLG would access Nagios' files directly (i.e. not using the Nagios URLs) no authentication was necessary. I can't find any error logs and I'm having some difficulty figuring out how I might turn debugging on in the code to tell me what I might have done wrong. Any help would be greatly appreciated. thanks Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Tue Jan 23 17:17:29 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Tue, 23 Jan 2007 16:17:29 -0000 Subject: FW: Memory leaks Message-ID: -----Original Message----- From: nagios-users On Behalf Of Tobias Klausmann Sent: 23 January 2007 15:32 > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. I have also had problems with memory leaks, such that the kernel (2.6.0-42.0.3) reaches the stage of killing processes to try to preserve the system. In my experience the first processes killed are nagios and nsca. Our configuration is relatively large with just under 16,000 services and 750 hosts. As a consequence we run two slave servers which run the checks and report to the master; on the master all checks are passive except local checks. We have only seen the out of memory problems on the master. I had thought that the problems were caused by NagiosGrapher which we were running, but were not using; certainly the problem was reduced by removing that process from the mix. For us the problem seems to start (according to the message log) at about 4:45 in the morning, so perhaps there is another factor as well (cron jobs ?). Any input would be welcome, though I will continue to investigate as I have time. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Tue Jan 23 17:20:04 2007 From: daniel at ipv6-network.de (Daniel) Date: Tue, 23 Jan 2007 17:20:04 +0100 Subject: strange probs Message-ID: <1317245440.20070123172004@ipv6-network.de> Guten Tag Daniel, am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > Hi there, > i setup up following method for notifications: > define command{ > command_name notify-by-sms > command_line /usr/bin/sudo /usr/local/sbin/sendsms > $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ > Service $SERVICEDESC$ is $SERVICESTATE$" > he sends the sms and everthinks works BUT he dont display me > the UP/DOWN message ($SERVICESTATE$) > When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN > text. Mh i can set everthink after $SERVICEDESC$ and no variable is displayed.... ;( -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 23 17:22:12 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 23 Jan 2007 16:22:12 +0000 Subject: problems with Nagios Looking Glass In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB370D65C@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB370D65C@PEPWMV00043.corp.pep.pvt> Message-ID: <45B63634.9010207@mailnetwork.co.uk> Hi Mark, If you enable the debugging option in the client/s3_config_stub.inc.php file ($Stub_ClientEnableDebugging) to 1, then visit "http://nagioshost/nlg/client/?debug=yes", that will generate your debugging output, but I'm guessing it will go as far as the error it's already generated in the front-end. 1.0.0#PRE didn't give any error messages apart from "feed download failed" - that was fixed in 1.0.0. 1.0.1 literally only changed one line of code, so it's strange if it's giving you a different error to 1.0.0. :S As a private e-mail, can you send me your config files and the debug output? (Obviously strip any usernames/passwords out of your config before-hand!) Just glancing over your e-mail, is this just an oversight, or is this actually in your config? - You say you're using the same server as both client and server, and your client address starts http://nagioshost, but your server address starts http://nagios - this would cause the delay you're seeing, but I think I'm being a bit hopeful that this is all it is ;) As per your question about authentication, the sync'd files are requested from the normal file-system (when configured), but the poller still uses a HTTP request - this is something I'm hoping to change in 1.0.2. FYI you don't have to put NLG in the share directory of Nagios - I've done exactly the same trick as you did with my server feed, and my client UI is sitting on a completely different server to Nagios. Thanks Andy. Frost, Mark {PBG} wrote: > Hello. I've been trying to use Nagios Looking Glass and have so far > been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. > > When I go to the client URL (http://nagioshost/nlg/client) it sits there > working on it for 30 seconds and gives me back an error page which > includes: > > The checksum I received with the feed is invalid compared to my > local check. Network problems may be causing packet loss > > The long wait before the error was consistent with behavior in 1.0Pre > and 1.0, but each version has given me different errors (or none at all > I think with 1.0Pre). > > I'm running Nagios 2.6 with authentication to the Nagios "share" > directory. I've got both the NLG client and server on the same box > which is the same as the Nagios server itself. > > One thing I'm doing differently here (and maybe I can't do this) is that > I put the NLG stuff *outside* of the nagios share directory. I tweaked > my Apache config so that it would find 'nlg' as a separate URL with no > authentication. So the NLG URLs would be something like > > http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php > > I modified the php include files per the 1.0PRE documentation (that's > still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a > little unclear about authentication here because I wasn't sure that NLG > would need it as it's accessing files directly. That is, since the > entire /nlg URL tree is unauthenticated and I thought NLG would access > Nagios' files directly (i.e. not using the Nagios URLs) no > authentication was necessary. > > I can't find any error logs and I'm having some difficulty figuring out > how I might turn debugging on in the code to tell me what I might have > done wrong. > > Any help would be greatly appreciated. > > thanks > > Mark > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45b632b0118219947612590! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Tue Jan 23 17:21:34 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Tue, 23 Jan 2007 11:21:34 -0500 Subject: problems with Nagios Looking Glass In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB370D65C@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB370D65C@PEPWMV00043.corp.pep.pvt> Message-ID: <7F477BD26F545A4C8E4779754A38EFB370D6E7@PEPWMV00043.corp.pep.pvt> As a followup, it looks like (perhaps among other issues) the s3_poller.php script is timing out. I've turned on the displaying of PHP error messages and when I put the s3_poller.php URL in and wait, I eventually get: Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248 Looking at that file, this seems to be looking at one of my nagios "var" files... preg_match_all("/(?:\n|\r\n)\w*service {(?:\n|\r\n)\s*host_name=" . $ServerObject->HostName . "(?:\n|\r\n)/", stream_get_contents($StatusFileHandle), $ServiceMatches, PREG_OFFSET_CAPTURE, 0); Mark -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Frost, Mark {PBG} Sent: Tuesday, January 23, 2007 11:05 AM To: Nagios Users mailinglist Subject: [Nagios-users] problems with Nagios Looking Glass Hello. I've been trying to use Nagios Looking Glass and have so far been unable to. I've tried 1.0Pre, 1.0 and now 1.0.1. When I go to the client URL (http://nagioshost/nlg/client) it sits there working on it for 30 seconds and gives me back an error page which includes: The checksum I received with the feed is invalid compared to my local check. Network problems may be causing packet loss The long wait before the error was consistent with behavior in 1.0Pre and 1.0, but each version has given me different errors (or none at all I think with 1.0Pre). I'm running Nagios 2.6 with authentication to the Nagios "share" directory. I've got both the NLG client and server on the same box which is the same as the Nagios server itself. One thing I'm doing differently here (and maybe I can't do this) is that I put the NLG stuff *outside* of the nagios share directory. I tweaked my Apache config so that it would find 'nlg' as a separate URL with no authentication. So the NLG URLs would be something like http://nagioshost/nlg/client or http://nagios/nlg/server/s3_poller.php I modified the php include files per the 1.0PRE documentation (that's still current for 1.0 and 1.0.1, right?) to use these URLs. I'm a little unclear about authentication here because I wasn't sure that NLG would need it as it's accessing files directly. That is, since the entire /nlg URL tree is unauthenticated and I thought NLG would access Nagios' files directly (i.e. not using the Nagios URLs) no authentication was necessary. I can't find any error logs and I'm having some difficulty figuring out how I might turn debugging on in the code to tell me what I might have done wrong. Any help would be greatly appreciated. thanks Mark ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 23 17:29:08 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 23 Jan 2007 16:29:08 +0000 Subject: problems with Nagios Looking Glass In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB370D6E7@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB370D6E7@PEPWMV00043.corp.pep.pvt> Message-ID: <45B637D4.5020202@mailnetwork.co.uk> Frost, Mark {PBG} wrote: > As a followup, it looks like (perhaps among other issues) the > s3_poller.php script is timing out. > > I've turned on the displaying of PHP error messages and when I put the > s3_poller.php URL in and wait, I eventually get: > > Fatal error: Maximum execution time of 30 seconds exceeded in > /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248 > Yep what that's doing is parsing your var/status.dat file to get the current services and their statuses. How big is your Nagios installation? (i.e. how many hosts/services?) > Looking at that file, this seems to be looking at one of my nagios "var" > files... > > preg_match_all("/(?:\n|\r\n)\w*service > {(?:\n|\r\n)\s*host_name=" . $ServerObject->HostName . "(?:\n|\r\n)/", > stream_get_contents($StatusFileHandle), $ServiceMatches, > PREG_OFFSET_CAPTURE, 0); > > Mark > Andy. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Jan 23 17:36:05 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 23 Jan 2007 17:36:05 +0100 (MET) Subject: strange probs In-Reply-To: <1317245440.20070123172004@ipv6-network.de> References: <1317245440.20070123172004@ipv6-network.de> Message-ID: <45B63975.1020305@its-lehmann.de> Hi, On 1/23/2007 5:20 PM, Daniel wrote: > Guten Tag Daniel, > > am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > > >>Hi there, > > >>i setup up following method for notifications: > > >>define command{ >> command_name notify-by-sms >> command_line /usr/bin/sudo /usr/local/sbin/sendsms >>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>Service $SERVICEDESC$ is $SERVICESTATE$" > > >>he sends the sms and everthinks works BUT he dont display me >>the UP/DOWN message ($SERVICESTATE$) > > >>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>text. > > > Mh i can set everthink after $SERVICEDESC$ and no variable is > displayed.... ;( How long are your SMSes? 160 Characters? Then you simply hit the length limitation for an SMS. Arno > > > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 17:39:37 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 10:39:37 -0600 Subject: Remote Linux Client Appears Down ButServicesAreMonitored Message-ID: > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Tuesday, January 23, 2007 8:04 AM > To: Marc Powell; Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Remote Linux Client Appears Down > ButServicesAreMonitored > > I ran the command in question, and it did time out. I believe I know > why that is happening, and I am contacting the appropriate people to > hopefully have it resolved. Until that happens, is there a workaround > that I can put into place? Sure, change your host check_command to something that actually works. For the short term, it could be as simple as a check_tcp for the NRPE port. Of course, that wouldn't tell you if the host is down only but it's better than nothing. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Tue Jan 23 17:40:31 2007 From: daniel at ipv6-network.de (Daniel) Date: Tue, 23 Jan 2007 17:40:31 +0100 Subject: strange probs In-Reply-To: <45B63975.1020305@its-lehmann.de> References: <1317245440.20070123172004@ipv6-network.de> <45B63975.1020305@its-lehmann.de> Message-ID: <15407078.20070123174031@ipv6-network.de> Guten Tag Arno Lehmann, am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > Hi, > On 1/23/2007 5:20 PM, Daniel wrote: >> Guten Tag Daniel, >> >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: >> >> >>>Hi there, >> >> >>>i setup up following method for notifications: >> >> >>>define command{ >>> command_name notify-by-sms >>> command_line /usr/bin/sudo /usr/local/sbin/sendsms >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>>Service $SERVICEDESC$ is $SERVICESTATE$" >> >> >>>he sends the sms and everthinks works BUT he dont display me >>>the UP/DOWN message ($SERVICESTATE$) >> >> >>>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>>text. >> >> >> Mh i can set everthink after $SERVICEDESC$ and no variable is >> displayed.... ;( > How long are your SMSes? 160 Characters? Yep support up to 160 characters > Then you simply hit the length limitation for an SMS. The message which comes from nagios is not 160 signs. Its funny: the sms is like: Host BLA IP: xx.xx.xx.xx Server: is There is missing the varibales... -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 17:44:25 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 10:44:25 -0600 Subject: strange probs Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Daniel > Sent: Tuesday, January 23, 2007 10:41 AM > To: Arno Lehmann > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] strange probs > > Guten Tag Arno Lehmann, > > am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > > > Hi, > > > On 1/23/2007 5:20 PM, Daniel wrote: > >> Guten Tag Daniel, > >> > >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: > >> > >> > >>>Hi there, > >> > >> > >>>i setup up following method for notifications: > >> > >> > >>>define command{ > >>> command_name notify-by-sms > >>> command_line /usr/bin/sudo /usr/local/sbin/sendsms > >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ > >>>Service $SERVICEDESC$ is $SERVICESTATE$" > >> > >> [chop] > > How long are your SMSes? 160 Characters? > > Yep support up to 160 characters > > > Then you simply hit the length limitation for an SMS. > > The message which comes from nagios is not 160 signs. > Its funny: the sms is like: > > Host BLA IP: xx.xx.xx.xx Server: is > There is missing the varibales... This would be explained if this were a host notification and not a service notification. Is that the case? -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.rudder at reliableresponse.net Tue Jan 23 17:44:48 2007 From: david.rudder at reliableresponse.net (David Rudder) Date: Tue, 23 Jan 2007 09:44:48 -0700 Subject: strange probs In-Reply-To: <142364337.20070123165602@ipv6-network.de> References: <142364337.20070123165602@ipv6-network.de> Message-ID: <45B63B80.5020503@reliableresponse.net> SMS is limited to 120 characters. I don't know, but it makes sense that notify-by-sms would trim off any extra characters. Perhaps this is the problem? Daniel wrote: > Hi there, > > i setup up following method for notifications: > > define command{ > command_name notify-by-sms > command_line /usr/bin/sudo /usr/local/sbin/sendsms $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ Service $SERVICEDESC$ is $SERVICESTATE$" > > he sends the sms and everthinks works BUT he dont display me > the UP/DOWN message ($SERVICESTATE$) > > When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN > text. > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at ipv6-network.de Tue Jan 23 17:45:44 2007 From: daniel at ipv6-network.de (Daniel) Date: Tue, 23 Jan 2007 17:45:44 +0100 Subject: strange probs In-Reply-To: <45B63975.1020305@its-lehmann.de> References: <1317245440.20070123172004@ipv6-network.de> <45B63975.1020305@its-lehmann.de> Message-ID: <7810260221.20070123174544@ipv6-network.de> Guten Tag Arno Lehmann, am Dienstag, 23. Januar 2007 um 17:36 schrieben Sie: > Hi, > On 1/23/2007 5:20 PM, Daniel wrote: >> Guten Tag Daniel, >> >> am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: >> >> >>>Hi there, >> >> >>>i setup up following method for notifications: >> >> >>>define command{ >>> command_name notify-by-sms >>> command_line /usr/bin/sudo /usr/local/sbin/sendsms >>>$CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ >>>Service $SERVICEDESC$ is $SERVICESTATE$" >> >> >>>he sends the sms and everthinks works BUT he dont display me >>>the UP/DOWN message ($SERVICESTATE$) >> >> >>>When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN >>>text. >> >> >> Mh i can set everthink after $SERVICEDESC$ and no variable is >> displayed.... ;( > How long are your SMSes? 160 Characters? > Then you simply hit the length limitation for an SMS. I set it now to: "$NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $SERVICESTATE$" It wont work :( and i am sure this are less then 160 charactars ;) -- greetz daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jesse.Saletan at amd.com Tue Jan 23 17:56:35 2007 From: Jesse.Saletan at amd.com (Saletan, Jesse) Date: Tue, 23 Jan 2007 10:56:35 -0600 Subject: Plugin to check pserver Message-ID: <7986CEFCE5C2954A88BEE2CAB6FAB3741BC3CC@SAUSEXMB2.amd.com> Has anyone written a plugin to check pserver access to CVS? I'm just looking for something that would confirm that the server is responding to login requests. I didn't see anything on NagiosExchange. Thanks, Jesse ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Tue Jan 23 18:01:16 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Tue, 23 Jan 2007 11:01:16 -0600 Subject: strange probs In-Reply-To: <7810260221.20070123174544@ipv6-network.de> References: <1317245440.20070123172004@ipv6-network.de> <45B63975.1020305@its-lehmann.de> <7810260221.20070123174544@ipv6-network.de> Message-ID: <45B63F5C.8040203@epsiia.com> Daniel wrote: > > I set it now to: > "$NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $SERVICESTATE$" > > It wont work :( and i am sure this are less then 160 charactars ;) > If it's for a host notification, then it needs to be $HOSTSTATE$, not $SERVICESTATE$. Try it and see if you get any info: $NOTIFICATIONTYPE$: $HOSTNAME$ ($HOSTADDRESS$) ist $HOSTSTATE$ - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 19:44:31 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 12:44:31 -0600 Subject: external notification commands Message-ID: <3c4611bc0701231044h6a4e3134g32eb3aa852f6c761@mail.gmail.com> I have a notification configured to run an app and pass it Nagios parameters. For what ever reason I can watch the log and see a device go critical, but it never runs the notification command, or, if it does, it doesn't work. Any way to see deeper into this process? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emanners at ucs.fsu.edu Tue Jan 23 19:52:52 2007 From: emanners at ucs.fsu.edu (Edson Manners) Date: Tue, 23 Jan 2007 13:52:52 -0500 Subject: Add time host has been down to "HOST UP" emails Message-ID: <45B65984.5000304@ucs.fsu.edu> I am trying to add a line to "HOST UP" emails that shows for how long the host was down. The following is the current entry I have in my commands.cfg file #------BEGIN SNIPPET--------------------------------------------- /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n `/usr/local/bin/nagios_downtime \`date +%s\` $LASTHOSTUP$`\n" | mailx -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ #------END SNIPPET----------------------------------------------- The following is my addition: `/usr/local/bin/nagios_downtime \`date +%s\` $LASTHOSTUP$` ** backticks included ** nagios_downtime - This is a perl script that takes arg1 and arg2 (in epoch time) and outputs the time that the host was down in the following format: HH:MM:SS "date +%s" - prints current time in epoch "$LASTHOSTUP$" - was *supposed* to print the last time that the host was in the UP state in epoch time. The problem that I am running into is this. The $LASTHOSTUP$ is only usefule *while* the host is down because of the following. When the host comes back up the value is reset to the current time not the old one that I needed. Can anyone think of any other way that they would approach adding a line that contained how long the host was down for in nagios? Other info $ rpm -q nagios redhat-release nagios-plugins nagios-2.6-1.el4.rf redhat-release-4AS-5.5 nagios-plugins-1.4.5-1.el4.rf Thanks ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdelavau at univ-lr.fr Tue Jan 23 18:29:08 2007 From: mdelavau at univ-lr.fr (Marc Boisis-Delavaud) Date: Tue, 23 Jan 2007 18:29:08 +0100 Subject: check_dhcp on vlan interface Message-ID: Hello My nagios server run on openbsd. I have one physical network interface (pcn0) with no ip. Upon pcn0, I have 5 vlan interfaces . This is an extract of ifconfig pcn0: flags=8843 mtu 1500 lladdr 00:50:56:a7:5c:4a media: Ethernet autoselect (autoselect) inet6 fe80::250:56ff:fea7:5c4a%pcn0 prefixlen 64 scopeid 0x1 vlan1: flags=8843 mtu 1496 lladdr 00:50:56:a7:5c:4a vlan: 1 priority: 0 parent interface: pcn0 groups: vlan inet6 fe80::250:56ff:fea7:5c4a%vlan1 prefixlen 64 scopeid 0x6 inet 10.1.11.156 netmask 0xffff0000 broadcast 10.1.255.255 vlan10: flags=8843 mtu 1496 lladdr 00:50:56:a7:5c:4a vlan: 10 priority: 0 parent interface: pcn0 groups: vlan egress inet6 fe80::250:56ff:fea7:5c4a%vlan10 prefixlen 64 scopeid 0x7 inet 10.10.10.25 netmask 0xffff0000 broadcast 10.10.255.255 ... I try to check a dhcp server on vlan 1, my check command is check_dhcp -s 10.1.0.1 -i vlan1 When I tcpdump , the packet go out from vlan 10 ! Is it a bug or check_dhcp does'nt work with vlan interface ? Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 20:08:45 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 13:08:45 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 12:45 PM > To: Nagios Users mailinglist > Subject: [Nagios-users] external notification commands > > I have a notification configured to run an app and pass it Nagios > parameters. For what ever reason I can watch the log and see a device > go critical, but it never runs the notification command, or, if it > does, it doesn't work. > > Any way to see deeper into this process? Make sure you have log_notifications=1 in nagios.cfg. Then you'll be able to see in nagios.log whether your notification is being called. If it is not then it's a simple configuration issue (notifications not enabled globally, not enabled specifically for that host or service or for that specific contact). If the notification is being called but you don't see what you expect in your notification script, echo the command that nagios is running to a file to see if it's what you think it's supposed to be -- define command { command_name my_special_notification command_line echo "$USER1$/my-notification-script $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me } After nagios calls 'my_special_notification', the file /tmp/nagios-runs-me will contain the full command line that nagios _would_ have executed if it had really run the command. If the notification is being called, modify your notification script to output interesting information to a log file. In all my event handlers the first thing it does is log the parameters it was called with ala -- LOGFILE=/usr/local/nagios/var/eventhandler.log; export LOGFILE echo -n `date` . " " >> $LOGFILE 2>&1 echo "winbind service check ($1) ($2) ($3) ($4)... " >> $LOGFILE 2>&1 Whenever there's something interesting happening, I log that -- echo -n `date` . " " >> $LOGFILE 2>&1 echo -n "Restarting winbind service (2nd soft critical state) on $4... " >> $LOGFILE 2>&1 # Call the init script to restart the winbind server /usr/bin/ssh $4 'sudo /etc/init.d/winbind restart' >>$LOGFILE 2>&1 I also log if I don't do anything. I log errors from the scripts that I call from my event handler or anything else that might be interesting. I presume there's no reason you couldn't do this in your expanded notification script and you have no real limitations on how verbose you make the process. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 20:28:56 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 13:28:56 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701231128x7f893d55t1aef7184442c8d3e@mail.gmail.com> On 1/23/07, Marc Powell wrote: > > If the notification is being called but you don't see what you expect in > your notification script, echo the command that nagios is running to a > file to see if it's what you think it's supposed to be -- > > define command { > command_name my_special_notification > command_line echo "$USER1$/my-notification-script > $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me > } > > After nagios calls 'my_special_notification', the file > /tmp/nagios-runs-me will contain the full command line that nagios > _would_ have executed if it had really run the command. > Doing what you suggest I see that it IS running the notification, except that the quotation marks are lost (which my external app actually needs - so maybe I can double them up?) and none of the variables have been filled in within the quotes that are there (perhaps because it was an echo, and the echo command wiill take anything with quotes as strings?). ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 20:42:03 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 13:42:03 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 1:29 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell wrote: > > > > If the notification is being called but you don't see what you expect in > > your notification script, echo the command that nagios is running to a > > file to see if it's what you think it's supposed to be -- > > > > define command { > > command_name my_special_notification > > command_line echo "$USER1$/my-notification-script > > $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me > > } > > > > After nagios calls 'my_special_notification', the file > > /tmp/nagios-runs-me will contain the full command line that nagios > > _would_ have executed if it had really run the command. > > > > > Doing what you suggest I see that it IS running the notification, > except that the quotation marks are lost (which my external app > actually needs - so maybe I can double them up?) and none of the I'm not sure what you mean. Post what you ended up with. Were they lost because I used double-quotes and you use double-quotes? If so, change mine to single-quotes. > variables have been filled in within the quotes that are there > (perhaps because it was an echo, and the echo command wiill take > anything with quotes as strings?). Nope. If you're using valid nagios $MACROS$ then nagios will do the all the substitutions before the echo is even called so you should see the actual full command line exactly as it is run. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Tue Jan 23 20:48:34 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Tue, 23 Jan 2007 13:48:34 -0600 Subject: external notification commands In-Reply-To: <3c4611bc0701231128x7f893d55t1aef7184442c8d3e@mail.gmail.com> References: <3c4611bc0701231128x7f893d55t1aef7184442c8d3e@mail.gmail.com> Message-ID: <45B66692.7060101@epsiia.com> Brian Loe wrote: > On 1/23/07, Marc Powell wrote: >> If the notification is being called but you don't see what you expect in >> your notification script, echo the command that nagios is running to a >> file to see if it's what you think it's supposed to be -- >> >> define command { >> command_name my_special_notification >> command_line echo "$USER1$/my-notification-script >> $SOMEMACRO$ $SOMEOTHERMACRO$" >> /tmp/nagios-runs-me >> } >> >> After nagios calls 'my_special_notification', the file >> /tmp/nagios-runs-me will contain the full command line that nagios >> _would_ have executed if it had really run the command. >> > > > Doing what you suggest I see that it IS running the notification, > except that the quotation marks are lost (which my external app > actually needs - so maybe I can double them up?) and none of the > variables have been filled in within the quotes that are there > (perhaps because it was an echo, and the echo command wiill take > anything with quotes as strings?). Hi, You should be able to backslash the quotes you need it to print: $ echo "\"hi\"" I'm not sure where above you would want them, maybe something like \"$SOMEMACRO$\" \"$SOMEOTHERMACRO$\" ? - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 20:52:26 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 13:52:26 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701231152hdfc285we35e572defecee17@mail.gmail.com> On 1/23/07, Marc Powell wrote: > > > Doing what you suggest I see that it IS running the notification, > > except that the quotation marks are lost (which my external app > > actually needs - so maybe I can double them up?) and none of the > > I'm not sure what you mean. Post what you ended up with. Were they lost > because I used double-quotes and you use double-quotes? If so, change > mine to single-quotes. Check command: # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line echo /usr/local/pager/client $CONTACTADDRESS1$ ""Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"" >> /tmp/nagios_notification.log } Result: /usr/local/pager/client networktech Service: NSLookupnHost: dns2nAddress: xx.xxx.xx.xxxnState: CRITICALnInfo: DNS CRITICAL - expected xx.xxx.xx.yyy but got xx.xxx.xx.zzznDate: Tue Jan 23 13:32:48 CST 2007 PROBLEM: dns2/NSLookup is CRITICAL So I was wrong a bit, it's filling in the IPs and hostnames... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 20:54:24 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 13:54:24 -0600 Subject: external notification commands In-Reply-To: <45B66692.7060101@epsiia.com> References: <3c4611bc0701231128x7f893d55t1aef7184442c8d3e@mail.gmail.com> <45B66692.7060101@epsiia.com> Message-ID: <3c4611bc0701231154q56c98be5m1f05cb5cc03ae521@mail.gmail.com> On 1/23/07, Josh Yost wrote: > Hi, > > You should be able to backslash the quotes you need it to print: > $ echo "\"hi\"" > > I'm not sure where above you would want them, maybe something like > \"$SOMEMACRO$\" \"$SOMEOTHERMACRO$\" ? > > - Josh > The app I'm using takes two variables: /client "" Contact name I have defined in contacts.cfg as address1. The message has to be quoted when handed to the app. I would think this would work - as it does for sendmail which has the same requirements...I thought. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 21:16:36 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 14:16:36 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 1:52 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell wrote: > > > > > Doing what you suggest I see that it IS running the notification, > > > except that the quotation marks are lost (which my external app > > > actually needs - so maybe I can double them up?) and none of the > > > > I'm not sure what you mean. Post what you ended up with. Were they lost > > because I used double-quotes and you use double-quotes? If so, change > > mine to single-quotes. > Check command: > # 'notify-by-pager' command definition > define command{ > command_name notify-by-pager > command_line echo /usr/local/pager/client $CONTACTADDRESS1$ > ""Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$"" >> /tmp/nagios_notification.log > } Shell Scripting 101: quoting as above is nulls your quotes. You open a " then immediately close it leaving the rest to be interpreted as arguments to the echo command. Plus, you want the echo to be the entire command. What you want for this testing is -- # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line echo '/usr/local/pager/client $CONTACTADDRESS1$ "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"' >> /tmp/nagios_notification.log } __ Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 21:57:41 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 14:57:41 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701231257o2b12759du1552986c4a076e45@mail.gmail.com> On 1/23/07, Marc Powell wrote: > # 'notify-by-pager' command definition > define command{ > command_name notify-by-pager > command_line echo '/usr/local/pager/client $CONTACTADDRESS1$ > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$"' >> /tmp/nagios_notification.log > } Well, I really don't get this. That worked. If I just copy and paste that output (from echo) to the command line it works fine... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 22:00:37 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 15:00:37 -0600 Subject: external notification commands In-Reply-To: <3c4611bc0701231257o2b12759du1552986c4a076e45@mail.gmail.com> References: <3c4611bc0701231257o2b12759du1552986c4a076e45@mail.gmail.com> Message-ID: <3c4611bc0701231300t2490160au7bec030f992032e4@mail.gmail.com> On 1/23/07, Brian Loe wrote: > On 1/23/07, Marc Powell wrote: > > > # 'notify-by-pager' command definition > > define command{ > > command_name notify-by-pager > > command_line echo '/usr/local/pager/client $CONTACTADDRESS1$ > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > > } > > Well, I really don't get this. That worked. If I just copy and paste > that output (from echo) to the command line it works fine... > What permissions would that application need to have for Nagios to run it? drwxr-xr-x /usr/local/pager -rwxrwxrwx client ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 22:02:08 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 15:02:08 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: Brian Loe [mailto:knobdy at gmail.com] > Sent: Tuesday, January 23, 2007 2:58 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell wrote: > > > # 'notify-by-pager' command definition > > define command{ > > command_name notify-by-pager > > command_line echo '/usr/local/pager/client $CONTACTADDRESS1$ > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > > } > > Well, I really don't get this. That worked. If I just copy and paste > that output (from echo) to the command line it works fine... That's a good start. Did you run your test as the nagios user? Perhaps your client script accesses some script/program/device that only root has permissions to use. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 23 22:03:50 2007 From: marc at ena.com (Marc Powell) Date: Tue, 23 Jan 2007 15:03:50 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Tuesday, January 23, 2007 3:01 PM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Brian Loe wrote: > > On 1/23/07, Marc Powell wrote: > > > > > # 'notify-by-pager' command definition > > > define command{ > > > command_name notify-by-pager > > > command_line echo '/usr/local/pager/client $CONTACTADDRESS1$ > > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > > $SERVICESTATE$"' >> /tmp/nagios_notification.log > > > } > > > > Well, I really don't get this. That worked. If I just copy and paste > > that output (from echo) to the command line it works fine... > > > What permissions would that application need to have for Nagios to run it? > drwxr-xr-x /usr/local/pager > -rwxrwxrwx client These look fine (probably). Is 'client' a script or program that you wrote or have visibility into? What does it do exactly. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Tue Jan 23 22:24:02 2007 From: knobdy at gmail.com (Brian Loe) Date: Tue, 23 Jan 2007 15:24:02 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701231324w4fc66c90scb91fbe42cae89bc@mail.gmail.com> On 1/23/07, Marc Powell wrote: > > These look fine (probably). Is 'client' a script or program that you > wrote or have visibility into? What does it do exactly. It is an application written in-house in C, I don't have any visibility into it but it basically just sends a message to its server component that then dials out to the paging company and sends the message. I've ran it as myself, nagios and root - they all work. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cjsanz4job at hotmail.com Tue Jan 23 23:04:47 2007 From: cjsanz4job at hotmail.com (Carlos Sánchez) Date: Tue, 23 Jan 2007 17:04:47 -0500 Subject: nagios upgrade Message-ID: hi how to upgrade nagios 2.5 to 2.6 _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Tue Jan 23 23:08:59 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Tue, 23 Jan 2007 16:08:59 -0600 Subject: nagios upgrade In-Reply-To: References: Message-ID: <45B6877B.4020207@epsiia.com> Carlos S?nchez wrote: > hi > how to upgrade nagios 2.5 to 2.6 > ummm ... RTFM ? =/ - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivera01 at sbcglobal.net Wed Jan 24 00:35:27 2007 From: rivera01 at sbcglobal.net (David Rivera) Date: Tue, 23 Jan 2007 15:35:27 -0800 (PST) Subject: Nagios: checking actual health of a disk. Message-ID: <260418.86201.qm@web82106.mail.mud.yahoo.com> Hi all, I was wondering is anyone has done this, I am wondering if there are plugins already out there I can use to check the health of Sun boxes and linux boxes. I know 'checking the health' is very vague, since there are a number of things to check. For Sun, checking metadevices or disks not under any any voluem manager. linux, not sure how to check on them? thanks much David Money can't buy happiness, but neither can poverty. -Leo Rosten -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 24 00:49:27 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 23 Jan 2007 23:49:27 +0000 Subject: Nagios: checking actual health of a disk. In-Reply-To: <260418.86201.qm@web82106.mail.mud.yahoo.com> References: <260418.86201.qm@web82106.mail.mud.yahoo.com> Message-ID: <45B69F07.50909@mailnetwork.co.uk> I have SMART enabled on my hard disks, and have a plugin downloaded from Nagios Exchange (it requires Python) that parses the SMART output and reports an OK or Bad status. (I think it's called check_smartmon.py). Andy. David Rivera wrote: > Hi all, > > I was wondering is anyone has done this, I am wondering if there are > plugins already out there I can use to check the health of Sun boxes > and linux boxes. > > I know 'checking the health' is very vague, since there are a number > of things to check. For Sun, checking metadevices or disks not under > any any voluem manager. > > linux, not sure how to check on them? > > > thanks much > David > > > > Money can't buy happiness, but neither can poverty. > -Leo Rosten > !DSPAM:37,45b69bfc118211922293640! > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > !DSPAM:37,45b69bfc118211922293640! > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45b69bfc118211922293640! > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Wed Jan 24 01:06:06 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Tue, 23 Jan 2007 18:06:06 -0600 Subject: Nagios: checking actual health of a disk. In-Reply-To: <260418.86201.qm@web82106.mail.mud.yahoo.com> References: <260418.86201.qm@web82106.mail.mud.yahoo.com> Message-ID: <45B6A2EE.3040309@epsiia.com> David Rivera wrote: > Hi all, > > I was wondering is anyone has done this, I am wondering if there are plugins already out there I can use to check the health of Sun boxes and linux boxes. > > I know 'checking the health' is very vague, since there are a number of things to check. For Sun, checking metadevices or disks not under any any voluem manager. > > linux, not sure how to check on them? > > > thanks much > David > Hi, For our linux boxes, we're using the check_snmp_storage.pl plugin from : "http://www.manubulon.com/nagios/" to check partition space. - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Wed Jan 24 01:07:00 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Wed, 24 Jan 2007 11:07:00 +1100 Subject: Nagios memory Leaks In-Reply-To: References: Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9AF79F2@acexp005.portfolio.base> Dear Sir, I am writing to thank you for your valuable letter and say, > From: Tobias Klausmann > Subject: [Nagios-users] Memory leaks > > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > I don't think so because it deals with the aspects of the implementation that are visible (and in fact, the letter doesn't propose detailed solutions). > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. Do you mean: 2.5 and 2.6 Nagios with embedded Perl but without the Perl plugin cache option ? If so, the fault is not Nagios, but the embedded Perl implementation and or Perl. Your next paragraph suggest that this is plain vanilla Nagios without any Perl options to configure. Is that correct ? > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > I have never witnessed memory being reclaimed after ePN leaks it. I can't conceive of the process memory size being reduced while the process is running (free() and friends only return the memory to the process heap). I think the leak is caused by the ePN implementation. I a hoping to trying some measurements with several pilot implementations to see what is the most promising way of doing this. ... (snip) Yep. I agree. The leak is bad. > The question that remains is, if this can (and will) be tackled > before 3.0 is released. A related question is if Nagios 3 will be > prone to the same problem. > Certainly it will if the current ePN implementation remains. If (pretty big if) I can provide you stuff to try are you willing to repeat your measurements on candidate implementations (wrt 2.5 or 2.6 code base) ? I am not sure of my willingness/energy quotient but if they look Ok, I may not have anything to show until March this year. > Any thoughts, ideas etc. are appreciated. > > Regards, > Tobias Yours sincerely. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Wed Jan 24 01:51:23 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Wed, 24 Jan 2007 07:51:23 +0700 Subject: Several map views of Nagios Message-ID: Dear Morris, I saw in the Map View, there is listbox to include/exclude drawing layer of certain hostgroups. When I select to include hostgroups A, then servers not in hostgroups A will disappear. Unfortunately during the next automatic screen refresh, the listbox selection was not pertained and the map view screen returned back all map view. Any idea ? Regards, Herman > -----Original Message----- > From: Morris, Patrick [mailto:patrick.morris at hp.com] > Sent: Tuesday, January 23, 2007 1:33 PM > To: Herman (ISTD); Nagios-Users (E-mail) > Subject: RE: [Nagios-users] Several map views of Nagios > > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > > Of Herman (ISTD) > > Sent: Monday, January 22, 2007 9:13 PM > > To: Nagios-Users (E-mail) > > Subject: [Nagios-users] Several map views of Nagios > > > > Is it possible for Nagios to do several map views ? > > Sure. Take a look at the map page, and you'll see boxes to show or hide > all the hostgroups you've set up. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From herman_ang at toyota.co.id Wed Jan 24 03:03:42 2007 From: herman_ang at toyota.co.id (Herman (ISTD)) Date: Wed, 24 Jan 2007 09:03:42 +0700 Subject: NMS Comparison Message-ID: Anyone ever used OpenNMS ? Maybe could share plus and minus of OpenNMS compared to Nagios ? Thx. Regards, Herman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niederha at us.ibm.com Wed Jan 24 04:04:08 2007 From: niederha at us.ibm.com (Kyle Niederhauser) Date: Tue, 23 Jan 2007 20:04:08 -0700 Subject: Kyle Niederhauser is out of the office. Message-ID: I will be out of the office starting 01/23/2007 and will not return until 01/25/2007. I will be out of the office Wednesday, January 24th. If you need assistance, please call the BP Operations Center at 1-877-471-6079 and ask for BP UNIX support. Clarify queue. IBM: UNIX HOSTS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 24 04:27:32 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 23 Jan 2007 22:27:32 -0500 Subject: 3D Nagios? Message-ID: <7abcf48e0701231927j56cc2bdv9f4723e4a0829514@mail.gmail.com> Nagios 2.4 Hey people i has anyone attempted to make nagios look neater look better in terms of 3D view where you can rotate zoom in and out using a VRML i know its in the docs in extneded hosts just is it worth creating it and does it require or take up a lot of cpu load? *Status World CGI (VRML)* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Jan 24 04:43:21 2007 From: jperrin at gmail.com (Jim Perrin) Date: Tue, 23 Jan 2007 22:43:21 -0500 Subject: 3D Nagios? In-Reply-To: <7abcf48e0701231927j56cc2bdv9f4723e4a0829514@mail.gmail.com> References: <7abcf48e0701231927j56cc2bdv9f4723e4a0829514@mail.gmail.com> Message-ID: <302ce8b50701231943r295e9f94r50241ee50127e23b@mail.gmail.com> On 1/23/07, Nedim Bicic wrote: > Nagios 2.4 > Hey people i has anyone attempted to make nagios look neater look better in > terms of 3D view where you can rotate zoom in and out using a VRML i know > its in the docs in extneded hosts just is it worth creating it and does it > require or take up a lot of cpu load? > > Status World CGI (VRML) Entirely up to you. I don't use it, but I have it enabled mostly because it keeps my boss occupied. Short of having him chase a laser pointer around the wall, it's the only way I can keep him out of my hair long enough for me to accomplish actual work. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 24 04:52:58 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 23 Jan 2007 22:52:58 -0500 Subject: 3D Nagios? In-Reply-To: <302ce8b50701231943r295e9f94r50241ee50127e23b@mail.gmail.com> References: <7abcf48e0701231927j56cc2bdv9f4723e4a0829514@mail.gmail.com> <302ce8b50701231943r295e9f94r50241ee50127e23b@mail.gmail.com> Message-ID: <7abcf48e0701231952k6399f362h33b0a15c8baac244@mail.gmail.com> yeah my boss want it too just dont want the local cpu box to spike because of the 3D java updatate that gonna do like every 15 sec. also i have about like 85 hosts so far, what would be best way to add these host in the extended host config file separte coordinate for every host ? How would you know where 0,0 would be on the map ? is this trial by error I downloaded corna that 3D generator once i make the changes and restart nagios i guess it will take affect ? right thanks On 1/23/07, Jim Perrin wrote: > > On 1/23/07, Nedim Bicic wrote: > > Nagios 2.4 > > Hey people i has anyone attempted to make nagios look neater look better > in > > terms of 3D view where you can rotate zoom in and out using a VRML i > know > > its in the docs in extneded hosts just is it worth creating it and does > it > > require or take up a lot of cpu load? > > > > Status World CGI (VRML) > > Entirely up to you. I don't use it, but I have it enabled mostly > because it keeps my boss occupied. Short of having him chase a laser > pointer around the wall, it's the only way I can keep him out of my > hair long enough for me to accomplish actual work. > > > -- > During times of universal deceit, telling the truth becomes a > revolutionary act. > George Orwell > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlongland at grintek.com Wed Jan 24 07:28:09 2007 From: jlongland at grintek.com (John Longland) Date: Wed, 24 Jan 2007 08:28:09 +0200 Subject: Nagios memory Leaks Message-ID: <97DAFA85DDDB9D4CA206918E0375033E02CE1A@Jupiter.Grintel.com> -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net]On Behalf Of Stanley.Hopcroft at Dest.gov.au Sent: 24 January 2007 02:07 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios memory Leaks Dear Sir, I am writing to thank you for your valuable letter and say, > From: Tobias Klausmann > Subject: [Nagios-users] Memory leaks > > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > I don't think so because it deals with the aspects of the implementation that are visible (and in fact, the letter doesn't propose detailed solutions). > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. Do you mean: 2.5 and 2.6 Nagios with embedded Perl but without the Perl plugin cache option ? If so, the fault is not Nagios, but the embedded Perl implementation and or Perl. Your next paragraph suggest that this is plain vanilla Nagios without any Perl options to configure. Is that correct ? > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > I have never witnessed memory being reclaimed after ePN leaks it. I can't conceive of the process memory size being reduced while the process is running (free() and friends only return the memory to the process heap). I think the leak is caused by the ePN implementation. I a hoping to trying some measurements with several pilot implementations to see what is the most promising way of doing this. ... (snip) Yep. I agree. The leak is bad. > The question that remains is, if this can (and will) be tackled > before 3.0 is released. A related question is if Nagios 3 will be > prone to the same problem. > Certainly it will if the current ePN implementation remains. If (pretty big if) I can provide you stuff to try are you willing to repeat your measurements on candidate implementations (wrt 2.5 or 2.6 code base) ? I am not sure of my willingness/energy quotient but if they look Ok, I may not have anything to show until March this year. > Any thoughts, ideas etc. are appreciated. > > Regards, > Tobias Yours sincerely. Morning !! I have been reading with interest about these memory leaks. I see you mention 2.5 & 2.6. Does this happen with 2.4 as well ?? Thanks !!! John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edalb1979 at gmail.com Wed Jan 24 09:07:20 2007 From: edalb1979 at gmail.com (edalB) Date: Wed, 24 Jan 2007 10:07:20 +0200 Subject: Event Handlers In-Reply-To: References: <45B0FFC4.50004@googlemail.com> Message-ID: Thanks for all the help people I got it working the script was working the problem was the accepting of the ssh key to known-hostes. Regards On 1/23/07, edalB wrote: > Ok I have followed the white rabbit. > > I have followed the docs and I have modified the the script to work > the way I need it to work for me. > > But still no luck. > > After trying allot of stuff I have now changed my config in the .cfg > file and it looks like folloes. > > define service{ > use local-service > > host_name imap-1.rba.ispafrica.net > service_description HTTP > event_handler_enabled 1 > event_handler restart-httpd > check_command check_http > } > > Then the commands.cfg file looks like follows. > > > define command{ > command_name restart-httpd > command_line /usr/local/nagios/libexec/restart-httpd > $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ > } > > But I still dont have any luck with the Event Handlers. > > Regards > > On 1/19/07, Hari Sekhon wrote: > > > > I was think that, I've done event handlers and the way you have tried to do > > that is just wrong. Look at the docs, there is a template bash script to get > > you started. That is what I based my event handlers on and it makes much > > more sense. You can choose when to do certain actions, not every single time > > the status changes which can be a heck of a lot. > > > > For example when one of my known problem websites fails, the event handler > > only fires if it's critical and the plugin output tells me that a certain > > condition has occurred. I don't do anything when it's a warning state or a > > soft error or if the service check just timed out as sometimes happens since > > the website isn't down or broken. > > > > Otherwise a congested pipe that causes the service check to time out and > > temporarily go critical then results in you trashing the website and kicking > > out users! > > > > Follow the white rabbit... I mean... follow the docs... > > > > > > -h > > Hari Sekhon > > > > > > > > Marc Powell wrote: > > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of edalB > > Sent: Friday, January 19, 2007 7:46 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Event Handlers > > > > Hi all. > > > > I have created a event handler as a test to see how it works. The hard > > part I have done. > > > > > > [chop] > > > > > > > > define service{ > > use local-service > > > > host_name imap-1.rba.ispafrica.net > > service_description HTTP > > event_handler restart-httpd > > check_command check_http > > } > > > > Do you have 'event_handler_enabled 1' in your local-service template? > > You need it either there or in this definition. Enabling event handlers > > in nagios.cfg isn't sufficient. You need to tell nagios which services > > it should actually run them for. > > > > > > > > And the command > > > > > > define command{ > > command_name restart-httpd > > command_line /usr/bin/ssh -p 222 -i > > /home/nagios/.ssh/id_dsa eugene at imap-1.rba.ispafrica.net sudo > > /etc/init.d/apache2 res > > tart > > } > > > > So now nagios still does not want to execute my command > > > > You really should follow the documented methodology for event handlers > > (http://nagios.sourceforge.net/docs/2_0/eventhandlers.html). > > I'm not > > sure the above is going to work and if it does, it will attempt to > > restart httpd on any kind of status change, even WARNING -> OK. I'm sure > > that you don't want that. Additionally, if you follow the documented way > > you can easily send debugging output to a file so that you can see if > > your event handler is being run, how and what it's doing. > > > > -- > > Marc > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From traxplayer at gmail.com Wed Jan 24 11:01:39 2007 From: traxplayer at gmail.com (=?ISO-8859-1?Q?Martin_M=F8ller_Pedersen?=) Date: Wed, 24 Jan 2007 11:01:39 +0100 Subject: Howto not check a service each day from 03-06 Message-ID: Hi, Every night some oracle databases are stopped. Is it possible to specifiy that the a specific service (eg. check_oracle) shouldn't be tested beetween eg. 03-06 each day. Regards Martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 24 11:07:01 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 24 Jan 2007 10:07:01 +0000 Subject: Howto not check a service each day from 03-06 In-Reply-To: References: Message-ID: <45B72FC5.7030604@mailnetwork.co.uk> Martin M?ller Pedersen wrote: > Hi, > Every night some oracle databases are stopped. Is it possible to specifiy that > the a specific service (eg. check_oracle) shouldn't be tested beetween > eg. 03-06 each day. > Certainly - define yourself a time period which doesn't include these times :) http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#timeperiod e.g. define timeperiod{ timeperiod_name oracle-downtime alias Oracle Downtime sunday 00:00-03:00,06:00-24:00 <- repeat for monday - saturday -> } Then in your Oracle service check, use "oracle-downtime" as the value for "check_period" Andy. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Jan 24 12:15:02 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Jan 2007 12:15:02 +0100 Subject: Memory leaks In-Reply-To: <20070123153228.GA18139@eric.schwarzvogel.de> References: <20070123153228.GA18139@eric.schwarzvogel.de> Message-ID: <45B73FB6.1010504@op5.se> Tobias Klausmann wrote: > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > Yes. Embedded perl is known to be leaky. It's also mentioned in various documents around the web. > And finally, there's the advanced permission patch. With that > patch, memory leaking skyrockets to about 15M/hour. > Yes. I pointed out where a few of those leaks where in a previous email. I'd recommend you don't use that patch, actually. At least not until whoever wrote it comes up with a fixed version of it. > Unfortunately, performance degradation is not just on the memory > used front. With increased memory usage, check latency increases. > In the worst case, this can mean that latency increases by 120s in > about six hours. This has the net effect that for our case, we > have to restart Nagios every two hours. > The latency increase should only happen when the machine starts swapping. For large networks with the access-patch thingie that could happen fairly quickly though, I imagine. > For the case of 2.5 and 2.6 without the permissions patch, it's > a lot less bad, but still bad enough to require restarting Nagios > at least every eight hours. > > Without all the fancy stuff, we get to restarting Nagios every 24 > hours, as described above. > That seems a bit obsessive. Are you doing anything unusual with the system? We have several (well over a hundred) installations where Nagios has been up and running for several months without requiring a restart. > > For vanilla Nagios, at least it's clear that in whatever way > memory is wasted, it also slows Nagios down - a possibility would > be a linked list that is walked and gets appended over and over. > But I guess those with knowledge of the inner workings of Nagios > have more clue about this than I do. > Anyone wanting to look into it should probably take a look at the event scheduling queue. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Wed Jan 24 13:07:50 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Wed, 24 Jan 2007 13:07:50 +0100 Subject: Memory leaks In-Reply-To: <45B73FB6.1010504@op5.se> References: <20070123153228.GA18139@eric.schwarzvogel.de> <45B73FB6.1010504@op5.se> Message-ID: <20070124120750.GA11172@eric.schwarzvogel.de> Hi! On Wed, 24 Jan 2007, Andreas Ericsson wrote: > > Activating the embedded Perl interpreter and -cache will increase > > the amount of lost memory to about 5-6M per hour. In this case, > > however, sometimes the memory usage snaps back, i.e. some of the > > lost memory is collected. I've not yet found out what triggers > > the reclaim. Still, over the course of hours, more and more > > memory is lost. Still, it's roughly linear memory loss. > > Yes. Embedded perl is known to be leaky. It's also mentioned in various > documents around the web. Well, I think I can live without the embedded interpreter, the machine is beefy enough. > > Unfortunately, performance degradation is not just on the memory > > used front. With increased memory usage, check latency increases. > > In the worst case, this can mean that latency increases by 120s in > > about six hours. This has the net effect that for our case, we > > have to restart Nagios every two hours. > > The latency increase should only happen when the machine starts swapping. > For large networks with the access-patch thingie that could happen fairly > quickly though, I imagine. No, it's definitely not swapping (as the graphs show). My conclusions about the reasons for the degradation were drawn with exactly that in mind. > > For the case of 2.5 and 2.6 without the permissions patch, it's > > a lot less bad, but still bad enough to require restarting Nagios > > at least every eight hours. > > > > Without all the fancy stuff, we get to restarting Nagios every 24 > > hours, as described above. > > That seems a bit obsessive. Are you doing anything unusual with the system? > We have several (well over a hundred) installations where Nagios has been up > and running for several months without requiring a restart. Well, the system is a standalone Nagios server which is only that, no other services. I'll take a very close look at all the cronjobs etc. that might cause additional friction, but I doubt they're causing any trouble. > > For vanilla Nagios, at least it's clear that in whatever way > > memory is wasted, it also slows Nagios down - a possibility would > > be a linked list that is walked and gets appended over and over. > > But I guess those with knowledge of the inner workings of Nagios > > have more clue about this than I do. > > Anyone wanting to look into it should probably take a look at the > event scheduling queue. Thanks, I'll ask our resident C guru to take a close look at it. Regards, Tobias -- Never touch a burning system. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 24 15:21:11 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 24 Jan 2007 08:21:11 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701240621s55a07f7yf77d43eeacbb0a34@mail.gmail.com> On 1/23/07, Marc Powell wrote: > > > Well, I really don't get this. That worked. If I just copy and paste > > > that output (from echo) to the command line it works fine... > > > > > What permissions would that application need to have for Nagios to run > it? > > drwxr-xr-x /usr/local/pager > > -rwxrwxrwx client > > These look fine (probably). Is 'client' a script or program that you > wrote or have visibility into? What does it do exactly. > So, any other thoughts on this? Running it in echo I see that the command line is correct for this application, and I know that it is configured to run correctly but it still doesn't get ran. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 24 15:53:41 2007 From: marc at ena.com (Marc Powell) Date: Wed, 24 Jan 2007 08:53:41 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Wednesday, January 24, 2007 8:21 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/23/07, Marc Powell wrote: > > > > Well, I really don't get this. That worked. If I just copy and paste > > > > that output (from echo) to the command line it works fine... > > > > [chop] > > So, any other thoughts on this? Running it in echo I see that the > command line is correct for this application, and I know that it is > configured to run correctly but it still doesn't get ran. Well, it should be working. Stepping through the process -- 1) nagios is running the notification command as necessary 2) the notification command is properly formatted (seen by echo output) 3) the notification command succeeds when run as the nagios user from the command line That really should be sufficient. The only other issue I can think of is that your pager program relies on some program, path, environment variable or library that is available when in a login shell but unavailable to forked processes. Do you set any special variables, aliases or anything in your login scripts? Can the people that wrote it provide any insight or add debugging code to the program? Try this to see if the program is reporting any errors -- # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/local/pager/client $CONTACTADDRESS1$ "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"'>> /tmp/nagios_notification.log 2>&1 -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From grover1711 at gmail.com Wed Jan 24 17:23:09 2007 From: grover1711 at gmail.com (ankush grover) Date: Wed, 24 Jan 2007 21:53:09 +0530 Subject: Removing old comments from extended info page Message-ID: <5f638b360701240823j69a8ce69xa7dfe012e61a1a47@mail.gmail.com> hi friends, I have configured Nagios 2.6 in a Production Environment. There are about 200 servers and about 1000 services which are being monitored by nagios. I want to Remove old comments from extended info page, is there any command through which I can achieve this. Thanks & Regards Ankush Grover ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 24 18:21:24 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 24 Jan 2007 11:21:24 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701240921o6a93872gc0737ea55f2a19f6@mail.gmail.com> On 1/24/07, Marc Powell wrote: > > Try this to see if the program is reporting any errors -- > > # 'notify-by-pager' command definition > define command{ > command_name notify-by-pager > command_line /usr/local/pager/client $CONTACTADDRESS1$ > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$"'>> /tmp/nagios_notification.log 2>&1 > Okay, did that, it created the file but didn't put anything in it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 24 18:28:45 2007 From: marc at ena.com (Marc Powell) Date: Wed, 24 Jan 2007 11:28:45 -0600 Subject: external notification commands Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Wednesday, January 24, 2007 11:21 AM > To: Marc Powell > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] external notification commands > > On 1/24/07, Marc Powell wrote: > > > > > Try this to see if the program is reporting any errors -- > > > > # 'notify-by-pager' command definition > > define command{ > > command_name notify-by-pager > > command_line /usr/local/pager/client $CONTACTADDRESS1$ > > "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > > $LONGDATETIME$ $NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is > > $SERVICESTATE$"'>> /tmp/nagios_notification.log 2>&1 > > > > Okay, did that, it created the file but didn't put anything in it. > Well, then the script is being called but doesn't output anything. Is that normal? It's looking more and more to me that you need to get more verbose output from the 'client' program. Everything we've done so far indicates that nagios is doing exactly what it's supposed to. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 24 18:47:49 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 24 Jan 2007 11:47:49 -0600 Subject: external notification commands In-Reply-To: References: Message-ID: <3c4611bc0701240947k704a3ec5uacccd606d3711197@mail.gmail.com> On 1/24/07, Marc Powell wrote: > > Okay, did that, it created the file but didn't put anything in it. > > > > Well, then the script is being called but doesn't output anything. Is > that normal? It's looking more and more to me that you need to get more > verbose output from the 'client' program. Everything we've done so far > indicates that nagios is doing exactly what it's supposed to. > > -- > Marc The client app, once a message has been sent, responds with a message saying its been cued. Along the lines of, "Message accepted - Entry queued for delivery" so I would have expected the log file to contain that at least. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raghavendra.kristam at gmail.com Wed Jan 24 19:16:46 2007 From: raghavendra.kristam at gmail.com (raghavendra kristam) Date: Wed, 24 Jan 2007 23:46:46 +0530 Subject: Getting errors during install nagios plugins Message-ID: Hi, I installed nagios-2.7 and while trying to install nagios plugin nagios-plugins-1.4.5 getting the following error Please let me know how to sort out these errors. 1) ./configure --with-mysql=/usr/local/mysql 2 ) make Errors ======== # make make all-recursive make[1]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5' Making all in lib make[2]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib' make all-recursive make[3]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib' Making all in tests make[4]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib/tests' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib/tests' make[4]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/lib' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib' make[3]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib' make[2]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/lib' Making all in plugins make[2]: Entering directory `/opt/tomcat/nagios-plugins-1.4.5/plugins' if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \ then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi check_mysql.c:51:19: mysql.h: No such file or directory check_mysql.c:52:20: errmsg.h: No such file or directory check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function) check_mysql.c: In function `main': check_mysql.c:73: error: `MYSQL' undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: syntax error before "mysql" check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function) check_mysql.c:74: error: `res' undeclared (first use in this function) check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function) check_mysql.c:75: error: syntax error before "row" check_mysql.c:91: error: `mysql' undeclared (first use in this function) check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function) check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function) check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function) check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function) check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function) check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:146: error: `row' undeclared (first use in this function) check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function) check_mysql.c:165: error: `fields' undeclared (first use in this function) make[2]: *** [check_mysql-check_mysql.o] Error 1 make[2]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/tomcat/nagios-plugins-1.4.5' make: *** [all] Error 2 Thanks, Raghavendra. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Wed Jan 24 19:23:22 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Wed, 24 Jan 2007 16:23:22 -0200 Subject: nagios upgrade In-Reply-To: References: Message-ID: <1169663002.24845.9.camel@localhost> On Tue, 2007-01-23 at 17:04 -0500, Carlos S?nchez wrote: > hi > how to upgrade nagios 2.5 to 2.6 cd /path/to/nagios/source ./configure make all /etc/init.d/nsca stop /etc/init.d/nagios stop make install /etc/init.d/nagios start /etc/init.d/nsca start > > _________________________________________________________________ > The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. > http://tv.msn.com/tv/globes2007/?icid=nctagline2 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naim.abu.darwish at gmail.com Wed Jan 24 19:50:04 2007 From: naim.abu.darwish at gmail.com (naim abu darwish) Date: Wed, 24 Jan 2007 20:50:04 +0200 Subject: Several map views of Nagios In-Reply-To: References: Message-ID: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> Well, i have similar problem, I have 530 hosts, so having all those on one map would be meaningless. I just need the routers and the wireless machines on there. If i chose what to exclude from the status map, it will still keep links pointing to hidden devices and thus the map will still be cluttered. I found a patch on the Pkg-nagios-devel debian mailing list, a post dating back to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe nagios-1.x ?? anyway, link to original post :: http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html this is supposed to make the map only show certain selective hostgroups on the statusmap. i tried the patch on statusmap.c , I am using nagios 2.5. the patch failed. Im not very good at reading C code, could someone help out here ? maybe fix the patch for the current nagios version, also seems a good idea to include in future nagios versions Help appreciated ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cjsanz4job at hotmail.com Wed Jan 24 19:57:17 2007 From: cjsanz4job at hotmail.com (Carlos Sánchez) Date: Wed, 24 Jan 2007 13:57:17 -0500 Subject: nagios upgrade In-Reply-To: <1169663002.24845.9.camel@localhost> References: <1169663002.24845.9.camel@localhost> Message-ID: thanks >From: "Marcel Mitsuto Fucatu Sugano" >To: Carlos S?nchez >CC: >Subject: Re: [Nagios-users] nagios upgrade >Date: Wed, 24 Jan 2007 16:23:22 -0200 > >On Tue, 2007-01-23 at 17:04 -0500, Carlos S?nchez wrote: > > hi > > how to upgrade nagios 2.5 to 2.6 > >cd /path/to/nagios/source >./configure >make all >/etc/init.d/nsca stop >/etc/init.d/nagios stop >make install >/etc/init.d/nagios start >/etc/init.d/nsca start > > > > > > _________________________________________________________________ > > The MSN Entertainment Guide to Golden Globes is here. Get all the >scoop. > > http://tv.msn.com/tv/globes2007/?icid=nctagline2 > > > > > > >------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share >your > > opinions on IT & business topics through brief surveys - and earn cash > > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > >AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus >anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) >acima referido(s), podendo conter informa??es sigilosas e/ou legalmente >protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos >que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de >qualquer de seus anexos ? absolutamente proibida. Solicitamos que o >remetente seja comunicado imediatamente, respondendo esta mensagem, e que o >original desta mensagem e de seus anexos, bem como toda e qualquer c?pia >e/ou impress?o realizada a partir destes, sejam permanentemente apagados >e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser >obtidas no site http://sobre.uol.com.br/. > >NOTICE: The information contained in this e-mail and any attachments >thereto is CONFIDENTIAL and is intended only for use by the recipient named >herein and may contain legally privileged and/or secret information. If you >are not the e-mail?s intended recipient, you are hereby notified that any >dissemination, distribution or copy of this e-mail, and/or any attachments >thereto, is strictly prohibited. Please immediately notify the sender >replying to the above mentioned e-mail address, and permanently delete >and/or destroy the original and any copy of this e-mail and/or its >attachments, as well as any printout thereof. Additional information about >our company may be obtained through the site http://www.uol.com.br/ir/. _________________________________________________________________ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From barbereau at gmail.com Wed Jan 24 21:00:31 2007 From: barbereau at gmail.com (=?UTF-8?Q?S=C3=A9bastien_Barbereau?=) Date: Wed, 24 Jan 2007 20:00:31 +0000 Subject: Several map views of Nagios In-Reply-To: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> References: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> Message-ID: <4e0e33ee0701241200n608cd7ebg5dd14327a7818973@mail.gmail.com> Hi, you may want to have a look a nagvis (http://www.nagvis.org/doku.php) which is interresting to provide different customisable views and has a simple built in editor. Of course if you have more than 50 hosts it starts to be difficult to set them up by hand. Therefor I'd suggest you also look at graphviz ( http://www.graphviz.org/) to automagically calculate proper coordinates for your hosts based on the parent relationship between them ... Seb. On 1/24/07, naim abu darwish wrote: > > Well, i have similar problem, > I have 530 hosts, so having all those on one map would be meaningless. > I just need the routers and the wireless machines on there. If i chose > what to exclude from the status map, it will still keep links pointing > to hidden devices and thus the map will still be cluttered. I found a > patch on the Pkg-nagios-devel debian mailing list, a post dating back > to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe > nagios-1.x ?? anyway, link to original post :: > > > http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html > > this is supposed to make the map only show certain selective > hostgroups on the statusmap. i tried the patch on statusmap.c , I am > using nagios 2.5. the patch failed. Im not very good at reading C > code, could someone help out here ? maybe fix the patch for the > current nagios version, also seems a good idea to include in future > nagios versions > > Help appreciated > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shasanbeg at gmail.com Wed Jan 24 22:29:19 2007 From: shasanbeg at gmail.com (Semir H.) Date: Thu, 25 Jan 2007 08:29:19 +1100 Subject: TWO instances of Nagios on one server - possible? Message-ID: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> Hi everyone, Would it be possible to run two instances on Nagios on one machine? The server would be Debian (with Apache). I want one Nagios instance to monitor one lot of hosts and the other to monitor a different lot of computers and they should be independent of each other. How would I go about doing this? Simply installing Nagios in two different locations and making Apache server each? Thanks Semir -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From klausman at schwarzvogel.de Wed Jan 24 22:41:49 2007 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Wed, 24 Jan 2007 22:41:49 +0100 Subject: Nagios memory Leaks In-Reply-To: <97DAFA85DDDB9D4CA206918E0375033E02CE1A@Jupiter.Grintel.com> References: <97DAFA85DDDB9D4CA206918E0375033E02CE1A@Jupiter.Grintel.com> Message-ID: <20070124214149.GA10030@eric.schwarzvogel.de> Hi! On Wed, 24 Jan 2007, John Longland wrote: > I have been reading with interest about these memory leaks. > I see you mention 2.5 & 2.6. > Does this happen with 2.4 as well ?? I can't really tell: back when I used 2.4 I wasn't aware of this problem and hadn't added so many machines/services yet. I figure the problem *probably* exists. On the other hand: if it hasn't bitten you yet, why worry? Just keep an eye on your nagiostats output. Any Nagios admin should IMO do that anyway, regardless of known problems. Regards, Tobias PS: Think about adjusting your quoting style. -- Never touch a burning system. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Jan 24 22:45:22 2007 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 24 Jan 2007 16:45:22 -0500 Subject: TWO instances of Nagios on one server - possible? In-Reply-To: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> References: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> Message-ID: <105101c74000$f3271170$6400000a@andrew2> I see no reason that wouldn't work. If you're using NCSA you'd have to run them on different ports, but other than that it should work. Keep in mind though that with user groups and hostgroups you can achieve the same effect while still using only one instance of Nagios. Andrew _____ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Semir H. Sent: Wednesday, January 24, 2007 4:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] TWO instances of Nagios on one server - possible? Hi everyone, Would it be possible to run two instances on Nagios on one machine? The server would be Debian (with Apache). I want one Nagios instance to monitor one lot of hosts and the other to monitor a different lot of computers and they should be independent of each other. How would I go about doing this? Simply installing Nagios in two different locations and making Apache server each? Thanks Semir -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Wed Jan 24 22:56:57 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Wed, 24 Jan 2007 22:56:57 +0100 (MET) Subject: TWO instances of Nagios on one server - possible? In-Reply-To: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> References: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> Message-ID: <45B7D628.7060606@its-lehmann.de> Hi, On 1/24/2007 10:29 PM, Semir H. wrote: > Hi everyone, > > Would it be possible to run two instances on Nagios on one machine? Yes > The server would be Debian (with Apache). > I want one Nagios instance to monitor one lot of hosts and the other to > monitor a different lot of computers and they should be independent of > each other. > How would I go about doing this? > Simply installing Nagios in two different locations and making Apache > server each? One location for Nagios is sufficient, but configuration and state files must be separate. You'll probably need two different sets of CGIs, compiled with their respective paths. IIRC, there is an environment vraiable you can set to point the CGIs at their state file, but setting this in an apache CGI environment is not something I know how to do :-) Also, one apache is enough, just set up two locations for Naegios. Of course the machine you run all this on should offer enough performance - Nagios can use lots of power. Arno > Thanks > Semir > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmoody at qualcomm.com Wed Jan 24 23:19:46 2007 From: cmoody at qualcomm.com (Chris Moody) Date: Wed, 24 Jan 2007 14:19:46 -0800 Subject: TWO instances of Nagios on one server - possible? In-Reply-To: <45B7D628.7060606@its-lehmann.de> References: <359aca410701241329w3f5faf77wa86b677645b6510a@mail.gmail.com> <45B7D628.7060606@its-lehmann.de> Message-ID: <45B7DB82.1080100@qualcomm.com> Check out my vhost script on nagios-exchange. This is completely possible and works GREAT. I currently have 10+ "vhosts" running on a server. I have some 0.1rev code on the nagios-exchange site...and will be adding code for the 2.x train of Nagios very soon. (I have it working, but want to tidy it a bit more). My build script can setup everything but the "instance specific" details of the host files. Cheers, -Chris Arno Lehmann wrote: > Hi, > > On 1/24/2007 10:29 PM, Semir H. wrote: >> Hi everyone, >> >> Would it be possible to run two instances on Nagios on one machine? > > Yes > >> The server would be Debian (with Apache). >> I want one Nagios instance to monitor one lot of hosts and the other to >> monitor a different lot of computers and they should be independent of >> each other. >> How would I go about doing this? >> Simply installing Nagios in two different locations and making Apache >> server each? > > One location for Nagios is sufficient, but configuration and state files > must be separate. > > You'll probably need two different sets of CGIs, compiled with their > respective paths. IIRC, there is an environment vraiable you can set to > point the CGIs at their state file, but setting this in an apache CGI > environment is not something I know how to do :-) > > Also, one apache is enough, just set up two locations for Naegios. > > Of course the machine you run all this on should offer enough > performance - Nagios can use lots of power. > > Arno > >> Thanks >> Semir >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmoody at qualcomm.com Wed Jan 24 23:25:12 2007 From: cmoody at qualcomm.com (Chris Moody) Date: Wed, 24 Jan 2007 14:25:12 -0800 Subject: Several map views of Nagios In-Reply-To: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> References: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> Message-ID: <45B7DCC8.1060601@qualcomm.com> The statusmap.cgi does not re-draw the map in regards to screen coordinates when hiding groups. Your maps will remain "cluttered" even though you can filter what's even displayed. This is a known limitation of the statusmap.cgi map. I've had (very minor) success is setting the scale larger. ############## fittipaldi cgi # diff statusmap.c statusmap.c-ORIG 72,73c72,73 < #define DEFAULT_NODE_VSPACING 45 < #define DEFAULT_NODE_HSPACING 85 --- > #define DEFAULT_NODE_VSPACING 15 > #define DEFAULT_NODE_HSPACING 45 84c84 < #define CIRCULAR_DRAWING_RADIUS 200 --- > #define CIRCULAR_DRAWING_RADIUS 100 1745c1745 < /*else if(host_services_ratio>=1.5) --- > else if(host_services_ratio>=1.5) 1750c1750 < outer_radius=DEFAULT_NODE_WIDTH*0.4;*/ --- > outer_radius=DEFAULT_NODE_WIDTH*0.4; 1752,1754c1752 < /*outer_radius=DEFAULT_NODE_WIDTH*0.2;*/ < /* MODIFIED BY CMOODY - 11.29.05 */ < outer_radius=DEFAULT_NODE_WIDTH; --- > outer_radius=DEFAULT_NODE_WIDTH*0.2; 2690c2688 < int parent_drawing_width=1; --- > int parent_drawing_width=0; ############## I have yet to find a perfect solution. I'm in a situation where I have several thousand "nodes" to watch. My interim solution has been to create multiple nagios instances with apache vhosts. This way I can group systems logically and represent them in a cleaner fashion. I have 0.1-rev code available via nagios-exchange to build the different vhosts. (I'm hoping to have a newer build available soon (with support for 2.x train of Nagios).) Were my C skillz better, I'd try to take on a building a more adaptive drawing algo... Cheers, -Chris naim abu darwish wrote: > Well, i have similar problem, > I have 530 hosts, so having all those on one map would be meaningless. > I just need the routers and the wireless machines on there. If i chose > what to exclude from the status map, it will still keep links pointing > to hidden devices and thus the map will still be cluttered. I found a > patch on the Pkg-nagios-devel debian mailing list, a post dating back > to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe > nagios-1.x ?? anyway, link to original post :: > > http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html > > this is supposed to make the map only show certain selective > hostgroups on the statusmap. i tried the patch on statusmap.c , I am > using nagios 2.5. the patch failed. Im not very good at reading C > code, could someone help out here ? maybe fix the patch for the > current nagios version, also seems a good idea to include in future > nagios versions > > Help appreciated > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naim.abu.darwish at gmail.com Thu Jan 25 00:13:03 2007 From: naim.abu.darwish at gmail.com (naim abu darwish) Date: Thu, 25 Jan 2007 01:13:03 +0200 Subject: Several map views of Nagios In-Reply-To: <45B7DCC8.1060601@qualcomm.com> References: <3f8ec11c0701241050t781c94f5w54e064d86d314067@mail.gmail.com> <45B7DCC8.1060601@qualcomm.com> Message-ID: <3f8ec11c0701241513s65231fb6oab9ed4022a5b7c7e@mail.gmail.com> using something like graphiz like S?bastien Barbereau suggested, or nagviz i could easily manage the locations of hosts on the map, its a bit of a hassle since every time a host is added you have to move around some 10 other hosts, but its better than nothing. Algorithms that automatically draw maps and do proper spacing would be great, something like graphiz, but the more immediate problem is getting only selected hostgroups to appear in the map, because even when i hide certain hostgroups, lines still point to their hosts. Really it should be a simple patch, just include some config below default_statusmap_layout in cgi.cfg , say included_hostgroups= routers,wireless... whatever. But i dont know C, any volunteers ? you get a big thankyou :D On 1/25/07, Chris Moody wrote: > The statusmap.cgi does not re-draw the map in regards to screen > coordinates when hiding groups. Your maps will remain "cluttered" even > though you can filter what's even displayed. This is a known limitation > of the statusmap.cgi map. > > I've had (very minor) success is setting the scale larger. > ############## > fittipaldi cgi # diff statusmap.c statusmap.c-ORIG > 72,73c72,73 > < #define DEFAULT_NODE_VSPACING 45 > < #define DEFAULT_NODE_HSPACING 85 > --- > > #define DEFAULT_NODE_VSPACING 15 > > #define DEFAULT_NODE_HSPACING 45 > 84c84 > < #define CIRCULAR_DRAWING_RADIUS 200 > --- > > #define CIRCULAR_DRAWING_RADIUS 100 > 1745c1745 > < /*else if(host_services_ratio>=1.5) > --- > > else if(host_services_ratio>=1.5) > 1750c1750 > < > outer_radius=DEFAULT_NODE_WIDTH*0.4;*/ > --- > > > outer_radius=DEFAULT_NODE_WIDTH*0.4; > 1752,1754c1752 > < > /*outer_radius=DEFAULT_NODE_WIDTH*0.2;*/ > < /* MODIFIED BY CMOODY - 11.29.05 */ > < outer_radius=DEFAULT_NODE_WIDTH; > --- > > > outer_radius=DEFAULT_NODE_WIDTH*0.2; > 2690c2688 > < int parent_drawing_width=1; > --- > > int parent_drawing_width=0; > ############## > > I have yet to find a perfect solution. I'm in a situation where I have > several thousand "nodes" to watch. > > My interim solution has been to create multiple nagios instances with > apache vhosts. This way I can group systems logically and represent > them in a cleaner fashion. I have 0.1-rev code available via > nagios-exchange to build the different vhosts. (I'm hoping to have a > newer build available soon (with support for 2.x train of Nagios).) > > Were my C skillz better, I'd try to take on a building a more adaptive > drawing algo... > > Cheers, > -Chris > > naim abu darwish wrote: > > Well, i have similar problem, > > I have 530 hosts, so having all those on one map would be meaningless. > > I just need the routers and the wireless machines on there. If i chose > > what to exclude from the status map, it will still keep links pointing > > to hidden devices and thus the map will still be cluttered. I found a > > patch on the Pkg-nagios-devel debian mailing list, a post dating back > > to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe > > nagios-1.x ?? anyway, link to original post :: > > > > http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html > > > > this is supposed to make the map only show certain selective > > hostgroups on the statusmap. i tried the patch on statusmap.c , I am > > using nagios 2.5. the patch failed. Im not very good at reading C > > code, could someone help out here ? maybe fix the patch for the > > current nagios version, also seems a good idea to include in future > > nagios versions > > > > Help appreciated > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Thu Jan 25 00:17:30 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Wed, 24 Jan 2007 21:17:30 -0200 Subject: Howto not check a service each day from 03-06 In-Reply-To: <45B72FC5.7030604@mailnetwork.co.uk> References: <45B72FC5.7030604@mailnetwork.co.uk> Message-ID: <1169680650.24845.11.camel@localhost> On Wed, 2007-01-24 at 10:07 +0000, Andy Shellam (Mailing Lists) wrote: > > define timeperiod{ > timeperiod_name oracle-downtime > alias Oracle Downtime > sunday 00:00-03:00,06:00-24:00 > <- repeat for monday - saturday -> > } > > Then in your Oracle service check, use "oracle-downtime" as the value > for "check_period" just being itchy, the name leads to misunderstanding, it should be called oracle-uptime, as this timeperiod is defined to check the running oracle instance, not the downtimed period. ;) Marcel AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Thu Jan 25 00:53:15 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 24 Jan 2007 23:53:15 +0000 Subject: Howto not check a service each day from 03-06 In-Reply-To: <1169680650.24845.11.camel@localhost> References: <45B72FC5.7030604@mailnetwork.co.uk> <1169680650.24845.11.camel@localhost> Message-ID: <45B7F16B.7070002@mailnetwork.co.uk> Marcel Mitsuto Fucatu Sugano wrote: > On Wed, 2007-01-24 at 10:07 +0000, Andy Shellam (Mailing Lists) wrote: > >> define timeperiod{ >> timeperiod_name oracle-downtime >> alias Oracle Downtime >> sunday 00:00-03:00,06:00-24:00 >> <- repeat for monday - saturday -> >> } >> >> Then in your Oracle service check, use "oracle-downtime" as the value >> for "check_period" >> > > just being itchy, the name leads to misunderstanding, it should be > called oracle-uptime, as this timeperiod is defined to check the running > oracle instance, not the downtimed period. > Hehe yep good point, I was just making it obvious that it's a time period for a specific-use, but yep I agree! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dick.aseltine at centrepath.com Thu Jan 25 03:43:41 2007 From: dick.aseltine at centrepath.com (Aseltine, Dick) Date: Wed, 24 Jan 2007 21:43:41 -0500 Subject: Compiling check_icmp.c 1.9 Message-ID: <6CA85554A071E54FAE763836FA1CD7440304DF3F@mail-be.centrepath.com> I'm having a problem compiling check_icmp 1.9 from cvsroot. I am quite a novice and need some pointer on how to do it. I compiled version 1.8. I thought I simply did this: "gcc check_icmp.c" . I must have been smarter that day than I am now. Any pointers will be appreciated. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jan 25 07:38:26 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 25 Jan 2007 07:38:26 +0100 (CET) Subject: Howto not check a service each day from 03-06 In-Reply-To: <1169680650.24845.11.camel@localhost> References: <45B72FC5.7030604@mailnetwork.co.uk> <1169680650.24845.11.camel@localhost> Message-ID: On Wed, 24 Jan 2007, Marcel Mitsuto Fucatu Sugano wrote: > On Wed, 2007-01-24 at 10:07 +0000, Andy Shellam (Mailing Lists) wrote: >> >> define timeperiod{ >> timeperiod_name oracle-downtime >> alias Oracle Downtime >> sunday 00:00-03:00,06:00-24:00 >> <- repeat for monday - saturday -> >> } >> >> Then in your Oracle service check, use "oracle-downtime" as the value >> for "check_period" > > just being itchy, the name leads to misunderstanding, it should be > called oracle-uptime, as this timeperiod is defined to check the running > oracle instance, not the downtimed period. If one reads it like "oracle - downtime" the formula matches the task. ;-) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlongland at grintek.com Thu Jan 25 08:12:01 2007 From: jlongland at grintek.com (John Longland) Date: Thu, 25 Jan 2007 09:12:01 +0200 Subject: TWO instances of Nagios on one server - possib le? Message-ID: <97DAFA85DDDB9D4CA206918E0375033E02CE1C@Jupiter.Grintel.com> -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net]On Behalf Of Semir H. Sent: 24 January 2007 23:29 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] TWO instances of Nagios on one server - possible? Hi everyone, Would it be possible to run two instances on Nagios on one machine? The server would be Debian (with Apache). I want one Nagios instance to monitor one lot of hosts and the other to monitor a different lot of computers and they should be independent of each other. How would I go about doing this? Simply installing Nagios in two different locations and making Apache server each? Thanks Semir [John Longland] Semir I agree with the other posts. I don;t know your system / setup, but I would suggest your consider using different log-files for the 2 instances. I *accidently* ran more than one server at some stage and it caused havoc in my particular setup. You could'nt make out what was going on when reading the archive / log entries. Just a suggestion ;-) Best ! John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From udbytossen at gmail.com Thu Jan 25 10:14:20 2007 From: udbytossen at gmail.com (=?windows-1252?Q?Per_J=F8rgensen?=) Date: Thu, 25 Jan 2007 10:14:20 +0100 Subject: problems NSCA Message-ID: <45B874EC.50405@gmail.com> Hey Nagios users. I have a strange problem with nagios NSCA daemon which keeps shutting off : In the end I can see this in the logfiles after It have been running for ca 1-2hours : Jan 24 18:08:48 localhost nsca[11090]: Network server bind failure (98: Address already in use) Jan 24 18:08:49 localhost nsca[11091]: connect from ::ffff:192.168.1.1 (::ffff:192.168.1.1) Jan 24 18:08:49 localhost nsca[11092]: Network server bind failure (98: Address already in use) Jan 24 18:08:50 localhost nsca[11093]: connect from ::ffff:192.168.1.1 (::ffff:192.168.1.1) Jan 24 18:08:50 localhost nsca[11094]: Network server bind failure (98: Address already in use) Jan 24 18:08:51 localhost nsca[11095]: connect from ::ffff:192.168.1.1 (::ffff:192.168.1.1) Jan 24 18:08:51 localhost nsca[11096]: Network server bind failure (98: Address already in use) Jan 24 18:08:51 localhost inetd[5382]: nsca/tcp server failing (looping), service terminated It have been setup to run under inetd ? but have also tried to start it as a daemon but with the same problem no matter what! So the question is how to make it work ? Its running on Ubuntu nagios 2.7 and NSCA 2.7 I have tried amost anything about under inetd, daemon etc ? so its always the same. I also have a speciial thought: Could it be something about the configuration about passive hostcheck and if it runs into 2 exactly lookalike results about the host is down ??? and therefore think its looping ??? don?t know ??? Could anyone give me a solution for this ? Not sure about the bind ?? It?s not running bind or DNS allthough its still checking the nameservers on the system? Greetings /p ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TKocher at spirit21.de Thu Jan 25 10:42:41 2007 From: TKocher at spirit21.de (TKocher at spirit21.de) Date: Thu, 25 Jan 2007 10:42:41 +0100 Subject: $HOME is not set in init script Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 kilala.nl Thu Jan 25 13:40:40 2007 From: nagios at kilala.nl (Thomas Sluyter) Date: Thu, 25 Jan 2007 13:40:40 +0100 Subject: Nagios: checking actual health of a disk. In-Reply-To: <260418.86201.qm@web82106.mail.mud.yahoo.com> References: <260418.86201.qm@web82106.mail.mud.yahoo.com> Message-ID: <049C867E-49E5-406A-9764-6BF4A9FF69AE@kilala.nl> On 24 Jan, 2007, at 0:35, David Rivera wrote: > > I was wondering is anyone has done this, I am wondering if there > are plugins already out there I can use to check the health of Sun > boxes and linux boxes. Some Sun servers have SNMP objects for their HDD status LEDs, like the V240 and the V440. I found the OIDs for those models -> http://www.kilala.nl/Sysadmin/ SNMP-SUNWmasf.php I'm sure other Sun boxen have similar status objects. Cheers! Thomas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gopinath.u at gmail.com Thu Jan 25 14:54:26 2007 From: gopinath.u at gmail.com (Gopinath) Date: Thu, 25 Jan 2007 19:24:26 +0530 Subject: Error when starting nagios in debug mode. Message-ID: Hi and happy new year everyone, I am very new to this list & nagios. So please bare with me. I have successfully installed and compiled nagios in my machine running Fedora core 3. When i try to start the nagios service I encounter with the following error. Error: Unexpected token or statement in file '/usr/local/nagios/etc/hosts.cfg' on line 1. My hosts.cfg file has the default value: 0 CFGDIR cfg 0 DEFHOST pc1 192.168.10.1.cfg serial0 0 DEFHOST pc2 192.168.10.1.cfg serial2 0 DEFHOST pc3 192.168.10.1.cfg serial3 I don't find any document in nagios doc page defining how to edit the host.cfg file. So please help me out. Regards, Gopinath.U -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eagle at cyberdelia.de Thu Jan 25 14:54:28 2007 From: eagle at cyberdelia.de (Daniel Meyer) Date: Thu, 25 Jan 2007 14:54:28 +0100 (CET) Subject: $HOME is not set in init script In-Reply-To: References: Message-ID: On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > I was writing an event-handler which does ssh to the faulty box. It does not work at > all, since $HOME was /root and not /var/log. ssh aborted since it could not read > /root/.ssh/known_hosts. > > So please change the /etc/init.d/nagios which sets all environment variable. Well, its not the init script, its /etc/passwd... nagios:x:100:101:nagios:/var/log/nagios:/bin/sh But why should the nagios user be able to read files within roots home directory? Let the nagios user use its own .ssh/known_hosts file... Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Thu Jan 25 15:12:47 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Thu, 25 Jan 2007 14:12:47 +0000 Subject: Error when starting nagios in debug mode. In-Reply-To: References: Message-ID: <45B8BADF.3030507@mailnetwork.co.uk> Gopinath wrote: > Hi and happy new year everyone, > > I am very new to this list & nagios. So please bare with me. I have > successfully installed and compiled nagios in my machine running > Fedora core 3. When i try to start the nagios service I encounter > with the following error. > > Error: Unexpected token or statement in file > '/usr/local/nagios/etc/hosts.cfg' on line 1. > > My hosts.cfg file has the default value: Erm, the last time I looked that's not a default Nagios host file :S > > 0 CFGDIR cfg > 0 DEFHOST pc1 192.168.10.1.cfg serial0 > 0 DEFHOST pc2 192.168.10.1.cfg serial2 > 0 DEFHOST pc3 192.168.10.1.cfg serial3 > > I don't find any document in nagios doc page defining how to edit the > host.cfg file. So please help me out. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xavier at rootshell.be Thu Jan 25 15:12:45 2007 From: xavier at rootshell.be (Xavier Mertens) Date: Thu, 25 Jan 2007 15:12:45 +0100 (CET) Subject: Implementation templates? Message-ID: Hi list, In the scope of a big Nagios implementation, I would like to know if some of you have standard documents for monitoring requirements? Ex: how to notify, when to notify, escalation procedure, contacts etc... The goal is to collect all data via forms (Excell, Word docs, ...) then implement the solution. Any advice? Xavier -- Alone in the dark of networks (c) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sauloaugustosilva at gmail.com Thu Jan 25 15:27:30 2007 From: sauloaugustosilva at gmail.com (Saulo Silva) Date: Thu, 25 Jan 2007 11:27:30 -0300 Subject: Distributed Monitoring : Monitoring server sending alert . Message-ID: <3ddff6900701250627g6b01d714y23d25cbdccd88d76@mail.gmail.com> Hi Folks , I have a distribute nagios configuration running well . Except that the monitoring server start to send notification either the configuration is set to no in this monitoring . ( enable_notifications=0 ) I using Nagios 1.2 with SUSE 9 . Another questions. Is it any way to do host passive monitoring in nagios 1.x? I would not like to use active monitoring in my central server . best regards, Saulo Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TKocher at spirit21.de Thu Jan 25 15:27:03 2007 From: TKocher at spirit21.de (TKocher at spirit21.de) Date: Thu, 25 Jan 2007 15:27:03 +0100 Subject: Antwort: Re: $HOME is not set in init script Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eagle at cyberdelia.de Thu Jan 25 15:54:22 2007 From: eagle at cyberdelia.de (Daniel Meyer) Date: Thu, 25 Jan 2007 15:54:22 +0100 (CET) Subject: Antwort: Re: $HOME is not set in init script In-Reply-To: References: Message-ID: On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > Daniel, > > nagios is started in /etc/init.d/nagios with "su - nagios -c nagios", so the process > inherits the environment varialbes of the root user, which executes the su command. > ($HOME is /root) [root at server ~]# echo $HOME /root [root at server ~]# su - nagios -sh-3.00$ echo $HOME /var/log/nagios Nope, the environment get changed to the values valid for the user... > so the ssh wants to open ~/.ssh/known_hosts which is /root/.ssh/known_hosts which is > not readable by the nagios user. sh-3.00$ cd ~/.ssh sh: cd: /var/log/nagios/.ssh: No such file or directory Nope, it looks right into the home directory of the nagios user. > If you look into /etc/init.d/nagios a lot of environment varialbes are set, it is no > big deal to set in addition the $HOME variable. Maybe it would help to know which distro you are using - the examples in my mail are from CentOS 4.4. But its the nature of su to behave as it does here: "By default, `su' does not change the current directory. It sets the environment variables `HOME' and `SHELL' from the password entry for USER, and if USER is not the super-user, sets `USER' and `LOGNAME' to USER. By default, the shell is not a login shell." (from the su info page) And my most important point stays: do you really want to have a daemon accessing security related files within roots homedir? Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 25 15:55:22 2007 From: marc at ena.com (Marc Powell) Date: Thu, 25 Jan 2007 08:55:22 -0600 Subject: $HOME is not set in init script Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of TKocher at spirit21.de > Sent: Thursday, January 25, 2007 3:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] $HOME is not set in init script > > Hi all, > > I was writing an event-handler which does ssh to the faulty box. It does > not work at all, since $HOME was /root and not /var/log. ssh aborted since > it could not read /root/.ssh/known_hosts. FWIW, I don't see this with my event handlers. All run as nagios and use ~nagios/.ssh/known_hosts when called in my event handler like -- ssh $4 'sudo /etc/init.d/winbind restart ' >>$LOGFILE 2>&1 -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 25 16:07:08 2007 From: marc at ena.com (Marc Powell) Date: Thu, 25 Jan 2007 09:07:08 -0600 Subject: Distributed Monitoring : Monitoring server sendingalert . Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Saulo Silva > Sent: Thursday, January 25, 2007 8:28 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Distributed Monitoring : Monitoring server > sendingalert . > > Hi Folks , > > I have a distribute nagios configuration running well . Except that the > monitoring server start to send notification either the configuration is > set to no in this monitoring . ( enable_notifications=0 ) See . That only controls if nagios sends notifications on restart and will be remembered if you have retention enabled. Also see notification_period and notifications_enabled at and . I usually leave notifications enabled above but set a notification_period of none and notifications disabled in my host and service definitions. Makes for a cleaner looking GUI, IMHO. > > I using Nagios 1.2 with SUSE 9 . > Another questions. Is it any way to do host passive monitoring in nagios > 1.x ? No, the feature was newly introduced with 2.0. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 25 16:12:54 2007 From: marc at ena.com (Marc Powell) Date: Thu, 25 Jan 2007 09:12:54 -0600 Subject: Error when starting nagios in debug mode. Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gopinath > Sent: Thursday, January 25, 2007 7:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Error when starting nagios in debug mode. > > > Error: Unexpected token or statement in file > '/usr/local/nagios/etc/hosts.cfg' on line 1. > > My hosts.cfg file has the default value: > > 0 CFGDIR cfg > 0 DEFHOST pc1 192.168.10.1.cfg serial0 > 0 DEFHOST pc2 192.168.10.1.cfg serial2 > 0 DEFHOST pc3 192.168.10.1.cfg serial3 This looks like an mrtgmk config file. Nagios doesn't understand these. http://nagios.sourceforge.net/docs/2_0/config.html -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 gridshield.net Thu Jan 25 16:47:25 2007 From: marc at gridshield.net (Marc DeTrano) Date: Thu, 25 Jan 2007 09:47:25 -0600 Subject: Several map views of Nagios In-Reply-To: References: Message-ID: <45B8D10D.3070100@gridshield.net> You may also be interested in NEXSM (Nagios extended status map). It also requires a manual organization of the hosts, but you can get some nice looking, data-connected maps using it. http://www.nagiosexchange.org/Frontends.37.0.html?&tx_netnagext_pi1[p_view]=625 Marc DeTrano Gridshield, S.A. >> Well, i have similar problem, >> I have 530 hosts, so having all those on one map would be meaningless. >> I just need the routers and the wireless machines on there. If i chose >> what to exclude from the status map, it will still keep links pointing >> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Andrew.Laden at tudor.com Thu Jan 25 17:27:00 2007 From: Andrew.Laden at tudor.com (Andrew Laden) Date: Thu, 25 Jan 2007 11:27:00 -0500 Subject: Auto-clearing passive checks Message-ID: <496A4C483DD4504C84C0094D9C48CFD30EBD056D@tudor.com> Heya I am running Nagios with snmptraps being caught in the usual passive/volitile check method. The big downside with this setup is that those traps will never clear. I have to manually submit a passive check to clear them, which is annoying. So I want to build an active check that I can use to auto-clear them with the following paramaters. If the service is currently ok, Return OK. If the service is currently non-ok and the last non-ok passive check state is less then x minutes old, return the current state. If the service is currently non-ok, and the last non-ok passive check state is greater then x minutes old, Return ok. (ie, reset the state) I see a few problems with this. 1: With volatile being set, every time the auto-clear check runs, it will re-notify. 2: I have no way of getting the last time that a passive check reported, only the time that the service changed from OK to Non-ok. (ie, if a passive check sends a non ok, at time 0, and again at time 30. I want the reset to occur as x+30, not x.) My leaning then is to do this outside of nagios. And run a script that checks the status file, looks for services that meet the requirements. (passive only, non-ok, Last update greater then x) and submit a passive check to reset them. Anyone else have any innovative solutions to this? Thanks -Andrew -- _________________________________________________________ This communication is intended only for the addressee(s) and may contain confidential information. We do not waive any confidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sujiannming at gmail.com Thu Jan 25 21:26:49 2007 From: sujiannming at gmail.com (Jiann-Ming Su) Date: Thu, 25 Jan 2007 15:26:49 -0500 Subject: nagios and selinux? Message-ID: <561dc3260701251226s59e73486v86244423dfac9cd9@mail.gmail.com> What's the proper way to configure nagios and selinux to work together? I've run into the same problem as described here: http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html Setting selinux to permissive got my test nagios going. But, now I need to migrate to a production system with selinux set to enforcing and type set to targeted. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MPetersen at gs1us.org Thu Jan 25 22:44:45 2007 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 25 Jan 2007 15:44:45 -0600 Subject: nagios and selinux? Message-ID: <115F9F24033E1E4AB338024BDF9646F0055ADB@chilms1002.UCCORG.org> Can you move the cgi's (or possibly hardlink them) to someplace that apache will let them run (say /var/www/nagios2/cgi-bin)? Otherwise you might need some sort of a compile option to just install them there. Someone more familiar with the build process might be able to help here. There's also ways to hack apache (may require recompile) to allow this, but I'm under the impression from these two posts that SELinux would disallow those changes to take effect? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jiann-Ming Su Sent: Thursday, January 25, 2007 2:27 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios and selinux? What's the proper way to configure nagios and selinux to work together? I've run into the same problem as described here: http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html Setting selinux to permissive got my test nagios going. But, now I need to migrate to a production system with selinux set to enforcing and type set to targeted. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 25 22:57:26 2007 From: marc at ena.com (Marc Powell) Date: Thu, 25 Jan 2007 15:57:26 -0600 Subject: nagios and selinux? Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jiann-Ming Su > Sent: Thursday, January 25, 2007 2:27 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios and selinux? > > What's the proper way to configure nagios and selinux to work > together? I've run into the same problem as described here: > > http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html > > Setting selinux to permissive got my test nagios going. But, now I > need to migrate to a production system with selinux set to enforcing > and type set to targeted. Thanks for any tips. I don't use Fedora nor do I use SELinux but googling for "fedora nagios selinux" seems to provide a number of links with very specific instructions. I know SELinux policies have been discussed here and those will be available in the archives as well. -- Marc "Use the Net Luke..." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Thu Jan 25 22:57:41 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Thu, 25 Jan 2007 22:57:41 +0100 (MET) Subject: nagios and selinux? In-Reply-To: <115F9F24033E1E4AB338024BDF9646F0055ADB@chilms1002.UCCORG.org> References: <115F9F24033E1E4AB338024BDF9646F0055ADB@chilms1002.UCCORG.org> Message-ID: <45B927D4.9050904@its-lehmann.de> Hi, On 1/25/2007 10:44 PM, Petersen, Mark wrote: > Can you move the cgi's (or possibly hardlink them) to someplace that > apache will let them run (say /var/www/nagios2/cgi-bin)? Otherwise you > might need some sort of a compile option to just install them there. > Someone more familiar with the build process might be able to help here. That would not help, given a tightly locked SELinux system, I believe. > There's also ways to hack apache (may require recompile) to allow this, > but I'm under the impression from these two posts that SELinux would > disallow those changes to take effect? The point is to configure SELinux to allow whatever is necessary. This will not only be apache and the cgis, but also the monitoring plugins and, of course, nagios itself. I've never used SELinux, but AFAIK you can run a system, log all the activities, review that log to make sure everything is ok, and convert that in a ruleset which allows just what you observed. This will not work where programs do things that were never observed. Just think about event handler scripts that never got triggered in your observation phase. In short, you will need someone who actually knows that SELinux stuff and has access to the machine in question. A security oriented person would hopefully never install SELinux rules on such a machine that he did not review or even create himself. Sounds like that servers admin :-) Arno > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > Jiann-Ming Su > Sent: Thursday, January 25, 2007 2:27 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios and selinux? > > What's the proper way to configure nagios and selinux to work > together? I've run into the same problem as described here: > > > http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html > > Setting selinux to permissive got my test nagios going. But, now I > need to migrate to a production system with selinux set to enforcing > and type set to targeted. Thanks for any tips. > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel_p_lacey at yahoo.com Thu Jan 25 23:08:40 2007 From: daniel_p_lacey at yahoo.com (Daniel Lacey) Date: Thu, 25 Jan 2007 14:08:40 -0800 Subject: nagios and selinux? In-Reply-To: <45B927D4.9050904@its-lehmann.de> References: <115F9F24033E1E4AB338024BDF9646F0055ADB@chilms1002.UCCORG.org> <45B927D4.9050904@its-lehmann.de> Message-ID: <45B92A68.6040909@yahoo.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sujiannming at gmail.com Fri Jan 26 02:09:48 2007 From: sujiannming at gmail.com (Jiann-Ming Su) Date: Thu, 25 Jan 2007 20:09:48 -0500 Subject: nagios and selinux? In-Reply-To: References: Message-ID: <561dc3260701251709u29256341i29edf9932c8203fa@mail.gmail.com> On 1/25/07, Marc Powell wrote: > > I don't use Fedora nor do I use SELinux but googling for "fedora nagios > selinux" seems to provide a number of links with very specific > instructions. I know SELinux policies have been discussed here and those > will be available in the archives as well. > Thanks for all the replies. I'm using CentOS, but didn't even think to add "centos" to the google search. I'm working through the archives now. Thanks. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eagle at cyberdelia.de Fri Jan 26 08:45:14 2007 From: eagle at cyberdelia.de (Daniel Meyer) Date: Fri, 26 Jan 2007 08:45:14 +0100 (CET) Subject: Antwort: Re: $HOME is not set in init script In-Reply-To: References: Message-ID: On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > Daniel, > > nagios is started in /etc/init.d/nagios with "su - nagios -c nagios", so the process > inherits the environment varialbes of the root user, which executes the su command. > ($HOME is /root) Which distribution are you using? My init-script (based on the one from Dag Wieers Nagios-RPM) starts nagios this way: case "$1" in start) echo "Starting network monitor: nagios" $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; if [ $? -eq 0 ]; then su - $NagiosUser -c "/usr/bin/ndo2db -c /etc/nagios/ndo2db.cfg" su - $NagiosUser -c "touch $NagiosVarDir/nagios.log $NagiosRetentionFile" rm -f $NagiosCommandFile touch $NagiosRunFile chown $NagiosUser:$NagiosGroup $NagiosRunFile $NagiosBin -d $NagiosCfgFile Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TKocher at spirit21.de Fri Jan 26 08:56:49 2007 From: TKocher at spirit21.de (TKocher at spirit21.de) Date: Fri, 26 Jan 2007 08:56:49 +0100 Subject: Antwort: Re: Antwort: Re: $HOME is not set in init script Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Fri Jan 26 09:12:12 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Fri, 26 Jan 2007 09:12:12 +0100 (MET) Subject: Antwort: Re: Antwort: Re: $HOME is not set in init script In-Reply-To: References: Message-ID: <45B9B7DB.1010602@its-lehmann.de> Hello, On 1/26/2007 8:56 AM, TKocher at spirit21.de wrote: I'm not absolutely sure, but is it your mail program that add an "Antwort:" to the Subject? It would be nice if that could be turned off - look at the subject line now and imagine how it will look after some longer mail exchange. The usual and more-or-less standard prefix for a reply is Re:. > Danny, > > you have the same start section as it is on my system. > If you look a little bit further in the file you find this section > > prefix=/usr > exec_prefix=/usr > NagiosBin=/usr/bin/nagios > NagiosCfgFile=/etc/nagios/nagios.cfg > NagiosStatusFile=/var/log/nagios/status.dat > NagiosTempFile=/var/log/nagios/nagios.tmp > NagiosRetentionFile=/var/log/nagios/retention.dat > NagiosCommandFile=/var/log/nagios/rw/nagios.cmd > NagiosVarDir=/var/log/nagios > NagiosRunFile=/var/run/nagios.pid > NagiosLockDir=/var/lock/subsys > NagiosLockFile=nagios > NagiosCGIDir=/usr/lib/nagios/cgi > NagiosUser=nagios > NagiosGroup=nagios > > # added by thorsten > > HOME=/var/log/nagios If that is necessary then your setup is, IMO, broken. su uses the system-wide setting for the home directoy. At least it does so on all the systems I know. That has been demonstarted in this thread. Thus, there is no need for a work-around - you'd better check what is broken in your setup. > > This solves the problem of the /home problem, so I before other people > are running in the same problem it is better to add it in the distritbution. No, it's probably only you who has that problem. So it would be better to fix your problem and not create new ones... By the way - and I don't know the start script you quote from - the HOME variable probably needs to be exported before it takes effect. Arno > I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm build > by my own. > > Thorsten > > > An: TKocher at spirit21.de > Von: Daniel Meyer > Datum: 26.01.2007 08:45AM > Kopie: nagios-users at lists.sourceforge.net > Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init script > > On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > > > Daniel, > > > > nagios is started in /etc/init.d/nagios with "su - nagios -c > nagios", so the process > > inherits the environment varialbes of the root user, which > executes the su command. > > ($HOME is /root) > > Which distribution are you using? My init-script (based on the one from > Dag Wieers Nagios-RPM) starts nagios this way: > > case "$1" in > > start) > echo "Starting network monitor: nagios" > $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > if [ $? -eq 0 ]; then > su - $NagiosUser -c "/usr/bin/ndo2db -c > /etc/nagios/ndo2db.cfg" > su - $NagiosUser -c "touch > $NagiosVarDir/nagios.log $NagiosRetentionFile" > rm -f $NagiosCommandFile > touch $NagiosRunFile > chown $NagiosUser:$NagiosGroup $NagiosRunFile > $NagiosBin -d $NagiosCfgFile > > > > Danny > -- > Q: Gentoo is too hard to install = http://www.cyberdelia.de > and I feel like whining. = eagle at cyberdelia.de > A: Please see /dev/null. = > (from the gentoo installer FAQ) = \o/ > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TKocher at spirit21.de Fri Jan 26 09:54:23 2007 From: TKocher at spirit21.de (TKocher at spirit21.de) Date: Fri, 26 Jan 2007 09:54:23 +0100 Subject: Antwort: Re: Antwort: Re: $HOME is not set in init script Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Wim.Barthier at nbb.be Fri Jan 26 09:58:54 2007 From: Wim.Barthier at nbb.be (Barthier Wim) Date: Fri, 26 Jan 2007 09:58:54 +0100 Subject: OpenVMS SSH Message-ID: <96DBEA7143ECD048905FAAA27D86E0D204FDFE9D@VSRBEX10.LANPRD.NBB> Hello, Question concerning OpenVMS with SSH towards Nagios. I have some OpenVMS 7.3-2 Alpha at site and I wanna use Nagios to check some stuff like disk space, processes, batchjobs... i have written some procedures in DCL (Digital Command Language) which return a status and a comment line. The Nagios server OS RedHat4 Nagios v2.5 OpenVMS client OS v7.3-2 (soon 8.3) TCPIP 5.4 eco 6 SSL v1.2 The problem is, when I use SSH for the connection, the first line I get at the Nagios server is a blanc line and then the comments I put through. So at the Nagios console I don't see sh**. As far as I have checked and debugged the line comes from the SSH connection. Is there anyone who has implemented Nagios on OpenVMS with the SSH connection? Is there a way to say at the Nagios server that he has to ignore the first line he gets from the client? Now I am using NRPE but I would prefer to standardize arround SSH because we are now already using it for a various number of other things. Greets, Wim Barthier System Engineer National Bank of Belgium ----------------------------------------- Visit our website! http://www.nbb.be "DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author." -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kullmann at elementec.de Fri Jan 26 10:42:44 2007 From: kullmann at elementec.de (Peter Kullmann) Date: Fri, 26 Jan 2007 10:42:44 +0100 Subject: Nagios tracked by Update-Scout.com Message-ID: <45B9CD14.2030709@elementec.de> Hi, Nagios has been added to Update-Scout.com, an interactive web service, that informs its users about software updates and releases. Users can set up personal update news feeds from the Update-Scout software catalog and even add new entries to the catalog. The address is http://www.update-scout.com . The latest version number is currently grabbed from http://www.nagios.org/download/ . If there is a better possibility to retrieve the version (e.g. PAD file), I would be glad to know. Thanks, Peter Kullmann ========================================== elementec Software & Consulting Dr. Peter Kullmann Wollgrasweg 49, 70599 Stuttgart, Germany ========================================== Tel +49 - 711 - 4510 17 350 Fax +49 - 711 - 4510 17 222 info at update-scout.com www.update-scout.com ========================================== ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Fri Jan 26 11:16:38 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Fri, 26 Jan 2007 11:16:38 +0100 (MET) Subject: Antwort: Re: Antwort: Re: $HOME is not set in init script In-Reply-To: References: Message-ID: <45B9D505.5040904@its-lehmann.de> Hi, On 1/26/2007 9:54 AM, TKocher at spirit21.de wrote: > > Hi Danny, I'm not Danny, but... > in my further debugging, I recognized that something different is missing. > > The whole stoy: > > I wrote an event-handler which uses Expect to ssh to the faulty device. > ssh is not executed if I define the perl file as event-handler, but the > event-hander itself is executed. > > If I write a bash script as event-handler, which embeddeds the perl > event-handler everything works fine: You've got a problem with the perl script. The embedded Perl requires that you follow certain rules in your script. I suupose that there's the problem. How to use ePn is documented somewhere - as I don't use it myself I don't have the URL here. Arno > #!/bin/bash > /usr/local/nagios/libexec/eventhandlers/stop_pbr_webcomm.pl $1 $2 $3 > > In this case I removed the HOME assignment in the startup script and > reloaded nagios. Any Ideas? > > Thorsten > > -----Thorsten Kocher/Spirit21 schrieb: ----- > > An: Daniel Meyer > Von: Thorsten Kocher/Spirit21 > Datum: 26.01.2007 08:56AM > Kopie: Thorsten Kocher/Spirit21 at Spirit21, > nagios-users at lists.sourceforge.net > Thema: Antwort: Re: [Nagios-users] Antwort: Re: $HOME is not set in > init script > > Danny, > > you have the same start section as it is on my system. > If you look a little bit further in the file you find this section > > prefix=/usr > exec_prefix=/usr > NagiosBin=/usr/bin/nagios > NagiosCfgFile=/etc/nagios/nagios.cfg > NagiosStatusFile=/var/log/nagios/status.dat > NagiosTempFile=/var/log/nagios/nagios.tmp > NagiosRetentionFile=/var/log/nagios/retention.dat > NagiosCommandFile=/var/log/nagios/rw/nagios.cmd > NagiosVarDir=/var/log/nagios > NagiosRunFile=/var/run/nagios.pid > NagiosLockDir=/var/lock/subsys > NagiosLockFile=nagios > NagiosCGIDir=/usr/lib/nagios/cgi > NagiosUser=nagios > NagiosGroup=nagios > > # added by thorsten > > HOME=/var/log/nagios > > This solves the problem of the /home problem, so I before other > people are running in the same problem it is better to add it in the > distritbution. > > I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm > build by my own. > > Thorsten > > > An: TKocher at spirit21.de > Von: Daniel Meyer > Datum: 26.01.2007 08:45AM > Kopie: nagios-users at lists.sourceforge.net > Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init > script > > On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > > > Daniel, > > > > nagios is started in /etc/init.d/nagios with "su - nagios -c > nagios", so the process > > inherits the environment varialbes of the root user, which > executes the su command. > > ($HOME is /root) > > Which distribution are you using? My init-script (based on the > one from > Dag Wieers Nagios-RPM) starts nagios this way: > > case "$1" in > > start) > echo "Starting network monitor: nagios" > $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > if [ $? -eq 0 ]; then > su - $NagiosUser -c "/usr/bin/ndo2db -c > /etc/nagios/ndo2db.cfg" > su - $NagiosUser -c "touch > $NagiosVarDir/nagios.log $NagiosRetentionFile" > rm -f $NagiosCommandFile > touch $NagiosRunFile > chown $NagiosUser:$NagiosGroup > $NagiosRunFile > $NagiosBin -d $NagiosCfgFile > > > > Danny > -- > Q: Gentoo is too hard to install = > http://www.cyberdelia.de > and I feel like whining. = > eagle at cyberdelia.de > A: Please see /dev/null. = > (from the gentoo installer FAQ) = > \o/ > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Fri Jan 26 11:19:39 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Fri, 26 Jan 2007 10:19:39 -0000 Subject: FW: Memory leaks Message-ID: -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net On Behalf Of Andreas Ericsson Sent: 24 January 2007 11:15 > Tobias Klausmann wrote: (big snip) >> For vanilla Nagios, at least it's clear that in whatever way >> memory is wasted, it also slows Nagios down - a possibility would >> be a linked list that is walked and gets appended over and over. >> But I guess those with knowledge of the inner workings of Nagios >> have more clue about this than I do. > Anyone wanting to look into it should probably take a look at the > event scheduling queue. I have also been experiencing memory leaks, such that the kernel has been taking drastic action by killing processes starting with nagios and often including httpd, sshd etc. This all seems to happen at about 4:45 every morning. A reboot solves the problem and everything starts up again, but yesterday I decided to reboot using the single processor kernel (most of our nodes are dual processor, some are dual core as well) and there is no sign of a memory leak today ! Does that give anyone any clues ? Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From espent at totem.fix.no Fri Jan 26 11:45:01 2007 From: espent at totem.fix.no (Espen Tagestad) Date: Fri, 26 Jan 2007 11:45:01 +0100 Subject: check_mrtgtraf returns STATE_UNKNOWN Message-ID: <20070126104501.GA20066@totem.fix.no> Hi, My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK. Why? My check-command is like this: /usr/local/libexec/nagios/check_mrtgtraf -F /usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 500000,500000 -e 10 Output is this: Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000 in=192.045898KB/s;375000.000000;500000.000000;0.000000 Lowering warning and critical options triggers STATE_WARNING and STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c setting STATE_OK other than when plugin is execute with a -V or -h option. Cheers, Espen Tagestad ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From espent at totem.fix.no Fri Jan 26 11:38:26 2007 From: espent at totem.fix.no (Espen Tagestad) Date: Fri, 26 Jan 2007 11:38:26 +0100 Subject: check_mrtgtraf returns STATE_UNKNOWN Message-ID: <20070126103826.GA19826@totem.fix.no> Hi, My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK. Why? My check-command is like this: /usr/local/libexec/nagios/check_mrtgtraf -F /usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 500000,500000 -e 10 Output is this: Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000 in=192.045898KB/s;375000.000000;500000.000000;0.000000 Lowering warning and critical options triggers STATE_WARNING and STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c setting STATE_OK other than when plugin is execute with a -V or -h option. regards, Espen ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eagle at cyberdelia.de Fri Jan 26 12:56:59 2007 From: eagle at cyberdelia.de (Daniel Meyer) Date: Fri, 26 Jan 2007 12:56:59 +0100 (CET) Subject: Antwort: Re: Antwort: Re: $HOME is not set in init script In-Reply-To: <45B9D505.5040904@its-lehmann.de> References: <45B9D505.5040904@its-lehmann.de> Message-ID: On Fri, 26 Jan 2007, Arno Lehmann wrote: >> Hi Danny, > I'm not Danny, but... but i am :-) > You've got a problem with the perl script. The embedded Perl requires > that you follow certain rules in your script. I suupose that there's the > problem. Yep, clearly a problem with ePN. You can just call /usr/bin/perl /path/to/your/plugin.pl as a check command to prevent the ePN usage for just that plugin/event handler. With nagios 3 you'll be able to enable/disable epn on a per script basis by using settings in the first few lines within the script Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From iamyolanda at gmail.com Fri Jan 26 13:11:55 2007 From: iamyolanda at gmail.com (Yolanda Santos) Date: Fri, 26 Jan 2007 13:11:55 +0100 Subject: Different check_http? In-Reply-To: References: Message-ID: Hi, I have Nagios 2.5 with plugins 1.4.5 I have an url and it can happend 2 possibilities: 1? If it's OK, it responds a binary file 2? If it's ERROR, it responds a html page, wich tell us that 'The service is not available' I want to check this, but... how can I do it? How can I check if a determinated string is in the binary file? Or.... can I change the check_http for giving me an ERROR when find an string? Normaly, if you check an url, and a string to expect in the content, if you find it, you have an OK answer. I want the opposite. If I find a string in the content, I want an ERROR answer... Is this possible? Thanks. Yolanda -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 thebug.demon.nl Fri Jan 26 13:31:40 2007 From: nagios at thebug.demon.nl (Richard Luys-Nagios User) Date: Fri, 26 Jan 2007 13:31:40 +0100 Subject: Different check_http? In-Reply-To: References: Message-ID: Yolanda, With the plugin package came (if I'm not mistaken) a small binary called 'negate'. This should be in your plugin directory. With this you can negate the returncodes of your plugins; ie: Error becomes Ok, and vice versa. See the help output of negate below: negate (nagios-plugins 1.3.1) 1.5.2.2 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. Copyright (c) 2002 Karl DeBisschop Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] negate (-h | --help) for detailed help negate (-V | --version) for version information Options: -t, --timeout=INTEGER Terminate test if timeout limit is exceeded (default: 9) [keep this less than the plugin timeout to retain CRITICAL status] This plugin is a wrapper to take the output of another plugin and invert it. If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL. If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK. Otherwise, the output state of the wrapped plugin is unchanged. Send email to nagios-users at lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel at lists.sourceforge.net Richard On Fri, 26 Jan 2007 13:11:55 +0100, Yolanda Santos wrote: > Hi, > > I have Nagios 2.5 with plugins 1.4.5 > I have an url and it can happend 2 possibilities: > > 1? If it's OK, it responds a binary file > > 2? If it's ERROR, it responds a html page, wich tell us that 'The > service is > not available' > > I want to check this, but... how can I do it? > How can I check if a determinated string is in the binary file? > Or.... can I change the check_http for giving me an ERROR when find an > string? > > Normaly, if you check an url, and a string to expect in the content, if > you > find it, you have an OK answer. > I want the opposite. If I find a string in the content, I want an ERROR > answer... > Is this possible? > > Thanks. > Yolanda -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From grover1711 at gmail.com Fri Jan 26 15:13:34 2007 From: grover1711 at gmail.com (ankush grover) Date: Fri, 26 Jan 2007 19:43:34 +0530 Subject: removing acknowledge comments associated with the services or host from nagios Message-ID: <5f638b360701260613l6147f58fxfea01b28a9165f4d@mail.gmail.com> hi friends, I have configured Nagios 2.6 in a Production Environment. There are about 200 servers and about 1000 services which are being monitored by nagios. I want to remove acknowledge comments associated with the hosts or services is there any command through which I can achieve this. Thanks & Regards Ankush Grover ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Andrew.Laden at tudor.com Fri Jan 26 15:28:11 2007 From: Andrew.Laden at tudor.com (Andrew Laden) Date: Fri, 26 Jan 2007 09:28:11 -0500 Subject: removing acknowledge comments associated with theservices or host from nagios Message-ID: <496A4C483DD4504C84C0094D9C48CFD30F088B3E@tudor.com> I have a script that loads in the status and comments.dat file, and looks for any services that are OK, that have acknowlege comments associated with them, and the give the option to delete. I don't consider this ready for prime time, so I havent thought about putting it up on nagios exchange yet. But you are free to try to adapt it. Rename to complean.tar.gz, Unzip, untar, edit for your paths, and run comclean.pl -Andrew > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of ankush grover > Sent: Friday, January 26, 2007 9:14 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] removing acknowledge comments > associated with theservices or host from nagios > > hi friends, > > I have configured Nagios 2.6 in a Production Environment. > There are about 200 servers and about 1000 services which are > being monitored by nagios. > > I want to remove acknowledge comments associated with the > hosts or services is there any command through which I can > achieve this. > > > Thanks & Regards > > > Ankush Grover > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 communication is intended only for the addressee(s) and may contain confidential information. We do not waive any confidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: complean.tar.gz.txt URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tommaso.mirante at elsag.it Fri Jan 26 15:32:46 2007 From: tommaso.mirante at elsag.it (Mirante Tommaso) Date: Fri, 26 Jan 2007 15:32:46 +0100 Subject: Nagios-users Digest, Vol 8, Issue 45 References: Message-ID: Please provide me info how i can interact with nagios developes -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of nagios-users-request at lists.sourceforge.net Sent: venerd? 26 gennaio 2007 15.30 To: nagios-users at lists.sourceforge.net Subject: Nagios-users Digest, Vol 8, Issue 45 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. nagios and selinux? (Jiann-Ming Su) 2. Re: nagios and selinux? (Petersen, Mark) 3. Re: nagios and selinux? (Marc Powell) 4. Re: nagios and selinux? (Arno Lehmann) 5. Re: nagios and selinux? (Daniel Lacey) 6. Re: nagios and selinux? (Jiann-Ming Su) 7. Re: Antwort: Re: $HOME is not set in init script (Daniel Meyer) 8. Antwort: Re: Antwort: Re: $HOME is not set in init script (TKocher at spirit21.de) 9. Re: Antwort: Re: Antwort: Re: $HOME is not set in init script (Arno Lehmann) 10. Antwort: Re: Antwort: Re: $HOME is not set in init script (TKocher at spirit21.de) 11. OpenVMS SSH (Barthier Wim) 12. Nagios tracked by Update-Scout.com (Peter Kullmann) 13. Re: Antwort: Re: Antwort: Re: $HOME is not set in init script (Arno Lehmann) 14. FW: Memory leaks (Wheeler, JF (Jonathan)) 15. check_mrtgtraf returns STATE_UNKNOWN (Espen Tagestad) 16. check_mrtgtraf returns STATE_UNKNOWN (Espen Tagestad) 17. Re: Antwort: Re: Antwort: Re: $HOME is not set in init script (Daniel Meyer) 18. Different check_http? (Yolanda Santos) 19. Re: Different check_http? (Richard Luys-Nagios User) 20. removing acknowledge comments associated with the services or host from nagios (ankush grover) 21. Re: removing acknowledge comments associated with theservices or host from nagios (Andrew Laden) ---------------------------------------------------------------------- Message: 1 Date: Thu, 25 Jan 2007 15:26:49 -0500 From: "Jiann-Ming Su" Subject: [Nagios-users] nagios and selinux? To: nagios-users at lists.sourceforge.net Message-ID: <561dc3260701251226s59e73486v86244423dfac9cd9 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed What's the proper way to configure nagios and selinux to work together? I've run into the same problem as described here: http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html Setting selinux to permissive got my test nagios going. But, now I need to migrate to a production system with selinux set to enforcing and type set to targeted. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------ Message: 2 Date: Thu, 25 Jan 2007 15:44:45 -0600 From: "Petersen, Mark" Subject: Re: [Nagios-users] nagios and selinux? To: Message-ID: <115F9F24033E1E4AB338024BDF9646F0055ADB at chilms1002.UCCORG.org> Content-Type: text/plain; charset="us-ascii" Can you move the cgi's (or possibly hardlink them) to someplace that apache will let them run (say /var/www/nagios2/cgi-bin)? Otherwise you might need some sort of a compile option to just install them there. Someone more familiar with the build process might be able to help here. There's also ways to hack apache (may require recompile) to allow this, but I'm under the impression from these two posts that SELinux would disallow those changes to take effect? -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jiann-Ming Su Sent: Thursday, January 25, 2007 2:27 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios and selinux? What's the proper way to configure nagios and selinux to work together? I've run into the same problem as described here: http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html Setting selinux to permissive got my test nagios going. But, now I need to migrate to a production system with selinux set to enforcing and type set to targeted. Thanks for any tips. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Thu, 25 Jan 2007 15:57:26 -0600 From: "Marc Powell" Subject: Re: [Nagios-users] nagios and selinux? To: Message-ID: Content-Type: text/plain; charset="US-ASCII" > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jiann-Ming Su > Sent: Thursday, January 25, 2007 2:27 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios and selinux? > > What's the proper way to configure nagios and selinux to work > together? I've run into the same problem as described here: > > http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html > > Setting selinux to permissive got my test nagios going. But, now I > need to migrate to a production system with selinux set to enforcing > and type set to targeted. Thanks for any tips. I don't use Fedora nor do I use SELinux but googling for "fedora nagios selinux" seems to provide a number of links with very specific instructions. I know SELinux policies have been discussed here and those will be available in the archives as well. -- Marc "Use the Net Luke..." ------------------------------ Message: 4 Date: Thu, 25 Jan 2007 22:57:41 +0100 (MET) From: Arno Lehmann Subject: Re: [Nagios-users] nagios and selinux? To: nagios-users at lists.sourceforge.net Message-ID: <45B927D4.9050904 at its-lehmann.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, On 1/25/2007 10:44 PM, Petersen, Mark wrote: > Can you move the cgi's (or possibly hardlink them) to someplace that > apache will let them run (say /var/www/nagios2/cgi-bin)? Otherwise you > might need some sort of a compile option to just install them there. > Someone more familiar with the build process might be able to help here. That would not help, given a tightly locked SELinux system, I believe. > There's also ways to hack apache (may require recompile) to allow this, > but I'm under the impression from these two posts that SELinux would > disallow those changes to take effect? The point is to configure SELinux to allow whatever is necessary. This will not only be apache and the cgis, but also the monitoring plugins and, of course, nagios itself. I've never used SELinux, but AFAIK you can run a system, log all the activities, review that log to make sure everything is ok, and convert that in a ruleset which allows just what you observed. This will not work where programs do things that were never observed. Just think about event handler scripts that never got triggered in your observation phase. In short, you will need someone who actually knows that SELinux stuff and has access to the machine in question. A security oriented person would hopefully never install SELinux rules on such a machine that he did not review or even create himself. Sounds like that servers admin :-) Arno > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > Jiann-Ming Su > Sent: Thursday, January 25, 2007 2:27 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios and selinux? > > What's the proper way to configure nagios and selinux to work > together? I've run into the same problem as described here: > > > http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html > > Setting selinux to permissive got my test nagios going. But, now I > need to migrate to a production system with selinux set to enforcing > and type set to targeted. Thanks for any tips. > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------ Message: 5 Date: Thu, 25 Jan 2007 14:08:40 -0800 From: Daniel Lacey Subject: Re: [Nagios-users] nagios and selinux? To: nagios-users at lists.sourceforge.net Message-ID: <45B92A68.6040909 at yahoo.com> Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070125/cc038886/attachment.html ------------------------------ Message: 6 Date: Thu, 25 Jan 2007 20:09:48 -0500 From: "Jiann-Ming Su" Subject: Re: [Nagios-users] nagios and selinux? To: nagios-users at lists.sourceforge.net Message-ID: <561dc3260701251709u29256341i29edf9932c8203fa at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 1/25/07, Marc Powell wrote: > > I don't use Fedora nor do I use SELinux but googling for "fedora nagios > selinux" seems to provide a number of links with very specific > instructions. I know SELinux policies have been discussed here and those > will be available in the archives as well. > Thanks for all the replies. I'm using CentOS, but didn't even think to add "centos" to the google search. I'm working through the archives now. Thanks. -- Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman "The system's broke, Hank. The election baby has peed in the bath water. You got to throw 'em both out." --Dale Gribble ------------------------------ Message: 7 Date: Fri, 26 Jan 2007 08:45:14 +0100 (CET) From: Daniel Meyer Subject: Re: [Nagios-users] Antwort: Re: $HOME is not set in init script To: TKocher at spirit21.de Cc: nagios-users at lists.sourceforge.net Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > Daniel, > > nagios is started in /etc/init.d/nagios with "su - nagios -c nagios", so the process > inherits the environment varialbes of the root user, which executes the su command. > ($HOME is /root) Which distribution are you using? My init-script (based on the one from Dag Wieers Nagios-RPM) starts nagios this way: case "$1" in start) echo "Starting network monitor: nagios" $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; if [ $? -eq 0 ]; then su - $NagiosUser -c "/usr/bin/ndo2db -c /etc/nagios/ndo2db.cfg" su - $NagiosUser -c "touch $NagiosVarDir/nagios.log $NagiosRetentionFile" rm -f $NagiosCommandFile touch $NagiosRunFile chown $NagiosUser:$NagiosGroup $NagiosRunFile $NagiosBin -d $NagiosCfgFile Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------ Message: 8 Date: Fri, 26 Jan 2007 08:56:49 +0100 From: TKocher at spirit21.de Subject: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script To: Daniel Meyer Cc: TKocher at spirit21.de, nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/75222d63/attachment.html ------------------------------ Message: 9 Date: Fri, 26 Jan 2007 09:12:12 +0100 (MET) From: Arno Lehmann Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script To: nagios-users at lists.sourceforge.net Message-ID: <45B9B7DB.1010602 at its-lehmann.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, On 1/26/2007 8:56 AM, TKocher at spirit21.de wrote: I'm not absolutely sure, but is it your mail program that add an "Antwort:" to the Subject? It would be nice if that could be turned off - look at the subject line now and imagine how it will look after some longer mail exchange. The usual and more-or-less standard prefix for a reply is Re:. > Danny, > > you have the same start section as it is on my system. > If you look a little bit further in the file you find this section > > prefix=/usr > exec_prefix=/usr > NagiosBin=/usr/bin/nagios > NagiosCfgFile=/etc/nagios/nagios.cfg > NagiosStatusFile=/var/log/nagios/status.dat > NagiosTempFile=/var/log/nagios/nagios.tmp > NagiosRetentionFile=/var/log/nagios/retention.dat > NagiosCommandFile=/var/log/nagios/rw/nagios.cmd > NagiosVarDir=/var/log/nagios > NagiosRunFile=/var/run/nagios.pid > NagiosLockDir=/var/lock/subsys > NagiosLockFile=nagios > NagiosCGIDir=/usr/lib/nagios/cgi > NagiosUser=nagios > NagiosGroup=nagios > > # added by thorsten > > HOME=/var/log/nagios If that is necessary then your setup is, IMO, broken. su uses the system-wide setting for the home directoy. At least it does so on all the systems I know. That has been demonstarted in this thread. Thus, there is no need for a work-around - you'd better check what is broken in your setup. > > This solves the problem of the /home problem, so I before other people > are running in the same problem it is better to add it in the distritbution. No, it's probably only you who has that problem. So it would be better to fix your problem and not create new ones... By the way - and I don't know the start script you quote from - the HOME variable probably needs to be exported before it takes effect. Arno > I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm build > by my own. > > Thorsten > > > An: TKocher at spirit21.de > Von: Daniel Meyer > Datum: 26.01.2007 08:45AM > Kopie: nagios-users at lists.sourceforge.net > Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init script > > On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > > > Daniel, > > > > nagios is started in /etc/init.d/nagios with "su - nagios -c > nagios", so the process > > inherits the environment varialbes of the root user, which > executes the su command. > > ($HOME is /root) > > Which distribution are you using? My init-script (based on the one from > Dag Wieers Nagios-RPM) starts nagios this way: > > case "$1" in > > start) > echo "Starting network monitor: nagios" > $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > if [ $? -eq 0 ]; then > su - $NagiosUser -c "/usr/bin/ndo2db -c > /etc/nagios/ndo2db.cfg" > su - $NagiosUser -c "touch > $NagiosVarDir/nagios.log $NagiosRetentionFile" > rm -f $NagiosCommandFile > touch $NagiosRunFile > chown $NagiosUser:$NagiosGroup $NagiosRunFile > $NagiosBin -d $NagiosCfgFile > > > > Danny > -- > Q: Gentoo is too hard to install = http://www.cyberdelia.de > and I feel like whining. = eagle at cyberdelia.de > A: Please see /dev/null. = > (from the gentoo installer FAQ) = \o/ > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------ Message: 10 Date: Fri, 26 Jan 2007 09:54:23 +0100 From: TKocher at spirit21.de Subject: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script To: TKocher at spirit21.de Cc: nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/cc543b49/attachment.html ------------------------------ Message: 11 Date: Fri, 26 Jan 2007 09:58:54 +0100 From: "Barthier Wim" Subject: [Nagios-users] OpenVMS SSH To: Message-ID: <96DBEA7143ECD048905FAAA27D86E0D204FDFE9D at VSRBEX10.LANPRD.NBB> Content-Type: text/plain; charset="us-ascii" Hello, Question concerning OpenVMS with SSH towards Nagios. I have some OpenVMS 7.3-2 Alpha at site and I wanna use Nagios to check some stuff like disk space, processes, batchjobs... i have written some procedures in DCL (Digital Command Language) which return a status and a comment line. The Nagios server OS RedHat4 Nagios v2.5 OpenVMS client OS v7.3-2 (soon 8.3) TCPIP 5.4 eco 6 SSL v1.2 The problem is, when I use SSH for the connection, the first line I get at the Nagios server is a blanc line and then the comments I put through. So at the Nagios console I don't see sh**. As far as I have checked and debugged the line comes from the SSH connection. Is there anyone who has implemented Nagios on OpenVMS with the SSH connection? Is there a way to say at the Nagios server that he has to ignore the first line he gets from the client? Now I am using NRPE but I would prefer to standardize arround SSH because we are now already using it for a various number of other things. Greets, Wim Barthier System Engineer National Bank of Belgium ----------------------------------------- Visit our website! http://www.nbb.be "DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/aff84383/attachment.html ------------------------------ Message: 12 Date: Fri, 26 Jan 2007 10:42:44 +0100 From: Peter Kullmann Subject: [Nagios-users] Nagios tracked by Update-Scout.com To: nagios-users at lists.sourceforge.net Message-ID: <45B9CD14.2030709 at elementec.de> Content-Type: text/plain; charset=ISO-8859-15 Hi, Nagios has been added to Update-Scout.com, an interactive web service, that informs its users about software updates and releases. Users can set up personal update news feeds from the Update-Scout software catalog and even add new entries to the catalog. The address is http://www.update-scout.com . The latest version number is currently grabbed from http://www.nagios.org/download/ . If there is a better possibility to retrieve the version (e.g. PAD file), I would be glad to know. Thanks, Peter Kullmann ========================================== elementec Software & Consulting Dr. Peter Kullmann Wollgrasweg 49, 70599 Stuttgart, Germany ========================================== Tel +49 - 711 - 4510 17 350 Fax +49 - 711 - 4510 17 222 info at update-scout.com www.update-scout.com ========================================== ------------------------------ Message: 13 Date: Fri, 26 Jan 2007 11:16:38 +0100 (MET) From: Arno Lehmann Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script To: nagios-users at lists.sourceforge.net Message-ID: <45B9D505.5040904 at its-lehmann.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, On 1/26/2007 9:54 AM, TKocher at spirit21.de wrote: > > Hi Danny, I'm not Danny, but... > in my further debugging, I recognized that something different is missing. > > The whole stoy: > > I wrote an event-handler which uses Expect to ssh to the faulty device. > ssh is not executed if I define the perl file as event-handler, but the > event-hander itself is executed. > > If I write a bash script as event-handler, which embeddeds the perl > event-handler everything works fine: You've got a problem with the perl script. The embedded Perl requires that you follow certain rules in your script. I suupose that there's the problem. How to use ePn is documented somewhere - as I don't use it myself I don't have the URL here. Arno > #!/bin/bash > /usr/local/nagios/libexec/eventhandlers/stop_pbr_webcomm.pl $1 $2 $3 > > In this case I removed the HOME assignment in the startup script and > reloaded nagios. Any Ideas? > > Thorsten > > -----Thorsten Kocher/Spirit21 schrieb: ----- > > An: Daniel Meyer > Von: Thorsten Kocher/Spirit21 > Datum: 26.01.2007 08:56AM > Kopie: Thorsten Kocher/Spirit21 at Spirit21, > nagios-users at lists.sourceforge.net > Thema: Antwort: Re: [Nagios-users] Antwort: Re: $HOME is not set in > init script > > Danny, > > you have the same start section as it is on my system. > If you look a little bit further in the file you find this section > > prefix=/usr > exec_prefix=/usr > NagiosBin=/usr/bin/nagios > NagiosCfgFile=/etc/nagios/nagios.cfg > NagiosStatusFile=/var/log/nagios/status.dat > NagiosTempFile=/var/log/nagios/nagios.tmp > NagiosRetentionFile=/var/log/nagios/retention.dat > NagiosCommandFile=/var/log/nagios/rw/nagios.cmd > NagiosVarDir=/var/log/nagios > NagiosRunFile=/var/run/nagios.pid > NagiosLockDir=/var/lock/subsys > NagiosLockFile=nagios > NagiosCGIDir=/usr/lib/nagios/cgi > NagiosUser=nagios > NagiosGroup=nagios > > # added by thorsten > > HOME=/var/log/nagios > > This solves the problem of the /home problem, so I before other > people are running in the same problem it is better to add it in the > distritbution. > > I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm > build by my own. > > Thorsten > > > An: TKocher at spirit21.de > Von: Daniel Meyer > Datum: 26.01.2007 08:45AM > Kopie: nagios-users at lists.sourceforge.net > Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init > script > > On Thu, 25 Jan 2007, TKocher at spirit21.de wrote: > > > Daniel, > > > > nagios is started in /etc/init.d/nagios with "su - nagios -c > nagios", so the process > > inherits the environment varialbes of the root user, which > executes the su command. > > ($HOME is /root) > > Which distribution are you using? My init-script (based on the > one from > Dag Wieers Nagios-RPM) starts nagios this way: > > case "$1" in > > start) > echo "Starting network monitor: nagios" > $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > if [ $? -eq 0 ]; then > su - $NagiosUser -c "/usr/bin/ndo2db -c > /etc/nagios/ndo2db.cfg" > su - $NagiosUser -c "touch > $NagiosVarDir/nagios.log $NagiosRetentionFile" > rm -f $NagiosCommandFile > touch $NagiosRunFile > chown $NagiosUser:$NagiosGroup > $NagiosRunFile > $NagiosBin -d $NagiosCfgFile > > > > Danny > -- > Q: Gentoo is too hard to install = > http://www.cyberdelia.de > and I feel like whining. = > eagle at cyberdelia.de > A: Please see /dev/null. = > (from the gentoo installer FAQ) = > \o/ > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------ Message: 14 Date: Fri, 26 Jan 2007 10:19:39 -0000 From: "Wheeler, JF \(Jonathan\)" Subject: [Nagios-users] FW: Memory leaks To: Message-ID: Content-Type: text/plain; charset="us-ascii" -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net On Behalf Of Andreas Ericsson Sent: 24 January 2007 11:15 > Tobias Klausmann wrote: (big snip) >> For vanilla Nagios, at least it's clear that in whatever way >> memory is wasted, it also slows Nagios down - a possibility would >> be a linked list that is walked and gets appended over and over. >> But I guess those with knowledge of the inner workings of Nagios >> have more clue about this than I do. > Anyone wanting to look into it should probably take a look at the > event scheduling queue. I have also been experiencing memory leaks, such that the kernel has been taking drastic action by killing processes starting with nagios and often including httpd, sshd etc. This all seems to happen at about 4:45 every morning. A reboot solves the problem and everything starts up again, but yesterday I decided to reboot using the single processor kernel (most of our nodes are dual processor, some are dual core as well) and there is no sign of a memory leak today ! Does that give anyone any clues ? Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------ Message: 15 Date: Fri, 26 Jan 2007 11:45:01 +0100 From: Espen Tagestad Subject: [Nagios-users] check_mrtgtraf returns STATE_UNKNOWN To: nagios-users at lists.sourceforge.net Message-ID: <20070126104501.GA20066 at totem.fix.no> Content-Type: text/plain; charset=us-ascii Hi, My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK. Why? My check-command is like this: /usr/local/libexec/nagios/check_mrtgtraf -F /usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 500000,500000 -e 10 Output is this: Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000 in=192.045898KB/s;375000.000000;500000.000000;0.000000 Lowering warning and critical options triggers STATE_WARNING and STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c setting STATE_OK other than when plugin is execute with a -V or -h option. Cheers, Espen Tagestad ------------------------------ Message: 16 Date: Fri, 26 Jan 2007 11:38:26 +0100 From: Espen Tagestad Subject: [Nagios-users] check_mrtgtraf returns STATE_UNKNOWN To: nagios-users at lists.sourceforge.net Message-ID: <20070126103826.GA19826 at totem.fix.no> Content-Type: text/plain; charset=us-ascii Hi, My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK. Why? My check-command is like this: /usr/local/libexec/nagios/check_mrtgtraf -F /usr/local/www/data/mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 500000,500000 -e 10 Output is this: Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 KB/s|in=39.619141KB/s;375000.000000;500000.000000;0.000000 in=192.045898KB/s;375000.000000;500000.000000;0.000000 Lowering warning and critical options triggers STATE_WARNING and STATE_CRITICAL. Is this a bug? I can't see anything in check_mrtgtraf.c setting STATE_OK other than when plugin is execute with a -V or -h option. regards, Espen ------------------------------ Message: 17 Date: Fri, 26 Jan 2007 12:56:59 +0100 (CET) From: Daniel Meyer Subject: Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script To: Arno Lehmann Cc: nagios-users at lists.sourceforge.net Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Fri, 26 Jan 2007, Arno Lehmann wrote: >> Hi Danny, > I'm not Danny, but... but i am :-) > You've got a problem with the perl script. The embedded Perl requires > that you follow certain rules in your script. I suupose that there's the > problem. Yep, clearly a problem with ePN. You can just call /usr/bin/perl /path/to/your/plugin.pl as a check command to prevent the ePN usage for just that plugin/event handler. With nagios 3 you'll be able to enable/disable epn on a per script basis by using settings in the first few lines within the script Danny -- Q: Gentoo is too hard to install = http://www.cyberdelia.de and I feel like whining. = eagle at cyberdelia.de A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ ------------------------------ Message: 18 Date: Fri, 26 Jan 2007 13:11:55 +0100 From: "Yolanda Santos" Subject: [Nagios-users] Different check_http? To: nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, I have Nagios 2.5 with plugins 1.4.5 I have an url and it can happend 2 possibilities: 1? If it's OK, it responds a binary file 2? If it's ERROR, it responds a html page, wich tell us that 'The service is not available' I want to check this, but... how can I do it? How can I check if a determinated string is in the binary file? Or.... can I change the check_http for giving me an ERROR when find an string? Normaly, if you check an url, and a string to expect in the content, if you find it, you have an OK answer. I want the opposite. If I find a string in the content, I want an ERROR answer... Is this possible? Thanks. Yolanda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/10290ad1/attachment.html ------------------------------ Message: 19 Date: Fri, 26 Jan 2007 13:31:40 +0100 From: "Richard Luys-Nagios User" Subject: Re: [Nagios-users] Different check_http? To: "Yolanda Santos" , nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Yolanda, With the plugin package came (if I'm not mistaken) a small binary called 'negate'. This should be in your plugin directory. With this you can negate the returncodes of your plugins; ie: Error becomes Ok, and vice versa. See the help output of negate below: negate (nagios-plugins 1.3.1) 1.5.2.2 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. Copyright (c) 2002 Karl DeBisschop Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] negate (-h | --help) for detailed help negate (-V | --version) for version information Options: -t, --timeout=INTEGER Terminate test if timeout limit is exceeded (default: 9) [keep this less than the plugin timeout to retain CRITICAL status] This plugin is a wrapper to take the output of another plugin and invert it. If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL. If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK. Otherwise, the output state of the wrapped plugin is unchanged. Send email to nagios-users at lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel at lists.sourceforge.net Richard On Fri, 26 Jan 2007 13:11:55 +0100, Yolanda Santos wrote: > Hi, > > I have Nagios 2.5 with plugins 1.4.5 > I have an url and it can happend 2 possibilities: > > 1? If it's OK, it responds a binary file > > 2? If it's ERROR, it responds a html page, wich tell us that 'The > service is > not available' > > I want to check this, but... how can I do it? > How can I check if a determinated string is in the binary file? > Or.... can I change the check_http for giving me an ERROR when find an > string? > > Normaly, if you check an url, and a string to expect in the content, if > you > find it, you have an OK answer. > I want the opposite. If I find a string in the content, I want an ERROR > answer... > Is this possible? > > Thanks. > Yolanda -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------ Message: 20 Date: Fri, 26 Jan 2007 19:43:34 +0530 From: "ankush grover" Subject: [Nagios-users] removing acknowledge comments associated with the services or host from nagios To: "Nagios Users Mailinglist" Message-ID: <5f638b360701260613l6147f58fxfea01b28a9165f4d at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed hi friends, I have configured Nagios 2.6 in a Production Environment. There are about 200 servers and about 1000 services which are being monitored by nagios. I want to remove acknowledge comments associated with the hosts or services is there any command through which I can achieve this. Thanks & Regards Ankush Grover ------------------------------ Message: 21 Date: Fri, 26 Jan 2007 09:28:11 -0500 From: "Andrew Laden" Subject: Re: [Nagios-users] removing acknowledge comments associated with theservices or host from nagios To: "ankush grover" , "Nagios Users Mailinglist" Message-ID: <496A4C483DD4504C84C0094D9C48CFD30F088B3E at tudor.com> Content-Type: text/plain; charset="us-ascii" I have a script that loads in the status and comments.dat file, and looks for any services that are OK, that have acknowlege comments associated with them, and the give the option to delete. I don't consider this ready for prime time, so I havent thought about putting it up on nagios exchange yet. But you are free to try to adapt it. Rename to complean.tar.gz, Unzip, untar, edit for your paths, and run comclean.pl -Andrew > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of ankush grover > Sent: Friday, January 26, 2007 9:14 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] removing acknowledge comments > associated with theservices or host from nagios > > hi friends, > > I have configured Nagios 2.6 in a Production Environment. > There are about 200 servers and about 1000 services which are > being monitored by nagios. > > I want to remove acknowledge comments associated with the > hosts or services is there any command through which I can > achieve this. > > > Thanks & Regards > > > Ankush Grover > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 communication is intended only for the addressee(s) and may contain confidential information. We do not waive any confidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: complean.tar.gz.txt Url: http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070126/642cd1b6/attachment.txt ------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users End of Nagios-users Digest, Vol 8, Issue 45 ******************************************* ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Jan 26 15:59:08 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Jan 2007 15:59:08 +0100 Subject: Nagios-users Digest, Vol 8, Issue 45 In-Reply-To: References: Message-ID: <45BA173C.1020208@op5.se> Mirante Tommaso wrote: > Please provide me info how i can interact with nagios developes > www.google.com, 2 seconds of thinking and 5 seconds of typing will tell you what you need to know. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sjaak at vsm-hosting.nl Fri Jan 26 16:26:53 2007 From: sjaak at vsm-hosting.nl (Sjaak Nabuurs) Date: Fri, 26 Jan 2007 16:26:53 +0100 Subject: Nagios-users Digest, Vol 8, Issue 45 In-Reply-To: References: Message-ID: <45BA1DBD.6010509@vsm-hosting.nl> Not with a e-mail like this But I gues the dev list nagios-devel (nagios-devel (at) lists.sourceforge.net) Just a simple look at the nagios website http://www.nagios.org/support/mailinglists.php Mirante Tommaso wrote: > Please provide me info how i can interact with nagios developes [snip] Digest, Vol 8 arghhhhh[/snip] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cecil.williams at autozone.com Fri Jan 26 17:00:33 2007 From: cecil.williams at autozone.com (cecil.williams at autozone.com) Date: Fri, 26 Jan 2007 10:00:33 -0600 Subject: Cecil Williams/STS/AUTOZONE is out of the office. Message-ID: I will be out of the office starting 01/26/2007 and will not return until 01/30/2007. Please send all requests/problems to IT AIX SUPPORT via lotus notes. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Jan 26 17:54:06 2007 From: israel at frontierflying.com (Israel Brewster) Date: Fri, 26 Jan 2007 07:54:06 -0900 Subject: check_mrtgtraf returns STATE_UNKNOWN In-Reply-To: <20070126103826.GA19826@totem.fix.no> References: <20070126103826.GA19826@totem.fix.no> Message-ID: <69B53DC0-B993-49B8-ADA6-8B101110EC30@frontierflying.com> I'm pretty sure this is a bug. I ran into the same thing, but was able to fix it easily enough in the source code. Looking at the original code for this plugin, you can find the section where it sets the output state, something like: if (incoming_rate > incoming_critical_threshold || outgoing_rate > outgoing_critical_threshold) { result = STATE_CRITICAL; } else if (incoming_rate > incoming_warning_threshold || outgoing_rate > outgoing_warning_threshold) { result = STATE_WARNING; } This may not be exact, as I have modified the code somewhat, but I think it is pretty close, if not. At any rate, what you'll notice is that while the result is set to STATE_CRITICAL or STATE_WARNING, depending on the circumstances, it is never set to STATE_OK (as you mentioned in your original message), which means that it remains in its STATE_UNKNOWN default state if the traffic is OK, to fix it, all you need to do is add the two lines: else result = STATE_OK; Immediately following the closing bracket on the code block above, and recompile. At least, that fixed it for me. I have plugins version 1.4.3, I don't know if this issue has been fixed in a newer version of the plugins or not (current is 1.4.5) ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- On Jan 26, 2007, at 1:38 AM, Espen Tagestad wrote: > Hi, > > My check_mrtgtraf returns STATE_UNKOWN, it should really be STATE_OK. > Why? > > My check-command is like this: > > /usr/local/libexec/nagios/check_mrtgtraf -F /usr/local/www/data/ > mrtg_switch/gatekeeper.log -a MAX -w 375000,375000 -c 500000,500000 > -e 10 > > Output is this: > > Traffic UNKNOWN - Max. In = 39.6 KB/s, Max. Out = 192.0 KB/s| > in=39.619141KB/s;375000.000000;500000.000000;0.000000 > in=192.045898KB/s;375000.000000;500000.000000;0.000000 > > > Lowering warning and critical options triggers STATE_WARNING and > STATE_CRITICAL. Is this a bug? I can't see anything in > check_mrtgtraf.c > setting STATE_OK other than when plugin is execute with a -V or -h > option. > > regards, > > Espen > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 26 18:05:45 2007 From: rsaeks at district30.k12.il.us (Randall R. Saeks) Date: Fri, 26 Jan 2007 11:05:45 -0600 Subject: ANNOUNCE: Nagios Looking Glass 1.0.1 released! In-Reply-To: <45B5E89E.9050608@mailnetwork.co.uk> References: <45B5E89E.9050608@mailnetwork.co.uk> Message-ID: I am looking to get this installed on OS X, and can't seem to find a share folder inside of any of my Nagios folders. Is this something that I should be creating if it is not there? Is the directory where this should be installed the same one that has all the image, local folders and index.html, config.js? Once I get some of that down, I can put the steps for the install on OS X together, but I just need some guidance on where to put these. Thanks, ---- Randall R. Saeks, ACSA Network Administrator/Computer Support Specialist Northbrook / Glenview School District 30 On Jan 23, 2007, at 4:51 AM, Andy Shellam (Mailing Lists) wrote: > Nagios Looking Glass v1.0.1 is available for download! > > *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a > possible vulnerability has been patched *** > > The Important Bits > === ========= ==== > > The official project site is: http://www.nagioslookingglass.co.uk > Get the latest release at: http://www.nagioslookingglass.co.uk/ > download.phpx > > Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. > > The files on Nagios Exchange will be upgraded once the > documentation has > been released, so please download from the project site (above.) > > To upgrade from a previous version, please see UPGRADING.TXT in the > distribution. > > The documentation is not currently in the distribution but will be > added > in the next few days. The 1.0.0#PRE administrator manual is still > available on the NLG project website under "Documentation" and the > majority of it still applies for 1.0.0. > > More Detail > ==== ====== > > NLG is a Web-2.0 browser-based application that works in Firefox, IE, > Safari and Konqueror. It shows visitors the status of your network > without giving them access to the Nagios CGIs, and starts at a > "network > summary" view with the options to drill down into servers (hosts) and > their metrics (services). > > NLG can easily be customised to match your company's look and feel, > and > is ideal for hosting companies who run Nagios. > > For the full changelog for this version, please see the CHANGELOG.TXT > file in the distribution, or visit: > > http://arctic.andyshellam.eu/index.php? > cmd=changelog&project=2&version=8 > > Please see the 'Support' section on the NLG project website to see the > best way to report bugs / request new features etc. > > To see where NLG is headed in the future, visit: > > http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2 > > Regards, > > Andy Shellam > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Fri Jan 26 20:12:24 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Fri, 26 Jan 2007 19:12:24 +0000 Subject: ANNOUNCE: Nagios Looking Glass 1.0.1 released! In-Reply-To: References: <45B5E89E.9050608@mailnetwork.co.uk> Message-ID: <45BA5298.8020003@mailnetwork.co.uk> Hi Randall, You can put NLG's folders wherever you want, as long as it has a URL that can be accessed via HTTP (e.g. Apache.) This can be setup as a separate virtual host, a so-called virtual directory under Apache, or simply as a subdirectory of Apache's default htdocs. The main files NLG needs from Nagios are those in 'nagios/var' and these must be accessible via the local file-system to NLG's server scripts. The client can be placed on a separate machine if required. Currently the server-side of NLG requires a HTTP URL, even if the client is on the same machine. This will be changed in future versions, but that's how it is now. The 'share' folder is where all the templates/HTML files etc are for Nagios' front-end, and this was used for sake of simplicity. This may be different on OSX, I'm not sure, someone more familiar with the OSX builds of Nagios may be able to help you further. Andy. Randall R. Saeks wrote: > I am looking to get this installed on OS X, and can't seem to find a > share folder inside of any of my Nagios folders. Is this something > that I should be creating if it is not there? Is the directory where > this should be installed the same one that has all the image, local > folders and index.html, config.js? > > Once I get some of that down, I can put the steps for the install on > OS X together, but I just need some guidance on where to put these. > > Thanks, > > ---- > Randall R. Saeks, ACSA > Network Administrator/Computer Support Specialist > Northbrook / Glenview School District 30 > > > > On Jan 23, 2007, at 4:51 AM, Andy Shellam (Mailing Lists) wrote: > >> Nagios Looking Glass v1.0.1 is available for download! >> >> *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a >> possible vulnerability has been patched *** >> >> The Important Bits >> === ========= ==== >> >> The official project site is: http://www.nagioslookingglass..co.uk >> >> Get the latest release at: >> http://www.nagioslookingglass.co.uk/download.phpx >> >> Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats. >> >> The files on Nagios Exchange will be upgraded once the documentation has >> been released, so please download from the project site (above.) >> >> To upgrade from a previous version, please see UPGRADING.TXT in the >> distribution. >> >> The documentation is not currently in the distribution but will be added >> in the next few days. The 1.0.0#PRE administrator manual is still >> available on the NLG project website under "Documentation" and the >> majority of it still applies for 1.0.0. >> >> More Detail >> ==== ====== >> >> NLG is a Web-2.0 browser-based application that works in Firefox, IE, >> Safari and Konqueror. It shows visitors the status of your network >> without giving them access to the Nagios CGIs, and starts at a "network >> summary" view with the options to drill down into servers (hosts) and >> their metrics (services). >> >> NLG can easily be customised to match your company's look and feel, and >> is ideal for hosting companies who run Nagios. >> >> For the full changelog for this version, please see the CHANGELOG.TXT >> file in the distribution, or visit: >> >> http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8 >> >> >> Please see the 'Support' section on the NLG project website to see the >> best way to report bugs / request new features etc. >> >> To see where NLG is headed in the future, visit: >> >> http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2 >> >> >> Regards, >> >> Andy Shellam >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45ba3501118211186321138! -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Sat Jan 27 05:30:23 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Fri, 26 Jan 2007 23:30:23 -0500 Subject: 3-D status map Message-ID: <7abcf48e0701262030u43a7a2c0q3560f3bd5ff1c25e@mail.gmail.com> i have nagios 2.4 ok i downloaded Cortona (Parallel Graphics) on my local cpu now i dont know if you need to download this on the machine thats running nagios or or the computer where you are viewing the nagios interface i am try to click on 3-D status map it asks me to download the file i cant save it for some reason neither i can open it cause it gives me eror saying internet exploere could open statuswrl.cgi?hosts=all from (my ip address). Need help?? i took out the # in cgi.cfg file so that not the prblem thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmohammed at batelco.jo Sat Jan 27 10:19:15 2007 From: mmohammed at batelco.jo (Moayad Mohammad) Date: Sat, 27 Jan 2007 11:19:15 +0200 Subject: check_by_ssh plugin Message-ID: <591D8758FF6E69408854F8B2D5887B3F35BC11@BATEXCH.batelcojordan.jo> when i use check_by_ssh plugin to check the CPU or hard disk, I got the following error ( Remote command execution failed: /usr/local/nagios/libexec/check_disk: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory ) And the following command is working ssh -i /etc/nagios/.ssh/id_dsa target computer w Regards, Moayad Mohammad ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Sat Jan 27 11:41:18 2007 From: jperrin at gmail.com (Jim Perrin) Date: Sat, 27 Jan 2007 05:41:18 -0500 Subject: 3-D status map In-Reply-To: <7abcf48e0701262030u43a7a2c0q3560f3bd5ff1c25e@mail.gmail.com> References: <7abcf48e0701262030u43a7a2c0q3560f3bd5ff1c25e@mail.gmail.com> Message-ID: <302ce8b50701270241t62d59e0bs946c68ceed31a63e@mail.gmail.com> Please read the documentation. This is in the FAQ. http://nagios.org/faqs/viewfaq.php?faq_id=52 On 1/26/07, Nedim Bicic wrote: > i have nagios 2.4 > > ok i downloaded Cortona (Parallel Graphics) on my local cpu now i dont know > if you need to download this on the machine thats running nagios or or the > computer where you are viewing the nagios interface > > i am try to click on 3-D status map it asks me to download the file i cant > save it for some reason neither i can open it cause it gives me eror saying > internet exploere could open > statuswrl.cgi?hosts=all from (my ip address). > > Need help?? > > i took out the # in cgi.cfg file so that not the prblem > > thanks > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From udbytossen at gmail.com Sat Jan 27 13:22:57 2007 From: udbytossen at gmail.com (=?ISO-8859-1?Q?Per_J=F8rgensen?=) Date: Sat, 27 Jan 2007 13:22:57 +0100 Subject: NagiosGrapher Message-ID: <45BB4421.7040700@gmail.com> Hey Nagios users. I'm trying to make this works. Well I have done all for what the Docs says about installing. but cannot seem to get it to show on the interface ??? I have installed it using the scripts as syggested in the latest edition. But I have Nagios running as a virtual hosts - and thats allrigth - but what I really want to do - was getting a button on the interface that shows a link to the statestics interface - But cannot seems to get that to work. I thought that was a part of the smart package install script. I have done all the other things - But getting really confused about the configuration. I have a Central/Distributed system setup - where I really want to get statestics from all the 100 hosts that's running on the system - so that our customers should be able to see their service overview?? So something must I do wrong since there's no way from the interface that I could go Directly to the statistic interface?? Thanks Per ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From udbytossen at gmail.com Sat Jan 27 19:50:10 2007 From: udbytossen at gmail.com (=?ISO-8859-1?Q?Per_J=F8rgensen?=) Date: Sat, 27 Jan 2007 19:50:10 +0100 Subject: nagiosGrapher (howto ????? ) Message-ID: <45BB9EE2.1080709@gmail.com> Well - Now I have used all day trying to configure this NagiosGrapher - and ain't got no results out yet... It's installed on Ubuntu using the package (autoconf,./configure - make install) I'm doing something wrong but haven't got a clue about it - but really like the interface style - so it's a bit shame: here?s what i have done: *nagios.cfg* added the following lines: cfg_dir=/usr/local/nagios/etc/ngraph.d cfg_dir=/usr/local/nagios/etc/serviceext process_performance_data=1 service_perfdata_command=process-service-perfdata *perfdata.cfg:* define command { command_name process-service-perfdata command_line /usr/local/nagios/contrib/fifo_write '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3 } *ngraph.ncfg:* # tabspace: 8 # --- # Nagios Grapher Main Configuration # --- define config { pipe /var/lib/nagios/ngraph.pipe port 5667 buffer 1024 interface network # please use subfolder pidfile /usr/local/nagios/var/nagios_grapher/nagios_grapher.pid user nagios group nagios # normal_check_interval step 300 # VALUE or AUTO heartbeat 600 rrdpath /usr/local/nagios/var/rrd/ tmppath /tmp/nagiosgrapher/ fontfile /usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf serviceext_type MULTIPLE serviceextinfo /usr/local/nagios/etc/serviceextinfo.cfg serviceext_path /usr/local/nagios/etc/serviceext url /nagios/cgi-bin/graphs.cgi notes_url /wiki/index.php/$HOSTNAME$#$SERVICEDESC$ nagios_config /usr/local/nagios/etc/nagios.cfg cgi_config /usr/local/nagios/etc/cgi.cfg icon_image_tag ' dot.png' border="0"> I've been struggling with this for the last 2 hours and I cannot work out where it's going wrong. I have a Nagios 2.7 server talking to an NRPE 2.6 client. The Nagios 2.7 server is running FreeBSD as does the NRPE client - however the NRPE client is being run in a FreeBSD jail (this is a hosted system which I have no control of outside of the jail.) I'm hoping I've simply missed something simple. When I run from the console of the NRPE client, as the Nagios user: $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10% SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192 $ When I run the check from the Nagios server: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swap NRPE: Unable to read output If I try an invalid command: sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H mackay.mailnetwork.co.uk -c check_swapNOTEXIST NRPE: Command 'check_swapNOTEXIST' not defined So, as you can see, it is reaching NRPE fine (and I presume the SSL is working correctly.) I've tried starting up NRPE without SSL (-n), and ditto on the Nagios server - still the same error. I've also tried setting allow_weak_random_seed=1, same error. I'm guessing it has something to do with NRPE not sending the output data from the plugin to the correct stream, and as I don't know much about FreeBSD jails, I don't know whether stdin/out works as normal. As you can see, I've also set debug=1, but don't get anything in my log files other than "daemon starting up." Is anyone else running NRPE inside a jail? Or can point out something obvious I'm missing!? Or how to get more debug info? Thanks Andy. --- My nrpe.cfg file: pid_file=/var/run/nrpe.pid server_port=5666 #server_address=192.168.1.1 nrpe_user=nagios nrpe_group=localservice #allowed_hosts=127.0.0.1,10.100.9.201 dont_blame_nrpe=0 command_prefix=/usr/local/bin/sudo debug=1 command_timeout=60 connection_timeout=300 #allow_weak_random_seed=1 command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10% ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at langille.org Sat Jan 27 23:18:05 2007 From: dan at langille.org (Dan Langille) Date: Sat, 27 Jan 2007 17:18:05 -0500 Subject: NRPE in FreeBSD jail In-Reply-To: <45BBCD2A.9010601@mailnetwork.co.uk> References: <45BBCD2A.9010601@mailnetwork.co.uk> Message-ID: <45BB894D.177.D9436ADC@dan.langille.org> On 27 Jan 2007 at 22:07, Andy Shellam (Mailing Lists) wrote: > I've been struggling with this for the last 2 hours and I cannot work > out where it's going wrong. > I have a Nagios 2.7 server talking to an NRPE 2.6 client. > > The Nagios 2.7 server is running FreeBSD as does the NRPE client - > however the NRPE client is being run in a FreeBSD jail (this is a hosted > system which I have no control of outside of the jail.) > I'm hoping I've simply missed something simple. > > When I run from the console of the NRPE client, as the Nagios user: > > $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10% > SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192 > $ You are you issuing > > When I run the check from the Nagios server: > > sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H > mackay.mailnetwork.co.uk -c check_swap > NRPE: Unable to read output > > If I try an invalid command: > > sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H > mackay.mailnetwork.co.uk -c check_swapNOTEXIST > NRPE: Command 'check_swapNOTEXIST' not defined > > So, as you can see, it is reaching NRPE fine (and I presume the SSL is > working correctly.) > I've tried starting up NRPE without SSL (-n), and ditto on the Nagios > server - still the same error. > I've also tried setting allow_weak_random_seed=1, same error. > > I'm guessing it has something to do with NRPE not sending the output > data from the plugin to the correct stream, and as I don't know much > about FreeBSD jails, I don't know whether stdin/out works as normal. > > As you can see, I've also set debug=1, but don't get anything in my log > files other than "daemon starting up." > > Is anyone else running NRPE inside a jail? Or can point out something > obvious I'm missing!? Or how to get more debug info? > > Thanks > > Andy. > > --- > > My nrpe.cfg file: > > pid_file=/var/run/nrpe.pid > server_port=5666 > #server_address=192.168.1.1 > nrpe_user=nagios > nrpe_group=localservice > #allowed_hosts=127.0.0.1,10.100.9.201 Why commented out? > dont_blame_nrpe=0 > command_prefix=/usr/local/bin/sudo > debug=1 > command_timeout=60 > connection_timeout=300 > #allow_weak_random_seed=1 > > command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10% You issued an sudo above, yet the command here does not use sudo. I've seen this error before, and recently. Usually it was a permissions issue. For some readon nrpe is unable to execute the command. Perhaps it is this sudo issue. A side note: sometimes it helps to add wrapper function. All the wrapper function does it a cd /usr/local/nagios/libexec and then runs the command you would normally specify in nrpe.cfg hth -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Sat Jan 27 23:36:29 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Sat, 27 Jan 2007 22:36:29 +0000 Subject: NRPE in FreeBSD jail In-Reply-To: <45BB894D.177.D9436ADC@dan.langille.org> References: <45BBCD2A.9010601@mailnetwork.co.uk> <45BB894D.177.D9436ADC@dan.langille.org> Message-ID: <45BBD3ED.1030700@mailnetwork.co.uk> Dan Langille wrote: > On 27 Jan 2007 at 22:07, Andy Shellam (Mailing Lists) wrote: > > >> I've been struggling with this for the last 2 hours and I cannot work >> out where it's going wrong. >> I have a Nagios 2.7 server talking to an NRPE 2.6 client. >> >> The Nagios 2.7 server is running FreeBSD as does the NRPE client - >> however the NRPE client is being run in a FreeBSD jail (this is a hosted >> system which I have no control of outside of the jail.) >> I'm hoping I've simply missed something simple. >> >> When I run from the console of the NRPE client, as the Nagios user: >> >> $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10% >> SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192 >> $ >> > > You are you issuing > ...? > >> When I run the check from the Nagios server: >> >> sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H >> mackay.mailnetwork.co.uk -c check_swap >> NRPE: Unable to read output >> >> If I try an invalid command: >> >> sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H >> mackay.mailnetwork.co.uk -c check_swapNOTEXIST >> NRPE: Command 'check_swapNOTEXIST' not defined >> >> So, as you can see, it is reaching NRPE fine (and I presume the SSL is >> working correctly.) >> I've tried starting up NRPE without SSL (-n), and ditto on the Nagios >> server - still the same error. >> I've also tried setting allow_weak_random_seed=1, same error. >> >> I'm guessing it has something to do with NRPE not sending the output >> data from the plugin to the correct stream, and as I don't know much >> about FreeBSD jails, I don't know whether stdin/out works as normal. >> >> As you can see, I've also set debug=1, but don't get anything in my log >> files other than "daemon starting up." >> >> Is anyone else running NRPE inside a jail? Or can point out something >> obvious I'm missing!? Or how to get more debug info? >> >> Thanks >> >> Andy. >> >> --- >> >> My nrpe.cfg file: >> >> pid_file=/var/run/nrpe.pid >> server_port=5666 >> #server_address=192.168.1.1 >> nrpe_user=nagios >> nrpe_group=localservice >> #allowed_hosts=127.0.0.1,10.100.9.201 >> > > Why commented out? > The server_address is commented out so NRPE binds to all addresses - this config file template came from another server where I only wanted it to listen on one of it's two addresses. The allowed_hosts is commented out as a further debugging attempt. > >> dont_blame_nrpe=0 >> command_prefix=/usr/local/bin/sudo >> debug=1 >> command_timeout=60 >> connection_timeout=300 >> #allow_weak_random_seed=1 >> >> command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10% >> > > You issued an sudo above, yet the command here does not use sudo. > The command_prefix puts /usr/local/bin/sudo before all commands, as some core plugins require root access. > I've seen this error before, and recently. Usually it was a > permissions issue. For some readon nrpe is unable to execute the > command. Perhaps it is this sudo issue. > Perhaps, but this same config works fine on a Fedora Core 4 system, by changing /usr/local/bin/sudo to /usr/bin/sudo. Before I changed this I got the same error on the Fedora system, so I am leaning towards it being a permissions issue, but I can't figure out what. > A side note: sometimes it helps to add wrapper function. All the > wrapper function does it a cd /usr/local/nagios/libexec and then runs > the command you would normally specify in nrpe.cfg > The plugins I'm trying to execute are all core plugins (check_swap, check_dns etc.) I haven't had to add a wrapper on any other system (including an identical FreeBSD machine, just not running in a jail.) Thanks, Andy. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Sun Jan 28 06:53:44 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Sun, 28 Jan 2007 00:53:44 -0500 Subject: nagios snmp traps?? Message-ID: <7abcf48e0701272153t4d352cf2p36ffd6db351eea96@mail.gmail.com> Nagios 2.4 i have snmp translator installed and snmp, i would like to capture snmap traps and trsnalte the oid where i would view them in my log file how do i do this. A test for this would be a start I have read that you have to have MIBS uploaded in order for the snmp to translate proper oid ? as a test i have configured one of my routers to send traps to my linux box but i cant see any messages?? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From 3ala2 at batelco.jo Sun Jan 28 15:25:19 2007 From: 3ala2 at batelco.jo (3ala2 M. Shakhshir) Date: Sun, 28 Jan 2007 16:25:19 +0200 Subject: Escalation notifications In-Reply-To: <7abcf48e0701272153t4d352cf2p36ffd6db351eea96@mail.gmail.com> References: <7abcf48e0701272153t4d352cf2p36ffd6db351eea96@mail.gmail.com> Message-ID: <000301c742e8$25e68a20$71b39e60$@jo> Greetings, Am having a 2.6 Nagios, I want it to send only an email to contacts when a host or service goes down, and send an SMS to the same contacts after an hour, how this could be implemented in escalations? Best Regards, Ala' Shakhshir -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 28 16:04:12 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 28 Jan 2007 16:04:12 +0100 (CET) Subject: Escalation notifications In-Reply-To: <000301c742e8$25e68a20$71b39e60$@jo> References: <7abcf48e0701272153t4d352cf2p36ffd6db351eea96@mail.gmail.com> <000301c742e8$25e68a20$71b39e60$@jo> Message-ID: On Sun, 28 Jan 2007, 3ala2 M. Shakhshir wrote: > Am having a 2.6 Nagios, I want it to send only an email to contacts when a > host or service goes down, and send an SMS to the same contacts after an > hour, how this could be implemented in escalations? Perhaps you can indicate which part of the manuals you did read and which parts you did not understand? Because this information can be obtained by reading the manual carefully. So if there is a specific issue not clear in the regular notifications or the escalation notification please provide more details on what you tried. If you need very generic help. Try your favorite search engine and look around for examples. They pass the list every now and againdso there must be plenty avaiable online some of which may fit your needs. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 28 18:29:48 2007 From: marc at ena.com (Marc Powell) Date: Sun, 28 Jan 2007 11:29:48 -0600 Subject: nagios snmp traps?? Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic > Sent: Saturday, January 27, 2007 11:54 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios snmp traps?? > > Nagios 2.4 > i have snmp translator installed and snmp, i would like to capture snmap > traps and trsnalte the oid where i would view them in my log file how do i > do this. A test for this would be a start Did you read the documentation page on SNMP Traps? I believe it's going to have everything you need. - Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 ayksolutions.com Sun Jan 28 18:40:54 2007 From: nagios at ayksolutions.com (Artyom Khmelnitsky) Date: Sun, 28 Jan 2007 18:40:54 +0100 (CET) Subject: Monitoring bandwidth usage Message-ID: <20070128174054.0AABA4F4046@desire.netways.de> Hello, I would like to get some input on what everyone thinks the best way to monitor and alert our techs is in regards to bandwidth usage. I know you can setup Cacti and Nagios to work together. For example, we can set a base mbit per day for a user and if they go over this limit, we will be notified via Nagios and can contact the user to let them know that they are on track to go over their allotted transfer. Thank you all for your input and help! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikeh at muppetlabs.com Sun Jan 28 19:45:25 2007 From: mikeh at muppetlabs.com (Mike Hamrick) Date: Sun, 28 Jan 2007 10:45:25 -0800 Subject: Monitoring disk bandwidth utilization? Message-ID: <200701281845.l0SIjPTi020600@muppetlabs.com> Hi! I've been unable to find a nagios plugin that monitors disk bandwidth utilization, does anybody know of one? It seems like it would be relatively straightforward to wrap a nagios plugin around a utility like iostat or sar, but I thought I'd ask if anyone had done this before I dive in. Thanks! mikeh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Jan 28 20:32:28 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 28 Jan 2007 20:32:28 +0100 (CET) Subject: Monitoring disk bandwidth utilization? In-Reply-To: <200701281845.l0SIjPTi020600@muppetlabs.com> References: <200701281845.l0SIjPTi020600@muppetlabs.com> Message-ID: On Sun, 28 Jan 2007, Mike Hamrick wrote: > I've been unable to find a nagios plugin that monitors disk bandwidth > utilization, does anybody know of one? It seems like it would be > relatively straightforward to wrap a nagios plugin around a utility > like iostat or sar, but I thought I'd ask if anyone had done this > before I dive in. I'm puzzled by this term of 'disk bandwitdh'. I am not quit sure we are on the same wavelenght here. But I could imagine digging up the absolute counters and using rrd to build the usual graphs out of them. The issue I think is getting very frequent measurements and normalizing them in some sort so you can obtain average and maximum values out of them. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikeh at muppetlabs.com Sun Jan 28 21:00:16 2007 From: mikeh at muppetlabs.com (Mike Hamrick) Date: Sun, 28 Jan 2007 12:00:16 -0800 Subject: Monitoring disk bandwidth utilization? In-Reply-To: (message from Hugo van der Kooij on Sun, 28 Jan 2007 20:32:28 +0100 (CET)) References: <200701281845.l0SIjPTi020600@muppetlabs.com> Message-ID: <200701282000.l0SK0Gwd022889@muppetlabs.com> Hugo van der Kooij wrote: > I'm puzzled by this term of 'disk bandwitdh'. I am not quit sure we are on > the same wavelenght here. But I could imagine digging up the absolute > counters and using rrd to build the usual graphs out of them. Sorry for not making this clear. The iostat and sar utilities (part of the RH sysstat package) will show you a statistic called either iowait or %used for a given block device, which the manpage defines as: "Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%." > The issue I think is getting very frequent measurements and normalizing > them in some sort so you can obtain average and maximum values out of > them. By default the sar utility will show you 10 minute averages, and iostat can show you current utilizations. Mike ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Jan 29 09:49:45 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Jan 2007 09:49:45 +0100 Subject: check_by_ssh plugin In-Reply-To: <591D8758FF6E69408854F8B2D5887B3F35BC11@BATEXCH.batelcojordan.jo> References: <591D8758FF6E69408854F8B2D5887B3F35BC11@BATEXCH.batelcojordan.jo> Message-ID: <45BDB529.1020004@op5.se> Moayad Mohammad wrote: > when i use check_by_ssh plugin to check the CPU or hard disk, I got the > following error > ( Remote command execution failed: /usr/local/nagios/libexec/check_disk: > error while loading shared libraries: libssl.so.6: cannot open shared > object file: No such file or directory ) > > And the following command is working ssh -i /etc/nagios/.ssh/id_dsa > target computer w > For some insane reason, /usr/local/nagios/libexec/check_disk on the remote system is linked against libssl with so-version 6. That library doesn't exist on the remote server, so the program can't run. If this was a bog-standard install of the plugins, I'd say it's a bug in the plugin packages buildsystem. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob.blake at gmail.com Mon Jan 29 13:53:48 2007 From: rob.blake at gmail.com (Rob Blake) Date: Mon, 29 Jan 2007 12:53:48 +0000 Subject: different check_command output on host than on server In-Reply-To: <704e18b60701230102k5360416egcb18eee89af4985c@mail.gmail.com> References: <704e18b60701230102k5360416egcb18eee89af4985c@mail.gmail.com> Message-ID: On 1/23/07, De Wetenschapper wrote: > > hi guys, > > when I execute a certain command on the client itself it is OK, but when > executed from the server I get an other output. > I have no idea where to look for this, What is different from executing it > from the server or on the client itself, or that I'm forgetting? > > I thought the output on the nagios server should be the same as the output > of the script in the client?? > > script executed on the client (GD6): > [root at BEEVSGD6 a125507]# /usr/lib/nagios/plugins/check_dell_sensors.pl > OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power > Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; > > script ran from the server with nrpe: > [root at BEEVSGD4 a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd6 -c > check_omchassis > ALARM: omreport could not obtain user name. -- omreport could not obtain > user name.=Error!**; > > same script ran from the server but on an other machine(GD5) here it does > work. > [root@ BEEVSGD4 a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd5-c check_omchassis > OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power > Supplies=Ok; Processors=Ok; Temperatures=Ok; Voltages=Ok; > > I don't know where to look. Can someone point me in the right direction? > > Thanks in Advance, > Jan Lenaerts Are there any differences between the nrpe.cfg on beevsgd5 and beevsgd6? As this is where the commands are defined I would assume that there is some fundamental difference that is causing your error. Rob ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Mon Jan 29 16:46:10 2007 From: radhiilu at yahoo.com (Sekhar) Date: Mon, 29 Jan 2007 07:46:10 -0800 (PST) Subject: Monitoring UDP Packets using ping Message-ID: <662524.68092.qm@web90504.mail.mud.yahoo.com> Hi Guys, I want to monitor for one ip address UDP Packets using ping how do i do this normal ping is working for icmp packets.One of my client stop access to icmp packets and he is only allowing udp. Thanks for your help --------------------------------- Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 29 16:48:18 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 29 Jan 2007 09:48:18 -0600 Subject: alerts Message-ID: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> Turns out, I'm not getting any alerts sent all of a sudden (or at least since trying to implement the new alert), the only clue I currently have is that every time it should have sent an alert, I get this instead (which hows up in the host alert history): Program End[01-22-2007 11:35:01] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing out... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Mon Jan 29 16:54:00 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Mon, 29 Jan 2007 09:54:00 -0600 Subject: alerts In-Reply-To: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> Message-ID: <45BE1898.9060504@epsiia.com> Brian Loe wrote: > Turns out, I'm not getting any alerts sent all of a sudden (or at > least since trying to implement the new alert), the only clue I > currently have is that every time it should have sent an alert, I get > this instead (which hows up in the host alert history): > > Program End[01-22-2007 11:35:01] Lockfile > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing > out... > Try killing all nagios processes, erase the lock file, and start Nagios again. See if that helps at all. - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 29 17:11:36 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 29 Jan 2007 10:11:36 -0600 Subject: alerts In-Reply-To: <45BE1898.9060504@epsiia.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> <45BE1898.9060504@epsiia.com> Message-ID: <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> On 1/29/07, Josh Yost wrote: > > Program End[01-22-2007 11:35:01] Lockfile > > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing > > out... > > > > Try killing all nagios processes, erase the lock file, and start Nagios > again. > > See if that helps at all. When I kill the nagios process (there's only one according to "ps fax | grep nagios") the lock file is removed. I did just notice something interesting though, with the permissions, are they correct? /usr/local/nagios/etc # ls -altr ../var/ total 484 -rw-rw-r-- 1 nagios nagios 239 Jun 21 2006 downtime.dat -rw-r--r-- 1 nagios nagios 0 Aug 10 09:21 mail.log drwxr-xr-x 10 nagios nagios 240 Sep 28 15:35 .. -rw-rw-r-- 1 nagios nagios 1793 Jan 23 10:23 comments.dat drwxrwxr-x 2 nagios nagios 8408 Jan 29 00:00 archives drwxrwsr-x 2 nagios nagios 80 Jan 29 09:59 rw -rw------- 1 nagios nagios 151347 Jan 29 09:59 retention.dat -rw-r--r-- 1 nagios nagios 123198 Jan 29 09:59 objects.cache -rw-rw-r-- 1 nagios nagios 45622 Jan 29 09:59 nagios.log -rw-r--r-- 1 nagios nagios 6 Jan 29 09:59 nagios.lock -rw-rw-r-- 1 nagios nagios 145469 Jan 29 10:00 status.dat drwxrwxr-x 4 nagios nagios 344 Jan 29 10:00 . The lock file doesn't have write permissions for, what, group? Is this thing some how looked at or..whatever...when an alert is sent? I personally can't figure out what a lock file would have to do with alerts but, what do I know... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From traxplayer at gmail.com Mon Jan 29 17:33:42 2007 From: traxplayer at gmail.com (=?ISO-8859-1?Q?Martin_M=F8ller_Pedersen?=) Date: Mon, 29 Jan 2007 17:33:42 +0100 Subject: timed out check_procs on solaris 10 Message-ID: Hi, I have compiled the nagios-plugins-1.4.5 on a solaris 10 with gcc 3.4.6 but when I run check_procs it just times out ?! Any advises ? Thanks /Martin pods7# /usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z CRITICAL - Plugin timed out after 10 seconds pods7# ldd /usr/local/nagios/libexec/check_procs libsocket.so.1 => /usr/lib/libsocket.so.1 libssl.so.0.9.8 => /usr/local/ssl/lib/libssl.so.0.9.8 libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8 libc.so.1 => /usr/lib/libc.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 libmp.so.2 => /usr/lib/libmp.so.2 libmd5.so.1 => /usr/lib/libmd5.so.1 libscf.so.1 => /usr/lib/libscf.so.1 libdoor.so.1 => /usr/lib/libdoor.so.1 libuutil.so.1 => /usr/lib/libuutil.so.1 libm.so.2 => /usr/lib/libm.so.2 /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1 /platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1 pods7# id uid=0(root) gid=0(root) pods7# su - nagios $ /usr/local/nagios/libexec/check_procs CRITICAL - Plugin timed out after 10 seconds $ /usr/local/bin/gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.michot at gmail.com Mon Jan 29 17:34:21 2007 From: marc.michot at gmail.com (Marc Michot) Date: Mon, 29 Jan 2007 17:34:21 +0100 Subject: mod_perl like for ePn in Nagios Message-ID: <8E9425EB-6B35-4B8B-A70D-FD3F1E16C0CB@gmail.com> Hello, I would like to know if it is possible to use a script launched by ePn in Nagios like mod_perl in apache. I wouls like to be able to retrieve informations of Nagios core, and if possible to write to. As it is possible to do with mod_perl in apache. Because I have too many informations to send through nagios.cmd pipe : Nagios does not seem to be able to read fast enough, all my scripts are frozen, wainting for Nagios. Does anyone has an idea ? Regards, Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 29 17:59:54 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Mon, 29 Jan 2007 11:59:54 -0500 Subject: Monitoring UDP Packets using ping In-Reply-To: <662524.68092.qm@web90504.mail.mud.yahoo.com> References: <662524.68092.qm@web90504.mail.mud.yahoo.com> Message-ID: > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Sekhar > Sent: Monday, January 29, 2007 7:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring UDP Packets using ping > > I want to monitor for one ip address UDP Packets using ping > how do i do this normal ping is working for icmp packets.One > of my client stop access to icmp packets and he is only allowing udp. Soiunds like you want the check_udp plugin. It's part of the default installation. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Jan 29 18:02:38 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Mon, 29 Jan 2007 12:02:38 -0500 Subject: alerts In-Reply-To: <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com><45BE1898.9060504@epsiia.com> <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> Message-ID: > On 1/29/07, Josh Yost wrote: > > > Program End[01-22-2007 11:35:01] Lockfile > > > '/usr/local/nagios/var/nagios.lock' is held by PID 8228. Bailing > > > out... > > > > > > > Try killing all nagios processes, erase the lock file, and start > > Nagios again. > > > > See if that helps at all. > > When I kill the nagios process (there's only one according to "ps fax > | grep nagios") the lock file is removed. > > I did just notice something interesting though, with the > permissions, are they correct? [snip] Everything you've showed looks normal. That lock file is only checked when Nagios starts up, to see if it's already running. It doesn't need any group-write permissions, and isn't even looked at when an alert is sent. Chances are you changed your configs and the changes weren't reloaded, because Nagios didn't successfully restart. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Mon Jan 29 18:09:26 2007 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Mon, 29 Jan 2007 11:09:26 -0600 (CST) Subject: Monitoring UDP Packets using ping In-Reply-To: <662524.68092.qm@web90504.mail.mud.yahoo.com> References: <662524.68092.qm@web90504.mail.mud.yahoo.com> Message-ID: On Mon, 29 Jan 2007, Sekhar wrote: > Hi Guys, > > I want to monitor for one ip address UDP Packets using ping how do i do > this normal ping is working for icmp packets.One of my client stop > access to icmp packets and he is only allowing udp. > First, tell your client to allow at least some ICMP. Dropping all ICMP will likely cause issues, see: http://tools.ietf.org/html/rfc1122#section-3.2.2. Failing the adoption of that sage bit of advice, you could use the check_udp plugin to hit an arbitrary UDP port for connectivity. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 29 18:15:29 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 29 Jan 2007 11:15:29 -0600 Subject: alerts In-Reply-To: References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> <45BE1898.9060504@epsiia.com> <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> Message-ID: <3c4611bc0701290915refaa401r11934d80fb066c2e@mail.gmail.com> On 1/29/07, Morris, Patrick wrote: > Everything you've showed looks normal. That lock file is only checked > when Nagios starts up, to see if it's already running. It doesn't need > any group-write permissions, and isn't even looked at when an alert is > sent. > > Chances are you changed your configs and the changes weren't reloaded, > because Nagios didn't successfully restart. The config check (nagios -v) shows everything as fine. Log file shows Nagios coming up fine. Its not sending ANY alerts, via the old e-mail method or the new pager method I created. In alert history this is the only thing "unusual" - and I've always stopped/started nagios the same way: kill process -> /etc/init.d/nagios start And I haven't changed anything in the main configuration file since before alerting stopped, the only thing I've really changes is misccommands.cfg. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 29 19:20:34 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 29 Jan 2007 12:20:34 -0600 Subject: alerts In-Reply-To: <3c4611bc0701290915refaa401r11934d80fb066c2e@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> <45BE1898.9060504@epsiia.com> <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> <3c4611bc0701290915refaa401r11934d80fb066c2e@mail.gmail.com> Message-ID: <3c4611bc0701291020g78a33469n2b7e99a18202293a@mail.gmail.com> On 1/29/07, Brian Loe wrote: > > The config check (nagios -v) shows everything as fine. Log file shows > Nagios coming up fine. Its not sending ANY alerts, via the old e-mail > method or the new pager method I created. In alert history this is the > only thing "unusual" - and I've always stopped/started nagios the same > way: kill process -> /etc/init.d/nagios start > > And I haven't changed anything in the main configuration file since > before alerting stopped, the only thing I've really changes is > misccommands.cfg. > So I need some real help, real fast - where can I look to see why alerts are not getting out? According to the logs they're being sent, but the pager and e-mail isn't getting anything, which is gonna hurt if something happens after 5 today! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Mon Jan 29 19:28:36 2007 From: knobdy at gmail.com (Brian Loe) Date: Mon, 29 Jan 2007 12:28:36 -0600 Subject: alerts In-Reply-To: <3c4611bc0701291020g78a33469n2b7e99a18202293a@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> <45BE1898.9060504@epsiia.com> <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> <3c4611bc0701290915refaa401r11934d80fb066c2e@mail.gmail.com> <3c4611bc0701291020g78a33469n2b7e99a18202293a@mail.gmail.com> Message-ID: <3c4611bc0701291028x18e193c4v6dffd6ef61e2ad17@mail.gmail.com> On 1/29/07, Brian Loe wrote: > > So I need some real help, real fast - where can I look to see why > alerts are not getting out? According to the logs they're being sent, > but the pager and e-mail isn't getting anything, which is gonna hurt > if something happens after 5 today! Nevermind...thanks in advance and I apologize for the bandwidth/noise... got the e-mail notifications back. Also compiling sendpage and will be trying it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From diggerthelab at gmail.com Mon Jan 29 20:22:38 2007 From: diggerthelab at gmail.com (Paul Hunter) Date: Mon, 29 Jan 2007 14:22:38 -0500 Subject: Testing Plugins Message-ID: <37ed01ff0701291122se3e69b3kca2430b47e72cc9a@mail.gmail.com> I am getting the following error when Iattempt to check aplugin on Solaris 10: ./check_ping -h ld.so.1: check_ping: fatal: libssl.so.0.9.8: open failed: No such file or directory Killed I did install SMCosl98d... Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Mon Jan 29 20:27:27 2007 From: stava at telcotec.se (Lars Stavholm) Date: Mon, 29 Jan 2007 20:27:27 +0100 Subject: Testing Plugins In-Reply-To: <37ed01ff0701291122se3e69b3kca2430b47e72cc9a@mail.gmail.com> References: <37ed01ff0701291122se3e69b3kca2430b47e72cc9a@mail.gmail.com> Message-ID: <45BE4A9F.9030908@telcotec.se> Paul Hunter wrote: > I am getting the following error when Iattempt to check aplugin on Solaris > 10: > > ./check_ping -h > ld.so.1: check_ping: fatal: libssl.so.0.9.8: open failed: No such file or > directory > Killed > > > I did install SMCosl98d... Check your LD_LIBRARY_PATH. I take it SMCosl98d is the OpenSSL package. If so, make sure it includes SMCosl98d/lib or similar. /Lars ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmurray at whoi.edu Mon Jan 29 22:25:38 2007 From: jmurray at whoi.edu (Jonathan Murray) Date: Mon, 29 Jan 2007 16:25:38 -0500 Subject: nrpe (No output returned from plugin) Message-ID: <45BE6652.9080005@whoi.edu> I am trying to set up disk space check on a client running nrpe. Server: nagios-2.5-2.fc4 nagios-plugins-nrpe-2.3-2.2.fc4.rf Client: nagios-nrpe-2.3-2.2.fc4.rf nagios-plugins-1.4.4-1.fc4 On the server, if I run the command to test it, it seems to produce valuable data: /usr/lib/nagios/plugins/check_nrpe -H codfish -c check_disk DISK OK - free space: / 14830 MB (23% inode=97%); /boot 209 MB (91% inode=99%); /data 18385 MB (28% inode=99%); /dev/shm 503 MB (100% inode=99%);| /=47410MB;65608;65618;0;65628 /boot=20MB;223;233;0;243 /data=45876MB;67739;67749;0;67759 /dev/shm=0MB;483;493;0;503 However, when it runs from nagios directly, I see the following in the web interface: /dev/sda Free Space (No output returned from plugin) in /var/log/messages I see the following error: Jan 29 14:51:47 codfish nrpe[31801]: Network server bind failure (99: Cannot assign requested address) Jan 29 14:53:30 codfish nrpe[31828]: Network server bind failure (99: Cannot assign requested address) I am using port 5666 on both the client and the server. I am running nrpe out of xinitd on the machine I am trying to monitor (client): /etc/xinetd.d/nrpe # default: off # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE type = UNLISTED port = 5666 socket_type = stream wait = no user = nobody group = nobody server = /usr/sbin/nrpe server_args = -c /etc/nagios/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 128.128.64.181 } nrpe installed on both server and client, both machines have entries in /etc/services for nrpe to use port 5666 Could someone out there suggest some things to check? thanks -- Jonathan Murray Linux Support ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marduk_ at eresmas.com Tue Jan 30 09:56:49 2007 From: marduk_ at eresmas.com (=?iso-8859-1?q?marduk_@eresmas.com=20?=) Date: Tue, 30 Jan 2007 00:56:49 -0800 (PST) Subject: Monitoring Printers Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 30 10:12:52 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Jan 2007 10:12:52 +0100 Subject: alerts In-Reply-To: <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> <45BE1898.9060504@epsiia.com> <3c4611bc0701290811n3bcd0640kd2dd8d8761d56c79@mail.gmail.com> Message-ID: <45BF0C14.8060409@op5.se> Brian Loe wrote: > On 1/29/07, Josh Yost wrote: > > When I kill the nagios process (there's only one according to "ps fax > | grep nagios") the lock file is removed. > > I did just notice something interesting though, with the permissions, > are they correct? > /usr/local/nagios/etc # ls -altr ../var/ > total 484 > -rw-r--r-- 1 nagios nagios 6 Jan 29 09:59 nagios.lock > -rw-rw-r-- 1 nagios nagios 145469 Jan 29 10:00 status.dat > drwxrwxr-x 4 nagios nagios 344 Jan 29 10:00 . > > The lock file doesn't have write permissions for, what, group? It doesn't need to. Nagios manages it alone and no other group can touch it anyway as it obtains a file-lock on it. > Is this > thing some how looked at or..whatever...when an alert is sent? No. The lock-file is there to make sure that you can't start another nagios instance while one is already running. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 30 10:15:36 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Jan 2007 10:15:36 +0100 Subject: Monitoring Printers In-Reply-To: References: Message-ID: <45BF0CB8.3080806@op5.se> marduk @eresmas.com wrote: > I' like to known if is totally necessary declare each printer as host, for > monitoring them. Barring plugin hackery, yes. > Are there another's form for monitoring the printers and > serv-printers like AXIS? > Barring plugin hackery, no. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mallajy-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org Tue Jan 30 10:32:26 2007 From: mallajy-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (srikanthm) Date: Tue, 30 Jan 2007 11:32:26 +0200 Subject: problems with nagios plugin installation Message-ID: Hi, I have installed nagios 2.7 from source using the following tarball nagios-2.7.tar.gz and using the exact instructions from the attached "installation document" I donwloaded from nagios.org even the */usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg *was not throwing any errors or warnings. After installing this I tried installing the Nagios plugins from source tarball i.e. nagios-plugins-1.4.5.tar.gz But it was throwing errors as in the attachment. So while I was in the /root/nagiosinstall directory itself, I copied the nagios plugins rpms and also the dependent rpms and installed them successfully with -Uvh option. i.e. nagios-plugins-1.4.5-1.el4.rf.i386.rpm and perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm perl-Socket6-0.19-1.2.el4.rf.i386.rpm Problem 1: the Nagios web interface and nagios.log still complains that plugins are not installed although its installed # rpm -qav | grep nagios-plugin nagios-plugins-1.4.5-1.el4.rf [1170109335] Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists. [1170109356] Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists . [1170109395] Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exis ts. [1170109416] Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exist s. [1170109455] Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exi sts. problem 2:why are the files *hosts.cfg, services.cfg* not created automatically and also these entries are commented out in* nagios.cfg *file ** *cgi.cfg htpasswd.users nagios.cfg resource.cfg commands.cfg localhost.cfg nagios-server.conf* * * are the only ones that are created. Looking forward for your help eagerly. Thanks in advance. cheers, SrikanthM -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios Install on Redhat EL 4.doc Type: application/msword Size: 124928 bytes Desc: not available URL: -------------- next part -------------- make[2]: Entering directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \ then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi check_mysql.c:51:19: mysql.h: No such file or directory check_mysql.c:52:20: errmsg.h: No such file or directory check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function) check_mysql.c: In function `main': check_mysql.c:73: error: `MYSQL' undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: syntax error before "mysql" check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function) check_mysql.c:74: error: `res' undeclared (first use in this function) check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function) check_mysql.c:75: error: syntax error before "row" check_mysql.c:91: error: `mysql' undeclared (first use in this function) check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function) check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function) check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function) check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function) check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function) check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:146: error: `row' undeclared (first use in this function) check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function) check_mysql.c:165: error: `fields' undeclared (first use in this function) make[2]: *** [check_mysql-check_mysql.o] Error 1 make[2]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5' make: *** [all] Error 2 -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marduk_ at eresmas.com Tue Jan 30 10:44:01 2007 From: marduk_ at eresmas.com (=?iso-8859-1?q?marduk_@eresmas.com=20?=) Date: Tue, 30 Jan 2007 01:44:01 -0800 (PST) Subject: Monitoring Printers Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mallajy-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org Tue Jan 30 10:46:44 2007 From: mallajy-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (srikanthm) Date: Tue, 30 Jan 2007 11:46:44 +0200 Subject: problems with nagios plugin installation In-Reply-To: References: Message-ID: > Hi, > > I have installed nagios 2.7 from source using the following tarball > nagios-2.7.tar.gz and using the exact instructions from the attached > "installation document" I donwloaded from nagios.org > > even the */usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg *was not throwing any errors or > warnings. > > After installing this I tried installing the Nagios plugins from source > tarball i.e. nagios-plugins-1.4.5.tar.gz > > But it was throwing errors as in the attachment. > > So while I was in the /root/nagiosinstall directory itself, I copied the > nagios plugins rpms and also the dependent rpms and installed them > successfully with -Uvh option. > > i.e. nagios-plugins-1.4.5-1.el4.rf.i386.rpm and > perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm > perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm > perl-Socket6-0.19-1.2.el4.rf.i386.rpm > > Problem 1: the Nagios web interface and nagios.log still complains that > plugins are not installed although its installed > > # rpm -qav | grep nagios-plugin > nagios-plugins-1.4.5-1.el4.rf > > [1170109335] Warning: Return code of 127 for check of service 'PING' on > host 'localhost' was out of bounds. Make sure the plugin you're trying to > run actually exists. > [1170109356] Warning: Return code of 127 for check of service 'Current > Load' on host 'localhost' was out of bounds. Make sure the plugin you're > trying to run actually exists > . > [1170109395] Warning: Return code of 127 for check of service 'Root > Partition' on host 'localhost' was out of bounds. Make sure the plugin > you're trying to run actually exis > ts. > [1170109416] Warning: Return code of 127 for check of service 'Current > Users' on host 'localhost' was out of bounds. Make sure the plugin you're > trying to run actually exist > s. > [1170109455] Warning: Return code of 127 for check of service 'Total > Processes' on host 'localhost' was out of bounds. Make sure the plugin > you're trying to run actually exi > sts. > > problem 2:why are the files *hosts.cfg, services.cfg* not created > automatically and also these entries are commented out in* nagios.cfg * > file > ** > *cgi.cfg htpasswd.users nagios.cfg resource.cfg > commands.cfg localhost.cfg nagios-server.conf* > * > * are the only ones that are created. > > Looking forward for your help eagerly. > > Thanks in advance. > > cheers, > SrikanthM > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios Install on Redhat EL 4.doc Type: application/msword Size: 124928 bytes Desc: not available URL: -------------- next part -------------- make[2]: Entering directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \ then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi check_mysql.c:51:19: mysql.h: No such file or directory check_mysql.c:52:20: errmsg.h: No such file or directory check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function) check_mysql.c: In function `main': check_mysql.c:73: error: `MYSQL' undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: syntax error before "mysql" check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function) check_mysql.c:74: error: `res' undeclared (first use in this function) check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function) check_mysql.c:75: error: syntax error before "row" check_mysql.c:91: error: `mysql' undeclared (first use in this function) check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function) check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function) check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function) check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function) check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function) check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:146: error: `row' undeclared (first use in this function) check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function) check_mysql.c:165: error: `fields' undeclared (first use in this function) make[2]: *** [check_mysql-check_mysql.o] Error 1 make[2]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5' make: *** [all] Error 2 -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From iamyolanda at gmail.com Tue Jan 30 10:48:00 2007 From: iamyolanda at gmail.com (Yolanda Santos) Date: Tue, 30 Jan 2007 10:48:00 +0100 Subject: Negate binary file Message-ID: Hi, I have tried to use the negate binary file, but it doesn't work. Am I doing something wrong? I check: ./check_http -H 10.190.8.xxx -p 80 -u "url" -s "ERROR" And I get an OK Then, now I want the opposite, so I do: ./negate "check_http -H 10.190.8.xxx -p 80 -u "url" -s "ERROR"" And I get an OK again. If I add the complete path: ./negate "/opt/nagios/libexec/check_http -H 10.190.8.xxx -p 80 -u "url" -s "ERROR"" I continuous get an OK... What is wrong? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae-n0Zl8IkGad4 at public.gmane.org Tue Jan 30 11:20:57 2007 From: ae-n0Zl8IkGad4 at public.gmane.org (Andreas Ericsson) Date: Tue, 30 Jan 2007 11:20:57 +0100 Subject: problems with nagios plugin installation In-Reply-To: References: Message-ID: <45BF1C09.5060809@op5.se> Re-sending the exact same mail 15 minutes after your original one won't really make me answer any questions from you. Welcome to my special "timesink-ignore" filter. srikanthm wrote: >> Hi, >> >> I have installed nagios 2.7 from source using the following tarball >> nagios-2.7.tar.gz and using the exact instructions from the attached >> "installation document" I donwloaded from nagios.org >> >> even the */usr/local/nagios/bin/nagios -v >> /usr/local/nagios/etc/nagios.cfg *was not throwing any errors or >> warnings. >> >> After installing this I tried installing the Nagios plugins from source >> tarball i.e. nagios-plugins-1.4.5.tar.gz >> >> But it was throwing errors as in the attachment. >> >> So while I was in the /root/nagiosinstall directory itself, I copied the >> nagios plugins rpms and also the dependent rpms and installed them >> successfully with -Uvh option. >> >> i.e. nagios-plugins-1.4.5-1.el4.rf.i386.rpm and >> perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm >> perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm >> perl-Socket6-0.19-1.2.el4.rf.i386.rpm >> >> Problem 1: the Nagios web interface and nagios.log still complains that >> plugins are not installed although its installed >> >> # rpm -qav | grep nagios-plugin >> nagios-plugins-1.4.5-1.el4.rf >> >> [1170109335] Warning: Return code of 127 for check of service 'PING' on >> host 'localhost' was out of bounds. Make sure the plugin you're trying to >> run actually exists. >> [1170109356] Warning: Return code of 127 for check of service 'Current >> Load' on host 'localhost' was out of bounds. Make sure the plugin you're >> trying to run actually exists >> . >> [1170109395] Warning: Return code of 127 for check of service 'Root >> Partition' on host 'localhost' was out of bounds. Make sure the plugin >> you're trying to run actually exis >> ts. >> [1170109416] Warning: Return code of 127 for check of service 'Current >> Users' on host 'localhost' was out of bounds. Make sure the plugin you're >> trying to run actually exist >> s. >> [1170109455] Warning: Return code of 127 for check of service 'Total >> Processes' on host 'localhost' was out of bounds. Make sure the plugin >> you're trying to run actually exi >> sts. >> >> problem 2:why are the files *hosts.cfg, services.cfg* not created >> automatically and also these entries are commented out in* nagios.cfg * >> file >> ** >> *cgi.cfg htpasswd.users nagios.cfg resource.cfg >> commands.cfg localhost.cfg nagios-server.conf* >> * >> * are the only ones that are created. >> >> Looking forward for your help eagerly. >> >> Thanks in advance. >> >> cheers, >> SrikanthM >> >> >> >> >> >> > > > ------------------------------------------------------------------------ > > make[2]: Entering directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' > if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \ > then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi > check_mysql.c:51:19: mysql.h: No such file or directory > check_mysql.c:52:20: errmsg.h: No such file or directory > check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function) > check_mysql.c: In function `main': > check_mysql.c:73: error: `MYSQL' undeclared (first use in this function) > check_mysql.c:73: error: (Each undeclared identifier is reported only once > check_mysql.c:73: error: for each function it appears in.) > check_mysql.c:73: error: syntax error before "mysql" > check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function) > check_mysql.c:74: error: `res' undeclared (first use in this function) > check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function) > check_mysql.c:75: error: syntax error before "row" > check_mysql.c:91: error: `mysql' undeclared (first use in this function) > check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function) > check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function) > check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function) > check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) > check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function) > check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) > check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast > check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast > check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast > check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) > check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function) > check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) > check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast > check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast > check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast > check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast > check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast > check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast > check_mysql.c:146: error: `row' undeclared (first use in this function) > check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast > check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast > check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast > check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function) > check_mysql.c:165: error: `fields' undeclared (first use in this function) > make[2]: *** [check_mysql-check_mysql.o] Error 1 > make[2]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5' > make: *** [all] Error 2 > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagiosplug-help mailing list > Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Andreas Ericsson andreas.ericsson-n0Zl8IkGad4 at public.gmane.org OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Jan 30 11:22:07 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Jan 2007 11:22:07 +0100 Subject: Monitoring Printers In-Reply-To: References: Message-ID: <45BF1C4F.8010106@op5.se> marduk @eresmas.com wrote: > What is Barring plugin hackery.? > It means "unless you hack the plugins". In short, what you want isn't possible without modifying some code somewhere. It's easiest to do those modifications in the programs performing the actual checks (ie, the plugin(s)). > i don't understad you. > > i'm sorry . > > can you explain me that? > /*---Mensaje original---*/ > > marduk @eresmas.com wrote: > > I' like to known if is totally necessary declare each printer as host, for > > monitoring them. > > Barring plugin hackery, yes. > > > Are there another's form for monitoring the printers and > > serv-printers like AXIS? > > > > Barring plugin hackery, no. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: 46 8-230225 Fax: 46 8-230231 > > Orange Desktop Search te ayuda a encontrar todo lo que buscas dentro de tu PC. > ?Clica y desc?rgatelo Gratis! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 thebug.demon.nl Tue Jan 30 12:48:44 2007 From: nagios at thebug.demon.nl (Richard Luys-Nagios User) Date: Tue, 30 Jan 2007 12:48:44 +0100 Subject: Negate binary file In-Reply-To: References: Message-ID: On Tue, 30 Jan 2007 10:48:00 +0100, Yolanda Santos wrote: > Hi, > > I have tried to use the negate binary file, but it doesn't work. > Am I doing something wrong? Hello Yolanda, No, your not doing something wrong, your just confused ;-) let me explain: The OK you see is the exit status of the check_http plugin, which is indeed: OK. If you check the status of the negate with echo $? (directly after you issued the command) you should see a response of '2', which is the exitstatus known as CRITICAL. Nagios interprets the negate exitstatus and not the exitstatus of the command you 'negated'. Just put your command 'wrapped' in the negate command in your nagios configuration and it will show up as a CRITICAL when the plaintext-error page is shown. Good Luck! Richard > > I check: > > ./check_http -H 10.190.8.xxx -p 80 -u "url" -s "ERROR" > > And I get an OK > > Then, now I want the opposite, so I do: > > ./negate "check_http -H 10.190.8.xxx -p 80 -u "url" -s "ERROR"" > > And I get an OK again. If I add the complete path: > > ./negate "/opt/nagios/libexec/check_http -H 10.190.8.xxx -p 80 -u "url" > -s > "ERROR"" > > I continuous get an OK... > > What is wrong? > > Thanks -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdelavau at univ-lr.fr Tue Jan 30 12:20:15 2007 From: mdelavau at univ-lr.fr (Marc Boisis-Delavaud) Date: Tue, 30 Jan 2007 12:20:15 +0100 Subject: monitor bsd by snmp Message-ID: <0845D5BE-A712-4A47-9017-66EBFC75B4B5@univ-lr.fr> I want to monitor load and disk space of free/open BSD machine by snmp. The plugins "check_snmp_load" from http://www.manubulon.com/nagios/ doesn't work with BSD. Is there anyone on the list who monitor bsd by snmp and how ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maarten at wirelessleiden.nl Tue Jan 30 14:12:26 2007 From: maarten at wirelessleiden.nl (Maarten Rootsaert) Date: Tue, 30 Jan 2007 14:12:26 +0100 Subject: ndoUtils on FreeBSD In-Reply-To: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> References: <3c4611bc0701290748u361d4c31rbc7fedf35e2f72b4@mail.gmail.com> Message-ID: <45BF443A.5000602@wirelessleiden.nl> hello all, I would like to use ndoUtils to get nagios data in mysql database. unfortunatly i couldn't get it to compile... same problem as Josh Endries (16 Aug 2006) http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg06649.html Also it needs mcheck.h wich is available on freeBSD has anyone got some pointers on how i could get it to work? tnx in advance, Maarten ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Jan 30 15:11:40 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 30 Jan 2007 15:11:40 +0100 Subject: strange answer for check_ping Message-ID: <004401c74478$9040d240$0900d40a@intranet.it.net> Hi all ! This is the situation: - Nagios version 1.4 - Nagios plug-in verision 1.3.1 Performing a check_ping on a Linux RedHat Enterprise 4.0, sometime the answer is: PING UNKNOWN - Packet loss = -25%, RTA = 14.00 ms Normally that server (like the others) answer correctly. Have you got any idea? Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raghavendra.kristam at gmail.com Tue Jan 30 16:41:31 2007 From: raghavendra.kristam at gmail.com (raghavendra kristam) Date: Tue, 30 Jan 2007 21:11:31 +0530 Subject: Need some help regarding with tomcat server Message-ID: Hi, I am quite new to nagios and finally I installed the required softwares on linux machine. I am able to access the web interface using the url http://:90/nagios. a) nagios-2.7 b) nagios-plugins-1.4.5 c) Apache httpd-2.2.4 d) mysql4.1.22 I need to do the following scenarios with nagios. Please let me know how to handle this scenarios. a)For server availability: listening to Tomcat server port periodically and send out notification when there is no response on the port. b)For memory/disk usage: periodically check memory/disk space and send out notification when the usage reaches certain thresholds. c) For requests per minute for the Tomcat Server and per JSP level requests per minute and response time Please let me know whether all these scenarios supported by nagios or not ? Thanks, Raghavendra. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Tue Jan 30 16:45:24 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 30 Jan 2007 10:45:24 -0500 Subject: Nagios legend on Map Message-ID: <7abcf48e0701300745n3170b74agecfad5f6a547e6b1@mail.gmail.com> I have nagios 2.4 Does anyone know if you can add a legend to the status map i have bunch of icons i just want my users to know what they mean or stand for? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikhollo at cisco.com Tue Jan 30 16:59:32 2007 From: mikhollo at cisco.com (Mike Holloway) Date: Tue, 30 Jan 2007 09:59:32 -0600 Subject: monitor bsd by snmp In-Reply-To: <0845D5BE-A712-4A47-9017-66EBFC75B4B5@univ-lr.fr> References: <0845D5BE-A712-4A47-9017-66EBFC75B4B5@univ-lr.fr> Message-ID: <381955B3-7199-41D7-BB42-F2BC5F98A9D8@cisco.com> I use check_snmp_load with FreeBSD (5.3,6.1,6.2), works great. Of course you do need to install net-snmp onto the server: http://net-snmp.sourceforge.net/ -mike On Jan 30, 2007, at 5:20 AM, Marc Boisis-Delavaud wrote: > I want to monitor load and disk space of free/open BSD machine by > snmp. > The plugins "check_snmp_load" from http://www.manubulon.com/nagios/ > doesn't work with BSD. > Is there anyone on the list who monitor bsd by snmp and how ? > > Thanks > > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob.blake at gmail.com Tue Jan 30 17:37:18 2007 From: rob.blake at gmail.com (Rob Blake) Date: Tue, 30 Jan 2007 16:37:18 +0000 Subject: Need some help regarding with tomcat server In-Reply-To: References: Message-ID: On 1/30/07, raghavendra kristam wrote: > > Hi, > I am quite new to nagios and finally I installed the required softwares on > linux machine. > I am able to access the web interface using the url http://:90/nagios > . > > a) nagios-2.7 > b) nagios-plugins-1.4.5 > c) Apache httpd-2.2.4 > d) mysql4.1.22 > > > I need to do the following scenarios with nagios. Please let me know how > to handle this scenarios. > > a)For server availability: listening to Tomcat server port periodically > and send out notification when there is no response on the port. > b)For memory/disk usage: periodically check memory/disk space and send out > notification when the usage reaches certain thresholds. > c) For requests per minute for the Tomcat Server and per JSP level > requests per minute and response time > a: Simply use the check_http plugin and supply the port as 8080. I assume that's what your tomcat instance listens on. b: Use either check_snmp or use check_disk plugins to accomplish these. c: Not sure if you can do this. I certainly don't know of any Nagios plugins that will do this for you. Maybe tomcat exposes this information via JMX or something similar, but I'm not too up on that. Either way you're going to be writing your own plugin to monitor it. For how to use each of the mentioned plugins, simply run them with the -h switch and go from there. Most are extremely self explanitory. Rob. Please let me know whether all these scenarios supported by nagios or not ? > > Thanks, > Raghavendra. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Tue Jan 30 18:04:29 2007 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Tue, 30 Jan 2007 11:04:29 -0600 Subject: truss check_nrpe Message-ID: When I run check_nrpe from the Nagios monitoring box it takes an average of 25 seconds to bring back a return code. If I run the same command locally it takes about 1 second. I have supplied a truss output from my Nagios monitoring server and any help would be great. -----Original Message----- From: ezoeller at netmon01.ama-assn.org [mailto:ezoeller at netmon01.ama-assn.org] Sent: Tuesday, January 30, 2007 10:52 AM To: Edwin Zoeller Subject: truss check_nrpe netmon01 @ /apps/nagios/current/libexec > truss ./check_nrpe -H prds01 -t 300 -c check_advantage execve("check_nrpe", 0x08047E04, 0x08047E24) argc = 7 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12 getcwd("/apps/nagios/2.5/libexec", 1012) = 0 resolvepath("/apps/nagios/2.5/libexec/check_nrpe", "/apps/nagios/2.5/libexec/check_nrpe", 1023) = 35 sysconfig(_CONFIG_PAGESIZE) = 4096 xstat(2, "/apps/nagios/2.5/libexec/check_nrpe", 0x08047BF8) = 0 open("/var/ld/ld.config", O_RDONLY) = 3 fxstat(2, 3, 0x08047B30) = 0 mmap(0x00000000, 112, PROT_READ, MAP_SHARED, 3, 0) = 0xFEFC0000 close(3) = 0 xstat(2, "/usr/local/ssl/lib/libssl.so.0.9.8", 0x08047490) = 0 resolvepath("/usr/local/ssl/lib/libssl.so.0.9.8", "/usr/local/ssl/lib/libssl.so.0.9.8", 1023) = 34 open("/usr/local/ssl/lib/libssl.so.0.9.8", O_RDONLY) = 3 mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEFB0000 mmap(0x00010000, 303104, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEF60000 mmap(0xFEF60000, 223814, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEF60000 mmap(0xFEFA6000, 15344, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 221184) = 0xFEFA6000 munmap(0xFEF97000, 61440) = 0 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF50000 memcntl(0xFEF60000, 39640, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/ssl/lib/libcrypto.so.0.9.8", 0x08047490) = 0 resolvepath("/usr/local/ssl/lib/libcrypto.so.0.9.8", "/usr/local/ssl/lib/libcrypto.so.0.9.8", 1023) = 37 open("/usr/local/ssl/lib/libcrypto.so.0.9.8", O_RDONLY) = 3 mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000 mmap(0x00010000, 1310720, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE00000 mmap(0xFEE00000, 1151957, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEE00000 mmap(0xFEF29000, 83936, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1150976) = 0xFEF29000 mmap(0xFEF3E000, 7944, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEF3E000 munmap(0xFEF1A000, 61440) = 0 memcntl(0xFEE00000, 215564, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/lib/libnsl.so.1", 0x08047490) = 0 resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16 open("/lib/libnsl.so.1", O_RDONLY) = 3 mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000 mmap(0x00010000, 577536, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED70000 mmap(0xFED70000, 522485, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFED70000 mmap(0xFEDF0000, 19753, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 524288) = 0xFEDF0000 mmap(0xFEDF5000, 29920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEDF5000 memcntl(0xFED70000, 57484, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/lib/libsocket.so.1", 0x08047490) = 0 resolvepath("/lib/libsocket.so.1", "/lib/libsocket.so.1", 1023) = 19 open("/lib/libsocket.so.1", O_RDONLY) = 3 mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000 mmap(0x00010000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED50000 mmap(0xFED50000, 43330, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFED50000 mmap(0xFED6B000, 2605, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 45056) = 0xFED6B000 munmap(0xFED5B000, 65536) = 0 memcntl(0xFED50000, 11632, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/ssl/lib/libc.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/sfw/lib/libc.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/lib/libc.so.1", 0x08047490) = 0 resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14 open("/lib/libc.so.1", O_RDONLY) = 3 mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFED40000 mmap(0x00010000, 851968, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC60000 mmap(0xFEC60000, 751381, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEC60000 mmap(0xFED28000, 24239, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 753664) = 0xFED28000 mmap(0xFED2E000, 5656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFED2E000 munmap(0xFED18000, 65536) = 0 memcntl(0xFEC60000, 120400, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/lib/libcrypto.so.0.9.8", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/lib/libdl.so.1", 0x08047490) = 0 resolvepath("/lib/libdl.so.1", "/lib/libdl.so.1", 1023) = 15 open("/lib/libdl.so.1", O_RDONLY) = 3 mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFEFB0000 close(3) = 0 xstat(2, "/usr/local/lib/libgcc_s.so.1", 0x08047490) = 0 resolvepath("/usr/local/lib/libgcc_s.so.1", "/usr/local/lib/libgcc_s.so.1", 1023) = 28 open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = 3 mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEC50000 mmap(0x00010000, 94208, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC30000 mmap(0xFEC30000, 25184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEC30000 mmap(0xFEC46000, 3372, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 24576) = 0xFEC46000 munmap(0xFEC37000, 61440) = 0 memcntl(0xFEC30000, 4984, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 xstat(2, "/usr/local/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/lib/libc.so.1", 0x08047490) Err#2 ENOENT xstat(2, "/usr/local/ssl/lib/libc.so.1", 0x08047490) Err#2 ENOENT mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEC20000 munmap(0xFEC50000, 4096) = 0 mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC50000 getcontext(0x08047990) getrlimit(RLIMIT_STACK, 0x08047988) = 0 getpid() = 1191 [1190] lwp_private(0, 1, 0xFEC52000) = 0x000001C3 setustack(0xFEC52060) sigfillset(0xFED2E6E8) = 0 sysconfig(_CONFIG_STACK_PROT) = 7 sysi86(SI86FPSTART, 0xFED2ECD8, 0x0000133F, 0x00001F80) = 0x00000001 brk(0x08064A30) = 0 brk(0x08066A30) = 0 sysconfig(_CONFIG_PAGESIZE) = 4096 brk(0x08066A30) = 0 brk(0x08068A30) = 0 brk(0x08068A30) = 0 brk(0x0806AA30) = 0 brk(0x0806AA30) = 0 brk(0x0806CA30) = 0 brk(0x0806CA30) = 0 brk(0x0806EA30) = 0 brk(0x0806EA30) = 0 brk(0x08070A30) = 0 brk(0x08070A30) = 0 brk(0x08072A30) = 0 brk(0x08072A30) = 0 brk(0x08074A30) = 0 sigaction(SIGALRM, 0x080474D0, 0x08047550) = 0 alarm(300) = 0 brk(0x08074A30) = 0 brk(0x08076A30) = 0 open("/etc/netconfig", O_RDONLY|O_LARGEFILE) = 3 fcntl(3, F_DUPFD, 0x00000100) Err#22 EINVAL read(3, " # p r a g m a i d e n".., 1024) = 1024 read(3, " t s t p i _ c".., 1024) = 215 read(3, 0x080757A0, 1024) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, " # p r a g m a i d e n".., 1024) = 1024 read(3, " t s t p i _ c".., 1024) = 215 read(3, 0x080757A0, 1024) = 0 close(3) = 0 open("/dev/udp", O_RDONLY) = 3 ioctl(3, SIOCGLIFNUM, 0x08047468) = 0 close(3) = 0 open64("/var/run/name_service_door", O_RDONLY) = 3 fcntl(3, F_SETFD, 0x00000001) = 0 door_info(3, 0xFED2E3A0) = 0 door_call(3, 0x080453D8) = 0 open("/etc/nsswitch.conf", O_RDONLY|O_LARGEFILE) = 4 fcntl(4, F_DUPFD, 0x00000100) Err#22 EINVAL read(4, " #\n # / e t c / n s s".., 1024) = 1024 mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC00000 read(4, " f i l e s\n s e r v i c".., 1024) = 100 read(4, 0xFEC52400, 1024) = 0 close(4) = 0 xstat(2, "/lib/nss_files.so.1", 0x08046C60) = 0 resolvepath("/lib/nss_files.so.1", "/lib/nss_files.so.1", 1023) = 19 open("/lib/nss_files.so.1", O_RDONLY) = 4 mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 4, 0) = 0xFEBF0000 mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEBD0000 mmap(0xFEBD0000, 17470, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 4, 0) = 0xFEBD0000 mmap(0xFEBE5000, 1104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 4, 20480) = 0xFEBE5000 munmap(0xFEBD5000, 65536) = 0 memcntl(0xFEBD0000, 4580, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(4) = 0 munmap(0xFEBF0000, 4096) = 0 open("/etc/protocols", O_RDONLY|O_LARGEFILE) = 4 fcntl(4, F_DUPFD, 0x00000100) Err#22 EINVAL read(4, " # C o p y r i g h t ".., 1024) = 1024 close(4) = 0 so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "", SOV_DEFAULT) = 4 connect(4, 0x08047530, 16, SOV_DEFAULT) = 0 brk(0x08076A30) = 0 brk(0x08078A30) = 0 time() = 1170175285 getpid() = 1191 [1190] brk(0x08078A30) = 0 brk(0x0807CA30) = 0 brk(0x0807CA30) = 0 brk(0x08080A30) = 0 brk(0x08080A30) = 0 brk(0x08086A30) = 0 time() = 1170175285 getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 5 fxstat(2, 5, 0x08047230) = 0 pollsys(0x080470B0, 1, 0x08047130, 0x00000000) = 1 read(5, "CB =FE98 !B2 > (8B9CC7 X".., 32) = 32 close(5) = 0 getpid() = 1191 [1190] getpid() = 1191 [1190] getuid() = 0 [0] getpid() = 1191 [1190] time() = 1170175285 getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] getpid() = 1191 [1190] write(4, "160301\0 901\0\0 50301 E".., 62) = 62 read(4, "160301\0 J02\0", 7) = 7 brk(0x08086A30) = 0 brk(0x08088A30) = 0 time() = 1170175285 time() = 1170175285 getpid() = 1191 [1190] read(4, "\0 F0301 EBF u 51BFFE7 s".., 72) = 72 read(4, "160301\08B", 5) = 5 read(4, "\f\0\087\0 @B5C7 vF5D593".., 139) = 139 read(4, "160301\004", 5) = 5 read(4, "0E\0\0\0", 4) = 4 time() = 1170175285 getpid() = 1191 [1190] getpid() = 1191 [1190] write(4, "160301\0 F10\0\0 B\0 @99".., 134) = 134 read(4, "140301\001", 5) = 5 read(4, "01", 1) = 1 read(4, "160301\0 0", 5) = 5 read(4, " CC1 r (F59F |1EAB9B92 ;".., 48) = 48 open("/dev/urandom", O_RDONLY) = 5 fstat64(5, 0x08047460) = 0 fstat64(5, 0x080473A0) = 0 ioctl(5, TCGETA, 0x08047434) Err#6 ENXIO read(5, " :99B115F1\bC3C4 c8E1FD9".., 8192) = 1040 llseek(5, 0xFFFFFFFFFFFFFBF1, SEEK_CUR) = 1 close(5) = 0 write(4, "170301\0 PB2 S84 6 m o".., 1114) = 1114 read(4, 0x0807BBB8, 5) (sleeping...) read(4, "170301\0 ", 5) = 5 read(4, "FB10B89C9DE701BE\fFA u V".., 32) = 32 read(4, "17030104 0", 5) = 5 read(4, " ,D4C9931A j9F91C115B0 b".., 1072) = 1072 alarm(0) = 272 write(4, "150301\0 1A88AE94 e Y1E".., 37) = 37 close(4) = 0 ioctl(1, TCGETA, 0x08047464) = 0 fstat64(1, 0x080473D0) = 0 Ok write(1, " O k\n", 3) = 3 _exit(0) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Yost at epsiia.com Tue Jan 30 17:13:25 2007 From: Josh.Yost at epsiia.com (Josh Yost) Date: Tue, 30 Jan 2007 10:13:25 -0600 Subject: Need some help regarding with tomcat server In-Reply-To: References: Message-ID: <45BF6EA5.7050006@epsiia.com> raghavendra kristam wrote: > Hi, [snip] > a)For server availability: listening to Tomcat server port periodically and > send out notification when there is no response on the port. > b)For memory/disk usage: periodically check memory/disk space and send out > notification when the usage reaches certain thresholds. > c) For requests per minute for the Tomcat Server and per JSP level requests > per minute and response time > > Hi, a) can be handled by check_tcp or check_http (fyi - I can't use check_http -S for tomcat 4; I think it's a problem w/ the SSL implementation on the older tomcats) b) memory/CPU can be handled by either SNMP or, if running on Windows, by using nsclient c) not sure on this one, but maybe someone else has ideas. I don't know where these numbers would exist. Good luck, - Josh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.rudder at reliableresponse.net Tue Jan 30 18:05:21 2007 From: david.rudder at reliableresponse.net (David Rudder) Date: Tue, 30 Jan 2007 10:05:21 -0700 Subject: Need some help regarding with tomcat server In-Reply-To: References: Message-ID: <45BF7AD1.7090801@reliableresponse.net> c) is a difficult one, but I expect it's been handled before. Tomcat stores its logs in the httpd common log format. So, any nagios plugins that examine the Apache logs should be able to handle Tomcat's as well. I see Ethan wrote a check_log that will check for a pattern. Maybe you could build on that. If you're just looking to see if a request took a long time, you can add %D to the access log pattern (specified in conf/server.xml). That shows the time it took, in millis, to fulfill the request. However, I'm not sure if a page's request takes longer for a client with a slow link. Anyway, given the standardized way Tomcat stores it's log, it might not be too difficult to find someone who solved the same problem for Apache's httpd and apply that to Tomcat. -Dave raghavendra kristam wrote: > > Hi, > > I am quite new to nagios and finally I installed the required > softwares on linux machine. > I am able to access the web interface using the url > http://:90/nagios . > > a) nagios-2.7 > b) nagios-plugins-1.4.5 > c) Apache httpd-2.2.4 > d) mysql4.1.22 > > > I need to do the following scenarios with nagios. Please let me know > how to handle this scenarios. > > a)For server availability: listening to Tomcat server port > periodically and send out notification when there is no response on > the port. > b)For memory/disk usage: periodically check memory/disk space and send > out notification when the usage reaches certain thresholds. > c) For requests per minute for the Tomcat Server and per JSP level > requests per minute and response time > > > Please let me know whether all these scenarios supported by nagios or > not ? > > Thanks, > Raghavendra. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.rudder at reliableresponse.net Tue Jan 30 18:25:22 2007 From: david.rudder at reliableresponse.net (David Rudder) Date: Tue, 30 Jan 2007 10:25:22 -0700 Subject: Need some help regarding with tomcat server In-Reply-To: <45BF7AD1.7090801@reliableresponse.net> References: <45BF7AD1.7090801@reliableresponse.net> Message-ID: <45BF7F82.3050107@reliableresponse.net> By the way, NagiosExchange has a plugin for monitoring JMX. http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1[p_view]=808&tx_netnagext_pi1[page]=10%3A10 It doesn't address, specifically, what you asked for. But, it may be even better. For instance, your Java app will throw out of memory errors if it reaches the maximum allocated to the VM. This is usually way below the amount available to the OS. So, you'll want to measure memory usage via JMX and not via the standard OS calls. -Dave David Rudder wrote: > c) is a difficult one, but I expect it's been handled before. > Tomcat stores its logs in the httpd common log format. So, any nagios > plugins that examine the Apache logs should be able to handle Tomcat's > as well. I see Ethan wrote a check_log that will check for a pattern. > Maybe you could build on that. If you're just looking to see if a > request took a long time, you can add %D to the access log pattern > (specified in conf/server.xml). That shows the time it took, in millis, > to fulfill the request. However, I'm not sure if a page's request takes > longer for a client with a slow link. > > Anyway, given the standardized way Tomcat stores it's log, it might not > be too difficult to find someone who solved the same problem for > Apache's httpd and apply that to Tomcat. > > -Dave > > raghavendra kristam wrote: > >> Hi, >> >> I am quite new to nagios and finally I installed the required >> softwares on linux machine. >> I am able to access the web interface using the url >> http://:90/nagios . >> >> a) nagios-2.7 >> b) nagios-plugins-1.4.5 >> c) Apache httpd-2.2.4 >> d) mysql4.1.22 >> >> >> I need to do the following scenarios with nagios. Please let me know >> how to handle this scenarios. >> >> a)For server availability: listening to Tomcat server port >> periodically and send out notification when there is no response on >> the port. >> b)For memory/disk usage: periodically check memory/disk space and send >> out notification when the usage reaches certain thresholds. >> c) For requests per minute for the Tomcat Server and per JSP level >> requests per minute and response time >> >> >> Please let me know whether all these scenarios supported by nagios or >> not ? >> >> Thanks, >> Raghavendra. >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 30 19:27:05 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 30 Jan 2007 19:27:05 +0100 (CET) Subject: truss check_nrpe In-Reply-To: References: Message-ID: On Tue, 30 Jan 2007, Edwin Zoeller wrote: > When I run check_nrpe from the Nagios monitoring box it takes an > average of 25 seconds to bring back a return code. If I run the same > command locally it takes about 1 second. I have supplied a truss output > from my Nagios monitoring server and any help would be great. My guess is you got some DNS timout issue here. Make sure both end can resolve IP to name and name to IP of both sides. (For those counting: 2*2*2 different scenarios that need to work well to prevent odd issues like the one described here.) Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From trevor_obba at yahoo.co.uk Tue Jan 30 20:42:59 2007 From: trevor_obba at yahoo.co.uk (trevor obba) Date: Tue, 30 Jan 2007 19:42:59 +0000 (GMT) Subject: Nagios Monitor Ms exchange Message-ID: <261073.59654.qm@web23307.mail.ird.yahoo.com> I am looking for nagios plug-in to monitor our Microsoft exchange version 2003. I would like to monitor the following Mail Queues, Mailloops etc How can I monitor microsoft exchange version 2003? Can you help? Please Thanks ____________________________________________________ Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at wansecurity.com Tue Jan 30 20:58:04 2007 From: lists at wansecurity.com (Robert Smith) Date: Wed, 31 Jan 2007 04:58:04 +0900 Subject: Nagios Monitor Ms exchange In-Reply-To: <261073.59654.qm@web23307.mail.ird.yahoo.com> References: <261073.59654.qm@web23307.mail.ird.yahoo.com> Message-ID: <45BFA34C.2030905@wansecurity.com> Use NRPE_NT and Groundwork Open Source wmi/vbscript http://archive.groundworkopensource.com/groundwork-exchange/tags/wmi-1.0/V2_nrpe_commands.cfg -Robert Smith trevor obba wrote: > I am looking for nagios plug-in to monitor our Microsoft exchange version 2003. > > I would like to monitor the following Mail Queues, Mailloops etc > How can I monitor microsoft exchange version 2003? > > Can you help? Please > > > Thanks > > > > > > ____________________________________________________ > > Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scott.micciche at spm1.com Tue Jan 30 23:05:11 2007 From: scott.micciche at spm1.com (Scott Micciche) Date: Tue, 30 Jan 2007 14:05:11 -0800 Subject: Nagios and exception monitoring Message-ID: <45BFC117.2040404@spm1.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there any way to configure Nagios to only show the exceptions on the service detail and associated pages? I only ask as we have many machines and although we can sort by status, it isn't the default sort so if you change pages, you must re-sort and it would be nice to configure Nagios to only show exceptions, like Critial and Warnings at the top and all the machines that are in good status at the bottom. Thanks in advance for any help. - -- Scott Micciche Unix Systems Administrator Sierra Pacific Mortgage (916) 932-0634 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFv8EXla/LXXqKLxIRAkDgAKCABgIVoCztVQUMuk27YfHpAFNI4gCfYSeb rZn9ZnzIPAdpiBa1EjOWtRw= =TgeN -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 30 23:16:45 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 30 Jan 2007 22:16:45 +0000 Subject: Nagios and exception monitoring In-Reply-To: <45BFC117.2040404@spm1.com> References: <45BFC117.2040404@spm1.com> Message-ID: <45BFC3CD.6000201@mailnetwork.co.uk> You can do this in Nagios Looking Glass (a portal viewer for Nagios), you can set a filter so it only shows you hosts that have problems (and is refreshed at regular intervals so you can leave it on screen.) It might not be exactly what you're after, but worth a look? www.nagioslookingglass.co.uk Scott Micciche wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there any way to configure Nagios to only show the exceptions on the > service detail and associated pages? > > I only ask as we have many machines and although we can sort by status, > it isn't the default sort so if you change pages, you must re-sort and > it would be nice to configure Nagios to only show exceptions, like > Critial and Warnings at the top and all the machines that are in good > status at the bottom. > > Thanks in advance for any help. > > - -- > Scott Micciche > Unix Systems Administrator > Sierra Pacific Mortgage > (916) 932-0634 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFFv8EXla/LXXqKLxIRAkDgAKCABgIVoCztVQUMuk27YfHpAFNI4gCfYSeb > rZn9ZnzIPAdpiBa1EjOWtRw= > =TgeN > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45bfc143118218947617192! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Shein at iovate.com Tue Jan 30 23:25:56 2007 From: Jason.Shein at iovate.com (Jason.Shein at iovate.com) Date: Tue, 30 Jan 2007 17:25:56 -0500 Subject: Nagios and exception monitoring In-Reply-To: <45BFC3CD.6000201@mailnetwork.co.uk> References: <45BFC3CD.6000201@mailnetwork.co.uk> Message-ID: >You can do this in Nagios Looking Glass (a portal viewer for Nagios), >you can set a filter so it only shows you hosts that have problems (and >is refreshed at regular intervals so you can leave it on screen.) > >It might not be exactly what you're after, but worth a look? > >www.nagioslookingglass.co.uk I have been watching the looking glass project for a while now, and find that feature interesting. Can you increase the number of hosts displayed on the main page? I am looking at the idea of using a large LCD display ( 40 inch or larger ) on the wall in our IT department to display the current network status. Could looking glass display the status of 80+ hosts on one page if the resolution was set high enough? _______________________________________________________________________________ Jason Shein Network Administrator ? Linux Systems Iovate Health Sciences Inc. 5100 Spectrum Way Mississauga, ON L4W 5S2 ( 905 ) - 678 - 3119 x 3136 1 - 888 - 334 - 4448, x 3136 (toll-free) jason.shein at iovate.com Customer Service. Collaboration. Innovation. Efficiency. Iovate's Information Technology Team _______________________________________________________________________________ CONFIDENTIALITY NOTICE: THIS ELECTRONIC MAIL TRANSMISSION IS PRIVILEGED AND CONFIDENTIAL AND IS INTENDED ONLY FOR THE REVIEW OF THE PARTY TO WHOM IT IS ADDRESSED. THE INFORMATION CONTAINED IN THIS E-MAIL IS CONFIDENTIAL AND IS DISCLOSED TO YOU UNDER THE EXPRESS UNDERSTANDING THAT YOU WILL NOT DISCLOSE IT OR ITS CONTENTS TO ANY THIRD PARTY WITHOUT THE EXPRESS WRITTEN CONSENT OF AN AUTHORIZED OFFICER OF IOVATE HEALTH SCIENCES SERVICES INC. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE IMMEDIATELY RETURN IT TO THE SENDER. _______________________________________________________________________________ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Tue Jan 30 23:41:04 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 30 Jan 2007 22:41:04 +0000 Subject: Nagios and exception monitoring In-Reply-To: References: Message-ID: <45BFC980.80802@mailnetwork.co.uk> Jason.Shein at iovate.com wrote: >> You can do this in Nagios Looking Glass (a portal viewer for Nagios), >> you can set a filter so it only shows you hosts that have problems (and >> is refreshed at regular intervals so you can leave it on screen.) >> >> It might not be exactly what you're after, but worth a look? >> >> www.nagioslookingglass.co.uk >> > > I have been watching the looking glass project for a while now, and find > that feature interesting. > > Can you increase the number of hosts displayed on the main page? I am > looking at the idea of using a large LCD display ( 40 inch or larger ) on > the wall in our IT department to display the current network status. Could > looking glass display the status of 80+ hosts on one page if the > resolution was set high enough? > Yep, it's in the configuration file how many hosts per page you want to show - if you want to show all hosts on a single page, set it to a high number like 999. Since 1.0.0, the template expands to fit the height of the data in the page (rather than having a fixed height with a scrollbar as it was in 1.0.0#PRE.) NLG does have trouble with more than 200 hosts, I'm working on that for the next release. If you do get it up and running on an LCD display that big it'd be great to have a photo! :-) Andy. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 30 23:41:55 2007 From: marc at ena.com (Marc Powell) Date: Tue, 30 Jan 2007 16:41:55 -0600 Subject: Nagios and exception monitoring Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Scott Micciche > Sent: Tuesday, January 30, 2007 4:05 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios and exception monitoring > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there any way to configure Nagios to only show the exceptions on the > service detail and associated pages? Sort of... You can manipulate the filters to show subsets of problem types. For example, the following will show all un-acknowledged service problems in WARNING or CRITICAL state. We use this as our default Service Problems link -- http://you-nagios-host/cgi-bin/status.cgi?host=all&type=detail&servicest atustypes=20&hoststatustypes=3&serviceprops=42 servicestatustypes -- 4 (WARNING) + 16 (CRITICAL) = 20 2 == OK 4 == WARNING 8 == UNKNOWN 16 == CRITICAL Hoststatustypes -- 1 (Pending) + 2 (UP) = 3 1 == Pending 2 == UP 4 == DOWN 8 == UNREACHABLE Serviceprops and hostprops can be found around line 272 of include/cgiutils.h (too many for me to write here). For the example above, 42 means "Not In Scheduled Downtime & Has Not Been Acknowledged & Active Checks Enabled" Many of the interesting combinations can be reached just by following links on the Tactical Overview. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From one_matthias at hotmail.com Wed Jan 31 01:54:28 2007 From: one_matthias at hotmail.com (Matthias N) Date: Wed, 31 Jan 2007 01:54:28 +0100 Subject: Get into the start page of nagios but no access to any cgi files Message-ID: Hi i get into initial naqgios page but after that i am getting lost ... when clicking on the "service details" link on the left side i get: ********************************** Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ****************************** the server log tells me: ************************************************* [root at hamm etc]# tail -f /etc/httpd/logs/error_log [Tue Jan 30 18:10:50 2007] [notice] Digest: done [Tue Jan 30 18:10:50 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Jan 30 18:10:50 2007] [notice] LDAP: SSL support unavailable [Tue Jan 30 18:10:50 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue Jan 30 18:10:50 2007] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations [Tue Jan 30 18:14:13 2007] [error] [client ***myserverip***] File does not exist: /var/www/html/nagops, referer: http://***myserverip***/nagios/side.html [Tue Jan 30 18:34:51 2007] [error] [client ***myserverip***] File does not exist: /var/www/html/nagois, referer: http://***myserverip***/nagios/side.html [Tue Jan 30 18:39:36 2007] [error] [client ***myserverip***] Directory index forbidden by rule: /var/www/html/ [Tue Jan 30 18:40:14 2007] [error] [client ***myserverip***] (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://***myserverip***/nagios/side.html [Tue Jan 30 18:40:14 2007] [error] [client ***myipaddress***] Premature end of script headers: status.cgi, referer: http://****myserverip***/nagios/side.html ************************************************* added an html page at /usr/local/nagios/sbin/ location and i can open that one but if i force the webbroswer to open an cgi file by choosing "open file in firefox than it ask me what to do with that file and how to open it ... in the installation i user the following string ... ***************************************************** ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd *************************************************** httpd.conf contains: *************************************** ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios /usr/local/nagios/share Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user *********************************** i have added nodes to check and the nagios -v nagios.cfg works well ... nagios started butr one thing that worrie is that libgd i can not find it ... anywhere ... where can i find all the libraries neded by nagios in the documentation and where do getthem boutells gd i have but i guess some more is needed ...

Matthias Nilsson

_________________________________________________________________ V?rlden bevakas p? MSN http://nyheter.msn.se/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 31 06:26:06 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 31 Jan 2007 00:26:06 -0500 Subject: nagios legend map?? Message-ID: <7abcf48e0701302126j1eadad17n126fa31167ef1707@mail.gmail.com> I have nagios 2.4 Does anyone know if you can add a legend to the status map i have bunch of icons i just want my users to know what they mean or stand for? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Jan 31 07:40:37 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 31 Jan 2007 07:40:37 +0100 (CET) Subject: nagios legend map?? In-Reply-To: <7abcf48e0701302126j1eadad17n126fa31167ef1707@mail.gmail.com> References: <7abcf48e0701302126j1eadad17n126fa31167ef1707@mail.gmail.com> Message-ID: On Wed, 31 Jan 2007, Nedim Bicic wrote: > I have nagios 2.4 > > Does anyone know if you can add a legend to the status map i have bunch of > icons i just want my users to know what they mean or stand for? Use the extended host information so if they click on a host they get those details. More details about extended host information are available in the manual. Hugo. -- hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntserafica at yahoo.com Wed Jan 31 08:26:28 2007 From: ntserafica at yahoo.com (Nelson Serafica) Date: Tue, 30 Jan 2007 23:26:28 -0800 (PST) Subject: How to bypass motd in check_by_ssh Message-ID: <765925.5769.qm@web62402.mail.re1.yahoo.com> HI to all, Is there a way I can bypass motd of ssh? I cannot execute plugins if there's a motd in my ssh. However, when I disable it, I can execute the plugins. But the thing is, I do not want to disable mthe motd in the server. I tried the option "-S 500" in check_by_ssh but still problem occurs. Please help ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Wed Jan 31 13:56:49 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 31 Jan 2007 07:56:49 -0500 Subject: How to bypass motd in check_by_ssh References: <765925.5769.qm@web62402.mail.re1.yahoo.com> Message-ID: <7F477BD26F545A4C8E4779754A38EFB30D309D@PEPWMV00043.corp.pep.pvt> Most Unix flavors I've ever seen allow you to create a ".hushlogin" file in that particular user's home directory to suppress printing of the motd for that particular user at login time. touch ~/.hushlogin for that user and that user will never see the motd. Mark -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net on behalf of Nelson Serafica Sent: Wed 1/31/2007 2:26 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to bypass motd in check_by_ssh HI to all, Is there a way I can bypass motd of ssh? I cannot execute plugins if there's a motd in my ssh. However, when I disable it, I can execute the plugins. But the thing is, I do not want to disable mthe motd in the server. I tried the option "-S 500" in check_by_ssh but still problem occurs. Please help ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Wed Jan 31 14:43:49 2007 From: forums at emat.be (JS) Date: Wed, 31 Jan 2007 14:43:49 +0100 Subject: Grant view access but no change access Message-ID: <45C09D15.4010503@emat.be> Hi list, Is there a way to grant a user of group the right to view the status of services and hosts but not giving them the right to start/stop services or to change anything else. Thanks, Jelle ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robert.king at ingenta.com Wed Jan 31 14:54:01 2007 From: robert.king at ingenta.com (Robert King) Date: Wed, 31 Jan 2007 08:54:01 -0500 Subject: Grant view access but no change access In-Reply-To: <45C09D15.4010503@emat.be> References: <45C09D15.4010503@emat.be> Message-ID: <45C09F79.5050804@ingenta.com> In your cgi.cfg, there are the following values: authorized_for_all_services=username authorized_for_all_hosts=username These will accept a comma-delimited list of usernames to allow to view service and host information, respectively. These are separate from the following: authorized_for_all_service_commands=username authorized_for_all_host_commands=username which will allow the user(s) to execute host/service commands. Please also note, that if the user's http auth login name matches the short name of any defined contact, the user will have full access, including the ability to execute commands, to all hosts and/or services which the user is listed as a contact for. Hope this helps, Rob -- Robert King - Ingenta, Inc. UNIX Systems Administrator Office: +1 401 331 2014 ext 120 - Mobile: +1 401 865 0950 GPG Public key: http://tinyurl.com/9zmws JS wrote: > Hi list, > > Is there a way to grant a user of group the right to view the status of > services and hosts but not giving them the right to start/stop services > or to change anything else. > > > Thanks, > > Jelle > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 31 15:42:18 2007 From: marc at ena.com (Marc Powell) Date: Wed, 31 Jan 2007 08:42:18 -0600 Subject: Grant view access but no change access Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of JS > Sent: Wednesday, January 31, 2007 7:44 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Grant view access but no change access > > Hi list, > > Is there a way to grant a user of group the right to view the status of > services and hosts but not giving them the right to start/stop services > or to change anything else. Not within nagios. I imagine that you could use .htaccess to only allow access to cmd.cgi for specific users or groups. Something like -- AuthName "Monitor System Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users AuthGroupFile /usr/local/nagios/etc/htpasswd.groups require valid-user require group admins htpasswd.groups contains -- admins:bill,bob,fred ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gopinath.u at gmail.com Wed Jan 31 15:50:04 2007 From: gopinath.u at gmail.com (Gopinath) Date: Wed, 31 Jan 2007 20:20:04 +0530 Subject: Cannot see status map - HTTP 404 file not found error. Message-ID: Hi everyone, I have installed nagios 2.6 & plugins successfully as per the instructions given in the manual. Now when i click on the "status map" on the left pane of the nagios web interface, I see page HTTP 404 - File not found error. I think i am missing some cgi file like "statusmap.cgi". But i am able to see the 3-D status map (i have got statuswrl.cgi in place). I encounter same type of HTTP 404 error while accessing "Trends" and "availability" options in the web interface. Please guide me on solving this problem. Thanks & Regards, Gopinath.U -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 31 15:53:07 2007 From: marc at ena.com (Marc Powell) Date: Wed, 31 Jan 2007 08:53:07 -0600 Subject: Cannot see status map - HTTP 404 file not founderror. Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gopinath > Sent: Wednesday, January 31, 2007 8:50 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Cannot see status map - HTTP 404 file not > founderror. > > Hi everyone, > > I have installed nagios 2.6 & plugins successfully as per the instructions > given in the manual. Now when i click on the "status map" on the left pane > of the nagios web interface, I see page HTTP 404 - File not found error. I > think i am missing some cgi file like " statusmap.cgi". But i am able to > see the 3-D status map (i have got statuswrl.cgi in place). I encounter > same type of HTTP 404 error while accessing "Trends" and "availability" > options in the web interface. Please guide me on solving this problem. This is in the FAQ. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CKoop at vrg.de Wed Jan 31 15:55:50 2007 From: CKoop at vrg.de (Carsten Koop) Date: Wed, 31 Jan 2007 15:55:50 +0100 Subject: Cannot see status map - HTTP 404 file not found error. In-Reply-To: References: Message-ID: Hi, please have a look at the Nagios-FAQ. There is an article about the statusmap and http-404 errors. -> http://www.nagios.org/faqs/viewfaq.php?faq_id=55&expand=false&showdesc=false Mit freundlichen Gr??en / best regards Carsten Koop Gopinath Gesendet von: nagios-users-bounces at lists.sourceforge.net 31.01.2007 15:50 An nagios-users at lists.sourceforge.net Kopie Thema [Nagios-users] Cannot see status map - HTTP 404 file not found error. Hi everyone, I have installed nagios 2.6 & plugins successfully as per the instructions given in the manual. Now when i click on the "status map" on the left pane of the nagios web interface, I see page HTTP 404 - File not found error. I think i am missing some cgi file like " statusmap.cgi". But i am able to see the 3-D status map (i have got statuswrl.cgi in place). I encounter same type of HTTP 404 error while accessing "Trends" and "availability" options in the web interface. Please guide me on solving this problem. Thanks & Regards, Gopinath.U ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 31 16:00:02 2007 From: marc at ena.com (Marc Powell) Date: Wed, 31 Jan 2007 09:00:02 -0600 Subject: Get into the start page of nagios but no access toany cgi files Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Matthias N > Sent: Tuesday, January 30, 2007 6:54 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Get into the start page of nagios but no access > toany cgi files > > Hi > > i get into initial naqgios page but after that i am getting lost ... > > when clicking on the "service details" link on the left side i get: [chop] > [Tue Jan 30 18:40:14 2007] [error] [client ***myserverip***] > (13)Permission > denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: > http://***myserverip***/nagios/side.html > [Tue Jan 30 18:40:14 2007] [error] [client ***myipaddress***] Premature > end > of script headers: status.cgi, referer: > http://****myserverip***/nagios/side.html > ************************************************* Smells like SELinux. Do you have it enabled and in enforcement mode? If so, did you modify your policies so that the web server can execute the nagios cgi's? If you do not have SELinux enabled, then it would appear to be a straight permissions issue. Is your web server able to get to the directory the cgi's are in and do they have execute permissions? [chop] > nagios started butr one thing that worrie is that libgd i can not find it > ... anywhere ... > > where can i find all the libraries neded by nagios in the documentation > and > where do getthem boutells gd i have but i guess some more is needed ... It depends on your distribution. The Nagios FAQ can help. -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.shellam-lists at mailnetwork.co.uk Wed Jan 31 16:12:15 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Wed, 31 Jan 2007 15:12:15 +0000 Subject: Grant view access but no change access In-Reply-To: <45C09D15.4010503@emat.be> References: <45C09D15.4010503@emat.be> Message-ID: <45C0B1CF.7090500@mailnetwork.co.uk> JS wrote: > Hi list, > > Is there a way to grant a user of group the right to view the status of > services and hosts but not giving them the right to start/stop services > or to change anything else. > Nagios Looking Glass was designed for this situation: www.nagioslookingglass.co.uk > > Thanks, > > Jelle > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,45c09de6118211414816096! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 31 16:37:07 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 31 Jan 2007 09:37:07 -0600 Subject: nagios bailing out log messages - cause now known Message-ID: <3c4611bc0701310737q429b59fydc2e7bfa857ee000@mail.gmail.com> I'm running "nagios_spawn.sh" from crontab every 5 minutes. This script, provided by - I believe - someone on this list (thank you) uses the check_nagios command to verify that nagios is running. For some reason, it appears as though every other time this script is ran (every ten minutes) it fails and tries to spawn a new Nagios process which fails and gives me the "Lockfile /blah is help by PID blah. Bailing out..." messages. So I guess the question now is, why would this check fail every ten minutes? The script: #!/bin/bash plugindir="/usr/local/nagios/libexec" cmdstart="/etc/init.d/nagios start" #Check nagios with check_nagios plugin $plugindir/check_nagios -e 5 -F /usr/local/nagios/var/nagios.log -C /usr/local/nagios/bin/nagios if [ "${?}" != 0 ] ; then echo "CRITICAL:Nagios not found running..." $cmdstart else echo "OK:Nagios runnning..." fi exit ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 31 16:38:57 2007 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 31 Jan 2007 10:38:57 -0500 Subject: nagios bailing out log messages - cause now known In-Reply-To: <3c4611bc0701310737q429b59fydc2e7bfa857ee000@mail.gmail.com> References: <3c4611bc0701310737q429b59fydc2e7bfa857ee000@mail.gmail.com> Message-ID: > So I guess the question now is, why would this check fail > every ten minutes? > > The script: > #!/bin/bash > plugindir="/usr/local/nagios/libexec" > cmdstart="/etc/init.d/nagios start" > #Check nagios with check_nagios plugin > $plugindir/check_nagios -e 5 -F > /usr/local/nagios/var/nagios.log -C /usr/local/nagios/bin/nagios > > if [ "${?}" != 0 ] ; then > echo "CRITICAL:Nagios not found running..." > $cmdstart > else > echo "OK:Nagios runnning..." > fi > exit How often is nagios.log updating? If it's less than every five minutes this check will fail. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 31 17:11:31 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 31 Jan 2007 10:11:31 -0600 Subject: nagios bailing out log messages - cause now known In-Reply-To: References: <3c4611bc0701310737q429b59fydc2e7bfa857ee000@mail.gmail.com> Message-ID: <3c4611bc0701310811v3836fd56s436197ae8d8e4744@mail.gmail.com> On 1/31/07, Morris, Patrick wrote: > > So I guess the question now is, why would this check fail > > every ten minutes? > How often is nagios.log updating? If it's less than every five minutes > this check will fail. > Well, good question - can you explain the stamp Nagios puts in its log file? Looking at the log file, it appears to only get touched when this script tries starting a new process. Obviously, I need to either spread out the time I check the log file or have Nagios hit the log file more regularly. In the main config file I have it set to log to syslog and the NetAlarm log file, and to log everything that is available in that config. I didn't see a debug option - perhaps that's something you do from the command line - but is this the best way to go? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Wed Jan 31 18:07:23 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Wed, 31 Jan 2007 11:07:23 -0600 Subject: Nagios legend on Map In-Reply-To: <7abcf48e0701300745n3170b74agecfad5f6a547e6b1@mail.gmail.com> References: <7abcf48e0701300745n3170b74agecfad5f6a547e6b1@mail.gmail.com> Message-ID: You can use the footer and headers. Luis Lacayo Sr. UNIX Admin Chicago Public Schools Office of Technology Services 125 S. Clark Street - Suite 300 Chicago, IL 60603 Direct:773-553-3835 Office: 773-553-1300 FAX:773-553-1363 lflacayo at cps.k12.il.us ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic Sent: Tuesday, January 30, 2007 9:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios legend on Map I have nagios 2.4 Does anyone know if you can add a legend to the status map i have bunch of icons i just want my users to know what they mean or stand for? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ampranti at gmail.com Wed Jan 31 20:59:58 2007 From: ampranti at gmail.com (Brandino Andreas) Date: Wed, 31 Jan 2007 21:59:58 +0200 Subject: pngtogd2 & statusmap Message-ID: <663408584.20070131215958@gmail.com> Hi list , i am trying to replace the "Question Mark icon" to statusmap with an Icon. I have succeed until now using the icons from nagiosexchange. However, when i try to create a custom gd2 icon i always get a missing icon. The problem is with the "pngtogd2 x.png x.gd2 0 1" command. For some reason produce incompatible gd2 format icons. Anyone know if pngtogd2 has any specific requirements for png files? Is there any other way to prdouce the gd2 file? I am using debian, libgd-tools (2.0.33-5.2), nagios 2.7 Thank you for any replies <> --- - - - --- <> Brandino Andreas ampranti at gmail.com <> --- - - - --- <> ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Wed Jan 31 21:18:04 2007 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Wed, 31 Jan 2007 20:18:04 +0000 Subject: Jason Ellmers is out of the office. Message-ID: I will be Out of the Office Start Date: 31/01/2007. End Date: 14/02/2007. Please be aware that I will be out of the office until Wednesday 14th February. Please contact the helpdesk on 08702415500 if technical assistance is required. ********************************************************************** This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet email is not necessarily secure. First does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email could contain software viruses which could damage your system. First have checked the attachments for viruses before sending, but you should virus-check them before opening. For more information on our range of services or to book your tickets online, please visit:- http://www.firstgroup.com ********************************************************************** ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Wed Jan 31 22:49:35 2007 From: forums at emat.be (Jelle) Date: Wed, 31 Jan 2007 21:49:35 +0000 (UTC) Subject: Grant view access but no change access References: <45C09D15.4010503@emat.be> Message-ID: I will go for the solution Marc Powell Suggested. Lookingglass is nice, but it doesn't fit my purpose,... Thanks for the info everyone,... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knobdy at gmail.com Wed Jan 31 23:31:16 2007 From: knobdy at gmail.com (Brian Loe) Date: Wed, 31 Jan 2007 16:31:16 -0600 Subject: sendpage Message-ID: <3c4611bc0701311431x32de3f04tdc67eede1a1cfdba@mail.gmail.com> Anyone using sendpage with Nagios? I'm running into trouble compiling the serialport module and have no idea where to go to get help (e-mailed the developer but haven't heard back - maybe old e-mail, maybe got filtered). Thanks, as always, in advance. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Wed Jan 31 23:35:41 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Wed, 31 Jan 2007 17:35:41 -0500 Subject: Adding hosts and services Message-ID: <7abcf48e0701311435oeeaac5ekb74274b9181fceeb@mail.gmail.com> Hey i am running nagios 2.4 The way i am updating by adding hosts to host cfg file and service.cfg file is ther another way or a template that can be easily updated into by linux box now when i open my host file the text like froze it doesnt appear like its thinking or something any advise on this would be helpful -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null