From sean at datafly.net Sat Sep 1 00:55:47 2007 From: sean at datafly.net (Sean Schertell) Date: Fri, 31 Aug 2007 15:55:47 -0700 Subject: How to auto-start NRPE daemon on reboot (FreeBSD) ? Message-ID: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05@datafly.net> Hi Guys, I've got a spiffy new rc.d script that works great for starting/ stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / etc/rc.conf doesn't seem to do the trick. Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ etc/rc.d/nrpe start" command at boot time? In case anyone's interested, here's my script: #!/bin/sh # # Startup script for NRPE # # Source function library. . /usr/local/etc/rc.d/functions BIN=/usr/local/nagios/bin/nrpe CONFIG=/usr/local/nagios/etc/nrpe.cfg LOCK=/var/spool/lock/nrpe RETVAL=0; # See how we were called. case "$1" in start) echo -n "Starting NRPE daemon: " daemon $BIN -c $CONFIG -d RETVAL=$? if [ $RETVAL = 0 ] && touch $LOCK then echo -e "\t\t[ OK ]"; else echo -e "\t\t[ FAILED ]"; fi ;; stop) echo -n "Stopping NRPE daemon: " kill `cat /var/run/nrpe.pid` && rm -f /var/run/nrpe.pid RETVAL=$? if [ $RETVAL = 0 ] && rm -f $LOCK then echo -e "\t\t[ OK ]"; else echo -e "\t\t[ FAILED ]"; fi ;; status) status nrpe ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit $RETVAL :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sean at datafly.net Sat Sep 1 03:05:02 2007 From: sean at datafly.net (Sean Schertell) Date: Fri, 31 Aug 2007 18:05:02 -0700 Subject: check_dns works fine for half my servers, fails for other half Message-ID: I'm not really a DNS guru, so it's probably an obvious thing -- would someone mind enlightening me as to why this happens? How come it works fine for the first server but fails for the second? Their definitely both running DNS. [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H microsoft.com -s rosemary.datafly.net DNS OK: 0.324 seconds response time. microsoft.com returns 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H microsoft.com -s nutmeg.datafly.net DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no address ??? Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Sat Sep 1 03:16:28 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Fri, 31 Aug 2007 20:16:28 -0500 (CDT) Subject: How to auto-start NRPE daemon on reboot (FreeBSD) ? In-Reply-To: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05@datafly.net> References: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05@datafly.net> Message-ID: On Fri, 31 Aug 2007, Sean Schertell wrote: > I've got a spiffy new rc.d script that works great for starting/ > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > etc/rc.conf doesn't seem to do the trick. > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > etc/rc.d/nrpe start" command at boot time? > > In case anyone's interested, here's my script: Your script is not an script using FreeBSD's new rc.d semantics. So don't use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) To use old style, name it to end with ".sh" and make sure it is executable. The defaults of FreeBSD should then work to find it and run it at boot. If you want to use FreeBSD's new rc.d semantics, have a look at the rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. Jeremy C. Reed p.s. Some of this is documented in the FreeBSD Handbook. Also some is documented in http://bsdwiki.reedmedia.net/wiki/Configure_a_service_to_start_at_boot_time.html http://bsdwiki.reedmedia.net/wiki/Use_an_rc__40__8__41___script_to_determine_if_a_service_is_running_and_start__44___restart_or_stop_it_as_required.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Sep 1 03:37:34 2007 From: marc at ena.com (Marc Powell) Date: Fri, 31 Aug 2007 20:37:34 -0500 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > Sent: Friday, August 31, 2007 8:05 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_dns works fine for half my servers,fails for > other half > > I'm not really a DNS guru, so it's probably an obvious thing -- would > someone mind enlightening me as to why this happens? How come it > works fine for the first server but fails for the second? Their > definitely both running DNS. > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s rosemary.datafly.net > DNS OK: 0.324 seconds response time. microsoft.com returns > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s nutmeg.datafly.net > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > address nutmeg is returning output from nslookup that check_dns can't parse. It would appear that nutmeg isn't configured to perform recursive lookups (lookups for domains it doesn't host) and you're expecting it to. $ nslookup -sil microsoft.com rosemary.datafly.net Server: rosemary.datafly.net Address: 64.34.193.57#53 Non-authoritative answer: Name: microsoft.com Address: 207.46.232.182 Name: microsoft.com Address: 207.46.197.32 $ nslookup -sil microsoft.com nutmeg.datafly.net Server: nutmeg.datafly.net Address: 72.36.130.114#53 Non-authoritative answer: *** Can't find microsoft.com: No answer As an aside, you shouldn't be allowing me to perform recursive lookups with your servers anyway. Rosemary could easily be hijacked to perform DNS based DOS attacks. - Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sean at datafly.net Sat Sep 1 04:48:16 2007 From: sean at datafly.net (Sean Schertell) Date: Fri, 31 Aug 2007 19:48:16 -0700 Subject: How to auto-start NRPE daemon on reboot (FreeBSD) ? In-Reply-To: References: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05@datafly.net> Message-ID: <80A1FF38-09B2-46BC-8A43-F626EAF5A9BD@datafly.net> On Aug 31, 2007, at 6:16 PM, Jeremy C. Reed wrote: > On Fri, 31 Aug 2007, Sean Schertell wrote: > >> I've got a spiffy new rc.d script that works great for starting/ >> stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / >> etc/rc.conf doesn't seem to do the trick. >> >> Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ >> etc/rc.d/nrpe start" command at boot time? >> >> In case anyone's interested, here's my script: > > Your script is not an script using FreeBSD's new rc.d semantics. So > don't > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > To use old style, name it to end with ".sh" and make sure it is > executable. The defaults of FreeBSD should then work to find it and > run it > at boot. > > If you want to use FreeBSD's new rc.d semantics, have a look at the > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > Jeremy C. Reed > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > documented in > http://bsdwiki.reedmedia.net/wiki/ > Configure_a_service_to_start_at_boot_time.html > http://bsdwiki.reedmedia.net/wiki/ > Use_an_rc__40__8__41___script_to_determine_if_a_service_is_running_and > _start__44___restart_or_stop_it_as_required.html I was trying to be consistent and set everything up as closely as possible to the way I had done it on my RetardedHat boxes. Installing nrpe/nagios-plugins from FreeBSD ports is about a thousand times easier and creates a snazzy new-style rc.d script for me right out of the box. And now I can just put nrpe2_enable in my rc.conf and everything works swimmingly. God I love FreeBSD. Thanks for mentioning ports -- I don't know why I didn't think of trying that before ;-) Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sean at datafly.net Sat Sep 1 04:51:31 2007 From: sean at datafly.net (Sean Schertell) Date: Fri, 31 Aug 2007 19:51:31 -0700 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: References: Message-ID: >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- >> users- >> bounces at lists.sourceforge.net] On Behalf Of Sean Schertell >> Sent: Friday, August 31, 2007 8:05 PM >> To: Nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] check_dns works fine for half my >> servers,fails > for >> other half >> >> I'm not really a DNS guru, so it's probably an obvious thing -- would >> someone mind enlightening me as to why this happens? How come it >> works fine for the first server but fails for the second? Their >> definitely both running DNS. >> >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H >> microsoft.com -s rosemary.datafly.net >> DNS OK: 0.324 seconds response time. microsoft.com returns >> 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 >> >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H >> microsoft.com -s nutmeg.datafly.net >> DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no >> address > > nutmeg is returning output from nslookup that check_dns can't > parse. It > would appear that nutmeg isn't configured to perform recursive lookups > (lookups for domains it doesn't host) and you're expecting it to. > > $ nslookup -sil microsoft.com rosemary.datafly.net > Server: rosemary.datafly.net > Address: 64.34.193.57#53 > > Non-authoritative answer: > Name: microsoft.com > Address: 207.46.232.182 > Name: microsoft.com > Address: 207.46.197.32 > > $ nslookup -sil microsoft.com nutmeg.datafly.net > Server: nutmeg.datafly.net > Address: 72.36.130.114#53 > > Non-authoritative answer: > *** Can't find microsoft.com: No answer > > As an aside, you shouldn't be allowing me to perform recursive lookups > with your servers anyway. Rosemary could easily be hijacked to perform > DNS based DOS attacks. > > - > Marc > So does that mean then that it isn't possible to use the check_dns plugin without enabling recursive lookups and leaving my server open to DNS DOS attacks? Is there any way to use dns_check safely? Thanks :-) Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From iter_manojkumar at rediffmail.com Sat Sep 1 07:30:38 2007 From: iter_manojkumar at rediffmail.com (manoj kumar) Date: 1 Sep 2007 05:30:38 -0000 Subject: Configuring Web Interface Message-ID: <1188563883.S.15036.27942.f5mail21.rediffmail.com.1188624638.15342@webmail.rediffmail.com> Thanks A Lot Justine!It worked.... :)Warm regards,ManojOn Fri, 31 Aug 2007 07:39:42 -0500 \"Justin Maloney\" wroteOK I get what your looking for now.  You would need to getthe urls for the hostgroup overview page (http://nagios.yourserver/nagios/cgi-bin/status.cgi?hostgroup= CHDDLFDHCP-SERVERS&style=detail) and put that in the side.html page.  Try just making theliks and see if they work.  The format above works to veiw my groups and I can?timage that editing the html would be two hard the side.html isn?tdynamic, I don?t think. Thank you,JustinMaloneySystems AdministratorHoneycomb Internet Services612.617.0007 HiJustin,I have defined hostgroups as below - # \'CHDDLF-DHCP SERVERS\' host group definitiondefine hostgroup{        hostgroup_name CHDDLFDHCP-SERVERS       alias           CHDDLFDHCPSERVERS    &nb sp;   contact_groups  CHDDLFNT-ADMINS        members        CHDDLFDHCP01,CHDDLFVDHC01        }#\'CHDDLF-DOMAIN CONTROLLERS\' host group definitiondefine hostgroup{        hostgroup_name CHDDLFDOMAIN-CONTROLLERS       alias           CHDDLFDOMAINCONTROLLERS        contact_groups  CHDDLFNT-ADMINS,CHDSEZNT-ADMINS       members         CHDDLFGDC01        }# \'UnixServers\' host group definitiondefine hostgroup{        hostgroup_name  Unix Servers       alias         &n bsp; Unix Servers        contact_groups CHDDLFUNIX-ADMINS       members         damodar,appsdba        }But the view pane just shows me \"All Hosts\"and there is no menu where I can see them in groups.Attached is the sreen shot of my nagios Web Interface (Current.JPG).I want to configure the NAGIOS web interface so that I can group differenthosts as the Sub Menu to \"Service Detail\" Menu.The Right side Menu should display something like -   o Service Detail        o Unix Systems        o Windows Servers        o WAN linksSome t hing like the attached image (nagios.JPG).How can we achieve that?Thanks and regards,Manoj---------------------------------------------------------------------------------------------------- --------------------------------You could put them in host groups,that?s what I do.  I have a host group for each customer and thenmore host groups that break down to web servers, mysql servers etc for eachcustomer.  Then you just go to the hostgroup over view page and click onone.  It will show you all the hosts and there services. in the normalstatus page format.  Thank you, Justin Maloney SystemsAdministrator HoneycombInternet Services 612.617.0007Manoj KumarTHE MAD MANNever Fall in Love Always Rise in Love!  -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 mels-kooijman.nl Sat Sep 1 09:15:30 2007 From: nagios at mels-kooijman.nl (Nagios) Date: Sat, 01 Sep 2007 09:15:30 +0200 Subject: nagios server inside vmware In-Reply-To: <1689390EF608584D85BA56D958A5D1E44CA056287A@CorpExMBS1.arcadis-us.com> References: <274262.37390.qm@web90508.mail.mud.yahoo.com> <1689390EF608584D85BA56D958A5D1E44CA056287A@CorpExMBS1.arcadis-us.com> Message-ID: <46D91192.4010600@mels-kooijman.nl> Cook, Garry wrote: > IIRC, the solution given in that thread was 'Don't use VMware'. > > I run three different Ubuntu servers (Nagios, MRTG, and NeDi) on VMware, and have no issues whatsoever with time (or anything else). I don't recall how I originally setup NTP, and I DID have issues in the beginning, but they have long since been resolved. If you run into time issues and have specific questions, email the list and I'll do my best to get back to you with info about how my system is setup. > > The only current problem that I have with VMware is that sometimes my virtual host's filesystem will get kicked into read-only mode. This issue only relates to servers attached to an iSCSI SAN, and has already been fixed for RHEL and SUSE. I have a ticket open with them now to address the issue with Ubuntu. > > Thanks, > Garry > > I have Suse 10.2 and Nagios, MRTG, Netdirector in production running on vmware GSX server, soon we migrate it to the vmware ESX cluster. The only problems was the solved filesystem issue after a diskerror. It happens once on the ESX, the san was on that moment not multipath. The time on ESX gives no problem, on vmware-server, the free one, there is time a problem. NTP is configurerd to synchro the local time from a server in DMZ, this one connect to the public time servers. Conclusion: why not use VMware Greetings, Mels ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Sep 1 09:22:01 2007 From: ae at op5.se (Andreas Ericsson) Date: Sat, 01 Sep 2007 09:22:01 +0200 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: References: Message-ID: <46D91319.6070502@op5.se> Sean Schertell wrote: >> nutmeg is returning output from nslookup that check_dns can't >> parse. It >> would appear that nutmeg isn't configured to perform recursive lookups >> (lookups for domains it doesn't host) and you're expecting it to. >> >> >> As an aside, you shouldn't be allowing me to perform recursive lookups >> with your servers anyway. Rosemary could easily be hijacked to perform >> DNS based DOS attacks. >> >> - >> Marc >> > > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? > Ask it for a name it knows about. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From swschulz at gmail.com Sat Sep 1 13:45:21 2007 From: swschulz at gmail.com (S. William Schulz) Date: Sat, 1 Sep 2007 07:45:21 -0400 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: References: Message-ID: <92010c400709010445y67479b7vdb678374c0cd3240@mail.gmail.com> > > As an aside, you shouldn't be allowing me to perform recursive lookups > > with your servers anyway. Rosemary could easily be hijacked to perform > > DNS based DOS attacks. > > > > - > > Marc > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? I think the keyword in Marc's statement was "me" - him, Marc, being outside of your network should not be allowed to perform recursive lookups via one of your nameservers. If you are going to enable recursive lookups for your own users/internal machines, limit access to that feature via acl's to only those users/IPs/hosts. Otherwise, with recursive off, ask them about a name they are authoritative for. SWS ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Sep 1 15:37:40 2007 From: marc at ena.com (Marc Powell) Date: Sat, 1 Sep 2007 08:37:40 -0500 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: <6ECE8270-E240-4B28-B5CD-1BB9D3A9A9E2@datafly.net> References: <6ECE8270-E240-4B28-B5CD-1BB9D3A9A9E2@datafly.net> Message-ID: Please always respond on list. > -----Original Message----- > From: Sean Schertell [mailto:sean at datafly.net] > Sent: Friday, August 31, 2007 8:47 PM > To: Marc Powell > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > > Thanks Mark, > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? Sure it's possible, and if the server is supposed to be a recursive server (most are) then check_dns will work as you're testing it. Nutmeg does not appear to be a recursive server though so you can't ask it about microsoft.com since it doesn't know anything about it. Change that to nutmeg.aspen.com or some other host in a domain it's authoritative for. > Is there any way to use dns_check safely? My concerns about safety weren't related to check_dns at all. My concern is that anyone anywhere in the world can use rosemary to attack other DNS servers. As a bonus, you would be the apparent source of that attack. IMHO, you should be using ACL's to allow recursive lookups only for those networks that should be using that nameserver. Bind provides an easy way of doing this if that's what you're using -- http://www.bind9.net/manual/bind/9.3.1/Bv9ARM.ch07.html -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Sep 1 15:43:39 2007 From: marc at ena.com (Marc Powell) Date: Sat, 1 Sep 2007 08:43:39 -0500 Subject: check_dns works fine for half my servers, fails for other half In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Saturday, September 01, 2007 8:38 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_dns works fine for half my servers,fails > for other half > > about microsoft.com since it doesn't know anything about it. Change that > to nutmeg.aspen.com or some other host in a domain it's authoritative > for. Sorry, to avoid confusion I really meant to say 'nutmeg.datafly.net'. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Sat Sep 1 19:38:35 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Sat, 1 Sep 2007 18:38:35 +0100 (BST) Subject: check_snmp and disk monitring Message-ID: <966547.97595.qm@web26203.mail.ukl.yahoo.com> Hi, I am using RHEL3 and installed mysql5/apache2.0.59/php5 and nagios 2.9 and plugin1.4.9. My objective is to start monitoring disk usage of remote servers. Any idea how to do that? thanks. ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Mon Sep 3 00:57:14 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Mon, 3 Sep 2007 10:57:14 +1200 Subject: nagios server inside vmware In-Reply-To: <46D91192.4010600@mels-kooijman.nl> References: <274262.37390.qm@web90508.mail.mud.yahoo.com> <1689390EF608584D85BA56D958A5D1E44CA056287A@CorpExMBS1.arcadis-us.com> <46D91192.4010600@mels-kooijman.nl> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A2011AB7B1@UXCHANGE3.UoA.auckland.ac.nz> Mels Said: > Cook, Garry wrote: > > IIRC, the solution given in that thread was 'Don't use VMware'. > > > > I run three different Ubuntu servers (Nagios, MRTG, and NeDi) on VMware, > >and have no issues whatsoever with time (or anything else). ... > I have Suse 10.2 and Nagios, MRTG, Netdirector in production running on > vmware GSX server, soon we migrate it to the vmware ESX cluster. ... > Conclusion: why not use VMware We tried Nagios under VMWare, and although it works, there are a number of significant pitfalls that made us decide against it. Most of them come down to the inaccuracy of calculating rates when in a VM on a moderately loaded ESX server, due to the clock tick being irregular. Although NTP will keep your clock in synch at an hours-minutes level, when you get down to a seconds level it will have some seconds apparently longer than others. This is not a problem in many cases, but it IS a problem if you're calculating rates by taking a sample, waiting 10 seconds (or 30 seconds, or whatever), taking another sample, and dividing the difference by the time interval. The shorter your sample interval, the more that VMWare can affect things. This is a known issue to VMWare and they advise against running this sort of monitoring (I'm afraid I cant find the reference, it was buried deep in documentation I read for the v2 of VMWare). The other issue is that, since Nagios is your central alerting system, it is good practice to keep it as independent of other hardware and infrastructure as possible. This means avoiding using virtualisation (we don't even use the SAN, let alone VMWare). Fewer dependencies means less change that something can knock out your monitoring system. So, the conclusion we came to is that you can use vmware, but if you care about accuracy in per-second rate calculations (which you may well care about if you're thresholding on them), then don't. Steve ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MJoyce at ccia.unsw.edu.au Mon Sep 3 02:36:14 2007 From: MJoyce at ccia.unsw.edu.au (Matthew Joyce) Date: Mon, 3 Sep 2007 10:36:14 +1000 Subject: check_snmp and disk monitring Message-ID: <2A67EA781EC7F949A2AB0A0D07A86C6ABE7A7A@mail01.ccia.local> If you have snmpd installed and configured correctly you will be able to get that information using snmp_check. I think. We get that information via Cacti, via snmp. If you compile and install Nagios Remote Program Execution (NRPE) on the target server, you'll be able to use the Nagios plugins (locally on the same server) to access that info and much more. Pros and cons (not limited to) SNMP pros - might be running already, no compiling, reasonably standard. SNMP cons - requires that manufacturers provide snmp data, security (v1) NRPE pros - can run many more data gathering plugins NRPE cons - have to compile NRPE and the Nagios plugins (first time is the hardest) Matthew Joyce 02 9382 0051 | IT Manager | Children's Cancer Institute Australia for Medical Research > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Melanie Pfefer > Sent: Sunday, 2 September 2007 3:39 AM > To: nagios-users at lists.sourceforge.net; > nagiosplug-help at lists.sourceforge.net > Subject: [Nagios-users] check_snmp and disk monitring > > Hi, > I am using RHEL3 and installed > mysql5/apache2.0.59/php5 and nagios 2.9 and plugin1.4.9. > > > My objective is to start monitoring disk usage of remote > servers. Any idea how to do that? > > thanks. > > > > > ___________________________________________________________ > Want ideas for reducing your carbon footprint? Visit Yahoo! > For Good http://uk.promotions.yahoo.com/forgood/environment.html > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and > a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Mon Sep 3 04:15:51 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Sun, 2 Sep 2007 21:15:51 -0500 Subject: from address Message-ID: <64975B31C6249247A722D0610F4110F7322F55@hive.officespace.honeycomb.net> I think you would change that in your notify-by-email commands. It would be something you add to the /usr/bin/mail for example. Don't know how your command works so I can't tell you exactly what it would look like. You could try -F new at address.com but I don't know if it works. Hope that gets you started on the right track. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of David Walgamotte Sent: Friday, August 31, 2007 3:03 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] from address I need to change the from address. Mail server will not accept an invalid user account from same domain. I need to change MAIL FROM: < address> on acks from nagios. please help. tried adding stuff to mailrc no luck. -- Thank You, Regards, David -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From enst at mail.ru Mon Sep 3 06:14:29 2007 From: enst at mail.ru (Evgeny Stepanov) Date: Mon, 03 Sep 2007 08:14:29 +0400 Subject: from address In-Reply-To: <64975B31C6249247A722D0610F4110F7322F55@hive.officespace.honeycomb.net> References: <64975B31C6249247A722D0610F4110F7322F55@hive.officespace.honeycomb.net> Message-ID: <46DB8A25.70700@mail.ru> Had the same issue. Now I use little perl script, brought to this list by John Kramme. Works very well. Justin Maloney ?????: > > I think you would change that in your notify-by-email commands. It > would be something you add to the /usr/bin/mail for example. Don?t > know how your command works so I can?t tell you exactly what it would > look like. You could try -F new at address.com > but I don?t know if it works. Hope that gets you started on the right > track. > > ------------------------------------------------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] *On Behalf Of > *David Walgamotte > *Sent:* Friday, August 31, 2007 3:03 PM > *To:* Nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] from address > > I need to change the from address. Mail server will not accept an > invalid user account from same domain. I need to change MAIL FROM: < > address> on > acks from nagios. please help. tried adding stuff to mailrc no luck. > > -- > Thank You, Regards, > David > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ? ?????????, ???????? ?.?. enst at mail.ru icq 2899514 +7-985-2267458 -------------- next part -------------- A non-text attachment was scrubbed... Name: send_mail.pl Type: application/octet-stream Size: 9247 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skorbets at rambler.ru Mon Sep 3 11:23:39 2007 From: skorbets at rambler.ru (Danila) Date: Mon, 3 Sep 2007 13:23:39 +0400 Subject: bug in a configuration files parsing logic? Message-ID: <184795920.20070903132339@rambler.ru> Hi there! I have 2 hosts: 1489 and 14894_2108 (14894_2108 is a member of 14894 group). They both has their own host ext infos. If they do have these names, nagios -v tells this: Reading configuration data... Error: Could not add duplicate hostextinfo entry for host '14894_2108'. Error: Could not allocate memory for hostextinfo list to add extended info for host '14894_2108'. Segmentation fault If I change the names to such: u1489 and 14894_2108, seg fault disapperses. It looks like Nagios has somewhere "like" operator, not "=". And because of this bug, my network schema in Nagios has to be modified. that's bad... Has anyone already found this bug? Is there any patches to solve it? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Navdeep.Sidhu at tatatel.co.in Mon Sep 3 11:55:58 2007 From: Navdeep.Sidhu at tatatel.co.in (Navdeep Sidhu) Date: Mon, 3 Sep 2007 15:25:58 +0530 Subject: how to issue service check through external command In-Reply-To: References: Message-ID: <745C9242AACB2D468091BC33BFD668D0042F3F53@PB-CHD-MBX01.PJB.TTSL.COM> Hi Guys I'm trying to issue certain service checks through external commands but getting an error "could not open command file nagios.cmd for update" I went through Nagios FAQ & Google but didn't find the way out. I have setup the permissions according to the recommendations & external command check option is enabled in nagios configuration file also. drwxrwsr-x 2 nagios nagiocmd 4096 Sep 3 14:15 rw prw-rw---- 1 nagios nagiocmd 0 Sep 3 14:15 nagios.cmd Pl help in this regard. Thanks in advance Regards Navdeep Singh Sidhu -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of nagios-users-request at lists.sourceforge.net Sent: Sunday, September 02, 2007 12:59 AM To: nagios-users at lists.sourceforge.net Subject: Nagios-users Digest, Vol 16, Issue 1 Send Nagios-users mailing list submissions to nagios-users at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nagios-users or, via email, send a message with subject or body 'help' to nagios-users-request at lists.sourceforge.net You can reach the person managing the list at nagios-users-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Nagios-users digest..." Today's Topics: 1. from address (David Walgamotte) 2. How to auto-start NRPE daemon on reboot (FreeBSD) ? (Sean Schertell) 3. check_dns works fine for half my servers, fails for other half (Sean Schertell) 4. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? (Jeremy C. Reed) 5. Re: check_dns works fine for half my servers, fails for other half (Marc Powell) 6. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? (Sean Schertell) 7. Re: check_dns works fine for half my servers, fails for other half (Sean Schertell) 8. Re :RE: Re :RE: Configuring Web Interface (manoj kumar) 9. Re: nagios server inside vmware (Nagios) 10. Re: check_dns works fine for half my servers, fails for other half (Andreas Ericsson) 11. Re: check_dns works fine for half my servers, fails for other half (S. William Schulz) 12. Re: check_dns works fine for half my servers, fails for other half (Marc Powell) 13. Re: check_dns works fine for half my servers, fails for other half (Marc Powell) 14. check_snmp and disk monitring (Melanie Pfefer) ---------------------------------------------------------------------- Message: 1 Date: Fri, 31 Aug 2007 15:03:00 -0500 From: "David Walgamotte" Subject: [Nagios-users] from address To: Nagios-users at lists.sourceforge.net Message-ID: <77ad9a6b0708311303h47198d9eib240ad51873bb27d at mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I need to change the from address. Mail server will not accept an invalid user account from same domain. I need to change MAIL FROM: < address> on acks from nagios. please help. tried adding stuff to mailrc no luck. -- Thank You, Regards, David -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Fri, 31 Aug 2007 15:55:47 -0700 From: Sean Schertell Subject: [Nagios-users] How to auto-start NRPE daemon on reboot (FreeBSD) ? To: Nagios-users at lists.sourceforge.net Message-ID: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05 at datafly.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Guys, I've got a spiffy new rc.d script that works great for starting/ stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / etc/rc.conf doesn't seem to do the trick. Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ etc/rc.d/nrpe start" command at boot time? In case anyone's interested, here's my script: #!/bin/sh # # Startup script for NRPE # # Source function library. . /usr/local/etc/rc.d/functions BIN=/usr/local/nagios/bin/nrpe CONFIG=/usr/local/nagios/etc/nrpe.cfg LOCK=/var/spool/lock/nrpe RETVAL=0; # See how we were called. case "$1" in start) echo -n "Starting NRPE daemon: " daemon $BIN -c $CONFIG -d RETVAL=$? if [ $RETVAL = 0 ] && touch $LOCK then echo -e "\t\t[ OK ]"; else echo -e "\t\t[ FAILED ]"; fi ;; stop) echo -n "Stopping NRPE daemon: " kill `cat /var/run/nrpe.pid` && rm -f /var/run/nrpe.pid RETVAL=$? if [ $RETVAL = 0 ] && rm -f $LOCK then echo -e "\t\t[ OK ]"; else echo -e "\t\t[ FAILED ]"; fi ;; status) status nrpe ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit $RETVAL :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------ Message: 3 Date: Fri, 31 Aug 2007 18:05:02 -0700 From: Sean Schertell Subject: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I'm not really a DNS guru, so it's probably an obvious thing -- would someone mind enlightening me as to why this happens? How come it works fine for the first server but fails for the second? Their definitely both running DNS. [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H microsoft.com -s rosemary.datafly.net DNS OK: 0.324 seconds response time. microsoft.com returns 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H microsoft.com -s nutmeg.datafly.net DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no address ??? Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------ Message: 4 Date: Fri, 31 Aug 2007 20:16:28 -0500 (CDT) From: "Jeremy C. Reed" Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot (FreeBSD) ? To: Sean Schertell Cc: Nagios-users at lists.sourceforge.net Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 31 Aug 2007, Sean Schertell wrote: > I've got a spiffy new rc.d script that works great for starting/ > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > etc/rc.conf doesn't seem to do the trick. > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > etc/rc.d/nrpe start" command at boot time? > > In case anyone's interested, here's my script: Your script is not an script using FreeBSD's new rc.d semantics. So don't use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) To use old style, name it to end with ".sh" and make sure it is executable. The defaults of FreeBSD should then work to find it and run it at boot. If you want to use FreeBSD's new rc.d semantics, have a look at the rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. Jeremy C. Reed p.s. Some of this is documented in the FreeBSD Handbook. Also some is documented in http://bsdwiki.reedmedia.net/wiki/Configure_a_service_to_start_at_boot_t ime.html http://bsdwiki.reedmedia.net/wiki/Use_an_rc__40__8__41___script_to_deter mine_if_a_service_is_running_and_start__44___restart_or_stop_it_as_requi red.html ------------------------------ Message: 5 Date: Fri, 31 Aug 2007 20:37:34 -0500 From: "Marc Powell" Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Message-ID: Content-Type: text/plain; charset="US-ASCII" > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > Sent: Friday, August 31, 2007 8:05 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_dns works fine for half my servers,fails for > other half > > I'm not really a DNS guru, so it's probably an obvious thing -- would > someone mind enlightening me as to why this happens? How come it > works fine for the first server but fails for the second? Their > definitely both running DNS. > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s rosemary.datafly.net > DNS OK: 0.324 seconds response time. microsoft.com returns > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s nutmeg.datafly.net > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > address nutmeg is returning output from nslookup that check_dns can't parse. It would appear that nutmeg isn't configured to perform recursive lookups (lookups for domains it doesn't host) and you're expecting it to. $ nslookup -sil microsoft.com rosemary.datafly.net Server: rosemary.datafly.net Address: 64.34.193.57#53 Non-authoritative answer: Name: microsoft.com Address: 207.46.232.182 Name: microsoft.com Address: 207.46.197.32 $ nslookup -sil microsoft.com nutmeg.datafly.net Server: nutmeg.datafly.net Address: 72.36.130.114#53 Non-authoritative answer: *** Can't find microsoft.com: No answer As an aside, you shouldn't be allowing me to perform recursive lookups with your servers anyway. Rosemary could easily be hijacked to perform DNS based DOS attacks. - Marc ------------------------------ Message: 6 Date: Fri, 31 Aug 2007 19:48:16 -0700 From: Sean Schertell Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot (FreeBSD) ? To: Nagios-users at lists.sourceforge.net Message-ID: <80A1FF38-09B2-46BC-8A43-F626EAF5A9BD at datafly.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Aug 31, 2007, at 6:16 PM, Jeremy C. Reed wrote: > On Fri, 31 Aug 2007, Sean Schertell wrote: > >> I've got a spiffy new rc.d script that works great for starting/ >> stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / >> etc/rc.conf doesn't seem to do the trick. >> >> Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ >> etc/rc.d/nrpe start" command at boot time? >> >> In case anyone's interested, here's my script: > > Your script is not an script using FreeBSD's new rc.d semantics. So > don't > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > To use old style, name it to end with ".sh" and make sure it is > executable. The defaults of FreeBSD should then work to find it and > run it > at boot. > > If you want to use FreeBSD's new rc.d semantics, have a look at the > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > Jeremy C. Reed > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > documented in > http://bsdwiki.reedmedia.net/wiki/ > Configure_a_service_to_start_at_boot_time.html > http://bsdwiki.reedmedia.net/wiki/ > Use_an_rc__40__8__41___script_to_determine_if_a_service_is_running_and > _start__44___restart_or_stop_it_as_required.html I was trying to be consistent and set everything up as closely as possible to the way I had done it on my RetardedHat boxes. Installing nrpe/nagios-plugins from FreeBSD ports is about a thousand times easier and creates a snazzy new-style rc.d script for me right out of the box. And now I can just put nrpe2_enable in my rc.conf and everything works swimmingly. God I love FreeBSD. Thanks for mentioning ports -- I don't know why I didn't think of trying that before ;-) Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------ Message: 7 Date: Fri, 31 Aug 2007 19:51:31 -0700 From: Sean Schertell Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Nagios-users at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- >> users- >> bounces at lists.sourceforge.net] On Behalf Of Sean Schertell >> Sent: Friday, August 31, 2007 8:05 PM >> To: Nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] check_dns works fine for half my >> servers,fails > for >> other half >> >> I'm not really a DNS guru, so it's probably an obvious thing -- would >> someone mind enlightening me as to why this happens? How come it >> works fine for the first server but fails for the second? Their >> definitely both running DNS. >> >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H >> microsoft.com -s rosemary.datafly.net >> DNS OK: 0.324 seconds response time. microsoft.com returns >> 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 >> >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H >> microsoft.com -s nutmeg.datafly.net >> DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no >> address > > nutmeg is returning output from nslookup that check_dns can't > parse. It > would appear that nutmeg isn't configured to perform recursive lookups > (lookups for domains it doesn't host) and you're expecting it to. > > $ nslookup -sil microsoft.com rosemary.datafly.net > Server: rosemary.datafly.net > Address: 64.34.193.57#53 > > Non-authoritative answer: > Name: microsoft.com > Address: 207.46.232.182 > Name: microsoft.com > Address: 207.46.197.32 > > $ nslookup -sil microsoft.com nutmeg.datafly.net > Server: nutmeg.datafly.net > Address: 72.36.130.114#53 > > Non-authoritative answer: > *** Can't find microsoft.com: No answer > > As an aside, you shouldn't be allowing me to perform recursive lookups > with your servers anyway. Rosemary could easily be hijacked to perform > DNS based DOS attacks. > > - > Marc > So does that mean then that it isn't possible to use the check_dns plugin without enabling recursive lookups and leaving my server open to DNS DOS attacks? Is there any way to use dns_check safely? Thanks :-) Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net ------------------------------ Message: 8 Date: 1 Sep 2007 05:30:38 -0000 From: "manoj kumar" Subject: [Nagios-users] Re :RE: Re :RE: Configuring Web Interface To: Cc: Nagios-users Message-ID: <1188563883.S.15036.27942.f5mail21.rediffmail.com.1188624638.15342 at webma il.rediffmail.com> Content-Type: text/plain; charset="iso-8859-1" Thanks A Lot Justine!It worked.... :)Warm regards,ManojOn Fri, 31 Aug 2007 07:39:42 -0500 \"Justin Maloney\" wroteOK I get what your looking for now.  You would need to getthe urls for the hostgroup overview page (http://nagios.yourserver/nagios/cgi-bin/status.cgi?hostgroup= CHDDLFDHCP-SERVERS&style=detail) and put that in the side.html page.  Try just making theliks and see if they work.  The format above works to veiw my groups and I can?timage that editing the html would be two hard the side.html isn?tdynamic, I don?t think. Thank you,JustinMaloneySystems AdministratorHoneycomb Internet Services612.617.0007 HiJustin,I have defined hostgroups as below - # \'CHDDLF-DHCP SERVERS\' host group definitiondefine hostgroup{        hostgroup_name CHDDLFDHCP-SERVERS     &nbs p; alias           ; CHDDLFDHCPSERVERS    &nb sp;   contact_groups  CHDDLFNT-ADMINS        members        CHDDLFDHCP01,CHDD LFVDHC01        }#\'CHDDLF-DOMAIN CONTROLLERS\' host group definitiondefine hostgroup{        hostgroup_name CHDDLFDOMAIN-CONTROLLERS    &nbs p;  alias          ;  CHDDLFDOMAINCONTROLLERS        contact_groups  CHDDLFNT-ADMINS,CHDSEZNT-ADMINS        ;members         CHDDLFGDC01        }# \'UnixServers\' host group definitiondefine hostgroup{        hostgroup_name  Unix Servers       alias          &n bsp; Unix Servers        contact_groups CHDDLFUNIX-ADMINS       ; members         damodar,appsdba        }But the view pane just shows me \"All Hosts\"and there is no menu where I can see them in groups.Attached is the sreen shot of my nagios Web Interface (Current.JPG).I want to configure the NAGIOS web interface so that I can group differenthosts as the Sub Menu to \"Service Detail\" Menu.The Right side Menu should display something like -   o Service Detail        o Unix Systems        o Windows Servers        o WAN linksSome thing like the attached image (nagios.JPG).How can we achieve that?Thanks and regards,Manoj----------------------------------------------------------- ----------------------------------------- --------------------------------You could put them in host groups,that?s what I do.  I have a host group for each customer and thenmore host groups that break down to web servers, mysql servers etc for eachcustomer.  Then you just go to the hostgroup over view page and click onone.  It will show you all the hosts and there services. in the normalstatus page format.  Thank you, Justin Maloney SystemsAdministrator HoneycombInternet Services 612.617.0007Manoj KumarTHE MAD MANNever Fall in Love Always Rise in Love!  -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 9 Date: Sat, 01 Sep 2007 09:15:30 +0200 From: Nagios Subject: Re: [Nagios-users] nagios server inside vmware To: "Cook, Garry" Cc: "nagios-users at lists.sourceforge.net" Message-ID: <46D91192.4010600 at mels-kooijman.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cook, Garry wrote: > IIRC, the solution given in that thread was 'Don't use VMware'. > > I run three different Ubuntu servers (Nagios, MRTG, and NeDi) on VMware, and have no issues whatsoever with time (or anything else). I don't recall how I originally setup NTP, and I DID have issues in the beginning, but they have long since been resolved. If you run into time issues and have specific questions, email the list and I'll do my best to get back to you with info about how my system is setup. > > The only current problem that I have with VMware is that sometimes my virtual host's filesystem will get kicked into read-only mode. This issue only relates to servers attached to an iSCSI SAN, and has already been fixed for RHEL and SUSE. I have a ticket open with them now to address the issue with Ubuntu. > > Thanks, > Garry > > I have Suse 10.2 and Nagios, MRTG, Netdirector in production running on vmware GSX server, soon we migrate it to the vmware ESX cluster. The only problems was the solved filesystem issue after a diskerror. It happens once on the ESX, the san was on that moment not multipath. The time on ESX gives no problem, on vmware-server, the free one, there is time a problem. NTP is configurerd to synchro the local time from a server in DMZ, this one connect to the public time servers. Conclusion: why not use VMware Greetings, Mels ------------------------------ Message: 10 Date: Sat, 01 Sep 2007 09:22:01 +0200 From: Andreas Ericsson Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Sean Schertell Cc: Nagios-users at lists.sourceforge.net Message-ID: <46D91319.6070502 at op5.se> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Sean Schertell wrote: >> nutmeg is returning output from nslookup that check_dns can't >> parse. It >> would appear that nutmeg isn't configured to perform recursive lookups >> (lookups for domains it doesn't host) and you're expecting it to. >> >> >> As an aside, you shouldn't be allowing me to perform recursive lookups >> with your servers anyway. Rosemary could easily be hijacked to perform >> DNS based DOS attacks. >> >> - >> Marc >> > > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? > Ask it for a name it knows about. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------ Message: 11 Date: Sat, 1 Sep 2007 07:45:21 -0400 From: "S. William Schulz" Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: "Sean Schertell" Cc: Nagios-users at lists.sourceforge.net Message-ID: <92010c400709010445y67479b7vdb678374c0cd3240 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 > > As an aside, you shouldn't be allowing me to perform recursive lookups > > with your servers anyway. Rosemary could easily be hijacked to perform > > DNS based DOS attacks. > > > > - > > Marc > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? I think the keyword in Marc's statement was "me" - him, Marc, being outside of your network should not be allowed to perform recursive lookups via one of your nameservers. If you are going to enable recursive lookups for your own users/internal machines, limit access to that feature via acl's to only those users/IPs/hosts. Otherwise, with recursive off, ask them about a name they are authoritative for. SWS ------------------------------ Message: 12 Date: Sat, 1 Sep 2007 08:37:40 -0500 From: "Marc Powell" Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Message-ID: Content-Type: text/plain; charset="US-ASCII" Please always respond on list. > -----Original Message----- > From: Sean Schertell [mailto:sean at datafly.net] > Sent: Friday, August 31, 2007 8:47 PM > To: Marc Powell > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > > Thanks Mark, > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? Sure it's possible, and if the server is supposed to be a recursive server (most are) then check_dns will work as you're testing it. Nutmeg does not appear to be a recursive server though so you can't ask it about microsoft.com since it doesn't know anything about it. Change that to nutmeg.aspen.com or some other host in a domain it's authoritative for. > Is there any way to use dns_check safely? My concerns about safety weren't related to check_dns at all. My concern is that anyone anywhere in the world can use rosemary to attack other DNS servers. As a bonus, you would be the apparent source of that attack. IMHO, you should be using ACL's to allow recursive lookups only for those networks that should be using that nameserver. Bind provides an easy way of doing this if that's what you're using -- http://www.bind9.net/manual/bind/9.3.1/Bv9ARM.ch07.html -- Marc ------------------------------ Message: 13 Date: Sat, 1 Sep 2007 08:43:39 -0500 From: "Marc Powell" Subject: Re: [Nagios-users] check_dns works fine for half my servers, fails for other half To: Message-ID: Content-Type: text/plain; charset="US-ASCII" > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Saturday, September 01, 2007 8:38 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_dns works fine for half my servers,fails > for other half > > about microsoft.com since it doesn't know anything about it. Change that > to nutmeg.aspen.com or some other host in a domain it's authoritative > for. Sorry, to avoid confusion I really meant to say 'nutmeg.datafly.net'. -- Marc ------------------------------ Message: 14 Date: Sat, 1 Sep 2007 18:38:35 +0100 (BST) From: Melanie Pfefer Subject: [Nagios-users] check_snmp and disk monitring To: nagios-users at lists.sourceforge.net, nagiosplug-help at lists.sourceforge.net Message-ID: <966547.97595.qm at web26203.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi, I am using RHEL3 and installed mysql5/apache2.0.59/php5 and nagios 2.9 and plugin1.4.9. My objective is to start monitoring disk usage of remote servers. Any idea how to do that? thanks. ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users End of Nagios-users Digest, Vol 16, Issue 1 ******************************************* ====================================== i-choose online store at www.tataindicom.com Your Comfort.Your Convenience.YourChoice. ====================================== DISCLAIMER: The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor tha t this communication is free of viruses, interceptions or interference. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Sep 3 14:14:54 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 03 Sep 2007 14:14:54 +0200 Subject: bug in a configuration files parsing logic? In-Reply-To: <184795920.20070903132339@rambler.ru> References: <184795920.20070903132339@rambler.ru> Message-ID: <46DBFABE.6070205@op5.se> Danila wrote: > Hi there! > > I have 2 hosts: 1489 and 14894_2108 (14894_2108 is a member of 14894 > group). They both has their own host ext infos. If > they do have these names, nagios -v tells this: > > > Reading configuration data... > > Error: Could not add duplicate hostextinfo entry for host '14894_2108'. > Error: Could not allocate memory for hostextinfo list to add extended info for host '14894_2108'. > Segmentation fault > > > If I change the names to such: u1489 and 14894_2108, seg fault > disapperses. It looks like Nagios has somewhere "like" operator, > not "=". And because of this bug, my network schema in Nagios has to be > modified. that's bad... > There are no 'like' operators in C. It's possible that your host names cause a hash-collision. If the code doing the actual comparison later on does strncmp(hst->name, hext->host_name, strlen(hext->host_name)); you would get this error. > Has anyone already found this bug? Is there any patches to solve it? > No, otherwise it would have been in the CVS code already, and most likely in a tarball release too. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmueller at netways.de Mon Sep 3 15:43:18 2007 From: gmueller at netways.de (Gerd Mueller) Date: Mon, 03 Sep 2007 15:43:18 +0200 Subject: how to issue service check through external command In-Reply-To: <745C9242AACB2D468091BC33BFD668D0042F3F53@PB-CHD-MBX01.PJB.TTSL.COM> References: <745C9242AACB2D468091BC33BFD668D0042F3F53@PB-CHD-MBX01.PJB.TTSL.COM> Message-ID: <1188826998.7380.28.camel@netl-gm-01.int.netways.de> Hi, Did you restart nagios and the webserver? Cheers, Gerd Am Montag, den 03.09.2007, 15:25 +0530 schrieb Navdeep Sidhu: > Hi Guys > > I'm trying to issue certain service checks through external commands but > getting an error "could not open command file nagios.cmd for update" > > I went through Nagios FAQ & Google but didn't find the way out. > > I have setup the permissions according to the recommendations & external > command check option is enabled in nagios configuration file also. > > drwxrwsr-x 2 nagios nagiocmd 4096 Sep 3 14:15 rw > prw-rw---- 1 nagios nagiocmd 0 Sep 3 14:15 nagios.cmd > > Pl help in this regard. > > Thanks in advance > > Regards > Navdeep Singh Sidhu > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > nagios-users-request at lists.sourceforge.net > Sent: Sunday, September 02, 2007 12:59 AM > To: nagios-users at lists.sourceforge.net > Subject: Nagios-users Digest, Vol 16, Issue 1 > > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. from address (David Walgamotte) > 2. How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Sean Schertell) > 3. check_dns works fine for half my servers, fails for other > half (Sean Schertell) > 4. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Jeremy C. Reed) > 5. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 6. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Sean Schertell) > 7. Re: check_dns works fine for half my servers, fails for other > half (Sean Schertell) > 8. Re :RE: Re :RE: Configuring Web Interface (manoj kumar) > 9. Re: nagios server inside vmware (Nagios) > 10. Re: check_dns works fine for half my servers, fails for other > half (Andreas Ericsson) > 11. Re: check_dns works fine for half my servers, fails for other > half (S. William Schulz) > 12. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 13. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 14. check_snmp and disk monitring (Melanie Pfefer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 31 Aug 2007 15:03:00 -0500 > From: "David Walgamotte" > Subject: [Nagios-users] from address > To: Nagios-users at lists.sourceforge.net > Message-ID: > <77ad9a6b0708311303h47198d9eib240ad51873bb27d at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I need to change the from address. Mail server will not accept an > invalid > user account from same domain. I need to change MAIL FROM: < address> on > acks from nagios. please help. tried adding stuff to mailrc no luck. > > -- > Thank You, Regards, > David > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Fri, 31 Aug 2007 15:55:47 -0700 > From: Sean Schertell > Subject: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Nagios-users at lists.sourceforge.net > Message-ID: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05 at datafly.net> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hi Guys, > > I've got a spiffy new rc.d script that works great for starting/ > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > etc/rc.conf doesn't seem to do the trick. > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > etc/rc.d/nrpe start" command at boot time? > > In case anyone's interested, here's my script: > > > > > #!/bin/sh > # > # Startup script for NRPE > # > > # Source function library. > . /usr/local/etc/rc.d/functions > > BIN=/usr/local/nagios/bin/nrpe > CONFIG=/usr/local/nagios/etc/nrpe.cfg > LOCK=/var/spool/lock/nrpe > > RETVAL=0; > > # See how we were called. > case "$1" in > start) > echo -n "Starting NRPE daemon: " > daemon $BIN -c $CONFIG -d > RETVAL=$? > if [ $RETVAL = 0 ] && touch $LOCK > then > echo -e "\t\t[ OK ]"; > else > echo -e "\t\t[ FAILED ]"; > fi > ;; > stop) > echo -n "Stopping NRPE daemon: " > kill `cat /var/run/nrpe.pid` && rm -f /var/run/nrpe.pid > RETVAL=$? > if [ $RETVAL = 0 ] && rm -f $LOCK > then > echo -e "\t\t[ OK ]"; > else > echo -e "\t\t[ FAILED ]"; > fi > > ;; > status) > status nrpe > ;; > restart) > $0 stop > sleep 1 > $0 start > ;; > *) > echo "Usage: $0 {start|stop|restart|status}" > exit 1 > esac > > exit $RETVAL > > > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 3 > Date: Fri, 31 Aug 2007 18:05:02 -0700 > From: Sean Schertell > Subject: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > I'm not really a DNS guru, so it's probably an obvious thing -- would > someone mind enlightening me as to why this happens? How come it > works fine for the first server but fails for the second? Their > definitely both running DNS. > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s rosemary.datafly.net > DNS OK: 0.324 seconds response time. microsoft.com returns > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s nutmeg.datafly.net > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > address > > ??? > > Sean > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 4 > Date: Fri, 31 Aug 2007 20:16:28 -0500 (CDT) > From: "Jeremy C. Reed" > Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Sean Schertell > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Fri, 31 Aug 2007, Sean Schertell wrote: > > > I've got a spiffy new rc.d script that works great for starting/ > > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > > etc/rc.conf doesn't seem to do the trick. > > > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > > etc/rc.d/nrpe start" command at boot time? > > > > In case anyone's interested, here's my script: > > Your script is not an script using FreeBSD's new rc.d semantics. So > don't > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > To use old style, name it to end with ".sh" and make sure it is > executable. The defaults of FreeBSD should then work to find it and run > it > at boot. > > If you want to use FreeBSD's new rc.d semantics, have a look at the > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > Jeremy C. Reed > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > documented in > http://bsdwiki.reedmedia.net/wiki/Configure_a_service_to_start_at_boot_t > ime.html > http://bsdwiki.reedmedia.net/wiki/Use_an_rc__40__8__41___script_to_deter > mine_if_a_service_is_running_and_start__44___restart_or_stop_it_as_requi > red.html > > > > ------------------------------ > > Message: 5 > Date: Fri, 31 Aug 2007 20:37:34 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > > Sent: Friday, August 31, 2007 8:05 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_dns works fine for half my servers,fails > for > > other half > > > > I'm not really a DNS guru, so it's probably an obvious thing -- would > > someone mind enlightening me as to why this happens? How come it > > works fine for the first server but fails for the second? Their > > definitely both running DNS. > > > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > > microsoft.com -s rosemary.datafly.net > > DNS OK: 0.324 seconds response time. microsoft.com returns > > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > > microsoft.com -s nutmeg.datafly.net > > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > > address > > nutmeg is returning output from nslookup that check_dns can't parse. It > would appear that nutmeg isn't configured to perform recursive lookups > (lookups for domains it doesn't host) and you're expecting it to. > > $ nslookup -sil microsoft.com rosemary.datafly.net > Server: rosemary.datafly.net > Address: 64.34.193.57#53 > > Non-authoritative answer: > Name: microsoft.com > Address: 207.46.232.182 > Name: microsoft.com > Address: 207.46.197.32 > > $ nslookup -sil microsoft.com nutmeg.datafly.net > Server: nutmeg.datafly.net > Address: 72.36.130.114#53 > > Non-authoritative answer: > *** Can't find microsoft.com: No answer > > As an aside, you shouldn't be allowing me to perform recursive lookups > with your servers anyway. Rosemary could easily be hijacked to perform > DNS based DOS attacks. > > - > Marc > > > > ------------------------------ > > Message: 6 > Date: Fri, 31 Aug 2007 19:48:16 -0700 > From: Sean Schertell > Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Nagios-users at lists.sourceforge.net > Message-ID: <80A1FF38-09B2-46BC-8A43-F626EAF5A9BD at datafly.net> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > On Aug 31, 2007, at 6:16 PM, Jeremy C. Reed wrote: > > > On Fri, 31 Aug 2007, Sean Schertell wrote: > > > >> I've got a spiffy new rc.d script that works great for starting/ > >> stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > >> etc/rc.conf doesn't seem to do the trick. > >> > >> Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > >> etc/rc.d/nrpe start" command at boot time? > >> > >> In case anyone's interested, here's my script: > > > > Your script is not an script using FreeBSD's new rc.d semantics. So > > don't > > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > > > To use old style, name it to end with ".sh" and make sure it is > > executable. The defaults of FreeBSD should then work to find it and > > run it > > at boot. > > > > If you want to use FreeBSD's new rc.d semantics, have a look at the > > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > > > Jeremy C. Reed > > > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > > documented in > > http://bsdwiki.reedmedia.net/wiki/ > > Configure_a_service_to_start_at_boot_time.html > > http://bsdwiki.reedmedia.net/wiki/ > > Use_an_rc__40__8__41___script_to_determine_if_a_service_is_running_and > > > _start__44___restart_or_stop_it_as_required.html > > > I was trying to be consistent and set everything up as closely as > possible to the way I had done it on my RetardedHat boxes. > > Installing nrpe/nagios-plugins from FreeBSD ports is about a thousand > times easier and creates a snazzy new-style rc.d script for me right > out of the box. And now I can just put nrpe2_enable in my rc.conf and > everything works swimmingly. God I love FreeBSD. > > Thanks for mentioning ports -- I don't know why I didn't think of > trying that before ;-) > > Sean > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 7 > Date: Fri, 31 Aug 2007 19:51:31 -0700 > From: Sean Schertell > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > >> users- > >> bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > >> Sent: Friday, August 31, 2007 8:05 PM > >> To: Nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] check_dns works fine for half my > >> servers,fails > > for > >> other half > >> > >> I'm not really a DNS guru, so it's probably an obvious thing -- would > >> someone mind enlightening me as to why this happens? How come it > >> works fine for the first server but fails for the second? Their > >> definitely both running DNS. > >> > >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > >> microsoft.com -s rosemary.datafly.net > >> DNS OK: 0.324 seconds response time. microsoft.com returns > >> 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > >> > >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > >> microsoft.com -s nutmeg.datafly.net > >> DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > >> address > > > > nutmeg is returning output from nslookup that check_dns can't > > parse. It > > would appear that nutmeg isn't configured to perform recursive lookups > > (lookups for domains it doesn't host) and you're expecting it to. > > > > $ nslookup -sil microsoft.com rosemary.datafly.net > > Server: rosemary.datafly.net > > Address: 64.34.193.57#53 > > > > Non-authoritative answer: > > Name: microsoft.com > > Address: 207.46.232.182 > > Name: microsoft.com > > Address: 207.46.197.32 > > > > $ nslookup -sil microsoft.com nutmeg.datafly.net > > Server: nutmeg.datafly.net > > Address: 72.36.130.114#53 > > > > Non-authoritative answer: > > *** Can't find microsoft.com: No answer > > > > As an aside, you shouldn't be allowing me to perform recursive lookups > > with your servers anyway. Rosemary could easily be hijacked to perform > > DNS based DOS attacks. > > > > - > > Marc > > > > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? > > Thanks :-) > > Sean > > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 8 > Date: 1 Sep 2007 05:30:38 -0000 > From: "manoj kumar" > Subject: [Nagios-users] Re :RE: Re :RE: Configuring Web Interface > To: > Cc: Nagios-users > Message-ID: > > <1188563883.S.15036.27942.f5mail21.rediffmail.com.1188624638.15342 at webma > il.rediffmail.com> > > Content-Type: text/plain; charset="iso-8859-1" > > Thanks A Lot Justine!It worked.... :)Warm regards,ManojOn Fri, 31 Aug > 2007 07:39:42 -0500 \"Justin Maloney\" wroteOK I get what your looking > for now.  You would need to getthe urls for the hostgroup overview > page (http://nagios.yourserver/nagios/cgi-bin/status.cgi?hostgroup= > CHDDLFDHCP-SERVERS&style=detail) and put that in the side.html > page.  Try just making theliks and see if they work.  The > format above works to veiw my groups and I can?timage that editing the > html would be two hard the side.html isn?tdynamic, I don?t > think. Thank you,JustinMaloneySystems AdministratorHoneycomb > Internet Services612.617.0007 HiJustin,I have defined hostgroups as > below - # \'CHDDLF-DHCP SERVERS\' host group definitiondefine > hostgroup{        > hostgroup_name CHDDLFDHCP-SERVERS     &nbs > p; alias           > ; CHDDLFDHCPSERVERS    &nb > sp;   contact_groups  > CHDDLFNT-ADMINS        > members        CHDDLFDHCP01,CHDD > LFVDHC01        }#\'CHDDLF-DOMAIN > CONTROLLERS\' host group definitiondefine > hostgroup{        > hostgroup_name CHDDLFDOMAIN-CONTROLLERS    &nbs > p;  alias          > ;  > CHDDLFDOMAINCONTROLLERS        > contact_groups  > CHDDLFNT-ADMINS,CHDSEZNT-ADMINS        > ;members         > CHDDLFGDC01        }# \'UnixServers\' > host group definitiondefine > hostgroup{        > hostgroup_name  Unix > Servers       alias    >       &n > bsp; Unix Servers        > contact_groups CHDDLFUNIX-ADMINS       > ; members         > damodar,appsdba        }But the view > pane just shows me \"All Hosts\"and there is no menu where I can see > them in groups.Attached is the sreen shot of my nagios Web Interface > (Current.JPG).I want to configure the NAGIOS web interface so that I can > group differenthosts as the Sub Menu to \"Service Detail\" Menu.The > Right side Menu should display something like -   o Service > Detail        o Unix > Systems        o Windows > Servers        o WAN linksSome thing > like the attached image (nagios.JPG).How can we achieve that?Thanks and > regards,Manoj----------------------------------------------------------- > ----------------------------------------- > --------------------------------You could put them in host > groups,that?s what I do.  I have a host group for each customer and > thenmore host groups that break down to web servers, mysql servers etc > for eachcustomer.  Then you just go to the hostgroup over view page > and click onone.  It will show you all the hosts and there > services. in the normalstatus page format.  Thank you, Justin > Maloney SystemsAdministrator HoneycombInternet Services > 612.617.0007Manoj KumarTHE MAD MANNever Fall in Love Always Rise in > Love!  > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 9 > Date: Sat, 01 Sep 2007 09:15:30 +0200 > From: Nagios > Subject: Re: [Nagios-users] nagios server inside vmware > To: "Cook, Garry" > Cc: "nagios-users at lists.sourceforge.net" > > Message-ID: <46D91192.4010600 at mels-kooijman.nl> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Cook, Garry wrote: > > IIRC, the solution given in that thread was 'Don't use VMware'. > > > > I run three different Ubuntu servers (Nagios, MRTG, and NeDi) on > VMware, and have no issues whatsoever with time (or anything else). I > don't recall how I originally setup NTP, and I DID have issues in the > beginning, but they have long since been resolved. If you run into time > issues and have specific questions, email the list and I'll do my best > to get back to you with info about how my system is setup. > > > > The only current problem that I have with VMware is that sometimes my > virtual host's filesystem will get kicked into read-only mode. This > issue only relates to servers attached to an iSCSI SAN, and has already > been fixed for RHEL and SUSE. I have a ticket open with them now to > address the issue with Ubuntu. > > > > Thanks, > > Garry > > > > > > I have Suse 10.2 and Nagios, MRTG, Netdirector in production running on > vmware GSX server, soon we migrate it to the vmware ESX cluster. The > only problems was the solved filesystem issue after a diskerror. It > happens once on the ESX, the san was on that moment not multipath. > The time on ESX gives no problem, on vmware-server, the free one, there > is time a problem. NTP is configurerd to synchro the local time from a > server in DMZ, this one connect to the public time servers. > Conclusion: why not use VMware > > Greetings, > Mels > > > > ------------------------------ > > Message: 10 > Date: Sat, 01 Sep 2007 09:22:01 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Sean Schertell > Cc: Nagios-users at lists.sourceforge.net > Message-ID: <46D91319.6070502 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Sean Schertell wrote: > >> nutmeg is returning output from nslookup that check_dns can't > >> parse. It > >> would appear that nutmeg isn't configured to perform recursive > lookups > >> (lookups for domains it doesn't host) and you're expecting it to. > >> > >> > >> As an aside, you shouldn't be allowing me to perform recursive > lookups > >> with your servers anyway. Rosemary could easily be hijacked to > perform > >> DNS based DOS attacks. > >> > >> - > >> Marc > >> > > > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > > > Is there any way to use dns_check safely? > > > > Ask it for a name it knows about. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 11 > Date: Sat, 1 Sep 2007 07:45:21 -0400 > From: "S. William Schulz" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: "Sean Schertell" > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > <92010c400709010445y67479b7vdb678374c0cd3240 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > > > As an aside, you shouldn't be allowing me to perform recursive > lookups > > > with your servers anyway. Rosemary could easily be hijacked to > perform > > > DNS based DOS attacks. > > > > > > - > > > Marc > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > > > Is there any way to use dns_check safely? > > I think the keyword in Marc's statement was "me" - him, Marc, being > outside of your network should not be allowed to perform recursive > lookups via one of your nameservers. If you are going to enable > recursive lookups for your own users/internal machines, limit access > to that feature via acl's to only those users/IPs/hosts. > > Otherwise, with recursive off, ask them about a name they are > authoritative for. > > SWS > > > > ------------------------------ > > Message: 12 > Date: Sat, 1 Sep 2007 08:37:40 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > Please always respond on list. > > > -----Original Message----- > > From: Sean Schertell [mailto:sean at datafly.net] > > Sent: Friday, August 31, 2007 8:47 PM > > To: Marc Powell > > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > > fails for other half > > > > Thanks Mark, > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > Sure it's possible, and if the server is supposed to be a recursive > server (most are) then check_dns will work as you're testing it. Nutmeg > does not appear to be a recursive server though so you can't ask it > about microsoft.com since it doesn't know anything about it. Change that > to nutmeg.aspen.com or some other host in a domain it's authoritative > for. > > > Is there any way to use dns_check safely? > > My concerns about safety weren't related to check_dns at all. My concern > is that anyone anywhere in the world can use rosemary to attack other > DNS servers. As a bonus, you would be the apparent source of that > attack. IMHO, you should be using ACL's to allow recursive lookups only > for those networks that should be using that nameserver. Bind provides > an easy way of doing this if that's what you're using -- > http://www.bind9.net/manual/bind/9.3.1/Bv9ARM.ch07.html > > -- > Marc > > > > ------------------------------ > > Message: 13 > Date: Sat, 1 Sep 2007 08:43:39 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > > Sent: Saturday, September 01, 2007 8:38 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_dns works fine for half my > servers,fails > > for other half > > > > > > about microsoft.com since it doesn't know anything about it. Change > that > > to nutmeg.aspen.com or some other host in a domain it's authoritative > > for. > > Sorry, to avoid confusion I really meant to say 'nutmeg.datafly.net'. > > -- > Marc > > > > > > ------------------------------ > > Message: 14 > Date: Sat, 1 Sep 2007 18:38:35 +0100 (BST) > From: Melanie Pfefer > Subject: [Nagios-users] check_snmp and disk monitring > To: nagios-users at lists.sourceforge.net, > nagiosplug-help at lists.sourceforge.net > Message-ID: <966547.97595.qm at web26203.mail.ukl.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > I am using RHEL3 and installed > mysql5/apache2.0.59/php5 and nagios 2.9 and > plugin1.4.9. > > > My objective is to start monitoring disk usage of > remote servers. Any idea how to do that? > > thanks. > > > > > ___________________________________________________________ > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > > > ------------------------------ > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 16, Issue 1 > ******************************************* > ====================================== > i-choose online store at www.tataindicom.com > Your Comfort.Your Convenience.YourChoice. > ====================================== > > DISCLAIMER: > The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor t hat this communication is free of viruses, interceptions or interference. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Gerd Mueller NETWAYS GmbH Senior Systems Engineer Deutschherrnstr. 47a Fon. +49 911 92885-0 D-90429 Nuernberg Fax. +49 911 92885-33 gmueller at netways.de http://www.netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Navdeep.Sidhu at tatatel.co.in Mon Sep 3 15:47:39 2007 From: Navdeep.Sidhu at tatatel.co.in (Navdeep Sidhu) Date: Mon, 3 Sep 2007 19:17:39 +0530 Subject: how to issue service check through external command In-Reply-To: <1188826998.7380.28.camel@netl-gm-01.int.netways.de> References: <1188826998.7380.28.camel@netl-gm-01.int.netways.de> Message-ID: <745C9242AACB2D468091BC33BFD668D004342196@PB-CHD-MBX01.PJB.TTSL.COM> Hi After making the changes, I have restarted nagios as well webserver but still no success. Regards Navdeep Singh Sidhu -----Original Message----- From: Gerd Mueller [mailto:gmueller at netways.de] Sent: Monday, September 03, 2007 7:13 PM To: Navdeep Sidhu Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] how to issue service check through externalcommand Hi, Did you restart nagios and the webserver? Cheers, Gerd Am Montag, den 03.09.2007, 15:25 +0530 schrieb Navdeep Sidhu: > Hi Guys > > I'm trying to issue certain service checks through external commands but > getting an error "could not open command file nagios.cmd for update" > > I went through Nagios FAQ & Google but didn't find the way out. > > I have setup the permissions according to the recommendations & external > command check option is enabled in nagios configuration file also. > > drwxrwsr-x 2 nagios nagiocmd 4096 Sep 3 14:15 rw > prw-rw---- 1 nagios nagiocmd 0 Sep 3 14:15 nagios.cmd > > Pl help in this regard. > > Thanks in advance > > Regards > Navdeep Singh Sidhu > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > nagios-users-request at lists.sourceforge.net > Sent: Sunday, September 02, 2007 12:59 AM > To: nagios-users at lists.sourceforge.net > Subject: Nagios-users Digest, Vol 16, Issue 1 > > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. from address (David Walgamotte) > 2. How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Sean Schertell) > 3. check_dns works fine for half my servers, fails for other > half (Sean Schertell) > 4. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Jeremy C. Reed) > 5. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 6. Re: How to auto-start NRPE daemon on reboot (FreeBSD) ? > (Sean Schertell) > 7. Re: check_dns works fine for half my servers, fails for other > half (Sean Schertell) > 8. Re :RE: Re :RE: Configuring Web Interface (manoj kumar) > 9. Re: nagios server inside vmware (Nagios) > 10. Re: check_dns works fine for half my servers, fails for other > half (Andreas Ericsson) > 11. Re: check_dns works fine for half my servers, fails for other > half (S. William Schulz) > 12. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 13. Re: check_dns works fine for half my servers, fails for other > half (Marc Powell) > 14. check_snmp and disk monitring (Melanie Pfefer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 31 Aug 2007 15:03:00 -0500 > From: "David Walgamotte" > Subject: [Nagios-users] from address > To: Nagios-users at lists.sourceforge.net > Message-ID: > <77ad9a6b0708311303h47198d9eib240ad51873bb27d at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I need to change the from address. Mail server will not accept an > invalid > user account from same domain. I need to change MAIL FROM: < address> on > acks from nagios. please help. tried adding stuff to mailrc no luck. > > -- > Thank You, Regards, > David > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Fri, 31 Aug 2007 15:55:47 -0700 > From: Sean Schertell > Subject: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Nagios-users at lists.sourceforge.net > Message-ID: <098CA4D3-F1E1-45EE-83C9-0B27930E4F05 at datafly.net> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hi Guys, > > I've got a spiffy new rc.d script that works great for starting/ > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > etc/rc.conf doesn't seem to do the trick. > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > etc/rc.d/nrpe start" command at boot time? > > In case anyone's interested, here's my script: > > > > > #!/bin/sh > # > # Startup script for NRPE > # > > # Source function library. > . /usr/local/etc/rc.d/functions > > BIN=/usr/local/nagios/bin/nrpe > CONFIG=/usr/local/nagios/etc/nrpe.cfg > LOCK=/var/spool/lock/nrpe > > RETVAL=0; > > # See how we were called. > case "$1" in > start) > echo -n "Starting NRPE daemon: " > daemon $BIN -c $CONFIG -d > RETVAL=$? > if [ $RETVAL = 0 ] && touch $LOCK > then > echo -e "\t\t[ OK ]"; > else > echo -e "\t\t[ FAILED ]"; > fi > ;; > stop) > echo -n "Stopping NRPE daemon: " > kill `cat /var/run/nrpe.pid` && rm -f /var/run/nrpe.pid > RETVAL=$? > if [ $RETVAL = 0 ] && rm -f $LOCK > then > echo -e "\t\t[ OK ]"; > else > echo -e "\t\t[ FAILED ]"; > fi > > ;; > status) > status nrpe > ;; > restart) > $0 stop > sleep 1 > $0 start > ;; > *) > echo "Usage: $0 {start|stop|restart|status}" > exit 1 > esac > > exit $RETVAL > > > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 3 > Date: Fri, 31 Aug 2007 18:05:02 -0700 > From: Sean Schertell > Subject: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > I'm not really a DNS guru, so it's probably an obvious thing -- would > someone mind enlightening me as to why this happens? How come it > works fine for the first server but fails for the second? Their > definitely both running DNS. > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s rosemary.datafly.net > DNS OK: 0.324 seconds response time. microsoft.com returns > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > microsoft.com -s nutmeg.datafly.net > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > address > > ??? > > Sean > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 4 > Date: Fri, 31 Aug 2007 20:16:28 -0500 (CDT) > From: "Jeremy C. Reed" > Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Sean Schertell > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Fri, 31 Aug 2007, Sean Schertell wrote: > > > I've got a spiffy new rc.d script that works great for starting/ > > stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > > etc/rc.conf doesn't seem to do the trick. > > > > Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > > etc/rc.d/nrpe start" command at boot time? > > > > In case anyone's interested, here's my script: > > Your script is not an script using FreeBSD's new rc.d semantics. So > don't > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > To use old style, name it to end with ".sh" and make sure it is > executable. The defaults of FreeBSD should then work to find it and run > it > at boot. > > If you want to use FreeBSD's new rc.d semantics, have a look at the > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > Jeremy C. Reed > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > documented in > http://bsdwiki.reedmedia.net/wiki/Configure_a_service_to_start_at_boot_t > ime.html > http://bsdwiki.reedmedia.net/wiki/Use_an_rc__40__8__41___script_to_deter > mine_if_a_service_is_running_and_start__44___restart_or_stop_it_as_requi > red.html > > > > ------------------------------ > > Message: 5 > Date: Fri, 31 Aug 2007 20:37:34 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > > Sent: Friday, August 31, 2007 8:05 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_dns works fine for half my servers,fails > for > > other half > > > > I'm not really a DNS guru, so it's probably an obvious thing -- would > > someone mind enlightening me as to why this happens? How come it > > works fine for the first server but fails for the second? Their > > definitely both running DNS. > > > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > > microsoft.com -s rosemary.datafly.net > > DNS OK: 0.324 seconds response time. microsoft.com returns > > 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > > > > [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > > microsoft.com -s nutmeg.datafly.net > > DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > > address > > nutmeg is returning output from nslookup that check_dns can't parse. It > would appear that nutmeg isn't configured to perform recursive lookups > (lookups for domains it doesn't host) and you're expecting it to. > > $ nslookup -sil microsoft.com rosemary.datafly.net > Server: rosemary.datafly.net > Address: 64.34.193.57#53 > > Non-authoritative answer: > Name: microsoft.com > Address: 207.46.232.182 > Name: microsoft.com > Address: 207.46.197.32 > > $ nslookup -sil microsoft.com nutmeg.datafly.net > Server: nutmeg.datafly.net > Address: 72.36.130.114#53 > > Non-authoritative answer: > *** Can't find microsoft.com: No answer > > As an aside, you shouldn't be allowing me to perform recursive lookups > with your servers anyway. Rosemary could easily be hijacked to perform > DNS based DOS attacks. > > - > Marc > > > > ------------------------------ > > Message: 6 > Date: Fri, 31 Aug 2007 19:48:16 -0700 > From: Sean Schertell > Subject: Re: [Nagios-users] How to auto-start NRPE daemon on reboot > (FreeBSD) ? > To: Nagios-users at lists.sourceforge.net > Message-ID: <80A1FF38-09B2-46BC-8A43-F626EAF5A9BD at datafly.net> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > On Aug 31, 2007, at 6:16 PM, Jeremy C. Reed wrote: > > > On Fri, 31 Aug 2007, Sean Schertell wrote: > > > >> I've got a spiffy new rc.d script that works great for starting/ > >> stopping the nrpe daemon. But simply adding nrpe_enable="yes" to my / > >> etc/rc.conf doesn't seem to do the trick. > >> > >> Does anyone know how I can tell FreeBSD to fire off the "/usr/local/ > >> etc/rc.d/nrpe start" command at boot time? > >> > >> In case anyone's interested, here's my script: > > > > Your script is not an script using FreeBSD's new rc.d semantics. So > > don't > > use rc.conf setting of nrpe_enable="yes" for that. (As it won't know.) > > > > To use old style, name it to end with ".sh" and make sure it is > > executable. The defaults of FreeBSD should then work to find it and > > run it > > at boot. > > > > If you want to use FreeBSD's new rc.d semantics, have a look at the > > rc.d scripts included by FreeBSD's nrpe and nrpe2 ports as examples. > > > > Jeremy C. Reed > > > > p.s. Some of this is documented in the FreeBSD Handbook. Also some is > > documented in > > http://bsdwiki.reedmedia.net/wiki/ > > Configure_a_service_to_start_at_boot_time.html > > http://bsdwiki.reedmedia.net/wiki/ > > Use_an_rc__40__8__41___script_to_determine_if_a_service_is_running_and > > > _start__44___restart_or_stop_it_as_required.html > > > I was trying to be consistent and set everything up as closely as > possible to the way I had done it on my RetardedHat boxes. > > Installing nrpe/nagios-plugins from FreeBSD ports is about a thousand > times easier and creates a snazzy new-style rc.d script for me right > out of the box. And now I can just put nrpe2_enable in my rc.conf and > everything works swimmingly. God I love FreeBSD. > > Thanks for mentioning ports -- I don't know why I didn't think of > trying that before ;-) > > Sean > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 7 > Date: Fri, 31 Aug 2007 19:51:31 -0700 > From: Sean Schertell > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Nagios-users at lists.sourceforge.net > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > >> users- > >> bounces at lists.sourceforge.net] On Behalf Of Sean Schertell > >> Sent: Friday, August 31, 2007 8:05 PM > >> To: Nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] check_dns works fine for half my > >> servers,fails > > for > >> other half > >> > >> I'm not really a DNS guru, so it's probably an obvious thing -- would > >> someone mind enlightening me as to why this happens? How come it > >> works fine for the first server but fails for the second? Their > >> definitely both running DNS. > >> > >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > >> microsoft.com -s rosemary.datafly.net > >> DNS OK: 0.324 seconds response time. microsoft.com returns > >> 207.46.197.32,207.46.232.182|time=0.323644s;;;0.000000 > >> > >> [root at turnip etc]# /usr/local/nagios/libexec/check_dns -H > >> microsoft.com -s nutmeg.datafly.net > >> DNS CRITICAL - '/usr/bin/nslookup -sil' msg parsing exited with no > >> address > > > > nutmeg is returning output from nslookup that check_dns can't > > parse. It > > would appear that nutmeg isn't configured to perform recursive lookups > > (lookups for domains it doesn't host) and you're expecting it to. > > > > $ nslookup -sil microsoft.com rosemary.datafly.net > > Server: rosemary.datafly.net > > Address: 64.34.193.57#53 > > > > Non-authoritative answer: > > Name: microsoft.com > > Address: 207.46.232.182 > > Name: microsoft.com > > Address: 207.46.197.32 > > > > $ nslookup -sil microsoft.com nutmeg.datafly.net > > Server: nutmeg.datafly.net > > Address: 72.36.130.114#53 > > > > Non-authoritative answer: > > *** Can't find microsoft.com: No answer > > > > As an aside, you shouldn't be allowing me to perform recursive lookups > > with your servers anyway. Rosemary could easily be hijacked to perform > > DNS based DOS attacks. > > > > - > > Marc > > > > > So does that mean then that it isn't possible to use the check_dns > plugin without enabling recursive lookups and leaving my server open > to DNS DOS attacks? > > Is there any way to use dns_check safely? > > Thanks :-) > > Sean > > > > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net > > > > > ------------------------------ > > Message: 8 > Date: 1 Sep 2007 05:30:38 -0000 > From: "manoj kumar" > Subject: [Nagios-users] Re :RE: Re :RE: Configuring Web Interface > To: > Cc: Nagios-users > Message-ID: > > <1188563883.S.15036.27942.f5mail21.rediffmail.com.1188624638.15342 at webma > il.rediffmail.com> > > Content-Type: text/plain; charset="iso-8859-1" > > Thanks A Lot Justine!It worked.... :)Warm regards,ManojOn Fri, 31 Aug > 2007 07:39:42 -0500 \"Justin Maloney\" wroteOK I get what your looking > for now.  You would need to getthe urls for the hostgroup overview > page (http://nagios.yourserver/nagios/cgi-bin/status.cgi?hostgroup= > CHDDLFDHCP-SERVERS&style=detail) and put that in the side.html > page.  Try just making theliks and see if they work.  The > format above works to veiw my groups and I can?timage that editing the > html would be two hard the side.html isn?tdynamic, I don?t > think. Thank you,JustinMaloneySystems AdministratorHoneycomb > Internet Services612.617.0007 HiJustin,I have defined hostgroups as > below - # \'CHDDLF-DHCP SERVERS\' host group definitiondefine > hostgroup{        > hostgroup_name CHDDLFDHCP-SERVERS     &nbs > p; alias           > ; CHDDLFDHCPSERVERS    &nb > sp;   contact_groups  > CHDDLFNT-ADMINS        > members        CHDDLFDHCP01,CHDD > LFVDHC01        }#\'CHDDLF-DOMAIN > CONTROLLERS\' host group definitiondefine > hostgroup{        > hostgroup_name CHDDLFDOMAIN-CONTROLLERS    &nbs > p;  alias          > ;  > CHDDLFDOMAINCONTROLLERS        > contact_groups  > CHDDLFNT-ADMINS,CHDSEZNT-ADMINS        > ;members         > CHDDLFGDC01        }# \'UnixServers\' > host group definitiondefine > hostgroup{        > hostgroup_name  Unix > Servers       alias    >       &n > bsp; Unix Servers        > contact_groups CHDDLFUNIX-ADMINS       > ; members         > damodar,appsdba        }But the view > pane just shows me \"All Hosts\"and there is no menu where I can see > them in groups.Attached is the sreen shot of my nagios Web Interface > (Current.JPG).I want to configure the NAGIOS web interface so that I can > group differenthosts as the Sub Menu to \"Service Detail\" Menu.The > Right side Menu should display something like -   o Service > Detail        o Unix > Systems        o Windows > Servers        o WAN linksSome thing > like the attached image (nagios.JPG).How can we achieve that?Thanks and > regards,Manoj----------------------------------------------------------- > ----------------------------------------- > --------------------------------You could put them in host > groups,that?s what I do.  I have a host group for each customer and > thenmore host groups that break down to web servers, mysql servers etc > for eachcustomer.  Then you just go to the hostgroup over view page > and click onone.  It will show you all the hosts and there > services. in the normalstatus page format.  Thank you, Justin > Maloney SystemsAdministrator HoneycombInternet Services > 612.617.0007Manoj KumarTHE MAD MANNever Fall in Love Always Rise in > Love!  > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 9 > Date: Sat, 01 Sep 2007 09:15:30 +0200 > From: Nagios > Subject: Re: [Nagios-users] nagios server inside vmware > To: "Cook, Garry" > Cc: "nagios-users at lists.sourceforge.net" > > Message-ID: <46D91192.4010600 at mels-kooijman.nl> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Cook, Garry wrote: > > IIRC, the solution given in that thread was 'Don't use VMware'. > > > > I run three different Ubuntu servers (Nagios, MRTG, and NeDi) on > VMware, and have no issues whatsoever with time (or anything else). I > don't recall how I originally setup NTP, and I DID have issues in the > beginning, but they have long since been resolved. If you run into time > issues and have specific questions, email the list and I'll do my best > to get back to you with info about how my system is setup. > > > > The only current problem that I have with VMware is that sometimes my > virtual host's filesystem will get kicked into read-only mode. This > issue only relates to servers attached to an iSCSI SAN, and has already > been fixed for RHEL and SUSE. I have a ticket open with them now to > address the issue with Ubuntu. > > > > Thanks, > > Garry > > > > > > I have Suse 10.2 and Nagios, MRTG, Netdirector in production running on > vmware GSX server, soon we migrate it to the vmware ESX cluster. The > only problems was the solved filesystem issue after a diskerror. It > happens once on the ESX, the san was on that moment not multipath. > The time on ESX gives no problem, on vmware-server, the free one, there > is time a problem. NTP is configurerd to synchro the local time from a > server in DMZ, this one connect to the public time servers. > Conclusion: why not use VMware > > Greetings, > Mels > > > > ------------------------------ > > Message: 10 > Date: Sat, 01 Sep 2007 09:22:01 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: Sean Schertell > Cc: Nagios-users at lists.sourceforge.net > Message-ID: <46D91319.6070502 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Sean Schertell wrote: > >> nutmeg is returning output from nslookup that check_dns can't > >> parse. It > >> would appear that nutmeg isn't configured to perform recursive > lookups > >> (lookups for domains it doesn't host) and you're expecting it to. > >> > >> > >> As an aside, you shouldn't be allowing me to perform recursive > lookups > >> with your servers anyway. Rosemary could easily be hijacked to > perform > >> DNS based DOS attacks. > >> > >> - > >> Marc > >> > > > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > > > Is there any way to use dns_check safely? > > > > Ask it for a name it knows about. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 11 > Date: Sat, 1 Sep 2007 07:45:21 -0400 > From: "S. William Schulz" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: "Sean Schertell" > Cc: Nagios-users at lists.sourceforge.net > Message-ID: > <92010c400709010445y67479b7vdb678374c0cd3240 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > > > As an aside, you shouldn't be allowing me to perform recursive > lookups > > > with your servers anyway. Rosemary could easily be hijacked to > perform > > > DNS based DOS attacks. > > > > > > - > > > Marc > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > > > Is there any way to use dns_check safely? > > I think the keyword in Marc's statement was "me" - him, Marc, being > outside of your network should not be allowed to perform recursive > lookups via one of your nameservers. If you are going to enable > recursive lookups for your own users/internal machines, limit access > to that feature via acl's to only those users/IPs/hosts. > > Otherwise, with recursive off, ask them about a name they are > authoritative for. > > SWS > > > > ------------------------------ > > Message: 12 > Date: Sat, 1 Sep 2007 08:37:40 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > Please always respond on list. > > > -----Original Message----- > > From: Sean Schertell [mailto:sean at datafly.net] > > Sent: Friday, August 31, 2007 8:47 PM > > To: Marc Powell > > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > > fails for other half > > > > Thanks Mark, > > > > So does that mean then that it isn't possible to use the check_dns > > plugin without enabling recursive lookups and leaving my server open > > to DNS DOS attacks? > > Sure it's possible, and if the server is supposed to be a recursive > server (most are) then check_dns will work as you're testing it. Nutmeg > does not appear to be a recursive server though so you can't ask it > about microsoft.com since it doesn't know anything about it. Change that > to nutmeg.aspen.com or some other host in a domain it's authoritative > for. > > > Is there any way to use dns_check safely? > > My concerns about safety weren't related to check_dns at all. My concern > is that anyone anywhere in the world can use rosemary to attack other > DNS servers. As a bonus, you would be the apparent source of that > attack. IMHO, you should be using ACL's to allow recursive lookups only > for those networks that should be using that nameserver. Bind provides > an easy way of doing this if that's what you're using -- > http://www.bind9.net/manual/bind/9.3.1/Bv9ARM.ch07.html > > -- > Marc > > > > ------------------------------ > > Message: 13 > Date: Sat, 1 Sep 2007 08:43:39 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_dns works fine for half my servers, > fails for other half > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > > Sent: Saturday, September 01, 2007 8:38 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_dns works fine for half my > servers,fails > > for other half > > > > > > about microsoft.com since it doesn't know anything about it. Change > that > > to nutmeg.aspen.com or some other host in a domain it's authoritative > > for. > > Sorry, to avoid confusion I really meant to say 'nutmeg.datafly.net'. > > -- > Marc > > > > > > ------------------------------ > > Message: 14 > Date: Sat, 1 Sep 2007 18:38:35 +0100 (BST) > From: Melanie Pfefer > Subject: [Nagios-users] check_snmp and disk monitring > To: nagios-users at lists.sourceforge.net, > nagiosplug-help at lists.sourceforge.net > Message-ID: <966547.97595.qm at web26203.mail.ukl.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > I am using RHEL3 and installed > mysql5/apache2.0.59/php5 and nagios 2.9 and > plugin1.4.9. > > > My objective is to start monitoring disk usage of > remote servers. Any idea how to do that? > > thanks. > > > > > ___________________________________________________________ > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > > > ------------------------------ > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 16, Issue 1 > ******************************************* > ====================================== > i-choose online store at www.tataindicom.com > Your Comfort.Your Convenience.YourChoice. > ====================================== > > DISCLAIMER: > The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Gerd Mueller NETWAYS GmbH Senior Systems Engineer Deutschherrnstr. 47a Fon. +49 911 92885-0 D-90429 Nuernberg Fax. +49 911 92885-33 gmueller at netways.de http://www.netways.de ====================================== i-choose online store at www.tataindicom.com Your Comfort.Your Convenience.YourChoice. ====================================== DISCLAIMER: The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor tha t this communication is free of viruses, interceptions or interference. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Sep 3 15:55:01 2007 From: marc at ena.com (Marc Powell) Date: Mon, 3 Sep 2007 08:55:01 -0500 Subject: how to issue service check through external command In-Reply-To: <745C9242AACB2D468091BC33BFD668D0042F3F53@PB-CHD-MBX01.PJB.TTSL.COM> References: <745C9242AACB2D468091BC33BFD668D0042F3F53@PB-CHD-MBX01.PJB.TTSL.COM> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Navdeep Sidhu > Sent: Monday, September 03, 2007 4:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how to issue service check through external > command > > Hi Guys > > I'm trying to issue certain service checks through external commands but > getting an error "could not open command file nagios.cmd for update" This has already been addressed by previous responses. > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of > nagios-users-request at lists.sourceforge.net > Sent: Sunday, September 02, 2007 12:59 AM > To: nagios-users at lists.sourceforge.net > Subject: Nagios-users Digest, Vol 16, Issue 1 > ~840 lines of irrelevant digest removed. Please don't quote an entire digest just to create a new topic. Now next weeks digest will contain your post with all of the previous weeks digest making it very large and difficult to read. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Sep 3 16:18:41 2007 From: marc at ena.com (Marc Powell) Date: Mon, 3 Sep 2007 09:18:41 -0500 Subject: how to issue service check through externalcommand In-Reply-To: <745C9242AACB2D468091BC33BFD668D004342196@PB-CHD-MBX01.PJB.TTSL.COM> References: <745C9242AACB2D468091BC33BFD668D004342196@PB-CHD-MBX01.PJB.TTSL.COM> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Navdeep Sidhu > Sent: Monday, September 03, 2007 8:48 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] how to issue service check through > externalcommand > > Hi > > After making the changes, I have restarted nagios as well webserver but > still no success. > If you're submitting the command via the nagios cgis then either you've missed a step in the documentation and your web server isn't running as group nagiocmd or there is a directory higher than rw that is not allowing that group access. Your web server error_log might provide more insight as well as the output of the following command -- echo "PID Running As Friendly Name"; ps -eo pid,user,fname | grep http; echo -en "\ngroup: "; grep nagiocmd /etc/group If you're submitting the command via an external script then that script isn't running as user nagios or group nagiocmd, or there is a directory higher than rw that is not allowing that group access. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fabio.iovine at gmail.com Mon Sep 3 16:28:50 2007 From: fabio.iovine at gmail.com (Fabio Iovine) Date: Mon, 3 Sep 2007 16:28:50 +0200 Subject: test... Message-ID: <509069220709030728t72cb33dagaefd2e95610690a8@mail.gmail.com> test mail, don't waste time to reply. Fabio ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthew.Hollick at porthosp.nhs.uk Mon Sep 3 17:28:33 2007 From: Matthew.Hollick at porthosp.nhs.uk (Hollick Matthew - ICT Systems) Date: Mon, 3 Sep 2007 16:28:33 +0100 Subject: SLA reports from nagios Message-ID: Hi there, I wish (well, have been told to..) to produce SLA type reports of our IT systems for management. At the moment the requirements are rather vague... As we are currently using NDO I am hoping that Jasper Reports may be used to pull reports directly from the database. Poking around I can find no reference to people having done so. Any advice while I am still at the stage of working out what management want? Cheers, Matthew. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pablodav at gmail.com Mon Sep 3 13:57:05 2007 From: pablodav at gmail.com (Pablo Daniel Estigarribia Davyt) Date: Mon, 3 Sep 2007 08:57:05 -0300 Subject: Problem with availability report Message-ID: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 3 14:08:04 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 03 Sep 2007 14:08:04 +0200 Subject: Modbus/TCP?? In-Reply-To: <004b01c7ec91$8e91c780$1b0a0a0a@CONTENT> References: <02d101c7e8d5$991a1550$5700a8c0@andrew2> <46D341FC.9000708@op5.se> <004b01c7ec91$8e91c780$1b0a0a0a@CONTENT> Message-ID: <46DBF924.1000306@op5.se> Stephen H. Dawson wrote: > Good Morning, > > > Love Nagios!!!!! > > I am following this Nagios/MODBUS thread with anxious anticipation. I have > some long term efforts that would very much benefit from the marriage of > these 2 technologies. Is anyone close to posting come code, or some links > to some code? > I found the code we wrote some time back. I have no idea what state it's in atm, but it might even work ;-) Volunteers to continue development are ofcourse welcome. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 -------------- next part -------------- A non-text attachment was scrubbed... Name: adam.tar.gz Type: application/x-gzip Size: 7627 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fabio.iovine at gmail.com Mon Sep 3 15:10:18 2007 From: fabio.iovine at gmail.com (Fabio Iovine) Date: Mon, 3 Sep 2007 15:10:18 +0200 Subject: Nagio & TEC Message-ID: <509069220709030610u958fe3cpe7fb74e114b03e74@mail.gmail.com> hi all, I need to forward Nagios alarm events to TEC (Tivoli Enterprise Monitor). For this reason I wrote a couple of shell-scripts to handle Nagios servicestate and change them in TEC suitable severity codes. Then I try to forward these event to TEC by using a Tivoli command but I have problems with SERVICEOUTPUT/HOSTOUTPUT which are truncated. let's make some fixed points; these are the twho commands I defined in my commands.cfg file: # 'service-notify-by-postemsg' command definition define command{ command_name service-notify-by-postemsg command_line $USER3$/service-nagios-postemsg.sh `$DATE$` `$TIME$` `$HO STNAME$` `$SERVICESTATE$` `$SERVICEOUTPUT$` } # 'host-notify-by-postemsg' command definition define command{ command_name host-notify-by-postemsg command_line $USER3$/host-nagios-postemsg.sh $DATE$ $TIME$ $HOSTNAME$ $HOSTSTATE$ $HOSTOUTPUT$ } the two files have the following inside them: date=$1 time=$2 hostname=$3 servicestate=$4 serviceoutput=$5 postemsg -f $post_conf_file -r $severity -m "$date : $time : $serviceoutput" hostname=$hostname Nagios NAGIOS --- date=$1 time=$2 hostname=$3 hoststate=$4 hostoutput=$5 postemsg -f $post_conf_file -r $severity -m "$date : $time : $hostoutput" hostname=$hostname Nagios NAGIOS for those who are notfamiliar with Tivoli, the "-m" is the message flag; what really happen to me is that the $hostoutput wich should contain the $HOSTOUTPUT$ text is truncated right after the first word, for istance: $HOSTOUTPUT$ = JMX ATTRIBUTE CRITICAL - jboss.j2ee:jndiName=ejb/GameTransactionSystem,service=EJB-StateString: become $hostoutput = JMX do you have any idea? thanx in advance, Fabio ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pablodav at gmail.com Mon Sep 3 14:51:40 2007 From: pablodav at gmail.com (Pablo Daniel Estigarribia Davyt) Date: Mon, 3 Sep 2007 09:51:40 -0300 Subject: Fwd: Problem with availability report In-Reply-To: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> References: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> Message-ID: <31e180f60709030551q17984053tbdbbfb7c2be93433@mail.gmail.com> I re send it because the confirmation of my register arrives after I sent the email ---------- Forwarded message ---------- From: Pablo Daniel Estigarribia Davyt Date: 03-sep-2007 8:57 Subject: Problem with availability report To: nagios-users at lists.sourceforge.net Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Mon Sep 3 21:12:16 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 03 Sep 2007 21:12:16 +0200 Subject: Nagio & TEC In-Reply-To: <509069220709030610u958fe3cpe7fb74e114b03e74@mail.gmail.com> References: <509069220709030610u958fe3cpe7fb74e114b03e74@mail.gmail.com> Message-ID: <46DC5C90.3050701@its-lehmann.de> Hi, 03.09.2007 15:10,, Fabio Iovine wrote:: > hi all, > > I need to forward Nagios alarm events to TEC (Tivoli Enterprise Monitor). > > For this reason I wrote a couple of shell-scripts to handle Nagios > servicestate and change them in TEC suitable severity codes. > > Then I try to forward these event to TEC by using a Tivoli command but > I have problems with SERVICEOUTPUT/HOSTOUTPUT which are truncated. > > let's make some fixed points; these are the twho commands I defined in > my commands.cfg file: > > # 'service-notify-by-postemsg' command definition > > define command{ > > command_name service-notify-by-postemsg > > command_line $USER3$/service-nagios-postemsg.sh `$DATE$` `$TIME$` `$HO You should change these quotes to something more useful, like ' or " and make sure any special characters you pass are correctly quoted (or handled by your script correctly). IIRC, Nagios calls the commands you define using /bin/sh, and that might understand unexpected things... > STNAME$` `$SERVICESTATE$` `$SERVICEOUTPUT$` > > } > > # 'host-notify-by-postemsg' command definition > > define command{ > > command_name host-notify-by-postemsg > > command_line $USER3$/host-nagios-postemsg.sh $DATE$ $TIME$ $HOSTNAME$ Also, put qoutes around the variables. As long as you forbid any potentilly insecure characters in Nagios' configuration (the default, IIRC), " should work fine. > $HOSTSTATE$ $HOSTOUTPUT$ > > } > > the two files have the following inside them: > > date=$1 Again, qouting... ... > what really happen to me is that the $hostoutput wich should contain > the $HOSTOUTPUT$ text is truncated right after the first word, for > istance: > > $HOSTOUTPUT$ = JMX ATTRIBUTE CRITICAL - > jboss.j2ee:jndiName=ejb/GameTransactionSystem,service=EJB-StateString: > > become $hostoutput = JMX > > do you have any idea? Sure. Quoting. To verify this, try to enter the line you give above into the shell... you'll get something else than only a variable assignment. Arno > thanx in advance, > > Fabio > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.shellam-lists at mailnetwork.co.uk Mon Sep 3 22:56:26 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 3 Sep 2007 21:56:26 +0100 Subject: Fwd: Problem with availability report In-Reply-To: <31e180f60709030551q17984053tbdbbfb7c2be93433@mail.gmail.com> References: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> <31e180f60709030551q17984053tbdbbfb7c2be93433@mail.gmail.com> Message-ID: <19536.7638174959$1188853025@news.gmane.org> Hi Pablo, What does the report class the "Indeterminate" data as? (Insufficient data or Nagios not running?) If it says "Insufficient data," I'd hazard a guess that your last month's log files aren't where Nagios expects them to be, perhaps they've been archived or zipped by a log rotation program, but that's just a guess. If you browse to your "Event Log" in Nagios, near the the top, it should say "File:" and the path to a file. That's the current log file. Look in that file's directory on your system and see if there are any other files with last month's dates in. Andy. From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Pablo Daniel Estigarribia Davyt Sent: Monday, 03 September, 2007 1:52 pm To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Fwd: Problem with availability report I re send it because the confirmation of my register arrives after I sent the email ---------- Forwarded message ---------- From: Pablo Daniel Estigarribia Davyt Date: 03-sep-2007 8:57 Subject: Problem with availability report To: nagios-users at lists.sourceforge.net Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 !DSPAM:37,46dc422e107501718520730! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.shellam-lists at mailnetwork.co.uk Tue Sep 4 00:27:59 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Mon, 3 Sep 2007 23:27:59 +0100 Subject: Fwd: Problem with availability report In-Reply-To: <31e180f60709031514v3cbc3b28qdd6da6c8ca51f913@mail.gmail.com> References: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> <31e180f60709030551q17984053tbdbbfb7c2be93433@mail.gmail.com> <-359549191887232833@unknownmsgid> <31e180f60709031511o128fc1c2pdfbddf749f5a61c1@mail.gmail.com> <31e180f60709031514v3cbc3b28qdd6da6c8ca51f913@mail.gmail.com> Message-ID: <26677.7587974959$1188858618@news.gmane.org> Hi Pablo, Yes, it looks as if your Nagios user does not have permissions to write to /var/log/nagios2/archives. Do "chown nagios:adm /var/log/nagios2/archives", then when your logs are rotated, you should get the old logs moved inside your archives directory, and you'll be able to run historical reports. What you'll probably find is that currently, the reports are only picking up the current day's data (as you only have today's log file.) Andy. From: Pablo Daniel Estigarribia Davyt [mailto:pablodav at gmail.com] Sent: Monday, 03 September, 2007 11:15 pm To: andy.shellam-lists at mailnetwork.co.uk Subject: Re: [Nagios-users] Fwd: Problem with availability report Is possible it happens by file system rights ? XXXXXXXHOST:/etc/nagios2/conf.d# ll /var/log/nagios2/ total 13552 drwxr-xr-x 2 root root 4096 2007-03-04 20:56 archives -rw-r--r-- 1 nagios adm 13850632 2007-09-03 19:11 nagios.log Br, 2007/9/3, Pablo Daniel Estigarribia Davyt : Hi Andy, I opened and it says the current log file is: /var/log/nagios2/nagios.log, so I on latest archive and it says the following: Error: Could not open log file '/var/log/nagios2/archives/nagios-09-03-2007-00.log ' for reading! Wen i see inside /var/log/nagios2/archives there are no file inside. Do you know how i can fix it? My /etc/nagios2/nagios.cfg has log_rotation_method=d, but there is only /var/log/nagios2/nagios.log on my filesystem. Thanks ! 2007/9/3, Andy Shellam (Mailing Lists) < andy.shellam-lists at mailnetwork.co.uk>: Hi Pablo, What does the report class the "Indeterminate" data as? (Insufficient data or Nagios not running?) If it says "Insufficient data," I'd hazard a guess that your last month's log files aren't where Nagios expects them to be, perhaps they've been archived or zipped by a log rotation program, but that's just a guess. If you browse to your "Event Log" in Nagios, near the the top, it should say "File:" and the path to a file. That's the current log file. Look in that file's directory on your system and see if there are any other files with last month's dates in. Andy. From: nagios-users-bounces at lists.sourceforge.net [mailto: nagios-users-bounces at lists.sourceforge.net] On Behalf Of Pablo Daniel Estigarribia Davyt Sent: Monday, 03 September, 2007 1:52 pm To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Fwd: Problem with availability report I re send it because the confirmation of my register arrives after I sent the email ---------- Forwarded message ---------- From: Pablo Daniel Estigarribia Davyt Date: 03-sep-2007 8:57 Subject: Problem with availability report To: nagios-users at lists.sourceforge.net Hi all, I have installed nagios on Debian, I have 2 installation and I have the same problem on both: *When I try to take a report from the last month every host appears with undetermined state to %100, but if I try to take a report of this month everything works well. Do you know something about this?, I searched on google but I don't know how I can fix it. Br, -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 -- Pablo Estigarribia. counter.li.org : 392716 !DSPAM:37,46dc875f107508896821081! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Tue Sep 4 00:45:36 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Tue, 4 Sep 2007 08:45:36 +1000 Subject: SLA reports [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9018F9490@acexp005.portfolio.base> Dear Matthew, I am writing to thank you for your letter and say, > > Hi there, > > I wish (well, have been told to..) to produce SLA type reports of our > IT systems for management. At the moment the requirements are rather > vague... > > As we are currently using NDO I am hoping that Jasper Reports may be > used to pull reports directly from the database. > Poking around I can find no reference to people having done so. > I haven't heard of too many people taking the next big leap with Nagios, namely, using the NDO infrastructure as the basis of availability reporting. OTOH there are some who doing what you are proposing, one at least with the NDO outage table. At the moment, my employer has an event handler that stashes outage data in a table and some home-brew (Perl/DBI/Spreadsheet::WriteExcel) to generate some reports (including SLA reports) (ie this is NOT an NDO application. However, obviously this is the way to go and once I get enough time and energy, I would like to pursue this). Doing an SLA report is basically filtering the outage times against the SLA time period. Amazingly enough, Nagios already does a lot of this sort of filtering when it determines on the basis of time-periods whether or not to notify contacts. It may therefore possible that the Nagios core could provide more SLA support than it does by only actioning outages that occur within the SLA. However, irrespective of future core support, you could acheive something like the same result by only running checks for the time period corresp to your SLA and therefore you would only get outages within the SLA. If on the other hand you want to filter the outages in the NDO tables, there is a Nagios::SLA that is used here, but since I have no idea what Jasper reports is/does, you may not need this. (if you are interested in Nagios::SLA let me know privately. It is not published and may not be for quite a while since I am busy trying to pass 642-901). > Any advice while I am still at the stage of working out what > management want? Yep. Write the all singing all dancing Nag availability reporting package and earn everlasting fame. For bonus marks, donate it to the project (or maintain it). Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nate at campin.net Tue Sep 4 04:22:10 2007 From: nate at campin.net (Nate Campi) Date: Mon, 3 Sep 2007 19:22:10 -0700 Subject: Distributed config admin tool? In-Reply-To: <6546343904687E41B19D8E5A26AB9F5331B07D@E03MVB2-UKBR.domain1.systemhost.net> References: <3ec83c030708301311p56c9d55u45931f712daf1dcd@mail.gmail.com> <6546343904687E41B19D8E5A26AB9F5331B07D@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <20070904022209.GQ6166@campin.net> I use cfengine, and have it down to where I can setup a new Nagios instance or setup a failed Nagios instance in minutes. I have a single Nagios filesystem hierarchy that helps ensure that the central and distributed services and host definitions are exactly the same - using symlinks. $ pwd /var/cfengine/masterfiles/usr/pkg/nagios/etc $ ls -l sites/savvis1/hostgroups/ lrwxr-xr-x 1 ncampi cfengine 46 Aug 6 16:26 hostgroups-ftp.cfg -> ../../../central/hostgroups/hostgroups-ftp.cfg ... $ ls -l sites/savvis2/services/url/ lrwxr-xr-x 1 ncampi cfengine 42 Aug 7 22:09 query.cfg -> ../../../../central/services/url/query.cfg I just make sure that the templates are real files (with different contents, of course) for the central and distributed Nagios instances. $ ls -l sites/savvis1/services/templates/generic.cfg -r--r----- 1 ncampi cfengine 3282 Aug 7 14:45 sites/savvis1/services/templates/generic.cfg I use daemontools to start up Nagios using the correct config file, and each nagios.cfg has the right cfg_dir and cfg_file options to assume the role that I want for that host. $ ls -l sites/savvis1/nagios.cfg -r--r----- 1 ncampi cfengine 31193 Aug 7 23:26 sites/savvis1/nagios.cfg None of this is original, of course, but along with cfengine it makes it a breeze to manage. If people really care, I could put up a better description of how I did it. On Fri, Aug 31, 2007 at 08:29:18AM +0100, tom.welsh at bt.com wrote: > Yes, I'd second cfengine. Though rsync is a simple quick fix > > ________________________________ > > From: nagios-users-bounces at lists.sourceforge.net on behalf of Bill Omer > Sent: Thu 30/08/2007 21:11 > To: Rob Brown > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Distributed config admin tool? > > > > On 8/30/07, Rob Brown wrote: > > Are there any configuration admin tools out there that are multi-site > > aware to be able to manage a distributed nagios setup (multiple > > sites/servers)? > > I am in the planning stages of expanding from a single pair (failover) > > to distributed servers and am looking for a tool to help manage the > > configs. > > How are you admins with distributed sites managing them? > > > You may want to take a look at cfengine. It's pretty robust, and can > support much more than just nagios configs. > > -Bill > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Nate "If builders built buildings they way computer programmers write programs, the first woodpecker that came along would have destroyed all civilization." - Weinberg's Law ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Sep 4 08:21:00 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 04 Sep 2007 08:21:00 +0200 Subject: SLA reports [SEC=UNCLASSIFIED] In-Reply-To: <18544FA17F881A4DBC2F41AC89E46BA9018F9490@acexp005.portfolio.base> References: <18544FA17F881A4DBC2F41AC89E46BA9018F9490@acexp005.portfolio.base> Message-ID: <46DCF94C.7020201@op5.se> Stanley.Hopcroft at Dest.gov.au wrote: > Dear Matthew, > > I am writing to thank you for your letter and say, > >> Hi there, >> >> I wish (well, have been told to..) to produce SLA type reports of our >> IT systems for management. At the moment the requirements are rather >> vague... >> >> As we are currently using NDO I am hoping that Jasper Reports may be >> used to pull reports directly from the database. >> Poking around I can find no reference to people having done so. >> > > I haven't heard of too many people taking the next big leap with Nagios, > namely, using the NDO infrastructure as the basis of availability > reporting. OTOH there are some who doing what you are proposing, one at > least with the NDO outage table. > I'm not surprised. The NDO database scheme is much too complex to easily write applications for, which is probably why there's still no "The GUI" designed in one of the big P-languages for it. > At the moment, my employer has an event handler that stashes outage data > in a table and some home-brew (Perl/DBI/Spreadsheet::WriteExcel) to > generate some reports (including SLA reports) (ie this is NOT an NDO > application. However, obviously this is the way to go and once I get > enough time and energy, I would like to pursue this). > If you feel as if you're lacking that energy at the moment, send over what you've got and I'll take a look at it. As of 1 october, we'll be looking at implementing a gui written in PHP and a reporting engine. We'd prefer if the reporting engine was to use a database backend rather than the text-files. > > It may therefore possible that the Nagios core could provide more SLA > support than it does by only actioning outages that occur within the > SLA. However, irrespective of future core support, you could acheive > something like the same result by only running checks for the time > period corresp to your SLA and therefore you would only get outages > within the SLA. > Such a solution would rob users of the flexibility of altering SLA- periods at a later date though. I would vehemently argue against it. > If on the other hand you want to filter the outages in the NDO tables, > there is a Nagios::SLA that is used here, but since I have no idea what > Jasper reports is/does, you may not need this. > (for the list, mainly) Jasper reports is an oss reporting engine written in java. Its' homepage is located at www.jasperforge.org. I have no first-hand experience with it, but the ones I know that do claim that it works to their satisfaction. >> Any advice while I am still at the stage of working out what >> management want? > > Yep. Write the all singing all dancing Nag availability reporting > package and earn everlasting fame. For bonus marks, donate it to the > project (or maintain it). > Preferrably both. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Sep 4 11:12:12 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 04 Sep 2007 11:12:12 +0200 Subject: check_snmp and disk monitring In-Reply-To: <966547.97595.qm@web26203.mail.ukl.yahoo.com> References: <966547.97595.qm@web26203.mail.ukl.yahoo.com> Message-ID: <46DD216C.9080808@op5.se> Melanie Pfefer wrote: > Hi, > I am using RHEL3 and installed > mysql5/apache2.0.59/php5 and nagios 2.9 and > plugin1.4.9. > > > My objective is to start monitoring disk usage of > remote servers. Any idea how to do that? > Read the docs and configure Nagios accordingly, using the appropriate plugins. Depending on the type of servers you want to monitor the disk usage of and the availability of SNMP on those servers, you may also need the appropriate agent for the type of server you want to monitor. If you lack time and/or competence to grasp the documentation there are several companies providing professional support for Nagios, including quick installations to get basic monitoring up and running in practically no-time. Getting from-scratch hand-holding from an (unpaid) bunch of volunteers on a mailing-list just doesn't happen unless you prove willing to at least make an effort on your own which, so far, you haven't. The nagios documentation is extensive. It can be found at http://www.nagios.org/docs Good luck. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From irvine.harris at gmail.com Tue Sep 4 13:24:27 2007 From: irvine.harris at gmail.com (Harry John) Date: Tue, 4 Sep 2007 16:54:27 +0530 Subject: monitoring application with nrpe Message-ID: Hi Gentlemen, I've succesfully installed nagios and am monitoring windows processes with nsclient++ with great help from you people. Now I need to monitor running some process (application specific) with nrpe. http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf this document does not say anything about it. Could anyone help me how to monitor such processes ? Thanks ! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 4 13:39:21 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 04 Sep 2007 12:39:21 +0100 Subject: monitoring application with nrpe In-Reply-To: References: Message-ID: <46DD43E9.1060905@googlemail.com> yes I also found the documentation a bit lacking. basically, install nrpe on each server, this needs an nrpe.cfg which is documented with comments. you need to define each check_command in nrpe.cfg on each server. I use on and push this to all servers over ssh/rsync. then on nagios server use check_nrpe -H hostname -c check_command which connects to the remote nrpe port (5666) by default, executes the plugin, returns the standard output and the status code. you might want to run your nrpe through xinetd to filter ips allowed to call nrpe checks (or use iptables or something), nrpe has ip restrictions removed now I think... the rest you should be able to figure out by yourself. -h Hari Sekhon Harry John wrote: > Hi Gentlemen, > > I've succesfully installed nagios and am monitoring windows processes > with nsclient++ with great help from you people. > Now I need to monitor running some process (application specific) with > nrpe. > http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf this document does > not say anything about it. > > Could anyone help me how to monitor such processes ? > > Thanks ! > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Sep 4 15:43:20 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 04 Sep 2007 15:43:20 +0200 Subject: monitoring application with nrpe In-Reply-To: References: Message-ID: <46DD60F8.9090003@op5.se> Harry John wrote: > Hi Gentlemen, > > I've succesfully installed nagios and am monitoring windows processes with > nsclient++ with great help from you people. > Now I need to monitor running some process (application specific) with nrpe. > http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf this document does not say > anything about it. > > Could anyone help me how to monitor such processes ? > NRPE works by running plugins on the remote system. If you open the nrpe config file in any normal text-editor you'll see that it isn't exactly hard to grok the format of the config file. Then run the check_nrpe program with the --help argument. You should be able to get a grip on things fairly quickly from there. Hints: check_nrpe should be located on your nagios server, along with the rest of the plugins. The nrpe deamon and the plugins you need to monitor whatever it is you want to monitor on the remote host should reside on the remote server. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rab at walkermartyn.co.uk Tue Sep 4 16:21:43 2007 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Tue, 4 Sep 2007 15:21:43 +0100 Subject: Switch Port Monitoring Advice Message-ID: I'm currently in the process of setting up Nagios to monitor our internal network. As part of this process, I want to monitor switch ports and probably make them the parent of the device connected to them. What is the best way of going about monitoring switch ports? In particular, if the individual ports have to be set-up as a host (?), the check_host_alive script (used for normal hosts) surely is not relevant? I really want to check specific ports are enabled, up and traffic is flowing to/from them. Does this mean that I only want to monitor the ports I have purposely enabled and don't bother monitoring the ones not enabled? Regards, Rab. =========================================================== Robert Jackson Phone: +44 (0) 141 332 7999 Software Engineer Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk =========================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Tue Sep 4 16:27:04 2007 From: vadi.ksdba at gmail.com (vadi) Date: Tue, 4 Sep 2007 19:57:04 +0530 Subject: Ftp issue Message-ID: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> Dear All, How I can configures to monitor number of session and number of ftp user login (its windows system). Due to max connection, my ftp server is always going died. I need to configure maximize parameter for monitor windows ftp. check_ftp plug-in will not give better information for me. I kindly request you people to help me. Thanks, Vadiraj ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gillnaldo at yahoo.com Tue Sep 4 16:27:09 2007 From: gillnaldo at yahoo.com (sunchai (gillnaldo : sun)) Date: Tue, 4 Sep 2007 07:27:09 -0700 (PDT) Subject: Nagios service latency on Service (1000+) Message-ID: <733997.71474.qm@web32212.mail.mud.yahoo.com> Hi nagios user, I use nagios 2.9 on Linux Redhat EL4. My server specification show on =================================================== [root at nagiosnet /root]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 2.00GHz stepping : 7 cpu MHz : 1994.991 cache size : 512 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 3940.35 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 2.00GHz stepping : 7 cpu MHz : 1994.991 cache size : 512 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 3981.31 [root at nagiosnet /root]# free total used free shared buffers cached Mem: 2074948 1986060 88888 0 391036 218924 -/+ buffers/cache: 1376100 698848 Swap: 2096472 33232 2063240 [root at nagiosnet /root]# =================================================== And my nagios host&service show on below =================================================== [root at nagiosnet /root]# service nagios perf Nagios performance check Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Warning: Host '340-mtg2.some-domain.com' has no services associated with it! Warning: Host '340-mtg3.some-domain.com' has no services associated with it! Warning: Host '340-mtg5.some-domain.com' has no services associated with it! Warning: Host '400-mtg1.some-domain.com' has no services associated with it! Warning: Host '400-mtg2.some-domain.com' has no services associated with it! Warning: Host '400-mtg3.some-domain.com' has no services associated with it! Warning: Host 'adsl-mtg1.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg23.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg41.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg42.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg43.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg44.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg45.some-domain.com' has no services associated with it! Warning: Host 'bbr-bkkmtg46.some-domain.com' has no services associated with it! Warning: Host 'c2n-mtg1.some-domain.com' has no services associated with it! Warning: Host 'isdn-mtg1.some-domain.com' has no services associated with it! Warning: Host 'mega-mtg1' has no services associated with it! Warning: Host 'nagios-server' has no services associated with it! Warning: Host 'onecard-mtg1.some-domain.com' has no services associated with it! Warning: Host 'sw-colo0.some-domain.com' has no services associated with it! Warning: Host 'sw-colo1.some-domain.com' has no services associated with it! Warning: Host 'sw-colo2.some-domain.com' has no services associated with it! Warning: Host 'sw-colo3.some-domain.com' has no services associated with it! Warning: Host 'sw-colo4.some-domain.com' has no services associated with it! Warning: Host 'sw-colo5.some-domain.com' has no services associated with it! Warning: Host 'wifi-mtg1.some-domain.com' has no services associated with it! Warning: Host 'wifi-mtg2.some-domain.com' has no services associated with it! Warning: Contact group 'bangkokpost' is not used in any host/service definitions or host/service escalations! Warning: Contact group 'sys_admin' is not used in any host/service definitions or host/service escalations! Projected scheduling information for host and service checks is listed below. This information assumes that you are going to start running Nagios with your current config files. HOST SCHEDULING INFORMATION --------------------------- Total hosts: 170 Total scheduled hosts: 170 Host inter-check delay method: NONE Host inter-check delay: 0.00 sec Max host check spread: 5 min First scheduled check: Tue Sep 4 21:09:17 2007 Last scheduled check: Tue Sep 4 21:09:17 2007 SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 1084 Total scheduled services: 1084 Service inter-check delay method: NONE Inter-check delay: 0.00 sec Interleave factor method: SMART Average services per host: 6.38 Service interleave factor: 7 Max service check spread: 5 min First scheduled check: Tue Sep 4 21:09:17 2007 Last scheduled check: Tue Sep 4 21:09:17 2007 CHECK PROCESSING INFORMATION ---------------------------- Service check reaper interval: 3 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS ----------------------- * Host checks might be scheduled too closely together - consider increasing 'check_interval' option for your hosts =================================================== >From my requirement, I need to monitor all service and alert not more than 5 minutes with 3 checking interval. My server didn't load at all (check from "vmstat" command). Anybody have idea for tune-up with this requirement. My target is "NCSA" with other server for reduce load. But I think my old server didn't load at all. -_-" =================================================== [root at nagiosnet /root]# vmstat 1 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 2 33232 82564 393900 223860 0 0 2 12 8 6 10 7 32 52 0 1 33232 82316 394024 224256 0 0 124 268 1041 170 0 1 40 60 0 2 33232 82068 394164 224376 0 0 140 8 1042 184 0 0 43 57 0 4 33232 81572 394296 224504 0 0 116 804 1045 186 0 0 20 81 0 1 33232 81448 394396 224664 0 0 100 484 1052 174 0 1 20 79 0 1 33232 81200 394544 224516 0 0 148 0 1041 214 1 2 43 54 0 1 33232 80952 394712 224868 0 0 168 0 1052 199 0 0 39 61 0 1 33232 80580 394876 224964 0 0 164 0 1045 189 0 1 40 60 0 1 33232 80208 395020 225080 0 0 144 0 1044 184 0 0 45 54 0 3 33232 79836 395124 225236 0 0 84 1576 1037 190 0 1 16 83 0 1 33232 79712 395196 225424 0 0 72 580 1049 152 0 0 29 71 =================================================== Thank, Gillnaldo SC --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Tue Sep 4 16:28:51 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Tue, 4 Sep 2007 10:28:51 -0400 Subject: Ftp issue In-Reply-To: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> Message-ID: <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> We use SNMP Informant to track and alarm on any Performance Counter value. I believe check_nt and nsclient++ will let you do the same thing. ==ml On Tue, Sep 04, 2007 at 07:57:04PM +0530, vadi wrote: > Dear All, > > How I can configures to monitor number of session and number of ftp > user login (its windows system). > > Due to max connection, my ftp server is always going died. > > I need to configure maximize parameter for monitor windows ftp. > > check_ftp plug-in will not give better information for me. > > I kindly request you people to help me. > > Thanks, > Vadiraj > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Tue Sep 4 16:36:53 2007 From: vadi.ksdba at gmail.com (vadi) Date: Tue, 4 Sep 2007 20:06:53 +0530 Subject: Ftp issue In-Reply-To: <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> Message-ID: <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> Dear Michael, First let me tell thanks for all your help !!! I am not possible to monitor the total number of users connected to window ftp server. I don't think we can use check_nt and nsclient++ for this ? If you know any thing ?please help me Thanks, Vadiraj On 9/4/07, Michael W. Lucas wrote: > > We use SNMP Informant to track and alarm on any Performance Counter > value. > > I believe check_nt and nsclient++ will let you do the same thing. > > ==ml > > On Tue, Sep 04, 2007 at 07:57:04PM +0530, vadi wrote: > > Dear All, > > > > How I can configures to monitor number of session and number of ftp > > user login (its windows system). > > > > Due to max connection, my ftp server is always going died. > > > > I need to configure maximize parameter for monitor windows ftp. > > > > check_ftp plug-in will not give better information for me. > > > > I kindly request you people to help me. > > > > Thanks, > > Vadiraj > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > http://www.BlackHelicopters.org/~mwlucas/ > Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > reasons." > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Sep 4 17:20:49 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 04 Sep 2007 17:20:49 +0200 Subject: Modbus/TCP?? In-Reply-To: <049b01c7ef00$e4cb84d0$4d00a8c0@andrew2> References: <049b01c7ef00$e4cb84d0$4d00a8c0@andrew2> Message-ID: <46DD77D1.3090003@op5.se> Andrew Cruse wrote: > Thanks Andreas -- I'm sure this will be a big help! > Well, it's a starting point anyways. I'm not so sure about how useful the actual modbus code is, but I guess you'll have to figure that out on your own. Should you improve on it in any way, I'd be happy to apply your patches to my copy, so all further work can be done on top of a common codebase. Cheers -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Sep 4 17:23:33 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 04 Sep 2007 17:23:33 +0200 Subject: Nagios service latency on Service (1000+) In-Reply-To: <733997.71474.qm@web32212.mail.mud.yahoo.com> References: <733997.71474.qm@web32212.mail.mud.yahoo.com> Message-ID: <46DD7875.4000701@op5.se> Too much nonsensical info. What's the actual question? On a side-note, nobody likes cut'n paste of HW specs. Error messages: yes. /proc/*: No. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fabio.iovine at gmail.com Tue Sep 4 17:38:45 2007 From: fabio.iovine at gmail.com (Fabio Iovine) Date: Tue, 4 Sep 2007 17:38:45 +0200 Subject: Nagios-users Digest, Vol 16, Issue 4 In-Reply-To: References: Message-ID: <509069220709040838w6d2b8dfai83ec86d7d5719f55@mail.gmail.com> Thanx for your help but I succeded in using the macro/variables in my script in the meantime. Quoting was not the solution, I had already tried to use single quotes and double quotes but they didn't work. then I discovered the nagios env variables and I used them, so, instead to pass the $HOSTNAME$ to my script I tried using $NAGIOS_HOSTNAME inside it and it was ok. thanks as well, regards, fabio On 9/4/07, nagios-users-request at lists.sourceforge.net wrote: > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 03 Sep 2007 21:12:16 +0200 > From: Arno Lehmann > Subject: Re: [Nagios-users] Nagio & TEC > To: nagios-users at lists.sourceforge.net > Message-ID: <46DC5C90.3050701 at its-lehmann.de> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > 03.09.2007 15:10,, Fabio Iovine wrote:: > > hi all, > > > > I need to forward Nagios alarm events to TEC (Tivoli Enterprise Monitor). > > > > For this reason I wrote a couple of shell-scripts to handle Nagios > > servicestate and change them in TEC suitable severity codes. > > > > Then I try to forward these event to TEC by using a Tivoli command but > > I have problems with SERVICEOUTPUT/HOSTOUTPUT which are truncated. > > > > let's make some fixed points; these are the twho commands I defined in > > my commands.cfg file: > > > > # 'service-notify-by-postemsg' command definition > > > > define command{ > > > > command_name service-notify-by-postemsg > > > > command_line $USER3$/service-nagios-postemsg.sh `$DATE$` `$TIME$` `$HO > > You should change these quotes to something more useful, like ' or " > and make sure any special characters you pass are correctly quoted (or > handled by your script correctly). IIRC, Nagios calls the commands you > define using /bin/sh, and that might understand unexpected things... > > > STNAME$` `$SERVICESTATE$` `$SERVICEOUTPUT$` > > > > } > > > > # 'host-notify-by-postemsg' command definition > > > > define command{ > > > > command_name host-notify-by-postemsg > > > > command_line $USER3$/host-nagios-postemsg.sh $DATE$ $TIME$ $HOSTNAME$ > > Also, put qoutes around the variables. As long as you forbid any > potentilly insecure characters in Nagios' configuration (the default, > IIRC), " should work fine. > > > $HOSTSTATE$ $HOSTOUTPUT$ > > > > } > > > > the two files have the following inside them: > > > > date=$1 > > Again, qouting... > > ... > > > > what really happen to me is that the $hostoutput wich should contain > > the $HOSTOUTPUT$ text is truncated right after the first word, for > > istance: > > > > $HOSTOUTPUT$ = JMX ATTRIBUTE CRITICAL - > > jboss.j2ee:jndiName=ejb/GameTransactionSystem,service=EJB-StateString: > > > > become $hostoutput = JMX > > > > do you have any idea? > > Sure. Quoting. > To verify this, try to enter the line you give above into the shell... > you'll get something else than only a variable assignment. > > Arno > > > thanx in advance, > > > > Fabio > > > > ------------------------------------------------------------------------- > Arno Lehmann > IT-Service Lehmann > www.its-lehmann.de > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rab at walkermartyn.co.uk Tue Sep 4 17:50:34 2007 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Tue, 4 Sep 2007 16:50:34 +0100 Subject: 3Com SuperStack Switch Monitoring Message-ID: Anyone got or know where to get a plug-in to monitor 3Com SuperStack switches? Or is best to write my own? Regards, Rab. =========================================================== Robert Jackson Phone: +44 (0) 141 332 7999 Software Engineer Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk =========================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rfmohr at osc.edu Tue Sep 4 18:08:28 2007 From: rfmohr at osc.edu (Richard Mohr) Date: Tue, 04 Sep 2007 12:08:28 -0400 Subject: "notification_interval" from the "serviceescalation" is ignored? In-Reply-To: <1955253301@web.de> References: <1955253301@web.de> Message-ID: <1188922108.4829.62.camel@squeak> (Ilya: I have added the nagios-users mailing list back into the CC list. Always make sure to include the mailing list so that others can follow the discussion and possibly learn from it.) On Sat, 2007-09-01 at 09:35 +0200, zucker4 at web.de wrote: > > On Fri, 2007-08-31 at 09:56 +0200, Ilya Ruprecht wrote: > > > > > Ok, i understand. But netherless, something is wrong - > > > look at my posting: > > > > > > the "notification_interval" of SSH is set to 60, but i became > > > ALL notifications in 10 minute interval. > > > > In your original post, you said you defined this escalation: > > > > define serviceescalation{ > > hostgroup_name vpn-server > > service_description SSH > > first_notification 1 > > last_notification 5 > > notification_interval 3 > > contact_groups linux-admins > > } > > > > That escalation takes effect on the first notification, and thus > > notification_interval gets changed to "3". With the two escalations you > > defined, the "notification_interval 60" line from your service > > definition never takes effect. > > Exactly! That's what i mean! Neither the notification_interval from the service-definition, nor > the notification_interval from the serviceescalation-definition was considered. Yes, they are both considered. It's just that the notification_interval from your escalation overrides the value from the service definition. > But where then the 10-minutes interval came from? from the "check_interval" from service-definition? Yes. That is what happens when you have a check_interval that is greater than the notification_interval. A notification_interval of "3" does not guarantee that notifications will be sent every 3 minutes. It only guarantees that consecutive notifications will be 3 or more minutes apart. If the check_interval is 10, then you will get notifications every 10 minutes. -- Rick Mohr Systems Developer Ohio Supercomputer Center ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Tue Sep 4 18:49:20 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Tue, 4 Sep 2007 12:49:20 -0400 Subject: Newbie: creating custom notification messages Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD8F18@XCH-VN01.sph.ad.jhsph.edu> I'm trying to monitor the room temperature in my server room using SNMP and the sensor built into Dell PowerEdge servers. I've got the check_snmp plugin working on my Debian etch system: cn2:/etc/nagios2# /usr/lib/nagios/plugins/check_snmp -H 10.253.192.204 -o .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3 -w 267 -c 322 SNMP OK - 240 | iso.3.6.1.4.1.674.10892.1.700.20.1.6.1.3=240 cn2:/etc/nagios2# The Dell sensor returns temperature in tenths of a degree Celsius, so I have a warning at 80F (26.7C) and critical at 90F (32.2C). This seems to be working correctly in my Nagios setup. To avoid doing any math, I'd like to just send hard-coded warning and critical email messages. I've defined the messages in /etc/nagios2/commands.cfg: # 'temp-warn-notify-by-email' command definition # Use this notification if the temperature exceeds 80F (26.7C) in the server room define command{ command_name temp-warn-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nWarning: Temperature in CCP server room exceeds 80F. Probable air conditioning failure.\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** Temperature in CCP server room exceeds 80F **" $CONTACTEMAIL$ } # 'temp-crit-notify-by-email' command definition # Use this notification if the temperature exceeds 90F (32.2C) in the server room define command{ command_name temp-crit-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nCRITICAL: Temperature in CCP server room exceeds 90F. Probable air conditioning failure.\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** Temperature in CCP server room exceeds 90F **" $CONTACTEMAIL$ } At this point, I don't know where to tell Nagios to use these two messages rather than the more generic ones for temperature alerts. Also, I don't know how to tell it to use one message for warning and the other for critical errors. Is this possible? Finally, do I also need to write two recovery messages to match the warning and critical ones (if I want them to be easily understood by non-technical recipients), or just one for both conditions? I also welcome any advice or guidance anyone offers regarding my overall approach and specific coding of the messages above. I appreciate all the folks who offered suggestions on my earlier question of how to do calculations in Nagios. I decided that it would be easier to just hard-code the two messages, and I'll work on a more generic approach next. Thanks, again, for your suggestions and advice. -Kevin Kevin Zembower Internet Services Group manager Center for Communication Programs Bloomberg School of Public Health Johns Hopkins University 111 Market Place, Suite 310 Baltimore, Maryland 21202 410-659-6139 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Tue Sep 4 18:57:46 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 4 Sep 2007 12:57:46 -0400 Subject: Ftp issue In-Reply-To: <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> Message-ID: Performance counters or WMI are the best ways to get this information. the problem is how to retrieve the data from one of these 2 sources. If you are able to install an agent on your windows host, then you would be able to retrieve this information from several differnet agents. for example, NRPE, NC_Net, NSClient++ allow running script that are loaded onto the windows host. Check_nt with nsClient++ or nc_Net allow access to performance couunters as well as other checks. Through scripts or NC_NEt you can also get this informaiton from WMI. If no agent can be installed then your should use something like SNMP to monitor the performance counters.(like was suggested earlier) Also you could always configure your check_ftp to alert you right away on first failure, and assume that is is because the connections are used up, If your hitting your connection limit, is it due to legitimate usage of FTP, or just people remaining connected and idle that should have timed out? maybe there are settings you can apply to your FTP server to help reduce the issue from occuring. Good Luck, Tony (author of NC_Net) On 9/4/07, vadi wrote: > > Dear Michael, > > First let me tell thanks for all your help !!! > > I am not possible to monitor the total number of users connected to > window ftp server. > I don't think we can use check_nt and nsclient++ for this ? > If you know any thing ?please help me > > Thanks, > Vadiraj > > > > > > On 9/4/07, Michael W. Lucas wrote: > > > > We use SNMP Informant to track and alarm on any Performance Counter > > value. > > > > I believe check_nt and nsclient++ will let you do the same thing. > > > > ==ml > > > > On Tue, Sep 04, 2007 at 07:57:04PM +0530, vadi wrote: > > > Dear All, > > > > > > How I can configures to monitor number of session and number of ftp > > > user login (its windows system). > > > > > > Due to max connection, my ftp server is always going died. > > > > > > I need to configure maximize parameter for monitor windows ftp. > > > > > > check_ftp plug-in will not give better information for me. > > > > > > I kindly request you people to help me. > > > > > > Thanks, > > > Vadiraj > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > > http://www.BlackHelicopters.org/~mwlucas/ > > Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com > > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > > reasons." > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 4 19:08:53 2007 From: marc at ena.com (Marc Powell) Date: Tue, 4 Sep 2007 12:08:53 -0500 Subject: Nagios service latency on Service (1000+) In-Reply-To: <733997.71474.qm@web32212.mail.mud.yahoo.com> References: <733997.71474.qm@web32212.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of sunchai (gillnaldo : sun) > Sent: Tuesday, September 04, 2007 9:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios service latency on Service (1000+) > HOST SCHEDULING INFORMATION > --------------------------- > Total hosts: 170 > Total scheduled hosts: 170 > Host inter-check delay method: NONE > Host inter-check delay: 0.00 sec > Max host check spread: 5 min > First scheduled check: Tue Sep 4 21:09:17 2007 > Last scheduled check: Tue Sep 4 21:09:17 2007 > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 1084 > Total scheduled services: 1084 > Service inter-check delay method: NONE > Inter-check delay: 0.00 sec > Interleave factor method: SMART > Average services per host: 6.38 > Service interleave factor: 7 > Max service check spread: 5 min > First scheduled check: Tue Sep 4 21:09:17 2007 > Last scheduled check: Tue Sep 4 21:09:17 2007 > > > CHECK PROCESSING INFORMATION > ---------------------------- > Service check reaper interval: 3 sec > Max concurrent service checks: Unlimited > > > PERFORMANCE SUGGESTIONS > ----------------------- > * Host checks might be scheduled too closely together - consider > increasing 'check_interval' option for your hosts Unless you have exceptional circumstances, you should have no scheduled host checks. Nagios will stop _all_ other processing while hosts are being checked. Marked increase in check latency is a known result of scheduling host checks. Nagios contains logic to automagically schedule host checks on an as-needed basis. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host "check_interval: NOTE: Do NOT enable regularly scheduled checks of a host unless you absolutely need to! Host checks are already performed on-demand when necessary, so there are few times when regularly scheduled checks would be needed. Regularly scheduled host checks can negatively impact performance - see the performance tuning tips for more information. This directive is used to define the number of "time units" between regularly scheduled checks of the host. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation." http://nagios.sourceforge.net/docs/2_0/checkscheduling.html#host_checks -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Tue Sep 4 21:47:31 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Tue, 4 Sep 2007 15:47:31 -0400 Subject: Ftp issue In-Reply-To: <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> Message-ID: <20070904194731.GB731@bewilderbeast.blackhelicopters.org> Hi, I no longer have access to a Windows FTP server, sorry. However, I believe there is a Performance Monitor counter for current FTP users. If there is a Performance Monitor value, I know that SNMP will give that to you. I use SNMP Informant, you will probably find additional tools if you look. I believe that NSClient++ can also report on arbitrary performance monitor counters. Check Perfmon. If you can identify a counter that provides the current number of FTP users -- that is, if Windows provides the information -- than these tools will alarm on it for you. ==ml On Tue, Sep 04, 2007 at 08:06:53PM +0530, vadi wrote: > Dear Michael, > > First let me tell thanks for all your help !!! > > I am not possible to monitor the total number of users connected to > window ftp server. > I don't think we can use check_nt and nsclient++ for this ? > If you know any thing ?please help me > > Thanks, > Vadiraj > > > > > > On 9/4/07, Michael W. Lucas wrote: > > > > We use SNMP Informant to track and alarm on any Performance Counter > > value. > > > > I believe check_nt and nsclient++ will let you do the same thing. > > > > ==ml > > > > On Tue, Sep 04, 2007 at 07:57:04PM +0530, vadi wrote: > > > Dear All, > > > > > > How I can configures to monitor number of session and number of ftp > > > user login (its windows system). > > > > > > Due to max connection, my ftp server is always going died. > > > > > > I need to configure maximize parameter for monitor windows ftp. > > > > > > check_ftp plug-in will not give better information for me. > > > > > > I kindly request you people to help me. > > > > > > Thanks, > > > Vadiraj > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > > http://www.BlackHelicopters.org/~mwlucas/ > > Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com > > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > > reasons." > > -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Tue Sep 4 22:06:49 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 4 Sep 2007 16:06:49 -0400 Subject: Ftp issue In-Reply-To: <20070904194731.GB731@bewilderbeast.blackhelicopters.org> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> Message-ID: Yes Windows has the following performance counters , for the Category of "FTP Service" FTP Service: Bytes Sent/sec; Bytes Received/sec; Bytes Total/sec; Total Files Sent; Total Files Received; Total Files Transferred; Current Anonymous Users; Current NonAnonymous Users; Total Anonymous Users; Total NonAnonymous Users; Maximum Anonymous Users; Maximum NonAnonymous Users; Current Connections; Maximum Connections; Total Connection Attempts (all instances); Total Logon Attempts; FTP Service Uptime tony (author of NC_Net) On 9/4/07, Michael W. Lucas wrote: > > Hi, > > I no longer have access to a Windows FTP server, sorry. > > However, I believe there is a Performance Monitor counter for current > FTP users. If there is a Performance Monitor value, I know that SNMP > will give that to you. I use SNMP Informant, you will probably find > additional tools if you look. > > I believe that NSClient++ can also report on arbitrary performance > monitor counters. > > Check Perfmon. If you can identify a counter that provides the > current number of FTP users -- that is, if Windows provides the > information -- than these tools will alarm on it for you. > > ==ml > > On Tue, Sep 04, 2007 at 08:06:53PM +0530, vadi wrote: > > Dear Michael, > > > > First let me tell thanks for all your help !!! > > > > I am not possible to monitor the total number of users connected to > > window ftp server. > > I don't think we can use check_nt and nsclient++ for this ? > > If you know any thing ?please help me > > > > Thanks, > > Vadiraj > > > > > > > > > > > > On 9/4/07, Michael W. Lucas wrote: > > > > > > We use SNMP Informant to track and alarm on any Performance Counter > > > value. > > > > > > I believe check_nt and nsclient++ will let you do the same thing. > > > > > > ==ml > > > > > > On Tue, Sep 04, 2007 at 07:57:04PM +0530, vadi wrote: > > > > Dear All, > > > > > > > > How I can configures to monitor number of session and number of ftp > > > > user login (its windows system). > > > > > > > > Due to max connection, my ftp server is always going died. > > > > > > > > I need to configure maximize parameter for monitor windows ftp. > > > > > > > > check_ftp plug-in will not give better information for me. > > > > > > > > I kindly request you people to help me. > > > > > > > > Thanks, > > > > Vadiraj > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > > > > Still grepping through log files to find problems? Stop. > > > > Now Search log events and configuration files using AJAX and a > browser. > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > -- > > > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > > > http://www.BlackHelicopters.org/~mwlucas/ > > > Coming Soon: "Absolute FreeBSD" -- > http://www.AbsoluteFreeBSD.com > > > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > > > reasons." > > > > > -- > Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org > http://www.BlackHelicopters.org/~mwlucas/ > Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com > On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security > reasons." > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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-user at proy.org Tue Sep 4 22:21:42 2007 From: nagios-user at proy.org (Patrick Proy) Date: Tue, 4 Sep 2007 22:21:42 +0200 Subject: Switch Port Monitoring Advice In-Reply-To: References: Message-ID: <018b01c7ef31$35494a20$2900a8c0@telindus.intra> Hi, Monitoring switch ports is in much case useless as you often monitor the servers behind. In case you want to do this, and test the traffic flow through them, I think the best way is to use snmmp and group the testing of ports in a few (or one) services to minimize snmp queries, and only select the ports which should be up (and/or test other ports to be down). About 3COM Superstack switches, what do you exactly want to monitor ? Did you look in www.nagiosexchange.org or specific to snmp http://nagios.manubulon.com ? Regards, Patrick -----Message d'origine----- De : nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Robert Jackson Envoy? : mardi 4 septembre 2007 16:22 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Switch Port Monitoring Advice I'm currently in the process of setting up Nagios to monitor our internal network. As part of this process, I want to monitor switch ports and probably make them the parent of the device connected to them. What is the best way of going about monitoring switch ports? In particular, if the individual ports have to be set-up as a host (?), the check_host_alive script (used for normal hosts) surely is not relevant? I really want to check specific ports are enabled, up and traffic is flowing to/from them. Does this mean that I only want to monitor the ports I have purposely enabled and don't bother monitoring the ones not enabled? Regards, Rab. =========================================================== Robert Jackson Phone: +44 (0) 141 332 7999 Software Engineer Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk =========================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From augusts at gmail.com Wed Sep 5 00:48:39 2007 From: augusts at gmail.com (August Simonelli) Date: Wed, 5 Sep 2007 08:48:39 +1000 Subject: need help with my custom perl plugin Message-ID: <46fa40c10709041548i13fc2379k9c0378d07104d345@mail.gmail.com> Hey all ... I need to use nagios to check that a remote mail server can reach its relay. the remote mail server is an appliance and all i can do on it is run a telnet. to do this i've written a perl plugin that ssh's from the nagios box to the appliance and then executes a telnet to the mail relay's port 25. the script works perfectly on the command line - i can get all states (warn, crit and ok). Now, when i move it into nagios, i can only get critical and warning states. for some reason, my test and exit for the OK state just gets missed and the plugin returns the default warning status from the scripts last few lines (see below). i'm new to perl and nagios plugin writing, so i've probably messed up some fundamental thing here ... but i can't seem to get it ... any thoughts/corrections/criticisms/comments are greatly appreciated. here's the script: #!/usr/bin/perl -w use strict; use utils qw(%ERRORS $TIMEOUT); # in case we just hang - $SIG{ALRM} = sub { print "CRITICAL: Plugin timed out.\n"; exit 2 }; alarm(10); my ($host, $key, $remote) = @ARGV; unless ($host and $key and $remote) { die "Usage: $0 hostname ssh_key remote_mail_server\n"; } # default error # my $connect_result = "Remote Test Failure"; open (SSH, "ssh -i $key $host telnet $remote 25|") or die "Can't open pipe: $!"; # iterate through the loop and skip lines that don't have what we want. then, store the last var - we know the telnet action is 4 lines while (){ next if /^Trying/; next if /^Connected/; next if /^Escape/; if ($_ =~ /^220/) { print "$_ this works"; exit($ERRORS{'OK'}); } else { print "Connect died at: $_"; exit($ERRORS{'CRITICAL'}); } close SSH; } print "fell thru"; exit($ERRORS{'WARNING'}); close SSH; again, if i change the if statements to create an error (change ^Trying to ^rying for instance) nagios reports critical and clearly uses: else { print "Connect died at: $_"; exit($ERRORS{'CRITICAL'}); } and $_ is set to the line that didn't match and caused the error ... but when all those conditions ARE met nagios always makes it right past if ($_ =~ /^220/) { print "$_ this works"; exit($ERRORS{'OK'}); and gives me print "fell thru"; exit($ERRORS{'WARNING'}); printing out $_ in the while loop has the expected 220 line ... ok ... hope this is not too verbose; sorry if this is just such bad code that you all wanna slap me down! :-) thanks, august ps. the service is defined as (names changed to protect the innocent): define service{ host_name mailhost service_description smtp relay check test is_volatile 0 check_command check_smtp_relay!/usr/local/nagios/.ssh/id_dsa!remoterelay.mydomain.com# max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 check_period 24x7 notification_interval 240 notification_period 24x7 notification_options w,u,c,r contact_groups unix-admins } and the command is: define command{ command_name check_smtp_relay command_line $USER1$/smtpchecker.pl $HOSTADDRESS$ $ARG1$ $ARG2$ } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivera01 at sbcglobal.net Wed Sep 5 00:58:58 2007 From: rivera01 at sbcglobal.net (David Rivera) Date: Wed, 5 Sep 2007 00:58:58 +0200 (CEST) Subject: Solaris10 (Sparc) Message-ID: <20070904225858.4AEF7580073@desire.netways.de> Hi list I see that Solaris10 on x86 works a a Nagios server, so does that mean that sparc based servers will not work? thanks David - David Rivera ( ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rivera01 at sbcglobal.net Wed Sep 5 00:59:11 2007 From: rivera01 at sbcglobal.net (David Rivera) Date: Wed, 5 Sep 2007 00:59:11 +0200 (CEST) Subject: Solaris10 (Sparc) Message-ID: <20070904225911.A77AC580073@desire.netways.de> Hi list I see that Solaris10 on x86 works a a Nagios server, so does that mean that sparc based servers will not work? thanks David - David Rivera ( ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msugano at uolinc.com Wed Sep 5 00:55:44 2007 From: msugano at uolinc.com (Marcel Mitsuto Fucatu Sugano) Date: Tue, 04 Sep 2007 19:55:44 -0300 Subject: need help with my custom perl plugin In-Reply-To: <46fa40c10709041548i13fc2379k9c0378d07104d345@mail.gmail.com> References: <46fa40c10709041548i13fc2379k9c0378d07104d345@mail.gmail.com> Message-ID: <1188946544.18531.6.camel@localhost> Comments inline: On Wed, 2007-09-05 at 08:48 +1000, August Simonelli wrote: > > > but when all those conditions ARE met nagios always makes it right > past > > if ($_ =~ /^220/) { > print "$_ this works"; > exit($ERRORS{'OK'}); > > and gives me > > print "fell thru"; > exit($ERRORS{'WARNING'}); > > printing out $_ in the while loop has the expected 220 line ... > Probably, telnet responds something different that the regexp match expects, like "\r220: (...)", so if 220 is the OK condition, try removing the leading "^", and you're done. HTH AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) acima referido(s), podendo conter informa??es sigilosas e/ou legalmente protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de seus anexos ? absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. Informa??es adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail?s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From holger at CIS.FU-Berlin.DE Wed Sep 5 01:05:11 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Wed, 5 Sep 2007 01:05:11 +0200 Subject: Solaris10 (Sparc) In-Reply-To: <20070904225911.A77AC580073@desire.netways.de> References: <20070904225911.A77AC580073@desire.netways.de> Message-ID: <20070904230511.GT6828@CIS.FU-Berlin.DE> * David Rivera [2007-09-05 00:59]: > I see that Solaris10 on x86 works a a Nagios server, so does that mean > that sparc based servers will not work? It works fine for me on SPARC. Holger ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fagundes.pacheco at gmail.com Wed Sep 5 01:05:44 2007 From: fagundes.pacheco at gmail.com (Rodrigo Pacheco) Date: Tue, 4 Sep 2007 20:05:44 -0300 Subject: Nagios 2.9 NDOUtils 1.4b5 Debian 4.0ro mysql-server-5.0 problem Message-ID: <924eed8b0709041605y775e3767n9b2f0b81f7307b75@mail.gmail.com> Friends, I configured Nagios 2,9 with support the NDOUtils 1.4b5 and mysql-server-5.0, I am monitoring some hosts I believe that ndoutils this not functioning. it follows nagios.log: [04-09-2007 16:41:09] Finished daemonizing... (New PID=450) [04-09-2007 16:41:09] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. [04-09-2007 16:41:09] Error: Function nebmodule_init() in module '/usr/local/nagios/bin/ndomod.o' returned an error. Module will be unloaded. [04-09-2007 16:41:09] ndomod: NDOMOD 1.4b4 (06-19-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) [04-09-2007 16:41:09] LOG VERSION: 2.0 [04-09-2007 16:41:09] Nagios 2.9 starting... (PID=449) what this happening? best regards Rodrigo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtownrobbrown at gmail.com Wed Sep 5 01:51:40 2007 From: dtownrobbrown at gmail.com (Rob Brown) Date: Tue, 4 Sep 2007 16:51:40 -0700 Subject: Distributed config admin tool? In-Reply-To: <20070904022209.GQ6166@campin.net> References: <3ec83c030708301311p56c9d55u45931f712daf1dcd@mail.gmail.com> <6546343904687E41B19D8E5A26AB9F5331B07D@E03MVB2-UKBR.domain1.systemhost.net> <20070904022209.GQ6166@campin.net> Message-ID: Thanks, but most of these answers seem to be based around distributing the configs. All good answers, but not really what I was looking for. I am more interested in how to GENerate the configs (ie: adding hosts, services etc) for a distributed setup, without having to add things twice (once on master as passive, then again on distributed as active, yadda yadda) We currently have an in-house tool that we use to manage the master config but it was written years ago (back when there were none) and does not have this capability. Since we are planning to break up our monolithic Nagios cluster into distributed sites, we wanted to evaluate any config tools that already have this capability to see if they are worth using versus spending time retrofitting ours. So far, it seems OpsView has the features to support this, but migrating may be a bit of a chore. I will be installing it so I can at least take a peek under the hood for some ideas. On 9/3/07, Nate Campi wrote: > I use cfengine, and have it down to where I can setup a new Nagios > instance or setup a failed Nagios instance in minutes. > > I have a single Nagios filesystem hierarchy that helps ensure that the > central and distributed services and host definitions are exactly the > same - using symlinks. > [snip] > None of this is original, of course, but along with cfengine it makes it > a breeze to manage. If people really care, I could put up a better > description of how I did it. > > On Fri, Aug 31, 2007 at 08:29:18AM +0100, tom.welsh at bt.com wrote: > > Yes, I'd second cfengine. Though rsync is a simple quick fix > > > > ________________________________ > > > > From: nagios-users-bounces at lists.sourceforge.net on behalf of Bill Omer > > Sent: Thu 30/08/2007 21:11 > > To: Rob Brown > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Distributed config admin tool? > > > > > > > > On 8/30/07, Rob Brown wrote: > > > Are there any configuration admin tools out there that are multi-site > > > aware to be able to manage a distributed nagios setup (multiple > > > sites/servers)? > > > I am in the planning stages of expanding from a single pair (failover) > > > to distributed servers and am looking for a tool to help manage the > > > configs. > > > How are you admins with distributed sites managing them? > > > > > > You may want to take a look at cfengine. It's pretty robust, and can > > support much more than just nagios configs. > > > > -Bill > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From augusts at gmail.com Wed Sep 5 02:46:28 2007 From: augusts at gmail.com (August Simonelli) Date: Wed, 5 Sep 2007 10:46:28 +1000 Subject: need help with my custom perl plugin In-Reply-To: <1188946544.18531.6.camel@localhost> References: <46fa40c10709041548i13fc2379k9c0378d07104d345@mail.gmail.com> <1188946544.18531.6.camel@localhost> Message-ID: <46fa40c10709041746m3c8927c3t5aadfadad58f66e4@mail.gmail.com> good thought on perms - i double checked and i'm running as nagios so all good there ... marcel i think you are right, my match condition is just wrong for some reason ... when i change the while loop to: while (){ next if /^Trying/; next if /^Connected/; if ($_ =~ /Escape/) { print "success $_"; exit($ERRORS{'OK'}); } else { print "Connect died at: $_"; exit($ERRORS{'CRITICAL'}); } this works and nagios reports OK. but if i let it get to that last line, which is the 220 line, it won't match. i'm guessing this is something to do with how the while loop handles the last line of input and places it into $_ but i don't get why nagios doens't see it and command line works ... i'll keep trying and if anyone spots it please let me know! august On 9/5/07, Marcel Mitsuto Fucatu Sugano wrote: > > Comments inline: > > On Wed, 2007-09-05 at 08:48 +1000, August Simonelli wrote: > > > > > > but when all those conditions ARE met nagios always makes it right > > past > > > > if ($_ =~ /^220/) { > > print "$_ this works"; > > exit($ERRORS{'OK'}); > > > > and gives me > > > > print "fell thru"; > > exit($ERRORS{'WARNING'}); > > > > printing out $_ in the while loop has the expected 220 line ... > > > > Probably, telnet responds something different that the regexp match > expects, like "\r220: (...)", so if 220 is the OK condition, try > removing the leading "^", and you're done. > > HTH > > > AVISO: A informa??o contida neste e-mail, bem como em qualquer de seus > anexos, ? CONFIDENCIAL e destinada ao uso exclusivo do(s) destinat?rio(s) > acima referido(s), podendo conter informa??es sigilosas e/ou legalmente > protegidas. Caso voc? n?o seja o destinat?rio desta mensagem, informamos que > qualquer divulga??o, distribui??o ou c?pia deste e-mail e/ou de qualquer de > seus anexos ? absolutamente proibida. Solicitamos que o remetente seja > comunicado imediatamente, respondendo esta mensagem, e que o original desta > mensagem e de seus anexos, bem como toda e qualquer c?pia e/ou impress?o > realizada a partir destes, sejam permanentemente apagados e/ou destru?dos. > Informa??es adicionais sobre nossa empresa podem ser obtidas no site > http://sobre.uol.com.br/. > > NOTICE: The information contained in this e-mail and any attachments > thereto is CONFIDENTIAL and is intended only for use by the recipient named > herein and may contain legally privileged and/or secret information. If you > are not the e-mail?s intended recipient, you are hereby notified that any > dissemination, distribution or copy of this e-mail, and/or any attachments > thereto, is strictly prohibited. Please immediately notify the sender > replying to the above mentioned e-mail address, and permanently delete > and/or destroy the original and any copy of this e-mail and/or its > attachments, as well as any printout thereof. Additional information about > our company may be obtained through the site http://www.uol.com.br/ir/. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Wed Sep 5 03:41:57 2007 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Tue, 4 Sep 2007 19:41:57 -0600 Subject: Format of status.dat file documented? Message-ID: <26face530709041841k600d5dcfx6cfa9e7a9fb7afc7@mail.gmail.com> Is the format of nagios' status.dat file documented anywhere? The file contains useful info, so I have my "nagios machine" push (rsync) the file to my other servers. This means machine X can tell if machine Y is up, even if the two machines can't talk to each other directly. I figured out service statuses 0,1,2,3 stand for OK, WARNING, CRITICAL, and UNKNOWN respectively (same as nagios plug-in exit codes). I was hoping host status would be the same, but it turns out 0 is OK and 1 is DOWN (this made sense to me later, since hosts don't really have a "WARNING" or "CRITICAL" state-- does UNREACHABLE = 2?). One concern: when I upgrade nagios, will the status.dat format remain consistent? Is there an "API" or something I should use instead? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kelly.terry.jones at gmail.com Wed Sep 5 03:49:53 2007 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Tue, 4 Sep 2007 19:49:53 -0600 Subject: Resetting variable to empty after template sets it Message-ID: <26face530709041849v3a2c6d1eq3480c18968ba27bc@mail.gmail.com> I have a template "foo" that says, in part, "parents bar". If I want to use this template for a specific host, but change the parents to "ding", that's easy: use foo parents ding But how do I set parents back to the empty value (ie, the default value you get if you don't set parents at all). I tried: parents "" and several variations, but this didn't work. I realize I could just avoid using the template for that host, but that seems ugly. Right now, I'm overriding with "parents localhost", but that makes my 2-D graph look weird. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rab at walkermartyn.co.uk Wed Sep 5 08:08:52 2007 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Wed, 5 Sep 2007 07:08:52 +0100 Subject: Switch Port Monitoring Advice References: <018b01c7ef31$35494a20$2900a8c0@telindus.intra> Message-ID: What I don't understanding, at the moment, is do I have to setup each of the ports as an individual host? Obviously the check_host_alive would check the switch itself is online and would not really be relevant to each of the ports. I was thinking of some kind of Link Status service, where I could pass a port number or group of port numbers, and get a status returned. In terms of 3Com switches, I see quite a lot of Cisco specific scripts and was wondering if anyone had done anything with 3Com switches. In particular I was interested in the uplink ports and traffic throughput. Regards, Rab. -----Original Message----- From: Patrick Proy [mailto:nagios-user at proy.org] Sent: Tuesday September 2007 21:22 To: Robert Jackson Cc: nagios-users at lists.sourceforge.net Subject: rab at walkermartyn.co.uk - Email found in subject - RE: [Nagios-users] Switch Port Monitoring Advice Hi, Monitoring switch ports is in much case useless as you often monitor the servers behind. In case you want to do this, and test the traffic flow through them, I think the best way is to use snmmp and group the testing of ports in a few (or one) services to minimize snmp queries, and only select the ports which should be up (and/or test other ports to be down). About 3COM Superstack switches, what do you exactly want to monitor ? Did you look in www.nagiosexchange.org or specific to snmp http://nagios.manubulon.com ? Regards, Patrick -----Message d'origine----- De : nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Robert Jackson Envoy? : mardi 4 septembre 2007 16:22 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Switch Port Monitoring Advice I'm currently in the process of setting up Nagios to monitor our internal network. As part of this process, I want to monitor switch ports and probably make them the parent of the device connected to them. What is the best way of going about monitoring switch ports? In particular, if the individual ports have to be set-up as a host (?), the check_host_alive script (used for normal hosts) surely is not relevant? I really want to check specific ports are enabled, up and traffic is flowing to/from them. Does this mean that I only want to monitor the ports I have purposely enabled and don't bother monitoring the ones not enabled? Regards, Rab. =========================================================== Robert Jackson Phone: +44 (0) 141 332 7999 Software Engineer Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk =========================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Sep 5 09:22:51 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 05 Sep 2007 09:22:51 +0200 Subject: Switch Port Monitoring Advice In-Reply-To: References: <018b01c7ef31$35494a20$2900a8c0@telindus.intra> Message-ID: <46DE594B.90200@op5.se> Robert Jackson wrote: > What I don't understanding, at the moment, is do I have to setup each of the > ports as an individual host? Obviously the check_host_alive would check the > switch itself is online and would not really be relevant to each of the ports. > No, you query the switch's SNMP engine for its various interface stats. > I was thinking of some kind of Link Status service, where I could pass a port > number or group of port numbers, and get a status returned. > That's how it works. > In terms of 3Com switches, I see quite a lot of Cisco specific scripts and was > wondering if anyone had done anything with 3Com switches. In particular I > was interested in the uplink ports and traffic throughput. > Traffic throughput and interface link status is in an oid tree shared between all vendors. It's when you start wanting to read CPU status, chassis temperature and fan speed you need to delve into the enterprise branch of the snmp tree. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Sep 5 09:25:12 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 05 Sep 2007 09:25:12 +0200 Subject: Solaris10 (Sparc) In-Reply-To: <20070904225858.4AEF7580073@desire.netways.de> References: <20070904225858.4AEF7580073@desire.netways.de> Message-ID: <46DE59D8.2070208@op5.se> David Rivera wrote: > Hi list > > I see that Solaris10 on x86 works a a Nagios server, so does that mean that sparc based servers will not work? > Any system with a C89 compiler and whatever dependencies your desired plugins have will, theoretically, work as a nagios server. Try and find out, basically. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrea.gabellini at telecomitalia.sm Wed Sep 5 10:48:21 2007 From: andrea.gabellini at telecomitalia.sm (Andrea Gabellini) Date: Wed, 05 Sep 2007 10:48:21 +0200 Subject: Solaris10 (Sparc) In-Reply-To: <20070904225858.4AEF7580073@desire.netways.de> References: <20070904225858.4AEF7580073@desire.netways.de> Message-ID: <46DE6D55.9000209@telecomitalia.sm> David, I'm ranning nagios 2.9 on a Sun Fire V240 and Solaris 10 11/06 Andrea David Rivera wrote: > Hi list > > I see that Solaris10 on x86 works a a Nagios server, so does that mean that sparc based servers will not work? > > thanks > David > > > - David Rivera ( > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.html > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- --------------------------------------- If you can't smile when things go wrong, you've something in mind to blame. --------------------------------------- Ing. Andrea Gabellini Email: andrea.gabellini at telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pablodav at gmail.com Wed Sep 5 13:30:22 2007 From: pablodav at gmail.com (Pablo Daniel Estigarribia Davyt) Date: Wed, 5 Sep 2007 08:30:22 -0300 Subject: Fwd: Problem with availability report In-Reply-To: <-6353974701269883647@unknownmsgid> References: <31e180f60709030457k39fab80r156a57f68727ca85@mail.gmail.com> <31e180f60709030551q17984053tbdbbfb7c2be93433@mail.gmail.com> <-359549191887232833@unknownmsgid> <31e180f60709031511o128fc1c2pdfbddf749f5a61c1@mail.gmail.com> <31e180f60709031514v3cbc3b28qdd6da6c8ca51f913@mail.gmail.com> <-6353974701269883647@unknownmsgid> Message-ID: <31e180f60709050430h1df4b96aq98021f6dbba22130@mail.gmail.com> Thank's for al Andy ! it start working, the problem was with permissions clearly, now it start working: MBFRBSLX0001:/etc/nagios2/conf.d# ls /var/log/nagios2/archives/ nagios-09-05-2007-00.log Br, 2007/9/3, Andy Shellam (Mailing Lists) : > > Hi Pablo, > > > > Yes, it looks as if your Nagios user does not have permissions to write to > /var/log/nagios2/archives. > > > > Do "chown nagios:adm /var/log/nagios2/archives", then when your logs are > rotated, you should get the old logs moved inside your archives directory, > and you'll be able to run historical reports. > > > > What you'll probably find is that currently, the reports are only picking > up the current day's data (as you only have today's log file.) > > > > Andy. > > > > > > *From:* Pablo Daniel Estigarribia Davyt [mailto:pablodav at gmail.com] > *Sent:* Monday, 03 September, 2007 11:15 pm > *To:* andy.shellam-lists at mailnetwork.co.uk > *Subject:* Re: [Nagios-users] Fwd: Problem with availability report > > > > Is possible it happens by file system rights ? > > XXXXXXXHOST:/etc/nagios2/conf.d# ll /var/log/nagios2/ > total 13552 > drwxr-xr-x 2 root root 4096 2007-03-04 20:56 archives > -rw-r--r-- 1 nagios adm 13850632 2007-09-03 19:11 nagios.log > > Br, > > 2007/9/3, Pablo Daniel Estigarribia Davyt : > > Hi Andy, > I opened and it says the current log file is: > /var/log/nagios2/nagios.log, so I on latest archive and it says the > following: Error: Could not open log file '/var/log/nagios2/archives/nagios- > 09-03-2007-00.log ' for reading! > Wen i see inside /var/log/nagios2/archives there are no file > inside. > Do you know how i can fix it? > > My /etc/nagios2/nagios.cfg has log_rotation_method=d, but there is only > /var/log/nagios2/nagios.log on my filesystem. > > > > Thanks ! > > 2007/9/3, Andy Shellam (Mailing Lists) >: > > Hi Pablo, > > > > What does the report class the "Indeterminate" data as? (Insufficient > data or Nagios not running?) > > > > If it says "Insufficient data," I'd hazard a guess that your last month's > log files aren't where Nagios expects them to be, perhaps they've been > archived or zipped by a log rotation program, but that's just a guess. > > > > If you browse to your "Event Log" in Nagios, near the the top, it should > say "File:" and the path to a file. That's the current log file. Look in > that file's directory on your system and see if there are any other files > with last month's dates in. > > > > Andy. > > > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] > *On Behalf Of *Pablo Daniel Estigarribia Davyt > *Sent:* Monday, 03 September, 2007 1:52 pm > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Fwd: Problem with availability report > > > > I re send it because the confirmation of my register arrives after I sent > the email > > ---------- Forwarded message ---------- > From: *Pablo Daniel Estigarribia Davyt * > Date: 03-sep-2007 8:57 > Subject: Problem with availability report > To: nagios-users at lists.sourceforge.net > > Hi all, > I have installed nagios on Debian, I have 2 installation and I have > the same problem on both: > *When I try to take a report from the last month every host appears with > undetermined state to %100, but if I try to take a report of this month > everything works well. > > Do you know something about this?, I searched on google but I don't know > how I can fix it. > > Br, > > -- > Pablo Estigarribia. > counter.li.org : 392716 > > -- > Pablo Estigarribia. > > counter.li.org : 392716 > > > > > -- > Pablo Estigarribia. > counter.li.org : 392716 > > > > > -- > Pablo Estigarribia. > counter.li.org : 392716 !DSPAM:37,46dc875f107508896821081! > -- Pablo Estigarribia. counter.li.org : 392716 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmenard at servprise.com Wed Sep 5 14:42:48 2007 From: kmenard at servprise.com (Kevin Menard) Date: Wed, 05 Sep 2007 08:42:48 -0400 Subject: [ANN] WebReboot Nagios Plugin 0.3 Release Message-ID: Hi, For those of you that have WebReboots, I wanted to let you know that I just published the 0.3 release of our integration plugins for Nagios. Full announcement: http://dev.servprise.com/weblog/articles/2007/09/05/webreboot-nagios-plugin- 0-3-released Changelog: http://dev.servprise.com/nagios/changelog.html#0_3 Regards, Kevin ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Sep 5 14:51:56 2007 From: marc at ena.com (Marc Powell) Date: Wed, 5 Sep 2007 07:51:56 -0500 Subject: Distributed config admin tool? In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Rob Brown > Sent: Tuesday, September 04, 2007 6:52 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Distributed config admin tool? > > Thanks, but most of these answers seem to be based around distributing > the configs. All good answers, but not really what I was looking for. You're going to have to distribute configs one way or another unless you nfs mount your ~nagios/etc dir or something similar. > I am more interested in how to GENerate the configs (ie: adding hosts, > services etc) for a distributed setup, without having to add things > twice (once on master as passive, then again on distributed as active, > yadda yadda) There's no need to generate different configs between the two with templating. All you need is a single host and service template on the active and a different host and service template on the passive. These templates will have the same name on both machines, but different contents depending on their roles. For example, a generic-service template on the active might look like -- define service { name generic-service check_period 24x7 register 0 } On the passive, that would turn into -- define service { name generic-service check_period none register 0 } Now, in your distributed configs, you just need to specify inheritance of the generic-service template and it'll do the right thing based on the machine it's running on -- define service { use generic-service host_name whatever service_description someservice contact_groups somecontacts check_command somecommand ... } I have all my templates in one directory that is static per machine and my host/service/hostgroup configs in another that's dynamic and rsynced from a central machine. The contents of this directory are the same across all my nagios instances. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From riky.none at email.it Wed Sep 5 15:09:21 2007 From: riky.none at email.it (riky.none) Date: Wed, 05 Sep 2007 15:09:21 +0200 Subject: SCRIPT BASH monitor big files In-Reply-To: References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> Message-ID: <46DEAA81.6050901@email.it> I need one script BASH that looking for all files big more xx in ML there is one god BASH programmer??? >:) syntax check_file_size volume MAX MB (es. check_file_size /home 400) output OK no big file ERROR there is file1 file2 file3 > of MAX i have create one but is terrible ed not work why BASH???? because i can not install sw in HPUX e LINUX machine (i use ssh to run remote command) bye ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Sep 5 15:19:43 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 05 Sep 2007 15:19:43 +0200 Subject: SCRIPT BASH monitor big files In-Reply-To: <46DEAA81.6050901@email.it> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> <46DEAA81.6050901@email.it> Message-ID: <46DEACEF.5030402@op5.se> riky.none wrote: > I need one script BASH that looking for all files big more xx > in ML there is one god BASH programmer??? >:) > find path -type f -size ${size}M -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Wed Sep 5 15:31:55 2007 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Wed, 5 Sep 2007 08:31:55 -0500 Subject: OWA - check In-Reply-To: <46DEACEF.5030402@op5.se> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> <46DEAA81.6050901@email.it> <46DEACEF.5030402@op5.se> Message-ID: Good Morning everyone, Just wondering if any one out there can point me to a plugin that checks OWA? Thanks and have a great day. Luis Luis F. Lacayo Chicago Public Schools ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gillnaldo at yahoo.com Wed Sep 5 15:46:32 2007 From: gillnaldo at yahoo.com (sunchai (gillnaldo : sun)) Date: Wed, 5 Sep 2007 06:46:32 -0700 (PDT) Subject: Nagios service latency on Service (1000+) Message-ID: <828232.32858.qm@web32202.mail.mud.yahoo.com> Dear nagios user, >Too much nonsensical info. What's the actual question? >On a side-note, nobody likes cut'n paste of HW specs. >Error messages: yes. >/proc/*: No. My problem occur when my service reach to 1000+ (show as previous email). So, and my server CPU usage ~50% only. Could you advise me to adjust/modify/tune-up service checking? My requirement need to probe and alert all service not more than 5 minutes with 3 checking interval. PS: Sorry for /proc/* information. But I need to make sure that my server don't have problem. Thanks, Gillnaldo SC --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sander at pictura-dp.nl Wed Sep 5 16:04:43 2007 From: sander at pictura-dp.nl (Sander Klein) Date: Wed, 05 Sep 2007 16:04:43 +0200 Subject: OWA - check In-Reply-To: <46DEB3F3.2090604@pictura-dp.nl> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> <46DEAA81.6050901@email.it> <46DEACEF.5030402@op5.se> <46DEB3F3.2090604@pictura-dp.nl> Message-ID: <46DEB77B.4000304@pictura-dp.nl> -resent because of problem with mailserver- Hi, you can probably just use the http plugin since OWA runs on IIS. Greets, Sander Klein > > Lacayo, Luis F wrote: >> Good Morning everyone, >> Just wondering if any one out there can point me to a plugin that checks >> OWA? >> >> Thanks and have a great day. >> Luis >> >> Luis F. Lacayo >> Chicago Public Schools >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Sep 5 17:37:29 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 05 Sep 2007 16:37:29 +0100 Subject: OWA - check In-Reply-To: <46DEB77B.4000304@pictura-dp.nl> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> <46DEAA81.6050901@email.it> <46DEACEF.5030402@op5.se> <46DEB3F3.2090604@pictura-dp.nl> <46DEB77B.4000304@pictura-dp.nl> Message-ID: <46DECD39.2000302@googlemail.com> or if you want to do actual logins you might try webinject. -h Hari Sekhon Sander Klein wrote: > -resent because of problem with mailserver- > > Hi, > > you can probably just use the http plugin since OWA runs on IIS. > > Greets, > > Sander Klein > >> Lacayo, Luis F wrote: >> >>> Good Morning everyone, >>> Just wondering if any one out there can point me to a plugin that checks >>> OWA? >>> >>> Thanks and have a great day. >>> Luis >>> >>> Luis F. Lacayo >>> Chicago Public Schools >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. ::: Messages without supporting info will risk >>> being sent to /dev/null >>> >>> >>> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stava at telcotec.se Wed Sep 5 18:22:40 2007 From: stava at telcotec.se (Lars Stavholm) Date: Wed, 05 Sep 2007 18:22:40 +0200 Subject: SCRIPT BASH monitor big files In-Reply-To: <46DEAA81.6050901@email.it> References: <5f6b57ee0709040727y6882ab6fi70b5765d233fbe0@mail.gmail.com> <20070904142851.GA92863@bewilderbeast.blackhelicopters.org> <5f6b57ee0709040736n30622594ua6962a9aa357d5bb@mail.gmail.com> <20070904194731.GB731@bewilderbeast.blackhelicopters.org> <46DEAA81.6050901@email.it> Message-ID: <46DED7D0.3070308@telcotec.se> riky.none wrote: > I need one script BASH that looking for all files big more xx > in ML there is one god BASH programmer??? >:) > > syntax check_file_size volume MAX MB (es. check_file_size /home 400) > output > OK no big file > ERROR there is file1 file2 file3 > of MAX > > i have create one but is terrible ed not work > > why BASH???? > because i can not install sw in HPUX e LINUX machine (i use ssh to run > remote command) > bye Maybe this will help: --- Begin Included Message --- check_file_size.sh: #!/bin/bash # @(#) $Id$ # @(#) Check file sizes using find(1) and alert if out of bounds. # preliminaries... pgm=`basename $0` ver=`echo '$Revision: 1.0 $' | sed -e 's/[^0-9.]//g'` dir="/home"; wsize="20M"; csize="50M" usg="usage: $pgm [-h,--help] [-V,--version] [-g, --debug] [{-w,--warning} ] [{-c,--critical} ] [] Scan for file sizes using find(1) and issue a... o warning if size is between -w and -c , or a... o critical if bigger than -c , or... o OK if no files bigger than -w were found. -h, --help this text, no other action -V, --version display verion, no other action -g, --debug turn on debug mode -w, --warning warning file size, default $wsize -c, --critical critical file size, default $csize directory to scan, default $dir" # Nagios states... STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 # error handling... err() { echo >&2 "$pgm: $*" exit $STATE_UNKNOWN } # get and validate inpt options... args=`getopt -o hVgw:c: \ -l help,version,debug,warning:,critical: \ -u -n$0 -- "$@"` [ $? = 0 ] || err "aborted" set -- $args # parse input options... while true; do case $1 in -h|--help) echo "$usg"; exit $STATE_OK;; -V|--version) echo "$pgm version $ver"; exit $STATE_OK;; -g|--debug) set -x; shift;; -w|--warning) wsize=$2; shift 2;; -c|--critical) csize=$2; shift 2;; --) shift; break;; *) err "internal error";; esac done # get the last item, if there at all... [ -n "$*" ] && dir="$*" # validate directory exists... [ -d $dir ] || err "$dir: not found" # prepare... xargs="xargs -r ls -lh" awk="awk '{print \$3,\$5,\$9}'" state=$STATE_OK # look for warnings... find="find $dir -warn -size +$wsize -a -size -$csize" warn=`$find | $xargs | eval $awk` [ -n "$warn" ] && state=$STATE_WARNING && wcount=`$find | wc -l` # look for critical... find="find $dir -size +$csize" crit=`$find | $xargs | eval $awk` [ -n "$crit" ] && state=$STATE_CRITICAL && ccount=`$find | wc -l` # display some output... case $state in $STATE_OK) echo "File size check OK - no files matched criteria";; $STATE_WARNING) echo "Warning: $wcount files matched criteria - $warn";; $STATE_CRITICAL) echo "Critical: $ccount files matched criteria - $crit";; esac # exit with proper state... exit $state --- End Included Message --- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtownrobbrown at gmail.com Wed Sep 5 20:18:06 2007 From: dtownrobbrown at gmail.com (Rob Brown) Date: Wed, 5 Sep 2007 11:18:06 -0700 Subject: Distributed config admin tool? In-Reply-To: References: Message-ID: Thanks, Marc that's great info. I forgot about the power of templating. It's nice to see some real-world examples on how this is being done. Sometimes it makes more sense to just see it rather than to over-think it. On 9/5/07, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Rob Brown > > Sent: Tuesday, September 04, 2007 6:52 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Distributed config admin tool? > > > > Thanks, but most of these answers seem to be based around distributing > > the configs. All good answers, but not really what I was looking for. > > You're going to have to distribute configs one way or another unless you > nfs mount your ~nagios/etc dir or something similar. > > > I am more interested in how to GENerate the configs (ie: adding hosts, > > services etc) for a distributed setup, without having to add things > > twice (once on master as passive, then again on distributed as active, > > yadda yadda) > > There's no need to generate different configs between the two with > templating. All you need is a single host and service template on the > active and a different host and service template on the passive. These > templates will have the same name on both machines, but different > contents depending on their roles. For example, a generic-service > template on the active might look like -- > > define service { > name generic-service > check_period 24x7 > register 0 > } > > On the passive, that would turn into -- > > define service { > name generic-service > check_period none > register 0 > } > > Now, in your distributed configs, you just need to specify inheritance > of the generic-service template and it'll do the right thing based on > the machine it's running on -- > > define service { > use generic-service > host_name whatever > service_description someservice > contact_groups somecontacts > check_command somecommand > ... > } > > I have all my templates in one directory that is static per machine and > my host/service/hostgroup configs in another that's dynamic and rsynced > from a central machine. The contents of this directory are the same > across all my nagios instances. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fritzfs at gmail.com Wed Sep 5 22:41:48 2007 From: fritzfs at gmail.com (Franjo Stipanovic) Date: Wed, 5 Sep 2007 22:41:48 +0200 Subject: compatibility from 1.1 to 2.X Message-ID: <214d2a610709051341rc86f735hc5931e98b914c72a@mail.gmail.com> Hello, is nagios.log historical data from 1.1 version compatible with 2.x? I've checked it out and it seems compatible, but I would need confirmation on this. Thanks! -- best wishes, Franjo Stipanovic -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scubacuda at gmail.com Wed Sep 5 23:51:56 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Wed, 5 Sep 2007 14:51:56 -0700 Subject: alert when new device is on network Message-ID: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> I am looking for a tool that will alert me (possibly send me an email) when a new device pops on the network. Does anyone know if there is a Nagios plugin? Or whether or not something else Nagios-friendly might help with this task? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From enst at mail.ru Thu Sep 6 06:52:55 2007 From: enst at mail.ru (Evgeny Stepanov) Date: Thu, 06 Sep 2007 08:52:55 +0400 Subject: alert when new device is on network In-Reply-To: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> References: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> Message-ID: <46DF87A7.8010700@mail.ru> I would suggest the following. Using nmap you can scan the network and get a list of active devices on your network. Then one can write the script that will check the list from nmap with some static list, prepared before. If the script will find new device, it will issue a CRITICAL state and nagios will send a notification. for instance: nmap -sP -n 172.17.0.0/24 gives the following output Starting Nmap 4.20 ( http://insecure.org ) at 2007-09-06 08:39 MSD Host 172.17.0.1 appears to be up. Host 172.17.0.5 appears to be up. Host 172.17.0.15 appears to be up. Nmap finished: 256 IP addresses (3 hosts up) scanned in 2.313 seconds script can parse the output to get a list of hosts that "appears to be up" and check if they are in list. If not, it will issue a critical state and quit. Sorry, i could not write the script by myself. Rogelio Bastardo ?????: > I am looking for a tool that will alert me (possibly send me an email) > when a new device pops on the network. > > Does anyone know if there is a Nagios plugin? Or whether or not > something else Nagios-friendly might help with this task? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- ? ?????????, ???????? ?.?. enst at mail.ru icq 2899514 +7-985-2267458 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Thu Sep 6 07:52:54 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Thu, 6 Sep 2007 06:52:54 +0100 Subject: Problems getting ndo to work Message-ID: <6546343904687E41B19D8E5A26AB9F5301479B5C@E03MVB2-UKBR.domain1.systemhost.net> Hi All, I have just recompiled nagios 2.9 with event broker support as I wish to use ndo-utils but I get the following message when I try to start the event broker #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i Support for the specified database server is either not yet supported, or was not found on your system. Is this because ndo does not support MySQL 5.0.54? OS and Software as follows SUSE Linux Enterprise Server 9. SP2 Nagios 2.9 NDO Utils 1.4b5 MySQL 5.0.54 My Nagios configure scripts goes like this ./configure --prefix=/usr/local/nagios --with-cgiurl=nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd --enable-event-broker Nagios is installed and runs fine. I have ran through the ndo utils README and installed the module as described. EXCERPT FROM NAGIOS.CFG # EVENT BROKER MODULE(S) broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg event_broker_options=-1 FROM NDOMOD.CFG # INSTANCE NAME instance_name=default # OUTPUT TYPE output_type=unixsocket # OUTPUT output=/usr/local/nagios/var/ndo.sock # TCP PORT tcp_port=5668 # OUTPUT BUFFER output_buffer_items=5000 # BUFFER FILE buffer_file=/usr/local/nagios/var/ndomod.tmp # FILE ROTATION INTERVAL file_rotation_interval=14400 # FILE ROTATION COMMAND #file_rotation_command=rotate_ndo_log # FILE ROTATION TIMEOUT file_rotation_timeout=60 # RECONNECT INTERVAL reconnect_interval=15 # RECONNECT WARNING INTERVAL reconnect_warning_interval=15 # DATA PROCESSING OPTION data_processing_options=-1 # CONFIG OUTPUT OPTION config_output_options=2 FROM NDO2DB.CFG # USER/GROUP PRIVILIGES ndo2db_user=monitoring ndo2db_group=nal # SOCKET TYPE socket_type=unix # SOCKET NAME socket_name=/usr/local/nagios/var/ndo.sock # TCP PORT tcp_port=5668 # DATABASE SERVER TYPE db_servertype=mysql # DATABASE HOST db_host=localhost # DATABASE PORT db_port=3306 # DATABASE NAME db_name=ndo # DATABASE TABLE PREFIX db_prefix=nagios_ # DATABASE USERNAME/PASSWORD db_user=user db_pass=password All help/comments welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nate at campin.net Thu Sep 6 09:20:47 2007 From: nate at campin.net (Nate Campi) Date: Thu, 6 Sep 2007 00:20:47 -0700 Subject: Distributed config admin tool? In-Reply-To: References: <3ec83c030708301311p56c9d55u45931f712daf1dcd@mail.gmail.com> <6546343904687E41B19D8E5A26AB9F5331B07D@E03MVB2-UKBR.domain1.systemhost.net> <20070904022209.GQ6166@campin.net> Message-ID: <20070906072047.GW6166@campin.net> The part of my post that was snipped out showed how to use a single host and service definition but put in place *only* a different template for the central and distributed Nagios instances. The ease of distribution comes for free at that point, and nothing is used here beyond the basic built-in features of Nagios. How you distribute it from there is up to you, I just happen to use cfengine. On Tue, Sep 04, 2007 at 04:51:40PM -0700, Rob Brown wrote: > Thanks, but most of these answers seem to be based around distributing > the configs. All good answers, but not really what I was looking for. > I am more interested in how to GENerate the configs (ie: adding hosts, > services etc) for a distributed setup, without having to add things > twice (once on master as passive, then again on distributed as active, > yadda yadda) > We currently have an in-house tool that we use to manage the master > config but it was written years ago (back when there were none) and > does not have this capability. Since we are planning to break up our > monolithic Nagios cluster into distributed sites, we wanted to > evaluate any config tools that already have this capability to see if > they are worth using versus spending time retrofitting ours. > So far, it seems OpsView has the features to support this, but > migrating may be a bit of a chore. I will be installing it so I can at > least take a peek under the hood for some ideas. > > On 9/3/07, Nate Campi wrote: > > I use cfengine, and have it down to where I can setup a new Nagios > > instance or setup a failed Nagios instance in minutes. > > > > I have a single Nagios filesystem hierarchy that helps ensure that the > > central and distributed services and host definitions are exactly the > > same - using symlinks. > > [snip] > > None of this is original, of course, but along with cfengine it makes it > > a breeze to manage. If people really care, I could put up a better > > description of how I did it. > > > > On Fri, Aug 31, 2007 at 08:29:18AM +0100, tom.welsh at bt.com wrote: > > > Yes, I'd second cfengine. Though rsync is a simple quick fix > > > > > > ________________________________ > > > > > > From: nagios-users-bounces at lists.sourceforge.net on behalf of Bill Omer > > > Sent: Thu 30/08/2007 21:11 > > > To: Rob Brown > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Distributed config admin tool? > > > > > > > > > > > > On 8/30/07, Rob Brown wrote: > > > > Are there any configuration admin tools out there that are multi-site > > > > aware to be able to manage a distributed nagios setup (multiple > > > > sites/servers)? > > > > I am in the planning stages of expanding from a single pair (failover) > > > > to distributed servers and am looking for a tool to help manage the > > > > configs. > > > > How are you admins with distributed sites managing them? > > > > > > > > > You may want to take a look at cfengine. It's pretty robust, and can > > > support much more than just nagios configs. > > > > > > -Bill > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Nate "Of course, the best way to get accurate information on Usenet is to post something wrong and wait for corrections." - Matthew Austern. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Thu Sep 6 10:15:15 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Thu, 6 Sep 2007 09:15:15 +0100 (BST) Subject: web interface to add hosts and services... Message-ID: <945323.99674.qm@web26208.mail.ukl.yahoo.com> Hi, Is there any tool that you use to add new hosts/services/.... graphically instead of editing files? thx ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Thu Sep 6 10:45:26 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Thu, 6 Sep 2007 09:45:26 +0100 Subject: web interface to add hosts and services... In-Reply-To: <945323.99674.qm@web26208.mail.ukl.yahoo.com> References: <945323.99674.qm@web26208.mail.ukl.yahoo.com> Message-ID: <6546343904687E41B19D8E5A26AB9F5301479C33@E03MVB2-UKBR.domain1.systemhost.net> There are several, Take a look at nagios exchange to see which web front ends are available. Im currently installing MonArch which I hope will satisfy my needs. I Must admit though that I do prefer to edit the files manually as it gives you a better feel for how Nagios all hangs together . Regards Tom -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer Sent: 06 September 2007 09:15 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] web interface to add hosts and services... Hi, Is there any tool that you use to add new hosts/services/.... graphically instead of editing files? thx ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle at caosdigital.com Thu Sep 6 11:43:50 2007 From: kyle at caosdigital.com (kyle) Date: Thu, 6 Sep 2007 11:43:50 +0200 Subject: Nagios performance and delayed checks Message-ID: <20070906094350.GA12649@pulsar> Hi folks, I'm having some performance issues with a rather big Nagios 2.4 deployment (430 servers, 3000 service checks) . I'm having now a 600-900 secs avg latency for checks - checks distribution is more or less like this : 450 check_icmp (scheduled every minute) 500 check_ifoperstatus (scheduled very 5 minutes) 800 check_nt (scheduled every 5-10 minutes) 200 check_http (scheduled every 5 minutes) 1000 check_by_ssh (scheduled every 5-10 minutes) 1730 Performance graphs generated by PNP I've already applied some performance tips specified in the nagios faq (aggregated status updates, max_concurrent_checks=0, checked hardware config, etc) Since load average for this server is always below 1, is there any way to force more concurrent checks per second? (btw, I've replicated the same config in a similar server with a Nagios 2.9 setup and ended with similar results as well) Thanks in advance :-) --- Output of nagiostat: Active Service Latency: 590.886 / 671.695 / 635.054 % Active Service Execution Time: 0.124 / 19.130 / 0.483 sec Active Service State Change: 0.000 / 49.930 / 0.238 % Active Services Last 1/5/15/60 min: 61 / 673 / 2150 / 2929 Output of nagios -s nagios.cfg : HOST SCHEDULING INFORMATION --------------------------- Total hosts: 424 Total scheduled hosts: 0 Host inter-check delay method: SMART Average host check interval: 0.00 sec Host inter-check delay: 0.00 sec Max host check spread: 30 min First scheduled check: N/A Last scheduled check: N/A SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 2929 Total scheduled services: 2929 Service inter-check delay method: SMART Average service check interval: 433.36 sec Inter-check delay: 0.15 sec Interleave factor method: SMART Average services per host: 6.91 Service interleave factor: 7 Max service check spread: 30 min First scheduled check: Thu Sep 6 11:18:31 2007 Last scheduled check: Thu Sep 6 11:25:45 2007 -- Windows macht frei! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kinneyccc at gmail.com Thu Sep 6 14:54:43 2007 From: kinneyccc at gmail.com (Donald Kinney) Date: Thu, 6 Sep 2007 08:54:43 -0400 Subject: Check_ldap issue Message-ID: Greetings all, I am currently running Nagios 2.7 with plugins 1.4.6 on an OpenBSD 4.1system. I am successfully monitoring our environment on several different services, dns, http, mail (smtp and imap) and check_host_alive on all our servers. In shorter terms the system is working. My issue is this, I have downloaded the check_ldap.pl plugin from nagiosexchange, and placed it in my plugin directory (/usr/local/libexec/nagios) The permissions on this file are exactly the same as the other plugins in this directory. from the command prompt, I can: # ./check_ldap -H I receive an OK response. However when I create a service definition for this check: define service { use generic-service service_description LDAP host_name check_command check_ldap with the following command definition: # 'check_ldap' command definition define command { command_name check_ldap command_line $USER1$/check_ldap -H $HOSTADDRESS$ } and generic-service defined thusly: define service { name generic-service is_volatile 0 contact_groups eservices active_checks_enabled 1 check_period always normal_check_interval 5 retry_check_interval 1 max_check_attempts 3 parallelize_check 1 passive_checks_enabled 1 event_handler_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notifications_enabled 1 notification_interval 120 notification_period always notification_options w,u,c,r register 0 } I receive a (No Output!) status message in nagios. This would indicate I have something misconfigured, but I can not figure out where I'm having the problem. Has anyone else had this issue, or could you point me to the right spot in the documentation that would allow me to get this working? Thanks, Don Kinney cccIT Corning Community College -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle.odonnell at gmail.com Thu Sep 6 15:06:15 2007 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Thu, 6 Sep 2007 09:06:15 -0400 Subject: Nagios performance and delayed checks In-Reply-To: <20070906094350.GA12649@pulsar> References: <20070906094350.GA12649@pulsar> Message-ID: <2274b9c30709060606r305d9a2ftdca89de83bf64733@mail.gmail.com> Hi Kyle, I used the nagios tuning guide: http://nagios.sourceforge.net/docs/2_0/tuning.html I've also had some success with lowering the 'service_reaper_frequency' I've also found that lowering the host and service timeouts to be useful. --kyleo On 9/6/07, kyle wrote: > > Hi folks, > > I'm having some performance issues with a rather big Nagios 2.4 deployment > (430 > servers, 3000 service checks) . > > I'm having now a 600-900 secs avg latency for checks - checks distribution > is more or less like this : > > 450 check_icmp (scheduled every minute) > 500 check_ifoperstatus (scheduled very 5 minutes) > 800 check_nt (scheduled every 5-10 minutes) > 200 check_http (scheduled every 5 minutes) > 1000 check_by_ssh (scheduled every 5-10 minutes) > > 1730 Performance graphs generated by PNP > > I've already applied some performance tips specified in the nagios faq > (aggregated status updates, max_concurrent_checks=0, checked hardware > config, etc) > > Since load average for this server is always below 1, is there any way to > force more concurrent checks per second? (btw, I've replicated the same > config in a similar server with a Nagios 2.9 setup and ended with similar > results as well) > > Thanks in advance :-) > > > --- > > Output of nagiostat: > > Active Service Latency: 590.886 / 671.695 / 635.054 % > Active Service Execution Time: 0.124 / 19.130 / 0.483 sec > Active Service State Change: 0.000 / 49.930 / 0.238 % > Active Services Last 1/5/15/60 min: 61 / 673 / 2150 / 2929 > > > > Output of nagios -s nagios.cfg : > > HOST SCHEDULING INFORMATION > --------------------------- > Total hosts: 424 > Total scheduled hosts: 0 > Host inter-check delay method: SMART > Average host check interval: 0.00 sec > Host inter-check delay: 0.00 sec > Max host check spread: 30 min > First scheduled check: N/A > Last scheduled check: N/A > > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 2929 > Total scheduled services: 2929 > Service inter-check delay method: SMART > Average service check interval: 433.36 sec > Inter-check delay: 0.15 sec > Interleave factor method: SMART > Average services per host: 6.91 > Service interleave factor: 7 > Max service check spread: 30 min > First scheduled check: Thu Sep 6 11:18:31 2007 > Last scheduled check: Thu Sep 6 11:25:45 2007 > > > > > > -- > Windows macht frei! > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shuff at hmdc.harvard.edu Thu Sep 6 15:19:56 2007 From: shuff at hmdc.harvard.edu (Steve Huff) Date: Thu, 6 Sep 2007 09:19:56 -0400 Subject: alert when new device is on network In-Reply-To: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> References: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> Message-ID: On Sep 5, 2007, at 5:51 PM, Rogelio Bastardo wrote: > I am looking for a tool that will alert me (possibly send me an email) > when a new device pops on the network. > > Does anyone know if there is a Nagios plugin? Or whether or not > something else Nagios-friendly might help with this task? perhaps a combination of arpwatch (http://freequaos.host.sk/ arpwatch/) and passive monitoring? i have not in fact implemented this, but it's the first idea that comes to mind. -steve -- Steve Huff - Systems Administrator, Harvard-MIT Data Center - shuff at hmdc.harvard.edu ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Sep 6 15:33:23 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 06 Sep 2007 15:33:23 +0200 Subject: alert when new device is on network In-Reply-To: References: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> Message-ID: <46E001A3.9040006@op5.se> Steve Huff wrote: > On Sep 5, 2007, at 5:51 PM, Rogelio Bastardo wrote: > >> I am looking for a tool that will alert me (possibly send me an email) >> when a new device pops on the network. >> >> Does anyone know if there is a Nagios plugin? Or whether or not >> something else Nagios-friendly might help with this task? > > perhaps a combination of arpwatch (http://freequaos.host.sk/ > arpwatch/) and passive monitoring? i have not in fact implemented > this, but it's the first idea that comes to mind. > ARP is a bit limited though, in that it will only ever find host on the same subnet. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Sep 6 15:45:27 2007 From: marc at ena.com (Marc Powell) Date: Thu, 6 Sep 2007 08:45:27 -0500 Subject: Check_ldap issue In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Donald Kinney > Sent: Thursday, September 06, 2007 7:55 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check_ldap issue > > I have downloaded the check_ldap.pl plugin from nagiosexchange, and placed > it in my plugin directory (/usr/local/libexec/nagios) > from the command prompt, I can: > > # ./check_ldap -H > > I receive an OK response Nagios isn't running this plugin as root so the test is invalid. Try running it as the nagios user. I'd also have to say, which is it? check_ldap from the plugins package or check_ldap.pl from nagiosexchange.org? Looks like you're using the plugins package version. Perhaps there's a permissions issue accessing the openldap libs that it depends on. > I receive a (No Output!) status message in nagios. This usually means that the plugin is generating some error when run. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kinneyccc at gmail.com Thu Sep 6 15:53:29 2007 From: kinneyccc at gmail.com (Donald Kinney) Date: Thu, 6 Sep 2007 09:53:29 -0400 Subject: Check_ldap issue In-Reply-To: References: Message-ID: On 9/6/07, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Donald Kinney > > Sent: Thursday, September 06, 2007 7:55 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Check_ldap issue > > > > > I have downloaded the check_ldap.pl plugin from nagiosexchange, and > placed > > it in my plugin directory (/usr/local/libexec/nagios) > > > from the command prompt, I can: > > > > # ./check_ldap -H > > > > I receive an OK response > > Nagios isn't running this plugin as root so the test is invalid. Try > running it as the nagios user. I'd also have to say, which is it? I have run this as the nagios user from the command line and get an OK response. The plugins package version I have did not come with a check_ldap command. Thinking nagios may have had an issue with file extensions, I copied check_ldap.pl to check_ldap. I have tried both commands in nagios to no avail. check_ldap from the plugins package or check_ldap.pl from > nagiosexchange.org? Looks like you're using the plugins package version. > Perhaps there's a permissions issue accessing the openldap libs that it > depends on. > > > I receive a (No Output!) status message in nagios. > > This usually means that the plugin is generating some error when run. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Garry.Cook at arcadis-us.com Thu Sep 6 15:57:05 2007 From: Garry.Cook at arcadis-us.com (Cook, Garry) Date: Thu, 6 Sep 2007 07:57:05 -0600 Subject: alert when new device is on network In-Reply-To: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> References: <2b7af7c40709051451r3fd04e8v19e34ef291bf1645@mail.gmail.com> Message-ID: <1689390EF608584D85BA56D958A5D1E44CA05628AA@CorpExMBS1.arcadis-us.com> I think you should take a look at NeDI, the Network Discovery tool. http://nedi.ch/ It's much more than a plugin, it's an application all its own. But it does network discovery, which is what you're looking for, and Nagios does not. Use the correct tool for the job. Thanks, Garry -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Rogelio Bastardo Sent: Wednesday, September 05, 2007 3:52 PM To: Nagios Users mailinglist Subject: [Nagios-users] alert when new device is on network I am looking for a tool that will alert me (possibly send me an email) when a new device pops on the network. Does anyone know if there is a Nagios plugin? Or whether or not something else Nagios-friendly might help with this task? NOTICE: This e-mail and any files transmitted with it are the property of ARCADIS U.S., Inc. and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the original message and any files transmitted. The unauthorized use of this e-mail or any files transmitted with it is prohibited and disclaimed by ARCADIS U.S., Inc. and its affiliates. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Sep 6 16:09:22 2007 From: marc at ena.com (Marc Powell) Date: Thu, 6 Sep 2007 09:09:22 -0500 Subject: Check_ldap issue In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Donald Kinney > Sent: Thursday, September 06, 2007 8:53 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Check_ldap issue > > > I have run this as the nagios user from the command line and get an OK > response. > The plugins package version I have did not come with a check_ldap command. > Thinking nagios may have had an issue with file extensions, I copied > check_ldap.pl to check_ldap. I have tried both commands in nagios to no > avail. Thanks for the clarification. Did you compile nagios with ePN (embedded perl) enabled? Chances are that this plugin is not compatible with ePN. If you did, try changing your command definition like below to bypass ePN for this plugin, substituting /path/to/perl to the real path to perl on your system (usually /usr/bin/perl or /usr/local/bin/perl) -- # 'check_ldap' command definition define command { command_name check_ldap command_line /path/to/perl $USER1$/check_ldap -H $HOSTADDRESS$ } If that still doesn't work, try to see if the plugin has any output at all with the command below. /tmp/output will then contain full STDOUT and STDERR output from the plugin run -- # 'check_ldap' command definition define command { command_name check_ldap command_line $USER1$/check_ldap -H $HOSTADDRESS$ >/tmp/output 2>&1 } Other than that, I don't see anything wrong with how you're calling the plugin. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From D.Parise at iaea.org Thu Sep 6 16:30:03 2007 From: D.Parise at iaea.org (D.Parise at iaea.org) Date: Thu, 6 Sep 2007 16:30:03 +0200 Subject: Nagios Interface Personalization Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Dear All, I would like to modify the web interface of Nagios, to allow my users to have some particular view and adding links to others application we use in our organization. Is there something I need to know before changing the code ? Do you have guidelines on how to do this? Thanks, Davide Parise Safeguards Systems Analyst Division of Technical Support (SGTS) International Atomic Energy Agency (IAEA) Tel.: +43 1 2600 26496 (Office) Fax: +43 1 2600 29317 (21st Floor) E-mail: d.parise at iaea.org -----BEGIN PGP SIGNATURE----- Version: 9.5.3 (Build 5003) wsBVAwUBRuAO7B+K8IX89MUJAQjYhgf/TxNEdX8uqBBRSIqGFfUuKt6aQSyWdAeE n4ciDoElUkyw5H30jfQJFnetcXg7DrgCsP/4KSceAzge/uEjJdNWbQmovjRDtqaH r1js+LzuP+tyx0PnNrUaznhT9a49WxEhhxT2Tdmufmi5G+pyephnC1qtLUOXhK9h zar4rGWStYwHcbe9EIXsXG3NqQY9biqY/ymduR92nS0C+cpU3qXp6RqKIPy9XC3D EKRC/nI79YcPW466cQw7Jz0uAkS5t8YLgJUyKTL5CwNfe1vOCn91iS3/xr9Zuf6A qmHKZaYd6YXH0sG4QPyO00Vpq/ASJ9XCF2/RExXj9XV4u43aRGKjCA== =TRK3 -----END PGP SIGNATURE----- This email message is intended only for the use of the named recipient. Information contained in this email message and its attachments may be privileged, confidential and protected from disclosure. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. Also please notify the sender by replying to this message and then delete it from your system. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGPexch.htm.pgp Type: application/octet-stream Size: 2022 bytes Desc: PGPexch.htm.pgp URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Thu Sep 6 17:02:54 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Thu, 6 Sep 2007 11:02:54 -0400 Subject: LDAP Issue Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B0074B@mtlexchange.Duocom.local> Hello, I am trying to run check_ldap from a command line and I get an error message. I type the following ./check_ldap -H hostname -b dc=Duo,dc=local Could not search/find objectclasses in dc=Duo,dc=local I have defined the command in commands as follows define command{ command_name check_ldap command_line $USER1$/check_ldap -H $HOSTADDRESS$ } I am trying to check a windows 2003 server ldap. Also, I am running fedora 6 with nagios 2.9, nagios plugins 1.4.8. Any help would be appreciated. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Thu Sep 6 18:18:24 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Thu, 6 Sep 2007 17:18:24 +0100 Subject: Problems getting NDO to work Message-ID: <6546343904687E41B19D8E5A26AB9F53014CDA9E@E03MVB2-UKBR.domain1.systemhost.net> Hi All, I have just recompiled nagios 2.9 with event broker support as I wish to use ndo-utils but I get the following message when I try to start the event broker #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i Support for the specified database server is either not yet supported, or was not found on your system. Is this because ndo does not support MySQL 5.0.54? OS and Software as follows SUSE Linux Enterprise Server 9. SP2 Nagios 2.9 NDO Utils 1.4b5 MySQL 5.0.54 My Nagios configure scripts goes like this ./configure --prefix=/usr/local/nagios --with-cgiurl=nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd --enable-event-broker Nagios is installed and runs fine. I have ran through the ndo utils README and installed the module as described. EXCERPT FROM NAGIOS.CFG # EVENT BROKER MODULE(S) broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg event_broker_options=-1 FROM NDOMOD.CFG # INSTANCE NAME instance_name=default # OUTPUT TYPE output_type=unixsocket # OUTPUT output=/usr/local/nagios/var/ndo.sock # TCP PORT tcp_port=5668 # OUTPUT BUFFER output_buffer_items=5000 # BUFFER FILE buffer_file=/usr/local/nagios/var/ndomod.tmp # FILE ROTATION INTERVAL file_rotation_interval=14400 # FILE ROTATION COMMAND #file_rotation_command=rotate_ndo_log # FILE ROTATION TIMEOUT file_rotation_timeout=60 # RECONNECT INTERVAL reconnect_interval=15 # RECONNECT WARNING INTERVAL reconnect_warning_interval=15 # DATA PROCESSING OPTION data_processing_options=-1 # CONFIG OUTPUT OPTION config_output_options=2 FROM NDO2DB.CFG # USER/GROUP PRIVILIGES ndo2db_user=monitoring ndo2db_group=nal # SOCKET TYPE socket_type=unix # SOCKET NAME socket_name=/usr/local/nagios/var/ndo.sock # TCP PORT tcp_port=5668 # DATABASE SERVER TYPE db_servertype=mysql # DATABASE HOST db_host=localhost # DATABASE PORT db_port=3306 # DATABASE NAME db_name=ndo # DATABASE TABLE PREFIX db_prefix=nagios_ # DATABASE USERNAME/PASSWORD db_user=user db_pass=password All help/comments welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Thu Sep 6 17:08:14 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Thu, 6 Sep 2007 16:08:14 +0100 (BST) Subject: Invalid max_check_attempts value for host Message-ID: <230250.89457.qm@web26210.mail.ukl.yahoo.com> Hi, I am running nagios 2.9 and created a new file hosts.cfg to list all servers to be monitored. The initial lines were taken from localhost.cfg where it defines 2 templates and the localhost. I added these lines: # 'host1 ' host definition define host{ use generic-host host_name host1 address 172.10.31.22 contact_groups sysadmin } ./nagios -v ../etc/nagios.cfg gives this error: Error: Invalid max_check_attempts value for host 'host1' Error: Could not register host (config file '/usr/local/nagios/etc/hosts.cfg', starting on line 56) any idea please on how to resolve this error? thanks ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Sep 6 19:47:52 2007 From: marc at ena.com (Marc Powell) Date: Thu, 6 Sep 2007 12:47:52 -0500 Subject: Invalid max_check_attempts value for host In-Reply-To: <230250.89457.qm@web26210.mail.ukl.yahoo.com> References: <230250.89457.qm@web26210.mail.ukl.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer > Sent: Thursday, September 06, 2007 10:08 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Invalid max_check_attempts value for host > > Hi, > > I am running nagios 2.9 and created a new file > hosts.cfg to list all servers to be monitored. > > The initial lines were taken from localhost.cfg where > it defines 2 templates and the localhost. I added > these lines: > > # 'host1 ' host definition > define host{ > use generic-host > host_name host1 > address 172.10.31.22 > contact_groups sysadmin > } > > ./nagios -v ../etc/nagios.cfg gives this error: > > Error: Invalid max_check_attempts value for host > 'host1' > Error: Could not register host (config file > '/usr/local/nagios/etc/hosts.cfg', starting on line > 56) > > any idea please on how to resolve this error? Does your generic-host template specify a valid max_check_attempts value? If not, you'll need to add it there or to the host definition itself. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Fri Sep 7 08:52:25 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 7 Sep 2007 07:52:25 +0100 (BST) Subject: web interface to add hosts and services... In-Reply-To: <6546343904687E41B19D8E5A26AB9F5301479C33@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F5301479C33@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <573187.53334.qm@web26214.mail.ukl.yahoo.com> Hi, MonArch is part of GroundWork? Or is it a sperate tool? I have nagios installed and running and want only the web tool... Also could you please post what you did to install MonArch? or point me to the Installation documentation? thanks. --- tom.welsh at bt.com wrote: > There are several, Take a look at nagios exchange to > see which web front > ends are available. Im currently installing MonArch > which I hope will > satisfy my needs. > > I Must admit though that I do prefer to edit the > files manually as it > gives you a better feel for how Nagios all hangs > together . > > Regards > > Tom > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie > Pfefer > Sent: 06 September 2007 09:15 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] web interface to add hosts > and services... > > Hi, > Is there any tool that you use to add new > hosts/services/.... > graphically instead of editing files? > thx > > > > ___________________________________________________________ > Want ideas for reducing your carbon footprint? Visit > Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Fri Sep 7 11:17:07 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 7 Sep 2007 10:17:07 +0100 (BST) Subject: check_http Message-ID: <462081.3325.qm@web26214.mail.ukl.yahoo.com> hi, I ran this from the shell: ./check_http -H host2 -p 8088 HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 seconds |time=0.342683s;;;0.000000 size=1192B;;;0 now I added these lines in services.cfg: define service{ use local-service ; Name of service template to use host_name host2 service_description HTTP availability check_command check_http -H host2 -p 8080 } when I ran ./nagios -v ../etc/nagios.cfg, I have this error: Error: Service check command 'check_http -H host2 -p 8080' specified in service 'HTTP availability' for host 'host2' not defined anywhere! PS: in commands.cfg, I have these: # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } thanks. ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From huenseler at twt.de Fri Sep 7 11:20:21 2007 From: huenseler at twt.de (Dennis Huenseler) Date: Fri, 7 Sep 2007 11:20:21 +0200 Subject: check_http References: <462081.3325.qm@web26214.mail.ukl.yahoo.com> Message-ID: <8A793F1AC3ED7447B580082FCF608CF9ED9442@twtexchange1.twt.intern> Hi there, you can't define a check_command like >> check_http -H some -p foo << in the service deifinition. Define a new check in the commands.cfg like define command{ command_name check_http_args command_line $USER1$/check_http -H $ARG1$ -p $ARG2$ } And in the service definition then try define service{ use local-service ; Name of service template to use host_name host2 service_description HTTP availability check_command check_http_args!host2!8080 } Kind regards, Dennis H?nseler -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer Sent: Friday, September 07, 2007 11:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_http hi, I ran this from the shell: ./check_http -H host2 -p 8088 HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 seconds |time=0.342683s;;;0.000000 size=1192B;;;0 now I added these lines in services.cfg: define service{ use local-service ; Name of service template to use host_name host2 service_description HTTP availability check_command check_http -H host2 -p 8080 } when I ran ./nagios -v ../etc/nagios.cfg, I have this error: Error: Service check command 'check_http -H host2 -p 8080' specified in service 'HTTP availability' for host 'host2' not defined anywhere! PS: in commands.cfg, I have these: # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } thanks. ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Fri Sep 7 11:23:13 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 7 Sep 2007 10:23:13 +0100 (BST) Subject: check_snmp and disk monitring In-Reply-To: <46DD216C.9080808@op5.se> References: <46DD216C.9080808@op5.se> Message-ID: <582067.56792.qm@web26201.mail.ukl.yahoo.com> hi, that was not documented...So I am sharing my knowledge: you need to add these in your services.cfg: define service{ use local-service ; Name of service template to use host_name host2 service_description /var Partition check_command check_snmp!public!.iso.org.dod.internet.private.enterprises.ucdavis.dskTable.dskEntry.dskPercent.2!95!98 } --- Andreas Ericsson wrote: > Melanie Pfefer wrote: > > Hi, > > I am using RHEL3 and installed > > mysql5/apache2.0.59/php5 and nagios 2.9 and > > plugin1.4.9. > > > > > > My objective is to start monitoring disk usage of > > remote servers. Any idea how to do that? > > > > Read the docs and configure Nagios accordingly, > using the appropriate > plugins. Depending on the type of servers you want > to monitor the disk > usage of and the availability of SNMP on those > servers, you may also > need the appropriate agent for the type of server > you want to monitor. > > If you lack time and/or competence to grasp the > documentation there > are several companies providing professional support > for Nagios, > including quick installations to get basic > monitoring up and running > in practically no-time. > > Getting from-scratch hand-holding from an (unpaid) > bunch of volunteers > on a mailing-list just doesn't happen unless you > prove willing to at > least make an effort on your own which, so far, you > haven't. > > The nagios documentation is extensive. It can be > found at > http://www.nagios.org/docs > > Good luck. > > -- > Andreas Ericsson > andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Fri Sep 7 12:07:43 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 7 Sep 2007 11:07:43 +0100 (BST) Subject: check_http In-Reply-To: <8A793F1AC3ED7447B580082FCF608CF9ED9442@twtexchange1.twt.intern> References: <8A793F1AC3ED7447B580082FCF608CF9ED9442@twtexchange1.twt.intern> Message-ID: <94513.4607.qm@web26205.mail.ukl.yahoo.com> hi, the configuration went ok as you've said. But now I get a connection refused error. Basically I want to monitor whether the apache server on the remote machine is up or not. thanx --- Dennis Huenseler wrote: > Hi there, > > you can't define a check_command like >> check_http > -H some -p foo << in the service deifinition. > > Define a new check in the commands.cfg like > > define command{ > command_name check_http_args > command_line $USER1$/check_http -H $ARG1$ > -p $ARG2$ > } > > And in the service definition then try > > define service{ > use > local-service > ; Name of service template to use > host_name host2 > service_description HTTP > availability > check_command > check_http_args!host2!8080 > } > > Kind regards, > > Dennis H?nseler > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie Pfefer > Sent: Friday, September 07, 2007 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_http > > hi, > > I ran this from the shell: > > ./check_http -H host2 -p 8088 > HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 > seconds > |time=0.342683s;;;0.000000 size=1192B;;;0 > > > now I added these lines in services.cfg: > > define service{ > use > local-service > ; Name of service template to use > host_name host2 > service_description HTTP > availability > check_command check_http > -H > host2 -p 8080 > } > > when I ran ./nagios -v ../etc/nagios.cfg, I have > this > error: > > > Error: Service check command 'check_http -H host2 -p > 8080' specified in service 'HTTP availability' for > host 'host2' not defined anywhere! > > > PS: in commands.cfg, I have these: > > # 'check_http' command definition > define command{ > command_name check_http > command_line $USER1$/check_http -H > $HOSTADDRESS$ > } > > > thanks. > > > > > ___________________________________________________________ > > Want ideas for reducing your carbon footprint? Visit > Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Fri Sep 7 12:14:41 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Fri, 7 Sep 2007 11:14:41 +0100 Subject: check_http In-Reply-To: <94513.4607.qm@web26205.mail.ukl.yahoo.com> References: <94513.4607.qm@web26205.mail.ukl.yahoo.com> Message-ID: <6546343904687E41B19D8E5A26AB9F53014CDCF5@E03MVB2-UKBR.domain1.systemhost.net> Hi Melanie, On your Nagios host can you telnet to port 8080 from the shell? This will ensure you are actually connecting to the box. I can see further down that you ran check_http and got a result. Are you running the plugin as the nagios user? Regards Tom -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer Sent: 07 September 2007 11:08 To: Dennis Huenseler Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_http hi, the configuration went ok as you've said. But now I get a connection refused error. Basically I want to monitor whether the apache server on the remote machine is up or not. thanx --- Dennis Huenseler wrote: > Hi there, > > you can't define a check_command like >> check_http -H some -p foo << > in the service deifinition. > > Define a new check in the commands.cfg like > > define command{ > command_name check_http_args > command_line $USER1$/check_http -H $ARG1$ > -p $ARG2$ > } > > And in the service definition then try > > define service{ > use > local-service > ; Name of service template to use > host_name host2 > service_description HTTP > availability > check_command > check_http_args!host2!8080 > } > > Kind regards, > > Dennis H?nseler > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie Pfefer > Sent: Friday, September 07, 2007 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_http > > hi, > > I ran this from the shell: > > ./check_http -H host2 -p 8088 > HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 seconds > |time=0.342683s;;;0.000000 size=1192B;;;0 > > > now I added these lines in services.cfg: > > define service{ > use > local-service > ; Name of service template to use > host_name host2 > service_description HTTP > availability > check_command check_http > -H > host2 -p 8080 > } > > when I ran ./nagios -v ../etc/nagios.cfg, I have this > error: > > > Error: Service check command 'check_http -H host2 -p 8080' specified > in service 'HTTP availability' for host 'host2' not defined anywhere! > > > PS: in commands.cfg, I have these: > > # 'check_http' command definition > define command{ > command_name check_http > command_line $USER1$/check_http -H > $HOSTADDRESS$ > } > > > thanks. > > > > > ___________________________________________________________ > > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/environment.html > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Fri Sep 7 12:56:59 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Fri, 7 Sep 2007 20:56:59 +1000 Subject: Nagios 3.0b1 and perl check plugins [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9018F94D4@acexp005.portfolio.base> Dear Folks, In the last 4 - 6 weeks there were reports of failures of embedded Perl in Nagios 3.0 betas. I am running 3.0b3 with the event broker and ePN with a full complement of non standard Perl plugins known to work with ePN in 2.9 (my employers production system). This site is RHEL 3 + Perl 5.8.0 (EL 3 RPM). There are a few strange behaviours (eg a warning apparently from a standard Perl module Getopt::Long), but after about 20 mins running it appers not too bad (ie all Perl plugins go belly up). Can those that interested in helping sort out ePN with 3.0 contact me (or mail to the list) with bug reports or better still patches ? Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Fri Sep 7 13:01:14 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Fri, 7 Sep 2007 12:01:14 +0100 Subject: Network tuning for Nagios with slave servers Message-ID: Our configuration is quite large (830 hosts, 160700+ services), so have implemented a master/slave configuration for Nagios (the Nagios servers are running Linux). The master server only runs checks if a check becomes stale; i.e. it should have been checked by a slave but no result has been received, but I find that (for example), in the last days log there are 80,000 + warning messages saying the master has run a check because it has become "stale". On further investigation I find that on all of our 5 slaves the command netstat shows that there are a large number of TCP sockets in CLOSE_WAIT state (more . My question is, has anyone done any network tuning to improve Nagios network performance ? Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Fri Sep 7 13:09:14 2007 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Fri, 7 Sep 2007 21:09:14 +1000 Subject: Perl checks in 3.0 [SEC=UNCLASSIFIED] Message-ID: <18544FA17F881A4DBC2F41AC89E46BA9018F94D5@acexp005.portfolio.base> Dear Folks, There is a comment in base/checks.c that may be relevant to the probs with embedded Perl in 3.0 betas. There was apparently a long standing bug of freeing memory associated with the Perl plugin output _before_ it was copied to Nagios. The comment says the bug was corrected by a patch sent by Hendrik B. of July this year. Nice one Hendrik. Yours sincerely. Classification: UNCLASSIFIED -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sbauknecht at gmail.com Fri Sep 7 13:15:01 2007 From: sbauknecht at gmail.com (Sven Bauknecht) Date: Fri, 7 Sep 2007 13:15:01 +0200 (CEST) Subject: Problems getting NDO to work In-Reply-To: <6546343904687E41B19D8E5A26AB9F53014CDA9E@E03MVB2-UKBR.domain1.systemh ost.net> References: <6546343904687E41B19D8E5A26AB9F53014CDA9E@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <14981.217.66.32.101.1189163701.squirrel@mail.pizzatimer.de> Hi Tom Did you include --enable-mysql after the configure script of ndo-utils? You also need to have mysql-dev headers installed. Greetings sven > Hi All, > > I have just recompiled nagios 2.9 with event broker support as I wish to > use ndo-utils but I get the following message when I try to start the > event broker > > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, > or was not found on your system. > > Is this because ndo does not support MySQL 5.0.54? > > OS and Software as follows > SUSE Linux Enterprise Server 9. SP2 > Nagios 2.9 > NDO Utils 1.4b5 > MySQL 5.0.54 > > My Nagios configure scripts goes like this > ./configure --prefix=/usr/local/nagios --with-cgiurl=nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios > --with-nagios-group=nagios --with-command-group=nagcmd > --enable-event-broker > > Nagios is installed and runs fine. > > I have ran through the ndo utils README and installed the module as > described. > > EXCERPT FROM NAGIOS.CFG > # EVENT BROKER MODULE(S) > broker_module=/usr/local/nagios/bin/ndomod.o > config_file=/usr/local/nagios/etc/ndomod.cfg > event_broker_options=-1 > > FROM NDOMOD.CFG > > # INSTANCE NAME > instance_name=default > > # OUTPUT TYPE > output_type=unixsocket > > # OUTPUT > output=/usr/local/nagios/var/ndo.sock > > # TCP PORT > tcp_port=5668 > > # OUTPUT BUFFER > output_buffer_items=5000 > > # BUFFER FILE > buffer_file=/usr/local/nagios/var/ndomod.tmp > > # FILE ROTATION INTERVAL > file_rotation_interval=14400 > > # FILE ROTATION COMMAND > #file_rotation_command=rotate_ndo_log > > # FILE ROTATION TIMEOUT > file_rotation_timeout=60 > > # RECONNECT INTERVAL > reconnect_interval=15 > > # RECONNECT WARNING INTERVAL > reconnect_warning_interval=15 > > # DATA PROCESSING OPTION > data_processing_options=-1 > > # CONFIG OUTPUT OPTION > config_output_options=2 > > FROM NDO2DB.CFG > > # USER/GROUP PRIVILIGES > ndo2db_user=monitoring > ndo2db_group=nal > > # SOCKET TYPE > socket_type=unix > > # SOCKET NAME > socket_name=/usr/local/nagios/var/ndo.sock > > # TCP PORT > tcp_port=5668 > > # DATABASE SERVER TYPE > db_servertype=mysql > > # DATABASE HOST > db_host=localhost > > # DATABASE PORT > db_port=3306 > > # DATABASE NAME > db_name=ndo > > # DATABASE TABLE PREFIX > db_prefix=nagios_ > > # DATABASE USERNAME/PASSWORD > db_user=user > db_pass=password > > All help/comments welcome > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- mail : sbauknecht at pizzatimer.de web : http://www.sbauknecht.de No no no. Don't use kill -9. It doesn't give the process a chance to cleanly: 1) shut down socket connections 2) clean up temp files 3) inform its children that it is going away 4) reset its terminal characteristics and so on and so on and so on. Generally, send 15, and wait a second or two, and if that doesn't work, send 2, and if that doesn't work, send 1. If that doesn't, REMOVE THE BINARY because the program is badly behaved! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Sep 7 14:03:11 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 07 Sep 2007 14:03:11 +0200 Subject: Network tuning for Nagios with slave servers In-Reply-To: References: Message-ID: <46E13DFF.9010300@op5.se> Wheeler, JF (Jonathan) wrote: > Our configuration is quite large (830 hosts, 160700+ services), You run more than 193 checks against each host? Good gods, you must be *really* curious about the state of those hosts :) > so have > implemented a master/slave configuration for Nagios (the Nagios servers > are running Linux). The master server only runs checks if a check > becomes stale; i.e. it should have been checked by a slave but no result > has been received, but I find that (for example), in the last days log > there are 80,000 + warning messages saying the master has run a check > because it has become "stale". On further investigation I find that on > all of our 5 slaves the command netstat shows that there are a large > number of TCP sockets in CLOSE_WAIT state (more . My question is, has > anyone done any network tuning to improve Nagios network performance ? > Nope, but you could try doing sysconf net.ipv4.tcp_fin_timeout=30 to halve the default tcp timeout in the kernel, which should reduce the number of half-open connections you have. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Fri Sep 7 14:42:14 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 7 Sep 2007 13:42:14 +0100 (BST) Subject: check_http In-Reply-To: <6546343904687E41B19D8E5A26AB9F53014CDCF5@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F53014CDCF5@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <295419.20983.qm@web26201.mail.ukl.yahoo.com> I was entering the wrong port number :S thanks bunches. --- tom.welsh at bt.com wrote: > Hi Melanie, > > On your Nagios host can you telnet to port 8080 from > the shell? This will ensure you are actually > connecting to the box. > > I can see further down that you ran check_http and > got a result. > > Are you running the plugin as the nagios user? > > Regards > > Tom > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie Pfefer > Sent: 07 September 2007 11:08 > To: Dennis Huenseler > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_http > > hi, > > the configuration went ok as you've said. But now I > get a connection refused error. > > Basically I want to monitor whether the apache > server on the remote machine is up or not. > thanx > --- Dennis Huenseler wrote: > > > Hi there, > > > > you can't define a check_command like >> > check_http -H some -p foo << > > in the service deifinition. > > > > Define a new check in the commands.cfg like > > > > define command{ > > command_name check_http_args > > command_line $USER1$/check_http -H > $ARG1$ > > -p $ARG2$ > > } > > > > And in the service definition then try > > > > define service{ > > use > > local-service > > ; Name of service template to use > > host_name host2 > > service_description HTTP > > availability > > check_command > > check_http_args!host2!8080 > > } > > > > Kind regards, > > > > Dennis H?nseler > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > > [mailto:nagios-users-bounces at lists.sourceforge.net] > > On Behalf Of Melanie Pfefer > > Sent: Friday, September 07, 2007 11:17 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_http > > > > hi, > > > > I ran this from the shell: > > > > ./check_http -H host2 -p 8088 > > HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 > seconds > > |time=0.342683s;;;0.000000 size=1192B;;;0 > > > > > > now I added these lines in services.cfg: > > > > define service{ > > use > > local-service > > ; Name of service template to use > > host_name host2 > > service_description HTTP > > availability > > check_command check_http > > -H > > host2 -p 8080 > > } > > > > when I ran ./nagios -v ../etc/nagios.cfg, I have > this > > error: > > > > > > Error: Service check command 'check_http -H host2 > -p 8080' specified > > in service 'HTTP availability' for host 'host2' > not defined anywhere! > > > > > > PS: in commands.cfg, I have these: > > > > # 'check_http' command definition > > define command{ > > command_name check_http > > command_line $USER1$/check_http -H > > $HOSTADDRESS$ > > } > > > > > > thanks. > > > > > > > > > > > ___________________________________________________________ > > > > Want ideas for reducing your carbon footprint? > Visit Yahoo! For Good > > > http://uk.promotions.yahoo.com/forgood/environment.html > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? > > > Stop. > > Now Search log events and configuration files > using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk > being sent to /dev/null > > > > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try it now. > http://uk.answers.yahoo.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyle.odonnell at gmail.com Fri Sep 7 15:22:22 2007 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Fri, 7 Sep 2007 09:22:22 -0400 Subject: Network tuning for Nagios with slave servers In-Reply-To: <46E13DFF.9010300@op5.se> References: <46E13DFF.9010300@op5.se> Message-ID: <2274b9c30709070622y24b2b41es5a85797dfc9e6d2a@mail.gmail.com> Could always try: net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_sack = 0 On 9/7/07, Andreas Ericsson wrote: > Wheeler, JF (Jonathan) wrote: > > Our configuration is quite large (830 hosts, 160700+ services), > > You run more than 193 checks against each host? Good gods, you must > be *really* curious about the state of those hosts :) > > > so have > > implemented a master/slave configuration for Nagios (the Nagios servers > > are running Linux). The master server only runs checks if a check > > becomes stale; i.e. it should have been checked by a slave but no result > > has been received, but I find that (for example), in the last days log > > there are 80,000 + warning messages saying the master has run a check > > because it has become "stale". On further investigation I find that on > > all of our 5 slaves the command netstat shows that there are a large > > number of TCP sockets in CLOSE_WAIT state (more . My question is, has > > anyone done any network tuning to improve Nagios network performance ? > > > > Nope, but you could try doing > > sysconf net.ipv4.tcp_fin_timeout=30 > > to halve the default tcp timeout in the kernel, which should reduce > the number of half-open connections you have. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Fri Sep 7 15:24:26 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Fri, 7 Sep 2007 14:24:26 +0100 Subject: check_http References: <295419.20983.qm@web26201.mail.ukl.yahoo.com> Message-ID: <6546343904687E41B19D8E5A26AB9F5331B081@E03MVB2-UKBR.domain1.systemhost.net> Dont ya just hate it when that happens ________________________________ From: Melanie Pfefer [mailto:melanie_pfefer at yahoo.co.uk] Sent: Fri 07/09/2007 13:42 To: Welsh,T,Tom,XSL4A C; huenseler at twt.de Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_http I was entering the wrong port number :S thanks bunches. --- tom.welsh at bt.com wrote: > Hi Melanie, > > On your Nagios host can you telnet to port 8080 from > the shell? This will ensure you are actually > connecting to the box. > > I can see further down that you ran check_http and > got a result. > > Are you running the plugin as the nagios user? > > Regards > > Tom > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie Pfefer > Sent: 07 September 2007 11:08 > To: Dennis Huenseler > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_http > > hi, > > the configuration went ok as you've said. But now I > get a connection refused error. > > Basically I want to monitor whether the apache > server on the remote machine is up or not. > thanx > --- Dennis Huenseler wrote: > > > Hi there, > > > > you can't define a check_command like >> > check_http -H some -p foo << > > in the service deifinition. > > > > Define a new check in the commands.cfg like > > > > define command{ > > command_name check_http_args > > command_line $USER1$/check_http -H > $ARG1$ > > -p $ARG2$ > > } > > > > And in the service definition then try > > > > define service{ > > use > > local-service > > ; Name of service template to use > > host_name host2 > > service_description HTTP > > availability > > check_command > > check_http_args!host2!8080 > > } > > > > Kind regards, > > > > Dennis H?nseler > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > > [mailto:nagios-users-bounces at lists.sourceforge.net] > > On Behalf Of Melanie Pfefer > > Sent: Friday, September 07, 2007 11:17 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_http > > > > hi, > > > > I ran this from the shell: > > > > ./check_http -H host2 -p 8088 > > HTTP OK HTTP/1.1 200 OK - 1192 bytes in 0.343 > seconds > > |time=0.342683s;;;0.000000 size=1192B;;;0 > > > > > > now I added these lines in services.cfg: > > > > define service{ > > use > > local-service > > ; Name of service template to use > > host_name host2 > > service_description HTTP > > availability > > check_command check_http > > -H > > host2 -p 8080 > > } > > > > when I ran ./nagios -v ../etc/nagios.cfg, I have > this > > error: > > > > > > Error: Service check command 'check_http -H host2 > -p 8080' specified > > in service 'HTTP availability' for host 'host2' > not defined anywhere! > > > > > > PS: in commands.cfg, I have these: > > > > # 'check_http' command definition > > define command{ > > command_name check_http > > command_line $USER1$/check_http -H > > $HOSTADDRESS$ > > } > > > > > > thanks. > > > > > > > > > > > ___________________________________________________________ > > > > Want ideas for reducing your carbon footprint? > Visit Yahoo! For Good > > > http://uk.promotions.yahoo.com/forgood/environment.html > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? > > > Stop. > > Now Search log events and configuration files > using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk > being sent to /dev/null > > > > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try it now. > http://uk.answers.yahoo.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Fri Sep 7 15:32:13 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Fri, 7 Sep 2007 14:32:13 +0100 Subject: FW: Network tuning for Nagios with slave servers Message-ID: -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: 07 September 2007 13:03 >> Wheeler, JF (Jonathan) wrote: >> Our configuration is quite large (830 hosts, 160700+ services), > You run more than 193 checks against each host? Good gods, you must > be *really* curious about the state of those hosts :) Oops, I meant 16700+ services ! > Nope, but you could try doing > > sysconf net.ipv4.tcp_fin_timeout=30 > > to halve the default tcp timeout in the kernel, which should reduce > the number of half-open connections you have. Thanks for the suggestion. We are beginning to suspect a switch issue as there are other applications that are suffering packet loss in various ways. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From J.F.Wheeler at rl.ac.uk Fri Sep 7 15:35:07 2007 From: J.F.Wheeler at rl.ac.uk (Wheeler, JF (Jonathan)) Date: Fri, 7 Sep 2007 14:35:07 +0100 Subject: FW: Network tuning for Nagios with slave servers Message-ID: -----Original Message----- From: kyleodonnell at gmail.com [mailto:kyleodonnell at gmail.com] On Behalf Of kyle.odonnell at gmail.com Sent: 07 September 2007 14:22 > Could always try: > > net.core.rmem_max = 16777216 > net.core.wmem_max = 16777216 > net.ipv4.tcp_rmem = 4096 87380 16777216 > net.ipv4.tcp_wmem = 4096 65536 16777216 > net.ipv4.tcp_timestamps = 0 > net.ipv4.tcp_sack = 0 Thanks for the suggestions. We are beginning to suspect a switch issue as there are other applications that are suffering packet loss in various ways. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Sep 7 15:48:21 2007 From: marc at ena.com (Marc Powell) Date: Fri, 7 Sep 2007 08:48:21 -0500 Subject: compatibility from 1.1 to 2.X In-Reply-To: <214d2a610709051341rc86f735hc5931e98b914c72a@mail.gmail.com> References: <214d2a610709051341rc86f735hc5931e98b914c72a@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Franjo Stipanovic > Sent: Wednesday, September 05, 2007 3:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] compatibility from 1.1 to 2.X > > Hello, > is nagios.log historical data from 1.1 version compatible with 2.x? > I've checked it out and it seems compatible, but I would need confirmation > on this. I'm not aware of any issues and I was satisfied with my own testing when I upgraded. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Fri Sep 7 16:06:23 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Fri, 7 Sep 2007 10:06:23 -0400 Subject: Notifications not working Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B45915@mtlexchange.Duocom.local> Hello, I am configured the notifications in Nagios but I see errors appearing in Nagios and I don't get any emails. I running the following Fedora 6 Nagios 2.9 Any ideas? Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CJackson at abbott-simses.com Fri Sep 7 16:33:25 2007 From: CJackson at abbott-simses.com (Craig Jackson) Date: Fri, 7 Sep 2007 09:33:25 -0500 Subject: Disks not reporting correctly Message-ID: <3298D7BF4EB43A4498C56C7E304EC692A82C60@NO-MAIL.abbott-simses.local> Hi, Nagios Nrpe client is always reporting disk usage critical for /dev/sdb1. Additionally, /dev/sda1 is reported as /dev and /dev/sdc1 is reporting disk and inode usage incorrectly. This is the /etc/fstab entry: UUID=4c5135d0-46e4-4edb-b9e0-ff352480f709 / ext3 defaults,errors=remount-ro 0 1 UUID=e384cbdc-2ff5-4d3e-8c73-65602bc9c79e /var/spool/exim/vmail ext2 defaults,errors=remount-ro 0 2 # mount /dev/sda1 on / type ext3 (rw,errors=remount-ro) /dev/sdb1 on /var/spool/exim/vmail type ext2 (rw,errors=remount-ro) # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 28834716 1229608 26140384 5% / /dev/sdb1 480719056 134385108 321914748 30% /var/spool/exim/vmail Nagios Version: 2.5.1 Here's the relevant lines from nrpe.cfg: command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sda1 command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sdb1 command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sdc1 Any ideas? Thanks. Craig ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Fri Sep 7 17:51:07 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Fri, 7 Sep 2007 17:51:07 +0200 Subject: nagios 3.0b3 abnormal cpu load ? Message-ID: Hi, I'm trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that's around 99% cpu usage all the time, on a P4 3GHz machine... Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just ... 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome :-) P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't know if this could help. I don't see many usefull things with maximum debug verbosity... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dennis at huenseler.net Fri Sep 7 20:41:05 2007 From: dennis at huenseler.net (Dennis =?iso-8859-1?Q?H=FCnseler?=) Date: Fri, 7 Sep 2007 20:41:05 +0200 (CEST) Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: <46942.87.78.187.247.1189190465.squirrel@81.169.132.64> Hi, i have nagios-3.0b3 running for 7 days now with around 350 checks and around 40 hosts. No problems with CPU-load etc. I only have high cpu-load produced by mysqld if i restart nagios and ndoutisl trys truncating/cleaning my database... That is the only problem i can see... kind regards, dennis > Hi, > > > > I'm trying to setup a nagios 3.0b3 server, and I configured it with only > one host, one check (ping). > > I can successfully start nagios, but I have concerns about the server > cpu load : that's around 99% cpu usage all the time, on a P4 3GHz > machine... > > > > Is there something I could do to decrese this load ? I tried installing > a nagios 2.9 server using the same configuration, and the load caused by > nagios is just ... 0. > > I guess this is a bug in the beta 3 ? > > > > Increasing the sleep time in nagios.cfg does not help at all even if I > put sleep_time=2500 (2500 seconds !) > > > > Any suggestions would be welcome :-) > > > > P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't > know if this could help. I don't see many usefull things with maximum > debug verbosity... > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Fri Sep 7 22:23:41 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Fri, 7 Sep 2007 15:23:41 -0500 Subject: Notifications not working Message-ID: <64975B31C6249247A722D0610F4110F7322F89@hive.officespace.honeycomb.net> What are the errors your seeing? Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Antonio Pereira Sent: Friday, September 07, 2007 9:06 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notifications not working Hello, I am configured the notifications in Nagios but I see errors appearing in Nagios and I don't get any emails. I running the following Fedora 6 Nagios 2.9 Any ideas? Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca ________________________________ Avis Le pr?sent message n'est destin? qu'? la personne ou ? l'entit? ? qui il est adress? et peut contenir des renseignements de nature privil?gi?e et confidentielle. Si le lecteur du pr?sent message n'est pas le destinataire pr?vu ou encore la personne charg?e de remettre ce message au destinataire pr?vu, veuillez nous aviser imm?diatement. Toute diffusion, distribution ou reproduction des renseignements contenus dans ce message ou des documents qui lui sont joints est strictement interdite. ________________________________________ Notice This message is intended only for the use of individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient or the person responsible for delivering the message to the intended recipient, please notify us immediately. Any disclosure, distribution or copying of this message or the information contained herein or attached hereto is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Fri Sep 7 22:29:02 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Fri, 7 Sep 2007 15:29:02 -0500 Subject: Disks not reporting correctly Message-ID: <64975B31C6249247A722D0610F4110F7322F8A@hive.officespace.honeycomb.net> So I see the df there, what does the output from nrpe show you? And what's the out put of "df -k"? Could be the df you use is defaulting to 512-byte blocks or the check_disk command might. Just a thought. Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Craig Jackson Sent: Friday, September 07, 2007 9:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Disks not reporting correctly Hi, Nagios Nrpe client is always reporting disk usage critical for /dev/sdb1. Additionally, /dev/sda1 is reported as /dev and /dev/sdc1 is reporting disk and inode usage incorrectly. This is the /etc/fstab entry: UUID=4c5135d0-46e4-4edb-b9e0-ff352480f709 / ext3 defaults,errors=remount-ro 0 1 UUID=e384cbdc-2ff5-4d3e-8c73-65602bc9c79e /var/spool/exim/vmail ext2 defaults,errors=remount-ro 0 2 # mount /dev/sda1 on / type ext3 (rw,errors=remount-ro) /dev/sdb1 on /var/spool/exim/vmail type ext2 (rw,errors=remount-ro) # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 28834716 1229608 26140384 5% / /dev/sdb1 480719056 134385108 321914748 30% /var/spool/exim/vmail Nagios Version: 2.5.1 Here's the relevant lines from nrpe.cfg: command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sda1 command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sdb1 command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/sdc1 Any ideas? Thanks. Craig ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cpugh at pppl.gov Fri Sep 7 22:32:26 2007 From: cpugh at pppl.gov (Cassandra Pugh) Date: Fri, 7 Sep 2007 16:32:26 -0400 Subject: separate webfront Message-ID: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F6C2@MAIL-STORE-1.pppl.gov> I would like to know if anyone knows if the nagios program (and all it collects and monitors) and the webfront can be hosted on different computers? I do not want to make the server that nagios is hosted on a webserver, and also do not want to bog down the webserver with the nagios processes. Does anyone know what I would need to do to accomplish this separation? Thanks, -- Cassandra (609) 243-2413 "From a little spark may burst a mighty flame." ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Fri Sep 7 22:35:44 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Fri, 7 Sep 2007 15:35:44 -0500 Subject: alert when new device is on network Message-ID: <64975B31C6249247A722D0610F4110F7322F8B@hive.officespace.honeycomb.net> You could put the check_ping script into a shell script that reverses the output. 3=1 and 1=3 and parse the output to clean up the messages. That would be simple if it was a static IP address. Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Rogelio Bastardo Sent: Wednesday, September 05, 2007 4:52 PM To: Nagios Users mailinglist Subject: [Nagios-users] alert when new device is on network I am looking for a tool that will alert me (possibly send me an email) when a new device pops on the network. Does anyone know if there is a Nagios plugin? Or whether or not something else Nagios-friendly might help with this task? ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Sep 8 00:37:06 2007 From: marc at ena.com (Marc Powell) Date: Fri, 7 Sep 2007 17:37:06 -0500 Subject: separate webfront In-Reply-To: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F6C2@MAIL-STORE-1.pppl.gov> References: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F6C2@MAIL-STORE-1.pppl.gov> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Cassandra Pugh > Sent: Friday, September 07, 2007 3:32 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] separate webfront > > I would like to know if anyone knows if the nagios program (and all it > collects and monitors) and the webfront can be hosted on different > computers? > I do not want to make the server that nagios is hosted on a webserver, and > also do not want to bog down the webserver with the nagios processes. > > Does anyone know what I would need to do to accomplish this separation? I have been successful in NFS mounting the nagios home directory from another machine and using the CGI's from there. The only drawback is that you will not be able to issue commands from the web interface at all. NFS doesn't support named pipes. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tinzauro at ha-solutions.net Sat Sep 8 07:57:39 2007 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Sat, 08 Sep 2007 00:57:39 -0500 Subject: check_procs xend Message-ID: <46E239D3.7020003@ha-solutions.net> list, i can't seem to get the check_procs plugin to look for the xend processes. root at peyton:/etc/xen# ps -ef | grep xend root 2392 1 0 Sep07 ? 00:00:00 python /usr/lib/xen-3.0.3-1/bin/xend start root 2394 2392 0 Sep07 ? 00:00:11 python /usr/lib/xen-3.0.3-1/bin/xend start i've tried the following with no success: '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a '/usr/lib/xen-3.0.3-1/bin/xend start'' '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a '/usr/lib/xen-3.0.3-1/bin/xend'' '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a 'start'' '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python' any help would be greatly appreciated. _Terry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sat Sep 8 09:29:32 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 8 Sep 2007 09:29:32 +0200 (CEST) Subject: separate webfront In-Reply-To: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F6C2@MAIL-STORE-1.pppl.gov> References: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F6C2@MAIL-STORE-1.pppl.gov> Message-ID: On Fri, 7 Sep 2007, Cassandra Pugh wrote: > I would like to know if anyone knows if the nagios program (and all it > collects and monitors) and the webfront can be hosted on different computers? > I do not want to make the server that nagios is hosted on a webserver, and > also do not want to bog down the webserver with the nagios processes. Apache is not that hard if you tune down the defaults. I think you will find the drawbacks of seperation harder then it needs to be. If yyou do not wish to make it public you can always make the other apache server a front for this webserver. I do this for various aplications. Hugo. -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ This message is using 100% recycled electrons. Some men see computers as they are and say "Windows" I use computers with Linux and say "Why Windows?" (Thanks JFK, for this quote of George Bernard Shaw.) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Holger.Besendorfer at behrgroup.com Sat Sep 8 10:04:09 2007 From: Holger.Besendorfer at behrgroup.com (Holger Besendorfer) Date: Sat, 8 Sep 2007 10:04:09 +0200 Subject: Holger Besendorfer is out of the office. Message-ID: Ich werde ab 07.09.2007 nicht im B?ro sein. Ich kehre zur?ck am 23.09.2007. Vertretung: Hotline 4949, HH. Finsterle, Tel. 4071, Vetter, Tel. 4536, Hofmann Tel. 4008 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From david.knecht at anyweb.ch Sat Sep 8 21:20:34 2007 From: david.knecht at anyweb.ch (David Knecht) Date: Sat, 08 Sep 2007 21:20:34 +0200 Subject: Concurrent Service Check Execution Message-ID: <46E2F602.7070009@anyweb.ch> I'd like to force Nagios 2.9 to execute all service checks on a given monitored system *concurrently* (both in hard OK states as well as in hard non-OK states). My goal is to see how my services behave on a particular monitored system *at one single point in time*. Let me clarify this: Service checks on monitored system A: Service check cycle n: Execution of service check A1 ("check process 1"): 00h:00m:00s Execution of service check A2 ("check process 2"): 00h:00m:00s Service check cycle n+1: Execution of service check A1 ("check process 1"): 00h:05m:00s Execution of service check A2 ("check process 2"): 00h:05m:00s ... Service checks on monitored system B: Service check cycle n: Execution of service check B1 ("check process 1"): 00h:00m:20s Execution of service check B2 ("check process 2"): 00h:00m:20s Service check cycle n+1: Execution of service check B1 ("check process 1"): 00h:05m:20s Execution of service check B2 ("check process 2"): 00h:05m:20s ... Service checks on monitored system C: Service check cycle n: Execution of service check C1 ("check process 1"): 00h:01m:49s Execution of service check C2 ("check process 2"): 00h:01m:49s Service check cycle n+1: Execution of service check C1 ("check process 1"): 00h:06m:51s Execution of service check C2 ("check process 2"): 00h:06m:51s ... --> As can be seen here, service checks A1 and A2 are executed concurrently. The same applies to B1/B2 and C1/C2. --> I doesn't very much matter when these service checks are executed as long as they are executed concurrently. According to http://nagios.sourceforge.net/docs/2_0/checkscheduling.html and http://nagios.sourceforge.net/docs/2_0/images/noninterleaved1.png non-interleaved checks comes closest to what I want. It seems, though, that service check execution gets a bit random the longer Nagios is running: "Even though service checks are initially scheduled to balance the load on both the local and remote hosts, things will eventually give in to the ensuing chaos and be a bit random. Reasons for this include the fact that services are not all checked at the same interval, some services take longer to execute than others, host and/or service problems can alter the timing of one or more service checks, etc. At least we try to get things off to a good start. Hopefully the initial scheduling will keep the load on the local and remote hosts fairly balanced as time goes by..." "Scheduling Delays: It should be noted that service check scheduling and execution is done on a best effort basis. Individual service checks are considered to be low priority events in Nagios, so they can get delayed if high priority events need to be executed. Examples of high priority events include log file rotations, external command checks, and service reaper events. Additionally, host checks will slow down the execution and processing of service checks." Having mentioned all this I assume that concurrent service checks as outlined above cannot be configured in both Nagios 2.9 and 3.0. Do I miss anything here? Is there any circumvention? --> As a circumvention, it might be acceptable if service check A2 gets executed ~2-5 seconds after A1. Is it possible to enforce such a behaviour? Thanks, David ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Sep 8 22:27:47 2007 From: marc at ena.com (Marc Powell) Date: Sat, 8 Sep 2007 15:27:47 -0500 Subject: Concurrent Service Check Execution In-Reply-To: <46E2F602.7070009@anyweb.ch> References: <46E2F602.7070009@anyweb.ch> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of David Knecht > Sent: Saturday, September 08, 2007 2:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Concurrent Service Check Execution > > I'd like to force Nagios 2.9 to execute all service checks on a given > monitored system *concurrently* (both in hard OK states as well as in > hard non-OK states). My goal is to see how my services behave on a > particular monitored system *at one single point in time*. > > Having mentioned all this I assume that concurrent service checks as > outlined above cannot be configured in both Nagios 2.9 and 3.0. Do I > miss anything here? Is there any circumvention? > My $0.02... The nagios scheduler attempts to monitor things as close to their scheduled interval as possible no matter what's happening and that's about all it promises. As you've noted, you have limited control over when checks occur and that's only for initial scheduling. There are no real workarounds other than having a single plugin execute multiple checks and aggregate the results or using external scripts, executed from (f)cron or other specific timing mechanism to submit passive results. > --> As a circumvention, it might be acceptable if service check A2 gets > executed ~2-5 seconds after A1. Is it possible to enforce such a > behaviour? No, there is no built-in way to control the order in which checks occur in any way whatsoever. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Sun Sep 9 10:19:38 2007 From: moshesharon at gmail.com (moshe sharon) Date: Sun, 9 Sep 2007 11:19:38 +0300 Subject: Concurrent Service Check Execution In-Reply-To: <46E368A5.8070401@aei.ca> References: <46E368A5.8070401@aei.ca> Message-ID: <88ad29240709090119hdc09862yec76acf0ca9dc67e@mail.gmail.com> Hi The only good way to achieve this is by using cron to execute your checks and then submit it via Passive result to nagios -- Moshe Sharon http://www.centerity.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Sun Sep 9 10:57:55 2007 From: moshesharon at gmail.com (moshe sharon) Date: Sun, 9 Sep 2007 11:57:55 +0300 Subject: alert when new device is on network In-Reply-To: <64975B31C6249247A722D0610F4110F7322F8B@hive.officespace.honeycomb.net> References: <64975B31C6249247A722D0610F4110F7322F8B@hive.officespace.honeycomb.net> Message-ID: <88ad29240709090157x37097c1fu1b0b30bcdc5eff7@mail.gmail.com> Hello You can find "check_find_new_hosts" plugin in Nagiosexchange.this plugin scans you network for changes and alerts if it finds new hosts. the link: http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_view]=275 -- Moshe Sharon http://www.centerity.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Sun Sep 9 13:08:42 2007 From: vadi.ksdba at gmail.com (vadi) Date: Sun, 9 Sep 2007 16:38:42 +0530 Subject: Nagios repository database Message-ID: <5f6b57ee0709090408r65513743gc2df76296ac4bdd8@mail.gmail.com> Hi, We have datacenter in 4 different locations. As of now we are having nagios configured in one system which will pull the data from different location (it is not the best practices Now I need to implement 1> Failure concept in nagios(different location). 2> How I can implement Mysql database as a back end repository. 3> What is the best practice for configuring such an environment?, which should use nagios monitoring tool very effectively Thanks in advance, Vadiraj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Mon Sep 10 06:33:14 2007 From: vadi.ksdba at gmail.com (vadi) Date: Mon, 10 Sep 2007 10:03:14 +0530 Subject: NDOUtiles not working Message-ID: <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4@mail.gmail.com> Dear All, I have configured NDOUtiles for my nagios system. Used tools MySQL-client-standard-5.0.26-0.rhel4 MySQL-shared-standard-5.0.26-0.rhel4 MySQL-devel-standard-5.0.26-0.rhel4 MySQL-server-standard-5.0.26-0.rhel4 nagios 2.9 ndoutils-1.4b5 First time I got an error #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i Support for the specified database server is either not yet supported, or was not found on your system. [Can I know what this error meaning?] Then later I have changed ndoutils to ndoutils.12232005 . After that I have not got any error but mysql database not getting any data INPUT[Not sync]. I have tasted this for all the possibility ways[I worked very hard to troubleshot], but it don't helped me. I am very poor in troubleshoot the problem [I can't troubleshoot the problem in source level] Please can somebody help me for this issue. Thanks, Vadiraj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Uwe.Knop at lds.brandenburg.de Mon Sep 10 08:37:25 2007 From: Uwe.Knop at lds.brandenburg.de (Uwe Knop) Date: Mon, 10 Sep 2007 08:37:25 +0200 Subject: Antw: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: <46E50246.1311.0075.3@lds.brandenburg.de> Hi, I have the same Problem with nagios 3.0b3 server. The last good Version around CPU Load was nagios 3.0a5 . bye Uwe Knop >>> "SCHAER Frederic" schrieb am Fr, Sep 7, 2007 um 5:51 in Nachricht : Hi, I*m trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that*s around 99% cpu usage all the time, on a P4 3GHz machine* Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just * 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome J P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don*t know if this could help. I don*t see many usefull things with maximum debug verbosity* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Mon Sep 10 09:31:57 2007 From: ton.voon at altinity.com (Ton Voon) Date: Mon, 10 Sep 2007 08:31:57 +0100 Subject: Disks not reporting correctly In-Reply-To: <3298D7BF4EB43A4498C56C7E304EC692A82C60@NO-MAIL.abbott-simses.local> References: <3298D7BF4EB43A4498C56C7E304EC692A82C60@NO-MAIL.abbott-simses.local> Message-ID: <883CD1B1-AD7E-4813-AAAE-A7BD3C528628@altinity.com> On 7 Sep 2007, at 15:33, Craig Jackson wrote: > Here's the relevant lines from nrpe.cfg: > command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 - > c 10 > -p /dev/sda1 > command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 - > c 10 > -p /dev/sdb1 > command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 - > c 10 > -p /dev/sdc1 > > Any ideas? You want to add a % after the 20 and 10, ie: check_disk -w 20% -c 10%. It's a common mistake. I believe Ethan has already updated the CVS version of nrpe.cfg so that the default has the percent figures included. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sbauknecht at gmail.com Mon Sep 10 10:30:36 2007 From: sbauknecht at gmail.com (Sven Bauknecht) Date: Mon, 10 Sep 2007 10:30:36 +0200 (CEST) Subject: NDOUtiles not working In-Reply-To: <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4@mail.gmail.com> References: <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4@mail.gmail.com> Message-ID: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> Hi Vadiraj, did you use the --enable-mysql option with the ndo-utils ./configure command. In my case it was a bit weired with ndo utils, I had to run ./configure --enable-mysql and the make commands twice before ndo-utils started working properly. Maybe that`ll help in your case, too. Regards sven > Dear All, > > I have configured NDOUtiles for my nagios system. > > Used tools > MySQL-client-standard-5.0.26-0.rhel4 > MySQL-shared-standard-5.0.26-0.rhel4 > MySQL-devel-standard-5.0.26-0.rhel4 > MySQL-server-standard-5.0.26-0.rhel4 > nagios 2.9 > ndoutils-1.4b5 > > First time I got an error > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, or > was not found on your system. [Can I know what this error meaning?] > Then later I have changed ndoutils to ndoutils.12232005 . > After that I have not got any error but mysql database not getting any > data > INPUT[Not sync]. > I have tasted this for all the possibility ways[I worked very hard to > troubleshot], but it don't helped me. > I am very poor in troubleshoot the problem [I can't troubleshoot the > problem > in source level] > > Please can somebody help me for this issue. > > Thanks, > Vadiraj > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- mail : sbauknecht at pizzatimer.de web : http://www.sbauknecht.de No no no. Don't use kill -9. It doesn't give the process a chance to cleanly: 1) shut down socket connections 2) clean up temp files 3) inform its children that it is going away 4) reset its terminal characteristics and so on and so on and so on. Generally, send 15, and wait a second or two, and if that doesn't work, send 2, and if that doesn't work, send 1. If that doesn't, REMOVE THE BINARY because the program is badly behaved! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sbauknecht at gmail.com Mon Sep 10 10:38:43 2007 From: sbauknecht at gmail.com (Sven Bauknecht) Date: Mon, 10 Sep 2007 10:38:43 +0200 (CEST) Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: <40501.217.66.32.101.1189413523.squirrel@mail.pizzatimer.de> Hi, I can`t see any CPU problems with nagios 3.0b3. My System is a Virtuozzo VM with Ubuntu dapper running Kernel 2.6.9. This is a Testbox so there only about 10 Checks running. Could this be a kernel 2.4.x issue? - Just a thought... Regards, sven > Hi, > > > > I'm trying to setup a nagios 3.0b3 server, and I configured it with only > one host, one check (ping). > > I can successfully start nagios, but I have concerns about the server > cpu load : that's around 99% cpu usage all the time, on a P4 3GHz > machine... > > > > Is there something I could do to decrese this load ? I tried installing > a nagios 2.9 server using the same configuration, and the load caused by > nagios is just ... 0. > > I guess this is a bug in the beta 3 ? > > > > Increasing the sleep time in nagios.cfg does not help at all even if I > put sleep_time=2500 (2500 seconds !) > > > > Any suggestions would be welcome :-) > > > > P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't > know if this could help. I don't see many usefull things with maximum > debug verbosity... > > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- mail : sbauknecht at pizzatimer.de web : http://www.sbauknecht.de No no no. Don't use kill -9. It doesn't give the process a chance to cleanly: 1) shut down socket connections 2) clean up temp files 3) inform its children that it is going away 4) reset its terminal characteristics and so on and so on and so on. Generally, send 15, and wait a second or two, and if that doesn't work, send 2, and if that doesn't work, send 1. If that doesn't, REMOVE THE BINARY because the program is badly behaved! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Mon Sep 10 10:58:22 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Mon, 10 Sep 2007 10:58:22 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: <40501.217.66.32.101.1189413523.squirrel@mail.pizzatimer.de> References: <40501.217.66.32.101.1189413523.squirrel@mail.pizzatimer.de> Message-ID: Hi, Thanks for the feedback about this... I was just testing on an ubuntu 7.04 box, and indeed there is no CPU load problem... I'll report this on the devel mailing list, I fear there is indeed a bug somewhere :'( Regards > > Hi, > > I can`t see any CPU problems with nagios 3.0b3. My System is a Virtuozzo > VM with Ubuntu dapper running Kernel 2.6.9. > > This is a Testbox so there only about 10 Checks running. > > Could this be a kernel 2.4.x issue? - Just a thought... > > Regards, > > sven > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Mon Sep 10 10:44:09 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Mon, 10 Sep 2007 09:44:09 +0100 Subject: NDOUtiles not working In-Reply-To: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> References: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> Message-ID: <6546343904687E41B19D8E5A26AB9F53014CE236@E03MVB2-UKBR.domain1.systemhost.net> This is the exact same problem I have been having also. I have tried with the --enable-mysql and also specifying the mysql libs and include files but still get the error that Vadiraj gets. I have the following setup OS and Software as follows SUSE Linux Enterprise Server 9. SP2 Nagios 2.9 NDO Utils 1.4b5 MySQL 5.0.54 All of the above compiled from source apart from SUSE :P Regards Tom -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sven Bauknecht Sent: 10 September 2007 09:31 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NDOUtiles not working Hi Vadiraj, did you use the --enable-mysql option with the ndo-utils ./configure command. In my case it was a bit weired with ndo utils, I had to run ./configure --enable-mysql and the make commands twice before ndo-utils started working properly. Maybe that`ll help in your case, too. Regards sven > Dear All, > > I have configured NDOUtiles for my nagios system. > > Used tools > MySQL-client-standard-5.0.26-0.rhel4 > MySQL-shared-standard-5.0.26-0.rhel4 > MySQL-devel-standard-5.0.26-0.rhel4 > MySQL-server-standard-5.0.26-0.rhel4 > nagios 2.9 > ndoutils-1.4b5 > > First time I got an error > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, > or was not found on your system. [Can I know what this error meaning?] > Then later I have changed ndoutils to ndoutils.12232005 . > After that I have not got any error but mysql database not getting any > data INPUT[Not sync]. > I have tasted this for all the possibility ways[I worked very hard to > troubleshot], but it don't helped me. > I am very poor in troubleshoot the problem [I can't troubleshoot the > problem in source level] > > Please can somebody help me for this issue. > > Thanks, > Vadiraj > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________ > ________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- mail : sbauknecht at pizzatimer.de web : http://www.sbauknecht.de No no no. Don't use kill -9. It doesn't give the process a chance to cleanly: 1) shut down socket connections 2) clean up temp files 3) inform its children that it is going away 4) reset its terminal characteristics and so on and so on and so on. Generally, send 15, and wait a second or two, and if that doesn't work, send 2, and if that doesn't work, send 1. If that doesn't, REMOVE THE BINARY because the program is badly behaved! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 10 11:22:45 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 10 Sep 2007 11:22:45 +0200 Subject: Host State for machines that don't allow ping In-Reply-To: <46E505BA.7070302@googlemail.com> References: <46E505BA.7070302@googlemail.com> Message-ID: <46E50CE5.4020602@op5.se> Hari Sekhon wrote: > Hi, > > I am curios what people do when monitoring a host that does not > respond to pings. I have a host which is not under my control, it does > not respond to pings, but I am monitoring one service. The service is > up, so the host is up. I am not receiving notifications for this host > and it appears to be fine, but in the web interface, nagios has the host > column as red but the service column as green. > > This is somewhat of a contradiction because if the service is ok, then > implicitly the host is up. Should the host column not be green as well? > > I am considering changing the host definition's check command to a dummy > check instead of the usual ping check, but this seems like not quite the > right thing to do because the host may well be down then and the dummy > check will always return ok and nagios will think that host is up. > > I have also considered making the host check just the same check that > the service is, which should work for this one host, but what about if I > have to do the same for other hosts, this doesn't scale, I can't > template it etc... > > > These are the only 2 options I can think of, either never know if it's > up or not, or use the service check, but this doesn't scale and has to > be done on an individual host basis for any host that doesn't respond to > pings. > > > Anybody got any other ideas? > Write a host-check that checks the status of all services on the host. If any service is up, the host is up. Or, write a NEB-module to make this happen automagically whenever a host is determined to be up and use a dummy check (that doesn't even have to exist) for host check. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Sep 10 10:52:10 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 10 Sep 2007 09:52:10 +0100 Subject: Host State for machines that don't allow ping Message-ID: <46E505BA.7070302@googlemail.com> Hi, I am curios what people do when monitoring a host that does not respond to pings. I have a host which is not under my control, it does not respond to pings, but I am monitoring one service. The service is up, so the host is up. I am not receiving notifications for this host and it appears to be fine, but in the web interface, nagios has the host column as red but the service column as green. This is somewhat of a contradiction because if the service is ok, then implicitly the host is up. Should the host column not be green as well? I am considering changing the host definition's check command to a dummy check instead of the usual ping check, but this seems like not quite the right thing to do because the host may well be down then and the dummy check will always return ok and nagios will think that host is up. I have also considered making the host check just the same check that the service is, which should work for this one host, but what about if I have to do the same for other hosts, this doesn't scale, I can't template it etc... These are the only 2 options I can think of, either never know if it's up or not, or use the service check, but this doesn't scale and has to be done on an individual host basis for any host that doesn't respond to pings. Anybody got any other ideas? Thanks -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Mon Sep 10 12:25:07 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Mon, 10 Sep 2007 12:25:07 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: Hi again, There is a difference between the nagios I compiled on the 2.4 kernel / RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : when stracing the nagios process, I can see it's calling the nanosleep() function - and it then sleeps -, whereas on the 2.4 box I can't see such a call : I just see this kind of thing (and lots of these) : gettimeofday({1189419621, 161574}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 183742}, NULL) = 0 gettimeofday({1189419621, 183780}, NULL) = 0 gettimeofday({1189419621, 183814}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184172}, NULL) = 0 gettimeofday({1189419621, 184326}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184734}, NULL) = 0 gettimeofday({1189419621, 184861}, NULL) = 0 gettimeofday({1189419621, 184984}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 185537}, NULL) = 0 gettimeofday({1189419621, 185734}, NULL) = 0 Bad thing is that I tried to configure with and without the -enable-nanosleep or -disable-nanosleep switches, but this apparently has no effect :'(. So it seems nagios is sleeping all the time, eating the CPU... I'm still trying to see if I can find a way to compile with a "working sleep". Fred ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Friday, September 07, 2007 5:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi, I'm trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that's around 99% cpu usage all the time, on a P4 3GHz machine... Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just ... 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome :-) P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't know if this could help. I don't see many usefull things with maximum debug verbosity... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Sep 10 12:59:07 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 10 Sep 2007 11:59:07 +0100 Subject: Host State for machines that don't allow ping In-Reply-To: <46E505BA.7070302@googlemail.com> References: <46E505BA.7070302@googlemail.com> Message-ID: <46E5237B.9050008@googlemail.com> one more thing, I spoke too soon, I am getting host down alerts for that host even though the service is green in the web interface and I can see the service output banner from the service. -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 10 13:06:28 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 10 Sep 2007 13:06:28 +0200 Subject: Host State for machines that don't allow ping In-Reply-To: <46E522BE.4020207@googlemail.com> References: <46E505BA.7070302@googlemail.com> <46E50CE5.4020602@op5.se> <46E522BE.4020207@googlemail.com> Message-ID: <46E52534.1040008@op5.se> Hari Sekhon wrote: > > > Andreas Ericsson wrote: >> >> Write a host-check that checks the status of all services on the host. If >> any service is up, the host is up. > In that case, I would just use the service check as the host check as well. > >> Or, write a NEB-module to make this happen automagically whenever a >> host is >> determined to be up and use a dummy check (that doesn't even have to >> exist) >> for host check. > > NEB seems a little OTT, I don't know anything about NEB and I'd rather > avoid doing something heavy for something which should be small and simple. > It wouldn't be heavy at all. Just hook into the host checking machinery and go through the host's services prior to running the actual check. If any of the services are ok, block the host check and set the host to state "UP" with output "Implicitly OK due to functioning services". It could probably be done in 100 or so lines of code. > > > I take it that most of you out there who run Nagios have ping enabled on > _all_ of your hosts? > > > I can't be the first person to run into this, surely? > Nopes, but generally there's some easy way of checking if the host is up. check_tcp is quite small and efficient. Perhaps you can use that to check if the port serving whatever service you're monitoring is up? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Sep 10 12:55:58 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 10 Sep 2007 11:55:58 +0100 Subject: Host State for machines that don't allow ping In-Reply-To: <46E50CE5.4020602@op5.se> References: <46E505BA.7070302@googlemail.com> <46E50CE5.4020602@op5.se> Message-ID: <46E522BE.4020207@googlemail.com> Andreas Ericsson wrote: > > Write a host-check that checks the status of all services on the host. If > any service is up, the host is up. In that case, I would just use the service check as the host check as well. > Or, write a NEB-module to make this happen automagically whenever a > host is > determined to be up and use a dummy check (that doesn't even have to > exist) > for host check. NEB seems a little OTT, I don't know anything about NEB and I'd rather avoid doing something heavy for something which should be small and simple. I take it that most of you out there who run Nagios have ping enabled on _all_ of your hosts? I can't be the first person to run into this, surely? -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tr_rajeshkanna at rediffmail.com Mon Sep 10 14:03:32 2007 From: tr_rajeshkanna at rediffmail.com (RaJESH KANNA) Date: 10 Sep 2007 12:03:32 -0000 Subject: nagios-plugin unable to compile Message-ID: <20070910120332.7545.qmail@webmail103.rediffmail.com> ? Hi, I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. Note : i tried disable-ssl,disable-mysql etc. nagios plugin version : 1.4.9 OS : solaris 10 #./configure works #make ( throws below mentioned error) *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/local/nagios/nagios-plugins-1.4.9 *** Error code 1 make: Fatal error: Command failed for target `all' Regards, Rajesh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 10 14:13:14 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 10 Sep 2007 14:13:14 +0200 Subject: nagios-plugin unable to compile In-Reply-To: <20070910120332.7545.qmail@webmail103.rediffmail.com> References: <20070910120332.7545.qmail@webmail103.rediffmail.com> Message-ID: <46E534DA.6010502@op5.se> RaJESH KANNA wrote: > > Hi, > > I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. > > Note : i tried disable-ssl,disable-mysql etc. > > nagios plugin version : 1.4.9 > > OS : solaris 10 > > > #./configure works > > #make ( throws below mentioned error) > > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > Current working directory /usr/local/nagios/nagios-plugins-1.4.9 > *** Error code 1 > make: Fatal error: Command failed for target `all' > This is a result of the nagiosplugin Makefile being ridiculously complex and more or less requiring GNU make. Either install GNU make (it's very portable), or bugger the nagiosplug dev-team to fix this, preferrably on nagiosplug-help at lists.sourceforge.net -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tr_rajeshkanna at rediffmail.com Mon Sep 10 14:31:19 2007 From: tr_rajeshkanna at rediffmail.com (RaJESH KANNA) Date: 10 Sep 2007 12:31:19 -0000 Subject: nagios-plugin unable to compile Message-ID: <20070910123119.2504.qmail@webmail94.rediffmail.com> ? Thanks Andreas!. Installing Gnu make didn't help. I will send mail to nagiosplugin-help Rajesh On Mon, 10 Sep 2007 Andreas Ericsson wrote : >RaJESH KANNA wrote: >> Hi, >> >> I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. >>Note : i tried disable-ssl,disable-mysql etc. >> >>nagios plugin version : 1.4.9 >>OS : solaris 10 >> >> >> #./configure works >> #make ( throws below mentioned error) >> >> *=* | --[!k]*);; \ >> *k*) failcom='fail=yes';; \ >> esac; \ >>done; \ >>dot_seen=no; \ >>target=`echo all-recursive | sed s/-recursive//`; \ >>list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ >> echo "Making $target in $subdir"; \ >> if test "$subdir" = "."; then \ >> dot_seen=yes; \ >> local_target="$target-am"; \ >> else \ >> local_target="$target"; \ >> fi; \ >> (cd $subdir && make $local_target) \ >> || eval $failcom; \ >>done; \ >>if test "$dot_seen" = "no"; then \ >> make "$target-am" || exit 1; \ >>fi; test -z "$fail" >>make: Fatal error: Command failed for target `all-recursive' >>Current working directory /usr/local/nagios/nagios-plugins-1.4.9 >>*** Error code 1 >>make: Fatal error: Command failed for target `all' >> > >This is a result of the nagiosplugin Makefile being ridiculously >complex and more or less requiring GNU make. > >Either install GNU make (it's very portable), or bugger the nagiosplug >dev-team to fix this, preferrably on nagiosplug-help at lists.sourceforge.net > >-- Andreas Ericsson andreas.ericsson at op5.se >OP5 AB www.op5.se >Tel: +46 8-230225 Fax: +46 8-230231 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 10 16:39:58 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 10 Sep 2007 16:39:58 +0200 Subject: servicegroup dependant on other service In-Reply-To: <1189434228.3481.59.camel@pcpad.dugas.cc> References: <1189434228.3481.59.camel@pcpad.dugas.cc> Message-ID: <46E5573E.1060206@op5.se> Paul Dugas wrote: > I've defined a service for a hostgroup and am trying to make each of > those services dependent on one other service. I don't want to have to > type the name of every member of the hostgroup; there are hundreds of > them. > > This is the "master" service > >> define service{ >> host_name svr >> service_description VIDS >> check_command check_snmp_proc!VIDS_Server >> use server-service >> } > > These need to be dependent on the "master" service > >> define service{ >> hostgroup_name CAM >> service_description CONTROL >> check_command check_cam_control_vids!svr >> use cam-service >> } > > This isn't working. > >> define servicedependency{ >> host_name svr >> service_description VIDS >> dependent_hostgroup_name CAM >> dependent_service_description CONTROL >> } > > I'm getting this for each member of the CAM hostgroup > >> Warning: Ignoring lame service dependency (config file '/etc/nagios/nav/cam.cfg', line 57) > > Any ideas as to where I'm going awry? > You have no notification_failure_criteria or check_execution_failure_criteria specified. As such, it's a completely empty dependency that Nagios will simply ignore because it will have zero impact during run-time. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at dugas.cc Mon Sep 10 16:23:48 2007 From: paul at dugas.cc (Paul Dugas) Date: Mon, 10 Sep 2007 10:23:48 -0400 Subject: servicegroup dependant on other service Message-ID: <1189434228.3481.59.camel@pcpad.dugas.cc> I've defined a service for a hostgroup and am trying to make each of those services dependent on one other service. I don't want to have to type the name of every member of the hostgroup; there are hundreds of them. This is the "master" service > define service{ > host_name svr > service_description VIDS > check_command check_snmp_proc!VIDS_Server > use server-service > } These need to be dependent on the "master" service > define service{ > hostgroup_name CAM > service_description CONTROL > check_command check_cam_control_vids!svr > use cam-service > } This isn't working. > define servicedependency{ > host_name svr > service_description VIDS > dependent_hostgroup_name CAM > dependent_service_description CONTROL > } I'm getting this for each member of the CAM hostgroup > Warning: Ignoring lame service dependency (config file '/etc/nagios/nav/cam.cfg', line 57) Any ideas as to where I'm going awry? TIA, pd -- Paul Dugas Dugas Enterprises, LLC -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kzembowe at jhuccp.org Mon Sep 10 17:06:07 2007 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Mon, 10 Sep 2007 11:06:07 -0400 Subject: Newbie: Passing parameters to standard plugins Message-ID: <2E8AE992B157C0409B18D0225D0B476306CD8F4B@XCH-VN01.sph.ad.jhsph.edu> I'm trying to pass the username and password to the check_mysql plugin, but am having some trouble. In configuring nagios2 so far, I've either just used the plugins with no parameters (such as check_http) or created my own versions of plugins with different names in commands.cfg. I can create a new name for the check_mysql plugin and use that, but this seems wrong. When I create an entry in /etc/nagios2/commands.cfg to fix the order in which I'm passing the parameters, Nagios complains that check_mysql is already defined. Can anyone tell me what I'm doing wrong and how to pass the parameters to a standard plugin? My system is Debian 4.0 Etch with the nagios2 2.6-2+etch1 package installed. Thanks for your advice and suggestions. -Kevin Kevin Zembower Internet Services Group manager Center for Communication Programs Bloomberg School of Public Health Johns Hopkins University 111 Market Place, Suite 310 Baltimore, Maryland 21202 410-659-6139 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Mon Sep 10 18:20:34 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Mon, 10 Sep 2007 18:20:34 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: I finally found a solution : either deactivate the host checks or... define a check_command for the hosts : with host_checks_enabled and without a check command, nagios eats all of my CPU, with a command defined, everything is back to normal... I wish I saw I had no check_command defined in my host template ! Cheers ________________________________ From: SCHAER Frederic Sent: Monday, September 10, 2007 5:56 PM To: SCHAER Frederic; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios 3.0b3 abnormal cpu load ? /me again... It seems there is a problem with host checks on my box that causes host checks to be run continuously on the same host(s) - well it seems that there is indeed no host check run because one is < always > executing ( ? no, it's not ! ). logs show this for a debug run of just a few seconds : # grep "A check of this host is already being executed" /var/log/nagios/nagios.debug | wc -l 1709 de-activating host checks (execute_host_checks=0)in the nagios.cfg file frees the CPU, at the cost of host checks... it's good to know, isn't it ? ;) Is this really usefull anyway if I define a check_ping service on all hosts ? Cheers ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Monday, September 10, 2007 12:25 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi again, There is a difference between the nagios I compiled on the 2.4 kernel / RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : when stracing the nagios process, I can see it's calling the nanosleep() function - and it then sleeps -, whereas on the 2.4 box I can't see such a call : I just see this kind of thing (and lots of these) : gettimeofday({1189419621, 161574}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 183742}, NULL) = 0 gettimeofday({1189419621, 183780}, NULL) = 0 gettimeofday({1189419621, 183814}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184172}, NULL) = 0 gettimeofday({1189419621, 184326}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184734}, NULL) = 0 gettimeofday({1189419621, 184861}, NULL) = 0 gettimeofday({1189419621, 184984}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 185537}, NULL) = 0 gettimeofday({1189419621, 185734}, NULL) = 0 Bad thing is that I tried to configure with and without the -enable-nanosleep or -disable-nanosleep switches, but this apparently has no effect :'(. So it seems nagios is sleeping all the time, eating the CPU... I'm still trying to see if I can find a way to compile with a "working sleep". Fred ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Friday, September 07, 2007 5:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi, I'm trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that's around 99% cpu usage all the time, on a P4 3GHz machine... Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just ... 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome :-) P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't know if this could help. I don't see many usefull things with maximum debug verbosity... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mclaughlin at bizneteis.com Mon Sep 10 17:22:42 2007 From: daniel.mclaughlin at bizneteis.com (Daniel McLaughlin) Date: Mon, 10 Sep 2007 16:22:42 +0100 Subject: Host State for machines that don't allow ping In-Reply-To: References: Message-ID: <46E56142.3060604@bizneteis.com> In my nagios setup I have a similar problem, how I get around this is (in the case of a webserver) is that I use a check_http for the check_host command, therefore if HTTP is available, I am assuming that the server is up! nagios-users-request at lists.sourceforge.net wrote: > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. NDOUtiles not working (vadi) > 2. Antw: nagios 3.0b3 abnormal cpu load ? (Uwe Knop) > 3. Re: Disks not reporting correctly (Ton Voon) > 4. Re: NDOUtiles not working (Sven Bauknecht) > 5. Re: nagios 3.0b3 abnormal cpu load ? (Sven Bauknecht) > 6. Re: NDOUtiles not working (tom.welsh at bt.com) > 7. Host State for machines that don't allow ping (Hari Sekhon) > 8. Re: nagios 3.0b3 abnormal cpu load ? (SCHAER Frederic) > 9. Re: Host State for machines that don't allow ping > (Andreas Ericsson) > 10. Re: nagios 3.0b3 abnormal cpu load ? (SCHAER Frederic) > 11. Re: Host State for machines that don't allow ping (Hari Sekhon) > 12. Re: Host State for machines that don't allow ping (Hari Sekhon) > 13. Re: Host State for machines that don't allow ping > (Andreas Ericsson) > 14. nagios-plugin unable to compile (RaJESH KANNA) > 15. Re: nagios-plugin unable to compile (Andreas Ericsson) > 16. Re: nagios-plugin unable to compile (RaJESH KANNA) > 17. servicegroup dependant on other service (Paul Dugas) > 18. Re: servicegroup dependant on other service (Andreas Ericsson) > 19. Newbie: Passing parameters to standard plugins (Zembower, Kevin) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 10 Sep 2007 10:03:14 +0530 > From: vadi > Subject: [Nagios-users] NDOUtiles not working > To: Nagios-users at lists.sourceforge.net > Message-ID: > <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Dear All, > > I have configured NDOUtiles for my nagios system. > > Used tools > MySQL-client-standard-5.0.26-0.rhel4 > MySQL-shared-standard-5.0.26-0.rhel4 > MySQL-devel-standard-5.0.26-0.rhel4 > MySQL-server-standard-5.0.26-0.rhel4 > nagios 2.9 > ndoutils-1.4b5 > > First time I got an error > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, or > was not found on your system. [Can I know what this error meaning?] > Then later I have changed ndoutils to ndoutils.12232005 . > After that I have not got any error but mysql database not getting any data > INPUT[Not sync]. > I have tasted this for all the possibility ways[I worked very hard to > troubleshot], but it don't helped me. > I am very poor in troubleshoot the problem [I can't troubleshoot the problem > in source level] > > Please can somebody help me for this issue. > > Thanks, > Vadiraj > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Mon, 10 Sep 2007 08:37:25 +0200 > From: "Uwe Knop" > Subject: [Nagios-users] Antw: nagios 3.0b3 abnormal cpu load ? > To: "SCHAER Frederic" , > > Message-ID: <46E50246.1311.0075.3 at lds.brandenburg.de> > Content-Type: text/plain; charset="iso-8859-15" > > Hi, > > I have the same Problem with nagios 3.0b3 server. > The last good Version around CPU Load was nagios 3.0a5 . > > bye > Uwe Knop > > > >>>> "SCHAER Frederic" schrieb am Fr, Sep 7, >>>> > 2007 um 5:51 in Nachricht > : > > Hi, > > I*m trying to setup a nagios 3.0b3 server, and I configured it with > only one host, one check (ping). > I can successfully start nagios, but I have concerns about the server > cpu load : that*s around 99% cpu usage all the time, on a P4 3GHz > machine* > > Is there something I could do to decrese this load ? I tried installing > a nagios 2.9 server using the same configuration, and the load caused by > nagios is just * 0. > I guess this is a bug in the beta 3 ? > > Increasing the sleep time in nagios.cfg does not help at all even if I > put sleep_time=2500 (2500 seconds !) > > Any suggestions would be welcome J > > P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, > don*t know if this could help. I don*t see many usefull things with > maximum debug verbosity* > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Mon, 10 Sep 2007 08:31:57 +0100 > From: Ton Voon > Subject: Re: [Nagios-users] Disks not reporting correctly > To: Craig Jackson > Cc: nagios-users at lists.sourceforge.net > Message-ID: <883CD1B1-AD7E-4813-AAAE-A7BD3C528628 at altinity.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On 7 Sep 2007, at 15:33, Craig Jackson wrote: > > >> Here's the relevant lines from nrpe.cfg: >> command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 - >> c 10 >> -p /dev/sda1 >> command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 - >> c 10 >> -p /dev/sdb1 >> command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 - >> c 10 >> -p /dev/sdc1 >> >> Any ideas? >> > > You want to add a % after the 20 and 10, ie: check_disk -w 20% -c 10%. > > It's a common mistake. I believe Ethan has already updated the CVS > version of nrpe.cfg so that the default has the percent figures > included. > > Ton > > http://www.altinity.com > T: +44 (0)870 787 9243 > F: +44 (0)845 280 1725 > Skype: tonvoon > > > > > > ------------------------------ > > Message: 4 > Date: Mon, 10 Sep 2007 10:30:36 +0200 (CEST) > From: "Sven Bauknecht" > Subject: Re: [Nagios-users] NDOUtiles not working > To: nagios-users at lists.sourceforge.net > Message-ID: > <37444.217.66.32.101.1189413036.squirrel at mail.pizzatimer.de> > Content-Type: text/plain;charset=iso-8859-1 > > Hi Vadiraj, > > did you use the --enable-mysql option with the ndo-utils ./configure command. > > In my case it was a bit weired with ndo utils, I had to run ./configure > --enable-mysql and the make commands twice before ndo-utils started > working properly. > > Maybe that`ll help in your case, too. > > Regards > sven > > > >> Dear All, >> >> I have configured NDOUtiles for my nagios system. >> >> Used tools >> MySQL-client-standard-5.0.26-0.rhel4 >> MySQL-shared-standard-5.0.26-0.rhel4 >> MySQL-devel-standard-5.0.26-0.rhel4 >> MySQL-server-standard-5.0.26-0.rhel4 >> nagios 2.9 >> ndoutils-1.4b5 >> >> First time I got an error >> #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i >> Support for the specified database server is either not yet supported, or >> was not found on your system. [Can I know what this error meaning?] >> Then later I have changed ndoutils to ndoutils.12232005 . >> After that I have not got any error but mysql database not getting any >> data >> INPUT[Not sync]. >> I have tasted this for all the possibility ways[I worked very hard to >> troubleshot], but it don't helped me. >> I am very poor in troubleshoot the problem [I can't troubleshoot the >> problem >> in source level] >> >> Please can somebody help me for this issue. >> >> Thanks, >> Vadiraj >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > -- > mail : sbauknecht at pizzatimer.de > web : http://www.sbauknecht.de > > No no no. Don't use kill -9. > It doesn't give the process a chance to cleanly: > 1) shut down socket connections > 2) clean up temp files > 3) inform its children that it is going away > 4) reset its terminal characteristics > and so on and so on and so on. > > Generally, send 15, and wait a second or two, and if that doesn't work, > send 2, and if that doesn't work, send 1. > If that doesn't, REMOVE THE BINARY because the program is badly behaved! > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > > > ------------------------------ > > Message: 5 > Date: Mon, 10 Sep 2007 10:38:43 +0200 (CEST) > From: "Sven Bauknecht" > Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > To: nagios-users at lists.sourceforge.net > Message-ID: > <40501.217.66.32.101.1189413523.squirrel at mail.pizzatimer.de> > Content-Type: text/plain;charset=iso-8859-1 > > Hi, > > I can`t see any CPU problems with nagios 3.0b3. My System is a Virtuozzo > VM with Ubuntu dapper running Kernel 2.6.9. > > This is a Testbox so there only about 10 Checks running. > > Could this be a kernel 2.4.x issue? - Just a thought... > > Regards, > > sven > > > > >> Hi, >> >> >> >> I'm trying to setup a nagios 3.0b3 server, and I configured it with only >> one host, one check (ping). >> >> I can successfully start nagios, but I have concerns about the server >> cpu load : that's around 99% cpu usage all the time, on a P4 3GHz >> machine... >> >> >> >> Is there something I could do to decrese this load ? I tried installing >> a nagios 2.9 server using the same configuration, and the load caused by >> nagios is just ... 0. >> >> I guess this is a bug in the beta 3 ? >> >> >> >> Increasing the sleep time in nagios.cfg does not help at all even if I >> put sleep_time=2500 (2500 seconds !) >> >> >> >> Any suggestions would be welcome :-) >> >> >> >> P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't >> know if this could help. I don't see many usefull things with maximum >> debug verbosity... >> >> >> >> >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> >> http://get.splunk.com/_______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > -- > mail : sbauknecht at pizzatimer.de > web : http://www.sbauknecht.de > > No no no. Don't use kill -9. > It doesn't give the process a chance to cleanly: > 1) shut down socket connections > 2) clean up temp files > 3) inform its children that it is going away > 4) reset its terminal characteristics > and so on and so on and so on. > > Generally, send 15, and wait a second or two, and if that doesn't work, > send 2, and if that doesn't work, send 1. > If that doesn't, REMOVE THE BINARY because the program is badly behaved! > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > > > ------------------------------ > > Message: 6 > Date: Mon, 10 Sep 2007 09:44:09 +0100 > From: > Subject: Re: [Nagios-users] NDOUtiles not working > To: , > Message-ID: > <6546343904687E41B19D8E5A26AB9F53014CE236 at E03MVB2-UKBR.domain1.systemhost.net> > > Content-Type: text/plain; charset="us-ascii" > > This is the exact same problem I have been having also. I have tried > with the --enable-mysql and also specifying the mysql libs and include > files but still get the error that Vadiraj gets. > > I have the following setup > > OS and Software as follows > SUSE Linux Enterprise Server 9. SP2 > Nagios 2.9 > NDO Utils 1.4b5 > MySQL 5.0.54 > > All of the above compiled from source apart from SUSE :P > > Regards > > Tom > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sven > Bauknecht > Sent: 10 September 2007 09:31 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NDOUtiles not working > > Hi Vadiraj, > > did you use the --enable-mysql option with the ndo-utils ./configure > command. > > In my case it was a bit weired with ndo utils, I had to run ./configure > --enable-mysql and the make commands twice before ndo-utils started > working properly. > > Maybe that`ll help in your case, too. > > Regards > sven > > > >> Dear All, >> >> I have configured NDOUtiles for my nagios system. >> >> Used tools >> MySQL-client-standard-5.0.26-0.rhel4 >> MySQL-shared-standard-5.0.26-0.rhel4 >> MySQL-devel-standard-5.0.26-0.rhel4 >> MySQL-server-standard-5.0.26-0.rhel4 >> nagios 2.9 >> ndoutils-1.4b5 >> >> First time I got an error >> #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i >> Support for the specified database server is either not yet supported, >> > > >> or was not found on your system. [Can I know what this error meaning?] >> > > >> Then later I have changed ndoutils to ndoutils.12232005 . >> After that I have not got any error but mysql database not getting any >> > > >> data INPUT[Not sync]. >> I have tasted this for all the possibility ways[I worked very hard to >> troubleshot], but it don't helped me. >> I am very poor in troubleshoot the problem [I can't troubleshoot the >> problem in source level] >> >> Please can somebody help me for this issue. >> >> Thanks, >> Vadiraj >> >> -- >> This message has been scanned for viruses and dangerous content by >> MailScanner, and is believed to be clean. >> >> ---------------------------------------------------------------------- >> --- This SF.net email is sponsored by: Microsoft Defy all challenges. >> Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________ >> ________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > -- > mail : sbauknecht at pizzatimer.de > web : http://www.sbauknecht.de > > No no no. Don't use kill -9. > It doesn't give the process a chance to cleanly: > 1) shut down socket connections > 2) clean up temp files > 3) inform its children that it is going away > 4) reset its terminal characteristics > and so on and so on and so on. > > Generally, send 15, and wait a second or two, and if that doesn't work, > send 2, and if that doesn't work, send 1. > If that doesn't, REMOVE THE BINARY because the program is badly behaved! > > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------ > > Message: 7 > Date: Mon, 10 Sep 2007 09:52:10 +0100 > From: Hari Sekhon > Subject: [Nagios-users] Host State for machines that don't allow ping > To: Nagios Users mailinglist > Message-ID: <46E505BA.7070302 at googlemail.com> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hi, > > I am curios what people do when monitoring a host that does not > respond to pings. I have a host which is not under my control, it does > not respond to pings, but I am monitoring one service. The service is > up, so the host is up. I am not receiving notifications for this host > and it appears to be fine, but in the web interface, nagios has the host > column as red but the service column as green. > > This is somewhat of a contradiction because if the service is ok, then > implicitly the host is up. Should the host column not be green as well? > > I am considering changing the host definition's check command to a dummy > check instead of the usual ping check, but this seems like not quite the > right thing to do because the host may well be down then and the dummy > check will always return ok and nagios will think that host is up. > > I have also considered making the host check just the same check that > the service is, which should work for this one host, but what about if I > have to do the same for other hosts, this doesn't scale, I can't > template it etc... > > > These are the only 2 options I can think of, either never know if it's > up or not, or use the service check, but this doesn't scale and has to > be done on an individual host basis for any host that doesn't respond to > pings. > > > Anybody got any other ideas? > > Thanks > > -h > > -- > Hari Sekhon > > > > > ------------------------------ > > Message: 8 > Date: Mon, 10 Sep 2007 10:58:22 +0200 > From: "SCHAER Frederic" > Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > To: > Message-ID: > > Content-Type: text/plain; charset="us-ascii" > > Hi, > > Thanks for the feedback about this... I was just testing on an ubuntu > 7.04 box, and indeed there is no CPU load problem... I'll report this on > the devel mailing list, I fear there is indeed a bug somewhere :'( > > Regards > > >> Hi, >> >> I can`t see any CPU problems with nagios 3.0b3. My System is a >> > Virtuozzo > >> VM with Ubuntu dapper running Kernel 2.6.9. >> >> This is a Testbox so there only about 10 Checks running. >> >> Could this be a kernel 2.4.x issue? - Just a thought... >> >> Regards, >> >> sven >> >> >> > > > > ------------------------------ > > Message: 9 > Date: Mon, 10 Sep 2007 11:22:45 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] Host State for machines that don't allow > ping > To: Hari Sekhon > Cc: Nagios Users mailinglist > Message-ID: <46E50CE5.4020602 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hari Sekhon wrote: > >> Hi, >> >> I am curios what people do when monitoring a host that does not >> respond to pings. I have a host which is not under my control, it does >> not respond to pings, but I am monitoring one service. The service is >> up, so the host is up. I am not receiving notifications for this host >> and it appears to be fine, but in the web interface, nagios has the host >> column as red but the service column as green. >> >> This is somewhat of a contradiction because if the service is ok, then >> implicitly the host is up. Should the host column not be green as well? >> >> I am considering changing the host definition's check command to a dummy >> check instead of the usual ping check, but this seems like not quite the >> right thing to do because the host may well be down then and the dummy >> check will always return ok and nagios will think that host is up. >> >> I have also considered making the host check just the same check that >> the service is, which should work for this one host, but what about if I >> have to do the same for other hosts, this doesn't scale, I can't >> template it etc... >> >> >> These are the only 2 options I can think of, either never know if it's >> up or not, or use the service check, but this doesn't scale and has to >> be done on an individual host basis for any host that doesn't respond to >> pings. >> >> >> Anybody got any other ideas? >> >> > > Write a host-check that checks the status of all services on the host. If > any service is up, the host is up. > > Or, write a NEB-module to make this happen automagically whenever a host is > determined to be up and use a dummy check (that doesn't even have to exist) > for host check. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 10 > Date: Mon, 10 Sep 2007 12:25:07 +0200 > From: "SCHAER Frederic" > Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > To: > Message-ID: > > Content-Type: text/plain; charset="us-ascii" > > Hi again, > > > > There is a difference between the nagios I compiled on the 2.4 kernel / > RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : > > when stracing the nagios process, I can see it's calling the nanosleep() > function - and it then sleeps -, whereas on the 2.4 box I can't see such > a call : I just see this kind of thing (and lots of these) : > > > > gettimeofday({1189419621, 161574}, NULL) = 0 > > time([1189419621]) = 1189419621 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 183742}, NULL) = 0 > > gettimeofday({1189419621, 183780}, NULL) = 0 > > gettimeofday({1189419621, 183814}, NULL) = 0 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 184172}, NULL) = 0 > > gettimeofday({1189419621, 184326}, NULL) = 0 > > time([1189419621]) = 1189419621 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 184734}, NULL) = 0 > > gettimeofday({1189419621, 184861}, NULL) = 0 > > gettimeofday({1189419621, 184984}, NULL) = 0 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 185537}, NULL) = 0 > > gettimeofday({1189419621, 185734}, NULL) = 0 > > > > Bad thing is that I tried to configure with and without the > -enable-nanosleep or -disable-nanosleep switches, but this apparently > has no effect :'(. > > So it seems nagios is sleeping all the time, eating the CPU... I'm still > trying to see if I can find a way to compile with a "working sleep". > > > > Fred > > > > > > ________________________________ > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER > Frederic > Sent: Friday, September 07, 2007 5:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > > > > Hi, > > > > I'm trying to setup a nagios 3.0b3 server, and I configured it with only > one host, one check (ping). > > I can successfully start nagios, but I have concerns about the server > cpu load : that's around 99% cpu usage all the time, on a P4 3GHz > machine... > > > > Is there something I could do to decrese this load ? I tried installing > a nagios 2.9 server using the same configuration, and the load caused by > nagios is just ... 0. > > I guess this is a bug in the beta 3 ? > > > > Increasing the sleep time in nagios.cfg does not help at all even if I > put sleep_time=2500 (2500 seconds !) > > > > Any suggestions would be welcome :-) > > > > P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't > know if this could help. I don't see many usefull things with maximum > debug verbosity... > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 11 > Date: Mon, 10 Sep 2007 11:55:58 +0100 > From: Hari Sekhon > Subject: Re: [Nagios-users] Host State for machines that don't allow > ping > To: Andreas Ericsson > Cc: Nagios Users mailinglist > Message-ID: <46E522BE.4020207 at googlemail.com> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > > > Andreas Ericsson wrote: > >> Write a host-check that checks the status of all services on the host. If >> any service is up, the host is up. >> > In that case, I would just use the service check as the host check as well. > > >> Or, write a NEB-module to make this happen automagically whenever a >> host is >> determined to be up and use a dummy check (that doesn't even have to >> exist) >> for host check. >> > > NEB seems a little OTT, I don't know anything about NEB and I'd rather > avoid doing something heavy for something which should be small and simple. > > > > I take it that most of you out there who run Nagios have ping enabled on > _all_ of your hosts? > > > I can't be the first person to run into this, surely? > > -h > > > > ------------------------------ > > Message: 12 > Date: Mon, 10 Sep 2007 11:59:07 +0100 > From: Hari Sekhon > Subject: Re: [Nagios-users] Host State for machines that don't allow > ping > To: Nagios Users mailinglist > Message-ID: <46E5237B.9050008 at googlemail.com> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > one more thing, I spoke too soon, I am getting host down alerts for that > host even though the service is green in the web interface and I can see > the service output banner from the service. > > -h > > > > ------------------------------ > > Message: 13 > Date: Mon, 10 Sep 2007 13:06:28 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] Host State for machines that don't allow > ping > To: Hari Sekhon > Cc: Nagios Users mailinglist > Message-ID: <46E52534.1040008 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hari Sekhon wrote: > >> Andreas Ericsson wrote: >> >>> Write a host-check that checks the status of all services on the host. If >>> any service is up, the host is up. >>> >> In that case, I would just use the service check as the host check as well. >> >> >>> Or, write a NEB-module to make this happen automagically whenever a >>> host is >>> determined to be up and use a dummy check (that doesn't even have to >>> exist) >>> for host check. >>> >> NEB seems a little OTT, I don't know anything about NEB and I'd rather >> avoid doing something heavy for something which should be small and simple. >> >> > > It wouldn't be heavy at all. Just hook into the host checking machinery and > go through the host's services prior to running the actual check. If any of > the services are ok, block the host check and set the host to state "UP" with > output "Implicitly OK due to functioning services". > > It could probably be done in 100 or so lines of code. > > >> I take it that most of you out there who run Nagios have ping enabled on >> _all_ of your hosts? >> >> >> I can't be the first person to run into this, surely? >> >> > > Nopes, but generally there's some easy way of checking if the host is up. > check_tcp is quite small and efficient. Perhaps you can use that to check > if the port serving whatever service you're monitoring is up? > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 14 > Date: 10 Sep 2007 12:03:32 -0000 > From: "RaJESH KANNA" > Subject: [Nagios-users] nagios-plugin unable to compile > To: nagios-users at lists.sourceforge.net > Message-ID: <20070910120332.7545.qmail at webmail103.rediffmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > ? > Hi, > > I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. > > Note : i tried disable-ssl,disable-mysql etc. > > nagios plugin version : 1.4.9 > > OS : solaris 10 > > > #./configure works > > #make ( throws below mentioned error) > > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > Current working directory /usr/local/nagios/nagios-plugins-1.4.9 > *** Error code 1 > make: Fatal error: Command failed for target `all' > > > Regards, > Rajesh > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 15 > Date: Mon, 10 Sep 2007 14:13:14 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] nagios-plugin unable to compile > To: RaJESH KANNA > Cc: nagios-users at lists.sourceforge.net > Message-ID: <46E534DA.6010502 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > RaJESH KANNA wrote: > >> Hi, >> >> I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. >> >> Note : i tried disable-ssl,disable-mysql etc. >> >> nagios plugin version : 1.4.9 >> >> OS : solaris 10 >> >> >> #./configure works >> >> #make ( throws below mentioned error) >> >> *=* | --[!k]*);; \ >> *k*) failcom='fail=yes';; \ >> esac; \ >> done; \ >> dot_seen=no; \ >> target=`echo all-recursive | sed s/-recursive//`; \ >> list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ >> echo "Making $target in $subdir"; \ >> if test "$subdir" = "."; then \ >> dot_seen=yes; \ >> local_target="$target-am"; \ >> else \ >> local_target="$target"; \ >> fi; \ >> (cd $subdir && make $local_target) \ >> || eval $failcom; \ >> done; \ >> if test "$dot_seen" = "no"; then \ >> make "$target-am" || exit 1; \ >> fi; test -z "$fail" >> make: Fatal error: Command failed for target `all-recursive' >> Current working directory /usr/local/nagios/nagios-plugins-1.4.9 >> *** Error code 1 >> make: Fatal error: Command failed for target `all' >> >> > > This is a result of the nagiosplugin Makefile being ridiculously > complex and more or less requiring GNU make. > > Either install GNU make (it's very portable), or bugger the nagiosplug > dev-team to fix this, preferrably on nagiosplug-help at lists.sourceforge.net > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 16 > Date: 10 Sep 2007 12:31:19 -0000 > From: "RaJESH KANNA" > Subject: Re: [Nagios-users] nagios-plugin unable to compile > To: nagios-users at lists.sourceforge.net > Message-ID: <20070910123119.2504.qmail at webmail94.rediffmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > ? > Thanks Andreas!. Installing Gnu make didn't help. I will send mail to nagiosplugin-help > > Rajesh > > > On Mon, 10 Sep 2007 Andreas Ericsson wrote : > >> RaJESH KANNA wrote: >> >>> Hi, >>> >>> I am unable to compile nagios-plugin on a solaris machine. Has someone come across this error. Kinldy help. >>> Note : i tried disable-ssl,disable-mysql etc. >>> >>> nagios plugin version : 1.4.9 >>> OS : solaris 10 >>> >>> >>> #./configure works >>> #make ( throws below mentioned error) >>> >>> *=* | --[!k]*);; \ >>> *k*) failcom='fail=yes';; \ >>> esac; \ >>> done; \ >>> dot_seen=no; \ >>> target=`echo all-recursive | sed s/-recursive//`; \ >>> list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \ >>> echo "Making $target in $subdir"; \ >>> if test "$subdir" = "."; then \ >>> dot_seen=yes; \ >>> local_target="$target-am"; \ >>> else \ >>> local_target="$target"; \ >>> fi; \ >>> (cd $subdir && make $local_target) \ >>> || eval $failcom; \ >>> done; \ >>> if test "$dot_seen" = "no"; then \ >>> make "$target-am" || exit 1; \ >>> fi; test -z "$fail" >>> make: Fatal error: Command failed for target `all-recursive' >>> Current working directory /usr/local/nagios/nagios-plugins-1.4.9 >>> *** Error code 1 >>> make: Fatal error: Command failed for target `all' >>> >>> >> This is a result of the nagiosplugin Makefile being ridiculously >> complex and more or less requiring GNU make. >> >> Either install GNU make (it's very portable), or bugger the nagiosplug >> dev-team to fix this, preferrably on nagiosplug-help at lists.sourceforge.net >> >> -- Andreas Ericsson andreas.ericsson at op5.se >> OP5 AB www.op5.se >> Tel: +46 8-230225 Fax: +46 8-230231 >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 17 > Date: Mon, 10 Sep 2007 10:23:48 -0400 > From: Paul Dugas > Subject: [Nagios-users] servicegroup dependant on other service > To: nagios-users at lists.sourceforge.net > Message-ID: <1189434228.3481.59.camel at pcpad.dugas.cc> > Content-Type: text/plain; charset="us-ascii" > > I've defined a service for a hostgroup and am trying to make each of > those services dependent on one other service. I don't want to have to > type the name of every member of the hostgroup; there are hundreds of > them. > > This is the "master" service > > >> define service{ >> host_name svr >> service_description VIDS >> check_command check_snmp_proc!VIDS_Server >> use server-service >> } >> > > These need to be dependent on the "master" service > > >> define service{ >> hostgroup_name CAM >> service_description CONTROL >> check_command check_cam_control_vids!svr >> use cam-service >> } >> > > This isn't working. > > >> define servicedependency{ >> host_name svr >> service_description VIDS >> dependent_hostgroup_name CAM >> dependent_service_description CONTROL >> } >> > > I'm getting this for each member of the CAM hostgroup > > >> Warning: Ignoring lame service dependency (config file '/etc/nagios/nav/cam.cfg', line 57) >> > > Any ideas as to where I'm going awry? > > TIA, > > pd > -- > Paul Dugas > Dugas Enterprises, LLC > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: This is a digitally signed message part > > ------------------------------ > > Message: 18 > Date: Mon, 10 Sep 2007 16:39:58 +0200 > From: Andreas Ericsson > Subject: Re: [Nagios-users] servicegroup dependant on other service > To: Paul Dugas > Cc: nagios-users at lists.sourceforge.net > Message-ID: <46E5573E.1060206 at op5.se> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Paul Dugas wrote: > >> I've defined a service for a hostgroup and am trying to make each of >> those services dependent on one other service. I don't want to have to >> type the name of every member of the hostgroup; there are hundreds of >> them. >> >> This is the "master" service >> >> >>> define service{ >>> host_name svr >>> service_description VIDS >>> check_command check_snmp_proc!VIDS_Server >>> use server-service >>> } >>> >> These need to be dependent on the "master" service >> >> >>> define service{ >>> hostgroup_name CAM >>> service_description CONTROL >>> check_command check_cam_control_vids!svr >>> use cam-service >>> } >>> >> This isn't working. >> >> >>> define servicedependency{ >>> host_name svr >>> service_description VIDS >>> dependent_hostgroup_name CAM >>> dependent_service_description CONTROL >>> } >>> >> I'm getting this for each member of the CAM hostgroup >> >> >>> Warning: Ignoring lame service dependency (config file '/etc/nagios/nav/cam.cfg', line 57) >>> >> Any ideas as to where I'm going awry? >> >> > > You have no notification_failure_criteria or check_execution_failure_criteria > specified. As such, it's a completely empty dependency that Nagios will > simply ignore because it will have zero impact during run-time. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------ > > Message: 19 > Date: Mon, 10 Sep 2007 11:06:07 -0400 > From: "Zembower, Kevin" > Subject: [Nagios-users] Newbie: Passing parameters to standard plugins > To: > Message-ID: > <2E8AE992B157C0409B18D0225D0B476306CD8F4B at XCH-VN01.sph.ad.jhsph.edu> > Content-Type: text/plain; charset="us-ascii" > > I'm trying to pass the username and password to the check_mysql plugin, > but am having some trouble. In configuring nagios2 so far, I've either > just used the plugins with no parameters (such as check_http) or created > my own versions of plugins with different names in commands.cfg. I can > create a new name for the check_mysql plugin and use that, but this > seems wrong. When I create an entry in /etc/nagios2/commands.cfg to fix > the order in which I'm passing the parameters, Nagios complains that > check_mysql is already defined. > > Can anyone tell me what I'm doing wrong and how to pass the parameters > to a standard plugin? > > My system is Debian 4.0 Etch with the nagios2 2.6-2+etch1 package > installed. > > Thanks for your advice and suggestions. > > -Kevin > > Kevin Zembower > Internet Services Group manager > Center for Communication Programs > Bloomberg School of Public Health > Johns Hopkins University > 111 Market Place, Suite 310 > Baltimore, Maryland 21202 > 410-659-6139 > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest, Vol 16, Issue 13 > ******************************************** > -- Daniel Mclaughlin Web Applications Infrastructure Technician Biznet MH Pavilion, UUSRP (Magee Campus), Northland Road, Northern Ireland. BT48 7UU T: +44 (0)28 7129 5912 F: +44 (0)28 7129 5900 M: +44 (0)78 1698 7560 E:daniel.mclaughlin at bizneteis.com W:http://www.bizneteis.com Biznet Suite 505, Riverway 3, Post Oak Lane, Houston, TX 77056, USA. T: +1 713 425 6317 F: +1 713 783 0067 E:daniel.mclaughlin at bizneteis.com W:http://www.bizneteis.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From clee.hk at gmail.com Mon Sep 10 17:23:23 2007 From: clee.hk at gmail.com (Chris Lee) Date: Mon, 10 Sep 2007 23:23:23 +0800 Subject: nagios-plugin unable to compile In-Reply-To: <20070910120332.7545.qmail@webmail103.rediffmail.com> References: <20070910120332.7545.qmail@webmail103.rediffmail.com> Message-ID: Hi Rajesh, I recieved some compile errors when I compiled the nagios-plugin on solaris 10 using the native cc compiler. Finally, I installed iconv, gcc and open-ssl and then did the compilation again. Then everything worked. Regards, -- Chris On 10 Sep 2007 12:03:32 -0000, RaJESH KANNA wrote: > > > Hi, > > I am unable to compile nagios-plugin on a solaris machine. Has someone > come across this error. Kinldy help. > > Note : i tried disable-ssl,disable-mysql etc. > > nagios plugin version : 1.4.9 > > OS : solaris 10 > > > #./configure works > > #make ( throws below mentioned error) > > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='gl lib plugins plugins-scripts plugins-root po'; for subdir in > $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > Current working directory /usr/local/nagios/nagios-plugins-1.4.9 > *** Error code 1 > make: Fatal error: Command failed for target `all' > > > Regards, > Rajesh > > > > > > > [image: ebay] > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cjackson at abbott-simses.com Mon Sep 10 17:22:33 2007 From: cjackson at abbott-simses.com (cjackson) Date: Mon, 10 Sep 2007 10:22:33 -0500 Subject: Disks not reporting correctly In-Reply-To: <883CD1B1-AD7E-4813-AAAE-A7BD3C528628@altinity.com> References: <3298D7BF4EB43A4498C56C7E304EC692A82C60@NO-MAIL.abbott-simses.local> <883CD1B1-AD7E-4813-AAAE-A7BD3C528628@altinity.com> Message-ID: <46E56139.60802@abbott-simses.com> Ton Voon wrote: > > On 7 Sep 2007, at 15:33, Craig Jackson wrote: > >> Here's the relevant lines from nrpe.cfg: >> command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 >> -p /dev/sda1 >> command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 >> -p /dev/sdb1 >> command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 >> -p /dev/sdc1 >> >> Any ideas? > > You want to add a % after the 20 and 10, ie: check_disk -w 20% -c 10%. > > It's a common mistake. I believe Ethan has already updated the CVS > version of nrpe.cfg so that the default has the percent figures included. > Ton, Adding the "%" didn't correct the problem. The Nrpe client is configured in the same way on at least 10 other servers. Thanks. Craig ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cjackson at abbott-simses.com Mon Sep 10 17:24:38 2007 From: cjackson at abbott-simses.com (cjackson) Date: Mon, 10 Sep 2007 10:24:38 -0500 Subject: Disks not reporting correctly In-Reply-To: <64975B31C6249247A722D0610F4110F7322F8A@hive.officespace.honeycomb.net> References: <64975B31C6249247A722D0610F4110F7322F8A@hive.officespace.honeycomb.net> Message-ID: <46E561B6.1060506@abbott-simses.com> Justin Maloney wrote: > So I see the df there, what does the output from nrpe show you? And > what's the out put of "df -k"? Could be the df you use is defaulting to > 512-byte blocks or the check_disk command might. Just a thought. > > Thank you, > > Justin Maloney > > Systems Administrator > > Honeycomb Internet Services > > 612.617.0007 Justin, The output of df -k is Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 28834716 1238228 26131764 5% / varrun 5114228 224 5114004 1% /var/run varlock 5114228 0 5114228 0% /var/lock procbususb 5114228 72 5114156 1% /proc/bus/usb udev 5114228 72 5114156 1% /dev devshm 5114228 0 5114228 0% /dev/shm lrm 5114228 38972 5075256 1% /lib/modules/2.6.20-15-generic/volatile /dev/sdb1 480719056 138018784 318281072 31% /var/spool/exim/vmail /dev/sdc1 480719056 137322512 318977344 31% /mnt/mailBAC How do I see the output of the Nrpe command? Thanks. Craig ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Mon Sep 10 17:55:55 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Mon, 10 Sep 2007 17:55:55 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: /me again... It seems there is a problem with host checks on my box that causes host checks to be run continuously on the same host(s) - well it seems that there is indeed no host check run because one is < always > executing ( ? no, it's not ! ). logs show this for a debug run of just a few seconds : # grep "A check of this host is already being executed" /var/log/nagios/nagios.debug | wc -l 1709 de-activating host checks (execute_host_checks=0)in the nagios.cfg file frees the CPU, at the cost of host checks... it's good to know, isn't it ? ;) Is this really usefull anyway if I define a check_ping service on all hosts ? Cheers ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Monday, September 10, 2007 12:25 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi again, There is a difference between the nagios I compiled on the 2.4 kernel / RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : when stracing the nagios process, I can see it's calling the nanosleep() function - and it then sleeps -, whereas on the 2.4 box I can't see such a call : I just see this kind of thing (and lots of these) : gettimeofday({1189419621, 161574}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 183742}, NULL) = 0 gettimeofday({1189419621, 183780}, NULL) = 0 gettimeofday({1189419621, 183814}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184172}, NULL) = 0 gettimeofday({1189419621, 184326}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184734}, NULL) = 0 gettimeofday({1189419621, 184861}, NULL) = 0 gettimeofday({1189419621, 184984}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 185537}, NULL) = 0 gettimeofday({1189419621, 185734}, NULL) = 0 Bad thing is that I tried to configure with and without the -enable-nanosleep or -disable-nanosleep switches, but this apparently has no effect :'(. So it seems nagios is sleeping all the time, eating the CPU... I'm still trying to see if I can find a way to compile with a "working sleep". Fred ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Friday, September 07, 2007 5:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi, I'm trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that's around 99% cpu usage all the time, on a P4 3GHz machine... Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just ... 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome :-) P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't know if this could help. I don't see many usefull things with maximum debug verbosity... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Mon Sep 10 18:44:55 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Mon, 10 Sep 2007 12:44:55 -0400 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: Hi List, First I think this is more appropiate fpr the Developer list so I hope Ethan has been watching this thread. If your observation is true, should Nagios have an internal default hostcheck command or some code to deactivate hostchecks when no hostcheck command is entered? Tony (author of NC_Net) On 9/10/07, SCHAER Frederic wrote: > > I finally found a solution : > > either deactivate the host checks or? define a check_command for the hosts > : with host_checks_enabled and without a check command, nagios eats all of > my CPU, with a command defined, everything is back to normal? > > > > I wish I saw I had no check_command defined in my host template ! > > > > Cheers > > > ------------------------------ > > *From:* SCHAER Frederic > *Sent:* Monday, September 10, 2007 5:56 PM > *To:* SCHAER Frederic; nagios-users at lists.sourceforge.net > *Subject:* RE: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > > > > /me again? > > > > It seems there is a problem with host checks on my box that causes host > checks to be run continuously on the same host(s) ? well it seems that there > is indeed no host check run because one is ? always ? executing ( ? no, it's > not ! ). > > > > logs show this for a debug run of just a few seconds : > > # grep "A check of this host is already being executed" > /var/log/nagios/nagios.debug | wc -l > > 1709 > > > > de-activating host checks (execute_host_checks=0)in the nagios.cfg file > frees the CPU, at the cost of host checks? it's good to know, isn't it ? ;) > > Is this really usefull anyway if I define a check_ping service on all > hosts ? > > > > Cheers > > > ------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *SCHAER Frederic > *Sent:* Monday, September 10, 2007 12:25 PM > *To:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? > > > > Hi again, > > > > There is a difference between the nagios I compiled on the 2.4 kernel / > RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : > > when stracing the nagios process, I can see it's calling the nanosleep() > function ? and it then sleeps -, whereas on the 2.4 box I can't see such a > call : I just see this kind of thing (and lots of these) : > > > > gettimeofday({1189419621, 161574}, NULL) = 0 > > time([1189419621]) = 1189419621 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 183742}, NULL) = 0 > > gettimeofday({1189419621, 183780}, NULL) = 0 > > gettimeofday({1189419621, 183814}, NULL) = 0 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 184172}, NULL) = 0 > > gettimeofday({1189419621, 184326}, NULL) = 0 > > time([1189419621]) = 1189419621 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 184734}, NULL) = 0 > > gettimeofday({1189419621, 184861}, NULL) = 0 > > gettimeofday({1189419621, 184984}, NULL) = 0 > > time([1189419621]) = 1189419621 > > gettimeofday({1189419621, 185537}, NULL) = 0 > > gettimeofday({1189419621, 185734}, NULL) = 0 > > > > Bad thing is that I tried to configure with and without the > ?enable-nanosleep or ?disable-nanosleep switches, but this apparently has no > effect :'(. > > So it seems nagios is sleeping all the time, eating the CPU? I'm still > trying to see if I can find a way to compile with a "working sleep". > > > > Fred > > > > > ------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *SCHAER Frederic > *Sent:* Friday, September 07, 2007 5:51 PM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] nagios 3.0b3 abnormal cpu load ? > > > > Hi, > > > > I'm trying to setup a nagios 3.0b3 server, and I configured it with only > one host, one check (ping). > > I can successfully start nagios, but I have concerns about the server cpu > load : that's around 99% cpu usage all the time, on a P4 3GHz machine? > > > > Is there something I could do to decrese this load ? I tried installing a > nagios 2.9 server using the same configuration, and the load caused by > nagios is just ? 0. > > I guess this is a bug in the beta 3 ? > > > > Increasing the sleep time in nagios.cfg does not help at all even if I put > sleep_time=2500 (2500 seconds !) > > > > Any suggestions would be welcome J > > > > P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't > know if this could help. I don't see many usefull things with maximum debug > verbosity? > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at dugas.cc Mon Sep 10 20:15:06 2007 From: paul at dugas.cc (Paul Dugas) Date: Mon, 10 Sep 2007 14:15:06 -0400 Subject: servicegroup dependant on other service In-Reply-To: <1189434228.3481.59.camel@pcpad.dugas.cc> References: <1189434228.3481.59.camel@pcpad.dugas.cc> Message-ID: <1189448106.3481.75.camel@pcpad.dugas.cc> On Mon, 2007-09-10 at 10:23 -0400, Paul Dugas wrote: > > define servicedependency{ > > host_name svr > > service_description VIDS > > dependent_hostgroup_name CAM > > dependent_service_description CONTROL > > } > > I'm getting this for each member of the CAM hostgroup > > > Warning: Ignoring lame service dependency (config file '/etc/nagios/nav/cam.cfg', line 57) Duh, seems in all my fiddling, I removed the notification_failure_criteria and check_execution_failure_criteria entries. Sorry for the wasted bandwidth. pd -- Paul Dugas Dugas Enterprises, LLC -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Mon Sep 10 21:25:08 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Mon, 10 Sep 2007 15:25:08 -0400 Subject: Notifications not working In-Reply-To: <20070910192444.GB9208@pmorris.usa.hp.com> References: <64975B31C6249247A722D0610F4110F7322F89@hive.officespace.honeycomb.net> <2FAF78EDA2D2DF4EB656ABB3339FD105B462F8@mtlexchange.Duocom.local> <20070910192444.GB9208@pmorris.usa.hp.com> Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B46329@mtlexchange.Duocom.local> I apologize for the lack of info. I'll try to clarify Fedora 6 Nagios 2.9 It says the mta is the localhost name which is < mtlnm.duocom.local #5.1.2> that is the name of my local system. I have an exchange server setup and that is handling all emails on another server. If you need more info please let me know. Thanks Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel.?: (514) 341-8181, ext./poste 267 T?l?c./Fax.?: (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail.?: apereira at duocom.ca ? Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca -----Original Message----- From: Patrick Morris [mailto:patrick.morris at hp.com] Sent: Monday, September 10, 2007 3:25 PM To: Antonio Pereira Cc: Justin Maloney; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Notifications not working On Mon, 10 Sep 2007, Antonio Pereira wrote: > Hi, > > I am seeing the following errors in the local var spool file > > The message could not be delivered because the recipient's destination email system is unknown or invalid. Please check the address and try again, or contact your system administrator to verify connectivity to the email system of the recipient. > > I ran this from the console and I got this from the email client app that I am using. I can send emails from this email but not the console which I think it uses the sendmail feature and I think this needs to be configured for our email system right? If so, where? Sounds like you need to figure out what MTA your system is using, and then check to make sure it's configured properly. Since we don't know which you're using, or what appears in your mail logs, or anything else about how Nagios or mail are configured on your system, it's difficult to give you anything more specific than that. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Mon Sep 10 21:24:44 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 10 Sep 2007 12:24:44 -0700 Subject: Notifications not working In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105B462F8@mtlexchange.Duocom.local> References: <64975B31C6249247A722D0610F4110F7322F89@hive.officespace.honeycomb.net> <2FAF78EDA2D2DF4EB656ABB3339FD105B462F8@mtlexchange.Duocom.local> Message-ID: <20070910192444.GB9208@pmorris.usa.hp.com> On Mon, 10 Sep 2007, Antonio Pereira wrote: > Hi, > > I am seeing the following errors in the local var spool file > > The message could not be delivered because the recipient's destination email system is unknown or invalid. Please check the address and try again, or contact your system administrator to verify connectivity to the email system of the recipient. > > I ran this from the console and I got this from the email client app that I am using. I can send emails from this email but not the console which I think it uses the sendmail feature and I think this needs to be configured for our email system right? If so, where? Sounds like you need to figure out what MTA your system is using, and then check to make sure it's configured properly. Since we don't know which you're using, or what appears in your mail logs, or anything else about how Nagios or mail are configured on your system, it's difficult to give you anything more specific than that. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Mon Sep 10 21:10:58 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Mon, 10 Sep 2007 15:10:58 -0400 Subject: Notifications not working In-Reply-To: <64975B31C6249247A722D0610F4110F7322F89@hive.officespace.honeycomb.net> References: <64975B31C6249247A722D0610F4110F7322F89@hive.officespace.honeycomb.net> Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B462F8@mtlexchange.Duocom.local> Hi, I am seeing the following errors in the local var spool file The message could not be delivered because the recipient's destination email system is unknown or invalid. Please check the address and try again, or contact your system administrator to verify connectivity to the email system of the recipient. I ran this from the console and I got this from the email client app that I am using. I can send emails from this email but not the console which I think it uses the sendmail feature and I think this needs to be configured for our email system right? If so, where? Thanks Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca From: Justin Maloney [mailto:justinm at honeycomb.net] Sent: Friday, September 07, 2007 4:24 PM To: Antonio Pereira; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notifications not working What are the errors your seeing? Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Antonio Pereira Sent: Friday, September 07, 2007 9:06 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notifications not working Hello, I am configured the notifications in Nagios but I see errors appearing in Nagios and I don't get any emails. I running the following Fedora 6 Nagios 2.9 Any ideas? Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca ________________________________ Avis Le pr?sent message n'est destin? qu'? la personne ou ? l'entit? ? qui il est adress? et peut contenir des renseignements de nature privil?gi?e et confidentielle. Si le lecteur du pr?sent message n'est pas le destinataire pr?vu ou encore la personne charg?e de remettre ce message au destinataire pr?vu, veuillez nous aviser imm?diatement. Toute diffusion, distribution ou reproduction des renseignements contenus dans ce message ou des documents qui lui sont joints est strictement interdite. ________________________________________ Notice This message is intended only for the use of individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient or the person responsible for delivering the message to the intended recipient, please notify us immediately. Any disclosure, distribution or copying of this message or the information contained herein or attached hereto is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Mon Sep 10 22:06:27 2007 From: vadi.ksdba at gmail.com (vadi) Date: Tue, 11 Sep 2007 01:36:27 +0530 Subject: NDOUtiles not working In-Reply-To: <6546343904687E41B19D8E5A26AB9F53014CE236@E03MVB2-UKBR.domain1.systemhost.net> References: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> <6546343904687E41B19D8E5A26AB9F53014CE236@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <5f6b57ee0709101306x24a30c1l533908eb7b380842@mail.gmail.com> Dear All, I have tried all the ways, but still it's not working. Where I can get logs for NDOUtiles tools? We have datacenter in 4 different locations. As of now we are having nagios configured in one system which will pull the data from different location (I hope it is not the best practices) Now I need to implement 1> Failure concept in nagios(different location). 2> How I can implement Mysql database as a back end repository. 3> What is the best practice for configuring such an environment?, which should use nagios monitoring tool very effectively Thanks and Regards, Vadiraj On 9/10/07, tom.welsh at bt.com wrote: > > This is the exact same problem I have been having also. I have tried > with the --enable-mysql and also specifying the mysql libs and include > files but still get the error that Vadiraj gets. > > I have the following setup > > OS and Software as follows > SUSE Linux Enterprise Server 9. SP2 > Nagios 2.9 > NDO Utils 1.4b5 > MySQL 5.0.54 > > All of the above compiled from source apart from SUSE :P > > Regards > > Tom > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sven > Bauknecht > Sent: 10 September 2007 09:31 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NDOUtiles not working > > Hi Vadiraj, > > did you use the --enable-mysql option with the ndo-utils ./configure > command. > > In my case it was a bit weired with ndo utils, I had to run ./configure > --enable-mysql and the make commands twice before ndo-utils started > working properly. > > Maybe that`ll help in your case, too. > > Regards > sven > > > > Dear All, > > > > I have configured NDOUtiles for my nagios system. > > > > Used tools > > MySQL-client-standard-5.0.26-0.rhel4 > > MySQL-shared-standard-5.0.26-0.rhel4 > > MySQL-devel-standard-5.0.26-0.rhel4 > > MySQL-server-standard-5.0.26-0.rhel4 > > nagios 2.9 > > ndoutils-1.4b5 > > > > First time I got an error > > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > > Support for the specified database server is either not yet supported, > > > or was not found on your system. [Can I know what this error meaning?] > > > Then later I have changed ndoutils to ndoutils.12232005 . > > After that I have not got any error but mysql database not getting any > > > data INPUT[Not sync]. > > I have tasted this for all the possibility ways[I worked very hard to > > troubleshot], but it don't helped me. > > I am very poor in troubleshoot the problem [I can't troubleshoot the > > problem in source level] > > > > Please can somebody help me for this issue. > > > > Thanks, > > Vadiraj > > > > -- > > This message has been scanned for viruses and dangerous content by > > MailScanner, and is believed to be clean. > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all challenges. > > Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________ > > ________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > mail : sbauknecht at pizzatimer.de > web : http://www.sbauknecht.de > > No no no. Don't use kill -9. > It doesn't give the process a chance to cleanly: > 1) shut down socket connections > 2) clean up temp files > 3) inform its children that it is going away > 4) reset its terminal characteristics > and so on and so on and so on. > > Generally, send 15, and wait a second or two, and if that doesn't work, > send 2, and if that doesn't work, send 1. > If that doesn't, REMOVE THE BINARY because the program is badly behaved! > > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patel at uhcl.edu Mon Sep 10 22:42:15 2007 From: patel at uhcl.edu (Patel, Bipin) Date: Mon, 10 Sep 2007 15:42:15 -0500 Subject: Configuration Error - 3.0.b3 Message-ID: I have just installed nagios 3.0b3 on Linux box 2.4.21-47.ELsmp #1 SMP. I am trying to monitor windows machines and when I have uncommented windows.cfg line from /etc/nagios/nagios.cfg and ran configuration check, I am getting following errors. ********* # bin/nagios -v etc/nagios/nagios.cfg Nagios 3.0b3 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 08-30-2007 License: GPL Reading configuration data... Error: Could not find any hostgroup matching 'allhosts' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) Error: Hostgroup has no members (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. It works If I have comment out windows.cfg line in nagios.cfg - No error. But I also like to monitor my windows boxes. So what I am doing wrong? Attached are cfg.cfg, nagios.cfg & windows.cfg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgi.cfg Type: application/octet-stream Size: 11405 bytes Desc: cgi.cfg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios.cfg Type: application/octet-stream Size: 39772 bytes Desc: nagios.cfg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: windows.cfg Type: application/octet-stream Size: 4152 bytes Desc: windows.cfg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Mon Sep 10 23:01:07 2007 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 10 Sep 2007 14:01:07 -0700 Subject: hostgroups in servicegroup definition Message-ID: <723504D812FBEF4F89F958B14D294EB204DFC335@EXCH-C1.corp.cloudmark.com> Looking at the documentation, I don't think what I'm hoping for is possible. We're using nagios 2.9 on Redhat. I'd like to define a servicegroup by listing the members as ,service,,service and then also have other members like ,service. Example: Define servicegroup { Servicegroup_name SG Alias random SG Members hostA,service Hostgroup_Members hostgroup1,service,hostgroup2,service (wishing for) } Is this possible, and I just can't find the name of the directive? Thanks, -Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cpugh at pppl.gov Mon Sep 10 23:24:54 2007 From: cpugh at pppl.gov (Cassandra Pugh) Date: Mon, 10 Sep 2007 17:24:54 -0400 Subject: separate webfront In-Reply-To: References: Message-ID: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F7EC@MAIL-STORE-1.pppl.gov> Hugo, perhaps you can elaborate? Do you know how to pull the web page info out and put it on another server? I am not sure if I want to go the NFS route, as we recently got hacked through NFS vulnerabilities. However, it has been requested that this Nagios page be "public". I have set it up on my box as an internal website, so I know how to do that much... it's just having half of nagios on our "public" web server that has me scratching my head. Any further advice? -- Cassandra (609) 243-2413 "From a little spark may burst a mighty flame." ------------------------------ Message: 5 Date: Fri, 7 Sep 2007 17:37:06 -0500 From: "Marc Powell" Subject: Re: [Nagios-users] separate webfront To: Message-ID: Content-Type: text/plain; charset="US-ASCII" > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Cassandra Pugh > Sent: Friday, September 07, 2007 3:32 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] separate webfront > > I would like to know if anyone knows if the nagios program (and all it > collects and monitors) and the webfront can be hosted on different > computers? > I do not want to make the server that nagios is hosted on a webserver, and > also do not want to bog down the webserver with the nagios processes. > > Does anyone know what I would need to do to accomplish this separation? I have been successful in NFS mounting the nagios home directory from another machine and using the CGI's from there. The only drawback is that you will not be able to issue commands from the web interface at all. NFS doesn't support named pipes. -- Marc ------------------------------ Message: 7 Date: Sat, 8 Sep 2007 09:29:32 +0200 (CEST) From: Hugo van der Kooij Subject: Re: [Nagios-users] separate webfront To: Nagios Users mailinglist Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Fri, 7 Sep 2007, Cassandra Pugh wrote: > I would like to know if anyone knows if the nagios program (and all it > collects and monitors) and the webfront can be hosted on different computers? > I do not want to make the server that nagios is hosted on a webserver, and > also do not want to bog down the webserver with the nagios processes. Apache is not that hard if you tune down the defaults. I think you will find the drawbacks of seperation harder then it needs to be. If yyou do not wish to make it public you can always make the other apache server a front for this webserver. I do this for various aplications. Hugo. -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ This message is using 100% recycled electrons. Some men see computers as they are and say "Windows" I use computers with Linux and say "Why Windows?" (Thanks JFK, for this quote of George Bernard Shaw.) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Mon Sep 10 22:49:53 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 10 Sep 2007 13:49:53 -0700 Subject: NDOUtiles not working In-Reply-To: <5f6b57ee0709101306x24a30c1l533908eb7b380842@mail.gmail.com> References: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> <6546343904687E41B19D8E5A26AB9F53014CE236@E03MVB2-UKBR.domain1.systemhost.net> <5f6b57ee0709101306x24a30c1l533908eb7b380842@mail.gmail.com> Message-ID: <20070910204953.GF9208@pmorris.usa.hp.com> On Mon, 10 Sep 2007, vadi wrote: > I have tried all the ways, but still it's not working. > Where I can get logs for NDOUtiles tools? ndoutils will log to the same place Nagios does. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 10 23:43:19 2007 From: marc at ena.com (Marc Powell) Date: Mon, 10 Sep 2007 16:43:19 -0500 Subject: separate webfront In-Reply-To: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F7EC@MAIL-STORE-1.pppl.gov> References: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F7EC@MAIL-STORE-1.pppl.gov> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Cassandra Pugh > Sent: Monday, September 10, 2007 4:25 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] separate webfront > > However, it has been requested that this Nagios page be "public". I have > set > it up on my box as an internal website, so I know how to do that much... > it's > just having half of nagios on our "public" web server that has me > scratching > my head. > > Any further advice? Perhaps the Nagios Looking Glass project (NLG) might be useful to you. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phanoko at gmail.com Tue Sep 11 00:10:40 2007 From: phanoko at gmail.com (matt wells) Date: Mon, 10 Sep 2007 15:10:40 -0700 Subject: Nagios Graph Map file Message-ID: Please let me know if I need to send this to another list. I'm attempting to resolve this map file for nagiosgraph. Below is the information out of the 'perfdata.log' file 1189461916||SERVERX.EXAMPLE.COM|NT_CHECK_DISK_C||Used: 35176 MB (50%) Free: 34275 MB (49%)|| Below is my terrible attempt with the nagiosgraph 'map' file # Service type: ntdisk # check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90 # output: c:\ - total: 25.87 Gb - used: 4.10 Gb (16%) - free 21.77 Gb (84%) # perfdata: c:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87 #/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ /output:.*?([0-9]) MB* Free: .*?([0-9]) MB */ and push @s, [ ntdisk, [ diskused, GAUGE, $1*1024**3 ], [ diskfree, GAUGE, $5*1024**3 ] ]; If anyone can help I'll buy you lunch in Vegas. Wells -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Sep 11 00:21:56 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 10 Sep 2007 15:21:56 -0700 Subject: Nagios Graph Map file In-Reply-To: References: Message-ID: <20070910222156.GH9208@pmorris.usa.hp.com> On Mon, 10 Sep 2007, matt wells wrote: > Please let me know if I need to send this to another list. > I'm attempting to resolve this map file for nagiosgraph. > > Below is the information out of the 'perfdata.log' file > 1189461916||SERVERX.EXAMPLE.COM|NT_CHECK_DISK_C||Used: 35176 MB (50%) Free: 34275 MB (49%)|| > > Below is my terrible attempt with the nagiosgraph 'map' file > # Service type: ntdisk > # check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90 > # output: c:\ - total: 25.87 Gb - used: 4.10 Gb (16%) - free 21.77 Gb (84%) > # perfdata: c:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87 > #/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ > /output:.*?([0-9]) MB* Free: .*?([0-9]) MB */ > and push @s, [ ntdisk, > [ diskused, GAUGE, $1*1024**3 ], > [ diskfree, GAUGE, $5*1024**3 ] ]; > > If anyone can help I'll buy you lunch in Vegas. > > Wells > Your regex has issues. :) Something like this should work (with the caveat that I write regexes about as well as I tap dance): /output:.*Used: ([0-9]) MB .*Free: ([0-9]) MB/ I think the lack of a "." before your "*"s is biting you. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fagundes.pacheco at gmail.com Tue Sep 11 03:28:56 2007 From: fagundes.pacheco at gmail.com (Rodrigo Pacheco) Date: Mon, 10 Sep 2007 22:28:56 -0300 Subject: Nagios 2.9 NDOUtils 1.4b5 Debian 4.0ro mysql-server-5.0 Dont work Message-ID: <924eed8b0709101828q653031e4hb22994682734408a@mail.gmail.com> Friends, When trying to begin Nagios 2.9 with NDOUtils it presents the following message: [04-09-2007 16:41:09] Finished daemonizing... (New PID=450) [04-09-2007 16:41:09] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. [04-09-2007 16:41:09] Error: Function nebmodule_init() in module '/usr/local/nagios/bin/ndomod.o' returned an error. Module will be unloaded. [04-09-2007 16:41:09] ndomod: NDOMOD 1.4b4 (06-19-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) [04-09-2007 16:41:09] LOG VERSION: 2.0 [04-09-2007 16:41:09] Nagios 2.9 starting... (PID=449) can anybody help myself? thank you Rodrigo Pacheco does anybody know as installing the nagios 2.9 with ndoutils in Debian? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul at dugas.cc Tue Sep 11 06:48:17 2007 From: paul at dugas.cc (Paul Dugas) Date: Tue, 11 Sep 2007 00:48:17 -0400 Subject: $HOSTn$ macros? Message-ID: <1189486097.20630.32.camel@pcpad.dugas.cc> Would it be possible in a future release to support something like a $HOSTn$ macro? I'm running into some larger configs where this would be very useful. I've got hundreds of CCTV cameras with serial PTZ-control ports and analog video outputs. Their serial ports are connected to various terminal servers scattered around a rather large network. Their video outputs are connected to separate video encoders. I have standard hosts definitions for the terminal servers and encoders. I have bogus host definitions for the cameras (with check_command set to check_none). The camera hosts are in a hostgroup are so I can provide consolidated reports to camera technicians. I currently have a whole slew of service definitions for the cameras that actually check the serial ports and video inputs on the real devices the camera is connected to. I'd love to be able to do something like this instead: > define host{ > host_name cam-844 > hostgroups CAM > host_data ts-23,12,enc-45,3 # terminal-server host, port, encoder host, port > use cam-host > } > define command{ > command_name check_cam_control > command_line $USER1$/local/check_cam_control -H $HOST1$ -P $HOST2$ > } > define command{ > command_name check_cam_video > command_line $USER1$/local/check_cam_video -H $HOST3$ -P $HOST4$ > } > define service{ > hostgroup_name CAM > service_description CONTROL > servicegroups CAM-CONTROL > check_command check_cam_control > use cam-service > } > define servicedependency{ > host_name $HOST1$ > service_description PING > dependent_hostgroup_name CAM > dependent_service_description CONTROL > execution_failure_criteria w,u,c,p > notification_failure_criteria w,u,c,p > } > define service{ > hostgroup_name CAM > service_description VIDEO > servicegroups CAM-VIDEO > check_command check_cam_video > use cam-service > } > define servicedependency{ > host_name $HOST3$ > service_description PING > dependent_hostgroup_name CAM > dependent_service_description VIDEO > execution_failure_criteria w,u,c,p > notification_failure_criteria w,u,c,p > } Three ideas here: 1: add CSV "host_data" attribute to "host" definitions. 2: make "host_data" pieces available in commands via $HOSTn$ 3: make $HOSTn$ vars available in related object definitions Maybe a pipe dream. Worth throwing out though. Maybe I'll look at a hack where I pack the info into the $HOSTNOTES$ extended attributes.... Paul -- Paul Dugas Dugas Enterprises, LLC -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From huenseler at twt.de Tue Sep 11 07:20:09 2007 From: huenseler at twt.de (Dennis Huenseler) Date: Tue, 11 Sep 2007 07:20:09 +0200 Subject: Configuration Error - 3.0.b3 References: Message-ID: <8A793F1AC3ED7447B580082FCF608CF9ED9729@twtexchange1.twt.intern> Hello out there, the error means that you have a host in your windows.cfg which looks like define host{ use windows-server ; Inherit default values from a template host_name winserver ; The name we're giving to this host alias My Windows Server ; A longer name associated with the host address 192.168.1.2 ; IP address of the host hostgroups allhosts ; Host groups this server is associated with } Where the host is defined as a member of the hostgroup allhosts which isn't defined anywhere. Take a look at your configs where your hostgroups are defined and search for allhosts. If you can't find a matching entry just comment out the line hostgroups allhosts ; Host groups this server is associated with in your windows.cfg. Kind regards, Dennis H?nseler From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Patel, Bipin Sent: Monday, September 10, 2007 10:42 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Configuration Error - 3.0.b3 I have just installed nagios 3.0b3 on Linux box 2.4.21-47.ELsmp #1 SMP. I am trying to monitor windows machines and when I have uncommented windows.cfg line from /etc/nagios/nagios.cfg and ran configuration check, I am getting following errors. ********* # bin/nagios -v etc/nagios/nagios.cfg Nagios 3.0b3 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 08-30-2007 License: GPL Reading configuration data... Error: Could not find any hostgroup matching 'allhosts' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 25) Error: Hostgroup has no members (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 47) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. It works If I have comment out windows.cfg line in nagios.cfg - No error. But I also like to monitor my windows boxes. So what I am doing wrong? Attached are cfg.cfg, nagios.cfg & windows.cfg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederic.schaer at cea.fr Tue Sep 11 09:07:35 2007 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Tue, 11 Sep 2007 09:07:35 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: Hi, I agree with you, I reported the problem on the developers' list yesterday evening :-) I think that there may just be a test missing somewhere in the code : host checks should be done on hosts if activated in the nagios.cfg file, but only if a host check command is defined for these hosts... concerning your question, for now I'm wondering what's the difference between a host check and a (ping or whatever) service check : for this I think I have to go deeper in the famous 'rtfm' ;) Cheers ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Anthony Montibello Sent: Monday, September 10, 2007 6:45 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi List, First I think this is more appropiate fpr the Developer list so I hope Ethan has been watching this thread. If your observation is true, should Nagios have an internal default hostcheck command or some code to deactivate hostchecks when no hostcheck command is entered? Tony (author of NC_Net) On 9/10/07, SCHAER Frederic wrote: I finally found a solution : either deactivate the host checks or... define a check_command for the hosts : with host_checks_enabled and without a check command, nagios eats all of my CPU, with a command defined, everything is back to normal... I wish I saw I had no check_command defined in my host template ! Cheers ________________________________ From: SCHAER Frederic Sent: Monday, September 10, 2007 5:56 PM To: SCHAER Frederic; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] nagios 3.0b3 abnormal cpu load ? /me again... It seems there is a problem with host checks on my box that causes host checks to be run continuously on the same host(s) - well it seems that there is indeed no host check run because one is < always > executing ( ? no, it's not ! ). logs show this for a debug run of just a few seconds : # grep "A check of this host is already being executed" /var/log/nagios/nagios.debug | wc -l 1709 de-activating host checks (execute_host_checks=0)in the nagios.cfg file frees the CPU, at the cost of host checks... it's good to know, isn't it ? ;) Is this really usefull anyway if I define a check_ping service on all hosts ? Cheers ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net ] On Behalf Of SCHAER Frederic Sent: Monday, September 10, 2007 12:25 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi again, There is a difference between the nagios I compiled on the 2.4 kernel / RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand : when stracing the nagios process, I can see it's calling the nanosleep() function - and it then sleeps -, whereas on the 2.4 box I can't see such a call : I just see this kind of thing (and lots of these) : gettimeofday({1189419621, 161574}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 183742}, NULL) = 0 gettimeofday({1189419621, 183780}, NULL) = 0 gettimeofday({1189419621, 183814}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184172}, NULL) = 0 gettimeofday({1189419621, 184326}, NULL) = 0 time([1189419621]) = 1189419621 time([1189419621]) = 1189419621 gettimeofday({1189419621, 184734}, NULL) = 0 gettimeofday({1189419621, 184861}, NULL) = 0 gettimeofday({1189419621, 184984}, NULL) = 0 time([1189419621]) = 1189419621 gettimeofday({1189419621, 185537}, NULL) = 0 gettimeofday({1189419621, 185734}, NULL) = 0 Bad thing is that I tried to configure with and without the -enable-nanosleep or -disable-nanosleep switches, but this apparently has no effect :'(. So it seems nagios is sleeping all the time, eating the CPU... I'm still trying to see if I can find a way to compile with a "working sleep". Fred ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net ] On Behalf Of SCHAER Frederic Sent: Friday, September 07, 2007 5:51 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ? Hi, I'm trying to setup a nagios 3.0b3 server, and I configured it with only one host, one check (ping). I can successfully start nagios, but I have concerns about the server cpu load : that's around 99% cpu usage all the time, on a P4 3GHz machine... Is there something I could do to decrese this load ? I tried installing a nagios 2.9 server using the same configuration, and the load caused by nagios is just ... 0. I guess this is a bug in the beta 3 ? Increasing the sleep time in nagios.cfg does not help at all even if I put sleep_time=2500 (2500 seconds !) Any suggestions would be welcome :-) P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't know if this could help. I don't see many usefull things with maximum debug verbosity... ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 11 11:31:43 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 11 Sep 2007 10:31:43 +0100 Subject: hostgroups in servicegroup definition In-Reply-To: <723504D812FBEF4F89F958B14D294EB204DFC335@EXCH-C1.corp.cloudmark.com> References: <723504D812FBEF4F89F958B14D294EB204DFC335@EXCH-C1.corp.cloudmark.com> Message-ID: <46E6607F.4040207@googlemail.com> I don't use hostgroups in this way but I'm pretty sure it is possible because I added this to my servicegroup-generator.py (find it on nagiosexchange.org) at the request of another guy who emailed me. Basically, the "hostgroup, service" bit goes on the Members line the same way the "host, service" bit does. You're welcome to give the servicegroup-generator a try as well since it will generate a file full of servicegroups following the names of the services you have defined in services.cfg or equivalent. I use it to not bother writing my servicegroup file by hand... Let me know how you get on... Hope that helps. -h Hari Sekhon Lori Adams wrote: > > Looking at the documentation, I don?t think what I?m hoping for is > possible. We?re using nagios 2.9 on Redhat. > > I?d like to define a servicegroup by listing the members as > ,service,,service and then also have other > members like ,service. > > Example: > > Define servicegroup { > > Servicegroup_name SG > > Alias random SG > > Members hostA,service > > /Hostgroup_Members hostgroup1,service,hostgroup2,service /(wishing for) > > } > > Is this possible, and I just can?t find the name of the directive? > > Thanks, > > -Lori > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 11 11:34:24 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 11 Sep 2007 10:34:24 +0100 Subject: Host State for machines that don't allow ping In-Reply-To: <46E56142.3060604@bizneteis.com> References: <46E56142.3060604@bizneteis.com> Message-ID: <46E66120.3040609@googlemail.com> Daniel McLaughlin wrote: > In my nagios setup I have a similar problem, how I get around this is > (in the case of a webserver) is that I use a check_http for the > check_host command, therefore if HTTP is available, I am assuming that > the server is up! yes this is what I have done as well, replacing the host check command with the service check. It works but it's not generic and doesn't scale or cannot be easily grouped or templated. The only other thing I can think of is to use a dummy check for the host check command, but that could give false information so I've resisted doing it. If anyone has any better ideas, I'd love to hear them. -h Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 11 15:57:17 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 11 Sep 2007 15:57:17 +0200 Subject: nagios 3.0b3 abnormal cpu load ? In-Reply-To: References: Message-ID: <46E69EBD.9040602@op5.se> SCHAER Frederic wrote: > Hi, > > > > I agree with you, I reported the problem on the developers' list > yesterday evening :-) > > > > I think that there may just be a test missing somewhere in the code : > host checks should be done on hosts if activated in the nagios.cfg file, > but only if a host check command is defined for these hosts... > concerning your question, for now I'm wondering what's the difference > between a host check and a (ping or whatever) service check : for this I > think I have to go deeper in the famous 'rtfm' ;) > The difference is that the host check determines whether or not the host is up, whereas the service checks determine whether or not the services are up. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 11 16:02:51 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 11 Sep 2007 16:02:51 +0200 Subject: $HOSTn$ macros? In-Reply-To: <1189486097.20630.32.camel@pcpad.dugas.cc> References: <1189486097.20630.32.camel@pcpad.dugas.cc> Message-ID: <46E6A00B.10509@op5.se> Paul Dugas wrote: > Would it be possible in a future release to support something like a > $HOSTn$ macro? I'm running into some larger configs where this would be > very useful. > > I've got hundreds of CCTV cameras with serial PTZ-control ports and > analog video outputs. Their serial ports are connected to various > terminal servers scattered around a rather large network. Their video > outputs are connected to separate video encoders. > > I have standard hosts definitions for the terminal servers and encoders. > I have bogus host definitions for the cameras (with check_command set to > check_none). The camera hosts are in a hostgroup are so I can provide > consolidated reports to camera technicians. > > I currently have a whole slew of service definitions for the cameras > that actually check the serial ports and video inputs on the real > devices the camera is connected to. I'd love to be able to do something > like this instead: > >> define host{ >> host_name cam-844 >> hostgroups CAM >> host_data ts-23,12,enc-45,3 # terminal-server host, port, encoder host, port >> use cam-host >> } I believe nagios 3 will have support for randomly named variables in host-objects, accessible through a macro mechanism. The name of that mechanism eludes me at present, but if you browse through the changelog for any of the nagios 3 betas you should find it somewhere there. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 11 16:09:24 2007 From: marc at ena.com (Marc Powell) Date: Tue, 11 Sep 2007 09:09:24 -0500 Subject: $HOSTn$ macros? In-Reply-To: <1189486097.20630.32.camel@pcpad.dugas.cc> References: <1189486097.20630.32.camel@pcpad.dugas.cc> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Paul Dugas > Sent: Monday, September 10, 2007 11:48 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] $HOSTn$ macros? > > Would it be possible in a future release to support something like a > $HOSTn$ macro? I'm running into some larger configs where this would be > very useful. Sounds like you want the Custom Object Variables introduced in Nagios-3 -- http://nagios.sourceforge.net/docs/3_0/customobjectvars.html -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Tue Sep 11 16:45:20 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Tue, 11 Sep 2007 09:45:20 -0500 (CDT) Subject: looking for servicedependency examples Message-ID: I am reading: http://nagios.sourceforge.net/docs/3_0/dependencies.html http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicedependency http://www.maxsworld.org/index.php/how-tos/nagios Can anyone provide any simple "servicedependency" examples? I have a service definition that I want to trigger a different service definition if it is critical. And only if both are critical will a notification be sent. I already did this. But I don't know yet if it works. Is there anyway to tell nagios from the command line to run a specific check and to give verbose debugging output on what it is doing with that check? Here's my original problem: one of our nagios monitoring servers is hosted outside of our network with many hops between us. Often we receive notifications from check_ping having a too high round trip average travel time, packet loss percentage is too high, or the ping attempt times out. But often, the problem is not due to our own routers or hosts we are monitoring and not due to the routers or network where the nagios is hosted -- so somewhere in between on the internet. I plan on having nagios use check_nrpe to connect to one of our other systems (on a different network) then have my custom NRPE script do the same check_ping command. Only if both fail, do I want the notification. Any suggestions? Or is there a better way to do this? Thanks, Jeremy C. Reed ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rfmohr at osc.edu Tue Sep 11 17:16:51 2007 From: rfmohr at osc.edu (Richard Mohr) Date: Tue, 11 Sep 2007 11:16:51 -0400 Subject: check_procs xend In-Reply-To: <46E239D3.7020003@ha-solutions.net> References: <46E239D3.7020003@ha-solutions.net> Message-ID: <1189523811.4828.7.camel@squeak> On Sat, 2007-09-08 at 00:57 -0500, Terry L. Inzauro wrote: > root at peyton:/etc/xen# ps -ef | grep xend > root 2392 1 0 Sep07 ? 00:00:00 python /usr/lib/xen-3.0.3-1/bin/xend start > root 2394 2392 0 Sep07 ? 00:00:11 python /usr/lib/xen-3.0.3-1/bin/xend start > > i've tried the following with no success: > > '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a '/usr/lib/xen-3.0.3-1/bin/xend start'' > '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a '/usr/lib/xen-3.0.3-1/bin/xend'' > '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python -a 'start'' > '/opt/nagios/libexec/check_procs -w 2:2 -c 2:2 -C python' Matching the command can sometimes be tricky. (Running "ps -ef" on one of my systems shows the command /usr/sbin/gmond, but check_procs will only see it if I use "-C gmond" and not "-C /usr/sbin/gmond".) Since you are more interested in finding the "xend" portion of the command, I suggest dropping the -C option and just use "-a xend" to locate the xend instances. -- Rick Mohr Systems Developer Ohio Supercomputer Center ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinm at honeycomb.net Tue Sep 11 18:23:36 2007 From: justinm at honeycomb.net (Justin Maloney) Date: Tue, 11 Sep 2007 11:23:36 -0500 Subject: looking for servicedependency examples Message-ID: <64975B31C6249247A722D0610F4110F7322FA8@hive.officespace.honeycomb.net> I think you could do that with check_cluster. It was part of the 1.4.9 plugins. That might do the trick for you. I think you would just configure it with your 2 ping checks and set the maxim down to 2. I only used it in testing it worked but we never ended up needing it. Thank you, Justin Maloney Systems Administrator Honeycomb Internet Services 612.617.0007 -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jeremy C. Reed Sent: Tuesday, September 11, 2007 9:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] looking for servicedependency examples I am reading: http://nagios.sourceforge.net/docs/3_0/dependencies.html http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicedep endency http://www.maxsworld.org/index.php/how-tos/nagios Can anyone provide any simple "servicedependency" examples? I have a service definition that I want to trigger a different service definition if it is critical. And only if both are critical will a notification be sent. I already did this. But I don't know yet if it works. Is there anyway to tell nagios from the command line to run a specific check and to give verbose debugging output on what it is doing with that check? Here's my original problem: one of our nagios monitoring servers is hosted outside of our network with many hops between us. Often we receive notifications from check_ping having a too high round trip average travel time, packet loss percentage is too high, or the ping attempt times out. But often, the problem is not due to our own routers or hosts we are monitoring and not due to the routers or network where the nagios is hosted -- so somewhere in between on the internet. I plan on having nagios use check_nrpe to connect to one of our other systems (on a different network) then have my custom NRPE script do the same check_ping command. Only if both fail, do I want the notification. Any suggestions? Or is there a better way to do this? Thanks, Jeremy C. Reed ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From donnell.lewis at icoretechnology.com Tue Sep 11 19:24:24 2007 From: donnell.lewis at icoretechnology.com (Donnell Lewis) Date: Tue, 11 Sep 2007 13:24:24 -0400 Subject: Hosts/service Acknowledgement comment staleness? Message-ID: <1189531465.6048.10.camel@localhost.localdomain> Hey All, I am using version 2.9 currently and am noticing that when I ack a host/service and leave a comment and unchecked the persistent option that when the service or host changes states the acknowledgment comment is not being removed. I know that before I upgraded (was using 2.5) when I left a comment on acknowledging an alert and unchecked the "persistent" option the comment would automatically be removed when the host/service changed states. I'm not referring to the sticky acknowledgment which I know keeps the acks there across program restarts, I'm referring to the 3rd box under send notifications for the persistent option. Anyone else experience this behavior ? Donnell Lewis "You can judge the character of others by how they treat those they think can do nothing for them..."-Malcom Forbes ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Tue Sep 11 19:29:37 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Tue, 11 Sep 2007 13:29:37 -0400 Subject: Problems with check_nt Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> Hello, I am experiencing an issue that I don't understand I have defined a check_nt command and I am scanning the disk space on about 2 servers right now. 1 out of the 2 returns a result but then the2nd will return an error message as follows (Return code of 139 is out of bounds) All servers are on the same network attached to the same switch. Here is my definition in servicegroups and services including template Here is a snapshot of my definitions services template define service{ name generic_service_template notification_options w,u,c max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 } define service{ use generic_service_template service_description D:\ Drive Space host_name mtl-backup,mtlcitrix4 check_command check_nt!USEDDISKSPACE!-l e -w 90 -c 95 check_period 24x7 notification_interval 60 notification_period 24x7 notification_options w,u,c servicegroups d_drive_space contact_groups network_team } define servicegroup{ servicegroup_name d_drive_space alias D: Drive Space members mtl-backup,D:\ Drive Space,mtlcitrix4,D:\ Drive Space } Fedora 6 Nagios 2.9 Nagios Plugins 1.4.8 NSClient++ 0.2.7 Thank you for any help Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Tue Sep 11 19:40:49 2007 From: israel at frontierflying.com (Israel Brewster) Date: Tue, 11 Sep 2007 09:40:49 -0800 Subject: check_icmp oddness Message-ID: <938D308F-5EF9-4F9C-9EBD-F55A9B9672A0@frontierflying.com> I am showing some odd behavior with the check_icmp plugin. I am using it to monitor a number of stations around the state, and for the most part it appears to be working properly. However, with four of these stations, check_icmp is showing consistently 60% loss-even though the check_ping plugin shows them as fine, and just running a straight ping on these sites also shows no packet loss. The only difference between these sites and other sites we are monitoring is that they are running linksys RV082 routers, while other sites are running different model linksys routers. Would anyone be able to explain why I am seeing this sort of behavior? Thanks. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From donnell.lewis at icoretechnology.com Mon Sep 10 23:31:51 2007 From: donnell.lewis at icoretechnology.com (Donnell Lewis) Date: Mon, 10 Sep 2007 17:31:51 -0400 Subject: separate webfront In-Reply-To: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F7EC@MAIL-STORE-1.pppl.gov> References: <4E20E7F01BC85746A7A29FDFBFEC988D05A9F7EC@MAIL-STORE-1.pppl.gov> Message-ID: <1189459911.6048.2.camel@localhost.localdomain> Or you could use the distributed monitoring method: have a master nagios server (running the web front-end) running at one locationa and then have another (or multiple) nagios daemons running on the other boxes that actually check the local machines at that colo and send passive check results via nsca to the master hosting the frontend. -Don On Mon, 2007-09-10 at 17:24 -0400, Cassandra Pugh wrote: > Hugo, perhaps you can elaborate? Do you know how to pull the web page info > out and put it on another server? > > I am not sure if I want to go the NFS route, as we recently got hacked > through NFS vulnerabilities. > > However, it has been requested that this Nagios page be "public". I have set > it up on my box as an internal website, so I know how to do that much... it's > just having half of nagios on our "public" web server that has me scratching > my head. > > Any further advice? > > -- > Cassandra > (609) 243-2413 > > > "From a little spark may burst a mighty flame." > > ------------------------------ > > Message: 5 > Date: Fri, 7 Sep 2007 17:37:06 -0500 > From: "Marc Powell" > Subject: Re: [Nagios-users] separate webfront > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Cassandra Pugh > > Sent: Friday, September 07, 2007 3:32 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] separate webfront > > > > I would like to know if anyone knows if the nagios program (and all it > > collects and monitors) and the webfront can be hosted on different > > computers? > > I do not want to make the server that nagios is hosted on a webserver, > and > > also do not want to bog down the webserver with the nagios processes. > > > > Does anyone know what I would need to do to accomplish this > separation? > > I have been successful in NFS mounting the nagios home directory from > another machine and using the CGI's from there. The only drawback is > that you will not be able to issue commands from the web interface at > all. NFS doesn't support named pipes. > > -- > Marc > > > > > > > > ------------------------------ > > Message: 7 > Date: Sat, 8 Sep 2007 09:29:32 +0200 (CEST) > From: Hugo van der Kooij > Subject: Re: [Nagios-users] separate webfront > To: Nagios Users mailinglist > Message-ID: > > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > On Fri, 7 Sep 2007, Cassandra Pugh wrote: > > > I would like to know if anyone knows if the nagios program (and all it > > collects and monitors) and the webfront can be hosted on different > computers? > > I do not want to make the server that nagios is hosted on a webserver, and > > also do not want to bog down the webserver with the nagios processes. > > Apache is not that hard if you tune down the defaults. I think you will > find the drawbacks of seperation harder then it needs to be. > > If yyou do not wish to make it public you can always make the other apache > server a front for this webserver. I do this for various aplications. > > Hugo. > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 11 22:26:36 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 11 Sep 2007 22:26:36 +0200 Subject: Problems with check_nt In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> References: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> Message-ID: <46E6F9FC.5050806@op5.se> Antonio Pereira wrote: > Hello, > > > > I am experiencing an issue that I don't understand > > > > I have defined a check_nt command and I am scanning the disk space on about 2 servers right now. 1 out of the 2 returns a result but then the2nd will return an error message as follows > > > > (Return code of 139 is out of bounds) > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return codes are given as signed chars, which are normally not capable of handling numbers outside the range -128 to 127. It's done this way because, traditionally, programs return the additive inverse of the system error that caused the abnormal termination, or -1 if the programmer was lazy. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 11 22:39:26 2007 From: marc at ena.com (Marc Powell) Date: Tue, 11 Sep 2007 15:39:26 -0500 Subject: Problems with check_nt In-Reply-To: <46E6F9FC.5050806@op5.se> References: <46E6F9FC.5050806@op5.se> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andreas Ericsson > Sent: Tuesday, September 11, 2007 3:27 PM > To: Antonio Pereira > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with check_nt > > Antonio Pereira wrote: > > Hello, > > > > > > > > I am experiencing an issue that I don't understand > > > > > > > > I have defined a check_nt command and I am scanning the disk space on > about 2 servers right now. 1 out of the 2 returns a result but then the2nd > will return an error message as follows > > > > > > > > (Return code of 139 is out of bounds) > > > > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return > codes > are given as signed chars, which are normally not capable of handling > numbers > outside the range -128 to 127. Not always - http://www.google.com/search?q=return+code+of+139. Seems to be a segfault... What's different about the checks/hosts? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Tue Sep 11 22:40:58 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Tue, 11 Sep 2007 16:40:58 -0400 Subject: Problems with check_nt In-Reply-To: <46E6F9FC.5050806@op5.se> References: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> <46E6F9FC.5050806@op5.se> Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B8EE23@mtlexchange.Duocom.local> Hi, Yes I checked again. What I did is added other hosts selecting different drives trying c:, d:, e: f:, etc. This differs depending on the server and I still get these random results. It's odd. I even tried removing each drive and service and adding one at a time and still the same result. Every single server that I scan the local c: it works fine. But when I start scanning the next drives I start getting these random results. I am scanning 10 servers they all have c: drive. These work fine. I am scanning 4 servers they all have d: drive. 1 out 4 works I am scanning 2 servers they have e: drive Both work I am scanning 2 servers thay have f: drive 1 out 2 work. I haven't added all the servers yet but I figure this will do for troubleshooting purposes. Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel.?: (514) 341-8181, ext./poste 267 T?l?c./Fax.?: (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail.?: apereira at duocom.ca ? Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, September 11, 2007 4:27 PM To: Antonio Pereira Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with check_nt Antonio Pereira wrote: > Hello, > > > > I am experiencing an issue that I don't understand > > > > I have defined a check_nt command and I am scanning the disk space on about 2 servers right now. 1 out of the 2 returns a result but then the2nd will return an error message as follows > > > > (Return code of 139 is out of bounds) > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return codes are given as signed chars, which are normally not capable of handling numbers outside the range -128 to 127. It's done this way because, traditionally, programs return the additive inverse of the system error that caused the abnormal termination, or -1 if the programmer was lazy. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 11 22:50:10 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 11 Sep 2007 22:50:10 +0200 Subject: check_icmp oddness In-Reply-To: <938D308F-5EF9-4F9C-9EBD-F55A9B9672A0@frontierflying.com> References: <938D308F-5EF9-4F9C-9EBD-F55A9B9672A0@frontierflying.com> Message-ID: <46E6FF82.9040002@op5.se> Israel Brewster wrote: > I am showing some odd behavior with the check_icmp plugin. I am using > it to monitor a number of stations around the state, and for the most > part it appears to be working properly. However, with four of these > stations, check_icmp is showing consistently 60% loss-even though the > check_ping plugin shows them as fine, and just running a straight > ping on these sites also shows no packet loss. The only difference > between these sites and other sites we are monitoring is that they > are running linksys RV082 routers, while other sites are running > different model linksys routers. Would anyone be able to explain why > I am seeing this sort of behavior? Thanks. > Perhaps I can shed some light on this. check_icmp is designed to spew out packets very rapidly, while at the same time trying to be polite to the target it's checking. It does this by the simple expedient of waiting a, by default, very short maximum time between two packets which gets even shorter if the targeted host happens to answer to one of the probes being directed at it. When the targeted host *does* answer, check_icmp decides it can shorten the default interval and immediately send another probe, as the host it's targeting apparently isn't suffering from congestion. For *most* operating systems, this works quite nicely, and check_icmp is capable of deciding the latency and loss very quickly. Other operating systems thinks check_icmp sends packets too quickly and drops a few of the probes. That's probably what you're seeing. The way around it is to add the '-i' option with a suitable value, such as 0.3s, which will force a minimum interval of 0.3 seconds between each packet. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Tue Sep 11 23:53:39 2007 From: ladams at cloudmark.com (Lori Adams) Date: Tue, 11 Sep 2007 14:53:39 -0700 Subject: hostgroups in servicegroup definition In-Reply-To: <46E6607F.4040207@googlemail.com> References: <46E6607F.4040207@googlemail.com> Message-ID: <723504D812FBEF4F89F958B14D294EB204DFC54E@EXCH-C1.corp.cloudmark.com> This doesn't work. I get the error: Error: Could not find a service matching host name '' and description ''. It appears to only want hosts. -Lori -----Original Message----- I don't use hostgroups in this way but I'm pretty sure it is possible because I added this to my servicegroup-generator.py (find it on nagiosexchange.org) at the request of another guy who emailed me. Basically, the "hostgroup, service" bit goes on the Members line the same way the "host, service" bit does. You're welcome to give the servicegroup-generator a try as well since it will generate a file full of servicegroups following the names of the services you have defined in services.cfg or equivalent. I use it to not bother writing my servicegroup file by hand... Let me know how you get on... Hope that helps. -h Hari Sekhon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Wed Sep 12 01:45:15 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 11 Sep 2007 19:45:15 -0400 Subject: Problems with check_nt In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105B8EE23@mtlexchange.Duocom.local> References: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> <46E6F9FC.5050806@op5.se> <2FAF78EDA2D2DF4EB656ABB3339FD105B8EE23@mtlexchange.Duocom.local> Message-ID: I am not sure I understand the problem correctly, is the error in question intermittent where it is there then not there or, every time you try that particular drive on that particular server. if the latter have you tried check_nt from the command line to test the command before adding to your configuration. what is the entire error output? Did your make sure the Windows Host has that drive installed? for example if it is a CDROM drive it may cause an error (not sure what error) since it does not have freespace What is the Windows client installed, run check_nt -v CLIENTVERSION Since the different windows clients may deal with internal errors differently it is posible that the output of a windows client is giving this error while a different client would give a different output. Tony (Author of NC_NEt) On 9/11/07, Antonio Pereira wrote: > > Hi, > > Yes I checked again. > > What I did is added other hosts selecting different drives trying c:, d:, > e: f:, etc. This differs depending on the server and I still get these > random results. It's odd. > > I even tried removing each drive and service and adding one at a time and > still the same result. > Every single server that I scan the local c: it works fine. But when I > start scanning the next drives I start getting these random results. > > I am scanning 10 servers they all have c: drive. These work fine. > > I am scanning 4 servers they all have d: drive. 1 out 4 works > > I am scanning 2 servers they have e: drive Both work > > I am scanning 2 servers thay have f: drive 1 out 2 work. > > I haven't added all the servers yet but I figure this will do for > troubleshooting purposes. > > > > Antonio Pereira > National IT Coordinator > Coordinateur National de Technologies de l'Information > T?l./Tel.: (514) 341-8181, ext./poste 267 > T?l?c./Fax.: (514) 341-1253 > Cell: (514) 514-444-6086 > Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 > Courriel / E-mail.: apereira at duocom.ca > > Duocom Canada Inc. > 10000, Cavendish Blvd. > Ville St. Laurent (Qu?bec) H4M 2V1 > www.duocom.ca > > > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: Tuesday, September 11, 2007 4:27 PM > To: Antonio Pereira > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with check_nt > > Antonio Pereira wrote: > > Hello, > > > > > > > > I am experiencing an issue that I don't understand > > > > > > > > I have defined a check_nt command and I am scanning the disk space on > about 2 servers right now. 1 out of the 2 returns a result but then the2nd > will return an error message as follows > > > > > > > > (Return code of 139 is out of bounds) > > > > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return > codes > are given as signed chars, which are normally not capable of handling > numbers > outside the range -128 to 127. > > It's done this way because, traditionally, programs return the additive > inverse > of the system error that caused the abnormal termination, or -1 if the > programmer > was lazy. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vadi.ksdba at gmail.com Wed Sep 12 08:31:13 2007 From: vadi.ksdba at gmail.com (vadi) Date: Wed, 12 Sep 2007 12:01:13 +0530 Subject: NDOUtiles not working In-Reply-To: <20070910204953.GF9208@pmorris.usa.hp.com> References: <37444.217.66.32.101.1189413036.squirrel@mail.pizzatimer.de> <6546343904687E41B19D8E5A26AB9F53014CE236@E03MVB2-UKBR.domain1.systemhost.net> <5f6b57ee0709101306x24a30c1l533908eb7b380842@mail.gmail.com> <20070910204953.GF9208@pmorris.usa.hp.com> Message-ID: <5f6b57ee0709112331g38dcdd7ds84909340c1c5cb22@mail.gmail.com> Dear All, Please help me for resolving this problem. SNAPSHOT: # tail -f /usr/local/nagios/var/nagios.log [1189578767] Nagios 2.9 starting... (PID=14983) [1189578767] LOG VERSION: 2.0 [1189578767] ndomod: NDOMOD 1.4b5 (08-29-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) [1189578767] Error: Function nebmodule_init() in module '/usr/local/nagios/bin/ndomod-2x.o' returned an error. Module will be unloaded. [1189578767] Event broker module '/usr/local/nagios/bin/ndomod-2x.o' deinitialized successfully. Thanks, Vadiraj On 9/11/07, Patrick Morris wrote: > > On Mon, 10 Sep 2007, vadi wrote: > > > I have tried all the ways, but still it's not working. > > Where I can get logs for NDOUtiles tools? > > ndoutils will log to the same place Nagios does. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frontin at irit.fr Wed Sep 12 11:37:49 2007 From: frontin at irit.fr (Jean Frontin) Date: Wed, 12 Sep 2007 11:37:49 +0200 Subject: Time period Message-ID: <5.0.2.1.2.20070912113323.00c08d90@mailhost.irit.fr> Hello, I defined job time periodfrom 08:00 to 18:00 (monday - friday). Nagios controls a vsftp server and I saw in logs of this server that nagios controls this service form 06:00 to 16:00. It runs in gmt hours. What can I do to correct this little problem ? Regards Jean Frontin System team I R I T Universit? Paul-Sabatier 118, rte de Narbonne 31062 Toulouse cedex 9 France tel (33)(0)5 61 55 63 03 mail frontin at irit.fr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perlskuul at gmail.com Wed Sep 12 11:40:06 2007 From: perlskuul at gmail.com (Goksie Learner) Date: Wed, 12 Sep 2007 10:40:06 +0100 Subject: integrating cacti with nagios Message-ID: <46E7B3F6.4060205@gmail.com> Hello all, Can somebody point to docs that can show me how cacti could be integrated with cacti ? Goksie ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 12 11:46:12 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 12 Sep 2007 11:46:12 +0200 Subject: integrating cacti with nagios In-Reply-To: <46E7B3F6.4060205@gmail.com> References: <46E7B3F6.4060205@gmail.com> Message-ID: <46E7B564.2090200@op5.se> Goksie Learner wrote: > Hello all, > > Can somebody point to docs that can show me how cacti could be > integrated with cacti ? > Cacti needs not be integrated with itself. It's already as closely coupled as it can be, seeing as how it's the same application and all. For info on how to integrate cacti with nagios, I suggest you ask google and let it ponder the question while you browse the cacti and nagios websites, as well as the mailing list archives. Good luck! :) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Sep 12 12:10:09 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 12 Sep 2007 12:10:09 +0200 Subject: Checking COUNTERS with check_nt and/or check_nc_net Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E13F7@hermes.sapphire-int.gi> Hello List, I've been experimenting with check_nt and check_nc_net (I have Nc_Net installed on a test server and have had this same problem with both UNIX plugins). The server is 2003, English version The commands which demonstrate working and not working examples are: Not working: # ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Disk File Deletes/sec" \MSExchangeMTA\Disk File Deletes/sec = 0.00 Working: # ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Free Elements" \MSExchangeMTA\Free Elements = 7.00 It seems to me that any COUNTER that has a forwardslash in its name returns zero. I checked actual values on the server using the local performance counter viewer provided with nc_net and the values are not zero. These are just examples, but I get the same results for \memory\pages/sec and others, it doesn't matter whether I use the ^ notation either. I tried googling, but didn't get anything relevant, this is NC_Net_V4.1a installed via the MSI package. Otherwise, everything seems to be working OK. Hope someone has either come across this problem or has some ideas, I don't should I should need to escape a "/" should I? Thanks Giles -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Wed Sep 12 12:13:00 2007 From: radhiilu at yahoo.com (Sekhar) Date: Wed, 12 Sep 2007 03:13:00 -0700 (PDT) Subject: Checking Cisco Port States plugin for nagios Message-ID: <271874.72106.qm@web90510.mail.mud.yahoo.com> Hi Guys, I want to monitor cisco switch port states like the following Port 1 Active/forwarding Port 2 Down/Disconnenct Port 3 Active/Block Is there any plugin or How to proceed with this? Thanks for your help --------------------------------- Check out the hottest 2008 models today at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Wed Sep 12 12:22:56 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 12 Sep 2007 12:22:56 +0200 Subject: Checking Cisco Port States plugin for nagios In-Reply-To: <271874.72106.qm@web90510.mail.mud.yahoo.com> References: <271874.72106.qm@web90510.mail.mud.yahoo.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E13FA@hermes.sapphire-int.gi> Do this via SNMP If your switch/router implements the BRIDGE-MIB, you can use the "dot1dStpPortState" object. See the dot1StpPortTable for more details. Then look for check_snmp and implement monitoring of that OID, "check_snmp -help" should get you started. This is one way, depending on your requirements you might be better off using a SNMP Trap Receiver and configuring your switch to send traps for STP topology changes... far less work on the nagios host, and more timely reporting of changes. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sekhar Sent: 12 September 2007 12:13 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Checking Cisco Port States plugin for nagios Hi Guys, I want to monitor cisco switch port states like the following Port 1 Active/forwarding Port 2 Down/Disconnenct Port 3 Active/Block Is there any plugin or How to proceed with this? Thanks for your help ________________________________ Check out the hottest 2008 models today at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 12 15:52:26 2007 From: marc at ena.com (Marc Powell) Date: Wed, 12 Sep 2007 08:52:26 -0500 Subject: Time period In-Reply-To: <5.0.2.1.2.20070912113323.00c08d90@mailhost.irit.fr> References: <5.0.2.1.2.20070912113323.00c08d90@mailhost.irit.fr> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jean Frontin > Sent: Wednesday, September 12, 2007 4:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Time period > > Hello, > > I defined job time periodfrom 08:00 to 18:00 (monday - friday). Nagios > controls a vsftp server and I saw in logs of this server that nagios > controls this service form 06:00 to 16:00. It runs in gmt hours. What can > I > do to correct this little problem ? If I understand correctly, you're saying that the nagios server is in a timezone two hours ahead of the vsftp server. The logical thing to do in that case is to adjust the timeperiod to account for the offset: 10:00 to 20:00. If that's not your problem you need to be more clear with your description. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sebastian_raible at genua.de Wed Sep 12 16:06:00 2007 From: sebastian_raible at genua.de (Sebastian Raible) Date: Wed, 12 Sep 2007 16:06:00 +0200 Subject: Time period In-Reply-To: References: <5.0.2.1.2.20070912113323.00c08d90@mailhost.irit.fr> Message-ID: <20070912140600.GA23816@bastian.genua.de> Hi, this sounds like a bit of a hack. There should probably be a feature to be able to set a host's timezone. Regards Sebastian On Wed, Sep 12, 2007 at 08:52:26AM -0500, Marc Powell wrote: > If I understand correctly, you're saying that the nagios server is in a > timezone two hours ahead of the vsftp server. The logical thing to do in > that case is to adjust the timeperiod to account for the offset: 10:00 > to 20:00. -- GeNUA Gesellschaft f?r Netzwerk - und Unix-Administration mbH Domagkstr. 7, D-85551 Kirchheim. http://www.genua.de Tel: (089) 99 19 50-0, Fax: (089) 99 10 50 - 999 Gesch?ftsf?hrer: Dr. Magnus Harlander, Dr. Michaela Harlander, Bernhard Schneck. Amtsgericht M?nchen HRB 98238 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Wed Sep 12 16:46:21 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Wed, 12 Sep 2007 10:46:21 -0400 Subject: managing latency-induced host down alerts Message-ID: <20070912144621.GA57071@bewilderbeast.blackhelicopters.org> Hi, I'm using Nagios 2.9 on FreeBSD, on a wide area network that has remote networks scattered across the USA and Mexico. We have a problem where latency on some remote circuits rises due to congestion. This means that various service checks time out, as they take more than 10 seconds to complete. (Yes, this is a real problem, and we're addressing it. I'm using smokeping to track latency at these sites now, analyzing traffic, etc.) When we get a latency delay, Nagios checks the host to see if it's alive. Latency is too high, so the host check times out. Host checks "crawl" up the chain to the parent router for the site, and flag it as down. The end result is that Nagios sees brief two-minute outages at the remote site. When we get a Nagios alert, it goes into our trouble ticket system and is distributed to the appropriate administrator. When the ticket is issued for latency, however, it is a) viewed as a "false positive" and b) detracts from real remote site outages. With Nagios 3 I would repeat the host check five minutes later before sending an alert. That's not an option in Nagios 2.9. I'm not entirely comfortable running beta code in this production environment, for political reasons rather than technical ones. I'd like to separate the latency problem from a site down problem. I can think of a couple ways to do this: 1) increase the 10-second maximum timeout for a service check to complete. Can this be done in Nagios? 2) have the trouble ticket system be a escalation contact that is only notified after the problem persists for five minutes. We're not using escalations today, but they can't be too hard. Has anyone dealt with this type of problem before? Any other suggestions or advice on monitoring and alarming in this sort of environment? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 12 17:02:51 2007 From: marc at ena.com (Marc Powell) Date: Wed, 12 Sep 2007 10:02:51 -0500 Subject: managing latency-induced host down alerts In-Reply-To: <20070912144621.GA57071@bewilderbeast.blackhelicopters.org> References: <20070912144621.GA57071@bewilderbeast.blackhelicopters.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Michael W. Lucas > Sent: Wednesday, September 12, 2007 9:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] managing latency-induced host down alerts > > Hi, > > I'm using Nagios 2.9 on FreeBSD, on a wide area network that has > remote networks scattered across the USA and Mexico. > > We have a problem where latency on some remote circuits rises due to > congestion. This means that various service checks time out, as they > take more than 10 seconds to complete. (Yes, this is a real problem, > and we're addressing it. I'm using smokeping to track latency at > these sites now, analyzing traffic, etc.) > I'd like to separate the latency problem from a site down problem. I > can think of a couple ways to do this: > > 1) increase the 10-second maximum timeout for a service check to > complete. Can this be done in Nagios? Yes, and is the route I would take since it's the simplest. All standard plugins support a timeout parameter, usually -t. You can run ./plugin --help to verify if it's supported. Just add an appropriate timeout for the test you're trying to complete in the command{} definition. You'll also need to increase the master service_check_timeout parameter in nagios.cfg. That's a fallback timeout in case the plugin doesn't terminate itself properly. I have my plugin timeouts generally set at 45 seconds and the master at 60. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Wed Sep 12 17:06:54 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Wed, 12 Sep 2007 11:06:54 -0400 Subject: managing latency-induced host down alerts In-Reply-To: References: <20070912144621.GA57071@bewilderbeast.blackhelicopters.org> Message-ID: <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> On Wed, Sep 12, 2007 at 10:02:51AM -0500, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Michael W. Lucas > > Sent: Wednesday, September 12, 2007 9:46 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] managing latency-induced host down alerts > > > > Hi, > > > > I'm using Nagios 2.9 on FreeBSD, on a wide area network that has > > remote networks scattered across the USA and Mexico. > > > > We have a problem where latency on some remote circuits rises due to > > congestion. This means that various service checks time out, as they > > take more than 10 seconds to complete. (Yes, this is a real problem, > > and we're addressing it. I'm using smokeping to track latency at > > these sites now, analyzing traffic, etc.) > > > > I'd like to separate the latency problem from a site down problem. I > > can think of a couple ways to do this: > > > > 1) increase the 10-second maximum timeout for a service check to > > complete. Can this be done in Nagios? > > Yes, and is the route I would take since it's the simplest. All standard > plugins support a timeout parameter, usually -t. You can run ./plugin > --help to verify if it's supported. Just add an appropriate timeout for > the test you're trying to complete in the command{} definition. You'll > also need to increase the master service_check_timeout parameter in > nagios.cfg. That's a fallback timeout in case the plugin doesn't > terminate itself properly. I have my plugin timeouts generally set at 45 > seconds and the master at 60. Hi, My understanding was that Nagios terminated service checks after 10 seconds, no matter how long the plugin took to complete? I have my plugins set to 10 seconds, but when I increase them beyond 10 seconds Nagios still reports the maximum time for any check is 10 seconds. Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 12 17:15:54 2007 From: marc at ena.com (Marc Powell) Date: Wed, 12 Sep 2007 10:15:54 -0500 Subject: managing latency-induced host down alerts In-Reply-To: <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> References: <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Michael W. Lucas > Sent: Wednesday, September 12, 2007 10:07 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] managing latency-induced host down alerts > My understanding was that Nagios terminated service checks after 10 > seconds, no matter how long the plugin took to complete? Only because that's the default setting. > I have my plugins set to 10 seconds, but when I increase them beyond > 10 seconds Nagios still reports the maximum time for any check is 10 > seconds. Sounds like you didn't adjust the master service_check_timeout parameter. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 12 17:19:27 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 12 Sep 2007 17:19:27 +0200 Subject: managing latency-induced host down alerts In-Reply-To: <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> References: <20070912144621.GA57071@bewilderbeast.blackhelicopters.org> <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> Message-ID: <46E8037F.1060103@op5.se> Michael W. Lucas wrote: > On Wed, Sep 12, 2007 at 10:02:51AM -0500, Marc Powell wrote: >> >>> -----Original Message----- >>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >>> bounces at lists.sourceforge.net] On Behalf Of Michael W. Lucas >>> Sent: Wednesday, September 12, 2007 9:46 AM >>> To: nagios-users at lists.sourceforge.net >>> Subject: [Nagios-users] managing latency-induced host down alerts >>> >>> Hi, >>> >>> I'm using Nagios 2.9 on FreeBSD, on a wide area network that has >>> remote networks scattered across the USA and Mexico. >>> >>> We have a problem where latency on some remote circuits rises due to >>> congestion. This means that various service checks time out, as they >>> take more than 10 seconds to complete. (Yes, this is a real problem, >>> and we're addressing it. I'm using smokeping to track latency at >>> these sites now, analyzing traffic, etc.) >> >>> I'd like to separate the latency problem from a site down problem. I >>> can think of a couple ways to do this: >>> >>> 1) increase the 10-second maximum timeout for a service check to >>> complete. Can this be done in Nagios? >> Yes, and is the route I would take since it's the simplest. All standard >> plugins support a timeout parameter, usually -t. You can run ./plugin >> --help to verify if it's supported. Just add an appropriate timeout for >> the test you're trying to complete in the command{} definition. You'll >> also need to increase the master service_check_timeout parameter in >> nagios.cfg. That's a fallback timeout in case the plugin doesn't >> terminate itself properly. I have my plugin timeouts generally set at 45 >> seconds and the master at 60. > > Hi, > > My understanding was that Nagios terminated service checks after 10 > seconds, no matter how long the plugin took to complete? > By default it is 60 seconds. This limit is imposed only to prevent plugins in infinite loops from sinking the system entirely (although 2 or 3 such rogue plugins would surely make it unusable long before 60 seconds has passed). > I have my plugins set to 10 seconds, but when I increase them beyond > 10 seconds Nagios still reports the maximum time for any check is 10 > seconds. > If that reporting is being done by the "Performance Info" page in Nagios, it's most likely old numbers. You need to let Nagios run for quite some time before it has any effect what so ever. If it is not, you still need to take one or two of the steps suggested by Marc Powell earlier: * Add '-t 45' (without single quotes) to practically all of your check commands (first check which plugin support the flag). * Increase the max_plugin_timeout in nagios.cfg to something more than 10. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fagundes.pacheco at gmail.com Wed Sep 12 17:26:52 2007 From: fagundes.pacheco at gmail.com (Rodrigo Pacheco) Date: Wed, 12 Sep 2007 12:26:52 -0300 Subject: Resp.: NDOUtiles not working In-Reply-To: <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4@mail.gmail.com> References: <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4@mail.gmail.com> Message-ID: <924eed8b0709120826l41ce1483n177e8e89232f08d8@mail.gmail.com> am with the same problem. I am using Debian 4.0r0 Mysql-server-5.0 ndoutils 1,45 nagios 2.9 debtor for the aid. 2007/9/10, vadi : > Dear All, > > I have configured NDOUtiles for my nagios system. > > Used tools > MySQL-client-standard-5.0.26-0.rhel4 > MySQL-shared-standard-5.0.26-0.rhel4 > MySQL-devel-standard-5.0.26-0.rhel4 > MySQL-server-standard-5.0.26-0.rhel4 > nagios 2.9 > ndoutils-1.4b5 > > First time I got an error > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, or > was not found on your system. [Can I know what this error meaning?] > Then later I have changed ndoutils to ndoutils.12232005 . > After that I have not got any error but mysql database not getting any data > INPUT[Not sync]. > I have tasted this for all the possibility ways[I worked very hard to > troubleshot], but it don't helped me. > I am very poor in troubleshoot the problem [I can't troubleshoot the problem > in source level] > > Please can somebody help me for this issue. > > Thanks, > Vadiraj > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mwlucas at blackhelicopters.org Wed Sep 12 17:34:38 2007 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Wed, 12 Sep 2007 11:34:38 -0400 Subject: managing latency-induced host down alerts In-Reply-To: References: <20070912150654.GA57321@bewilderbeast.blackhelicopters.org> Message-ID: <20070912153438.GA57553@bewilderbeast.blackhelicopters.org> On Wed, Sep 12, 2007 at 10:15:54AM -0500, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Michael W. Lucas > > Sent: Wednesday, September 12, 2007 10:07 AM > > To: Marc Powell > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] managing latency-induced host down alerts > > > My understanding was that Nagios terminated service checks after 10 > > seconds, no matter how long the plugin took to complete? > > Only because that's the default setting. > > > I have my plugins set to 10 seconds, but when I increase them beyond > > 10 seconds Nagios still reports the maximum time for any check is 10 > > seconds. > > Sounds like you didn't adjust the master service_check_timeout > parameter. That would be because I didn't know about it. :-) Thanks, I'm sure the problem is solved now. ==ml > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Wed Sep 12 18:14:51 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Wed, 12 Sep 2007 17:14:51 +0100 Subject: Resp.: NDOUtiles not working In-Reply-To: <924eed8b0709120826l41ce1483n177e8e89232f08d8@mail.gmail.com> References: <924eed8b0709120826l41ce1483n177e8e89232f08d8@mail.gmail.com> Message-ID: <6546343904687E41B19D8E5A26AB9F530152D7F9@E03MVB2-UKBR.domain1.systemhost.net> Hi All, I had a similar problem and I was getting the same error you guys are getting "Support for the specified database server is either not yet supported, or was not found on your system." My system is setup as follows OS and Software as follows SUSE Linux Enterprise Server 9. SP2 MySQL 5.0.54 ./configure --prefix=/usr/local/mysql Nagios 2.9 Compiled from source ./configure --prefix=/usr/local/nagios --with-cgiurl=nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd --enable-event-broker NDO Utils 1.4b5 ./configure --enable-mysql --with-mysql-lib=/usr/local/mysql/lib/mysql --with-mysql-inc=/usr/local/mysql/include What I found to be my error in the end was the ./configure line. I had not specified the lib directories. When I ran a make I then got further errors cd ./src/; make ; cd .. make[1]: Entering directory `/home/welsht2/ndoutils-1.4b5/src' gcc -fPIC -O0 -g -DHAVE_CONFIG_H -c -o io.o io.c In file included from io.c:10: ../include/config.h:250:25: mysql/mysql.h: No such file or directory ../include/config.h:251:26: mysql/errmsg.h: No such file or directory make[1]: *** [io.o] Error 1 I had to edit the ndoutils/include/config.h and carry out the following Change #include #include To #include #include This then builds fine and you are left with your compiled files. Hope this helps. Regards Tom P.S I still haven't got NDO utils working but its moving forward. I now have a data sink error which im investigating. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Rodrigo Pacheco Sent: 12 September 2007 16:27 To: vadi Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Resp.: NDOUtiles not working am with the same problem. I am using Debian 4.0r0 Mysql-server-5.0 ndoutils 1,45 nagios 2.9 debtor for the aid. 2007/9/10, vadi : > Dear All, > > I have configured NDOUtiles for my nagios system. > > Used tools > MySQL-client-standard-5.0.26-0.rhel4 > MySQL-shared-standard-5.0.26-0.rhel4 > MySQL-devel-standard-5.0.26-0.rhel4 > MySQL-server-standard-5.0.26-0.rhel4 > nagios 2.9 > ndoutils-1.4b5 > > First time I got an error > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i > Support for the specified database server is either not yet supported, > or was not found on your system. [Can I know what this error meaning?] > Then later I have changed ndoutils to ndoutils.12232005 . > After that I have not got any error but mysql database not getting any > data INPUT[Not sync]. > I have tasted this for all the possibility ways[I worked very hard to > troubleshot], but it don't helped me. > I am very poor in troubleshoot the problem [I can't troubleshoot the > problem in source level] > > Please can somebody help me for this issue. > > Thanks, > Vadiraj > ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Wed Sep 12 18:41:03 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Wed, 12 Sep 2007 17:41:03 +0100 Subject: Further problems with NDO Utils Message-ID: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> Hi Again list. Im my continuing saga to try and get NDO Utils working I have come up against another error. # /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg /usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory If I check the output off ./configure I can see that it found the mysqlclient libs checking for mysql_store_result in -lmysqlclient... yes checking mysql/mysql.h usability... yes checking mysql/mysql.h presence... yes checking for mysql/mysql.h... yes MySQL library and include file(s) were found! Can anyone point me in the right direction please. I'm so gonna write this all up when I have finished. Regards Tom Nagios 2.9 starting... (PID=10285) [1189614170] LOG VERSION: 2.0 [1189614170] ndomod: NDOMOD 1.4b5 (08-29-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) [1189614170] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1189614170] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [1189614170] Finished daemonizing... (New PID=10286) [1189614186] ndomod: Still unable to connect to data sink. 3212 items lost, 5000 queued items to flush. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 12 18:50:50 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 12 Sep 2007 18:50:50 +0200 Subject: Further problems with NDO Utils In-Reply-To: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <46E818EA.5060502@op5.se> tom.welsh at bt.com wrote: > Hi Again list. > > Im my continuing saga to try and get NDO Utils working I have come up > against another error. > > # /usr/local/nagios/bin/ndo2db -c > /usr/local/nagios/etc/ndo2db.cfg > > /usr/local/nagios/bin/ndo2db: error while loading shared > libraries: libmysqlclient.so.15: cannot open shared object file: No such > file or directory > > If I check the output off ./configure I can see that it found the > mysqlclient libs > > checking for mysql_store_result in -lmysqlclient... yes > checking mysql/mysql.h usability... yes > checking mysql/mysql.h presence... yes > checking for mysql/mysql.h... yes > MySQL library and include file(s) were found! > > Can anyone point me in the right direction please. > ldd /usr/local/nagios/bin/ndo2db will tell you where it tries to find the libmysqlclient.so.15 library. Creating a symlink there to where you actually keep the library should suffice. Did you have mysql installed in some nonstandard location when you compiled the program? If so, the location was hardlinked into the binary and you need to either re-compile (and tell it the new location) or move the library back to its original position. If the new location is shorter (strlen(path_to_new_loc) < strlen(path_to_old_loc)), you can use a hex-editor to modify the binary to point to the new location. Don't do this if it's the other way around though. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Wed Sep 12 19:15:05 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Wed, 12 Sep 2007 18:15:05 +0100 Subject: Further problems with NDO Utils In-Reply-To: <46E818EA.5060502@op5.se> References: <46E818EA.5060502@op5.se> Message-ID: <6546343904687E41B19D8E5A26AB9F530152D82B@E03MVB2-UKBR.domain1.systemhost.net> Hi Andreas, Thanks for coming back to me on this. Mysql was installed from source mysql 5.0.45 ./configure --prefix=/usr/local/mysql I believe that that is the default install location anyway. I ran ldd, I completely forgot about that and I get the following /usr/local/nagios/var # ldd /usr/local/nagios/bin/ndo2db linux-gate.so.1 => (0xffffe000) libz.so.1 => /lib/libz.so.1 (0x4001f000) libnsl.so.1 => /lib/libnsl.so.1 (0x40030000) libmysqlclient.so.15 => not found libm.so.6 => /lib/tls/libm.so.6 (0x40045000) libc.so.6 => /lib/tls/libc.so.6 (0x40067000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) As you can see its not found the libmysqlclient even though it says it has. If I run a find I can see it. # find / -name libmysqlclient.so.15 /usr/local/mysql/lib/mysql/libmysqlclient.so.15 I use the following command_line to configure ndo utils NDO-Utils 1.4b5 ./configure --enable-mysql --with-mysql-lib=/usr/local/mysql/lib/mysql --with-mysql-inc=/usr/local/mysql/include When I run make I get the following error. make cd ./src/; make ; cd .. make[1]: Entering directory `/home/w/ndoutils-1.4b5/src' gcc -fPIC -O0 -g -DHAVE_CONFIG_H -c -o io.o io.c In file included from io.c:10: ../include/config.h:250:25: mysql/mysql.h: No such file or directory ../include/config.h:251:26: mysql/errmsg.h: No such file or directory make[1]: *** [io.o] Error 1 make[1]: Leaving directory `/home/welsht2/ndoutils-1.4b5/src' I then edit ./include/config.h to include the complete path to the mysql libs So I change the mysql bit of config.h FROM #define USE_MYSQL 1 /* #undef HAVE_MYSQL */ #ifdef USE_MYSQL #define HAVE_MYSQL 1 #include #include #endif TO #define USE_MYSQL 1 /* #undef HAVE_MYSQL */ #ifdef USE_MYSQL #define HAVE_MYSQL 1 #include #include #endif This then does a make all ok. I can see the compile go through that does the libmysql bit make ndo2db-2x make[2]: Entering directory `/home/welsht2/ndoutils-1.4b5/src' gcc -O0 -g -DHAVE_CONFIG_H -c -o db.o db.c gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c gcc -O0 -g -DHAVE_CONFIG_H -I/usr/local/mysql/include -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o db.o -L/usr/local/mysql/lib/mysql -lz -lnsl -lmysqlclient -lm make[2]: Leaving directory `/home/welsht2/ndoutils-1.4b5/src' make ndo2db-3x make[2]: Entering directory `/home/welsht2/ndoutils-1.4b5/src' gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c gcc -O0 -g -DHAVE_CONFIG_H -I/usr/local/mysql/include -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c dbhandlers-3x.o io.o utils.o db.o -L/usr/local/mysql/lib/mysql -lz -lnsl -lmysqlclient -lm make[2]: Leaving directory `/home/welsht2/ndoutils-1.4b5/src' Any more ideas off how I can get this working. Im not very good with hunting down software compilation problems :( All help gratefully received Regards Tom -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 12 September 2007 17:51 To: Welsh,T,Tom,XSL4A C Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Further problems with NDO Utils tom.welsh at bt.com wrote: > Hi Again list. > > Im my continuing saga to try and get NDO Utils working I have come up > against another error. > > # /usr/local/nagios/bin/ndo2db -c > /usr/local/nagios/etc/ndo2db.cfg > > /usr/local/nagios/bin/ndo2db: error while loading shared > libraries: libmysqlclient.so.15: cannot open shared object file: No > such file or directory > > If I check the output off ./configure I can see that it found the > mysqlclient libs > > checking for mysql_store_result in -lmysqlclient... yes > checking mysql/mysql.h usability... yes > checking mysql/mysql.h presence... yes > checking for mysql/mysql.h... yes > MySQL library and include file(s) were found! > > Can anyone point me in the right direction please. > ldd /usr/local/nagios/bin/ndo2db will tell you where it tries to find the libmysqlclient.so.15 library. Creating a symlink there to where you actually keep the library should suffice. Did you have mysql installed in some nonstandard location when you compiled the program? If so, the location was hardlinked into the binary and you need to either re-compile (and tell it the new location) or move the library back to its original position. If the new location is shorter (strlen(path_to_new_loc) < strlen(path_to_old_loc)), you can use a hex-editor to modify the binary to point to the new location. Don't do this if it's the other way around though. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tonvoon at mac.com Wed Sep 12 20:32:53 2007 From: tonvoon at mac.com (Ton Voon) Date: Wed, 12 Sep 2007 19:32:53 +0100 Subject: Further problems with NDO Utils In-Reply-To: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: Tom, Can you try the Altinity patched version of NDO Utils? http:// altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html This incorporates a better detection of mysql (based on the Nagios Plugins' one). I'm trying to get Ethan to apply to the core NDO, so every success is an encouragement. Ton On 12 Sep 2007, at 17:41, wrote: > Hi Again list. > > Im my continuing saga to try and get NDO Utils working I have come > up against another error. > > # /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg > > /usr/local/nagios/bin/ndo2db: error while loading shared libraries: > libmysqlclient.so.15: cannot open shared object file: No such file > or directory > > If I check the output off ./configure I can see that it found the > mysqlclient libs > > checking for mysql_store_result in -lmysqlclient... yes > checking mysql/mysql.h usability... yes > checking mysql/mysql.h presence... yes > checking for mysql/mysql.h... yes > MySQL library and include file(s) were found! > > Can anyone point me in the right direction please. > > I'm so gonna write this all up when I have finished. > > Regards > > Tom > > > > Nagios 2.9 starting... (PID=10285) > [1189614170] LOG VERSION: 2.0 > [1189614170] ndomod: NDOMOD 1.4b5 (08-29-2007) Copyright (c) > 2005-2007 Ethan Galstad (nagios at nagios.org) > [1189614170] ndomod: Could not open data sink! I'll keep trying, > but some output may get lost... > [1189614170] Event broker module '/usr/local/nagios/bin/ndomod.o' > initialized successfully. > [1189614170] Finished daemonizing... (New PID=10286) > [1189614186] ndomod: Still unable to connect to data sink. 3212 > items lost, 5000 queued items to flush. > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Sep 13 01:21:57 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 12 Sep 2007 19:21:57 -0400 Subject: Checking COUNTERS with check_nt and/or check_nc_net In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57448E13F7@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57448E13F7@hermes.sapphire-int.gi> Message-ID: Hi Giles, I am glad this was mentioned, This is actually a issue that I want to elaborate on, The problem is not the command line, but the counter itself, Since a 0 was returned, the command line is fine, if it had an issue command you would have recieved a -1 (you can test this, just misspel the counter) the issue here is that counter needs to have 2 samples taken before reporting the answer back to check_nt. If the time between the samples is too small it would always report a 0, if the time is too large it would increase the time that check_nt is waiting for a result. Preformance counter in windows uses a 1s delay between samples, NC_Net to expidite responce time uses a default of 15ms. I found this value to be good for most counters. (the performance counter viewer tool I created also uses 1s ) Solution change the sampledelay to a higher value, This can be done remotly on the fly, but it must be changed in the startup.cfg for NC_NEt to use it at startup. you can do this through check_nc_net use -v CONFIG -l "sampledelay,1000" to update the delay to a full second or you may find updating to 0.1ssufficient -l "sampledelay,100" I hope this clears up the issue, please let me know if anyone needs clarification, or this topic could always be brought over to the NC_NEt forunm on sourceforge. http://sourceforge.net/projects/nc-net Tony (Author of NC_NEt) On 9/12/07, Giles Coochey wrote: > > Hello List, > > > > I've been experimenting with check_nt and check_nc_net (I have Nc_Net > installed on a test server and have had this same problem with both UNIX > plugins). > > > > The server is 2003, English version > > > > The commands which demonstrate working and not working examples are: > > > > Not working: > > > > *# ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Disk File > Deletes/sec"* > > *\MSExchangeMTA\Disk File Deletes/sec = 0.00* > > > > Working: > > > > *# ./check_nc_net -H windowssys -v COUNTER -l "\\MSExchangeMTA\\Free > Elements"* > > *\MSExchangeMTA\Free Elements = 7.00* > > > > It seems to me that any COUNTER that has a forwardslash in its name > returns zero. > > > > I checked actual values on the server using the local performance counter > viewer provided with nc_net and the values are not zero. > > > > These are just examples, but I get the same results for \memory\pages/sec > and others, it doesn't matter whether I use the ^ notation either. > > > > I tried googling, but didn't get anything relevant, this is NC_Net_V4.1a > installed via the MSI package. > > > > Otherwise, everything seems to be working OK. > > > > Hope someone has either come across this problem or has some ideas, I > don't should I should need to escape a "/" should I? > > > > Thanks > > > Giles > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nicholas.Magers at lands.nsw.gov.au Thu Sep 13 02:59:56 2007 From: Nicholas.Magers at lands.nsw.gov.au (Nicholas Magers) Date: Thu, 13 Sep 2007 10:59:56 +1000 Subject: NDOUtils programstatus table is empty. Message-ID: <818F31EB6E5F99459894BE97B94639D5015FE364@lands.nsw.gov.au> On a new server running nagios and ndoutils I have found that the table nagios_programstatus is not getting updated. This effects nagvis as it refers to this to work. The nagvis site acknowledged the problem but no one mentioned why this is occurring. Has anyone else seen this issue? *************************************************************** This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the Department of Lands. This email message has been swept by MIMEsweeper for the presence of computer viruses. *************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zion.ahead at gmail.com Thu Sep 13 03:43:37 2007 From: zion.ahead at gmail.com (Zion Ahead) Date: Wed, 12 Sep 2007 21:43:37 -0400 Subject: Need help Message-ID: <003401c7f5a7$80d6c1d0$82844570$%ahead@gmail.com> I finally got Nagios working and into the web panel. Now, how on earth do I ADD new services to monitor??? The docs are so disgustingly confusing http://nagios.sourceforge.net/docs/3...cservices.html Quote: Before you can monitor a service, you first need to define a host that is associated with the service. You can place host definitions in any object configuration file specified by a cfg_file directive or placed in a directory specified by a cfg_dir directive. If you have already created a host definition, you can skip this step. Quote: The host definition can be placed in its own file or added to an already exiting object configuration file. What? Where does the file go? What name? This is crazy. Nagios doesn't even have a forum except that lame international one that is inactive/dead. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nemir at hotmail.com Thu Sep 13 06:03:43 2007 From: nemir at hotmail.com (nemir nemiria) Date: Thu, 13 Sep 2007 04:03:43 +0000 Subject: Need help In-Reply-To: <003401c7f5a7$80d6c1d0$82844570$%ahead@gmail.com> References: <003401c7f5a7$80d6c1d0$82844570$%ahead@gmail.com> Message-ID: Been using nagios since 1.0, and I think the methodology has shifted a little, but I am still old skool. >I finally got Nagios working and into the web panel. Excellent! :-) >Now, how on earth do I ADD new services to monitor??? In your nagios implementation there should be a series of config files underneath the etc directory. In there will be something called nagios.cfg. There will be a bunch of config files specified thus: 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 These files are what you use to configure nagios. In the hosts file you can specify a host like this: # 'SydInt01' host definition define host{ use generic-host ; Name of host template to use host_name SydInt01 alias SydB2 address 172.30.20.244 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r contact_groups npsadmins Once the host is defined, you specify the services in the services.cfg. For example: define service{ use generic-service ; Name of service template to use host_name SydInt01 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 11 normal_check_interval 5 retry_check_interval 1 contact_groups fw notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!1000.0,20%!5000.0,100% } I hope this helps some. Let me know if you have any more questions. _________________________________________________________________ Get more out of your e-mail. Update to Windows Live Hotmail today! http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=778&referral=HotmailTagline&URL=http://g.msn.com/8HMBEN/14811??PS=? -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shane at reactivate.cx Thu Sep 13 07:45:20 2007 From: shane at reactivate.cx (Shane Anderson) Date: Thu, 13 Sep 2007 15:45:20 +1000 Subject: Random text appearing in NRPE output. Message-ID: Hi, I am running Nagios 2.9 and NRPE 2.8.1 under Solaris 10 (client) and CentOS 4.2 (monitoring host) and am experiencing a weird issue when running a custom perl script remotely via NRPE. Here is the output from NRPE: root at mon01 libexec# ./check_nrpe2 -H ***.**.**.*** -c check_jms_queues producers:0 consumers_active:10 consumers_backup:0 consumers_count:0 msgs_ack:0 msgs_avg:0.0 02/12/03 SMI" The "02/12/03 SMI" bit is not output by my script. It actually seems to be coming from /etc/default/init on the Solaris 10 client. It does not happen when I run the script manually. I've search Google and various forums trying to find anyone else with this issue, but have been unable to. Does anyone know what is causing this seemingly random text to appear in the NRPE output? It happens on multiple hosts and is not limited to a particular OS. Thanks, Shane -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 13 07:46:05 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 13 Sep 2007 07:46:05 +0200 Subject: Need help In-Reply-To: <003401c7f5a7$80d6c1d0$82844570$%ahead@gmail.com> References: <003401c7f5a7$80d6c1d0$82844570$%ahead@gmail.com> Message-ID: <46E8CE9D.1030201@op5.se> Zion Ahead wrote: > I finally got Nagios working and into the web panel. > > Now, how on earth do I ADD new services to monitor??? > By editing your services.cfg file. You should have done something along the lines of "make install-config" after having installed the nagios core and cgi binaries. If you use a distro that ships nagios pre-packaged you should be able to find your nagios config in /etc/nagios. > The docs are so disgustingly confusing > http://nagios.sourceforge.net/docs/3...cservices.html > > > Quote: > > > Before you can monitor a service, you first need to define a host > that > is associated with the service. You can place host definitions in any object > configuration file specified by a cfg_file > directive > or placed in a directory specified by a cfg_dir > directive. > If you have already created a host definition, you can skip this step. > It's actually the services that are associated with hosts, but that's a minor nitpick. Each service in Nagios "belongs" to one or more hosts, in much the same way that only one web-server / connection is actually serving content to a client. Both services and hosts use command objects as definitions on how to run a particular check. Each check is performed by a very small and simple program, commonly known as a plugin. The command objects simply define where to find the plugin and what argument to pass to it. Usually, multiple command objects refer to the same plugin. So.. in order for you to create a service-check, you'll need a command object definition, a host object and a service object. You'll also need at least one timeperiod object (make install-config provides several that will work nicely). Examples of such objects can be found in the documentation, which I notice you've already located. > > > Quote: > > > The host definition can be placed in its own file or added to an already > exiting object configuration file. > > > > > > What? Where does the file go? What name? This is crazy. > "make install-config" or "rpm -ql nagios" should provide some hints. If you've already done the "make install-config" thing, your example config files should be in $prefix/etc, or $sysconfdir if you specified that. > > > Nagios doesn't even have a forum except that lame international one that is > inactive/dead. > True. It has this list (and a few others) instead. Some projects use web-forums, most use mailing lists. Webforums generally require more work to manage, so a properly archived mailing list is what most OSS projects use as it's basically maintenance-free once the list-server is set up. Personally I detest webforums with a passion as I need to actively check it to keep up with what's going on in . I can't help but make the observation that you don't seem to like Nagios but still seem quite determined to install it. Usually such emotions and actions only occur when The Suits have shoved some decision down some poor technicians throat against their will. To ease your pain, I suggest you stick to using the latest stable nagios (2.9) or contact a support-company that help you get up and running. It's normally not very expensive and you will be able to show management a quick return of investment. The market-leading Nagios company in the US is IT Groundworks, which you'll find at http://www.groundworkopensource.com/ In Europe it's op5, which you'll find at http://www.op5.com (yes, it's where I work). For Australia, Asia and Africa I have no idea where to turn, but you should be able to find something close to home if you browse through the providers listed at http://www.nagios.org/support/commercial/ -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 13 08:01:54 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 13 Sep 2007 08:01:54 +0200 Subject: Further problems with NDO Utils In-Reply-To: <6546343904687E41B19D8E5A26AB9F530152D82B@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F530152D82B@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <46E8D252.80205@op5.se> tom.welsh at bt.com wrote: > Hi Andreas, > > Thanks for coming back to me on this. > > Mysql was installed from source > > mysql 5.0.45 > ./configure --prefix=/usr/local/mysql > > I believe that that is the default install location anyway. > Yup. > I ran ldd, I completely forgot about that and I get the following > > /usr/local/nagios/var # ldd /usr/local/nagios/bin/ndo2db > linux-gate.so.1 => (0xffffe000) > libz.so.1 => /lib/libz.so.1 (0x4001f000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40030000) > libmysqlclient.so.15 => not found > > As you can see its not found the libmysqlclient even though it says it > has. If I run a find I can see it. > Righto. This tells us two things: * It's been successfully linked to libmsysqlclient.so.15 at compile-time. * It doesn't know where to find that lib. There are multiple fixes to this problem. You can do "cp /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/lib; ldconfig" (easiest, but it's got a dirty feel about it) You can add /usr/local/mysql/lib/mysql to your /etc/ld.so.conf and re-run ldconfig. If you don't have an /etc/ld.so.conf your linker isn't new enough and this option won't work. > # find / -name libmysqlclient.so.15 > /usr/local/mysql/lib/mysql/libmysqlclient.so.15 > > I use the following command_line to configure ndo utils > > NDO-Utils 1.4b5 > ./configure --enable-mysql > --with-mysql-lib=/usr/local/mysql/lib/mysql > --with-mysql-inc=/usr/local/mysql/include > > When I run make I get the following error. > > make > cd ./src/; make ; cd .. > make[1]: Entering directory `/home/w/ndoutils-1.4b5/src' > gcc -fPIC -O0 -g -DHAVE_CONFIG_H -c -o io.o io.c > In file included from io.c:10: > ../include/config.h:250:25: mysql/mysql.h: No such file or > directory > ../include/config.h:251:26: mysql/errmsg.h: No such file or > directory > make[1]: *** [io.o] Error 1 > make[1]: Leaving directory `/home/welsht2/ndoutils-1.4b5/src' > Try "make CPPFLAGS=-I/usr/local/mysql/include" instead of the config.h hackery you described (for next time, that is). That will tell the pre-processor to look for include-files in /usr/local/mysql/include as well as the standard /usr/include. > > make ndo2db-2x > make[2]: Entering directory `/home/welsht2/ndoutils-1.4b5/src' > gcc -O0 -g -DHAVE_CONFIG_H -c -o db.o db.c > gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o > dbhandlers-2x.o dbhandlers.c > gcc -O0 -g -DHAVE_CONFIG_H -I/usr/local/mysql/include -D > BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o > db.o -L/usr/local/mysql/lib/mysql -lz -lnsl -lmysqlclient -lm Here is actually a problem. Since libmysqlclient.so.15 doesn't exist in the normal ld.so.conf search-path, it should also have added -Wl,r/usr/local/mysql/lib/mysql to the linker options, which would have added /usr/local/mysql/lib/mysql to the search-path for this particular binary only. > > Any more ideas off how I can get this working. Im not very good with > hunting down software compilation problems :( > See above ;-) Inline posting helps a bit when explaining. May I suggest you try it out in your answers? It makes helping out so much easier. You should also try Ton Voon's suggestion, just to see if it fixes the problem permanently. Please report back the results of that particular exercise so we know if it's a real fix or not. Thanks. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From swun2010 at gmail.com Thu Sep 13 08:12:32 2007 From: swun2010 at gmail.com (Sam Wun) Date: Thu, 13 Sep 2007 16:12:32 +1000 Subject: self defined Status Message-ID: <736c47cb0709122312w67ec9beeo125f3322dad2770f@mail.gmail.com> Hi, In Nagios, how can I create a list of self-defined status vs. a list of keywords that I created? eg. if a disk space reached 97% or disk space left only 500MB, I want to raise a critical status to the Nagio alert system. Thanks S ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Thu Sep 13 10:18:17 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Thu, 13 Sep 2007 09:18:17 +0100 Subject: Further problems with NDO Utils In-Reply-To: <46E8D252.80205@op5.se> References: <46E8D252.80205@op5.se> Message-ID: <6546343904687E41B19D8E5A26AB9F530152D8FF@E03MVB2-UKBR.domain1.systemhost.net> Hi Andreas, Ton, Thank you both very much for the help. I now have a working ndo utils. As I used 2 different versions off NDO Utils to get this working I will document each NDO 1.4b5 My problem as you pointed out very well Andreas was my ld.so.conf. I had not included the /usr/local/mysql/lib/mysql in it. I had included /usr/local/mysql/lib. Having run ldconfig I then started again. I used the following command line for ./configure ./configure --enable-mysql --with-mysql-lib=/usr/local/mysql/lib/mysql --with-mysql-inc=/usr/local/mysql/include I then ran a make as suggested make CPPFLAGS=-I/usr/local/mysql/include This still gave me the same errors with config.h. I also tried various CPPFLAGS but still get the same problems I hacked the include/config.h file and specified the full path in front off and . The program then compiled fine Having installed the files into the locations defined in the README file I started up the broker and all is sweet. Ton Voon's patched NDO 1.4b3 http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html http://resources.opsview.org/ndoutils-1.4b3_with_mysql_patch.tar.gz Having fixed the ld.so.conf when I ran Ton's patched version which uses the mysql_config I was provided with a fully functional binary. Steps as follows ./configure --enable-mysql Make JOB DONE Fantastic patch Ton. It worked flawlessly on my SUSE Linux Enterprise Server 9.2 Perhaps as you suggest Ton, try and get this into the ndo main code. Once again thanks to you both for helping me through this. Regards Tom -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 13 September 2007 07:02 To: Welsh,T,Tom,XSL4A C Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Further problems with NDO Utils tom.welsh at bt.com wrote: > Hi Andreas, > > Thanks for coming back to me on this. > > Mysql was installed from source > > mysql 5.0.45 > ./configure --prefix=/usr/local/mysql > > I believe that that is the default install location anyway. > Yup. > I ran ldd, I completely forgot about that and I get the following > > /usr/local/nagios/var # ldd /usr/local/nagios/bin/ndo2db > linux-gate.so.1 => (0xffffe000) > libz.so.1 => /lib/libz.so.1 (0x4001f000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40030000) > libmysqlclient.so.15 => not found > > As you can see its not found the libmysqlclient even though it says it > has. If I run a find I can see it. > Righto. This tells us two things: * It's been successfully linked to libmsysqlclient.so.15 at compile-time. * It doesn't know where to find that lib. There are multiple fixes to this problem. You can do "cp /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/lib; ldconfig" (easiest, but it's got a dirty feel about it) You can add /usr/local/mysql/lib/mysql to your /etc/ld.so.conf and re-run ldconfig. If you don't have an /etc/ld.so.conf your linker isn't new enough and this option won't work. > # find / -name libmysqlclient.so.15 > /usr/local/mysql/lib/mysql/libmysqlclient.so.15 > > I use the following command_line to configure ndo utils > > NDO-Utils 1.4b5 > ./configure --enable-mysql > --with-mysql-lib=/usr/local/mysql/lib/mysql > --with-mysql-inc=/usr/local/mysql/include > > When I run make I get the following error. > > make > cd ./src/; make ; cd .. > make[1]: Entering directory `/home/w/ndoutils-1.4b5/src' > gcc -fPIC -O0 -g -DHAVE_CONFIG_H -c -o io.o io.c > In file included from io.c:10: > ../include/config.h:250:25: mysql/mysql.h: No such file or directory > ../include/config.h:251:26: mysql/errmsg.h: No such file or directory > make[1]: *** [io.o] Error 1 > make[1]: Leaving directory `/home/welsht2/ndoutils-1.4b5/src' > Try "make CPPFLAGS=-I/usr/local/mysql/include" instead of the config.h hackery you described (for next time, that is). That will tell the pre-processor to look for include-files in /usr/local/mysql/include as well as the standard /usr/include. > > make ndo2db-2x > make[2]: Entering directory `/home/welsht2/ndoutils-1.4b5/src' > gcc -O0 -g -DHAVE_CONFIG_H -c -o db.o db.c > gcc -O0 -g -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o > dbhandlers.c > gcc -O0 -g -DHAVE_CONFIG_H -I/usr/local/mysql/include -D > BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o > db.o -L/usr/local/mysql/lib/mysql -lz -lnsl -lmysqlclient -lm Here is actually a problem. Since libmysqlclient.so.15 doesn't exist in the normal ld.so.conf search-path, it should also have added -Wl,r/usr/local/mysql/lib/mysql to the linker options, which would have added /usr/local/mysql/lib/mysql to the search-path for this particular binary only. > > Any more ideas off how I can get this working. Im not very good with > hunting down software compilation problems :( > See above ;-) Inline posting helps a bit when explaining. May I suggest you try it out in your answers? It makes helping out so much easier. You should also try Ton Voon's suggestion, just to see if it fixes the problem permanently. Please report back the results of that particular exercise so we know if it's a real fix or not. Thanks. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 13 10:42:17 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 13 Sep 2007 10:42:17 +0200 Subject: Further problems with NDO Utils In-Reply-To: <6546343904687E41B19D8E5A26AB9F530152D8FF@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F530152D8FF@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <46E8F7E9.9070805@op5.se> Thanks for the write-up. tom.welsh at bt.com wrote: > Hi Andreas, Ton, > > My problem as you pointed out very well Andreas was my ld.so.conf. I had > not included the /usr/local/mysql/lib/mysql in it. I had included > /usr/local/mysql/lib. > .... > > Ton Voon's patched NDO 1.4b3 > http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html > > http://resources.opsview.org/ndoutils-1.4b3_with_mysql_patch.tar.gz > > Having fixed the ld.so.conf when I ran Ton's patched version which uses > the mysql_config I was provided with a fully functional binary. Steps as > follows > Hmm. I was curious to see if it would fix the problems when libmysqlclient.so.15 was *not* in the configured path. > ./configure --enable-mysql > > Make > > JOB DONE > > Fantastic patch Ton. It worked flawlessly on my SUSE Linux Enterprise > Server 9.2 > > Perhaps as you suggest Ton, try and get this into the ndo main code. > It's certainly a step in the right direction. If it works without the ld.so.conf hacking I'd go so far as to say it's _the_ long-term solution. > Once again thanks to you both for helping me through this. > No problem. Properly formulated questions from someone willing to put some effort into finding the solution for him/her-self deserve proper answers ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Sep 13 12:03:50 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 13 Sep 2007 11:03:50 +0100 Subject: hostgroups in servicegroup definition FIXED In-Reply-To: <723504D812FBEF4F89F958B14D294EB204DFC54E@EXCH-C1.corp.cloudmark.com> References: <723504D812FBEF4F89F958B14D294EB204DFC54E@EXCH-C1.corp.cloudmark.com> Message-ID: <46E90B06.8050201@googlemail.com> I went and had a look at this for you since I would like for people to be able to use my servicegroup-generator for this as well and what you need is to do the following in your services.cfg or equivalent file: define service{ blah blah hostgroup_name SomeHostGroupName blah blah } firstly you must use "hostgroup_name" instead of "host_name" on the left hand side if you are using hostgroups in your service definitions. You can use both host_name and hostgroup_name on separate lines within each service definition block, I've just checked this and it works. hostgroup_name is not in the Nagios 2.x docs in the services section even though it works, but other object file definitions do contain hostgroup_name for their references and it is in the Nagios 3.x docs so it must just be a minor oversight to not have it in the service definition section of the Nagios 2.x docs. I have rewritten my servicegroup-generator.py to work with hostgroups properly now and work around the fact that Nagios does not accept hostgroups in the servicegroup file. If you download the latest version 1.3 on nagiosexchange.org it will handle this as well by expanding the hostgroups. In order to do this, it will use your hostgroup file. It defaults to hostgroups.cfg for the hostgroup file but you can specify another filename using the new -f switch. I have added a hostgroup to my services file and it seems to work well, it puts the host names that belong to the hostgroup into the servicegroup file and all works well... you can now mix and match host_name and hostgroup_name definitions in your services file and the generator will handle it and create a full working servicegroups file. The latest version is available at: http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view]=896 Let me know how it goes for you with this. Hope that helps -h Hari Sekhon Lori Adams wrote: > > This doesn't work. > > > > I get the error: > > Error: Could not find a service matching host name '' and > description ''. > > > > It appears to only want hosts. > > > > -Lori > > > > -----Original Message----- > > > > I don't use hostgroups in this way but I'm pretty sure it is possible > > because I added this to my servicegroup-generator.py (find it on > > nagiosexchange.org) at the request of another guy who emailed me. > > > > Basically, the "hostgroup, service" bit goes on the Members line the > > same way the "host, service" bit does. You're welcome to give the > > servicegroup-generator a try as well since it will generate a file full > > of servicegroups following the names of the services you have defined in > > services.cfg or equivalent. I use it to not bother writing my > > servicegroup file by hand... > > > > Let me know how you get on... > > > > Hope that helps. > > > > -h > > > > Hari Sekhon > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Thu Sep 13 12:49:34 2007 From: ton.voon at altinity.com (Ton Voon) Date: Thu, 13 Sep 2007 11:49:34 +0100 Subject: Further problems with NDO Utils In-Reply-To: References: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <2A6429A6-4F4A-4B2E-9307-76D479D49A04@altinity.com> On 12 Sep 2007, at 19:32, Ton Voon wrote: > Can you try the Altinity patched version of NDO Utils? http:// > altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html > > This incorporates a better detection of mysql (based on the Nagios > Plugins' one). > > I'm trying to get Ethan to apply to the core NDO, so every success is > an encouragement. I've since realised that this problem is actually a linking issue, not a compile issue. There are three options (that I know of): - ld.so.conf - LD_LIBRARY_PATH at runtime - LD_RUN_PATH at compile time (or some variation of, using linker flags) This is not a problem on the Nagios Plugins because we use libtool which adds in the correct linker flags, which is why check_mysql works okay (run ldd check_mysql and it will find the mysql libraries in the non-standard directories). This has not been included in the Altinity patch for NDO utils because libtool is a bit of a sledgehammer to crack this nut. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 13 13:25:25 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 13 Sep 2007 13:25:25 +0200 Subject: Further problems with NDO Utils In-Reply-To: <6546343904687E41B19D8E5A26AB9F530152DA22@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F530152DA22@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <46E91E25.7060707@op5.se> tom.welsh at bt.com wrote: > Hi Andreas, Ton > >> Hmm. I was curious to see if it would fix the problems when >> libmysqlclient.so.15 was *not* in the configured path. > > But to cut a long story short, it didn't work if I removed the entry > from ld.so.conf. I have no problems spending time trying to assist in > fixing this if you guys want to tell me what to try. Unfortunately not > being a programmer my gcc / make knowledge is minimal. > > So here's what I tried and what the output was. > > > 1. Edit ld.so.conf > > Remove the entry for /usr/local/mysql/lib/mysql > [ middle-steps cut out for brevity ] > 6. Run ldd on resultant ndo2db binary > > ldd src/ndo2db-2x > linux-gate.so.1 => (0xffffe000) > libnsl.so.1 => /lib/libnsl.so.1 (0x4001f000) > libmysqlclient.so.15 => not found > libz.so.1 => /lib/libz.so.1 (0x40034000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x40045000) > libm.so.6 => /lib/tls/libm.so.6 (0x40076000) > libc.so.6 => /lib/tls/libc.so.6 (0x40099000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > Bummer, didn't pick up libmysqlclient.so.15 > Well, it's good to know anyways. Now the altinity patch has had some serious review and a minor flaw, which is probably trivial to fix, has been found in it. Once it's fixed it can be resubmitted to Ethan and this particular problem shouldn't bother users in the future. Again, thanks for testing this. It was most valuable :) > 7. OK try with some CPPFLAGS > > make CPPFLAGS=-I/usr/local/mysql/include > The CPPFLAGS variable only works for altering preprocessor options, and only if they're honored by the Makefile while creating the various targets. When the binary is produced but has lost a path to one of the libraries it's linked to, it won't do any good. I'll see if I can amend the ndoutils Makefile with the few extra lines required to make it honor CPPFLAGS. Again, thanks. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 13 13:44:15 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 13 Sep 2007 13:44:15 +0200 Subject: Further problems with NDO Utils In-Reply-To: <2A6429A6-4F4A-4B2E-9307-76D479D49A04@altinity.com> References: <6546343904687E41B19D8E5A26AB9F530152D81B@E03MVB2-UKBR.domain1.systemhost.net> <2A6429A6-4F4A-4B2E-9307-76D479D49A04@altinity.com> Message-ID: <46E9228F.1070806@op5.se> Ton Voon wrote: > On 12 Sep 2007, at 19:32, Ton Voon wrote: > >> Can you try the Altinity patched version of NDO Utils? http:// >> altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html >> >> This incorporates a better detection of mysql (based on the Nagios >> Plugins' one). >> >> I'm trying to get Ethan to apply to the core NDO, so every success is >> an encouragement. > > I've since realised that this problem is actually a linking issue, > not a compile issue. > > There are three options (that I know of): > - ld.so.conf > - LD_LIBRARY_PATH at runtime > - LD_RUN_PATH at compile time (or some variation of, using linker > flags) > > This is not a problem on the Nagios Plugins because we use libtool > which adds in the correct linker flags, which is why check_mysql > works okay (run ldd check_mysql and it will find the mysql libraries > in the non-standard directories). > > This has not been included in the Altinity patch for NDO utils > because libtool is a bit of a sledgehammer to crack this nut. > And an ugly one at that. The simplest way is to just add -Wl,-rpath /path/to/mysql-libs in addition to -L/path/to/mysql-libs if the libraries are in a non-standard path. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Thu Sep 13 13:58:27 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Thu, 13 Sep 2007 12:58:27 +0100 Subject: Further problems with NDO Utils In-Reply-To: <46E91E25.7060707@op5.se> References: <46E91E25.7060707@op5.se> Message-ID: <6546343904687E41B19D8E5A26AB9F530152DB67@E03MVB2-UKBR.domain1.systemhost.net> Not a problem. Im more than happy to test anything you want. Just drop me a mail when you think this or anything else may need further testing and I'll take it for a spin -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: 13 September 2007 12:25 To: Welsh,T,Tom,XSL4A C Cc: tonvoon at mac.com; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Further problems with NDO Utils tom.welsh at bt.com wrote: > Hi Andreas, Ton > >> Hmm. I was curious to see if it would fix the problems when >> libmysqlclient.so.15 was *not* in the configured path. > > But to cut a long story short, it didn't work if I removed the entry > from ld.so.conf. I have no problems spending time trying to assist in > fixing this if you guys want to tell me what to try. Unfortunately not > being a programmer my gcc / make knowledge is minimal. > > So here's what I tried and what the output was. > > > 1. Edit ld.so.conf > > Remove the entry for /usr/local/mysql/lib/mysql > [ middle-steps cut out for brevity ] > 6. Run ldd on resultant ndo2db binary > > ldd src/ndo2db-2x > linux-gate.so.1 => (0xffffe000) > libnsl.so.1 => /lib/libnsl.so.1 (0x4001f000) > libmysqlclient.so.15 => not found > libz.so.1 => /lib/libz.so.1 (0x40034000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x40045000) > libm.so.6 => /lib/tls/libm.so.6 (0x40076000) > libc.so.6 => /lib/tls/libc.so.6 (0x40099000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > Bummer, didn't pick up libmysqlclient.so.15 > Well, it's good to know anyways. Now the altinity patch has had some serious review and a minor flaw, which is probably trivial to fix, has been found in it. Once it's fixed it can be resubmitted to Ethan and this particular problem shouldn't bother users in the future. Again, thanks for testing this. It was most valuable :) > 7. OK try with some CPPFLAGS > > make CPPFLAGS=-I/usr/local/mysql/include > The CPPFLAGS variable only works for altering preprocessor options, and only if they're honored by the Makefile while creating the various targets. When the binary is produced but has lost a path to one of the libraries it's linked to, it won't do any good. I'll see if I can amend the ndoutils Makefile with the few extra lines required to make it honor CPPFLAGS. Again, thanks. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Sep 13 14:47:26 2007 From: m.borsani at it.net (Marco Borsani) Date: Thu, 13 Sep 2007 14:47:26 +0200 Subject: NSClient++ : No data was received from host Message-ID: <002801c7f604$3d49d760$0900d40a@intranet.it.net> Hi all >From last march , sometime (expecially during the night) I receive the error "No data was received from host", from some Windows 2003 server running NSClient++ (release 0.2.7 2007-03-06). I just monitor disk space, memory, cpu load or services, nothing strange. Have you got any problem like this one? Any idea to solve it? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy?s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Thu Sep 13 14:53:46 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Thu, 13 Sep 2007 08:53:46 -0400 Subject: Problems with check_nt In-Reply-To: References: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local><46E6F9FC.5050806@op5.se><2FAF78EDA2D2DF4EB656ABB3339FD105B8EE23@mtlexchange.Duocom.local> Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B8F531@mtlexchange.Duocom.local> Hi, I'll try to elaborate The problem is when I scan a drive off a particular server it doesn't work. Let's say I have 4 servers, I am scanning d: drive on all 4 servers 3 out of the 4 will work and return the fourth one will return an error. (Return code of 139 is out of bounds) The client version that is running on all servers is 0.2.7 I have verified that all servers is hard drives being scanned not cd drives. Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel. : (514) 341-8181, ext./poste 267 T?l?c./Fax. : (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail. : apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Anthony Montibello Sent: Tuesday, September 11, 2007 7:45 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with check_nt I am not sure I understand the problem correctly, is the error in question intermittent where it is there then not there or, every time you try that particular drive on that particular server. if the latter have you tried check_nt from the command line to test the command before adding to your configuration. what is the entire error output? Did your make sure the Windows Host has that drive installed? for example if it is a CDROM drive it may cause an error (not sure what error) since it does not have freespace What is the Windows client installed, run check_nt -v CLIENTVERSION Since the different windows clients may deal with internal errors differently it is posible that the output of a windows client is giving this error while a different client would give a different output. Tony (Author of NC_NEt) On 9/11/07, Antonio Pereira wrote: Hi, Yes I checked again. What I did is added other hosts selecting different drives trying c:, d:, e: f:, etc. This differs depending on the server and I still get these random results. It's odd. I even tried removing each drive and service and adding one at a time and still the same result. Every single server that I scan the local c: it works fine. But when I start scanning the next drives I start getting these random results. I am scanning 10 servers they all have c: drive. These work fine. I am scanning 4 servers they all have d: drive. 1 out 4 works I am scanning 2 servers they have e: drive Both work I am scanning 2 servers thay have f: drive 1 out 2 work. I haven't added all the servers yet but I figure this will do for troubleshooting purposes. Antonio Pereira National IT Coordinator Coordinateur National de Technologies de l'Information T?l./Tel.: (514) 341-8181, ext./poste 267 T?l?c./Fax.: (514) 341-1253 Cell: (514) 514-444-6086 Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 Courriel / E-mail.: apereira at duocom.ca Duocom Canada Inc. 10000, Cavendish Blvd. Ville St. Laurent (Qu?bec) H4M 2V1 www.duocom.ca -----Original Message----- From: Andreas Ericsson [mailto: ae at op5.se ] Sent: Tuesday, September 11, 2007 4:27 PM To: Antonio Pereira Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with check_nt Antonio Pereira wrote: > Hello, > > > > I am experiencing an issue that I don't understand > > > > I have defined a check_nt command and I am scanning the disk space on about 2 servers right now. 1 out of the 2 returns a result but then the2nd will return an error message as follows > > > > (Return code of 139 is out of bounds) > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return codes are given as signed chars, which are normally not capable of handling numbers outside the range -128 to 127. It's done this way because, traditionally, programs return the additive inverse of the system error that caused the abnormal termination, or -1 if the programmer was lazy. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From swun2010 at gmail.com Thu Sep 13 15:12:07 2007 From: swun2010 at gmail.com (Sam Wun) Date: Thu, 13 Sep 2007 23:12:07 +1000 Subject: self defined status Message-ID: <736c47cb0709130612j3a5bd03g911483299b87f70f@mail.gmail.com> Hi, In Nagios, how can I create a list of self-defined status vs. a list of keywords that I created? eg. if a disk space reached 97% or disk space left only 500MB, I want to raise a critical status to the Nagio alert system. Thanks S ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristiano.ness at opservices.com.br Thu Sep 13 15:57:08 2007 From: cristiano.ness at opservices.com.br (Cristiano Ness) Date: Thu, 13 Sep 2007 10:57:08 -0300 Subject: NSClient++ : No data was received from host In-Reply-To: <002801c7f604$3d49d760$0900d40a@intranet.it.net> References: <002801c7f604$3d49d760$0900d40a@intranet.it.net> Message-ID: <46E941B4.8030702@opservices.com.br> Marco, We have enhanced the nsclient code with support 32/64 bits and have changed the name of the agent to opmonagent. We have fixed some bugs and are in the process of adding new features. - fixed the connection limit, it only allowed 5 connections, now it allows hundreds. - possible access violations have been fixed - new component versions have been use to compile the agent - we no longer store configuration in the registry, ini file now - opmonagent tries to auto detect the right counters to use based on a new counter.defs structure - very small memory footprint and CPU utilization Any suggestions or bug reports can be sent via our support forum at https://intranet.opservices.com.br/phpBB2/ and the agent can be downloaded from http://www.opservices.com.br/downloads/opmonagent-2.4.0.0.zip . Thanks. Marco Borsani wrote: > Hi all > > From last march , sometime (expecially during the night) I receive the > error "No data was received from host", from some Windows 2003 server > running NSClient++ (release 0.2.7 2007-03-06). > I just monitor disk space, memory, cpu load or services, nothing strange. > > Have you got any problem like this one? > Any idea to solve it? > > Regards > > Marco Borsani > Technical Operation > > tel.: +390104310115 > e-fax: +390683175950 > * m.borsani at it.net > > ITnet S.r.l. > Direzione e Coordinamento di Weather Investments S.p.A. > Via Pacinotti, 39 > 16151 - Genova > > > In ottemperanza al D. lgs 196/03 in materia di protezione dei dati > personali, le informazioni contenute in questo messaggio sono > strettamente riservate e sono esclusivamente indirizzate al > destinatario indicato (oppure alla persona responsabile di rimetterlo > al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo > messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per > errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo > posta elettronica e distruggere il messaggio erroneamente ricevuto. > > According to Italy's new data protection code (Legislative Decree no. > 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning > privacy, the information contained in this e-mail is confidential and > is intended for the addressee only. If you are not the correct > recipient, please note that any use, dissemination or copy of this > document/information is strictly prohibited.If you have received this > message in error, you should destroy it and please notify us > immediately by e-mail. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: assinatura-email.jpg Type: image/jpeg Size: 12090 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 13 16:09:59 2007 From: marc at ena.com (Marc Powell) Date: Thu, 13 Sep 2007 09:09:59 -0500 Subject: Time period In-Reply-To: <5.0.2.1.2.20070912162754.00be5958@mailhost.irit.fr> References: <5.0.2.1.2.20070912162754.00be5958@mailhost.irit.fr> Message-ID: Please always respond on list. > -----Original Message----- > From: Jean Frontin [mailto:frontin at irit.fr] > Sent: Wednesday, September 12, 2007 9:31 AM > To: Marc Powell > Subject: Re: [Nagios-users] Time period > > Hello Marc, > > It's not exactly what you said : the machine is welle synchronized. When I > run the command date I obtain a nice information so I think it's rhe > software nagios which doesn't run a good time. I have never seen or heard of such an issue with nagios. To the best of my knowledge nagios uses standard time routines to determine the system time (i.e. gettimeofday()). Is your nagios server located 2 hours off of GMT? Is the system time reporting correctly? Timezone set correctly? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From digolinopage at yahoo.com.br Thu Sep 13 16:48:46 2007 From: digolinopage at yahoo.com.br (Rodrigo Tavares) Date: Thu, 13 Sep 2007 11:48:46 -0300 (ART) Subject: Nagios 1.4 not send e-mails Message-ID: <867354.91976.qm@web56308.mail.re3.yahoo.com> Hello, Can nagios send e-mail ? When one service is down, for example. My version is 1.4 []'s Rodrigo Faria Flickr agora em portugu?s. Voc? clica, todo mundo v?. http://www.flickr.com.br/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 13 16:58:08 2007 From: marc at ena.com (Marc Powell) Date: Thu, 13 Sep 2007 09:58:08 -0500 Subject: Nagios 1.4 not send e-mails In-Reply-To: <867354.91976.qm@web56308.mail.re3.yahoo.com> References: <867354.91976.qm@web56308.mail.re3.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Rodrigo Tavares > Sent: Thursday, September 13, 2007 9:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 1.4 not send e-mails > > Hello, > > Can nagios send e-mail ? Yes. > When one service is down, for example. Yes. > My version is 1.4 That's really old. You're being left behind. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Sep 13 17:51:00 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 13 Sep 2007 11:51:00 -0400 Subject: Problems with check_nt In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105B8F531@mtlexchange.Duocom.local> References: <2FAF78EDA2D2DF4EB656ABB3339FD105B468C5@mtlexchange.Duocom.local> <46E6F9FC.5050806@op5.se> <2FAF78EDA2D2DF4EB656ABB3339FD105B8EE23@mtlexchange.Duocom.local> <2FAF78EDA2D2DF4EB656ABB3339FD105B8F531@mtlexchange.Duocom.local> Message-ID: your version number indicates that you are running NSClient++ >From your problem clarification, It sounds like the NSCLient++ is unable to access that drive letter properly. I do not know anything about NSClient++ but there was a recent post by someone on that team, try contacting them for help. as an alternative, you could try a different windows plugin, like the original NSClient, NRPE, SNMP, or NC_Net. nc_net and NSCLient (the older original one) should both require minimum reconfiguring to function. I suspect the Dirve in question may not be a standard Local Disk on that Host. so the code that tries to access it is unable to retrieve the date, but I am just speculating based on my development experience with Windows. Good Luck, Wish I could be more help. Tony ( Author of NC_Net) On 9/13/07, Antonio Pereira wrote: > > Hi, > > > > I'll try to elaborate > > > > The problem is when I scan a drive off a particular server it doesn't > work. > > > > Let's say I have 4 servers, I am scanning d: drive on all 4 servers 3 out > of the 4 will work and return the fourth one will return an error. (Return > code of 139 is out of bounds) > > > > The client version that is running on all servers is 0.2.7 > > > > I have verified that all servers is hard drives being scanned not cd > drives. > > > > *Antonio Pereira > National IT Coordinator* > > *Coordinateur National de Technologies de l'Information** > *T?l./Tel. : (514) 341-8181, ext./poste 267 > T?l?c./Fax. : (514) 341-1253 > Cell: (514) 514-444-6086 > Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 > Courriel / E-mail. : apereira at duocom.ca > > > > *Duocom Canada Inc. > 10000*, Cavendish Blvd. > Ville St. Laurent (Qu?bec) H4M 2V1 > *www.duocom.ca* > > > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *Anthony > Montibello > *Sent:* Tuesday, September 11, 2007 7:45 PM > *To:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] Problems with check_nt > > > > I am not sure I understand the problem correctly, > > > > is the error in question intermittent where it is there then not there > > or, > > every time you try that particular drive on that particular server. > > > > if the latter have you tried check_nt from the command line to test the > command before adding to your configuration. > > what is the entire error output? > > > > Did your make sure the Windows Host has that drive installed? > > for example if it is a CDROM drive it may cause an error (not sure what > error) since it does not have freespace > > > > What is the Windows client installed, > > run check_nt -v CLIENTVERSION > > > Since the different windows clients may deal with internal errors > differently it is posible that the output of a windows client is giving this > error while a different client would give a different output. > > > > Tony (Author of NC_NEt) > > > > > On 9/11/07, *Antonio Pereira* wrote: > > Hi, > > Yes I checked again. > > What I did is added other hosts selecting different drives trying c:, d:, > e: f:, etc. This differs depending on the server and I still get these > random results. It's odd. > > I even tried removing each drive and service and adding one at a time and > still the same result. > Every single server that I scan the local c: it works fine. But when I > start scanning the next drives I start getting these random results. > > I am scanning 10 servers they all have c: drive. These work fine. > > I am scanning 4 servers they all have d: drive. 1 out 4 works > > I am scanning 2 servers they have e: drive Both work > > I am scanning 2 servers thay have f: drive 1 out 2 work. > > I haven't added all the servers yet but I figure this will do for > troubleshooting purposes. > > > > Antonio Pereira > National IT Coordinator > Coordinateur National de Technologies de l'Information > T?l./Tel.: (514) 341-8181, ext./poste 267 > T?l?c./Fax.: (514) 341-1253 > Cell: (514) 514-444-6086 > Sans Frais/Toll Free: (888) 338-6266 ext./poste 267 > Courriel / E-mail.: apereira at duocom.ca > > Duocom Canada Inc. > 10000, Cavendish Blvd. > Ville St. Laurent (Qu?bec) H4M 2V1 > www.duocom.ca > > > -----Original Message----- > From: Andreas Ericsson [mailto: ae at op5.se] > Sent: Tuesday, September 11, 2007 4:27 PM > To: Antonio Pereira > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with check_nt > > Antonio Pereira wrote: > > Hello, > > > > > > > > I am experiencing an issue that I don't understand > > > > > > > > I have defined a check_nt command and I am scanning the disk space on > about 2 servers right now. 1 out of the 2 returns a result but then the2nd > will return an error message as follows > > > > > > > > (Return code of 139 is out of bounds) > > > > 139? Are you absolutely, 100% sure it's 139? It seems odd, because return > codes > are given as signed chars, which are normally not capable of handling > numbers > outside the range -128 to 127. > > It's done this way because, traditionally, programs return the additive > inverse > of the system error that caused the abnormal termination, or -1 if the > programmer > was lazy. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------ > Avis Le pr?sent message n'est destin? qu'? la personne ou ? l'entit? ? qui > il est adress? et peut contenir des renseignements de nature privil?gi?e et > confidentielle. Si le lecteur du pr?sent message n'est pas le destinataire > pr?vu ou encore la personne charg?e de remettre ce message au destinataire > pr?vu, veuillez nous aviser imm?diatement. Toute diffusion, distribution ou > reproduction des renseignements contenus dans ce message ou des documents > qui lui sont joints est strictement interdite. > ________________________________________ Notice This message is intended > only for the use of individual or entity to which it is addressed and may > contain information that is privileged and confidential. If the reader of > this message is not the intended recipient or the person responsible for > delivering the message to the intended recipient, please notify us > immediately. Any disclosure, distribution or copying of this message or the > information contained herein or attached hereto is strictly prohibited. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Thu Sep 13 17:41:18 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Thu, 13 Sep 2007 11:41:18 -0400 Subject: NSClient++ : No data was received from host In-Reply-To: <46E941B4.8030702@opservices.com.br> References: <002801c7f604$3d49d760$0900d40a@intranet.it.net> <46E941B4.8030702@opservices.com.br> Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105B8F6ED@mtlexchange.Duocom.local> Hello, Has anyone come across this I have installed this client opmonagent2.4.0.0(I had previously NSClient 1.4.8 installed). On the server I have drive c and d. It reports fine on the c but on the d I get Invalid drive(In nsclient I would get and out of bounds error). I have checked the server and there is a c and d for sure. This is odd. In windows 2003 R2 SP2 I went to the Disk Management and it lists c: and d: Nagios 2.9 Fedora 6 Any ideas From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Cristiano Ness Sent: Thursday, September 13, 2007 9:57 AM To: Marco Borsani Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSClient++ : No data was received from host Marco, We have enhanced the nsclient code with support 32/64 bits and have changed the name of the agent to opmonagent. We have fixed some bugs and are in the process of adding new features. - fixed the connection limit, it only allowed 5 connections, now it allows hundreds. - possible access violations have been fixed - new component versions have been use to compile the agent - we no longer store configuration in the registry, ini file now - opmonagent tries to auto detect the right counters to use based on a new counter.defs structure - very small memory footprint and CPU utilization Any suggestions or bug reports can be sent via our support forum at https://intranet.opservices.com.br/phpBB2/ and the agent can be downloaded from http://www.opservices.com.br/downloads/opmonagent-2.4.0.0.zip . Thanks. Marco Borsani wrote: Hi all >From last march , sometime (expecially during the night) I receive the error "No data was received from host", from some Windows 2003 server running NSClient++ (release 0.2.7 2007-03-06). I just monitor disk space, memory, cpu load or services, nothing strange. Have you got any problem like this one? Any idea to solve it? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy's new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. ________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ________________________________ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 12090 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Thu Sep 13 18:57:19 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Thu, 13 Sep 2007 12:57:19 -0400 Subject: NSClient++ : No data was received from host In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105B8F6ED@mtlexchange.Duocom.local> References: <2FAF78EDA2D2DF4EB656ABB3339FD105B8F6ED@mtlexchange.Duocom.local> Message-ID: <7F477BD26F545A4C8E4779754A38EFB3026D5AFC@PEPWMV00043.corp.pep.pvt> I don't know if this is at all helpful, but I think I've seen this a few times with NSClient++ when I've got something doing an NRPE-based check and the command is defined in NSC.ini on the remote box, but if I look closely at the command line in that file, I see that it's pointing to a local command or script that does not exist. For example, if I had the following in an NSC.ini file on the monitored host: command[foo]=C:\foo\bar\foo.pl But C:\foo\bar\foo.pl did not actually exist on that box. Mark ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Antonio Pereira Sent: Thursday, September 13, 2007 11:41 AM To: Cristiano Ness; Marco Borsani Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSClient++ : No data was received from host Hello, Has anyone come across this I have installed this client opmonagent2.4.0.0(I had previously NSClient 1.4.8 installed). On the server I have drive c and d. It reports fine on the c but on the d I get Invalid drive(In nsclient I would get and out of bounds error). I have checked the server and there is a c and d for sure. This is odd. In windows 2003 R2 SP2 I went to the Disk Management and it lists c: and d: Nagios 2.9 Fedora 6 Any ideas From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Cristiano Ness Sent: Thursday, September 13, 2007 9:57 AM To: Marco Borsani Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NSClient++ : No data was received from host Marco, We have enhanced the nsclient code with support 32/64 bits and have changed the name of the agent to opmonagent. We have fixed some bugs and are in the process of adding new features. - fixed the connection limit, it only allowed 5 connections, now it allows hundreds. - possible access violations have been fixed - new component versions have been use to compile the agent - we no longer store configuration in the registry, ini file now - opmonagent tries to auto detect the right counters to use based on a new counter.defs structure - very small memory footprint and CPU utilization Any suggestions or bug reports can be sent via our support forum at https://intranet.opservices.com.br/phpBB2/ and the agent can be downloaded from http://www.opservices.com.br/downloads/opmonagent-2.4.0.0.zip . Thanks. Marco Borsani wrote: Hi all From last march , sometime (expecially during the night) I receive the error "No data was received from host", from some Windows 2003 server running NSClient++ (release 0.2.7 2007-03-06). I just monitor disk space, memory, cpu load or services, nothing strange. Have you got any problem like this one? Any idea to solve it? Regards Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy's new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. ________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ________________________________ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 12090 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reed at reedmedia.net Thu Sep 13 19:58:25 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 13 Sep 2007 12:58:25 -0500 (CDT) Subject: disable notify-by-epager for a specific service Message-ID: I need to temporarily disable notify-by-epager for a specific service. I don't want to create new templates or contact or contactgroups. I am hoping I can just add. I was hoping I could just add: service_notification_commands notify-by-email (which is contact directive) to my service. But that is an Invalid service object directive. Any ideas? Or is the only way is to create duplicate templates, contacts, and contactgroups but without the notify-by-epager? Jeremy C. Reed ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raj at csub.edu Thu Sep 13 20:31:18 2007 From: raj at csub.edu (Russell Jackson) Date: Thu, 13 Sep 2007 11:31:18 -0700 Subject: disable notify-by-epager for a specific service In-Reply-To: References: Message-ID: <46E981F6.6020104@csub.edu> Jeremy C. Reed wrote: > I need to temporarily disable notify-by-epager for a specific service. > I don't want to create new templates or contact or contactgroups. I am > hoping I can just add. > > I was hoping I could just add: > > service_notification_commands notify-by-email > > (which is contact directive) to my service. But that is an Invalid service > object directive. > > Any ideas? Or is the only way is to create duplicate templates, contacts, > and contactgroups but without the notify-by-epager? > I've agonized over this one for years. I wound up having to create two separate contacts for everyone with phones and list them explicitly in the contact lists. This has been a major pita. As far as I know, there's no way around it. The other one is having to create one-to-one service/contact group mappings because for every different service somebody wants to be notified by phone but not email, both, or vice versa. It would be nice to be able to specify the contact list in the host/service definition directly. -- Russell A. Jackson Network Analyst California State University, Bakersfield The difference between the right word and the almost right word is the difference between lightning and the lightning bug. -- Mark Twain -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3750 bytes Desc: S/MIME Cryptographic Signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmadams at hiwaay.net Thu Sep 13 20:36:07 2007 From: cmadams at hiwaay.net (Chris Adams) Date: Thu, 13 Sep 2007 13:36:07 -0500 Subject: disable notify-by-epager for a specific service In-Reply-To: <46E981F6.6020104@csub.edu> References: <46E981F6.6020104@csub.edu> Message-ID: <20070913183607.GE1410972@hiwaay.net> Once upon a time, Russell Jackson said: > I've agonized over this one for years. I wound up having to create two > separate contacts for everyone with phones and list them explicitly in > the contact lists. This has been a major pita. As far as I know, > there's no way around it. I have to do that because I want different hours for email and paging (everybody gets an email, everybody gets paged during business hours, but only a rotating group gets paged after hours). -- Chris Adams Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joe.DeBattista at ucsf.edu Fri Sep 14 01:46:46 2007 From: Joe.DeBattista at ucsf.edu (DeBattista, Joe) Date: Thu, 13 Sep 2007 16:46:46 -0700 Subject: Adjusting time interval for max_check_attempts Message-ID: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> Hi, I running nagios 2.5 (yes, I know it's old) and I'm trying to figure out how to adjust the interval time when a host check notices a problem. I currently have my max_check_attempts in my host definition set to 10, and when that host goes down, it seems to only have a 3 second interval on its checking, so the 10 checks take only 30 seconds before switching from a SOFT state to HARD, and sending out a notification. I know there's an retry_check_interval option for service definitions, but didn't see an equivalent for the host definitions. I looked in nagios.cfg and didn't see anything there. I'd like to adjust this so that it waits about 60 seconds between each check. Thanks. Joe DeBattista UCSF, OAAIS Internet: joe.debattista at ucsf.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Sep 14 02:13:47 2007 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 13 Sep 2007 17:13:47 -0700 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> References: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> Message-ID: <20070914001347.GH11709@pmorris.usa.hp.com> On Thu, 13 Sep 2007, DeBattista, Joe wrote: > Hi, > I running nagios 2.5 (yes, I know it?s old) and I?m trying to figure out how to adjust the interval time when a host check notices a problem. I currently have my max_check_attempts in my host definition set to 10, and when that host goes down, it seems to only have a 3 second interval on its checking, so the 10 checks take only 30 seconds before switching from a SOFT state to HARD, and sending out a notification. I know there?s an retry_check_interval option for service definitions, but didn?t see an equivalent for the host definitions. I looked in nagios.cfg and didn?t see anything there. I?d like to adjust this so that it waits about 60 seconds between each check. Thanks. What you're looking to do isn't possible in Nagios 2.x. There is no way to adjust the host check interval. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 14 12:15:59 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 14 Sep 2007 12:15:59 +0200 Subject: Time period In-Reply-To: References: Message-ID: <46EA5F5F.30502@op5.se> Marc Powell wrote: > Please always respond on list. > >> -----Original Message----- >> From: Jean Frontin [mailto:frontin at irit.fr] >> Sent: Wednesday, September 12, 2007 9:31 AM >> To: Marc Powell >> Subject: Re: [Nagios-users] Time period >> >> Hello Marc, >> >> It's not exactly what you said : the machine is welle synchronized. > When I >> run the command date I obtain a nice information so I think it's rhe >> software nagios which doesn't run a good time. > > I have never seen or heard of such an issue with nagios. To the best of > my knowledge nagios uses standard time routines to determine the system > time (i.e. gettimeofday()). Is your nagios server located 2 hours off of > GMT? Is the system time reporting correctly? Timezone set correctly? > Nagios does indeed use standard time routines. They are in fact so perfectly standard that every programming language invented since 1978 has implemented a near-identical interface. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 14 12:19:57 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 14 Sep 2007 12:19:57 +0200 Subject: disable notify-by-epager for a specific service In-Reply-To: <20070913183607.GE1410972@hiwaay.net> References: <46E981F6.6020104@csub.edu> <20070913183607.GE1410972@hiwaay.net> Message-ID: <46EA604D.9080702@op5.se> Chris Adams wrote: > Once upon a time, Russell Jackson said: >> I've agonized over this one for years. I wound up having to create two >> separate contacts for everyone with phones and list them explicitly in >> the contact lists. This has been a major pita. As far as I know, >> there's no way around it. > > I have to do that because I want different hours for email and paging > (everybody gets an email, everybody gets paged during business hours, > but only a rotating group gets paged after hours). > It's very common to have to do, because paging options are generally totally different from those of the email notifications. Emails can safely be sent at night without disturbing anyones beautysleep. SMS'es and pages cannot, and generally people don't like being paged for WARNING states. So where does one draw the line? The current system works very well, assuming one accepts it from the start. It's a minor PITA to rework a perfectly good setup for it if you realize it afterwards, but the most common case is that it's set up from the start, so Nagios is clever in catering for that case. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhiilu at yahoo.com Fri Sep 14 12:20:09 2007 From: radhiilu at yahoo.com (Sekhar) Date: Fri, 14 Sep 2007 03:20:09 -0700 (PDT) Subject: Database (Oracle,MSSQL),Tomcat plugins Message-ID: <718562.21750.qm@web90501.mail.mud.yahoo.com> Hi Guys, I am looking for following plugins for my client.I have checked these in list but i am confused which plugin is working without any problems. 1) Monitor Oracle database 2) Monitor mssql database 3) Monitor Tocat server Can some one please provide me the liks for these working plugins without any problems Thanks for your help --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 14 12:45:27 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 14 Sep 2007 12:45:27 +0200 Subject: Database (Oracle,MSSQL),Tomcat plugins In-Reply-To: <718562.21750.qm@web90501.mail.mud.yahoo.com> References: <718562.21750.qm@web90501.mail.mud.yahoo.com> Message-ID: <46EA6647.6050001@op5.se> Sekhar wrote: > Hi Guys, > > I am looking for following plugins for my client.I have checked these in list but i am confused which plugin is working without any problems. > > 1) Monitor Oracle database > > 2) Monitor mssql database > > 3) Monitor Tocat server > > Can some one please provide me the liks for these working plugins without any problems > No, but if you browse through nagiosexchange.com you'll most likely find something that fits the bill to a certain extent. "without any problems" is the hard part, because those plugins were written by an admin with the need for them to do something. That "something" may not be the same as what you had in mind, so you may have to hack them up to suit your purpose better. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From josh.yost at epsiia.com Fri Sep 14 17:12:10 2007 From: josh.yost at epsiia.com (Yost, Josh) Date: Fri, 14 Sep 2007 10:12:10 -0500 Subject: Database (Oracle,MSSQL),Tomcat plugins References: <718562.21750.qm@web90501.mail.mud.yahoo.com> Message-ID: <0BBA8E623DF75D49942D130A7B74A20801CDDA@MKEXCHVS1.Mail.Fiserv.net> for monitoring tomcat (unless it's tomcat 4 which has SSL issues), you can just use the standard check_http from the Nagios plugins. - Josh ________________________________ From: nagios-users-bounces at lists.sourceforge.net on behalf of Sekhar Sent: Fri 9/14/2007 5:20 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Database (Oracle,MSSQL),Tomcat plugins Hi Guys, I am looking for following plugins for my client.I have checked these in list but i am confused which plugin is working without any problems. 1) Monitor Oracle database 2) Monitor mssql database 3) Monitor Tocat server Can some one please provide me the liks for these working plugins without any problems Thanks for your help ________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Sep 14 21:27:47 2007 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 14 Sep 2007 12:27:47 -0700 Subject: hostgroups in servicegroup definition FIXED In-Reply-To: <46E90B06.8050201@googlemail.com> References: <46E90B06.8050201@googlemail.com> Message-ID: <723504D812FBEF4F89F958B14D294EB204DFCB9A@EXCH-C1.corp.cloudmark.com> This is what I expected. This is a workaround. You're not listing hostgroup_name in the servicegroup config, you're generating the lists of hosts in a hostgroup using a script and then populating servicegroups.cfg. I would rather not have a script that does the generating, but have the hostgroup name allowed in a servicegroup config. In the meantime, I'll probably end up using a script to do this for me. Is this going to be a possibility in a future release? Define servicegroup { name blah alias blah members hostgroup_name,service } -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Thursday, September 13, 2007 3:04 AM To: Lori Adams Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] hostgroups in servicegroup definition FIXED I went and had a look at this for you since I would like for people to be able to use my servicegroup-generator for this as well and what you need is to do the following in your services.cfg or equivalent file: define service{ blah blah hostgroup_name SomeHostGroupName blah blah } firstly you must use "hostgroup_name" instead of "host_name" on the left hand side if you are using hostgroups in your service definitions. You can use both host_name and hostgroup_name on separate lines within each service definition block, I've just checked this and it works. hostgroup_name is not in the Nagios 2.x docs in the services section even though it works, but other object file definitions do contain hostgroup_name for their references and it is in the Nagios 3.x docs so it must just be a minor oversight to not have it in the service definition section of the Nagios 2.x docs. I have rewritten my servicegroup-generator.py to work with hostgroups properly now and work around the fact that Nagios does not accept hostgroups in the servicegroup file. If you download the latest version 1.3 on nagiosexchange.org it will handle this as well by expanding the hostgroups. In order to do this, it will use your hostgroup file. It defaults to hostgroups.cfg for the hostgroup file but you can specify another filename using the new -f switch. I have added a hostgroup to my services file and it seems to work well, it puts the host names that belong to the hostgroup into the servicegroup file and all works well... you can now mix and match host_name and hostgroup_name definitions in your services file and the generator will handle it and create a full working servicegroups file. The latest version is available at: http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[ p_view]=896 Let me know how it goes for you with this. Hope that helps -h Hari Sekhon Lori Adams wrote: > > This doesn't work. > > > > I get the error: > > Error: Could not find a service matching host name '' and > description ''. > > > > It appears to only want hosts. > > > > -Lori > > > > -----Original Message----- > > > > I don't use hostgroups in this way but I'm pretty sure it is possible > > because I added this to my servicegroup-generator.py (find it on > > nagiosexchange.org) at the request of another guy who emailed me. > > > > Basically, the "hostgroup, service" bit goes on the Members line the > > same way the "host, service" bit does. You're welcome to give the > > servicegroup-generator a try as well since it will generate a file full > > of servicegroups following the names of the services you have defined in > > services.cfg or equivalent. I use it to not bother writing my > > servicegroup file by hand... > > > > Let me know how you get on... > > > > Hope that helps. > > > > -h > > > > Hari Sekhon > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From slackamp at gmail.com Sat Sep 15 02:08:51 2007 From: slackamp at gmail.com (slamp slamp) Date: Fri, 14 Sep 2007 20:08:51 -0400 Subject: check_perc.pl Message-ID: <78926d250709141708h2b98caa5u34f5c5c8e38deffd@mail.gmail.com> To Matt Stanford. We just started to use your script. It doesn't seem to take into consideration when state is Learning. It throws a warning like so: ** Global Storage Alarm WARNING ** PERC Channel is OK: PERC Battery is 36: All Disks are OK: 36 means Learning. I don't know if this needs fixing or not. But it seems that this is a non-critical state. We should not be getting an alert on it? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From termx23 at gmail.com Sat Sep 15 11:34:09 2007 From: termx23 at gmail.com (Peter Edmonds) Date: Sat, 15 Sep 2007 19:34:09 +1000 Subject: Database (Oracle,MSSQL),Tomcat plugins In-Reply-To: <718562.21750.qm@web90501.mail.mud.yahoo.com> References: <718562.21750.qm@web90501.mail.mud.yahoo.com> Message-ID: <6b8cee7e0709150234t60748a27r5730125fe7574564@mail.gmail.com> On 9/14/07, Sekhar wrote: > 2) Plugin to monitor mssql database ? Install the freetds package, then use bsqldb to query your SQL2005 from the command line using a bash script. I have this setup under Groundwork Monitor Open Source and it works sensationally. I can query a SQL 2005 database, dump the results to a text file in my htdocs directory then use check_http to do a content check. echo ' -P -S -D > /usr/www/htdocs/bsqldb.output Peter Edmonds ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sun Sep 16 08:30:55 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 16 Sep 2007 02:30:55 -0400 Subject: Database (Oracle,MSSQL),Tomcat plugins In-Reply-To: <6b8cee7e0709150234t60748a27r5730125fe7574564@mail.gmail.com> References: <718562.21750.qm@web90501.mail.mud.yahoo.com> <6b8cee7e0709150234t60748a27r5730125fe7574564@mail.gmail.com> Message-ID: <46ECCD9F.1010107@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/09/07 05:34 AM, Peter Edmonds wrote: > On 9/14/07, Sekhar wrote: > >> 2) Plugin to monitor mssql database ? > > Install the freetds package, then use bsqldb to query your SQL2005 > from the command line using a bash script. I have this setup under > Groundwork Monitor Open Source and it works sensationally. I can query > a SQL 2005 database, dump the results to a text file in my htdocs > directory then use check_http to do a content check. > > echo ' -P -S > -D > /usr/www/htdocs/bsqldb.output Of even better, use the attached Perl plugin that I just wrote. It requires FreeTDS, Nagios::Plugin, DBI, DBD::Sybase and Time::HiRes. Can accept thresholds for response time and append performance data. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7M2f6dZ+Kt5BchYRAoGEAJ4p9iK9VTtEfq2nU+CYD3xOiUB+0gCfYyj8 tqfAWpKoG7smjODCkHhvzpg= =sN10 -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: check_mssql.pl Type: application/x-perl Size: 4963 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_mssql.pl.sig Type: application/pgp-signature Size: 65 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roy.Marantz at deshaw.com Sun Sep 16 16:47:10 2007 From: Roy.Marantz at deshaw.com (Marantz, Roy) Date: Sun, 16 Sep 2007 10:47:10 -0400 Subject: Nagios processes hang Message-ID: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB29D@mailnyc2.nyc.deshaw.com> I'm running Nagios 2.8 with around 1400 hosts and around 14000 services defined. I have about 700 active service and the rest come in via nsca. My problem has a few symptoms: 1) I collect defunct Nagios processes, around 300 per day 2) the command pipe stops getting read so nsca is dumping data to its dump file 3) active service checks have very long (hours) latency These all sound like the same problem to me, but I don't know how to diagnose it. Any help would be appreciated. I have run nagios -s and it doesn't suggest anything. I'm using check_fping for host checks and my remaining active service checks. Attached is the output from nagios -v and my nagios.cfg. Thanks in advance for any help. Roy -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-v Type: application/octet-stream Size: 1644 bytes Desc: nagios-v URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios.cfg Type: application/octet-stream Size: 21956 bytes Desc: nagios.cfg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From munroes at cawinet.com Sun Sep 16 23:28:21 2007 From: munroes at cawinet.com (Munroe) Date: Sun, 16 Sep 2007 17:28:21 -0400 Subject: notifications Message-ID: <46ED9FF5.8090307@cawinet.com> I am having trouble implementing a specific use case. I have some "important" hosts where if during business hours and it goes down I would like one avenue of notification, but during non-business I would like a different notification, however hosts only accept one notification_period, and one contact_groups. Any help would be appreciated. - Munroe ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 17 00:45:47 2007 From: ae at op5.se (Andreas Ericsson) Date: Mon, 17 Sep 2007 00:45:47 +0200 Subject: Nagios processes hang In-Reply-To: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB29D@mailnyc2.nyc.deshaw.com> References: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB29D@mailnyc2.nyc.deshaw.com> Message-ID: <46EDB21B.6050102@op5.se> Marantz, Roy wrote: > I'm running Nagios 2.8 with around 1400 hosts and around 14000 services > defined. I have about 700 active service and the rest come in via nsca. > > My problem has a few symptoms: > 1) I collect defunct Nagios processes, around 300 per day > 2) the command pipe stops getting read so nsca is dumping data to its > dump file > 3) active service checks have very long (hours) latency > > These all sound like the same problem to me, but I don't know how to > diagnose it. Any help would be appreciated. I have run nagios -s and > it doesn't suggest anything. I'm using check_fping for host checks and > my remaining active service checks. Attached is the output from nagios > -v and my nagios.cfg. Thanks in advance for any help. The trouble is the FIFO, which holds a maximum of 4096 bytes by default, meaning it quickly becomes a bottleneck. Nagios tries to empty it as soon as there's data available on it, but fails to keep up with the data-spam from nsca. You could try re-nicing the nagios process, which might make it capable of staying ahead of nsca. Otherwise you could try modifying the FIFO size and recompile the kernel. Alternatively, patch nagios and nsca to use a unix socket and use setsockopt() to up the read/write buffer on that socket to 256 KiB. The fourth, and possibly tricksiest alternative, is to rewrite nsca as a neb-module, have it run in a separate thread and update nagios' status data directly. This last method will scale best but is by far the most difficult. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roy.Marantz at deshaw.com Mon Sep 17 01:34:14 2007 From: Roy.Marantz at deshaw.com (Marantz, Roy) Date: Sun, 16 Sep 2007 19:34:14 -0400 Subject: Nagios processes hang In-Reply-To: <46EDB21B.6050102@op5.se> References: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB29D@mailnyc2.nyc.deshaw.com> <46EDB21B.6050102@op5.se> Message-ID: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB2A1@mailnyc2.nyc.deshaw.com> I was afraid it was the FIFO. I've already tried renicing the nagios process, but that didn't help enough. I'm doing this on Solaris 10 so recompiling the kernel isn't an option, but I'll check if there is a way to increase the FIFO size. Otherwise I'll have to do the nsca & nagios patch changing the FIFO to a Unix Socket. I don't suppose anyone has that patch already? If so I'd appreciate getting a pointer to it. I'll also see if using nscafe makes sense to. BTW, I think writing a neb replacement for nsca will take more time than I've got. Thanks. Roy -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Sunday, September 16, 2007 6:46 PM To: Marantz, Roy Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Nagios processes hang Marantz, Roy wrote: > I'm running Nagios 2.8 with around 1400 hosts and around 14000 services > defined. I have about 700 active service and the rest come in via nsca. > > My problem has a few symptoms: > 1) I collect defunct Nagios processes, around 300 per day > 2) the command pipe stops getting read so nsca is dumping data to its > dump file > 3) active service checks have very long (hours) latency > > These all sound like the same problem to me, but I don't know how to > diagnose it. Any help would be appreciated. I have run nagios -s and > it doesn't suggest anything. I'm using check_fping for host checks and > my remaining active service checks. Attached is the output from nagios > -v and my nagios.cfg. Thanks in advance for any help. The trouble is the FIFO, which holds a maximum of 4096 bytes by default, meaning it quickly becomes a bottleneck. Nagios tries to empty it as soon as there's data available on it, but fails to keep up with the data-spam from nsca. You could try re-nicing the nagios process, which might make it capable of staying ahead of nsca. Otherwise you could try modifying the FIFO size and recompile the kernel. Alternatively, patch nagios and nsca to use a unix socket and use setsockopt() to up the read/write buffer on that socket to 256 KiB. The fourth, and possibly tricksiest alternative, is to rewrite nsca as a neb-module, have it run in a separate thread and update nagios' status data directly. This last method will scale best but is by far the most difficult. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 17 04:12:06 2007 From: marc at ena.com (Marc Powell) Date: Sun, 16 Sep 2007 21:12:06 -0500 Subject: notifications In-Reply-To: <46ED9FF5.8090307@cawinet.com> References: <46ED9FF5.8090307@cawinet.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Munroe > Sent: Sunday, September 16, 2007 4:28 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notifications > > I am having trouble implementing a specific use case. I have some > "important" hosts where if during business hours and it goes down I > would like one avenue of notification, but during non-business I would > like a different notification, however hosts only accept one > notification_period, and one contact_groups. Any help would be > appreciated. Multiple contact_groups can be specified in host{} definitions -- http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host "contact_groups: This is a list of the short names of the contact groups that should be notified whenever there are problems (or recoveries) with this host. Multiple contact groups should be separated by commas." -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntserafica at yahoo.com Mon Sep 17 05:02:12 2007 From: ntserafica at yahoo.com (Nelson Serafica) Date: Sun, 16 Sep 2007 20:02:12 -0700 (PDT) Subject: Nagios Interface not updating or delayed Message-ID: <22866.8212.qm@web62402.mail.re1.yahoo.com> I notice in my Nagios that it doesn't refresh sometime. I added a new host (foo) and its services (ping), restart nagios and check the GUI if all are pending. The problem is sometimes I see the foo hosts but sometimes isn't. I already clear cache in my Windows XP but still it doesn't showed up. I also reload na Nagios config. Is there a thing I need to do to avoid this? ____________________________________________________ Tired of spam? Yahoo! Mail has the best spam protection around http://ph.mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Mon Sep 17 11:21:30 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 17 Sep 2007 11:21:30 +0200 Subject: Nagios Interface not updating or delayed In-Reply-To: <22866.8212.qm@web62402.mail.re1.yahoo.com> References: <22866.8212.qm@web62402.mail.re1.yahoo.com> Message-ID: <46EE471A.3050005@its-lehmann.de> Hi, 17.09.2007 05:02,, Nelson Serafica wrote:: > > I notice in my Nagios that it doesn't refresh sometime. I added a new > host (foo) and its services (ping), restart nagios and check the GUI if > all are pending. The problem is sometimes I see the foo hosts but > sometimes isn't. I already clear cache in my Windows XP but still it > doesn't showed up. I also reload na Nagios config. > > Is there a thing I need to do to avoid this? This looks like you've got multiple instances of Nagios running. Stop Nagios, wait some time, see if Nagios processes are still around. If there are, kill them. Then start Nagios as you usually do. Arno > Tired of spam? Yahoo! Mail has the best spam protection around > http://ph.mail.yahoo.com > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Sep 17 13:04:42 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 17 Sep 2007 12:04:42 +0100 Subject: hostgroups in servicegroup definition FIXED In-Reply-To: <723504D812FBEF4F89F958B14D294EB204DFCB9A@EXCH-C1.corp.cloudmark.com> References: <723504D812FBEF4F89F958B14D294EB204DFCB9A@EXCH-C1.corp.cloudmark.com> Message-ID: <46EE5F4A.20108@googlemail.com> I've had a look at the changelog and it doesn't seem to be something that has been done in the new 3.x series. Also, I'm not part of the development team for nagios, just a user who like writing plugins and stuff to get my work done, so I can't say really if they intend to support this, as I didn't see a roadmap or anything of intended features/changes. Perhaps you'd be best off asking in nagios-devel mailing list... making it a feature request or something. I'm sure it's not hard to do and they probably just need a reason to do it. You could be that reason. In the meantime I've started using hostgroups more now and in fact I find that my servicegroup generator works nicely so I'm not in any real rush for this now. It doesn't really matter from my perspective if they add it now since I never manually bother with servicegroup now, it's done automatically by script, it works and I don't have to edit it so from an admin perspective, there isn't much difference, especially since you don't need to manually add a hostgroup to a servicegroup since any more either way. Works here. I'd be curious to know if there is any reason why you must have hostgroups in the members line? Isn't the end result the same? Perhaps it's something you need which relies on the semantics of the format of the members line containing hostgroups rather than hosts, like you're grepping some text out for a report or something? -h Hari Sekhon Lori Adams wrote: > This is what I expected. This is a workaround. You're not listing > hostgroup_name in the servicegroup config, you're generating the lists > of hosts in a hostgroup using a script and then populating > servicegroups.cfg. > > I would rather not have a script that does the generating, but have the > hostgroup name allowed in a servicegroup config. In the meantime, I'll > probably end up using a script to do this for me. > > Is this going to be a possibility in a future release? > > Define servicegroup { > name blah > alias blah > members hostgroup_name,service > } > > > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Thursday, September 13, 2007 3:04 AM > To: Lori Adams > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] hostgroups in servicegroup definition FIXED > > I went and had a look at this for you since I would like for people to > be able to use my servicegroup-generator for this as well and what you > need is to do the following in your services.cfg or equivalent file: > > define service{ > blah > blah > hostgroup_name SomeHostGroupName > blah > blah > } > > firstly you must use "hostgroup_name" instead of "host_name" on the left > > hand side if you are using hostgroups in your service definitions. > > You can use both host_name and hostgroup_name on separate lines within > each service definition block, I've just checked this and it works. > > hostgroup_name is not in the Nagios 2.x docs in the services section > even though it works, but other object file definitions do contain > hostgroup_name for their references and it is in the Nagios 3.x docs so > it must just be a minor oversight to not have it in the service > definition section of the Nagios 2.x docs. > > > I have rewritten my servicegroup-generator.py to work with hostgroups > properly now and work around the fact that Nagios does not accept > hostgroups in the servicegroup file. > > If you download the latest version 1.3 on nagiosexchange.org it will > handle this as well by expanding the hostgroups. In order to do this, it > > will use your hostgroup file. It defaults to hostgroups.cfg for the > hostgroup file but you can specify another filename using the new -f > switch. > > I have added a hostgroup to my services file and it seems to work well, > it puts the host names that belong to the hostgroup into the > servicegroup file and all works well... you can now mix and match > host_name and hostgroup_name definitions in your services file and the > generator will handle it and create a full working servicegroups file. > > The latest version is available at: > > http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[ > p_view]=896 > > Let me know how it goes for you with this. > > > Hope that helps > > -h > > Hari Sekhon > > > > Lori Adams wrote: > >> This doesn't work. >> >> >> >> I get the error: >> >> Error: Could not find a service matching host name '' and >> description ''. >> >> >> >> It appears to only want hosts. >> >> >> >> -Lori >> >> >> >> -----Original Message----- >> >> >> >> I don't use hostgroups in this way but I'm pretty sure it is possible >> >> because I added this to my servicegroup-generator.py (find it on >> >> nagiosexchange.org) at the request of another guy who emailed me. >> >> >> >> Basically, the "hostgroup, service" bit goes on the Members line the >> >> same way the "host, service" bit does. You're welcome to give the >> >> servicegroup-generator a try as well since it will generate a file >> > full > >> of servicegroups following the names of the services you have defined >> > in > >> services.cfg or equivalent. I use it to not bother writing my >> >> servicegroup file by hand... >> >> >> >> Let me know how you get on... >> >> >> >> Hope that helps. >> >> >> >> -h >> >> >> >> Hari Sekhon >> >> >> >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Mon Sep 17 16:10:06 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Mon, 17 Sep 2007 11:10:06 -0300 Subject: OpMon Agent 2.4.0.0 released Message-ID: <25765.3872984976$1190038265@news.gmane.org> Just to let you know we have released a new OpMon Agent version with some bug fixes. Version 2.4.0.0 is available for download at: http://www.opservices.com.br/index.php?option=com_content&task=view&id=54&It emid=54 Fixes: - Fix the parser to detect just one IP address field. - Fix the parser to allow spaces in the IP addresses field. - Fix the parser to allow * in the the IP address field. _________________________________________________ Dario B. Bestetti OpServices R. Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile 55(51)81518218 Fax 55(51)30613588 Email dario.bestetti at opservices .com.br "In God we trust, the rest we monitor ..." _________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mboeckman at servicemagic.com Mon Sep 17 18:37:18 2007 From: mboeckman at servicemagic.com (Boeckman, Matthew) Date: Mon, 17 Sep 2007 10:37:18 -0600 Subject: Host/service acknowledgement template? Message-ID: <67CC1D2D52F85747ADE6BC83A4A7A76402C2221C@Apollo.servicemagic.com> Hello list! Is there a way to configure a custom notification email for acknowledgements? What I have currently is a lightly modified version of notify-host-by-email and notify-service-by-email to include the ACK macro's: define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\n $HOSTACKAUTHOR$ ack'd the alarm with message $HOSTACKCOMMENT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } This works, but of course my text "ack'd the alarm with message" appears in all types of notifications with nothing in the macro fields, and for ACK's it works just fine. I'm wondering if there is something do-able like notify-ack-by-email that would only function on NOTIFICATIONTYPE=ACKNOWLEDGEMENT and thus use a specific printf statement about the ack. I see how I could configure another command definition and include it, but I'm not clear how to do the IF-THEN type logic. Any pointers are appreciated, thanks! Matthew ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.segura at cabelas.com Mon Sep 17 18:50:16 2007 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Mon, 17 Sep 2007 10:50:16 -0600 Subject: Host/service acknowledgement template? In-Reply-To: <67CC1D2D52F85747ADE6BC83A4A7A76402C2221C@Apollo.servicemagic.com> References: <67CC1D2D52F85747ADE6BC83A4A7A76402C2221C@Apollo.servicemagic.com> Message-ID: <1190047816.6784.33.camel@sidhqmis4grdv91> http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1[p_view]=627 There is an example in the documentation on how to do exactly what you want... #IF NOTIFICATIONTYPE=ACKNOWLEDGEMENT This problem has been acknowledged by $SERVICEACKAUTHOR$: $SERVICEACKCOMMENT$ #ELSE #IF NOTIFICATIONNUMBER>=5 #IF NOTIFICATIONTYPE!=RECOVERY *** PLEASE ACKNOWLEDGE THIS PROBLEM IF YOU ARE WORKING ON IT #ENDIF #ENDIF #ENDIF The package comes with a couple of example templates for you to modify if you don't want to create your own from scratch. Let me know if you have any questions. On Mon, 2007-09-17 at 10:37 -0600, Boeckman, Matthew wrote: > Hello list! > > Is there a way to configure a custom notification email for > acknowledgements? What I have currently is a lightly modified version of > notify-host-by-email and notify-service-by-email to include the ACK > macro's: > > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\n > $HOSTACKAUTHOR$ ack'd the alarm with message > $HOSTACKCOMMENT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** > $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" > $CONTACTEMAIL$ > } > > This works, but of course my text "ack'd the alarm with message" appears > in all types of notifications with nothing in the macro fields, and for > ACK's it works just fine. > > I'm wondering if there is something do-able like notify-ack-by-email > that would only function on NOTIFICATIONTYPE=ACKNOWLEDGEMENT and thus > use a specific printf statement about the ack. I see how I could > configure another command definition and include it, but I'm not clear > how to do the IF-THEN type logic. > > Any pointers are appreciated, thanks! > > Matthew > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raj at csub.edu Mon Sep 17 21:31:52 2007 From: raj at csub.edu (Russell Jackson) Date: Mon, 17 Sep 2007 12:31:52 -0700 Subject: Host/service acknowledgement template? In-Reply-To: <67CC1D2D52F85747ADE6BC83A4A7A76402C2221C@Apollo.servicemagic.com> References: <67CC1D2D52F85747ADE6BC83A4A7A76402C2221C@Apollo.servicemagic.com> Message-ID: <46EED628.2080008@csub.edu> Boeckman, Matthew wrote: > Hello list! > > Is there a way to configure a custom notification email for > acknowledgements? What I have currently is a lightly modified version of > notify-host-by-email and notify-service-by-email to include the ACK > macro's: > > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\n > $HOSTACKAUTHOR$ ack'd the alarm with message > $HOSTACKCOMMENT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** > $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" > $CONTACTEMAIL$ > } > > This works, but of course my text "ack'd the alarm with message" appears > in all types of notifications with nothing in the macro fields, and for > ACK's it works just fine. > > I'm wondering if there is something do-able like notify-ack-by-email > that would only function on NOTIFICATIONTYPE=ACKNOWLEDGEMENT and thus > use a specific printf statement about the ack. I see how I could > configure another command definition and include it, but I'm not clear > how to do the IF-THEN type logic. > > Any pointers are appreciated, thanks! > I use an external sh script (see attachment). It's called without arguments (taking advantage of nagios 2.x exporting of macros to the environment) like so: define command { command_name notify-by-email command_line $USER3$/notify-by-email.sh } I use the same script for all notification and generate the contents based on the presence of certain macros -> env variables. The script could probably be better, but it's working for me ATM. -- Russell A. Jackson Network Analyst California State University, Bakersfield Don't make a big deal out of everything; just deal with everything. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: notify-by-email.sh URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3750 bytes Desc: S/MIME Cryptographic Signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mckell at us.ibm.com Mon Sep 17 22:11:25 2007 From: mckell at us.ibm.com (Sean McKell) Date: Mon, 17 Sep 2007 14:11:25 -0600 Subject: How do acks affect notifications? Message-ID: Hello, How do acks (host/service) affect notifications? I've found that when I did not ack a problem, when the host recovered, a notification was generated. But, when the problem was ack'ed, only a host ack (down) notification was sent; no notification was sent when the host went back up. Also, I look at the notifications list, and note that the rows with 'ack (down)' are gray, while other 'host down' notifs are red, and 'host up' ones are green. Thanks for any help on this. _____________________ Sean McKell -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scubacuda at gmail.com Tue Sep 18 00:52:55 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Mon, 17 Sep 2007 15:52:55 -0700 Subject: cannot restart Nagios using webgui on NagiosQL Message-ID: <2b7af7c40709171552o4a059846l678278c2ca9f8730@mail.gmail.com> In the NagiosQL web GUI, I get the following error when I try to 'restart Nagios services' on my CentOS 4.5 box: "Nagios command file not found or no rights to write!" I suspect that this has to do with the nagios.pid or nagios.cmd permissions and/or a wrong file path in /var/www/html/nagiosQL/config/settings.ini or /etc/nagios/nagios.cfg, but everything I've checked in this area seems ok. Anything else I might check? Or should I check these things a bit more carefully? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scubacuda at gmail.com Tue Sep 18 01:44:30 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Mon, 17 Sep 2007 16:44:30 -0700 Subject: how to make "host commands" in NagiosQL? Message-ID: <2b7af7c40709171644q364b091dq24ed96780140b05d@mail.gmail.com> I recently installed NagiosQL and am looking to create hosts, services, and contacts so that I can do all of the Nagios checks. The problem, however, is that in order to make a host or service, I have to have a contact. But in order to make a contact, I have to have a "host command". What is this host command? I look all throughout NagiosQL's setup, but can't find anything. The only way that I can seem to get it to work is to manually create a contacts.cfg file and then import it into NagiosQL using the little import tool. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nicholas.Magers at lands.nsw.gov.au Tue Sep 18 05:44:08 2007 From: Nicholas.Magers at lands.nsw.gov.au (Nicholas Magers) Date: Tue, 18 Sep 2007 13:44:08 +1000 Subject: NDOUtils programstatus table is empty. Message-ID: <818F31EB6E5F99459894BE97B94639D5015FE379@SRV-QS-MAIL5.lands.nsw> I found that when I enabled check_external_commands=1 in nagios.cfg it started to populate the NDOUtils table 'programstatus'. Nagvis was working fine after that. *************************************************************** This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the Department of Lands. This email message has been swept by MIMEsweeper for the presence of computer viruses. *************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nedo72 at gmail.com Tue Sep 18 06:05:06 2007 From: nedo72 at gmail.com (Nedim Bicic) Date: Tue, 18 Sep 2007 00:05:06 -0400 Subject: Upgrade or No upgrade Message-ID: <7abcf48e0709172105k9c87942gfed824d72e0d63cf@mail.gmail.com> Hi all i have nagios 2.4 i was wondering if i should upgrade my nagios to 2.9 the newest version ? I am monitoring currently 800 hosts just ping service and dependecnies is it worth upgrading i mean i dont find the currnt version i am running problamatic what u guys think> thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 18 10:22:48 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 18 Sep 2007 10:22:48 +0200 Subject: Upgrade or No upgrade In-Reply-To: <7abcf48e0709172105k9c87942gfed824d72e0d63cf@mail.gmail.com> References: <7abcf48e0709172105k9c87942gfed824d72e0d63cf@mail.gmail.com> Message-ID: <46EF8AD8.8080907@op5.se> Nedim Bicic wrote: > Hi all i have nagios 2.4 i was wondering if i should upgrade my nagios to > 2.9 the newest version ? > > I am monitoring currently 800 hosts just ping service and dependecnies is it > worth upgrading i mean i dont find the currnt version i am running > problamatic what u guys think> > If it's not broken, don't fix it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Tue Sep 18 10:23:25 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Tue, 18 Sep 2007 09:23:25 +0100 Subject: cannot restart Nagios using webgui on NagiosQL In-Reply-To: <2b7af7c40709171552o4a059846l678278c2ca9f8730@mail.gmail.com> References: <2b7af7c40709171552o4a059846l678278c2ca9f8730@mail.gmail.com> Message-ID: <6546343904687E41B19D8E5A26AB9F530157E7D3@E03MVB2-UKBR.domain1.systemhost.net> Hi Rogelio, Are you absolutely certain that the permissions on //var/rw are set correctly? Incorrect permissions on the rw directory cause this kind off error. Re-read the section off the Nagios documentation about External Command file Permissions. Regards Tom -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Rogelio Bastardo Sent: 17 September 2007 23:53 To: Nagios Users mailinglist Subject: [Nagios-users] cannot restart Nagios using webgui on NagiosQL In the NagiosQL web GUI, I get the following error when I try to 'restart Nagios services' on my CentOS 4.5 box: "Nagios command file not found or no rights to write!" I suspect that this has to do with the nagios.pid or nagios.cmd permissions and/or a wrong file path in /var/www/html/nagiosQL/config/settings.ini or /etc/nagios/nagios.cfg, but everything I've checked in this area seems ok. Anything else I might check? Or should I check these things a bit more carefully? ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 18 10:45:31 2007 From: m.borsani at it.net (Marco Borsani) Date: Tue, 18 Sep 2007 10:45:31 +0200 Subject: Nagios server upgrade from 1.4.1 to 2.9 Message-ID: <000701c7f9d0$458cd600$0900d40a@intranet.it.net> Hi all Actually I am monitoring about 400 hosts and more than 1000 services with Nagios 1.4.1 We have implemented a hard web structure to give possibilities to modify Nagios hosts/services from remote site, without sintax problem risks. I wonder how I could migrate my linux server from Nagios 1.4.1 to Nagios 2.9 (or 3.0) safely. Is there a procedure to follow ? Thanks Marco Borsani Technical Operation tel.: +390104310115 e-fax: +390683175950 * m.borsani at it.net ITnet S.r.l. Direzione e Coordinamento di Weather Investments S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio ? vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al pi? presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy?s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 18 10:51:52 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 18 Sep 2007 10:51:52 +0200 Subject: Nagios server upgrade from 1.4.1 to 2.9 In-Reply-To: <000701c7f9d0$458cd600$0900d40a@intranet.it.net> References: <000701c7f9d0$458cd600$0900d40a@intranet.it.net> Message-ID: <46EF91A8.1000102@op5.se> Marco Borsani wrote: > Hi all > > Actually I am monitoring about 400 hosts and more than 1000 services with > Nagios 1.4.1 > > We have implemented a hard web structure to give possibilities to modify > Nagios hosts/services from remote site, without sintax problem risks. > > I wonder how I could migrate my linux server from Nagios 1.4.1 to Nagios 2.9 > (or 3.0) safely. > Is there a procedure to follow ? > Sort of, yes. Logs and configuration needs to be updated. I wrote a couple of scripts for doing just that once, but I'm afraid they're lost to me now. I know I submitted them to the list though, and many people reported they had used them successfully. Someone (I've forgotten who) also posted a patch to one of the scripts which fixed some minor issue. I'd suggest going through the mailing list archives from around the time when nagios-2.05b came out to find the original scripts. When you have them, search the archives from 2007 for the names of the scripts and you should be able to find the patch. It's not a big panic if you don't find the patch, as the scripts work withouth them. I've forgotten what it was it fixed, but afair it wasn't anything show- stopping. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Tue Sep 18 12:46:39 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Tue, 18 Sep 2007 11:46:39 +0100 (BST) Subject: check_telnet? Message-ID: <93914.56396.qm@web26211.mail.ukl.yahoo.com> Hi Is there a "check_telnet" to see if the server can be telnet'ed? thanks ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.welsh at bt.com Tue Sep 18 13:03:23 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Tue, 18 Sep 2007 12:03:23 +0100 Subject: check_telnet? In-Reply-To: <93914.56396.qm@web26211.mail.ukl.yahoo.com> References: <93914.56396.qm@web26211.mail.ukl.yahoo.com> Message-ID: <6546343904687E41B19D8E5A26AB9F53015E6DA4@E03MVB2-UKBR.domain1.systemhost.net> Use check_tcp and specify the port and any other switches you want -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer Sent: 18 September 2007 11:47 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_telnet? Hi Is there a "check_telnet" to see if the server can be telnet'ed? thanks ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Tue Sep 18 13:49:02 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Tue, 18 Sep 2007 12:49:02 +0100 (BST) Subject: check_telnet? In-Reply-To: <6546343904687E41B19D8E5A26AB9F53015E6DA4@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F53015E6DA4@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <195446.52357.qm@web26214.mail.ukl.yahoo.com> thank you. --- tom.welsh at bt.com wrote: > Use check_tcp and specify the port and any other > switches you want > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] > On Behalf Of Melanie > Pfefer > Sent: 18 September 2007 11:47 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_telnet? > > Hi > > Is there a "check_telnet" to see if the server can > be telnet'ed? > > thanks > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try > it now. > http://uk.answers.yahoo.com/ > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft Defy > all challenges. > Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 13:57:43 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 06:57:43 -0500 Subject: Nagios server upgrade from 1.4.1 to 2.9 In-Reply-To: <46EF91A8.1000102@op5.se> References: <46EF91A8.1000102@op5.se> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andreas Ericsson > Sent: Tuesday, September 18, 2007 3:52 AM > To: Marco Borsani > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios server upgrade from 1.4.1 to 2.9 > > Marco Borsani wrote: > > I wonder how I could migrate my linux server from Nagios 1.4.1 to Nagios > 2.9 > > (or 3.0) safely. > > Is there a procedure to follow ? > > > > Sort of, yes. Logs and configuration needs to be updated. I wrote a couple > of > scripts for doing just that once, but I'm afraid they're lost to me now. I Originals are at http://oss.op5.se/nagios/ (12to20comments.php.gz and object_config_fix.php.gz). > know I submitted them to the list though, and many people reported they > had > used them successfully. > > Someone (I've forgotten who) also posted a patch to one of the scripts > which > fixed some minor issue. Not sure about the patch. I know I had to make some changes to object_config_fix.php for my environment but those changes are long since lost to me. All-in-all they were very helpful. Thanks again Andreas. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 18 14:06:23 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 18 Sep 2007 14:06:23 +0200 Subject: Nagios server upgrade from 1.4.1 to 2.9 In-Reply-To: References: Message-ID: <46EFBF3F.20908@op5.se> Marc Powell wrote: > >> Marco Borsani wrote: > >>> I wonder how I could migrate my linux server from Nagios 1.4.1 to > Nagios >> 2.9 >>> (or 3.0) safely. >>> Is there a procedure to follow ? >>> >> Sort of, yes. Logs and configuration needs to be updated. I wrote a > couple >> of >> scripts for doing just that once, but I'm afraid they're lost to me > now. I > > Originals are at http://oss.op5.se/nagios/ (12to20comments.php.gz and > object_config_fix.php.gz). > Oh goodie. I didn't know that site was still up and running :) >> >> Someone (I've forgotten who) also posted a patch to one of the scripts >> which >> fixed some minor issue. > > Not sure about the patch. I know I had to make some changes to > object_config_fix.php for my environment but those changes are long > since lost to me. All-in-all they were very helpful. Thanks again > Andreas. > np -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 14:09:14 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 07:09:14 -0500 Subject: check_telnet? In-Reply-To: <93914.56396.qm@web26211.mail.ukl.yahoo.com> References: <93914.56396.qm@web26211.mail.ukl.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer > Sent: Tuesday, September 18, 2007 5:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_telnet? > > Hi > > Is there a "check_telnet" to see if the server can be > telnet'ed? 99% of the time, Google will tell you if you search for 'nagios check_something' (i.e. 'nagios check_telnet') or 'nagios check something'. With very few exceptions, you're almost certainly not the first to need to check whatever it is. Google should really be the first place checked for any question. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From detrak at caere.fr Tue Sep 18 15:46:39 2007 From: detrak at caere.fr (Detrak) Date: Tue, 18 Sep 2007 15:46:39 +0200 Subject: dont check service when host down In-Reply-To: References: Message-ID: Hi, I'm using nagios to check a lot of host and service. When a host is coming down, nagios continue to check the service attached to this host. It's consume a lot of performance, it's trivial to know that when a host is down, we dont get a response from the service associate... how can I fix that ? please Best regards, Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 16:08:23 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 09:08:23 -0500 Subject: dont check service when host down In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Detrak > Sent: Tuesday, September 18, 2007 8:47 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] dont check service when host down > > Hi, > > > I'm using nagios to check a lot of host and service. When a host is coming > down, nagios continue to check the service attached to this host. It's > consume a lot of performance, it's trivial to know that when a host is > down, we dont get a response from the service associate... > > how can I fix that ? please Nagios does what you're asking for by default if you have a host check_command that correctly determines the status of the host. Check the first two paragraphs of http://nagios.sourceforge.net/docs/2_0/networkreachability.html. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Tue Sep 18 16:23:06 2007 From: ton.voon at altinity.com (Ton Voon) Date: Tue, 18 Sep 2007 15:23:06 +0100 Subject: dont check service when host down In-Reply-To: References: Message-ID: On 18 Sep 2007, at 15:08, Marc Powell wrote: >> I'm using nagios to check a lot of host and service. When a host is > coming >> down, nagios continue to check the service attached to this host. >> It's >> consume a lot of performance, it's trivial to know that when a >> host is >> down, we dont get a response from the service associate... >> >> how can I fix that ? please > > Nagios does what you're asking for by default if you have a host > check_command that correctly determines the status of the host. > > Check the first two paragraphs of > http://nagios.sourceforge.net/docs/2_0/networkreachability.html. Marc, that's not strictly what Olivier is asking for. Nagios will silence alarms if the host is down, but will continue checking the service, regardless of the state of the host. Olivier, you could probably stop the service check by using dependencies (http://nagios.sourceforge.net/docs/2_0/ dependencies.html), but there's a lot more configuration required. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Sep 18 16:35:19 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 18 Sep 2007 16:35:19 +0200 Subject: dont check service when host down In-Reply-To: References: Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E159A@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Ton Voon > Sent: 18 September 2007 16:23 > To: Marc Powell > Cc: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > > On 18 Sep 2007, at 15:08, Marc Powell wrote: > > >> I'm using nagios to check a lot of host and service. When a host is > > coming > >> down, nagios continue to check the service attached to this host. > >> It's > >> consume a lot of performance, it's trivial to know that when a > >> host is > >> down, we dont get a response from the service associate... > >> > >> how can I fix that ? please > > > > Marc, that's not strictly what Olivier is asking for. Nagios will > silence alarms if the host is down, but will continue checking the > service, regardless of the state of the host. > > Olivier, you could probably stop the service check by using > dependencies (http://nagios.sourceforge.net/docs/2_0/ > dependencies.html), but there's a lot more configuration required. > Actually, I thought Nagios worked in the way that Marc described. If you have a NOC which is acknowledging alerts, actively disabling service checks then I suppose this isn't too much of a problem. Might be nice to see more configurability with regard to the way Nagios works, I doubt we will see any changes into a stable version for quite a while though. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 16:43:27 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 09:43:27 -0500 Subject: dont check service when host down In-Reply-To: References: Message-ID: > -----Original Message----- > From: Ton Voon [mailto:ton.voon at altinity.com] > Sent: Tuesday, September 18, 2007 9:23 AM > To: Marc Powell > Cc: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > > On 18 Sep 2007, at 15:08, Marc Powell wrote: > > >> I'm using nagios to check a lot of host and service. When a host is > > coming > >> down, nagios continue to check the service attached to this host. > >> It's > >> consume a lot of performance, it's trivial to know that when a > >> host is > >> down, we dont get a response from the service associate... > >> > >> how can I fix that ? please > > > > Nagios does what you're asking for by default if you have a host > > check_command that correctly determines the status of the host. > > > > Check the first two paragraphs of > > http://nagios.sourceforge.net/docs/2_0/networkreachability.html. > > Marc, that's not strictly what Olivier is asking for. Nagios will > silence alarms if the host is down, but will continue checking the > service, regardless of the state of the host. True true, I misread. As you indicated, service dependencies are probably his best bet to actually stop most of the service checks on a host. He'd need to leave at least one active to be depended upon and to let nagios know when the host has recovered. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scubacuda at gmail.com Tue Sep 18 16:45:09 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Tue, 18 Sep 2007 07:45:09 -0700 Subject: how to make "host commands" in NagiosQL? In-Reply-To: <2b7af7c40709171644q364b091dq24ed96780140b05d@mail.gmail.com> References: <2b7af7c40709171644q364b091dq24ed96780140b05d@mail.gmail.com> Message-ID: <2b7af7c40709180745w795cf1c6r423c8c2f4444fab@mail.gmail.com> On 9/17/07, Rogelio Bastardo wrote: > > I recently installed NagiosQL and am looking to create hosts, > services, and contacts so that I can do all of the Nagios checks. > > The problem, however, is that in order to make a host or service, I > have to have a contact. But in order to make a contact, I have to > have a "host command". What is this host command? I look all > throughout NagiosQL's setup, but can't find anything. > > The only way that I can seem to get it to work is to manually create a > contacts.cfg file and then import it into NagiosQL using the little > import tool. For what it's worth, here is a NagiosQL troubleticket on the issue: http://www.nagiosql.org/ticket/55 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 18 17:18:26 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 18 Sep 2007 16:18:26 +0100 Subject: dont check service when host down In-Reply-To: References: Message-ID: <46EFEC42.6040801@googlemail.com> Ton, This sounds like a great candidate for scalability to not check services on downed hosts? On a large installation with several hosts down, if the service check intervals for broken services increases (as I usually configure it to do) then this could degrade the nagios server. You would be forced to not have increased service check intervals for downed services. It would be best if nagios actually did allow configuration of an option to not check services for downed hosts. I'm not sure if this should be done on a global or host basis though, host/host template is most flexible I think. Could we make this a feature request? -h Hari Sekhon Ton Voon wrote: > On 18 Sep 2007, at 15:08, Marc Powell wrote: > > >>> I'm using nagios to check a lot of host and service. When a host is >>> >> coming >> >>> down, nagios continue to check the service attached to this host. >>> It's >>> consume a lot of performance, it's trivial to know that when a >>> host is >>> down, we dont get a response from the service associate... >>> >>> how can I fix that ? please >>> >> Nagios does what you're asking for by default if you have a host >> check_command that correctly determines the status of the host. >> >> Check the first two paragraphs of >> http://nagios.sourceforge.net/docs/2_0/networkreachability.html. >> > > Marc, that's not strictly what Olivier is asking for. Nagios will > silence alarms if the host is down, but will continue checking the > service, regardless of the state of the host. > > Olivier, you could probably stop the service check by using > dependencies (http://nagios.sourceforge.net/docs/2_0/ > dependencies.html), but there's a lot more configuration required. > > Ton > > > http://www.altinity.com > T: +44 (0)870 787 9243 > F: +44 (0)845 280 1725 > Skype: tonvoon > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Tue Sep 18 17:27:16 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Tue, 18 Sep 2007 17:27:16 +0200 Subject: dont check service when host down In-Reply-To: <46EFEC42.6040801@googlemail.com> References: <46EFEC42.6040801@googlemail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E15A0@hermes.sapphire-int.gi> > It would be best if nagios actually did allow configuration of an option > to not check services for downed hosts. I'm not sure if this should be > done on a global or host basis though, host/host template is most > flexible I think. > > Could we make this a feature request? > I thought about this when writing my post on this particular thread, but then thought - how do I find out that the host has recovered from its downtime? I suspect that it is through service checks. If anything perhaps a servicedown_check_frequency parameter for service templates would be a better option? Giles ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 18 17:28:32 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 18 Sep 2007 17:28:32 +0200 Subject: dont check service when host down In-Reply-To: <46EFEC42.6040801@googlemail.com> References: <46EFEC42.6040801@googlemail.com> Message-ID: <46EFEEA0.7080600@op5.se> Hari Sekhon wrote: > Ton, > > This sounds like a great candidate for scalability to not check > services on downed hosts? > Not really, because you have to have the resources for checking everything when nothing is down too. If you want scalability, see how google built their database. > On a large installation with several hosts down, if the service check > intervals for broken services increases (as I usually configure it to > do) then this could degrade the nagios server. You would be forced to > not have increased service check intervals for downed services. > > It would be best if nagios actually did allow configuration of an option > to not check services for downed hosts. I'm not sure if this should be > done on a global or host basis though, host/host template is most > flexible I think. > With nagios 3 it should be possible to do this, as it supports running hostchecks in parallell. For now it's impossible though, as nagios doesn't know it should check the host until one of its services change state. Scheduling non-parallell hostchecks whenever a host goes down would seriously degrade performance. > Could we make this a feature request? > I think you just did, and I think I just shot it down for nagios 2.x. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scubacuda at gmail.com Tue Sep 18 17:38:27 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Tue, 18 Sep 2007 08:38:27 -0700 Subject: cannot restart Nagios using webgui on NagiosQL In-Reply-To: <6546343904687E41B19D8E5A26AB9F530157E7D3@E03MVB2-UKBR.domain1.systemhost.net> References: <2b7af7c40709171552o4a059846l678278c2ca9f8730@mail.gmail.com> <6546343904687E41B19D8E5A26AB9F530157E7D3@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <2b7af7c40709180838w75afd968qe0b5af63abb767a3@mail.gmail.com> On 9/18/07, tom.welsh at bt.com wrote: > > Are you absolutely certain that the permissions on > //var/rw are set correctly? I suspect that changing my nagios.cfg file to following had something to do with this nagios.cmd file being created? #check_external_commands=0 check_external_commands=1 Shortly after this (in CentOS), I saw the nagios.cmd file and could then chown nagios::apache and chmod 660 it, according to the NagiosQL documentation. http://www.nagiosql.org/wiki/Documentation Thank you very much for your help, Tom! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 18 18:57:29 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 18 Sep 2007 17:57:29 +0100 Subject: dont check service when host down In-Reply-To: <46EFEEA0.7080600@op5.se> References: <46EFEC42.6040801@googlemail.com> <46EFEEA0.7080600@op5.se> Message-ID: <46F00379.4020801@googlemail.com> Andreas Ericsson wrote: > Hari Sekhon wrote: >> This sounds like a great candidate for scalability to not check >> services on downed hosts? > Not really, because you have to have the resources for checking > everything when nothing is down too. No, I meant there is a situation where if you have a reduced retry check interval, it would take more resources for unnecessary checks since you are checking them more often. The solution to that is either not have an increased check interval and therefore not be alerted as quickly when things recover, or be able to suffer the increased load if too many hosts are unreachable for any reason. Personally, if a service has a problem like it's down, I usually always prefer to have it checked more frequently so I can see when it comes back up more quickly, especially if I am fiddling with stuff and have another nagios screen up as well. If the service recovers but is still red and you are fiddling, it's possible you may tread on it thinking it's still broken. > For now it's impossible though, as nagios > doesn't know it should check the host until one of its services change > state. Service Check --> fail --> Host Check --> fail --> No further service checks --> Host check loop until up --> Service checks as normal yes so the first service to fail would indicate that the host should be checked, then if the host is down, then there is no point in further service checks since there can't be any services on a downed host... I think this is best left as a config option to the admin... >> Could we make this a feature request? > I think you just did, and I think I just shot it down for nagios 2.x. > To be fair, I wasn't asking for this for Nagios 2.x. Nagios 3.x is the development branch, is it not? Also I still think it's a good idea, since there is no point in wasting resources sending out checks for things that can't answer by definition... I can't see the harm in this feature, only good in that it saves some service checks when the host(s) are down. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Tue Sep 18 19:07:34 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 18 Sep 2007 18:07:34 +0100 Subject: dont check service when host down In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57448E15A0@hermes.sapphire-int.gi> References: <46EFEC42.6040801@googlemail.com> <9D30659ABCA7FB428CF91E386C3A57448E15A0@hermes.sapphire-int.gi> Message-ID: <46F005D6.8090904@googlemail.com> Giles Coochey wrote: > I thought about this when writing my post on this particular thread, but > then thought - how do I find out that the host has recovered from its > downtime? > Is this not the defined point of host checks? When the host check detects that the host is up again, then service checks can resume. > I suspect that it is through service checks. > host checks check if the host is up service checks check if a specific service is up > If anything perhaps a servicedown_check_frequency parameter for service > templates would be a better option? > that's actually not a bad idea, but I can't understand why we would want to check on a service that must by definition be down if the host it sits on is down? How can a service be up if the computer is switched off or unplugged from the network? (or completely firewalled to not respond or whatever) The service check would have to fail in that case, I don't see how any active service check could succeed if a host does not respond. There are very few and rares circumstances that I can think of like a service being attached to a hostname but not actually being on that host, I have had that situation myself, but didn't support it as a good reason for this because actually the service should just be moved to the host it is on or otherwise separated from that host that it is not really on. -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Tue Sep 18 19:32:09 2007 From: michaelkintzios at gmail.com (Mick) Date: Tue, 18 Sep 2007 18:32:09 +0100 Subject: Disabling Host Commands CGI for a user Message-ID: <200709181832.23008.michaelkintzios@gmail.com> Hi All, Is there a way to disable access to the Host Commands CGI on a user by user basis? For some users I want to only allow them to view the settings and status of different services, but not to allow them to change these. -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 19:41:06 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 12:41:06 -0500 Subject: dont check service when host down In-Reply-To: <46F005D6.8090904@googlemail.com> References: <46F005D6.8090904@googlemail.com> Message-ID: > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Tuesday, September 18, 2007 12:08 PM > To: Giles Coochey > Cc: Ton Voon; Marc Powell; Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > > Giles Coochey wrote: > > I thought about this when writing my post on this particular thread, but > > then thought - how do I find out that the host has recovered from its > > downtime? > > > Is this not the defined point of host checks? Nope. Not in Nagios-2 and prior. Hosts are only checked when a service on that host changes state. Service goes critical, host is checked. Service recovers, host is checked. At no time in between is the host checked. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 19:58:28 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 12:58:28 -0500 Subject: dont check service when host down In-Reply-To: <46F00379.4020801@googlemail.com> References: <46F00379.4020801@googlemail.com> Message-ID: > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Tuesday, September 18, 2007 11:57 AM > To: Andreas Ericsson > Cc: Ton Voon; Marc Powell; Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > Andreas Ericsson wrote: > > Hari Sekhon wrote: > >> This sounds like a great candidate for scalability to not check > >> services on downed hosts? > > Not really, because you have to have the resources for checking > > everything when nothing is down too. > No, I meant there is a situation where if you have a reduced retry check > interval, it would take more resources > for unnecessary checks since you are checking them more often. The My reading of the code in base/checks.c (SECTION B3) is that if the host check returns non-OK, the service is immediately put into a hard state and no further retries are attempted. Nagios would then fall back to the normal_check_interval for the service check. Beyond the fact that services on down hosts are still checked, your scenario WRT retry_check_interval doesn't appear to happen. > Personally, if a service has a problem like it's down, I usually always > prefer to have it checked more frequently so I can see when it comes back > up > more quickly, especially if I am fiddling with stuff and have another > nagios screen up as well. If the service recovers but is still red and > you are fiddling, > it's possible you may tread on it thinking it's still broken. Just for clarification, as long as you're within max_check_attempts for your service, then nagios operates with your more frequent check interval. As soon as you reach max_check_attempts or your host check returns a non-OK state, the service falls back to normal_check_interval. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 18 20:03:48 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 13:03:48 -0500 Subject: Disabling Host Commands CGI for a user In-Reply-To: <200709181832.23008.michaelkintzios@gmail.com> References: <200709181832.23008.michaelkintzios@gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mick > Sent: Tuesday, September 18, 2007 12:32 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Disabling Host Commands CGI for a user > > Hi All, > > Is there a way to disable access to the Host Commands CGI on a user by > user > basis? > > For some users I want to only allow them to view the settings and status > of > different services, but not to allow them to change these. Not within nagios. You can restrict access to cmd.cgi through htaccess though. I use something like the following in ~nagios/sbin/.htaccess -- AuthName "Monitor System Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users AuthGroupFile /usr/local/nagios/etc/htpasswd.groups require valid-user require group admins $ cat /usr/local/nagios/etc/htpasswd.groups admins:user1,user2,user3,etc -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Tue Sep 18 20:32:47 2007 From: ton.voon at altinity.com (Ton Voon) Date: Tue, 18 Sep 2007 19:32:47 +0100 Subject: Disabling Host Commands CGI for a user In-Reply-To: <200709181832.23008.michaelkintzios@gmail.com> References: <200709181832.23008.michaelkintzios@gmail.com> Message-ID: <0E5EBCDB-C3F9-42E0-9407-6756AF010609@altinity.com> On 18 Sep 2007, at 18:32, Mick wrote: > Is there a way to disable access to the Host Commands CGI on a user > by user > basis? > > For some users I want to only allow them to view the settings and > status of > different services, but not to allow them to change these. I think you mean to stop certain users from being able to issue commands via the CGIs. Altinity have published a patch to Nagios 2.x which allows this very thing by setting a new variable for a contact. Details here: http://altinity.blogs.com/dotorg/2006/02/ a_view_some_cha.html Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.shellam-lists at mailnetwork.co.uk Tue Sep 18 20:59:08 2007 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam (Mailing Lists)) Date: Tue, 18 Sep 2007 19:59:08 +0100 Subject: check_telnet? In-Reply-To: References: Message-ID: <46F01FFC.6030403@mailnetwork.co.uk> Use check_tcp to connect to port 23 (if it's a Telnet host in the strictest sense of the word) or check_ssh if it's an SSH host. Andy Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer >> Sent: Tuesday, September 18, 2007 5:47 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] check_telnet? >> >> Hi >> >> Is there a "check_telnet" to see if the server can be >> telnet'ed? >> > > 99% of the time, Google will tell you if you search for 'nagios > check_something' (i.e. 'nagios check_telnet') or 'nagios check > something'. With very few exceptions, you're almost certainly not the > first to need to check whatever it is. > > Google should really be the first place checked for any question. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > !DSPAM:37,46efbfff7681725816736! > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Tue Sep 18 21:16:19 2007 From: michaelkintzios at gmail.com (Mick) Date: Tue, 18 Sep 2007 20:16:19 +0100 Subject: Disabling Host Commands CGI for a user In-Reply-To: <0E5EBCDB-C3F9-42E0-9407-6756AF010609@altinity.com> References: <200709181832.23008.michaelkintzios@gmail.com> <0E5EBCDB-C3F9-42E0-9407-6756AF010609@altinity.com> Message-ID: <200709182016.39611.michaelkintzios@gmail.com> On Tuesday 18 September 2007, you wrote: > On 18 Sep 2007, at 18:32, Mick wrote: > > Is there a way to disable access to the Host Commands CGI on a user > > by user > > basis? > > > > For some users I want to only allow them to view the settings and > > status of > > different services, but not to allow them to change these. > > I think you mean to stop certain users from being able to issue > commands via the CGIs. > > Altinity have published a patch to Nagios 2.x which allows this very > thing by setting a new variable for a contact. > > Details here: http://altinity.blogs.com/dotorg/2006/02/ > a_view_some_cha.html Thanks Ton, This is exactly what I am after. I may have to wait for Nagios version 3, since an rpm is not available yet. Meanwhile, following Marc's .htaccess suggestion: Is apache going to ask for a passwd every time a user clicks on the Hosts Commands CGI, or only if this user is not in the relevant group file? -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 19 00:08:45 2007 From: marc at ena.com (Marc Powell) Date: Tue, 18 Sep 2007 17:08:45 -0500 Subject: Disabling Host Commands CGI for a user In-Reply-To: <200709182016.39611.michaelkintzios@gmail.com> References: <200709182016.39611.michaelkintzios@gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mick > Sent: Tuesday, September 18, 2007 2:16 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Disabling Host Commands CGI for a user > > On Tuesday 18 September 2007, you wrote: > > Meanwhile, following Marc's .htaccess suggestion: Is apache going to ask > for > a passwd every time a user clicks on the Hosts Commands CGI, or only if > this > user is not in the relevant group file? I presumed that you already had basic authentication set up. If you do, it shouldn't ask for one at all. The user should already be authenticated to view host/service status information. Apache just checks to see if the authenticated user is a member of the admin group and denies the request if not. If you don't require authentication currently, I believe that if you set htpasswd.users with admin accounts then move the 'require valid-user' directive to within the FilesMatch and remove 'require group admins' and AuthGroupFile, apache will only ask for the authentication information if they access a listed cgi. htpasswd.users would only contain your admin accounts. I haven't tested this. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robert.cole at support4linux.com Wed Sep 19 01:55:22 2007 From: robert.cole at support4linux.com (Robert Cole) Date: Tue, 18 Sep 2007 16:55:22 -0700 Subject: email alerts failing Message-ID: <46F0656A.8060807@support4linux.com> I've ben chasing an email issue for a while and only just today I've put some time into resolving this and here is what I found. I'm running nagios 2.9 and plugins 1.4.9 and I have a relay email server setup to accept and relay email to the outside world and this works from the nagios system if I run mail -s test test at test.com (real email address left off) without a problem but if the email is generated from nagios it doesn't go though. This is an example tail -f /var/log/messages on the nagios system when a message from nagios is generated: Sep 18 16:26:03 ms1 postfix/smtp[2691]: AFF24199CDB: to=<9493008152 at mms.mycingular.com>, relay=mail.youmail.local[172.16.1.22]:25, delay=0.09, delays=0.06/0/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 l8INLUvu012152 Message accepted for delivery) Sep 18 16:26:03 ms1 postfix/smtp[2691]: name_mask: resource Sep 18 16:26:03 ms1 postfix/smtp[2691]: name_mask: software Sep 18 16:26:03 ms1 postfix/qmgr[2479]: AFF24199CDB: removed Sep 18 16:26:03 ms1 postfix/pickup[2480]: C308F199CDB: uid=101 from= Sep 18 16:26:03 ms1 postfix/cleanup[2684]: C308F199CDB: message-id=<20070918232603.C308F199CDB at ms1.youmail.local> Sep 18 16:26:03 ms1 postfix/qmgr[2479]: C308F199CDB: from=, size=683, nrcpt=1 (queue active) Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 220 mail001.youmail.com ESMTP Sendmail 8.13.8/8.13.8; Tue, 18 Sep 2007 16:21:30 -0700 Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: EHLO ms1.youmail.local Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-mail001.youmail.com Hello ms1.youmail.local [10.1.1.28], pleased to meet you Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-ENHANCEDSTATUSCODES Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-PIPELINING Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-8BITMIME Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-SIZE Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-DSN Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-ETRN Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250-DELIVERBY Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250 HELP Sep 18 16:26:03 ms1 postfix/smtp[2691]: server features: 0x900f size 0 Sep 18 16:26:03 ms1 postfix/smtp[2691]: Using ESMTP PIPELINING, TCP send buffer size is 4096 Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: MAIL FROM: SIZE=683 Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: RCPT TO: ORCPT=rfc822;6269057159 at mms.mycingular.com Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: DATA Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250 2.1.0 ... Sender ok Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250 2.1.5 ... Recipient ok Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 354 Enter mail, end with "." on a line by itself Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: . Sep 18 16:26:03 ms1 postfix/smtp[2691]: > mail.youmail.local[172.16.1.22]: QUIT Sep 18 16:26:03 ms1 postfix/smtp[2691]: < mail.youmail.local[172.16.1.22]: 250 2.0.0 l8INLUgm012155 Message accepted for delivery Here is the other side of that on the mail server itself: Sep 18 16:23:19 mail001 sendmail[12235]: l8INNJkx012235: ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Sep 18 16:28:19 mail001 sendmail[12380]: l8INSJK8012380: ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Sep 18 16:33:19 mail001 sendmail[12606]: l8INXJXp012606: ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Sep 18 16:33:29 mail001 sendmail[12613]: l8INXTLn012613: from=, size=649, class=0, nrcpts=1, msgid=<20070918233803.534C5199CDB at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaH012616: from=, size=661, class=0, nrcpts=1, msgid=<20070918233803.67732199CF6 at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaJ012616: from=, size=661, class=0, nrcpts=1, msgid=<20070918233803.7DC04199CDB at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaL012616: from=, size=661, class=0, nrcpts=1, msgid=<20070918233803.9110D199CF6 at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Sep 18 16:33:30 mail001 sendmail[12623]: l8INXUoL012623: from=, size=661, class=0, nrcpts=1, msgid=<20070918233803.A3CA9199CDB at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Sep 18 16:33:30 mail001 sendmail[12626]: l8INXUCe012626: from=, size=661, class=0, nrcpts=1, msgid=<20070918233803.B8520199CDB at ms1.youmail.local>, proto=ESMTP, daemon=MTA, relay=ms1.youmail.local [10.1.1.28] Now it looks to me as if the mail is being accepted and I'm not sure what the deal is with "did not issue MAIL/EXPN/VRFY/ETRN" as searching and searching and looking at the solutions I've found so far don't apply but again if I mail out from the nagios system using the mail command it works yet email through nagios doesn't work. Any ideas? Thanks, Robert ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 19 09:00:13 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 19 Sep 2007 09:00:13 +0200 Subject: dont check service when host down In-Reply-To: <46F00379.4020801@googlemail.com> References: <46EFEC42.6040801@googlemail.com> <46EFEEA0.7080600@op5.se> <46F00379.4020801@googlemail.com> Message-ID: <46F0C8FD.1020204@op5.se> Hari Sekhon wrote: > Andreas Ericsson wrote: > >>> Could we make this a feature request? >> I think you just did, and I think I just shot it down for nagios 2.x. >> > To be fair, I wasn't asking for this for Nagios 2.x. Nagios 3.x is the > development branch, is it not? > > Also I still think it's a good idea, since there is no point in wasting > resources sending out checks for things > that can't answer by definition... > > I can't see the harm in this feature, only good in that it saves some > service checks when the host(s) are down. > Patches speak louder than feature requests. Send the code and I'll have a peek at it. Until then, I'll file it under "something to do on a rainy day". Currently there are two other improvements that can be done in Nagios which will improve performance quite a lot more than to stop executing service- checks when the host they belong to are down. The first is to rewrite the command execution logging to use a multiplexer. That would get rid of one fork() call per executed command, which would be a *huge* net gain in performance (it would double Nagios' capacity). It would also mean that we can get rid of the threading code, which complicates the expression of some of the algorithms in nagios (locking issues, primarily). The second is to rewrite the config reading stuff to be module-loaded, so that the code can be unloaded once the config is read. The data section of the nagios binary is quite bloated with all the hardcoded strings, and they need to be copied for every fork(). Since nagios does a lot of forking today, that all adds up to quite a lot of cpu time. This change would also (eventually) allow nagios to read config from external sources, as config reading modules can be added later, without having to recompile the nagios core. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Sep 19 10:05:51 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 19 Sep 2007 09:05:51 +0100 Subject: dont check service when host down In-Reply-To: References: Message-ID: <46F0D85F.4050308@googlemail.com> Marc Powell wrote: > check returns non-OK, the service is immediately put into a hard state > and no further retries are attempted. Nagios would then fall back to the > normal_check_interval for the service check. Beyond the fact that > services on down hosts are still checked, your scenario WRT > retry_check_interval doesn't appear to happen. > > Just for clarification, as long as you're within max_check_attempts for > your service, then nagios operates with your more frequent check > interval. As soon as you reach max_check_attempts or your host check > returns a non-OK state, the service falls back to normal_check_interval. > Aha, thanks for clearing that up, it must have been a misinterpretation on my part that the retry check interval is not for all retries but only for those up to max check attempts, so if the max check attempts is low then retry interval only affects how quickly it will go into a hard failure state. Thanks for the clarification. -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Sep 19 10:12:55 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 19 Sep 2007 09:12:55 +0100 Subject: dont check service when host down In-Reply-To: References: Message-ID: <46F0DA07.3080206@googlemail.com> Marc Powell wrote: > Hosts are only checked when a service > on that host changes state. Service goes critical, host is checked. > Service recovers, host is checked. At no time in between is the host > checked. Oh, ok, this seems a little contrary to logic but perhaps I just think in a strange way (but then we knew that!). I suppose this method puts the emphasis on services rather than hosts and seems to give much higher priority to services, which is fair enough actually. What is odd is that I had a service that was up but the host didn't respond to pings, for some reason then I had a host state of CRITICAL but a service state of OK because the host was up and not responding to pings. I'm pretty sure the service was OK consistently when I added the host and service, it must have checked the host state initially and found it to be CRITICAL (I worked around this by making the host check the same as the service check). Perhaps the state change was from pending to OK and that triggered the initial host check... In this scenario it actually worked better to check the service anyway... -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amateo at um.es Wed Sep 19 13:46:12 2007 From: amateo at um.es (Angel L. Mateo) Date: Wed, 19 Sep 2007 13:46:12 +0200 Subject: Problem with a check log script and persistence of states Message-ID: <1190202372.28986.32.camel@joshua.atica.um.es> Hello, I have configured a check log plugin for nagios to check if my log files check with some patterns. This plugin check the new lines from its last run and if the pattern check it returns a CRITICAL (or WARNING) state. The problem I have with this is that every time a CRITICAL is launched, five minutes later returns to OK, because the next run of the plugin. What I want is that I could configure the service to not return to OK, even if the script returns OK, so I have to manually return it to OK (normally because I have revised the log and look for the problem originitating the state). Is there any way to do this with nagios? Could it be the is_volatil option? -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From parseexception at gmail.com Wed Sep 19 14:01:15 2007 From: parseexception at gmail.com (Parse Exception) Date: Wed, 19 Sep 2007 07:01:15 -0500 Subject: list processing in nagios? Message-ID: <4f2c31ed0709190501n446bd770sae1af950aef0eda1@mail.gmail.com> I am wanting to collect alerts from IBM BladeCenters via snmp, which generates a line of output for each entry in the event log. I am looking for idea's about how to display the output via the Nagios front end, I would like to discard any messages that are of type "INFO", and just keep warnings and alerts, I think I can do this by just grep'ing the stuff I want. I just dont know of a clean way to put a list of entries into Nagios, thanks for your help -James -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 19 14:53:35 2007 From: marc at ena.com (Marc Powell) Date: Wed, 19 Sep 2007 07:53:35 -0500 Subject: dont check service when host down In-Reply-To: <46F0DA07.3080206@googlemail.com> References: <46F0DA07.3080206@googlemail.com> Message-ID: > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Wednesday, September 19, 2007 3:13 AM > To: Marc Powell > Cc: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > Marc Powell wrote: > > Hosts are only checked when a service > > on that host changes state. Service goes critical, host is checked. > > Service recovers, host is checked. At no time in between is the host > > checked. > > Oh, ok, this seems a little contrary to logic but perhaps I just think > in a strange way (but then we knew that!). > > I suppose this method puts the emphasis on services rather than hosts > and seems to give much higher priority to > services, which is fair enough actually. That's exactly right, nagios is a service monitor. Nagios-2 and prior really only uses host checks to determine if there is a wider host or network issue causing a problem with a service in order to handle alerts more appropriately. > Perhaps the state change was from pending to OK and that triggered the > initial host check... > In this scenario it actually worked better to check the service anyway... If this is the only service on the host a pending->OK transition gives the host a 'host assumed to be up' designation. The host isn't actually checked. Given the limited information I'd have to say that the service did flap at some point _or_ you have aggressive host checking enabled. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Sep 19 14:59:12 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 19 Sep 2007 13:59:12 +0100 Subject: dont check service when host down In-Reply-To: References: Message-ID: <46F11D20.1070909@googlemail.com> Marc Powell wrote: > If this is the only service on the host a pending->OK transition gives > the host a 'host assumed to be up' designation. The host isn't actually > checked. Given the limited information I'd have to say that the service > did flap at some point _or_ you have aggressive host checking enabled. > I just "grep -i "'ed everything and I definitely don't have aggressive host checking enabled so I guess the state must have flapped, perhaps the check timed out or something. -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.koch at eurodata.de Wed Sep 19 15:43:47 2007 From: a.koch at eurodata.de (Andreas Koch) Date: Wed, 19 Sep 2007 15:43:47 +0200 Subject: Nagios Plugin for WinCC Simatic Message-ID: <1190209427.2251.27.camel@warndt.eurodata.de> Hello all. The Company Siemens will install a Simatic for Control in our new Data Center. The Monitor System for Simatic is WinCC. Has anybody got a plugin for check the state from the Simatic or a plugin for check the Simatic via WinCC? Or a better idea to check the state? Thanks for your Help :) Andreas -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4145 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dario.bestetti at opservices.com.br Wed Sep 19 15:47:12 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Wed, 19 Sep 2007 10:47:12 -0300 Subject: RES: Nagios Plugin for WinCC Simatic In-Reply-To: <1190209427.2251.27.camel@warndt.eurodata.de> References: <1190209427.2251.27.camel@warndt.eurodata.de> Message-ID: <26470.0719308623$1190209695@news.gmane.org> Andreas, does it has a SNMP agent built in ? If yes you could get informations through SNMP. _________________________________________________ Dario B. Bestetti????????OpServices ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403 ??????????????????????????????????Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile? 55(51)81518218 Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br ? ???????????????"In God we trust, the rest we monitor ..." _________________________________________________ -----Mensagem original----- De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Andreas Koch Enviada em: quarta-feira, 19 de setembro de 2007 10:44 Para: Nagios-users at lists.sourceforge.net Assunto: [Nagios-users] Nagios Plugin for WinCC Simatic Hello all. The Company Siemens will install a Simatic for Control in our new Data Center. The Monitor System for Simatic is WinCC. Has anybody got a plugin for check the state from the Simatic or a plugin for check the Simatic via WinCC? Or a better idea to check the state? Thanks for your Help :) Andreas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rwolfe at shatterit.com Wed Sep 19 15:47:47 2007 From: rwolfe at shatterit.com (Wolfe, Robert) Date: Wed, 19 Sep 2007 09:47:47 -0400 Subject: Nagios Plugin for WinCC Simatic In-Reply-To: <1190209427.2251.27.camel@warndt.eurodata.de> References: <1190209427.2251.27.camel@warndt.eurodata.de> Message-ID: <20070919094747.52f100e0.rwolfe@shatterit.com> On Wed, 19 Sep 2007 15:43:47 +0200 Andreas Koch wrote: > Hello all. > > The Company Siemens will install a Simatic for Control in our new Data > Center. > > The Monitor System for Simatic is WinCC. > > Has anybody got a plugin for check the state from the Simatic or a > plugin for check the Simatic via WinCC? > Or a better idea to check the state? > > Thanks for your Help :) > > Andreas > Andreas, does WinCC communicate with Simatic via SNMP? If so, I could POSSIBLY modify my APC PowerNet PDU check that I wrote to work with that. However, I am not sure how much time I would be able to devote to that project. -- Wolfe, Robert ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apereira at duocom.ca Wed Sep 19 15:59:02 2007 From: apereira at duocom.ca (Antonio Pereira) Date: Wed, 19 Sep 2007 09:59:02 -0400 Subject: Email Notification Message-ID: <2FAF78EDA2D2DF4EB656ABB3339FD105C4B623@mtlexchange.Duocom.local> Hello, I have installed sendmail and it seems to work. When I do the following in a command line sendmail -bv apereira at duocom.ca I get this result apereira at duocom.ca... deliverable: mailer esmtp, host duocom.ca., user apereira at duocom.ca I have added sendmail to startup every time it boots. In Nagios i have the following setup Contacts define contact{ contact_name apereira alias Antonio Pereira contactgroups network_team service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email apereira at duocom.ca } Contactgroups define contactgroup{ contactgroup_name network_team alias Network Administrators members apereira } Commands # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info: \n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | @MAIL_PROG@ -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } I see no error meesages appear anywhere and still I don't get any email notifications. What am I missing? Nagios 2.9 Fedora 6 Thanks ------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mboeckman at servicemagic.com Wed Sep 19 16:21:07 2007 From: mboeckman at servicemagic.com (Boeckman, Matthew) Date: Wed, 19 Sep 2007 08:21:07 -0600 Subject: Host/service acknowledgement template? Message-ID: <67CC1D2D52F85747ADE6BC83A4A7A76402C22255@Apollo.servicemagic.com> Thanks Russell, this worked like a champ. For anyone interested I made a slight modification to the end of the file to fix the hyperlinks that come out if the service name includes a space. For example: perl -pi -e 's|service=mailq size|service=mailq%20size|g' $tmpfile perl -pi -e 's|service=HTTPS check|service=HTTPS%20check|g' $tmpfile perl -pi -e 's|service=HTTP check|service=HTTP%20check|g' $tmpfile mail -s "$subject" "$recipient" < $tmpfile rm -f $tmpfile -Matthew -----Original Message----- From: Russell Jackson [mailto:raj at csub.edu] Sent: Monday, September 17, 2007 1:32 PM To: Boeckman, Matthew Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host/service acknowledgement template? Boeckman, Matthew wrote: > Hello list! > > Is there a way to configure a custom notification email for > acknowledgements? What I have currently is a lightly modified version > of notify-host-by-email and notify-service-by-email to include the ACK > macro's: > > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\n > $HOSTACKAUTHOR$ ack'd the alarm with message > $HOSTACKCOMMENT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** > $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" > $CONTACTEMAIL$ > } > > This works, but of course my text "ack'd the alarm with message" > appears in all types of notifications with nothing in the macro > fields, and for ACK's it works just fine. > > I'm wondering if there is something do-able like notify-ack-by-email > that would only function on NOTIFICATIONTYPE=ACKNOWLEDGEMENT and thus > use a specific printf statement about the ack. I see how I could > configure another command definition and include it, but I'm not clear > how to do the IF-THEN type logic. > > Any pointers are appreciated, thanks! > I use an external sh script (see attachment). It's called without arguments (taking advantage of nagios 2.x exporting of macros to the environment) like so: define command { command_name notify-by-email command_line $USER3$/notify-by-email.sh } I use the same script for all notification and generate the contents based on the presence of certain macros -> env variables. The script could probably be better, but it's working for me ATM. -- Russell A. Jackson Network Analyst California State University, Bakersfield Don't make a big deal out of everything; just deal with everything. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 19 17:01:38 2007 From: marc at ena.com (Marc Powell) Date: Wed, 19 Sep 2007 10:01:38 -0500 Subject: Email Notification In-Reply-To: <2FAF78EDA2D2DF4EB656ABB3339FD105C4B623@mtlexchange.Duocom.local> References: <2FAF78EDA2D2DF4EB656ABB3339FD105C4B623@mtlexchange.Duocom.local> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Antonio Pereira > Sent: Wednesday, September 19, 2007 8:59 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Email Notification > > Hello, > > Commands > # 'notify-by-email' command definition > define command{ > command_name notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info: > \n\n$SERVICEOUTPUT$" | @MAIL_PROG@ -s "** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > # 'host-notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "***** Nagios @VERSION@ > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | @MAIL_PROG@ -s "Host $HOSTSTATE$ alert for > $HOSTNAME$!" > $CONTACTEMAIL$ > } Where did you pull these from? The command_line from your notify-by-email command definition is something that nagios will run from the shell, substituting appropriate $MACRO$ values. Note that you have @VERSION@ and more importantly @MAIL_PROG@ values. Those are not substituted by nagios at runtime and they make no sense to a shell (they appear to be make variables). Try running '/usr/bin/printf "hello" | @MAIL_PROG@ -s "test" you at address.com' to see. @VERSION@ should be your nagios version and @MAIL_PROG@ should be the full path to your mail executable (/bin/mail for example). The sample config files will have automagically performed the substitutions for you if you ran 'make install-config'. -- marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Melin at co.hennepin.mn.us Wed Sep 19 17:10:22 2007 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Wed, 19 Sep 2007 10:10:22 -0500 Subject: Hello all. A question/quandary for you all Message-ID: Can anyone shed some light on the possible reasons that Nagios sends notifications as I expect it to for a host down event but not for a service check event. When a service goes warning or critical the only group that seems to get a notification is 'admins'. Here's the relevant configuration elements as I have them. I'm hoping someone can see what I cannot because I just don't 'get it'. It should work based on all the documentation that I've read. define host{ name zlinux-server use generic-host check_period 24x7 max_check_attempts 10 check_command check-host-alive notification_period 24x7 notification_interval 120 notification_options d,u,r contact_groups admins, operators, techsrv, zlinux register 0 } This uses the stock generic-host file: 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 notification_period 24x7 ; Send host notifications at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } The contact groups are defined correctly near as I can see: define contactgroup{ contactgroup_name zlinux alias zlinux_admins members sy4019, sy4558 } define contactgroup{ contactgroup_name admins alias Nagios Administrators members sy4080 } and the contacts are define correctly as far as I can tell: define contact{ contact_name sy4080 alias James [ Edited for this posting ] 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 jim[ Edited for this posting ] } define contact{ contact_name sy4558 alias David [ Edited for this posting ] 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 david[ Edited for this posting ] } define contact{ contact_name sy4019 alias Dave [ Edited for this posting ] 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 david[ Edited for this posting ] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 19 17:27:26 2007 From: marc at ena.com (Marc Powell) Date: Wed, 19 Sep 2007 10:27:26 -0500 Subject: Hello all. A question/quandary for you all In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jim.Melin at co.hennepin.mn.us > Sent: Wednesday, September 19, 2007 10:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Hello all. A question/quandary for you all > > > Can anyone shed some light on the possible reasons that Nagios sends > notifications as I expect it to for a host down event but not for a > service check > event. When a service goes warning or critical the only group that seems > to get a notification is 'admins'. > > Here's the relevant configuration elements as I have them. I'm hoping > someone can see what I cannot because I just don't 'get it'. It should > work > based on all the documentation that I've read. > > define host{ > name zlinux-server > use generic-host > check_period 24x7 > max_check_attempts 10 > check_command check-host-alive > notification_period 24x7 > notification_interval 120 > notification_options d,u,r > contact_groups admins, operators, techsrv, zlinux > register 0 > } Host{} contact_groups have no relation to service contact_groups and notifications. These are groups that are notified when there are host problems only. You need to look at the contact_groups specified in the service{} definition. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 19 17:43:37 2007 From: marc at ena.com (Marc Powell) Date: Wed, 19 Sep 2007 10:43:37 -0500 Subject: email alerts failing In-Reply-To: <46F0656A.8060807@support4linux.com> References: <46F0656A.8060807@support4linux.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Cole > Sent: Tuesday, September 18, 2007 6:55 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] email alerts failing > > I've ben chasing an email issue for a while and only just today I've put > some time into resolving this and here is what I found. > > I'm running nagios 2.9 and plugins 1.4.9 and I have a relay email server > setup to accept and relay email to the outside world and this works from > the nagios system if I run mail -s test test at test.com (real email > address left off) without a problem but if the email is generated from > nagios it doesn't go though. > > This is an example tail -f /var/log/messages on the nagios system when > a message from nagios is generated: > > Sep 18 16:26:03 ms1 postfix/smtp[2691]: AFF24199CDB: > to=<9493008152 at mms.mycingular.com>, > relay=mail.youmail.local[172.16.1.22]:25, delay=0.09, > delays=0.06/0/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 > l8INLUvu012152 Message accepted for delivery) > Sep 18 16:26:03 ms1 postfix/smtp[2691]: name_mask: resource > Sep 18 16:26:03 ms1 postfix/smtp[2691]: name_mask: software > Sep 18 16:26:03 ms1 postfix/qmgr[2479]: AFF24199CDB: removed > Sep 18 16:26:03 ms1 postfix/pickup[2480]: C308F199CDB: uid=101 > from= > Sep 18 16:26:03 ms1 postfix/cleanup[2684]: C308F199CDB: > message-id=<20070918232603.C308F199CDB at ms1.youmail.local> > Sep 18 16:26:03 ms1 postfix/qmgr[2479]: C308F199CDB: > from=, size=683, nrcpt=1 (queue active) > Sep 18 16:26:03 ms1 postfix/smtp[2691]: < > mail.youmail.local[172.16.1.22]: 220 mail001.youmail.com ESMTP Sendmail > 8.13.8/8.13.8; Tue, 18 Sep 2007 16:21:30 -0700 > Sep 18 16:26:03 ms1 postfix/smtp[2691]: > > mail.youmail.local[172.16.1.22]: EHLO ms1.youmail.local > Sep 18 16:26:03 ms1 postfix/smtp[2691]: < > mail.youmail.local[172.16.1.22]: 250-mail001.youmail.com Hello > Sep 18 16:26:03 ms1 postfix/smtp[2691]: < > mail.youmail.local[172.16.1.22]: 250 2.0.0 l8INLUgm012155 Message > accepted for delivery Great, mail001.youmail.com accepted the message with queue-id l8INLUgm012155. It's now responsible for delivering it and nagios is out of the picture. > Here is the other side of that on the mail server itself: > > Sep 18 16:23:19 mail001 sendmail[12235]: l8INNJkx012235: > ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during > connection to MTA > Sep 18 16:28:19 mail001 sendmail[12380]: l8INSJK8012380: > ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during > connection to MTA > Sep 18 16:33:19 mail001 sendmail[12606]: l8INXJXp012606: > ms1.youmail.local [10.1.1.28] did not issue MAIL/EXPN/VRFY/ETRN during > connection to MTA > Sep 18 16:33:29 mail001 sendmail[12613]: l8INXTLn012613: > from=, size=649, class=0, nrcpts=1, > msgid=<20070918233803.534C5199CDB at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaH012616: > from=, size=661, class=0, nrcpts=1, > msgid=<20070918233803.67732199CF6 at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaJ012616: > from=, size=661, class=0, nrcpts=1, > msgid=<20070918233803.7DC04199CDB at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > Sep 18 16:33:30 mail001 sendmail[12616]: l8INXTaL012616: > from=, size=661, class=0, nrcpts=1, > msgid=<20070918233803.9110D199CF6 at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > Sep 18 16:33:30 mail001 sendmail[12623]: l8INXUoL012623: > from=, size=661, class=0, nrcpts=1, > msgid=<20070918233803.A3CA9199CDB at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > Sep 18 16:33:30 mail001 sendmail[12626]: l8INXUCe012626: > from=, size=661, class=0, nrcpts=1, > msgid=<20070918233803.B8520199CDB at ms1.youmail.local>, proto=ESMTP, > daemon=MTA, relay=ms1.youmail.local [10.1.1.28] > > Now it looks to me as if the mail is being accepted and I'm not sure Yes it was but the logs above don't show anything related to the accepted queue-id of l8INLUgm012155. In fact, anything around that time is curiously absent from the log. Did you neglect to post full log entries? grep that queue ID out of the log file and see what you see. > what the deal is with "did not issue MAIL/EXPN/VRFY/ETRN" as searching > and searching and looking at the solutions I've found so far don't apply I'm going to bet that you're using check_smtp or check_tcp from nagios to monitor this mail server every 5 minutes. Those plugins don't initiate a full SMTP transaction so sendmail complains. They're safe to ignore. > but again if I mail out from the nagios system using the mail command it > works yet email through nagios doesn't work. > > Any ideas? Mail001.youmail.com accepts the message but does something bad with it afterward. You should see what in the maillog on that machine. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mha at cm4all.com Wed Sep 19 18:05:39 2007 From: mha at cm4all.com (Matthias Haider) Date: Wed, 19 Sep 2007 18:05:39 +0200 Subject: Nagios only runs active OR accepts passice service checks Message-ID: <87B1FE37-39A2-43AE-BEED-50C0D6FCAB58@cm4all.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Folks, Yesterday the vmware server where nagios runs needed to get rebootet, so we rebootet the vm in which nagios runs, as well. No changes were made to the vmware server or the vm. But after the reboot nagios can only eighter execute active cheks or process passive ones. If i disable the processing of passive checks ones via the web interface, active checks get executed, if i re-enable the processing of passive checks, only those get processed, no active ones anymore. The system is Kernel 2.6.18-5-686 libc6 2.3.6.ds1-13etch2 nagios2 2.9-1~bpo.1 nsca 2.6-3 Our nagios checks 651 active checks, 2091 active ones = 2742 together on 210 hosts. thanks i advance, Matthias -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFG8UjTzSQdV7jRRyURAiVoAJ40GTW5LyjOksfH+2ecKpJ+THxHfgCgosh8 XJQHIqX+GXhxLfMIqQJj6yw= =zqr/ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Wed Sep 19 19:57:55 2007 From: michaelkintzios at gmail.com (Mick) Date: Wed, 19 Sep 2007 18:57:55 +0100 Subject: Disabling Host Commands CGI for a user In-Reply-To: References: Message-ID: <200709191858.09266.michaelkintzios@gmail.com> On Tuesday 18 September 2007, Marc Powell wrote: > I presumed that you already had basic authentication set up. If you do, > it shouldn't ask for one at all. The user should already be > authenticated to view host/service status information. Apache just > checks to see if the authenticated user is a member of the admin group > and denies the request if not. I just tried this out. I have basic authentication set up for all users. If the user is in the AuthGroupFile then there is no additional request for authentication when s/he clicks on the Host Commands. If the user is not in the AuthGroupFile then there is a request for authentication, just as expected. However, thereafter the user is deemed unauthenticated and clicking on any other page or back on the browser requires to enter the username and passwd again. Not sure if this will confuse your average user, but it will do for now. Of course, when version 3.0 comes out Ton's solution will do this more elegantly. Thank you both for your help! :) -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Thu Sep 20 05:10:15 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 19 Sep 2007 23:10:15 -0400 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? Message-ID: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> Hello. We've been noticing that our Nagios host (Red Hat ES 3 release 3) has been sending out quite a lot of IPv6 DNS requests (I guess those are "AAAA" record requests on port 53). As our box is not configured to do IPv6, this was a puzzlement. At first I assumed it was some weird resolver library configuration issue, but we couldn't find anything. We started running funky queries (ones we new Nagios wouldn't normally run) and looking for them via tcpdump on port 53. We found that if we ran pretty much any off the nagios-plugins package, it would generate these IPv6 packets. I did not enable IPv6 when I built the package. I tried rebuilding everything explicitly saying "--without-ipv6". It made no difference. It appears that some of the check_ programs (like check_http, check_ldap, check_tcp, check_smtp) have #ifdefs for IPv6 and allow the command to take a -4 or -6 argument presumably to force IPv6 or IPv4. I tried that on a few tests and a '-4' did seem to suppress the IPv6 DNS requests. However, it appears that some commands like 'check_nt' which we use rather heavily do not support the -4 flag and will generate the extra 4-6 DNS IPv6 queries every time. Based on the amount of traffic we're doing on this box, this extra traffic is proving to be rather painful. I then ran the same test using our check_nrpe and it does not generate IPv6 packets. This leads me to believe there's something about the nagios-plugins package that perhaps has some common code that inadvertently generates all these IPv6 DNS queries. For us, it generates 4-6 extra queries as IPv6, fails, then falls back and does a single IPv4 query which works immediately. I went over to a test box we have running OpenSuse 10 and it's doing the same thing. This leads me to believe that is not the OS or resolver configuration, but it's something to do with the standard plugins themselves. >From a quick glance at the code, it appears that if it detects that IPv6 is available on the box (even if it's not configured to use it), it's going to try to query it. Has anyone else seen this behavior? Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.koch at eurodata.de Thu Sep 20 07:13:25 2007 From: a.koch at eurodata.de (Andreas Koch) Date: Thu, 20 Sep 2007 07:13:25 +0200 Subject: Nagios Plugin for WinCC Simatic In-Reply-To: <20070919094747.52f100e0.rwolfe@shatterit.com> References: <1190209427.2251.27.camel@warndt.eurodata.de> <20070919094747.52f100e0.rwolfe@shatterit.com> Message-ID: <1190265205.2255.4.camel@warndt.eurodata.de> Hello all.... The anser is NO.... The Simatic haven't snmp. The Simatic use 3964R protocol. :) Andreas Am Mittwoch, den 19.09.2007, 09:47 -0400 schrieb Wolfe, Robert: > On Wed, 19 Sep 2007 15:43:47 +0200 > Andreas Koch wrote: > > > Hello all. > > > > The Company Siemens will install a Simatic for Control in our new Data > > Center. > > > > The Monitor System for Simatic is WinCC. > > > > Has anybody got a plugin for check the state from the Simatic or a > > plugin for check the Simatic via WinCC? > > Or a better idea to check the state? > > > > Thanks for your Help :) > > > > Andreas > > > > Andreas, does WinCC communicate with Simatic via SNMP? If so, I could POSSIBLY modify my APC PowerNet PDU check that I wrote to work with that. However, I am not sure how much time I would be able to devote to that project. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4145 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Sep 20 07:23:02 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 20 Sep 2007 07:23:02 +0200 (CEST) Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> Message-ID: On Wed, 19 Sep 2007, Frost, Mark {PBG} wrote: > Hello. We've been noticing that our Nagios host (Red Hat ES 3 release > 3) has been sending out quite a lot of IPv6 DNS requests (I guess those > are "AAAA" record requests on port 53). As our box is not configured to > do IPv6, this was a puzzlement. At first I assumed it was some weird > resolver library configuration issue, but we couldn't find anything. > > We started running funky queries (ones we new Nagios wouldn't normally > run) and looking for them via tcpdump on port 53. We found that if we > ran pretty much any off the nagios-plugins package, it would generate > these IPv6 packets. I did not enable IPv6 when I built the package. I > tried rebuilding everything explicitly saying "--without-ipv6". It made > no difference. I guess you have hosts defined by name and not by IP address. So the normal thing to do is find both IPv4 and IPv6 addresses of the host and then decide how to contact the host. So unless you have an operational problem I would ignore it as business as usual. Hugo. -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ This message is using 100% recycled electrons. Some men see computers as they are and say "Windows" I use computers with Linux and say "Why Windows?" (Thanks JFK, for this quote of George Bernard Shaw.) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From enst at mail.ru Thu Sep 20 09:10:05 2007 From: enst at mail.ru (Evgeny Stepanov) Date: Thu, 20 Sep 2007 11:10:05 +0400 Subject: Nagios Plugin for WinCC Simatic In-Reply-To: <20070919094747.52f100e0.rwolfe@shatterit.com> References: <1190209427.2251.27.camel@warndt.eurodata.de> <20070919094747.52f100e0.rwolfe@shatterit.com> Message-ID: <46F21CCD.8070300@mail.ru> I Think, there is no ready nagios plugin for this very specific task. There is library to communicate with siemens PLC's, it's used in automation. Maybe it will help you. It's http://libnodave.sourceforge.net/ Maybe there would be a simpler way to read WinCC database directly (usually Access or MS SQL) to read values from there? Wolfe, Robert ?????: > On Wed, 19 Sep 2007 15:43:47 +0200 > Andreas Koch wrote: > > >> Hello all. >> >> The Company Siemens will install a Simatic for Control in our new Data >> Center. >> >> The Monitor System for Simatic is WinCC. >> >> Has anybody got a plugin for check the state from the Simatic or a >> plugin for check the Simatic via WinCC? >> Or a better idea to check the state? >> >> Thanks for your Help :) >> >> Andreas >> >> > > Andreas, does WinCC communicate with Simatic via SNMP? If so, I could POSSIBLY modify my APC PowerNet PDU check that I wrote to work with that. However, I am not sure how much time I would be able to devote to that project. > > -- ? ?????????, ???????? ?.?. enst at mail.ru icq 2899514 +7-985-2267458 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rossmg at iprimus.com.au Thu Sep 20 09:34:55 2007 From: rossmg at iprimus.com.au (Ross Goble) Date: Thu, 20 Sep 2007 17:04:55 +0930 Subject: Statusmap.cgi User Coord Map Colors Message-ID: <2906E2AF-293A-4247-803A-70A0D6F8F4CB@iprimus.com.au> Hi Looking for some help regarding the statusmap.cgi user supplied coordinate map. My problem is that the colours of the map are being distorted for some reason, that is both the colours of my "statusmap_background_image=" underlay and the colours of my custom icons. However when one clicks on a displayed host to zoom in on it colours are correctly rendered. I have tried searching the mailing list but have turned up nothing, please excuse if this has been covered before. My set up: Nagios 2.9 running on Debian Etch (stable) PPC on a BeigeG3 192MB RAM Other than the incorrectly rendered colours all is working just great! TIA Ross Goble ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sep 20 09:44:10 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 20 Sep 2007 09:44:10 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> Message-ID: <46F224CA.5010008@op5.se> Hugo van der Kooij wrote: > On Wed, 19 Sep 2007, Frost, Mark {PBG} wrote: > >> Hello. We've been noticing that our Nagios host (Red Hat ES 3 release >> 3) has been sending out quite a lot of IPv6 DNS requests (I guess those >> are "AAAA" record requests on port 53). As our box is not configured to >> do IPv6, this was a puzzlement. At first I assumed it was some weird >> resolver library configuration issue, but we couldn't find anything. >> >> We started running funky queries (ones we new Nagios wouldn't normally >> run) and looking for them via tcpdump on port 53. We found that if we >> ran pretty much any off the nagios-plugins package, it would generate >> these IPv6 packets. I did not enable IPv6 when I built the package. I >> tried rebuilding everything explicitly saying "--without-ipv6". It made >> no difference. > > I guess you have hosts defined by name and not by IP address. > > So the normal thing to do is find both IPv4 and IPv6 addresses of the host > and then decide how to contact the host. > > So unless you have an operational problem I would ignore it as business as > usual. > It's still a fairly nasty bug though. Imo, Ipv6 is not widely used enough to warrant including code for it in the plugins unless explicitly asked to when compiling them. For a large installation, doing 4-6 IPv6 dns queries (which fail) will take a lot of time and consume a lot of resources. AFAIK, there are only very few networks in the entire world that fully support IPv6. If nothing else, the plugins should probably try IPv4 first and just ignore trying to query with IPv6 if IPv4 works. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Thu Sep 20 10:03:14 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 20 Sep 2007 09:03:14 +0100 Subject: dont check service when host down In-Reply-To: References: <46F11D20.1070909@googlemail.com> Message-ID: <46F22942.5090407@googlemail.com> You should send email or at least CC to the Nagios-users at lists.sourceforge.net so that everyone else can read your email posting. I think that we have discussed the issue enough and it is not a huge problem. After max check attempts which is configurable, the scheduled checking of services will be carried out at the same interval as normal and this means that the load on the monitoring server would remain constant. I still think that it would be a nice feature to allow this to be set by the nagios administrator depending on his/her preference and environment but the developer time is limited and there are much better performance related improvements for them to do first. The "fix it yourself and submit a patch" is a bit offputting, especially as most admins are not developers and I'd need to brush up on my C to do this, but they are also right, community help is good,and while I don't have time at the moment, if this isn't done in 6 months then perhaps I'll try and find time to do it. Otherwise, I wouldn't worry about it too much, as noted above, it's not a real performance problem and there are bigger performance savings to be made elsewhere first. -h Hari Sekhon Detrak wrote: > I am reading with attention this thread. I'm chocked that these > feature is not integrate in any version of Nagios. A supervision > server must be reliable and scalable. If a massive host down make a > DOS on the server, make supervision has no more sense. > > The solution with dependencie on service and host is not perfect in my > opinion, too parameter to do! and can we make a dependencie for a > service on a host? with oreon, I can't... > > I think maybe a temporary solution : > does a event handler on the host who disable all service attached to > the host and reactivate these service when host coming back up. > > what do you think about these? > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Thu Sep 20 14:09:00 2007 From: michaelkintzios at gmail.com (Mick) Date: Thu, 20 Sep 2007 13:09:00 +0100 Subject: No statusmap.cgi Message-ID: <200709201309.11175.michaelkintzios@gmail.com> Hi All, I am looking at a Nagios installation which does not seem to have a statusmap spider diagram. Could you please help me troubleshoot this? I have these entries in cgi.cgf: ============================================ physical_html_path=/home/webadmin/nagios.my_domain.com/html url_html_path= default_statusmap_layout=4 default_statuswrl_layout=4 ============================================ Not sure what else is relevant. -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Sep 20 14:12:01 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 20 Sep 2007 14:12:01 +0200 Subject: No statusmap.cgi In-Reply-To: <200709201309.11175.michaelkintzios@gmail.com> References: <200709201309.11175.michaelkintzios@gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E1688@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mick > Sent: 20 September 2007 14:09 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] No statusmap.cgi > > Hi All, > > I am looking at a Nagios installation which does not seem to have a > statusmap > spider diagram. Could you please help me troubleshoot this? > http://www.google.co.uk/search?hl=en&q=missing+%22statusmap.cgi%22&meta= ?? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michaelkintzios at gmail.com Thu Sep 20 14:16:35 2007 From: michaelkintzios at gmail.com (Mick) Date: Thu, 20 Sep 2007 13:16:35 +0100 Subject: No statusmap.cgi In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57448E1688@hermes.sapphire-int.gi> References: <200709201309.11175.michaelkintzios@gmail.com> <9D30659ABCA7FB428CF91E386C3A57448E1688@hermes.sapphire-int.gi> Message-ID: <200709201316.37101.michaelkintzios@gmail.com> On Thursday 20 September 2007, you wrote: > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mick > > Sent: 20 September 2007 14:09 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] No statusmap.cgi > > > > Hi All, > > > > I am looking at a Nagios installation which does not seem to have a > > statusmap > > spider diagram. Could you please help me troubleshoot this? > > http://www.google.co.uk/search?hl=en&q=missing+%22statusmap.cgi%22&meta= > > ?? Thank you - I missed this in my search. Looking into it now. -- Regards, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gillnaldo at yahoo.com Thu Sep 20 15:08:03 2007 From: gillnaldo at yahoo.com (sunchai (gillnaldo : sun)) Date: Thu, 20 Sep 2007 06:08:03 -0700 (PDT) Subject: Nagios latency on service more than 1000 Message-ID: <336424.10051.qm@web32205.mail.mud.yahoo.com> Hi nagios list, I've problem with service/host check latency with service more than 1000 and host more than 100. Please advise me to tune-up as my requirement. My requirement need service check & alert not more than 5 minutes. All alert must check interval 3 times before alert. The server cpu usage/memory use only 50% only. The nagios summary show on ======================================= HOST SCHEDULING INFORMATION --------------------------- Total hosts: 170 Total scheduled hosts: 170 Host inter-check delay method: NONE Host inter-check delay: 0.00 sec Max host check spread: 5 min First scheduled check: Thu Sep 20 20:05:13 2007 Last scheduled check: Thu Sep 20 20:05:13 2007 SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 1101 Total scheduled services: 1101 Service inter-check delay method: NONE Inter-check delay: 0.00 sec Interleave factor method: SMART Average services per host: 6.48 Service interleave factor: 7 Max service check spread: 5 min First scheduled check: Thu Sep 20 20:05:13 2007 Last scheduled check: Thu Sep 20 20:05:13 2007 CHECK PROCESSING INFORMATION ---------------------------- Service check reaper interval: 3 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS ----------------------- * Host checks might be scheduled too closely together - consider increasing 'check_interval' option for your hosts ======================================= Thank in advance Gillnaldo - --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin 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 Sep 20 16:02:01 2007 From: marc at ena.com (Marc Powell) Date: Thu, 20 Sep 2007 09:02:01 -0500 Subject: Nagios latency on service more than 1000 In-Reply-To: <336424.10051.qm@web32205.mail.mud.yahoo.com> References: <336424.10051.qm@web32205.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of sunchai (gillnaldo : sun) > Sent: Thursday, September 20, 2007 8:08 AM > To: nagios-users at lists.sourceforge.net > Cc: gillnaldo at yahoo.com > Subject: [Nagios-users] Nagios latency on service more than 1000 > > Hi nagios list, > > I've problem with service/host check latency with service more than 1000 > and host more than 100. Please advise me to tune-up as my requirement. > My requirement need service check & alert not more than 5 minutes. All > alert must check interval 3 times before alert. The server cpu > usage/memory use only 50% only. Hmm. That implies normal_check_interval 2, retry_check_interval 1, max_check_attempts 3. You'll be doing 8 concurrent checks per second if they all exit immediately. You'll want to reap those service results as quickly as possible. Have you read the performance tuning documentation yet? There's a lot of good stuff there. > The nagios summary show on > ======================================= > HOST SCHEDULING INFORMATION > --------------------------- > Total hosts: 170 > Total scheduled hosts: 170 You certainly don't want scheduled host checks. With nagios-2 and prior, everything else stops while a host is being checked. If every host check completed in 1 second you've just told nagios to not check services, or do anything else for that matter, for about 3 minutes out of every 5. Nagios will automagically figure out if it needs to run a host check as necessary based on the state of its services. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dallas at oldbrownjeep.net Thu Sep 20 16:30:28 2007 From: dallas at oldbrownjeep.net (Dallas Helquist) Date: Thu, 20 Sep 2007 08:30:28 -0600 Subject: NDO Issues Message-ID: <46F28404.9080105@oldbrownjeep.net> Hello, I am running nagios 2.9, and am now trying to get ndoutils-1.4b5 working properly. I followed the README and now have data being written to the database. The problem I am running into is that ndomod can't seem to stay connected to ndo2db. I have tried with ndo2db running on the local host via unix socket & tcp socket, as well as running directly on the database server (remote tcp socket of course). The error in the nagios.log is: [1190298022] ndomod: Successfully flushed 204 queued items to data sink. [1190298028] ndomod: Error writing to data sink! Some output may get lost... [1190298044] ndomod: Successfully reconnected to data sink! 0 items lost, 320 queued items to flush. [1190298044] ndomod: Successfully flushed 320 queued items to data sink. [1190298050] ndomod: Error writing to data sink! Some output may get lost... [1190298066] ndomod: Successfully reconnected to data sink! 0 items lost, 233 queued items to flush. [1190298066] ndomod: Successfully flushed 233 queued items to data sink. This is repeated over and over. Again, I am getting data inserted into the appropriate tables, but keep seeing this in the logs. Any idea on where to start troubleshooting? I can't seem to find a debug option in the ndomod.cfg. -dallas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rup001 at yahoo.com Thu Sep 20 17:13:36 2007 From: rup001 at yahoo.com (vuppala rupesh) Date: Thu, 20 Sep 2007 08:13:36 -0700 (PDT) Subject: new host added to config file and not showing up GUI Message-ID: <695096.96874.qm@web54607.mail.re2.yahoo.com> Hi I have added a new host to my config file when i restart nagios my GUI is not showing up instance added. Any idea?? define host { host_name ANCC-Stdby alias SOMP Stdby database ab35 parents ab35 use generic-host address 10.1.3.250 check_command check_host_ANCC-Stdby_alive contact_groups operations-admins } # Generated Nagios Host Check Command "check_host_ANCC-Stdby_alive" define command { command_name check_host_ANCC-Stdby_alive command_line $USER1$/get-host-watcher-results.sh $HOSTNAME$ } Thanks rup Thanks & Regards Rupesh Vuppala Mobile# 850 212 7704 --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gcoochey at sapphire.gi Thu Sep 20 17:17:22 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Thu, 20 Sep 2007 17:17:22 +0200 Subject: new host added to config file and not showing up GUI In-Reply-To: <695096.96874.qm@web54607.mail.re2.yahoo.com> References: <695096.96874.qm@web54607.mail.re2.yahoo.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A57448E16AA@hermes.sapphire-int.gi> Couple of things come to mind. Have you defined any services for this host? When you stop nagios are there any left over nagios processes still running? ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of vuppala rupesh Sent: 20 September 2007 17:14 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] new host added to config file and not showing up GUI Hi ? I have added a new host to my config file when i restart nagios my GUI is not showing up instance added. Any idea?? ? define host { ?? host_name ANCC-Stdby ?? alias SOMP Stdby database?ab35 ?? parents?ab35 ?? use generic-host ?? address 10.1.3.250 ?? check_command check_host_ANCC-Stdby_alive ?? contact_groups operations-admins } # Generated Nagios Host Check Command "check_host_ANCC-Stdby_alive" define command { ?? command_name check_host_ANCC-Stdby_alive ?? command_line $USER1$/get-host-watcher-results.sh $HOSTNAME$ } ? Thanks rup Thanks & Regards Rupesh Vuppala Mobile# 850 212 7704 ________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rup001 at yahoo.com Thu Sep 20 17:26:26 2007 From: rup001 at yahoo.com (vuppala rupesh) Date: Thu, 20 Sep 2007 08:26:26 -0700 (PDT) Subject: new host added to config file and not showing up GUI In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57448E16AA@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57448E16AA@hermes.sapphire-int.gi> Message-ID: <628681.29429.qm@web54601.mail.re2.yahoo.com> I have added below service to the host. even i checked no process were running when i restarted nagios. # "oracle-standby-process-service" define service { name oracle-standby-process-service service_description standby use passive-service host_name ANCC-Stdby check_command stale-service-alert passive_checks_enabled 1 contact_groups operations-admins } Thanks rup Giles Coochey wrote: Couple of things come to mind. Have you defined any services for this host? When you stop nagios are there any left over nagios processes still running? ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of vuppala rupesh Sent: 20 September 2007 17:14 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] new host added to config file and not showing up GUI Hi I have added a new host to my config file when i restart nagios my GUI is not showing up instance added. Any idea?? define host { host_name ANCC-Stdby alias SOMP Stdby database ab35 parents ab35 use generic-host address 10.1.3.250 check_command check_host_ANCC-Stdby_alive contact_groups operations-admins } # Generated Nagios Host Check Command "check_host_ANCC-Stdby_alive" define command { command_name check_host_ANCC-Stdby_alive command_line $USER1$/get-host-watcher-results.sh $HOSTNAME$ } Thanks rup ________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Roy.Marantz at deshaw.com Thu Sep 20 18:06:04 2007 From: Roy.Marantz at deshaw.com (Marantz, Roy) Date: Thu, 20 Sep 2007 12:06:04 -0400 Subject: Nagios processes hang In-Reply-To: <46EDB21B.6050102@op5.se> References: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D503BEB29D@mailnyc2.nyc.deshaw.com> <46EDB21B.6050102@op5.se> Message-ID: <79E1CCEA5FBE864CBA3C3B5E1FE8A1D5044B5CDC@mailnyc2.nyc.deshaw.com> FYI I think this is (mostly) fixed by adjusting the non-documented? external_command_buffer_slots parameter to be a large value, I'm using 10000 and by turning OFF aggregate_writes in nsca.cfg. I think there may still be a problem in that passive check can take many minutes to be reflected in the status display, but at least the server and nsca don't hang/crash anymore. If I find out anything else, I'll let the list know. Thanks. Roy P.S. Nsca.c looks like it need some locking to prevent multiple nsca (sub)processes using aggregated writes from clobbering each others messages to the command pipe. I saw indications of this happening in the nagios server log. -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Sunday, September 16, 2007 6:46 PM To: Marantz, Roy Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Nagios processes hang Marantz, Roy wrote: > I'm running Nagios 2.8 with around 1400 hosts and around 14000 services > defined. I have about 700 active service and the rest come in via nsca. > > My problem has a few symptoms: > 1) I collect defunct Nagios processes, around 300 per day > 2) the command pipe stops getting read so nsca is dumping data to its > dump file > 3) active service checks have very long (hours) latency > > These all sound like the same problem to me, but I don't know how to > diagnose it. Any help would be appreciated. I have run nagios -s and > it doesn't suggest anything. I'm using check_fping for host checks and > my remaining active service checks. Attached is the output from nagios > -v and my nagios.cfg. Thanks in advance for any help. The trouble is the FIFO, which holds a maximum of 4096 bytes by default, meaning it quickly becomes a bottleneck. Nagios tries to empty it as soon as there's data available on it, but fails to keep up with the data-spam from nsca. You could try re-nicing the nagios process, which might make it capable of staying ahead of nsca. Otherwise you could try modifying the FIFO size and recompile the kernel. Alternatively, patch nagios and nsca to use a unix socket and use setsockopt() to up the read/write buffer on that socket to 256 KiB. The fourth, and possibly tricksiest alternative, is to rewrite nsca as a neb-module, have it run in a separate thread and update nagios' status data directly. This last method will scale best but is by far the most difficult. Good luck -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.sibon at triple-it.nl Thu Sep 20 18:06:33 2007 From: c.sibon at triple-it.nl (Clemens Sibon) Date: Thu, 20 Sep 2007 18:06:33 +0200 Subject: Problem with Nagios && NRPE Message-ID: Hello all, After 3 days of frustrated debugging, I turn to the mailinglist because I don't get it anymore.. I successfully installed Nagios (first 3.0.3b, later tried the latest 2.9 release), nagios-plugins 1.4.9 and nrpe 2.8.1 (with SSL). My problem is that I can successfully check all the remote commands I have defined on the remote server in nrpe.cfg from the commandline (check_nrpe -H selene -c check_usr for example). Problem is that the results returned and showed in the website for this checks don't match. [root at sansha libexec]# ./check_nrpe -H selene -c check_usr DISK OK - free space: /usr 4467 MB (81% inode=97%);| /usr=1029MB;5216;5506;0;5796 and in the webpage it states: DISK OK - free space: /usr 4588 MB (83% inode=97%): The difference is not too big but I can't explain it (not a factor 1.024 for example). The check for the number of users is totally off, showing 1 even when 5 are logged in. Besides this problem, I have also defined some other checks, for example check_pmon: command[check_pmon]=/usr/local/nagios/libexec/check_oracle --db orcl When I check this one from the monitoring server on the console I get: [root at sansha libexec]# ./check_nrpe -H selene -c check_pmon orcl OK - 1 PMON process(es) running Looks fine, but what does the website show me? NRPE: Command 'check_pmon' not defined Same happens with some checks I made for specific partitions like /opt/oracle and /opt/oracle/oradata.... I tried running nrpe with 'debug=1' but it doesn't provide any usefull info in syslog: Sep 20 18:01:18 selene xinetd[8511]: START: nrpe pid=15307 from=192.168.15.5 Sep 20 18:01:18 selene nrpe[15307]: INFO: SSL/TLS initialized. All network traffic will be encrypted. What am I missing here? I don't know anymore.... -- Met vriendelijke groet / with kind regards, Clemens Sibon Triple IT Pettemerstraat 12a 1823 CW Alkmaar Tel: +31 (0)72 5129516 Fax: +31 (0)72 5129520 Email: c.sibon at triple-it.nl ********************************************************************** De in dit emailbericht verstrekte informatie is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Het kopieren van of verstrekken aan en gebruik door derden van deze informatie is niet toegestaan. Door de elektronische verzending van dit bericht kunnen er geen rechten worden ontleend aan de informatie. 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 it to the sender. ********************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Sep 20 18:10:53 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 20 Sep 2007 18:10:53 +0200 (CEST) Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <46F224CA.5010008@op5.se> References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> <46F224CA.5010008@op5.se> Message-ID: On Thu, 20 Sep 2007, Andreas Ericsson wrote: > Hugo van der Kooij wrote: >> On Wed, 19 Sep 2007, Frost, Mark {PBG} wrote: >> >>> Hello. We've been noticing that our Nagios host (Red Hat ES 3 release >>> 3) has been sending out quite a lot of IPv6 DNS requests (I guess those >>> are "AAAA" record requests on port 53). As our box is not configured to >>> do IPv6, this was a puzzlement. At first I assumed it was some weird >>> resolver library configuration issue, but we couldn't find anything. >>> >>> We started running funky queries (ones we new Nagios wouldn't normally >>> run) and looking for them via tcpdump on port 53. We found that if we >>> ran pretty much any off the nagios-plugins package, it would generate >>> these IPv6 packets. I did not enable IPv6 when I built the package. I >>> tried rebuilding everything explicitly saying "--without-ipv6". It made >>> no difference. >> >> I guess you have hosts defined by name and not by IP address. >> >> So the normal thing to do is find both IPv4 and IPv6 addresses of the host >> and then decide how to contact the host. >> >> So unless you have an operational problem I would ignore it as business as >> usual. >> > > It's still a fairly nasty bug though. Imo, Ipv6 is not widely used enough to > warrant including code for it in the plugins unless explicitly asked to when > compiling them. For a large installation, doing 4-6 IPv6 dns queries (which > fail) will take a lot of time and consume a lot of resources. > > AFAIK, there are only very few networks in the entire world that fully support > IPv6. If nothing else, the plugins should probably try IPv4 first and just > ignore trying to query with IPv6 if IPv4 works. I think that a pluging will just follow the host definition. I doubt there is anything you can change in the plugins to ignore IPv6 resolving if you use a hostname. It is something that should be part of your resolver library behaviour. So it should be configured there. Hugo. -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ This message is using 100% recycled electrons. Some men see computers as they are and say "Windows" I use computers with Linux and say "Why Windows?" (Thanks JFK, for this quote of George Bernard Shaw.) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.sibon at triple-it.nl Thu Sep 20 19:28:49 2007 From: c.sibon at triple-it.nl (Clemens Sibon) Date: Thu, 20 Sep 2007 19:28:49 +0200 Subject: Problem with Nagios && NRPE solved! References: Message-ID: Hi all, I got the solution to my problem within 20 minutes (thans again Janet)! The IP address in the config file was wrong and the command line tool uses the hostname so I was checking two different servers! -- Met vriendelijke groet / with kind regards, Clemens Sibon Triple IT Pettemerstraat 12a 1823