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@arbi