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 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. ********************************************************************** > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of Clemens Sibon > Sent: Thursday, September 20, 2007 18:07 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problem with Nagios && NRPE > > 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 > ------------------------------------------------------------------------- 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 19:14:30 2007 From: michaelkintzios at gmail.com (Mick) Date: Thu, 20 Sep 2007 18:14:30 +0100 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> <46F224CA.5010008@op5.se> Message-ID: <200709201814.43785.michaelkintzios@gmail.com> On Thursday 20 September 2007, 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). > 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. Some ideas: I am not up to speed with RedHat, but if you have a /etc/hosts file or equivalent and the particular FQDN that you monitor has a fixed IP address you can make an entry there so that the server does not need to go out to a DNS server to resolve the address. Failing that look at 1-4 below in order of relative complexity: 1. Issuing the appropriate sysctl command to modify a relevant ipv6 setting (not sure what this would be). 2. Configuring iptables to block ipv6 outgoing addresses. 3. Rebuilding nagios-plugins without the ipv6 flag. 4. Rebuilding the kernel without ipv6 support. HTH. -- 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 20:36:12 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Thu, 20 Sep 2007 14:36:12 -0400 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <200709201814.43785.michaelkintzios@gmail.com> References: <200709201814.43785.michaelkintzios@gmail.com> Message-ID: <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> Another team here manages IPs/DNS so we're not looking to hardcode IPs for hundreds of hosts we don't manage and won't be aware of IP changes for. The thing about #3 is that it seems that no matter how compile the plugins, it will still use IPv6 if it detects that your include files support AF_INET6. You can't turn it off short of finding some way to turn it off in your OS which seems a bit extreme to me. I've always accepted that on any flavor of Linux I use, IPv6 is available even if I'm not using it. The idea that some application is going to start using it when I have no configured interface or any other indication that IPv6 is in use baffles me. Beyond that that these plugins would opt to generate an extra say 4x network traffic that I can explicitly tell them not to also baffles me. I mean, what do I have to do to convince 'check_nt' that no, I really really really don't want it sending out IPv6 traffic? I've manually change the config.h for nagios-plugins to undefine both "HAVE_IPV6" and "USE_IPV6" and found it makes no difference. We're looking to changes the modules file for this box to prevent any component of IPv6 being loaded, but I'm still not convinced that will dissuade the plugins from going on their merry way. Thanks for everyone's replies, by the way! Mark -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Mick Sent: Thursday, September 20, 2007 1:15 PM To: Nagios Users mailinglist Subject: Re: [Nagios-users] Standard Nagios Plugins 1.4.9 and IPv6 problem? On Thursday 20 September 2007, 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). > 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. Some ideas: I am not up to speed with RedHat, but if you have a /etc/hosts file or equivalent and the particular FQDN that you monitor has a fixed IP address you can make an entry there so that the server does not need to go out to a DNS server to resolve the address. Failing that look at 1-4 below in order of relative complexity: 1. Issuing the appropriate sysctl command to modify a relevant ipv6 setting (not sure what this would be). 2. Configuring iptables to block ipv6 outgoing addresses. 3. Rebuilding nagios-plugins without the ipv6 flag. 4. Rebuilding the kernel without ipv6 support. HTH. -- Regards, Mick ------------------------------------------------------------------------- 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 20:44:19 2007 From: c.sibon at triple-it.nl (Clemens Sibon) Date: Thu, 20 Sep 2007 20:44:19 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt><46F224CA.5010008@op5.se> <200709201814.43785.michaelkintzios@gmail.com> Message-ID: Hi Mick, Just another approach: install a caching only nameserver on the monitoring server and configure that as the first nameserver in resolv.conf. This way, you will probably reduce the traffic and maybe even increase speed... I am not too familiar with IPv6 so maybe caching doesn't work as it does on IPv4, in that case, just ignore my humble attempt to help :-) -- 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 michaelkintzios at gmail.com Thu Sep 20 21:04:14 2007 From: michaelkintzios at gmail.com (Mick) Date: Thu, 20 Sep 2007 20:04:14 +0100 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: References: <7F477BD26F545A4C8E4779754A38EFB3027DF8F5@PEPWMV00043.corp.pep.pvt> <200709201814.43785.michaelkintzios@gmail.com> Message-ID: <200709202004.14869.michaelkintzios@gmail.com> On Thursday 20 September 2007, you wrote: > Hi Mick, > > Just another approach: install a caching only nameserver on the > monitoring server and configure that as the first nameserver in > resolv.conf. This way, you will probably reduce the traffic and maybe > even increase speed... > > I am not too familiar with IPv6 so maybe caching doesn't work as it does > on IPv4, in that case, just ignore my humble attempt to help :-) Hi Clemens, I think you meant to say "Hi Mark"? - I am not the OP. Since Mark has many addresses/hosts to lookup then a local caching nameserver will definitely reduce traffic to the DNS servers, but every now and then it'll need some maintenance (i.e. refreshing the list of the root servers). I guess it's one more thing to look after. -- 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 scubacuda at gmail.com Thu Sep 20 22:35:39 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Thu, 20 Sep 2007 13:35:39 -0700 Subject: Nagios Log Management Tips? Message-ID: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> Anyone have any tips for dealing with Nagios logs? Things are getting a little crazy, and I haven't even been logging very much! e.g. [root at nagios-server run]# find / *nagios* -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' /var/log/nagios/archives/nagios-08-14-2007-00.log: 2.3G /var/log/nagios/archives/nagios-08-13-2007-00.log: 3.4G /var/log/nagios/archives/nagios-08-12-2007-00.log: 2.6G /var/log/messages.4: 3.5G [root at nagios-server run]# ------------------------------------------------------------------------- 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 mail at aidananderson.co.uk Thu Sep 20 22:45:22 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Thu, 20 Sep 2007 21:45:22 +0100 Subject: Nagios Log Management Tips? In-Reply-To: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> References: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> Message-ID: <46F2DBE2.3030001@aidananderson.co.uk> Rogelio Bastardo wrote: > Anyone have any tips for dealing with Nagios logs? > > Things are getting a little crazy, and I haven't even been logging very much! > > e.g. > > [root at nagios-server run]# find / *nagios* -type f -size +1000000k > -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' > /var/log/nagios/archives/nagios-08-14-2007-00.log: 2.3G > /var/log/nagios/archives/nagios-08-13-2007-00.log: 3.4G > /var/log/nagios/archives/nagios-08-12-2007-00.log: 2.6G > /var/log/messages.4: 3.5G > [root at nagios-server run]# > > ------------------------------------------------------------------------- > > Good grief, what on earth are you logging? I'm monitoring over 1000 hosts and 1600 services and my daily logs range between 600KB and 1.5MB. Can you post a snippet of your log (say a 15min span ) so we can get an idea of what it is logging? I'd love to see how your browser copes with viewing the daily log. Aidan ------------------------------------------------------------------------- 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.nail at amd.com Thu Sep 20 22:46:30 2007 From: tom.nail at amd.com (Tom Nail) Date: Thu, 20 Sep 2007 15:46:30 -0500 Subject: Nagios Log Management Tips? In-Reply-To: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> References: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> Message-ID: <46F2DC26.80704@amd.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rogelio Bastardo wrote: > Anyone have any tips for dealing with Nagios logs? > > Things are getting a little crazy, and I haven't even been logging very much! > > e.g. > > [root at nagios-server run]# find / *nagios* -type f -size +1000000k > -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' > /var/log/nagios/archives/nagios-08-14-2007-00.log: 2.3G > /var/log/nagios/archives/nagios-08-13-2007-00.log: 3.4G > /var/log/nagios/archives/nagios-08-12-2007-00.log: 2.6G > /var/log/messages.4: 3.5G > [root at nagios-server run]# > gzip comes to mind, since this is ASCII data it should compress nicely. Also, there are several log rotation scripts out there, including the "logrotate" utility supplied in RedHat and other Linux distros. Try "man logrotate' on one of them for more information. Cheers, - -=Tom Nail -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG8twm1zsLRjt/NQ0RAvKOAJ4mxJO5nWMULVHDJ/+7JtybkM8BzQCbBWXE DpaU9AZVLETFgS31QRSAXj0= =auBZ -----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 scubacuda at gmail.com Fri Sep 21 00:52:19 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Thu, 20 Sep 2007 15:52:19 -0700 Subject: Nagios Log Management Tips? In-Reply-To: <46F2DBE2.3030001@aidananderson.co.uk> References: <2b7af7c40709201335j1b048fcaj51c6e4ff8866168c@mail.gmail.com> <46F2DBE2.3030001@aidananderson.co.uk> Message-ID: <2b7af7c40709201552g3f5fe9c7r16a155c276eae928@mail.gmail.com> > Good grief, what on earth are you logging? I'm monitoring over 1000 > hosts and 1600 services and my daily logs range between 600KB and > 1.5MB. Can you post a snippet of your log (say a 15min span ) so we can > get an idea of what it is logging? This is just a test box, and I'm wondering if it had something to do with the me goofing around with n2rrd or something like that. Knowing that they should be this size (or anywhere close to this size) is a good thing to know. All that I'm monitoring (in my test environment) is like 20 Exchange servers and some networking equipment. All in all, probably about 100 services. Thanks for the reality check! ------------------------------------------------------------------------- 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 alex_b at users.sourceforge.net Fri Sep 21 02:06:00 2007 From: alex_b at users.sourceforge.net (Alex Burger) Date: Thu, 20 Sep 2007 20:06:00 -0400 Subject: NDO Issues In-Reply-To: <46F28404.9080105@oldbrownjeep.net> References: <46F28404.9080105@oldbrownjeep.net> Message-ID: <46F30AE8.2060405@users.sourceforge.net> Dallas Helquist wrote: > 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. I have been getting the same error with Nagios 2.8 and NDOUtils-1.4b5 configured with a unix socket. The data *is* being logged, but never on the first attempt. All of my 'Error writing to data sink!' errors are coming from line 776 of ndomod.c in ndomod_write_to_sink(). From what I can see it is never able to write the data to the socket after it's received. It always has to put it in the buffer for later processing. About 15 seconds after the failed attempt, ndomod manages to write it from the buffer. I tried with TCP sockets and I had the same results. It appears to be a bug. Hopefully it's easy to fix... Alex ------------------------------------------------------------------------- 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 viniciusfs at gmail.com Fri Sep 21 13:57:35 2007 From: viniciusfs at gmail.com (=?ISO-8859-1?Q?Vin=EDcius_de_Figueiredo?=) Date: Fri, 21 Sep 2007 08:57:35 -0300 Subject: NRPE & Nagios Plugins - Static Compilation? Message-ID: Hi all. I need to deploy Nagios in some Solaris and Linux boxes that I can't install dependencies (like OpenSSL and others). Is there a way to create fat binaries with dependencies included? Or force Nagios to use dependencies located in a fixed location like /usr/local/nagios/libs? My idea is to create a package (or a simple tar.gz) with all Nagios related stuff without the need to install files outside the Nagios directory. Thanks. -- Vin?cius. personal site - http://vinicius.oitobits.net gaming blog - http://www.oitobits.net ------------------------------------------------------------------------- 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 Fri Sep 21 14:54:39 2007 From: digolinopage at yahoo.com.br (Rodrigo Tavares) Date: Fri, 21 Sep 2007 09:54:39 -0300 (ART) Subject: Configure smtp in Nagios Message-ID: <680463.18642.qm@web56308.mail.re3.yahoo.com> Hello, How I do configure smtp in Nagios ? best regards, 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 mail at aidananderson.co.uk Fri Sep 21 16:15:57 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Fri, 21 Sep 2007 15:15:57 +0100 Subject: Configure smtp in Nagios In-Reply-To: <680463.18642.qm@web56308.mail.re3.yahoo.com> References: <680463.18642.qm@web56308.mail.re3.yahoo.com> Message-ID: <46F3D21D.9010508@aidananderson.co.uk> Rodrigo Tavares wrote: > Hello, > > How I do configure smtp in Nagios ? > > best regards, > > Rodrigo Faria > You don't. Whatever mail server you are running on the Nagios box will take care of SMTP. Nagios simply pipes the notification through the /bin/mail command or whatever command suits the mail server. Most distros come with Sendmail or Postfix by default, just make sure you have one running and configured to route mail. Aidan ------------------------------------------------------------------------- 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 Fri Sep 21 16:29:29 2007 From: ton.voon at altinity.com (Ton Voon) Date: Fri, 21 Sep 2007 15:29:29 +0100 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> Message-ID: On 20 Sep 2007, at 19:36, Frost, Mark {PBG} wrote: > We're looking to changes the modules file for this box to prevent any > component of IPv6 being loaded, but I'm still not convinced that will > dissuade the plugins from going on their merry way. Sorry to jump in late on this thread. In the plugins code, the is_hostname routine tries to verify if the hostname is valid and I think this is through the resolver libraries, so will use DNS (regardless of OS caching). I think more recent resolver libraries will try ipv6 resolution before ipv4, which is beyond the scope of the plugins. As some people have already pointed out, checking the validity of the hostname is redundant. The better approach is to just make the call with the hostname specified on the command line and catch any errors. I believe this is why your DNS servers see multiple calls for the same hostname from a single plugin invocation. While removing the is_hostname calls is not too difficult, making sure that an appropriate error is propagated into the plugin output could be quite time-consuming. 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 digolinopage at yahoo.com.br Fri Sep 21 16:46:16 2007 From: digolinopage at yahoo.com.br (Rodrigo Tavares) Date: Fri, 21 Sep 2007 11:46:16 -0300 (ART) Subject: Configure smtp in Nagios In-Reply-To: References: Message-ID: <61288.4123.qm@web56310.mail.re3.yahoo.com> Hello Valdinger, Do I need configure the smtp server in same machine at nagios ? Can I use a other smtp server in my network ? Best regards, Rodrigo Faria --- "Valdinger, Stephen (DOV, MSX)" escreveu: > Are you referring to setting up notifications via > email? In that case you need to configure your MTA > on the Nagios box to use the smtp server on your > network. I recommend Postfix or Sendmail to > accomplish this. > > > http://nagios.sourceforge.net/docs/3_0/notifications.html > for a good start on setting things up. > > -----Original Message----- > From: Rodrigo Tavares > [mailto:digolinopage at yahoo.com.br] > Sent: Friday, September 21, 2007 8:55 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configure smtp in Nagios > > Hello, > > How I do configure smtp in Nagios ? > > best regards, > > 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 > > 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 Fri Sep 21 16:52:23 2007 From: marc at ena.com (Marc Powell) Date: Fri, 21 Sep 2007 09:52:23 -0500 Subject: Configure smtp in Nagios In-Reply-To: <61288.4123.qm@web56310.mail.re3.yahoo.com> References: <61288.4123.qm@web56310.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: Friday, September 21, 2007 9:46 AM > To: Valdinger, Stephen (DOV, MSX); nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Configure smtp in Nagios > > > Hello Valdinger, > > Do I need configure the smtp server in same machine at > nagios ? > > Can I use a other smtp server in my network ? Take look at the notifications section of the Nagios FAQ. -- 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 holger at CIS.FU-Berlin.DE Fri Sep 21 16:59:57 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Fri, 21 Sep 2007 16:59:57 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> References: <200709201814.43785.michaelkintzios@gmail.com> <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> Message-ID: <20070921145957.GF6565795@CIS.FU-Berlin.DE> * "Frost, Mark {PBG}" [2007-09-20 14:36]: > The thing about #3 is that it seems that no matter how compile the > plugins, it will still use IPv6 if it detects that your include files > support AF_INET6. You can't turn it off short of finding some way to > turn it off in your OS which seems a bit extreme to me. I've always > accepted that on any flavor of Linux I use, IPv6 is available even if > I'm not using it. The idea that some application is going to start > using it when I have no configured interface or any other indication > that IPv6 is in use baffles me. Beyond that that these plugins would > opt to generate an extra say 4x network traffic that I can explicitly > tell them not to also baffles me. I mean, what do I have to do to > convince 'check_nt' that no, I really really really don't want it > sending out IPv6 traffic? To be nitpicking, it doesn't "send out IPv6 traffic", it merely asks your resolver library for the address of some host name without explicitely stating that it's only interested in an IPv4 address. Asking for an IPv4 address only is certainly possible, though IMO it's more appropriate to disable IPv6 system-wide if, well, you want it disabled system-wide. However, disabling IPv6 lookups on the application level can of course be useful in certain cases within mixed v4/v6 environments. And I agree that "--without-ipv6" doesn't do what you'd expect it to do. At least it doesn't seem to be a documented option :-) Anyway, if noone beats me on it, I'll fix "--without-ipv6" for the next release (at least for most C plugins), and I'll put "-4"/"-6" flags for all plugins which lookup host names on my TODO list. Until then, the following patch should work around your problem for most C plugins: ----------------------------------------------------------- --- netutils.c.orig 2007-01-20 07:07:48.000000000 +0100 +++ netutils.c 2007-09-21 16:28:13.117372070 +0200 @@ -39,7 +39,7 @@ unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; int econn_refuse_state = STATE_CRITICAL; int was_refused = FALSE; -int address_family = AF_UNSPEC; +int address_family = PF_INET; /* handles socket timeouts */ void ----------------------------------------------------------- Holger ------------------------------------------------------------------------- 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 21 17:06:15 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 21 Sep 2007 17:06:15 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <20070921145957.GF6565795@CIS.FU-Berlin.DE> References: <200709201814.43785.michaelkintzios@gmail.com> <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> <20070921145957.GF6565795@CIS.FU-Berlin.DE> Message-ID: <46F3DDE7.8040408@op5.se> Holger Weiss wrote: > To be nitpicking, it doesn't "send out IPv6 traffic", it merely asks .. > following patch should work around your problem for most C plugins: > > ----------------------------------------------------------- > --- netutils.c.orig 2007-01-20 07:07:48.000000000 +0100 > +++ netutils.c 2007-09-21 16:28:13.117372070 +0200 > @@ -39,7 +39,7 @@ > unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; > int econn_refuse_state = STATE_CRITICAL; > int was_refused = FALSE; > -int address_family = AF_UNSPEC; > +int address_family = PF_INET; > Since we're nitpicking anyways, this should be AF_INET, although any system where AF_INET != PF_INET is quite clearly insane ;-) -- 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 mark.frost1 at pepsi.com Fri Sep 21 17:20:53 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Fri, 21 Sep 2007 11:20:53 -0400 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: References: Message-ID: <7F477BD26F545A4C8E4779754A38EFB30281E172@PEPWMV00043.corp.pep.pvt> Actually, what seems to happen is this, assuming the plugin is trying to run a check on foo.bar.com (note that we have multiple search domains configured): - the plugins sees that the box has definitions for IPv6 so it opens that socket type and has the resolver query (generates requests for AAAA record types). - because that first request fails, it sends another request now trying with a search domain combination, say "foo.bar.com.biz.pvt" (usually just stupidly appending a domain to an already FQDN). That fails, so it continues on down the search domain list until it's exhaused. They all fail of course. So with 4 search domains, that's 5 queries of AAAA records. - now the system fails back to IPv4 and does a A record query and magically, gets an answer the first try. As has been suggested, we were already trying to get a caching DNS server on this box (yes, it seems nuts to me to not be running one there to begin with but that's a long story). That should at least alleviate the network traffic issue. I don't know for sure how that part would work, but I'd assume that perhaps the IPv6 DNS queries would be local (unix domain socket?) and would be less of a bother although it would still be unnecessary. Thanks. Mark -----Original Message----- From: Ton Voon [mailto:ton.voon at altinity.com] Sent: Friday, September 21, 2007 10:29 AM To: Frost, Mark {PBG} Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] Standard Nagios Plugins 1.4.9 and IPv6 problem? On 20 Sep 2007, at 19:36, Frost, Mark {PBG} wrote: > We're looking to changes the modules file for this box to prevent any > component of IPv6 being loaded, but I'm still not convinced that will > dissuade the plugins from going on their merry way. Sorry to jump in late on this thread. In the plugins code, the is_hostname routine tries to verify if the hostname is valid and I think this is through the resolver libraries, so will use DNS (regardless of OS caching). I think more recent resolver libraries will try ipv6 resolution before ipv4, which is beyond the scope of the plugins. As some people have already pointed out, checking the validity of the hostname is redundant. The better approach is to just make the call with the hostname specified on the command line and catch any errors. I believe this is why your DNS servers see multiple calls for the same hostname from a single plugin invocation. While removing the is_hostname calls is not too difficult, making sure that an appropriate error is propagated into the plugin output could be quite time-consuming. 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 holger at CIS.FU-Berlin.DE Fri Sep 21 17:32:35 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Fri, 21 Sep 2007 17:32:35 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <46F3DDE7.8040408@op5.se> References: <200709201814.43785.michaelkintzios@gmail.com> <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> <20070921145957.GF6565795@CIS.FU-Berlin.DE> <46F3DDE7.8040408@op5.se> Message-ID: <20070921153235.GG6565795@CIS.FU-Berlin.DE> * Andreas Ericsson [2007-09-21 17:06]: > Holger Weiss wrote: > > ----------------------------------------------------------- > > --- netutils.c.orig 2007-01-20 07:07:48.000000000 +0100 > > +++ netutils.c 2007-09-21 16:28:13.117372070 +0200 > > @@ -39,7 +39,7 @@ > > unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; > > int econn_refuse_state = STATE_CRITICAL; > > int was_refused = FALSE; > > -int address_family = AF_UNSPEC; > > +int address_family = PF_INET; > > Since we're nitpicking anyways, this should be AF_INET, although > any system where AF_INET != PF_INET is quite clearly insane ;-) Heh :-P At least on Linux, NetBSD and Solaris, getaddrinfo(3) uses the PF_* macros for the addrinfo->ai_family. NetBSD's manpage explicitely defines it as the "protocol family" for the socket :-P Holger ------------------------------------------------------------------------- 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 at CIS.FU-Berlin.DE Fri Sep 21 17:48:12 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Fri, 21 Sep 2007 17:48:12 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB30281E172@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB30281E172@PEPWMV00043.corp.pep.pvt> Message-ID: <20070921154812.GH6565795@CIS.FU-Berlin.DE> * "Frost, Mark {PBG}" [2007-09-21 11:20]: > - because that first request fails, it sends another request now trying > with a search domain combination, say "foo.bar.com.biz.pvt" (usually > just stupidly appending a domain to an already FQDN). Appending search domains can be suppressed by using "host.example.com." instead of "host.example.com" as the host name. Holger ------------------------------------------------------------------------- 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 siemsen at ucar.edu Fri Sep 21 17:54:21 2007 From: siemsen at ucar.edu (Pete Siemsen) Date: Fri, 21 Sep 2007 09:54:21 -0600 Subject: Can't hear sounds because Nagios uses application/x-mplayer2 Message-ID: This problem is a Mac OS X problem, or a Safari problem, or a QuickTime problem, or a Nagios problem - I'm not sure. I can't get Nagios noises to come out of my Safari browser. Other Nagios users at my company have no problems getting noises out of, say, Firefox on Linux. I can't get them out of Safari on my Mac, but I'm close! I'm the admin for Nagios at my site, where I run Nagios 2.6 on a Linux box. On my client Mac, I'm running Safari 2.0.4 (419.3) under Mac OS X 10.4.10. When I visit our local Nagios server with Safari, everything looks fine and I can navigate fine. But when Nagios tried to make a sound, I got a dialog box that said Safari can't display content on this page. The application "Windows Media Player.app" may be able to play this content. Would you like to try? When I clicked "Ok", WMP fired up and immediately popped up its own dialog box that said "One or more arguments are not valid". When I clicked "No", of course the Safari dialog disappeared quietly. So the Safari dialog was a visible indicator that Nagios was unhappy, but I'd much rather have an audible indicator, and not have to get rid of the dialog every time :-) Safari is capable of playing Nagios noises. If I navigate to my Nagios server and go to /media/hostdown.wav, Safari uses QuickTime to play the Nagios "hostdown" sound just fine. I suspected a MIME type problem, so I set my Mac to use QuickTime to play audio/x-wav things. This didn't change the behavior. Then I used Wireshark to capture the packets sent by our Nagios server to my Mac. I learned that when Nagios wants to make a sound, it embeds this in the HTML: I later discovered that I could see the same text using Safari's "View->View Source", *but only if the page was one that had a sound*. In other words, a bunch of red acknowledged stuff isn't enough - there has to be at least one unacknowledged red item on the page. It was essential that I view the source immediately after Safari failed to play a sound, and before the web page auto-updated. So I used "Default Apps" (a.k.a. RCDefaultApp) to set my Mac to play the "application/x-mplayer2" MIME type with QuickTime. This time around, Safari displayed Safari cannot find the Internet plug-in. The page "Nagios" has a content of MIME type "application/x-mplayer2". Because you don't have a plug-in installed for this MIME type, this content can't be displayed. Hmmm. I changed things, but just ta a different error. Then I discovered that Safari has a "Help->Installed Plug-ins". It listed "QuickTime Plug-in 7.2", with a long list of MIME types that QuickTime will handle. Actually, it listed QuickTime twice. I deleted a file from /Library/Internet Plug-Ins and and restarted Safari to get that down to one. But the MIME types listed for QuickTime 7.2 didn't include "application/x-mplayer2". Sigh. Then I discovered that System Preferences has a QuickTime section. It has an "Advanced" tab that has a "MIME Settings..." button, but that sets the MIME types that QuickTime handles, not the MIME types of the QuickTime plugin handles. Anyway, there doesn't seem to be one that deals with "application/mplayer2". Then I discovored that there's support at http://www.apple.com/ quicktime/download/, including a manual for QuickTime, mailing lists, etc. Then I discovered that it's the /usr/lib/cgi-bin/nagios2/status.cgi that generates the responses. Perhaps if I could modify it to use something other than "application/x-mplayer2"? Nagios is open source, right? Do I actually have to modify Nagios souurce code to fix this? Help! -- Pete -------------- 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 holger at CIS.FU-Berlin.DE Fri Sep 21 18:11:31 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Fri, 21 Sep 2007 18:11:31 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> References: <20070921145957.GF6565795@CIS.FU-Berlin.DE> <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> Message-ID: <20070921161131.GI6565795@CIS.FU-Berlin.DE> * "Frost, Mark {PBG}" [2007-09-21 11:14]: > It does open a socket with parameters for IPv6 (AF_INET6) and then tells > the resolver to run the query. The plugins won't actually open an IPv6 socket, they merely call getaddrinfo(3) which, depending on how it's called, may query your nameserver for an AAAA record before querying it for an A record. This is done before opening a socket. > I guess the big problem I have here is what is necessary to convince an > application that a system does not use IPv6? That there's no interface > configured to use IPv6? (check) That there's no routing or other > networking setup at boot time to enable it? (check) I feel that I'm an > unfortunate victim of Linux just throws IPv6 include files into its base > configuration whether I want them or not so the plugins assume that they > might as well try it. As I said, the plugins don't actually "decide" to try IPv6 DNS lookups, they just call the system's getaddrinfo(3) function without explicitly stating that the function should only try IPv4 address lookups. The latter could be done and I'll implement that behaviour for "./configure --without-ipv6". Holger ------------------------------------------------------------------------- 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 mark.frost1 at pepsi.com Fri Sep 21 17:14:05 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Fri, 21 Sep 2007 11:14:05 -0400 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <20070921145957.GF6565795@CIS.FU-Berlin.DE> References: <20070921145957.GF6565795@CIS.FU-Berlin.DE> Message-ID: <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> This was my original assertion. It does open a socket with parameters for IPv6 (AF_INET6) and then tells the resolver to run the query. There is no configuration in the resolver library itself or resolv.conf, etc, that says "hey, also send out IPv6 queries, would you?" I guess the big problem I have here is what is necessary to convince an application that a system does not use IPv6? That there's no interface configured to use IPv6? (check) That there's no routing or other networking setup at boot time to enable it? (check) I feel that I'm an unfortunate victim of Linux just throws IPv6 include files into its base configuration whether I want them or not so the plugins assume that they might as well try it. There's no package I can uninstall to remove Linux's knowledge of IPv6 and it's protocols. I'm stuck with it. I mean, if I had include files for Appletalk on my system (but no configured interfaces or other network apparatus) should an application try to send out Appletalk packets whether I ask for them or not? I'm told that there were some kernel modules installed by default that could possibly be disabled that might dissuade the plugins from thinking they should try IPv6, but from what I thought I read from the code, I don't think that's going to matter. This theory was tested on an OpenSuse box and it didn't affect the issue, so I'm thinking it won't matter on the Red Hat box either. Sorry to seem testy. I find that I'm a little annoyed that this problem kind of came from out of nowhere for us. Thanks Mark -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Holger Weiss Sent: Friday, September 21, 2007 11:00 AM To: Nagios Users Subject: Re: [Nagios-users] Standard Nagios Plugins 1.4.9 and IPv6 problem? * "Frost, Mark {PBG}" [2007-09-20 14:36]: > The thing about #3 is that it seems that no matter how compile the > plugins, it will still use IPv6 if it detects that your include files > support AF_INET6. You can't turn it off short of finding some way to > turn it off in your OS which seems a bit extreme to me. I've always > accepted that on any flavor of Linux I use, IPv6 is available even if > I'm not using it. The idea that some application is going to start > using it when I have no configured interface or any other indication > that IPv6 is in use baffles me. Beyond that that these plugins would > opt to generate an extra say 4x network traffic that I can explicitly > tell them not to also baffles me. I mean, what do I have to do to > convince 'check_nt' that no, I really really really don't want it > sending out IPv6 traffic? To be nitpicking, it doesn't "send out IPv6 traffic", it merely asks your resolver library for the address of some host name without explicitely stating that it's only interested in an IPv4 address. Asking for an IPv4 address only is certainly possible, though IMO it's more appropriate to disable IPv6 system-wide if, well, you want it disabled system-wide. However, disabling IPv6 lookups on the application level can of course be useful in certain cases within mixed v4/v6 environments. And I agree that "--without-ipv6" doesn't do what you'd expect it to do. At least it doesn't seem to be a documented option :-) Anyway, if noone beats me on it, I'll fix "--without-ipv6" for the next release (at least for most C plugins), and I'll put "-4"/"-6" flags for all plugins which lookup host names on my TODO list. Until then, the following patch should work around your problem for most C plugins: ----------------------------------------------------------- --- netutils.c.orig 2007-01-20 07:07:48.000000000 +0100 +++ netutils.c 2007-09-21 16:28:13.117372070 +0200 @@ -39,7 +39,7 @@ unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; int econn_refuse_state = STATE_CRITICAL; int was_refused = FALSE; -int address_family = AF_UNSPEC; +int address_family = PF_INET; /* handles socket timeouts */ void ----------------------------------------------------------- Holger ------------------------------------------------------------------------ - 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 Fri Sep 21 19:13:48 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 21 Sep 2007 19:13:48 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> Message-ID: <46F3FBCC.9010108@op5.se> Frost, Mark {PBG} wrote: > This was my original assertion. It does open a socket with parameters > for IPv6 (AF_INET6) and then tells the resolver to run the query. There > is no configuration in the resolver library itself or resolv.conf, etc, > that says "hey, also send out IPv6 queries, would you?" > > I guess the big problem I have here is what is necessary to convince an > application that a system does not use IPv6? That there's no interface > configured to use IPv6? (check) That there's no routing or other > networking setup at boot time to enable it? (check) I feel that I'm an > unfortunate victim of Linux just throws IPv6 include files into its base > configuration whether I want them or not so the plugins assume that they > might as well try it. There's no package I can uninstall to remove > Linux's knowledge of IPv6 and it's protocols. I'm stuck with it. > Patching it with a module would be the simplest thing ever though. :) -- 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 alex_b at users.sourceforge.net Fri Sep 21 21:45:26 2007 From: alex_b at users.sourceforge.net (Alex Burger) Date: Fri, 21 Sep 2007 15:45:26 -0400 Subject: NDO Issues In-Reply-To: <46F28404.9080105@oldbrownjeep.net> References: <46F28404.9080105@oldbrownjeep.net> Message-ID: <46F41F56.4050503@users.sourceforge.net> Hi Dallas. What platform are you running on? Are you running a 32 or 64 bit OS? Alex Dallas Helquist wrote: > 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... ------------------------------------------------------------------------- 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 rwadkins at tervela.com Fri Sep 21 22:00:36 2007 From: rwadkins at tervela.com (Ray Wadkins) Date: Fri, 21 Sep 2007 16:00:36 -0400 Subject: Newbie Notifications Problem Message-ID: We've set up Nagios for the first time here. Version 3.0b2. We've set up several hosts and services. But we're not receiving any notifications and I can't figure out why. The service and host details all show "Last Notification: N/A (notification 0)". The notify-service-by-email command works from the command line as the nagios user. I'll try to include as many relevant config sections as possible below. The box is CentOS 4.5 running Linux version 2.6.9-55.0.2.ELsmp. There doesn't seem to be any debug information for notifications, so I can't tell if the notifications are being blocked by something I haven't looked at. I wish there was a logging option that allowed me to audit the notification filters, or at least a "test notification" feature. (if these things are there, someone tell me where and I'll admit I'm an 'idiot'). I appreciate any help that can be given. >From Contact.cfg: define contact{ contact_name mdsouza_e ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Marvin D'Souza ; Full name of user email XXXXX ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** } define contact{ contact_name rwadkins_e ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Ray Wadkins ; Full name of user email XXXXX ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s service_notification_options w,u,c,r,f,s host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email } define contactgroup{ contactgroup_name nyadmins alias New York Administrators members mdsouza_e, rwadkins_e } >From Windows.cfg: define host{ use windows-server ; Inherit default values from a template host_name quickbooks ; The name we're giving to this host alias quickbooks ; A longer name associated with the host address XXXXX ; IP address of the host hostgroups allhosts,windows-servers max_check_attempts 3 check_period workhours notification_options d,r,u notification_interval 1440 notification_period workhours contact_groups nyadmins } define service{ use generic-service host_name quickbooks service_description QuickBooks Backup check_command check_event_log notification_options w,u,c,r notification_interval 1440 notification_period workhours contact_groups nyadmins } >From timeperiods.cfg define timeperiod{ timeperiod_name workhours alias Normal Work Hours monday 08:00-18:00 tuesday 08:00-18:00 wednesday 08:00-18:00 thursday 08:00-18:00 friday 08:00-18:00 } >From commands.cfg define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $ HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOS TALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } >From templates.cfg: define contact{ name generic-contact ; The name of this contact template service_notification_period 24x7 ; service notifications can be sent anytime host_notification_period 24x7 ; host notifications can be sent anytime service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events service_notification_commands notify-service-by-email ; send service notifications via email host_notification_commands notify-host-by-email ; send host notifications via email register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } define host{ name windows-server ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, Windows servers are monitored round the clock check_interval 5 ; Actively check the server every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each server 10 times (max) check_command check-host-alive ; Default command to check if servers are "alive" notification_period 24x7 ; Send notification out at any time - day or night notification_interval 30 ; Resend notifications every 30 minutes notification_options d,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default hostgroups allhosts,windows-servers ; Host groups that Windows servers should be a member of register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance probl ems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state normal_check_interval 10 ; Check the service every 10 minutes under normal conditions retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined contact_groups admins ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } >From nagios.cfg # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 -------------- 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 dallas at oldbrownjeep.net Fri Sep 21 22:39:38 2007 From: dallas at oldbrownjeep.net (Dallas Helquist) Date: Fri, 21 Sep 2007 14:39:38 -0600 Subject: NDO Issues In-Reply-To: <46F41F56.4050503@users.sourceforge.net> References: <46F28404.9080105@oldbrownjeep.net> <46F41F56.4050503@users.sourceforge.net> Message-ID: <46F42C0A.7070704@oldbrownjeep.net> Alex Burger wrote: > > Hi Dallas. > > What platform are you running on? Are you running a 32 or 64 bit OS? ndo2db is running on 64 bit ( 2.6.9-34.EL #1 Thu Mar 9 06:03:30 GMT 2006 x86_64 x86_64 x86_64 GNU/Linux) I've tried ndomod on both 64 & 32 bit (CentOS 4.x) -dallas > > Alex > > > Dallas Helquist wrote: >> 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... ------------------------------------------------------------------------- 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.pye at pyenet.co.nz Sat Sep 22 03:27:43 2007 From: jim.pye at pyenet.co.nz (Jim Pye) Date: Sat, 22 Sep 2007 13:27:43 +1200 Subject: Some Observations on Installation Message-ID: <1190424463.5281.28.camel@jimsx220.pyenet.co.nz> I am setting up a demo system on VMWare where I am installing 2 different versions of Nagios on the same VM Session. To achieve this I have duplicated all the configuration/setup to allow for one install using released version 2.9 and one for the beta version 3.0b3 Following are some errors/omissions I found: 1. The --with-htmlurl option on the ./configure command did not seem to work for either install. For v2.9 I used the option --with-htmlurl=/nagios29/ and for v3.0b3 I used --with-htmlurl=/nagios30/ In both cases the resulting entry in the cgi.cfg file for each install was: url_html_path=/nagios The work around was to change this entry manually to url_html_path=/nagios29 and /nagios30 respectively. 2. The filename for the rc.d script was just nagios which meant that one would override the other. This issue is specific to this installation scenerio but might be something to think about. Jim -- Jim Pye PyeNet Universal http://www.pyenet.co.nz ------------------------------------------------------------------------- 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 taieb.riahi at topnet.tn Sat Sep 22 09:46:33 2007 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Sat, 22 Sep 2007 09:46:33 +0200 Subject: SMS alerte In-Reply-To: <8e26b9970708280740q40fdc734s2caeeb2a18547f9a@mail.gmail.com> References: <72f6f4340708280700h6da0578bo72d54aae2ba68c1a@mail.gmail.com> <8e26b9970708280740q40fdc734s2caeeb2a18547f9a@mail.gmail.com> Message-ID: <46F4C859.5070706@topnet.tn> Hi, I'm using nagios 2.9 and kannel 1.4.1 on different hosts. and I'm interest by having sms notification. What's the best way to send sms notifications using the kannel gateway? Maybe using the http interface of kannel with an http client and VPN connection. With best regards, Riahi Taieb Rafael Alfaro a ?crit : > Hi, > > look a this www.kannel.org . > > Regards. > Rafael Alfaro. > > > > > On 8/28/07, *Jacques FAN* > wrote: > > Salut tout le monde, > > je suis nouveau dans l'utilisation de nagios, j'ai pu installer et > configurer nagios, avec l'aide d'un ami, il y a le probl?me de la > notification via SMS qui me pose probl?me, je voudrai comme j'ai > le fais avec le mail configurer le SMS. > > Alors, sugg?rer moi de quel mani?re, quel gateway utiliser? > > Merci pour votre aide > > -- > JFK > ------------------------------------------------------------------------- > > 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 > > > > > -- > Rafael Alfaro. > Omnilife Independent Distributor. > "People taking care of people". > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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: 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 Sat Sep 22 16:05:30 2007 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 22 Sep 2007 16:05:30 +0200 (CEST) Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <20070921161131.GI6565795@CIS.FU-Berlin.DE> References: <20070921145957.GF6565795@CIS.FU-Berlin.DE> <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> <20070921161131.GI6565795@CIS.FU-Berlin.DE> Message-ID: On Fri, 21 Sep 2007, Holger Weiss wrote: > * "Frost, Mark {PBG}" [2007-09-21 11:14]: >> It does open a socket with parameters for IPv6 (AF_INET6) and then tells >> the resolver to run the query. > > The plugins won't actually open an IPv6 socket, they merely call > getaddrinfo(3) which, depending on how it's called, may query your > nameserver for an AAAA record before querying it for an A record. This > is done before opening a socket. > >> I guess the big problem I have here is what is necessary to convince an >> application that a system does not use IPv6? That there's no interface >> configured to use IPv6? (check) That there's no routing or other >> networking setup at boot time to enable it? (check) I feel that I'm an >> unfortunate victim of Linux just throws IPv6 include files into its base >> configuration whether I want them or not so the plugins assume that they >> might as well try it. > > As I said, the plugins don't actually "decide" to try IPv6 DNS lookups, > they just call the system's getaddrinfo(3) function without explicitly > stating that the function should only try IPv4 address lookups. The > latter could be done and I'll implement that behaviour for "./configure > --without-ipv6". Have a look at the thread: http://blog.florianlaws.de/archives/126-BIND-slow-on-SLES9-Disable-IPv6.htmlhttp://blog.florianlaws.de/archives/126-BIND-slow-on-SLES9-Disable-IPv6.html It seems Centos 3 and Centos 4 received fixes for unexpected AAAA queries. 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 hpsekhon at googlemail.com Sat Sep 22 16:48:30 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Sat, 22 Sep 2007 15:48:30 +0100 Subject: Log Server Check Message-ID: <4f45772d0709220748s37e59d4tf0ea0d7b5ef66325@mail.gmail.com> Hi, A while ago I was looking for the best way to check a log server with a MySQL back end, and finding no great method, I wrote my own. It's been in production where I work for a few months now, so I recently decided to have a rewrite and then release it so that others can benefit. I have just released it on Nagios Exchange (GPL of course). It can be found here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1101 or just search nagiosexchange.org for "logserver", it's the only hit. It is flexible enough to test a log server via either TCP or UDP on any port, and to query a MySQL database either on the same host or another host for the log to make sure it has come through the whole logserver and been stored correctly. It should be flexible enough for use with any syslog implementation using a MySQL storage back end. I wrote this originally for the typical Syslog-NG / MySQL log server combination since the joining bit between Syslog-NG and MySQL can break and it is not easily testable without sending a log and checking if it actually comes through to the back end storage. It has actually happened to me a few times that the logserver stack stopped working for one reason or another... I may consider adding support for file based or Oracle back end log servers if there is demand. As usual, for support, feedback, bug reports or feature requests, you can contact me at this address, hpsekhon(AT)googlemail.com. Regards, -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 fagundes.pacheco at gmail.com Sat Sep 22 17:08:04 2007 From: fagundes.pacheco at gmail.com (Rodrigo Pacheco) Date: Sat, 22 Sep 2007 12:08:04 -0300 Subject: which tool i use to generate graph? Message-ID: <924eed8b0709220808p7300a1f2t536cdf0e71f767ce@mail.gmail.com> Colleagues good day! I have a Nagios perfectly , would like a tool to generate graph integrated with the Nagios. I walked searching nagiostat and perfparse http://perfparse.sourceforge.net and nagiosgrapher. he would like to know which of them more is detailed. that I can extract former the weekly and dialy reports monthly: curve of load average, cpu usage, memory, processes, downtime. I am thankful since already attention Rodrigo Pacheco -------------- 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 mail at aidananderson.co.uk Sun Sep 23 13:46:26 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Sun, 23 Sep 2007 12:46:26 +0100 Subject: Newbie Notifications Problem In-Reply-To: References: Message-ID: <46F65212.9090005@aidananderson.co.uk> Ray Wadkins wrote: > > define contact{ > > contact_name rwadkins_e ; > Short name of user > > use generic-contact ; > Inherit default values from generic-contact template (defined above) > > alias Ray Wadkins ; Full > name of user > > email XXXXX ; <<***** CHANGE THIS > TO YOUR EMAIL ADDRESS ****** > > host_notifications_enabled 1 > > service_notifications_enabled 1 > > host_notification_period 24x7 > > service_notification_period 24x7 > > host_notification_options d,u,r,f,s > > service_notification_options w,u,c,r,f,s > > host_notification_commands notify-host-by-email > > service_notification_commands notify-service-by-email > > > You've specified the command notify-host-by-email in your contact definition > > *From commands.cfg* > > * * > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $ > > HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s > "** $NOTIFICATIONTYPE$ Service Alert: $HOS > > TALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > > but don't seem to have defined it in the commands.cfg file. When a host goes down, only host notifications are sent out (service notifications are suppressed). As you don't seem to have defined a host notification command, you will never receive any notifications. Try adding the following to commands.cfg: > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "Notification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nDetails: $HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: $HOSTSTATE$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n\n$HOSTACKAUTHOR$\n$HOSTACKCOMMENT$\n" | /bin/mail -s > "Host $HOSTSTATE$ alert for $HOSTNAME$ - $HOSTALIAS$" $CONTACTEMAIL$ > } HTH Aidan ------------------------------------------------------------------------- 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 livegreat007 at yahoo.com Mon Sep 24 01:48:18 2007 From: livegreat007 at yahoo.com (Live Great) Date: Sun, 23 Sep 2007 16:48:18 -0700 (PDT) Subject: plug-ins for AIX DB2 Message-ID: <145700.98737.qm@web45510.mail.sp1.yahoo.com> Hi, I want to install a nagios plug-ins for AIX DB2. Where can I download this plug-ins from the internet? or do I need to purchase that? Your suggestion is much appreciated. Thanks SW -------------- 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 livegreat007 at yahoo.com Mon Sep 24 02:11:42 2007 From: livegreat007 at yahoo.com (Live Great) Date: Sun, 23 Sep 2007 17:11:42 -0700 (PDT) Subject: plug-ins for AIX DB2 Message-ID: <463674.12355.qm@web45510.mail.sp1.yahoo.com> The required configuration is to install a nagios client/plug-ins in AIX and have it monitor the DB2 database engine, I assumed it will periodically send status/summary to a remote centralized nagios server. The centralized nagios server is a freebsd system. Thanks SW ----- Original Message ---- From: Live Great To: nagios-users at lists.sourceforge.net Sent: Monday, September 24, 2007 9:48:18 AM Subject: [Nagios-users] plug-ins for AIX DB2 Hi, I want to install a nagios plug-ins for AIX DB2. Where can I download this plug-ins from the internet? or do I need to purchase that? Your suggestion is much appreciated. Thanks SW -------------- 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 holger at CIS.FU-Berlin.DE Mon Sep 24 02:32:11 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Mon, 24 Sep 2007 02:32:11 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <20070921153235.GG6565795@CIS.FU-Berlin.DE> References: <200709201814.43785.michaelkintzios@gmail.com> <7F477BD26F545A4C8E4779754A38EFB3027E010E@PEPWMV00043.corp.pep.pvt> <20070921145957.GF6565795@CIS.FU-Berlin.DE> <46F3DDE7.8040408@op5.se> <20070921153235.GG6565795@CIS.FU-Berlin.DE> Message-ID: <20070924003211.GK6565795@CIS.FU-Berlin.DE> * Holger Weiss [2007-09-21 17:32]: > * Andreas Ericsson [2007-09-21 17:06]: > > Holger Weiss wrote: > > > ----------------------------------------------------------- > > > --- netutils.c.orig 2007-01-20 07:07:48.000000000 +0100 > > > +++ netutils.c 2007-09-21 16:28:13.117372070 +0200 > > > @@ -39,7 +39,7 @@ > > > unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; > > > int econn_refuse_state = STATE_CRITICAL; > > > int was_refused = FALSE; > > > -int address_family = AF_UNSPEC; > > > +int address_family = PF_INET; > > > > Since we're nitpicking anyways, this should be AF_INET, although > > any system where AF_INET != PF_INET is quite clearly insane ;-) > > Heh :-P At least on Linux, NetBSD and Solaris, getaddrinfo(3) uses the > PF_* macros for the addrinfo->ai_family. NetBSD's manpage explicitely > defines it as the "protocol family" for the socket :-P Okay, I did a little more digging on this critical question and stand corrected :-) While the original definition of getaddrinfo(3) in POSIX 1003.1g apparently[1] used PF_*, the current version of the standard[2] uses AF_*. Linux' getaddrinfo(3) manpage was changed[3] accordingly. Holger [1] See ftp://ftp.fu-berlin.de/doc/rfc/rfc2553.txt (6.4), for example. [2] http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html http://www.opengroup.org/onlinepubs/009695399/basedefs/netdb.h.html [3] http://article.gmane.org/gmane.linux.kernel/339408 (getaddrinfo.3) ------------------------------------------------------------------------- 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 at CIS.FU-Berlin.DE Mon Sep 24 02:32:30 2007 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Mon, 24 Sep 2007 02:32:30 +0200 Subject: Standard Nagios Plugins 1.4.9 and IPv6 problem? In-Reply-To: <20070921161131.GI6565795@CIS.FU-Berlin.DE> References: <20070921145957.GF6565795@CIS.FU-Berlin.DE> <7F477BD26F545A4C8E4779754A38EFB30281E147@PEPWMV00043.corp.pep.pvt> <20070921161131.GI6565795@CIS.FU-Berlin.DE> Message-ID: <20070924003230.GL6565795@CIS.FU-Berlin.DE> * Holger Weiss [2007-09-21 18:11]: > * "Frost, Mark {PBG}" [2007-09-21 11:14]: > > I guess the big problem I have here is what is necessary to convince an > > application that a system does not use IPv6? That there's no interface > > configured to use IPv6? (check) That there's no routing or other > > networking setup at boot time to enable it? (check) I feel that I'm an > > unfortunate victim of Linux just throws IPv6 include files into its base > > configuration whether I want them or not so the plugins assume that they > > might as well try it. > > As I said, the plugins don't actually "decide" to try IPv6 DNS lookups, > they just call the system's getaddrinfo(3) function without explicitly > stating that the function should only try IPv4 address lookups. The > latter could be done and I'll implement that behaviour for "./configure > --without-ipv6". This change is now committed and will be in the next release. Holger ------------------------------------------------------------------------- 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 livegreat007 at yahoo.com Mon Sep 24 02:48:04 2007 From: livegreat007 at yahoo.com (Live Great) Date: Sun, 23 Sep 2007 17:48:04 -0700 (PDT) Subject: plug-ins for AIX DB2 Message-ID: <764641.83933.qm@web45507.mail.sp1.yahoo.com> The required configuration is to install a nagios client/plug-ins in AIX and have it monitor the DB2 database engine, I assumed it will periodically send status/summary to a remote centralized nagios server. The centralized nagios server is a freebsd system. I would like to know if I need to install a Nagios engine in AIX in order to send the result back to the centralized nagios server. I probably get confused about how the plug-ins work in a client-server model, for example a Nagios plug-ins in AIX checks the local system state and send this result to a remote centralized remote Nagios server. Can anyone please shed some lights on me? Thanks SW ----- Original Message ---- From: Live Great To: nagios-users at lists.sourceforge.net Sent: Monday, September 24, 2007 9:48:18 AM Subject: [Nagios-users] plug-ins for AIX DB2 Hi, I want to install a nagios plug-ins for AIX DB2. Where can I download this plug-ins from the internet? or do I need to purchase that? Your suggestion is much appreciated. Thanks SW -------------- 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 s.shipway at auckland.ac.nz Mon Sep 24 07:34:19 2007 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Mon, 24 Sep 2007 17:34:19 +1200 Subject: Monitoring Windows CPU/Mem under VMWare Message-ID: <12A6FDDD13C460408A6E47E5DB1235A2012D9A3F@UXCHANGE3.UoA.auckland.ac.nz> I have just created a couple of plugins, check_vcpu and check_vmem, which query the vitual CPU and memory use by a guest OS under VMWare ESX3. The difference from the check_esx plugin is that these two plugins both run in the GUEST OS. They also work in both Linux and Windows, although they only work with ESX3 and the newer vmware-tools. Obviously, under Windows, you need NRPE_NT or NC_NET in order to run the plugins. Is there anyone out there who would be willing to try them out and give me some feedback as to how well they work? Pick the executables up from https://webdropoff.auckland.ac.nz/cgi-bin/pickup/945661545ec0ebe8e9cae13 7a553c127/356932 The linux one is better tested than the windows one. Treat these as alpha code: if you put them into a production environment, then you're on your own. Steve --- Steve Shipway UNIX Systems Adminstration, University of Auckland, New Zealand +64 9 3737 599 x 86487 s.shipway at auckland.ac.nz -------------- 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 frederik.vanhee at perso.be Mon Sep 24 09:31:55 2007 From: frederik.vanhee at perso.be (Vanhee Frederik) Date: Mon, 24 Sep 2007 09:31:55 +0200 Subject: which tool i use to generate graph? In-Reply-To: <924eed8b0709220808p7300a1f2t536cdf0e71f767ce@mail.gmail.com> References: <924eed8b0709220808p7300a1f2t536cdf0e71f767ce@mail.gmail.com> Message-ID: <46F767EB.4080303@perso.be> Rodrigo Pacheco wrote: > Colleagues good day! > I have a Nagios perfectly , would like a tool to generate graph > integrated with the Nagios. I walked searching nagiostat and perfparse > http://perfparse.sourceforge.net and nagiosgrapher. he would like to > know which of them more is detailed. that I can extract former the > weekly and dialy reports monthly: curve of load average, cpu usage, > memory, processes, downtime. > I am thankful since already attention > > Rodrigo Pacheco > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 Hello, I'm using NagiosGrapher and I'm very pleased with it, since it very flexible. You can define graphs based on the performance output, but also based on normal plugin output, using regexp. This is very interesting when the plugins you use don't deliver the performance output you want. There is also a program you should look at, it is called PNP, but I think it's only documented in German. Frederik ------------------------------------------------------------------------- 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 riky.none at email.it Mon Sep 24 10:58:55 2007 From: riky.none at email.it (riky.none) Date: Mon, 24 Sep 2007 10:58:55 +0200 Subject: Oracle test without oracle client Message-ID: <46F77C4F.6000506@email.it> is possible check Oracle listening service using telnet?? root at nagios:/usr/lib/nagios/plugins# telnet 10.0.2.122 1521 Trying 10.0.2.122... Connected to 10.0.2.122. Escape character is '^]'. I think that one multipurpose script that using telnet is god idea i find one script in perl but i know perl (i dont know c, bash, php pyton ecc ecc ecc) #!/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) = (at)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; i modify the script isolating the cycle while and not using paramiter but not work open (CONNECTION, "telnet 10.0.2.122 1521 |") or die "Can't open pipe: ------------------------------------------------------------------------- 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 24 11:49:18 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 10:49:18 +0100 Subject: Oracle test without oracle client In-Reply-To: <46F77C4F.6000506@email.it> References: <46F77C4F.6000506@email.it> Message-ID: <46F7881E.9080508@googlemail.com> Not a good idea. You can use check_tcp to see if the oracle listener port is open, but all this tells you is that the listener is up, it doesn't tell you that the oracle database is up and usable. I recommend that you use check_oracle and get the oracle instant client that this plugin depends on. It will then tell you if you oracle box is broken and what ORA error messages there are. check_tcp is the weakest check and should be avoided unless there is no alternative. -h Hari Sekhon riky.none wrote: > is possible check Oracle listening service using telnet?? > > root at nagios:/usr/lib/nagios/plugins# telnet 10.0.2.122 1521 > Trying 10.0.2.122... > Connected to 10.0.2.122. > Escape character is '^]'. > > I think that one multipurpose script that using telnet is god idea > > i find one script in perl but i know perl (i dont know c, bash, php > pyton ecc ecc ecc) > > > > > #!/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) = (at)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; > > i modify the script isolating the cycle while and not using paramiter > but not work > open (CONNECTION, "telnet 10.0.2.122 1521 |") or die "Can't open pipe: > > > > > ------------------------------------------------------------------------- > 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 Mon Sep 24 12:07:36 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 11:07:36 +0100 Subject: Oracle test without oracle client In-Reply-To: References: Message-ID: <46F78C68.5060708@googlemail.com> admir.trakic at nordea.com wrote: > I agree with you, but again it was just a dirty hack (if no > $ORACLE_HOME)... > > Additionally I would also comment on your "usable" pointer: > - take a good look on your tablespace checks, since the check_oracle > script does not taking any account on that, for more info se: > http://www.oracleutilities.com/autoextend.html > True, it's not 100% cos your tablespaces could be out of space, there are a couple of oracle scripts in contrib that are supposed to check tablespaces but I don't use them personally at this time. I just make sure the oracle databases are up and accessible it's still a good start though, it will tell you if the listener is up and if so then if the instance is up or not. -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 Mon Sep 24 12:20:45 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 11:20:45 +0100 Subject: Oracle test without oracle client In-Reply-To: References: Message-ID: <46F78F7D.1000201@googlemail.com> Yes this is a limitation of the instant client then, not the plugin per se, if you could compile the instant client on those other architectures then you could run the plugin there. I agree it's not ideal, when I first saw this I wondered why nobody has done a proper plugin in C or something, but then, who's going to do it? It's not easy and it's hard to find the time for something like this when there is already a (mainly) working solution. I, probably like everyone else, figured the check_oracle script was worth a try, and just good enough. I have used it for a year and a half and it's done great by me so far. But then I am not running exotic architectures... If worst came to worst, you could just have the plugin and instant client on an x86 box and run it via a remote check like nrpe... -h Hari Sekhon admir.trakic at nordea.com wrote: > Ehm, oracle_client is havily dependent on instannt client, therefore > cannot be used under arm,ppc,etc,... > > $ uname -m > armv5tel > > Br,AdmirTrakic > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: 24 September 2007 12:08 > To: Trakic, Admir > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] Oracle test without oracle client > > admir.trakic at nordea.com wrote: > >> I agree with you, but again it was just a dirty hack (if no >> $ORACLE_HOME)... >> >> Additionally I would also comment on your "usable" pointer: >> - take a good look on your tablespace checks, since the check_oracle >> script does not taking any account on that, for more info se: >> http://www.oracleutilities.com/autoextend.html >> >> > True, it's not 100% cos your tablespaces could be out of space, there > are a couple of oracle scripts in contrib that are supposed to check > tablespaces but I don't use them personally at this time. I just make > sure the oracle databases are up and accessible > > it's still a good start though, it will tell you if the listener is up > and if so then if the instance is up or not. > > > -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 admir.trakic at nordea.com Mon Sep 24 12:25:00 2007 From: admir.trakic at nordea.com (admir.trakic at nordea.com) Date: Mon, 24 Sep 2007 12:25:00 +0200 Subject: Oracle test without oracle client In-Reply-To: <46F78F7D.1000201@googlemail.com> References: <46F78F7D.1000201@googlemail.com> Message-ID: Recompile InstantClient? -where is the source? .... ;-) Anyways, some of us are not sitting on x86 boxes, /admir -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: 24 September 2007 12:21 To: Trakic, Admir Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] Oracle test without oracle client Yes this is a limitation of the instant client then, not the plugin per se, if you could compile the instant client on those other architectures then you could run the plugin there. I agree it's not ideal, when I first saw this I wondered why nobody has done a proper plugin in C or something, but then, who's going to do it? It's not easy and it's hard to find the time for something like this when there is already a (mainly) working solution. I, probably like everyone else, figured the check_oracle script was worth a try, and just good enough. I have used it for a year and a half and it's done great by me so far. But then I am not running exotic architectures... If worst came to worst, you could just have the plugin and instant client on an x86 box and run it via a remote check like nrpe... -h Hari Sekhon admir.trakic at nordea.com wrote: > Ehm, oracle_client is havily dependent on instannt client, therefore > cannot be used under arm,ppc,etc,... > > $ uname -m > armv5tel > > Br,AdmirTrakic > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: 24 September 2007 12:08 > To: Trakic, Admir > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] Oracle test without oracle client > > admir.trakic at nordea.com wrote: > >> I agree with you, but again it was just a dirty hack (if no >> $ORACLE_HOME)... >> >> Additionally I would also comment on your "usable" pointer: >> - take a good look on your tablespace checks, since the check_oracle >> script does not taking any account on that, for more info se: >> http://www.oracleutilities.com/autoextend.html >> >> > True, it's not 100% cos your tablespaces could be out of space, there > are a couple of oracle scripts in contrib that are supposed to check > tablespaces but I don't use them personally at this time. I just make > sure the oracle databases are up and accessible > > it's still a good start though, it will tell you if the listener is up > and if so then if the instance is up or not. > > > -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 taieb.riahi at topnet.tn Mon Sep 24 12:29:00 2007 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Mon, 24 Sep 2007 12:29:00 +0200 Subject: Nagios SMS alert with Kannel Message-ID: <46F7916C.9050601@topnet.tn> Hi, I'm using nagios 2.9 and kannel 1.4.1 on different hosts. and I'm interest by having sms notification. What's the best way to send sms notifications using the kannel gateway? With best regards, Riahi Taieb -------------- 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 24 12:34:20 2007 From: al at its-lehmann.de (Arno Lehmann) Date: Mon, 24 Sep 2007 12:34:20 +0200 Subject: plug-ins for AIX DB2 In-Reply-To: <764641.83933.qm@web45507.mail.sp1.yahoo.com> References: <764641.83933.qm@web45507.mail.sp1.yahoo.com> Message-ID: <46F792AC.4060608@its-lehmann.de> Hello, 24.09.2007 02:48,, Live Great wrote:: A bit impatient? ;-) > > The required configuration is to install a nagios client/plug-ins in AIX > and have it monitor the DB2 database engine, I assumed it will > periodically send status/summary to a remote centralized nagios server. > The centralized nagios server is a freebsd system. > I would like to know if I need to install a Nagios engine in AIX in > order to send the result back to the centralized nagios server. > I probably get confused about how the plug-ins work in a client-server > model, for example a Nagios plug-ins in AIX checks the local system > state and send this result to a remote centralized remote Nagios server. > Can anyone please shed some lights on me? Well, first of all it might help to understand Nagios better, but you're quite close already... There are basically two ways to monitor anything using Nagios: - Use a plugin running on the Nagios server, which connects to whatever service you want to monitor, gets some result, and reports this. For that to work, you need some plugin that can check a remote DB2 installation for your Nagios server. If you don't find anything suitable on NagiosExchange, it's more or less simple to write a plugin yourself - you will use the DB2 client (hopefully) available for FreeBSD, connect to the DB2, get some important information, parse it, and return a proper state as a result code, along with a little information on stdout. Rather simple task for a shell, perl, or whatever script. - Use a check on the DB2-server itself. This would do basically the same as above, but report as a passive check result, probably using nsca, ssh or any other suitable method to remotely connect to your monitoring server. Which way to go depends on your needs and the availability of the needed programs. NagiosExchange is usually a very good starting point to look for plugins. Hope this helps you a bit, Arno > Thanks > SW > ----- Original Message ---- > From: Live Great > To: nagios-users at lists.sourceforge.net > Sent: Monday, September 24, 2007 9:48:18 AM > Subject: [Nagios-users] plug-ins for AIX DB2 > > Hi, > > I want to install a nagios plug-ins for AIX DB2. > Where can I download this plug-ins from the internet? or do I need to > purchase that? > Your suggestion is much appreciated. > > Thanks > SW > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 24 12:56:51 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 11:56:51 +0100 Subject: Oracle test without oracle client In-Reply-To: References: Message-ID: <46F797F3.30801@googlemail.com> "if" you could compile.... Yes yes I know, in fact Oracle sucks in few ways, I'm still a bit surprised that they rate themselves so well, there have been so many problems with them, they have many bugs etc and of course you don't have the source to try compiling it on another arch, you're stuck with what they give you. but x86 boxes are so cheap, you could just buy one... I'm not sure why people would not have some x86 boxes since everything works on them, it's practically _the_ standard. Even if you run other arches for some specific app, it doesn't mean you can have a cheap x86 box somewhere. But anyway, I digress... To end, there is check_oracle and a few plugins in the contrib dir of the standard plugins distribution. As well as a few on nagios exchange if I am not mistaken... -h Hari Sekhon admir.trakic at nordea.com wrote: > Recompile InstantClient? -where is the source? .... ;-) > Anyways, some of us are not sitting on x86 boxes, > /admir > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: 24 September 2007 12:21 > To: Trakic, Admir > Cc: Nagios Users mailinglist > Subject: Re: [Nagios-users] Oracle test without oracle client > > Yes this is a limitation of the instant client then, not the plugin per > se, if you could compile the instant client on those other architectures > then you could run the plugin there. > > I agree it's not ideal, when I first saw this I wondered why nobody has > done a proper plugin in C or something, but then, who's going to do it? > It's not easy and it's hard to find the time for something like this > when there is already a (mainly) working solution. > > I, probably like everyone else, figured the check_oracle script was > worth a try, and just good enough. I have used it for a year and a half > and it's done great by me so far. But then I am not running exotic > architectures... > > If worst came to worst, you could just have the plugin and instant > client on an x86 box and run it via a remote check like nrpe... > > -h > > Hari Sekhon > > > > admir.trakic at nordea.com wrote: > >> Ehm, oracle_client is havily dependent on instannt client, therefore >> cannot be used under arm,ppc,etc,... >> >> $ uname -m >> armv5tel >> >> Br,AdmirTrakic >> >> -----Original Message----- >> From: Hari Sekhon [mailto:hpsekhon at googlemail.com] >> Sent: 24 September 2007 12:08 >> To: Trakic, Admir >> Cc: Nagios Users mailinglist >> Subject: Re: [Nagios-users] Oracle test without oracle client >> >> admir.trakic at nordea.com wrote: >> >> >>> I agree with you, but again it was just a dirty hack (if no >>> $ORACLE_HOME)... >>> >>> Additionally I would also comment on your "usable" pointer: >>> - take a good look on your tablespace checks, since the check_oracle >>> script does not taking any account on that, for more info se: >>> http://www.oracleutilities.com/autoextend.html >>> >>> >>> >> True, it's not 100% cos your tablespaces could be out of space, there >> are a couple of oracle scripts in contrib that are supposed to check >> tablespaces but I don't use them personally at this time. I just make >> sure the oracle databases are up and accessible >> >> it's still a good start though, it will tell you if the listener is up >> > > >> and if so then if the instance is up or not. >> >> >> -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 droberts at gilchrist.co.uk Mon Sep 24 13:45:59 2007 From: droberts at gilchrist.co.uk (Dave Roberts) Date: Mon, 24 Sep 2007 13:45:59 +0200 (CEST) Subject: Email Notifications Message-ID: <20070924114600.A351C580078@desire.netways.de> Hi list I've successfully install nagios 2.9 and I'm monitoring hosts ok but notifications are not being sent out. The event log and notification log display that notifications should be being sent but they are not being received and I cannot find any trace of an email. Best Regards - Dave Roberts (davros) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 hpsekhon at googlemail.com Mon Sep 24 13:54:41 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 12:54:41 +0100 Subject: Email Notifications In-Reply-To: <20070924114600.A351C580078@desire.netways.de> References: <20070924114600.A351C580078@desire.netways.de> Message-ID: <46F7A581.9010607@googlemail.com> check that your host can send emails via mailx or whatever you are using. See misccommands.cfg or your equivalent config that defines the notify-by-email and host-notify-by-email commands in nagios. This is where notifications are defined. Check that command works from the command line as the nagios user. -h Hari Sekhon Dave Roberts wrote: > Hi list > > I've successfully install nagios 2.9 and I'm monitoring hosts ok but notifications are not being sent out. > > The event log and notification log display that notifications should be being sent but they are not being received and I cannot find any trace of an email. > > Best Regards > > > > - Dave Roberts (davros) > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.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 > > ------------------------------------------------------------------------- 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 24 13:54:41 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Mon, 24 Sep 2007 12:54:41 +0100 Subject: Email Notifications In-Reply-To: <20070924114600.A351C580078@desire.netways.de> References: <20070924114600.A351C580078@desire.netways.de> Message-ID: <6546343904687E41B19D8E5A26AB9F5301637F65@E03MVB2-UKBR.domain1.systemhost.net> I Dave, Ave you tried sending a mail from the box to an account you can receive from. This will effectively rule out the box being unable to send emails. If you receive the mail. Then take a look at your misccommands.cfg and see how the command is formatted. Make sure the path to your mail binaries are correct etc. I had a similar problem between Redhat and Debian Linux. Mail was in differing locations between these boxes. Regards Tom -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dave Roberts Sent: 24 September 2007 12:46 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Email Notifications Hi list I've successfully install nagios 2.9 and I'm monitoring hosts ok but notifications are not being sent out. The event log and notification log display that notifications should be being sent but they are not being received and I cannot find any trace of an email. Best Regards - Dave Roberts (davros) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 ------------------------------------------------------------------------- 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 efrazier at ic-agency.com Mon Sep 24 14:08:56 2007 From: efrazier at ic-agency.com (Eric Frazier) Date: Mon, 24 Sep 2007 09:08:56 -0300 Subject: Suppressing notifications due to Unreachable state due to parent config Message-ID: <46F7A8D8.8080201@ic-agency.com> I have to start out by saying I did read this, "I get lots of email from people asking why Nagios is sending notifications out about hosts that are unreachable. The answer is because you configured it to do that. If you want to disable UNREACHABLE notifications for hosts, modify the /notification_options/ argument of your host definitions to not include the /u/ (unreachable) option." I checked all of my objects for u flags with a grep -R "notification_options" /usr/local/nagios/etc/ I did find I missed a few. Just to be safe I got rid of every u flag I could find. I also disabled (I think) object caching since I was worried that a previous 'u' setting could be getting stuck as a result. I have a very basic host that tests a http connect on google.com and yahoo.com from our office named, "CableRogers" The hosts we monitor that are outside the office have CableRogers listed as a parent with "parents CableRogers" in their configs. This seems to have been done correctly since if I look at the status map, I see CableRogers being the hub for ---> host1 host 2 host3 I also have a test which I am able to break that both breaks the test for CableRogers and for host2, but regardless of the timing I still get notifications from host2. I tried testing this by specifically causing CableRogers to break, then breaking host2, but I still get notifications for host2 and there isn't a 'u' in site. Thanks, Eric ------------------------------------------------------------------------- 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 rwadkins at tervela.com Mon Sep 24 15:37:04 2007 From: rwadkins at tervela.com (Ray Wadkins) Date: Mon, 24 Sep 2007 09:37:04 -0400 Subject: Newbie Notifications Problem References: <46F65212.9090005@aidananderson.co.uk> Message-ID: Thanks for the reply. I didn't include notify-host-by-email because it didn't seem relevant, but it's in commands.cfg (pasted below). The host isn't failing, just the service. When you say "service notifications are suppressed" what do you mean? Is there a configuration I can't see that's suppressing service notifications? # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTA DDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $ NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Aidan Anderson Sent: Sunday, September 23, 2007 7:46 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] Newbie Notifications Problem Ray Wadkins wrote: > > define contact{ > > contact_name rwadkins_e ; > Short name of user > > use generic-contact ; > Inherit default values from generic-contact template (defined above) > > alias Ray Wadkins ; Full > name of user > > email XXXXX ; <<***** CHANGE THIS > TO YOUR EMAIL ADDRESS ****** > > host_notifications_enabled 1 > > service_notifications_enabled 1 > > host_notification_period 24x7 > > service_notification_period 24x7 > > host_notification_options d,u,r,f,s > > service_notification_options w,u,c,r,f,s > > host_notification_commands notify-host-by-email > > service_notification_commands notify-service-by-email > > > You've specified the command notify-host-by-email in your contact definition > > *From commands.cfg* > > * * > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $ > > HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s > "** $NOTIFICATIONTYPE$ Service Alert: $HOS > > TALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > > but don't seem to have defined it in the commands.cfg file. When a host goes down, only host notifications are sent out (service notifications are suppressed). As you don't seem to have defined a host notification command, you will never receive any notifications. Try adding the following to commands.cfg: > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "Notification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nDetails: $HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: $HOSTSTATE$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n\n$HOSTACKAUTHOR$\n$HOSTACKCOMMENT$\n" | /bin/mail -s > "Host $HOSTSTATE$ alert for $HOSTNAME$ - $HOSTALIAS$" $CONTACTEMAIL$ > } HTH Aidan ------------------------------------------------------------------------ - 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 marc at ena.com Mon Sep 24 15:49:17 2007 From: marc at ena.com (Marc Powell) Date: Mon, 24 Sep 2007 08:49:17 -0500 Subject: Suppressing notifications due to Unreachable state due to parent config In-Reply-To: <46F7A8D8.8080201@ic-agency.com> References: <46F7A8D8.8080201@ic-agency.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Eric Frazier > Sent: Monday, September 24, 2007 7:09 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Suppressing notifications due to Unreachable state > due to parent config > > I have a very basic host that tests a http connect on google.com and > yahoo.com from our office named, "CableRogers" > The hosts we monitor that are outside the office have CableRogers listed > as a parent with "parents CableRogers" in their configs. This seems to > have been done correctly since if I look at the status map, I see > CableRogers being the hub for ---> host1 host 2 host3 > > I also have a test which I am able to break that both breaks the test > for CableRogers and for host2, but regardless of the timing I still get > notifications from host2. I tried testing this by specifically causing Are these host or service notifications? Unreachable or Down? > CableRogers to break, then breaking host2, but I still get notifications > for host2 and there isn't a 'u' in site. Here's the flow roughly outlined as I understand it from http://nagios.sourceforge.net/docs/2_0/networkreachability.html and experience on this list, perhaps there's something that's missing -- - Service on Host2 reports CRITICAL state - check_command for Host2 is run. - if Host2 state != Warning/Critical Send service alert Else Suppress service alert check_command for host2 parent is run if host2 parent state != Warning/Critical Send host warning/down alert for host2 Else Send host unreachable alert for host2 Check more parents Fi Fi -- 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 Mon Sep 24 16:03:14 2007 From: marc at ena.com (Marc Powell) Date: Mon, 24 Sep 2007 09:03:14 -0500 Subject: Newbie Notifications Problem 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 Ray Wadkins > Sent: Friday, September 21, 2007 3:01 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Newbie Notifications Problem > > We've set up Nagios for the first time here. Version 3.0b2. We've set up > several hosts and services. But we're not receiving any notifications and > I can't figure out why. The service and host details all show "Last > Notification: N/A (notification 0)". The notify-service-by-email command > works from the command line as the nagios user. I'll try to include as > many relevant config sections as possible below. > > > > The box is CentOS 4.5 running Linux version 2.6.9-55.0.2.ELsmp. > > > > There doesn't seem to be any debug information for notifications, so I > can't tell if the notifications are being blocked by something I haven't > looked at. I wish there was a logging option that allowed me to audit the > notification filters, or at least a "test notification" feature. (if > these things are there, someone tell me where and I'll admit I'm an > 'idiot'). It used to be a compile-time option. It looks like it's been moved to nagios.cfg -- # DEBUG LEVEL # This option determines how much (if any) debugging information will # be written to the debug file. OR values together to log multiple # types of information. # Values: -1 = Everything # 0 = Nothing # 1 = Functions # 2 = Configuration # 4 = Process information # 8 = Scheduled events # 16 = Host/service checks # 32 = Notifications # 64 = Event broker # 128 = Check IPC debug_level=0 Perhaps that will aid your debugging... -- 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 mail at aidananderson.co.uk Mon Sep 24 16:05:08 2007 From: mail at aidananderson.co.uk (Aidan Anderson) Date: Mon, 24 Sep 2007 15:05:08 +0100 Subject: Newbie Notifications Problem In-Reply-To: References: <46F65212.9090005@aidananderson.co.uk> Message-ID: <46F7C414.9050601@aidananderson.co.uk> Ray Wadkins wrote: > Thanks for the reply. I didn't include notify-host-by-email because it > didn't seem relevant, but it's in commands.cfg (pasted below). The host > isn't failing, just the service. When you say "service notifications > are suppressed" what do you mean? Is there a configuration I can't see > that's suppressing service notifications? > > It's something Nagios does by default. If a service check fails, it will check the host. If the host check fails, it will send out a host notification but suppress the service notification. By what you've said, I don't think that's your problem. I've noticed that you have used a lot of templates (inheritance) in your configs. You could try simplifying it but just setting up a contact, a contact group, a host, a service and a time period but don't use templates. If that basic test works the problem may lie with one of your templates. Aidan ------------------------------------------------------------------------- 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 24 16:10:54 2007 From: marc at ena.com (Marc Powell) Date: Mon, 24 Sep 2007 09:10:54 -0500 Subject: Newbie Notifications Problem 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 Ray Wadkins > Sent: Monday, September 24, 2007 8:37 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] Newbie Notifications Problem > > Thanks for the reply. I didn't include notify-host-by-email because it > didn't seem relevant, but it's in commands.cfg (pasted below). The host > isn't failing, just the service. When you say "service notifications > are suppressed" what do you mean? Is there a configuration I can't see > that's suppressing service notifications? Nagios does it automagically. The details of that seemed to have moved or been removed in the nagios-3 documentation but it's been a core feature of nagios since the beginning, I doubt that it's actually gone. Here's the 2.0 doccos on it -- 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 rwadkins at tervela.com Mon Sep 24 16:26:13 2007 From: rwadkins at tervela.com (Ray Wadkins) Date: Mon, 24 Sep 2007 10:26:13 -0400 Subject: Newbie Notifications Problem References: Message-ID: But it only suppresses service notifications if the host fails? If the host doesn't fail, but the service does, I should get a service notification? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Monday, September 24, 2007 10:11 AM To: Ray Wadkins; Nagios Users mailinglist Subject: RE: [Nagios-users] Newbie Notifications Problem > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Ray Wadkins > Sent: Monday, September 24, 2007 8:37 AM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] Newbie Notifications Problem > > Thanks for the reply. I didn't include notify-host-by-email because it > didn't seem relevant, but it's in commands.cfg (pasted below). The host > isn't failing, just the service. When you say "service notifications > are suppressed" what do you mean? Is there a configuration I can't see > that's suppressing service notifications? Nagios does it automagically. The details of that seemed to have moved or been removed in the nagios-3 documentation but it's been a core feature of nagios since the beginning, I doubt that it's actually gone. Here's the 2.0 doccos on it -- 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 paul.weaver at bbc.co.uk Mon Sep 24 18:11:47 2007 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Mon, 24 Sep 2007 17:11:47 +0100 Subject: Best way to monitor application clusters Message-ID: I've recently started using nagios in our development environment, and have knocked a few plugins for some of our programs (i.e. monitor a log on a remote server to make sure it's growing, but not growing too fast or too slow, or jumbo pings between two remote machines), which is very impressive. One thing I would like to monitor is a group of hosts/services, and flag a warning if x% are not available, and a critical if y% are offline. A common example would be checking DNS services. If you have 4 DNS servers, you don't want to be woken up at 3AM if one falls offline, but if 3 are offline you would, and if 4 are offline you want an APB. You still want to see the servers are offline though on a webpage, and possible a notification in work hours. I'm aware of host/service groups, being one way of doing it, however I'm unsure if notifications can be set based on % of hosts/services available in a group. Another way would be a "virtual host", with a custom "check_host_alive" which checks all hosts in a collection, and returns an OK/critical/warning based on the number of failures, and likewise with "virtual services". The original hosts could then be monitored separately, or even not at all. For example, a service I would like to check is whether 3 mysql databases are in sync with each other. I currently have a web page that compares the log positions. It seems to me that logically the service should run on the mysql boxes, however I only want it running on Another example would be I have a piece of java software (call it "A") that must run on at least one of 4 machines, and preferably on 2 of them. I don't care which machine it's on, but if it's not running I want to be notified in red lights. I could have a simple "virtual service A", which would critical on 0, warn on 1 and OK on 2 or more. This would be attached to "virtual host A", which would critical on 0, warn on 1 and OK on 2 or more of the servers that the service runs on. I'd also like a "simple" login to the web page which would only display the "clusters" of services/hosts, rather than the total view, which would allow our support engineers to easilly see real problems, and allow management to sleep hapilly with lots of green lights. I must admit I'm leaning to the virtual host/service thing, but I was wondering if there's a standard/better way of monitoring these kind of things? Thanks http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- 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 24 18:22:13 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 24 Sep 2007 17:22:13 +0100 Subject: Best way to monitor application clusters In-Reply-To: References: Message-ID: <46F7E435.9010707@googlemail.com> In the contrib directory of the standard plugins distribution there should be a check_cluster and better check_cluster2.c which you can compile to check a bunch of hosts or services and then go to warning or critical state only if a certain number of them fail. Not used it myself, but it seems like exactly what you are looking for. -h Hari Sekhon Paul Weaver wrote: > > I've recently started using nagios in our development environment, and > have knocked a few plugins for some of our programs (i.e. monitor a > log on a remote server to make sure it's growing, but not growing too > fast or too slow, or jumbo pings between two remote machines), which > is very impressive. > > One thing I would like to monitor is a group of hosts/services, and > flag a warning if x% are not available, and a critical if y% are > offline. A common example would be checking DNS services. If you have > 4 DNS servers, you don't want to be woken up at 3AM if one falls > offline, but if 3 are offline you would, and if 4 are offline you want > an APB. You still want to see the servers are offline though on a > webpage, and possible a notification in work hours. > > I'm aware of host/service groups, being one way of doing it, however > I'm unsure if notifications can be set based on % of hosts/services > available in a group. > > Another way would be a "virtual host", with a custom > "check_host_alive" which checks all hosts in a collection, and returns > an OK/critical/warning based on the number of failures, and likewise > with "virtual services". The original hosts could then be monitored > separately, or even not at all. > > For example, a service I would like to check is whether 3 mysql > databases are in sync with each other. I currently have a web page > that compares the log positions. It seems to me that logically the > service should run on the mysql boxes, however I only want it running on > > Another example would be I have a piece of java software (call it "A") > that must run on at least one of 4 machines, and preferably on 2 of > them. I don't care which machine it's on, but if it's not running I > want to be notified in red lights. > > I could have a simple "virtual service A", which would critical on 0, > warn on 1 and OK on 2 or more. > This would be attached to "virtual host A", which would critical on 0, > warn on 1 and OK on 2 or more of the servers that the service runs on. > > I'd also like a "simple" login to the web page which would only > display the "clusters" of services/hosts, rather than the total view, > which would allow our support engineers to easilly see real problems, > and allow management to sleep hapilly with lots of green lights. > > I must admit I'm leaning to the virtual host/service thing, but I was > wondering if there's a standard/better way of monitoring these kind of > things? > > Thanks > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 barbereau at gmail.com Mon Sep 24 18:38:28 2007 From: barbereau at gmail.com (=?UTF-8?Q?S=C3=A9bastien_Barbereau?=) Date: Mon, 24 Sep 2007 17:38:28 +0100 Subject: Best way to monitor application clusters In-Reply-To: References: Message-ID: <4e0e33ee0709240938p753fd200qa6d177de3be0eea1@mail.gmail.com> In similar cases I've always used the NDO database to query the status of a group of things. There are also some other options check_multi for example ( http://my-plugin.de/wiki/doku.php/check_multi) of course the nagios documentation may help you on this: http://nagios.sourceforge.net/docs/2_0/clusters.html Concerning the "simple login web page", I would again suggest you to have a look at NDO. Creating a simple PHP/Python/Perl/ASP page to query the database is not complicated and would allow you to create custom displays for specific usages. On 9/24/07, Paul Weaver wrote: > > I've recently started using nagios in our development environment, and > have knocked a few plugins for some of our programs (i.e. monitor a log on > a remote server to make sure it's growing, but not growing too fast or too > slow, or jumbo pings between two remote machines), which is very impressive. > > One thing I would like to monitor is a group of hosts/services, and flag a > warning if x% are not available, and a critical if y% are offline. A common > example would be checking DNS services. If you have 4 DNS servers, you don't > want to be woken up at 3AM if one falls offline, but if 3 are offline you > would, and if 4 are offline you want an APB. You still want to see the > servers are offline though on a webpage, and possible a notification in work > hours. > > I'm aware of host/service groups, being one way of doing it, however I'm > unsure if notifications can be set based on % of hosts/services available in > a group. > > Another way would be a "virtual host", with a custom "check_host_alive" > which checks all hosts in a collection, and returns an OK/critical/warning > based on the number of failures, and likewise with "virtual services". The > original hosts could then be monitored separately, or even not at all. > > For example, a service I would like to check is whether 3 mysql databases > are in sync with each other. I currently have a web page that compares the > log positions. It seems to me that logically the service should run on the > mysql boxes, however I only want it running on > > Another example would be I have a piece of java software (call it "A") > that must run on at least one of 4 machines, and preferably on 2 of them. I > don't care which machine it's on, but if it's not running I want to be > notified in red lights. > > I could have a simple "virtual service A", which would critical on 0, warn > on 1 and OK on 2 or more. > This would be attached to "virtual host A", which would critical on 0, > warn on 1 and OK on 2 or more of the servers that the service runs on. > > I'd also like a "simple" login to the web page which would only display > the "clusters" of services/hosts, rather than the total view, which would > allow our support engineers to easilly see real problems, and allow > management to sleep hapilly with lots of green lights. > > I must admit I'm leaning to the virtual host/service thing, but I was > wondering if there's a standard/better way of monitoring these kind of > things? > > Thanks > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > ------------------------------------------------------------------------- > 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 marc at ena.com Mon Sep 24 18:05:14 2007 From: marc at ena.com (Marc Powell) Date: Mon, 24 Sep 2007 11:05:14 -0500 Subject: Newbie Notifications Problem In-Reply-To: References: Message-ID: > -----Original Message----- > From: Ray Wadkins [mailto:rwadkins at tervela.com] > Sent: Monday, September 24, 2007 9:26 AM > To: Marc Powell; Nagios Users mailinglist > Subject: RE: [Nagios-users] Newbie Notifications Problem > > But it only suppresses service notifications if the host fails? If the > host doesn't fail, but the service does, I should get a service > notification? Yes, assuming your service, contact and nagios notification options allow it. -- 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 rwadkins at tervela.com Mon Sep 24 18:57:46 2007 From: rwadkins at tervela.com (Ray Wadkins) Date: Mon, 24 Sep 2007 12:57:46 -0400 Subject: Newbie Notifications Problem References: Message-ID: Thanks to the information on the debug setting, I was able to find an error. Which lead to a google search that lead me to this page: http://article.gmane.org/gmane.network.nagios.devel/4101 which says: Ethan Galstad schrieb: > Thanks for the debug report Hendrik. I changed the way > contacts/contactgroups are internally referenced in the daemon between > b1 and b2. I forgot to update some pointers, so notifications fail to > go out to members of contactgroups. They still go out to individual > contacts that assigned to hosts/services, however. > > I'll get a patch into CVS ASAP and release 3.0b3 tomorrow. So, it looks like it was a problem with the version I was using (3.02b). I downloaded and installed 3.03b and now I need to figure out how to shut Nagios up :P -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, September 24, 2007 12:05 PM To: Nagios Users mailinglist Subject: Re: [Nagios-users] Newbie Notifications Problem > -----Original Message----- > From: Ray Wadkins [mailto:rwadkins at tervela.com] > Sent: Monday, September 24, 2007 9:26 AM > To: Marc Powell; Nagios Users mailinglist > Subject: RE: [Nagios-users] Newbie Notifications Problem > > But it only suppresses service notifications if the host fails? If the > host doesn't fail, but the service does, I should get a service > notification? Yes, assuming your service, contact and nagios notification options allow it. -- 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 ------------------------------------------------------------------------- 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 efrazier at ic-agency.com Mon Sep 24 19:29:23 2007 From: efrazier at ic-agency.com (Eric Frazier) Date: Mon, 24 Sep 2007 14:29:23 -0300 Subject: Suppressing notifications due to Unreachable state due to parent config In-Reply-To: References: Message-ID: <46F7F3F3.1030609@ic-agency.com> Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Eric Frazier >> Sent: Monday, September 24, 2007 7:09 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Suppressing notifications due to Unreachable >> > state > >> due to parent config >> >> > > > >> I have a very basic host that tests a http connect on google.com and >> yahoo.com from our office named, "CableRogers" >> The hosts we monitor that are outside the office have CableRogers >> > listed > >> as a parent with "parents CableRogers" in their configs. This seems to >> have been done correctly since if I look at the status map, I see >> CableRogers being the hub for ---> host1 host 2 host3 >> >> I also have a test which I am able to break that both breaks the test >> for CableRogers and for host2, but regardless of the timing I still >> > get > >> notifications from host2. I tried testing this by specifically causing >> > > Are these host or service notifications? Unreachable or Down? > > Service Notifications whose hosts should be considered unreachable. >> CableRogers to break, then breaking host2, but I still get >> > notifications > >> for host2 and there isn't a 'u' in site. >> > > Here's the flow roughly outlined as I understand it from > http://nagios.sourceforge.net/docs/2_0/networkreachability.html and > experience on this list, perhaps there's something that's missing -- > > - Service on Host2 reports CRITICAL state > - check_command for Host2 is run. > - if Host2 state != Warning/Critical > Send service alert > Else > Suppress service alert > check_command for host2 parent is run > if host2 parent state != Warning/Critical > Send host warning/down alert for host2 > Else > Send host unreachable alert for host2 > Check more parents > Fi > Fi > > Thanks Marc. Are you saying that you can't suppress an alert that is returned as Critical? That doesn't seem to match the docs, but it makes a lot of sense re the problem I am having. Eric ------------------------------------------------------------------------- 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 24 19:37:41 2007 From: marc at ena.com (Marc Powell) Date: Mon, 24 Sep 2007 12:37:41 -0500 Subject: Suppressing notifications due to Unreachable state due to parent config In-Reply-To: <46F7F3F3.1030609@ic-agency.com> References: <46F7F3F3.1030609@ic-agency.com> Message-ID: > -----Original Message----- > From: Eric Frazier [mailto:efrazier at ic-agency.com] > Sent: Monday, September 24, 2007 12:29 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Suppressing notifications due to Unreachable > state due to parent config > > Marc Powell wrote: > > > > > > Here's the flow roughly outlined as I understand it from > > http://nagios.sourceforge.net/docs/2_0/networkreachability.html and > > experience on this list, perhaps there's something that's missing -- > > > > - Service on Host2 reports CRITICAL state > > - check_command for Host2 is run. > > - if Host2 state != Warning/Critical > > Send service alert > > Else > > Suppress service alert > > check_command for host2 parent is run > > if host2 parent state != Warning/Critical > > Send host warning/down alert for host2 > > Else > > Send host unreachable alert for host2 > > Check more parents > > Fi > > Fi > > > > > Thanks Marc. Are you saying that you can't suppress an alert that is > returned as Critical? That doesn't seem to match the docs, but it makes > a lot of sense re the problem I am having. Suppress an alert for who? Host2? If host2's parent is up and you've specified that you want to receive host down notifications for host2, you'll receive an alert. If host2's parent is down and you've specified that you want to receive host unreachable notifications, you'll receive an unreachable notification for host2, but not a down notification (it's unreachable, not down). If you don't care for either, don't specify them. -- 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 ladams at cloudmark.com Mon Sep 24 21:09:23 2007 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 24 Sep 2007 12:09:23 -0700 Subject: hostgroups in servicegroup definition FIXED In-Reply-To: <46EE5F4A.20108@googlemail.com> References: <46EE5F4A.20108@googlemail.com> Message-ID: <723504D812FBEF4F89F958B14D294EB205003C93@EXCH-C1.corp.cloudmark.com> Oh, I'm not saying your script is bad or wrong or anything. I think it's a great idea considering this doesn't work yet. When you work primarily with hostgroups, it's frustrating to not have it work everywhere. I would like to be able to add a host, add it to a hostgroup, and everything "just works". We've been able to do this thus far because we didn't define servicegroups yet. I will ask the nagios-devel list about it. Thanks for the script in the meantime, -Lori -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Monday, September 17, 2007 4:05 AM To: Lori Adams Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] hostgroups in servicegroup definition FIXED 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 livegreat007 at yahoo.com Tue Sep 25 04:28:52 2007 From: livegreat007 at yahoo.com (Live Great) Date: Mon, 24 Sep 2007 19:28:52 -0700 (PDT) Subject: bypass firewall Message-ID: <790622.60425.qm@web45501.mail.sp1.yahoo.com> Hi, With Nagios and its plug-ins, what is the best way to avoid customer's firewall from blocking the data transfer between centralized Nagios server and the NRPE or Plug-ins installed in customer's servers? I basically don't want to change customer's security policies, but still allow the centralized remote monitoring to be in-placed with Nagios. Thanks SW -------------- 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 25 06:54:10 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 25 Sep 2007 06:54:10 +0200 Subject: bypass firewall In-Reply-To: <790622.60425.qm@web45501.mail.sp1.yahoo.com> References: <790622.60425.qm@web45501.mail.sp1.yahoo.com> Message-ID: <46F89472.6040203@op5.se> Live Great wrote: > Hi, > > With Nagios and its plug-ins, what is the best way to avoid customer's firewall from blocking the data transfer between centralized Nagios server and the NRPE or Plug-ins installed in customer's servers? > > I basically don't want to change customer's security policies, but still allow the centralized remote monitoring to be in-placed with Nagios. > Ask them for a port you can use. There is no easy and reliable way to bypass a firewall without the cooperation of the people administering it. If there was, firewalls wouldn't be so popular. -- 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 Tue Sep 25 10:16:16 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 25 Sep 2007 09:16:16 +0100 Subject: hostgroups in servicegroup definition FIXED In-Reply-To: <723504D812FBEF4F89F958B14D294EB205003C93@EXCH-C1.corp.cloudmark.com> References: <723504D812FBEF4F89F958B14D294EB205003C93@EXCH-C1.corp.cloudmark.com> Message-ID: <46F8C3D0.6080803@googlemail.com> hmm, ok, but using the latest version on nagiosexchange it does work, it just doesn't use hostgroups in the servicegroups file since Nagios doesn't seem to support this. I'm still not quite sure what difference it makes to the servicegroups though, would you still not see the hosts not the hostgroups in the servicegroup view? Is what you are trying to achieve to see the hostgroups in the servicegroups view instead? Otherwise, I can't see the operational difference... If Nagios starts supporting hostgroups in the servicegroup file, then I will rewrite the generator to just put hostgroups in there instead as is without expanding them to the host members. -h Hari Sekhon Lori Adams wrote: > Oh, I'm not saying your script is bad or wrong or anything. I think > it's a great idea considering this doesn't work yet. > > When you work primarily with hostgroups, it's frustrating to not have it > work everywhere. I would like to be able to add a host, add it to a > hostgroup, and everything "just works". We've been able to do this thus > far because we didn't define servicegroups yet. > > I will ask the nagios-devel list about it. > > Thanks for the script in the meantime, > -Lori > > -----Original Message----- > From: Hari Sekhon [mailto:hpsekhon at googlemail.com] > Sent: Monday, September 17, 2007 4:05 AM > To: Lori Adams > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] hostgroups in servicegroup definition FIXED > > 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 hpsekhon at googlemail.com Tue Sep 25 10:19:21 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 25 Sep 2007 09:19:21 +0100 Subject: bypass firewall In-Reply-To: <790622.60425.qm@web45501.mail.sp1.yahoo.com> References: <790622.60425.qm@web45501.mail.sp1.yahoo.com> Message-ID: <46F8C489.5000203@googlemail.com> If they allow outbound connections then you can just use NSCA and passive service checks to feed results from inside the firewall's boundaries to the Nagios server. Of course, then you have to have a port forward to receive it, but that would be a change to your firewall, not theirs. If they fully egress filter as well, then there is no good way around it, you need to get them to open a port for you to either forward nrpe checks to the inside, or to allow outbound nsca results to be sent back to the Nagios server. -h Hari Sekhon Live Great wrote: > Hi, > > With Nagios and its plug-ins, what is the best way to avoid customer's > firewall from blocking the data transfer between centralized Nagios > server and the NRPE or Plug-ins installed in customer's servers? > > I basically don't want to change customer's security policies, but > still allow the centralized remote monitoring to be in-placed with Nagios. > > Thanks > SW > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 pankaj.dhali at wipro.com Tue Sep 25 16:39:18 2007 From: pankaj.dhali at wipro.com (pankaj.dhali at wipro.com) Date: Tue, 25 Sep 2007 20:09:18 +0530 Subject: FW: Nagios: Error while writing to pipe Message-ID: Hi All, I am new to Nagios, I am trying to receive SNMP Trap from Windows client machine. I am using Python script to see how Nagios can create an event/alert by checking Passive Service Check Result submitted by this script. I have attached the Python script which is used write "Passive Service check Result" to Nagios external command file for creating an alert/event. But when I run this script -------------------------------------------------- [root at Symbol eventhandlers]# pwd /usr/local/nagios/libexec/eventhandlers [root at Symbol eventhandlers]# python snmptraphandling.py 10.207.40.203 CRITICAL 12 2 [root at Symbol eventhandlers]# --------------------------------------------- I get following error: [root at Symbol rw]# tail -f nagios.cmd [1190731734] PROCESS_SERVICE_CHECK_RESULT;10.207.40.203;snmp_trap_handling_critical;2 ;" 12" tail: nagios.cmd: file truncated tail: nagios.cmd: cannot seek to offset 0: Illegal seek [root at Symbol rw]# -------------------------------------------------- nagios.cmd is a pipe: [root at Symbol rw]# ls -l total 0 prw-rw---- 1 nagios nagcmd 0 Sep 25 20:18 nagios.cmd [root at Symbol rw]# [root at Symbol rw]# pwd /usr/local/nagios/var/rw why I am getting Illegal seek error. I have tried to use this script to a normal read write file and it works fine, but while writing to a pipe it is showing error. If the problem is due to the script then it could be here output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w') print return_code results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" \ + host + ";" + "snmp_trap_handling_" + service_suffix + ";" \ + return_code + ";" + mondata_res + "\n" output.write(results) It could be file(pipe) permission problem, I have no idea. I have followed below link to give permission to nagios.cmd http://nagios.sourceforge.net/docs/2_0/commandfile.html Thanks & Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: snmptraphandling.py.txt 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.weaver at bbc.co.uk Tue Sep 25 16:42:16 2007 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Tue, 25 Sep 2007 15:42:16 +0100 Subject: FW: Nagios: Error while writing to pipe In-Reply-To: References: Message-ID: I'm no expert in python or passive results, however you appear to be opening the file for write access. Have you tried opening for append (w+ perhaps?) -- "Even if you're on the right track, you'll get run over if you just sit there." Paul Weaver Systems Development Engineer News Production Facilities, BBC News Work: 020 8225 8109 Mobile: 07738 481006 Room 1244, BBC Television Centre, Wood Lane, London, W12 7RJ -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of pankaj.dhali at wipro.com Sent: 25 September 2007 15:39 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] FW: Nagios: Error while writing to pipe Hi All, I am new to Nagios, I am trying to receive SNMP Trap from Windows client machine. I am using Python script to see how Nagios can create an event/alert by checking Passive Service Check Result submitted by this script. I have attached the Python script which is used write "Passive Service check Result" to Nagios external command file for creating an alert/event. But when I run this script -------------------------------------------------- [root at Symbol eventhandlers]# pwd /usr/local/nagios/libexec/eventhandlers [root at Symbol eventhandlers]# python snmptraphandling.py 10.207.40.203 CRITICAL 12 2 [root at Symbol eventhandlers]# --------------------------------------------- I get following error: [root at Symbol rw]# tail -f nagios.cmd [1190731734] PROCESS_SERVICE_CHECK_RESULT;10.207.40.203;snmp_trap_handling_critical;2 ;" 12" tail: nagios.cmd: file truncated tail: nagios.cmd: cannot seek to offset 0: Illegal seek [root at Symbol rw]# -------------------------------------------------- nagios.cmd is a pipe: [root at Symbol rw]# ls -l total 0 prw-rw---- 1 nagios nagcmd 0 Sep 25 20:18 nagios.cmd [root at Symbol rw]# [root at Symbol rw]# pwd /usr/local/nagios/var/rw why I am getting Illegal seek error. I have tried to use this script to a normal read write file and it works fine, but while writing to a pipe it is showing error. If the problem is due to the script then it could be here output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w') print return_code results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" \ + host + ";" + "snmp_trap_handling_" + service_suffix + ";" \ + return_code + ";" + mondata_res + "\n" output.write(results) It could be file(pipe) permission problem, I have no idea. I have followed below link to give permission to nagios.cmd http://nagios.sourceforge.net/docs/2_0/commandfile.html Thanks & Regards, Pankaj http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- 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 pankaj.dhali at wipro.com Tue Sep 25 17:04:42 2007 From: pankaj.dhali at wipro.com (pankaj.dhali at wipro.com) Date: Tue, 25 Sep 2007 20:34:42 +0530 Subject: FW: Nagios: SNMP Trap handling by Nagios Message-ID: Hi All, Is there any simpler way to receive SNMP Traps by Nagios server and create and alert/event? Please provide the steps(exact) as I am new to Nagios. Thanks in Advance, Pankaj ________________________________ From: Pankaj Dhali (WT01 - INNOVATION GROUP) Sent: Tuesday, September 25, 2007 8:09 PM To: 'nagios-users at lists.sourceforge.net' Subject: FW: Nagios: Error while writing to pipe Hi All, I am new to Nagios, I am trying to receive SNMP Trap from Windows client machine. I am using Python script to see how Nagios can create an event/alert by checking Passive Service Check Result submitted by this script. I have attached the Python script which is used write "Passive Service check Result" to Nagios external command file for creating an alert/event. But when I run this script -------------------------------------------------- [root at Symbol eventhandlers]# pwd /usr/local/nagios/libexec/eventhandlers [root at Symbol eventhandlers]# python snmptraphandling.py 10.207.40.203 CRITICAL 12 2 [root at Symbol eventhandlers]# --------------------------------------------- I get following error: [root at Symbol rw]# tail -f nagios.cmd [1190731734] PROCESS_SERVICE_CHECK_RESULT;10.207.40.203;snmp_trap_handling_critical;2 ;" 12" tail: nagios.cmd: file truncated tail: nagios.cmd: cannot seek to offset 0: Illegal seek [root at Symbol rw]# -------------------------------------------------- nagios.cmd is a pipe: [root at Symbol rw]# ls -l total 0 prw-rw---- 1 nagios nagcmd 0 Sep 25 20:18 nagios.cmd [root at Symbol rw]# [root at Symbol rw]# pwd /usr/local/nagios/var/rw why I am getting Illegal seek error. I have tried to use this script to a normal read write file and it works fine, but while writing to a pipe it is showing error. If the problem is due to the script then it could be here output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w') print return_code results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;" \ + host + ";" + "snmp_trap_handling_" + service_suffix + ";" \ + return_code + ";" + mondata_res + "\n" output.write(results) It could be file(pipe) permission problem, I have no idea. I have followed below link to give permission to nagios.cmd http://nagios.sourceforge.net/docs/2_0/commandfile.html Thanks & Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: snmptraphandling.py.txt 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 25 17:10:16 2007 From: marc at ena.com (Marc Powell) Date: Tue, 25 Sep 2007 10:10:16 -0500 Subject: FW: Nagios: SNMP Trap handling by Nagios 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 pankaj.dhali at wipro.com > Sent: Tuesday, September 25, 2007 10:05 AM > To: nagios-users at lists.sourceforge.net; nagios-users- > request at lists.sourceforge.net > Subject: [Nagios-users] FW: Nagios: SNMP Trap handling by Nagios > > Hi All, > Is there any simpler way to receive SNMP Traps by Nagios server > and create and alert/event? Please provide the steps(exact) as I am new to > Nagios. There's an entire section of the documentation on receiving SNMP traps. Have you seen that? -- 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 25 17:15:03 2007 From: marc at ena.com (Marc Powell) Date: Tue, 25 Sep 2007 10:15:03 -0500 Subject: FW: Nagios: Error while writing to pipe 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 pankaj.dhali at wipro.com > Sent: Tuesday, September 25, 2007 9:39 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] FW: Nagios: Error while writing to pipe > > > > I get following error: > > [root at Symbol rw]# tail -f nagios.cmd > > [1190731734] > PROCESS_SERVICE_CHECK_RESULT;10.207.40.203;snmp_trap_handling_critical;2 ;" > 12" > > tail: nagios.cmd: file truncated > > tail: nagios.cmd: cannot seek to offset 0: Illegal seek > Tailing a named pipe removes the contents. Above, you removed your external command from the queue before nagios could see it. > why I am getting Illegal seek error. I have tried to use this script to a > normal read write file and it works fine, but while writing to a pipe it > is The file truncated errors are the result of tail trying to follow the pipe being reset to 0 length (normal for a pipe being read). You shouldn't be trying to tail the pipe. -- 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 jeffwilliams05 at gmail.com Tue Sep 25 18:03:11 2007 From: jeffwilliams05 at gmail.com (Jeff Williams) Date: Tue, 25 Sep 2007 11:03:11 -0500 Subject: which tool i use to generate graph? In-Reply-To: <46F767EB.4080303@perso.be> References: <924eed8b0709220808p7300a1f2t536cdf0e71f767ce@mail.gmail.com> <46F767EB.4080303@perso.be> Message-ID: <46F9313F.5030007@gmail.com> 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 webknowledge at gmail.com Tue Sep 25 18:54:17 2007 From: webknowledge at gmail.com (Marcel) Date: Tue, 25 Sep 2007 13:54:17 -0300 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <20070914001347.GH11709@pmorris.usa.hp.com> References: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> <20070914001347.GH11709@pmorris.usa.hp.com> Message-ID: <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> what if one craft a check-host-alive command with a sleep 60; check_icmp -H xxx.xxx.xxx.xxx ??? On 9/13/07, Patrick Morris wrote: > > 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 > -------------- 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 25 19:07:36 2007 From: marc at ena.com (Marc Powell) Date: Tue, 25 Sep 2007 12:07:36 -0500 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> References: <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@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 Marcel > Sent: Tuesday, September 25, 2007 11:54 AM > To: Patrick Morris > Cc: DeBattista, Joe; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Adjusting time interval for max_check_attempts > > what if one craft a check-host-alive command with a sleep 60; check_icmp - > H xxx.xxx.xxx.xxx ??? Badness happens. When nagios runs a host check, _all_ other processing stops while the checks are being run up to max_check_attempts. In this example with 10 retries, nagios would not perform any service checks, check for external commands, or do anything else except obsess about this host for 10 full minutes. Nagios-3 will support what the OP wants. -- 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 zsitfa at t-online.hu Tue Sep 25 20:06:07 2007 From: zsitfa at t-online.hu (Horvath Tamas) Date: Tue, 25 Sep 2007 20:06:07 +0200 Subject: Webwasher Message-ID: <20070925180607.66E56ACDEA@mail00a.mail.t-online.hu> Hello list memebers! I need to manage a Secure Computing Webwasher with Nagios. I am going to use snmpget to accomplish this. Today I went through its SNMP implementation with its built in MIB browser, and played with snmpwalk and snmpget. As I saw I can only query memory and disk (partition) usage, uptime and load. But I have to write my own plug-ins (wrapper sciprts) to do this. Is there anybody who has experience managing Webwasher with Nagios? Is it possible to manage other things than I mentioned above? For example it would be very good, if I can query mail queues. What load value should I query: load (example value 0.01) or loadint (example value 1) I would appreciate if somebody can send me complete plug-ins. Thanks in advance, Tamas No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date: 2007.09.25. 8:02 ------------------------------------------------------------------------- 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 kyle.odonnell at gmail.com Tue Sep 25 20:15:59 2007 From: kyle.odonnell at gmail.com (Kyle O'Donnell) Date: Tue, 25 Sep 2007 14:15:59 -0400 Subject: HP Non-Stop/Tandem Message-ID: <2274b9c30709251115v75c155a1p7f52a263f8f2b393@mail.gmail.com> Does anyone know of plugins/agents for the hp nonstop/tandem platform? I haven't found anything on the nagiosexchange or google. --kyleo ------------------------------------------------------------------------- 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 mark.frost1 at pepsi.com Tue Sep 25 20:59:29 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Tue, 25 Sep 2007 14:59:29 -0400 Subject: ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR Message-ID: <7F477BD26F545A4C8E4779754A38EFB3028A1289@PEPWMV00043.corp.pep.pvt> I'm finding that ndoutil 1.4b5 does not seem to honor the --with-mysql-inc=DIR configure directive. My configure runs as: ./configure \ --enable-mysql \ --disable-pgsql \ --with-mysql-inc=/usr/local/mysql5/include \ --with-mysql-lib=/usr/local/mysql5/lib/mysql configure seems happy about this as it purports the following: MySQL library and include file(s) were found! but as soon as I type 'make', I get: $ make cd ./src/; make ; cd .. make[1]: Entering directory `/usr/local/src/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 `/usr/local/src/ndoutils-1.4b5/src' I can see that the following is defined in the src/Makefile: DBCFLAGS= -I/usr/local/mysql5/include DBLDFLAGS=-L/usr/local/mysql5/lib/mysql but it's not pulled in in most places. It looks like a whole lot of lines in the Makefile need to have $(DBCFLAGS) included in them. I believe this happened with 1.4b3 as well, but I stupidly deleted that tree before I could see what I did to work around this :-\. I believe I hand edited a Makefile. I think I'm going to have to figure that out again. 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 ae at op5.se Tue Sep 25 21:34:40 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 25 Sep 2007 21:34:40 +0200 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> References: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> <20070914001347.GH11709@pmorris.usa.hp.com> <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> Message-ID: <46F962D0.6000609@op5.se> Marcel wrote: > what if one craft a check-host-alive command with a sleep 60; check_icmp -H > xxx.xxx.xxx.xxx ??? > That would be a very bad idea indeed, as pre-3.0 nagios stops everything to run host checks. The 3.x-series, which unfortunately is still in beta, can do host checks while doing other things too. Trying out the latest beta would most likely be your best bet. -- 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 25 21:43:27 2007 From: ae at op5.se (Andreas Ericsson) Date: Tue, 25 Sep 2007 21:43:27 +0200 Subject: ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB3028A1289@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB3028A1289@PEPWMV00043.corp.pep.pvt> Message-ID: <46F964DF.2080705@op5.se> Frost, Mark {PBG} wrote: > I'm finding that ndoutil 1.4b5 does not seem to honor the > --with-mysql-inc=DIR configure directive. My configure runs as: > > ./configure \ > --enable-mysql \ > --disable-pgsql \ > --with-mysql-inc=/usr/local/mysql5/include \ > --with-mysql-lib=/usr/local/mysql5/lib/mysql > > configure seems happy about this as it purports the following: > > MySQL library and include file(s) were found! > > but as soon as I type 'make', I get: > > $ make > cd ./src/; make ; cd .. > make[1]: Entering directory `/usr/local/src/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 `/usr/local/src/ndoutils-1.4b5/src' > > I can see that the following is defined in the src/Makefile: > > DBCFLAGS= -I/usr/local/mysql5/include > DBLDFLAGS=-L/usr/local/mysql5/lib/mysql > > but it's not pulled in in most places. It looks like a whole lot of > lines in the Makefile need to have $(DBCFLAGS) included in them. > > I believe this happened with 1.4b3 as well, but I stupidly deleted that > tree before I could see what I did to work around this :-\. I believe I > hand edited a Makefile. I think I'm going to have to figure that out > again. > There's a patch that (mostly) solves this somewhere at altinity. Go check that out before you rip your hair out. If you get it to compile but fail to get it to run, send the output of 'ldd ndo-module.so' (or whatever it's called) here and I'll help you further. -- 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 duncan.ferguson at altinity.com Tue Sep 25 21:48:29 2007 From: duncan.ferguson at altinity.com (Duncan Ferguson) Date: Tue, 25 Sep 2007 20:48:29 +0100 Subject: ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR In-Reply-To: <46F964DF.2080705@op5.se> References: <7F477BD26F545A4C8E4779754A38EFB3028A1289@PEPWMV00043.corp.pep.pvt> <46F964DF.2080705@op5.se> Message-ID: On 25 Sep 2007, at 20:43, Andreas Ericsson wrote: > Frost, Mark {PBG} wrote: >> I'm finding that ndoutil 1.4b5 does not seem to honor the >> --with-mysql-inc=DIR configure directive. My configure runs as: > > There's a patch that (mostly) solves this somewhere at altinity. http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html Duncs -- Duncan Ferguson Opsview - Making Nagios Easier http://www.altinity.com Tel: +44 (0)870 787 9243 Fax: +44 (0)845 280 1725 Skype: duncan_j_ferguson MSN: duncan.ferguson at altinity.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 mark.frost1 at pepsi.com Tue Sep 25 21:52:40 2007 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Tue, 25 Sep 2007 15:52:40 -0400 Subject: ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR In-Reply-To: References: Message-ID: <7F477BD26F545A4C8E4779754A38EFB3028A13D2@PEPWMV00043.corp.pep.pvt> Cool. I'll check it out. Thanks! -----Original Message----- From: Duncan Ferguson [mailto:duncan.ferguson at altinity.com] Sent: Tuesday, September 25, 2007 3:48 PM To: Frost, Mark {PBG} Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR On 25 Sep 2007, at 20:43, Andreas Ericsson wrote: > Frost, Mark {PBG} wrote: >> I'm finding that ndoutil 1.4b5 does not seem to honor the >> --with-mysql-inc=DIR configure directive. My configure runs as: > > There's a patch that (mostly) solves this somewhere at altinity. http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html Duncs -- Duncan Ferguson Opsview - Making Nagios Easier http://www.altinity.com Tel: +44 (0)870 787 9243 Fax: +44 (0)845 280 1725 Skype: duncan_j_ferguson MSN: duncan.ferguson at altinity.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 webknowledge at gmail.com Wed Sep 26 01:27:22 2007 From: webknowledge at gmail.com (Marcel) Date: Tue, 25 Sep 2007 20:27:22 -0300 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <46F962D0.6000609@op5.se> References: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> <20070914001347.GH11709@pmorris.usa.hp.com> <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> <46F962D0.6000609@op5.se> Message-ID: <2dfcbd1b0709251627m315afdf4o881714b482b4ec6f@mail.gmail.com> Well, but it _is_ possible, against what patrick stated. Sure it's dumb, though, but impossible would be too hard on Nagios. cheers, On 9/25/07, Andreas Ericsson wrote: > > Marcel wrote: > > what if one craft a check-host-alive command with a sleep 60; check_icmp > -H > > xxx.xxx.xxx.xxx ??? > > > > That would be a very bad idea indeed, as pre-3.0 nagios stops everything > to > run host checks. The 3.x-series, which unfortunately is still in beta, can > do host checks while doing other things too. > > Trying out the latest beta would most likely be your best bet. > > -- > 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 livegreat007 at yahoo.com Wed Sep 26 07:53:29 2007 From: livegreat007 at yahoo.com (Live Great) Date: Tue, 25 Sep 2007 22:53:29 -0700 (PDT) Subject: secure connection Message-ID: <669865.9624.qm@web45508.mail.sp1.yahoo.com> Hi, Can anyone tell me how to establish secure connection between a remote NSCA (at client site) and the centralized Nagios server? I basically after the solution of authentication and encryption like ssh/ssl. Thanks SW -------------- 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 shoktai at gmail.com Wed Sep 26 07:59:17 2007 From: shoktai at gmail.com (Thomas Vito) Date: Wed, 26 Sep 2007 07:59:17 +0200 Subject: Configure smtp in Nagios In-Reply-To: <619cf3c0709252257p775fcb7as901187d25d282f86@mail.gmail.com> References: <61288.4123.qm@web56310.mail.re3.yahoo.com> <619cf3c0709252257p775fcb7as901187d25d282f86@mail.gmail.com> Message-ID: <619cf3c0709252259r51e59ea2n9a07626ded63d640@mail.gmail.com> Sorry i meant to send it to the list but it is early morning for me and i need to wake up ;) 2007/9/26, Thomas Vito : > > I use nullmailer that redirects all emails to our SMTP exchange server, > nullmailer takes 5 seconds to parameter. > > 2007/9/21, Marc Powell : > > > > > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > > bounces at lists.sourceforge.net] On Behalf Of Rodrigo Tavares > > > Sent: Friday, September 21, 2007 9:46 AM > > > To: Valdinger, Stephen (DOV, MSX); nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Configure smtp in Nagios > > > > > > > > > Hello Valdinger, > > > > > > Do I need configure the smtp server in same machine at > > > nagios ? > > > > > > Can I use a other smtp server in my network ? > > > > Take look at the notifications section of the Nagios FAQ. > > > > -- > > 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 > > > > -------------- 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 tstocking at groundworkopensource.com Wed Sep 26 08:03:00 2007 From: tstocking at groundworkopensource.com (Thomas Stocking) Date: Tue, 25 Sep 2007 23:03:00 -0700 Subject: secure connection In-Reply-To: <669865.9624.qm@web45508.mail.sp1.yahoo.com> References: <669865.9624.qm@web45508.mail.sp1.yahoo.com> Message-ID: <46F9F614.1020108@groundworkopensource.com> SW, You can use the NSCA encryption options. They are a bit slower than unencrypted, but they work well. On the sending side, match the encryption method in send_nsca.cfg to that specified in the nsca.cfg on the receiving (Nagios) server side. The tricky part is compiling nsca and send_nsca with Libmcrypt. That can be a pain, especially on Solaris. All this is documented in the NSCA docs. Thomas Live Great wrote: > Hi, > > Can anyone tell me how to establish secure connection between a remote > NSCA (at client site) and the centralized Nagios server? > I basically after the solution of authentication and encryption like > ssh/ssl. > > Thanks > SW > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 Mon Sep 24 12:39:18 2007 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 24 Sep 2007 12:39:18 +0200 Subject: Status Map / NOC Screens In-Reply-To: <9D30659ABCA7FB428CF91E386C3A57448E100F@hermes.sapphire-int.gi> References: <9D30659ABCA7FB428CF91E386C3A57448E100F@hermes.sapphire-int.gi> Message-ID: > I am intending to use the link: > > http://nagioshost/nagios/cgi-bin/statusmap.cgi?createimage > Just a FYI, just in case someone else wants to do this in the future, I'm settling with the following in as my /share/noc-map.html, to load the map in an IFRAME and refresh it: My background.png is my nagios background. The page refreshes every 5 seconds, and so far it seems to work quite well, I get a full screen map, without the clutter of the other frames, although there is no interactivity with the map using this method. ------------------------------------------------------------------------- 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 livegreat007 at yahoo.com Wed Sep 26 09:04:46 2007 From: livegreat007 at yahoo.com (Live Great) Date: Wed, 26 Sep 2007 00:04:46 -0700 (PDT) Subject: secure connection Message-ID: <440973.93424.qm@web45506.mail.sp1.yahoo.com> I will probably instal NSCA in freebsd at client site if it get approval, or like you said, I will have to install it in Solaris. Thanks Sam ----- Original Message ---- From: Thomas Stocking To: Live Great Cc: nagios-users at lists.sourceforge.net Sent: Wednesday, September 26, 2007 4:03:00 PM Subject: Re: [Nagios-users] secure connection SW, You can use the NSCA encryption options. They are a bit slower than unencrypted, but they work well. On the sending side, match the encryption method in send_nsca.cfg to that specified in the nsca.cfg on the receiving (Nagios) server side. The tricky part is compiling nsca and send_nsca with Libmcrypt. That can be a pain, especially on Solaris. All this is documented in the NSCA docs. Thomas Live Great wrote: > Hi, > > Can anyone tell me how to establish secure connection between a remote > NSCA (at client site) and the centralized Nagios server? > I basically after the solution of authentication and encryption like > ssh/ssl. > > Thanks > SW > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 ae at op5.se Wed Sep 26 10:00:40 2007 From: ae at op5.se (Andreas Ericsson) Date: Wed, 26 Sep 2007 10:00:40 +0200 Subject: Adjusting time interval for max_check_attempts In-Reply-To: <2dfcbd1b0709251627m315afdf4o881714b482b4ec6f@mail.gmail.com> References: <73A4C0316833CD40938754B7F8E6BE26012FEC14@EXVS07.net.ucsf.edu> <20070914001347.GH11709@pmorris.usa.hp.com> <2dfcbd1b0709250954t3e59349bhaa1c2664025cd5a7@mail.gmail.com> <46F962D0.6000609@op5.se> <2dfcbd1b0709251627m315afdf4o881714b482b4ec6f@mail.gmail.com> Message-ID: <46FA11A8.6060004@op5.se> Marcel wrote: > Well, but it _is_ possible, against what patrick stated. > > Sure it's dumb, though, but impossible would be too hard on Nagios. > Good thing I didn't say it was impossible then. > cheers, > > On 9/25/07, Andreas Ericsson wrote: >> Marcel wrote: >>> what if one craft a check-host-alive command with a sleep 60; check_icmp >> -H >>> xxx.xxx.xxx.xxx ??? >>> >> That would be a very bad idea indeed, as pre-3.0 nagios stops everything >> to >> run host checks. The 3.x-series, which unfortunately is still in beta, can >> do host checks while doing other things too. >> >> Trying out the latest beta would most likely be your best bet. >> >> -- >> Andreas Ericsson andreas.ericsson at op5.se >> OP5 AB www.op5.se >> Tel: +46 8-230225 Fax: +46 8-230231 >> > -- 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 Wed Sep 26 10:48:34 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Wed, 26 Sep 2007 09:48:34 +0100 (BST) Subject: migrating from nagios 1.x to 2.x Message-ID: <324156.49754.qm@web26214.mail.ukl.yahoo.com> hi I have nagios 1.x on a host. it has also apache1. Now I am installing php5, apache2, mysql5 and the new nagios 2 and its plugin. once the installation is made (new directories), what is the procedure to migrate data from 1.x to 2.x? 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 j.gabes at lectra.com Wed Sep 26 15:28:47 2007 From: j.gabes at lectra.com (Gabes Jean) Date: Wed, 26 Sep 2007 15:28:47 +0200 Subject: Dependancies between host and services Message-ID: <73BD1CEC958A564DB6771C5E97339F2804E27103@SMAIL.eu.lectra.com> Hi, I'm running Nagios 2.5. I've got a lot of distant servers and the network is not very... reliable :) So in a distant place, all servers are child from a router, so if I lost the router, I don't have 50 alerts, just one host alert. It's done by parent/child relationship. The only problem is that the dependency is done in a host level. So, when I lost network, I receive one Host notification, but 50x5 notifications for service timeout. I want to make a relationship between services of a host, and it's status: If the host is unreachable, don't check the services of this host. I can had a service check to see if the host is alive and make all service of the host dependant of this service, but I already do it in host check and doing this for all my server and my services is not maintainable. Is there a easy way (for a lot of servers and services) for doing such a dependency? External commands maybe but I can't see how. Thanks a lot. Jean -------------- 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 26 16:41:35 2007 From: marc at ena.com (Marc Powell) Date: Wed, 26 Sep 2007 09:41:35 -0500 Subject: Dependancies between host and services In-Reply-To: <73BD1CEC958A564DB6771C5E97339F2804E27103@SMAIL.eu.lectra.com> References: <73BD1CEC958A564DB6771C5E97339F2804E27103@SMAIL.eu.lectra.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gabes Jean > Sent: Wednesday, September 26, 2007 8:29 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Dependancies between host and services > > Hi, > > > > I'm running Nagios 2.5. I've got a lot of distant servers and the network > is not very... reliable :) > > So in a distant place, all servers are child from a router, so if I lost > the router, I don't have 50 alerts, just one host alert. It's done by > parent/child relationship. Good. > The only problem is that the dependency is done in a host level. So, when > I lost network, I receive one Host notification, but 50x5 notifications > for service timeout. I want to make a relationship between services of a > host, and it's status: This shouldn't be happening unless you've configured something specifically to cause it. Nagios understands that if a host is down or unreachable, so are it's services and it will normally suppress notifications for the services. Do you have 'u' specified as a notification_option in your service definition? Do you have host checks for the hosts behind this router that correctly determine the host's state? > If the host is unreachable, don't check the services of this host. Nagios will continue to check the services on the host but is smart enough not to notify you about them if the host is down or unreachable (unless you override that behavior). This is documented at http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service If you need further help, please post a service definition and its associated template, the host definition and template and the parent host definition and template. It's OK to obfuscate IP's and hostnames. -- 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 26 17:12:03 2007 From: marc at ena.com (Marc Powell) Date: Wed, 26 Sep 2007 10:12:03 -0500 Subject: Dependancies between host and services 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: Wednesday, September 26, 2007 9:42 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Dependancies between host and services > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Gabes Jean > > Sent: Wednesday, September 26, 2007 8:29 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Dependancies between host and services > > > > If the host is unreachable, don't check the services of this host. > > Nagios will continue to check the services on the host but is smart > enough not to notify you about them if the host is down or unreachable > (unless you override that behavior). This is documented at > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service Sorry, I really meant to point you to 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 melanie_pfefer at yahoo.co.uk Wed Sep 26 17:45:50 2007 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Wed, 26 Sep 2007 16:45:50 +0100 (BST) Subject: is there a nicer way? Message-ID: <667635.92379.qm@web26204.mail.ukl.yahoo.com> hi Whenever I add a host in hosts.cfg, I need to associate all needed services to that host. Is there any tool that just copies these services and add the host to a group automatically? 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 hpsekhon at googlemail.com Wed Sep 26 17:49:49 2007 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 26 Sep 2007 16:49:49 +0100 Subject: is there a nicer way? In-Reply-To: <667635.92379.qm@web26204.mail.ukl.yahoo.com> References: <667635.92379.qm@web26204.mail.ukl.yahoo.com> Message-ID: <46FA7F9D.4050608@googlemail.com> I think this is a good case for hostgroups. Just put a hostgroup in the services that you want, then when you add a host, add it to the hostgroup, that way it will get all the service checks. -h Hari Sekhon Melanie Pfefer wrote: > hi > > Whenever I add a host in hosts.cfg, I need to > associate all needed services to that host. > > Is there any tool that just copies these services and > add the host to a group automatically? > > 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 mboeckman at servicemagic.com Wed Sep 26 17:54:33 2007 From: mboeckman at servicemagic.com (Boeckman, Matthew) Date: Wed, 26 Sep 2007 09:54:33 -0600 Subject: is there a nicer way? Message-ID: <67CC1D2D52F85747ADE6BC83A4A7A76402C222BF@Apollo.servicemagic.com> Agreed - I can easily add a host to all associated services through my hostgroup. For example, I have a hostgroup setup for linux systems. All the service checks for CPU, Disk, etc use the configuration element: hostgroup_name linux So when I add a new host, I add the hosts.cfg element, then add the hostname to my linux hostgroups and voila! All services are now monitored on the new host. -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon Sent: Wednesday, September 26, 2007 9:50 AM To: Melanie Pfefer Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] is there a nicer way? I think this is a good case for hostgroups. Just put a hostgroup in the services that you want, then when you add a host, add it to the hostgroup, that way it will get all the service checks. -h Hari Sekhon Melanie Pfefer wrote: > hi > > Whenever I add a host in hosts.cfg, I need to associate all needed > services to that host. > > Is there any tool that just copies these services and add the host to > a group automatically? > > 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 ------------------------------------------------------------------------- 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 andrew at profitability.net Wed Sep 26 19:58:21 2007 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 26 Sep 2007 13:58:21 -0400 Subject: Status.cgi question Message-ID: <070b01c80066$d387dda0$2800a8c0@andrew2> I can't believe this isn't in the documentation so I fear I'm looking the wrong place, but I sure can't find it. I'm playing with the output of status.cgi like this: http://nagioshost.domain.com/nagios/cgi-bin/status.cgi?host=all&servicestatu stypes=248 And I'm trying to figure out what the various options are for host and servicestatustypes. What I'm trying to do is display a window which shows all service problems (unknown, warning, and critical) that haven't been acknowledged. That's easy except for the acknolwedgement part. The best I've been able to do so far is display all service problems *including* those that have been acknowledged. Is there any way to exclude acknowledged problems? Thanks, Andrew ------------------------------------------------------------------------- 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 Wed Sep 26 20:05:16 2007 From: CJackson at abbott-simses.com (Craig Jackson) Date: Wed, 26 Sep 2007 13:05:16 -0500 Subject: Disk Critical erroneously reported by Nagios Message-ID: <3298D7BF4EB43A4498C56C7E304EC692A82DD6@NO-MAIL.abbott-simses.local> Hi, The NRPE command reports okay for the disk: root at snapper:~# /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p "/var/spool/exim/vmail" DISK OK - free space: /var/spool/exim/vmail 300057 MB (67% inode=98%);| /var/spool/exim/vmail=145547MB;375561;422506;0;469452 But nagios reports this status: DISK CRITICAL - /var/spool/exim/vmail does not exist The other disks and services on that computer report fine. NRPE is Version: 2.5.1 Nagios version 1.4 OS is Ubuntu Feisty Recently I reported a similar problem, but fixed that problem by using the mount point as command argument instead of the device. This is a new problem, I think. 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 reed at reedmedia.net Wed Sep 26 21:03:29 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Wed, 26 Sep 2007 14:03:29 -0500 (CDT) Subject: how to use servicedependency? Message-ID: (I posed a couple weeks ago, but only got one response which was different than what I think I want to do.) I am running Nagios 2.9. I want: if a check_ping fails then I don't want an alert sent to me unless a second test (check_nrpe to a remote system that does the same check_ping) fails. I am reading http://nagios.sourceforge.net/docs/2_0/dependencies.html (I was looking at 3_0 last time.) And I am looking at http://www.linickx.com/blog/archives/271/how-to-monitor-wordpress-with-nagios/ Where is execution_failure_criteria and notification_failure_criteria documented for 2.9? Can someone please provide an example of only sending a problem alert if two different check_commands fail and the second check_command is not done if the first one is OK? This is what I have: define service { use service-template host_name sj2 service_description sj2.router1 check_command check_nrpe!check_router1 } # The "dependent" is the object that needs something. define servicedependency { dependent_host_name sj2 dependent_service_description sj2.router1 host_name sv1 service_description sv1.dummy1 # o = fail on an OK state, the dependent service will not be actively # checked if the master service is in OK execution_failure_criteria o # notification_failure_criteria o } define service { use service-template host_name sv1 service_description sv1.dummy1 check_command check-link } But I am getting two alerts if both don't return OK. I only want one alert. Also I am unsure how to use the execution_failure_criteria and notification_failure_criteria. And I do not want my "sj2.router1" to even be checked if the first "sv1.dummy1" is successful. But if sv1.dummy1 fails, then I want the sj2.router1 check to happen. And if it fails then send my alert. 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 marc at ena.com Wed Sep 26 21:18:44 2007 From: marc at ena.com (Marc Powell) Date: Wed, 26 Sep 2007 14:18:44 -0500 Subject: Status.cgi question In-Reply-To: <070b01c80066$d387dda0$2800a8c0@andrew2> References: <070b01c80066$d387dda0$2800a8c0@andrew2> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Andrew Cruse > Sent: Wednesday, September 26, 2007 12:58 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Status.cgi question > > I can't believe this isn't in the documentation so I fear I'm looking the > wrong place, but I sure can't find it. I'm playing with the output of > status.cgi like this: > > http://nagioshost.domain.com/nagios/cgi- > bin/status.cgi?host=all&servicestatu > stypes=248 > > And I'm trying to figure out what the various options are for host and > servicestatustypes. What I'm trying to do is display a window which shows > all service problems (unknown, warning, and critical) that haven't been > acknowledged. That's easy except for the acknolwedgement part. The best > I've been able to do so far is display all service problems *including* > those that have been acknowledged. Is there any way to exclude > acknowledged > problems? We use -- status.cgi?host=all&type=detail&servicestatustypes=28&hoststatustypes=14 &serviceprops=42 >From include/statusdata.h, servicestatustypes is the sum of -- #define SERVICE_WARNING 4 #define SERVICE_UNKNOWN 8 #define SERVICE_CRITICAL 16 hoststatustypes is the sum of -- #define HOST_UP 2 #define HOST_DOWN 4 #define HOST_UNREACHABLE 8 (we _really_ use 2 here since all our hosts appear up all the time) >From include/cgiutils.h, serviceprops is the sum of #define SERVICE_NO_SCHEDULED_DOWNTIME 2 #define SERVICE_STATE_UNACKNOWLEDGED 8 #define SERVICE_CHECKS_ENABLED 32 HTH, -- 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 viniciusfs at gmail.com Wed Sep 26 21:30:58 2007 From: viniciusfs at gmail.com (=?ISO-8859-1?Q?Vin=EDcius_de_Figueiredo?=) Date: Wed, 26 Sep 2007 16:30:58 -0300 Subject: NRPE & Nagios Plugins - Static Compilation? In-Reply-To: References: Message-ID: Solved. If you need to build NRPE with static linked OpenSSL on Solaris 9, just edit src/Makefile and change variable LDFLAGS to: LDFLAGS= -L/path/to/libssl.a /path/to/libcrypto.a -ldl -- Vin?cius. personal site - http://vinicius.oitobits.net gaming blog - http://www.oitobits.net On 9/21/07, Vin?cius de Figueiredo wrote: > Hi all. > > I need to deploy Nagios in some Solaris and Linux boxes that I can't > install dependencies (like OpenSSL and others). Is there a way to > create fat binaries with dependencies included? Or force Nagios to use > dependencies located in a fixed location like /usr/local/nagios/libs? > > My idea is to create a package (or a simple tar.gz) with all Nagios > related stuff without the need to install files outside the Nagios > directory. > > Thanks. > > -- > Vin?cius. > personal site - http://vinicius.oitobits.net > gaming blog - http://www.oitobits.net > ------------------------------------------------------------------------- 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 zkenton at outcome.com Wed Sep 26 22:30:54 2007 From: zkenton at outcome.com (zack kenton) Date: Wed, 26 Sep 2007 22:30:54 +0200 (CEST) Subject: turn off epn Message-ID: <20070926203054.2EC80580078@desire.netways.de> Hi list i've installed nagios from an rpm package, which in turn enables epn, whish isnt necessarily a bad thing...however, I had some scripts from my old version of nagios that are not working now because of epn...is there anyway to tell nagios not to use epn and use regular perl to read the script, because it works from the command line - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 zkenton at outcome.com Wed Sep 26 22:31:18 2007 From: zkenton at outcome.com (zack kenton) Date: Wed, 26 Sep 2007 22:31:18 +0200 (CEST) Subject: turn off epn Message-ID: <20070926203118.36C80580078@desire.netways.de> Hi list i've installed nagios from an rpm package, which in turn enables epn, whish isnt necessarily a bad thing...however, I had some scripts from my old version of nagios that are not working now because of epn...is there anyway to tell nagios not to use epn and use regular perl to read the script, because it works from the command line - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 zkenton at outcome.com Wed Sep 26 22:34:24 2007 From: zkenton at outcome.com (zack kenton) Date: Wed, 26 Sep 2007 22:34:24 +0200 (CEST) Subject: turn off epn Message-ID: <20070926203424.1FFAC580078@desire.netways.de> Hi list i've installed nagios from an rpm package, which in turn enables epn, whish isnt necessarily a bad thing...however, I had some scripts from my old version of nagios that are not working now because of epn...is there anyway to tell nagios not to use epn and use regular perl to read the script, because it works from the command line - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 CWaters at jeld-wen.com Wed Sep 26 22:44:34 2007 From: CWaters at jeld-wen.com (Chris Waters) Date: Wed, 26 Sep 2007 13:44:34 -0700 Subject: turn off epn In-Reply-To: <20070926203424.1FFAC580078@desire.netways.de> References: <20070926203424.1FFAC580078@desire.netways.de> Message-ID: <30D62F21FD4BE1448C156D2A3E30039701ADC7ED@jwmail01.jeld-wen.com> Define a user macro in your resouces for /your/path/to/perl Then change the commands for the plugins you want to use regular perl for. >From resources.cfg: $USER2$=/usr/bin/perl Example from command.cfg: define command{ command_name check_snmp_winmem command_line $USER2$ /usr/local/nagios/libexec/check_snmp_winmem -h $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ } Chris Waters Technology Services - Network Group JELD-WEN, Inc. Information Systems cwaters at jeld-wen.com -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of zack kenton Sent: Wednesday, September 26, 2007 1:34 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] turn off epn Hi list i've installed nagios from an rpm package, which in turn enables epn, whish isnt necessarily a bad thing...however, I had some scripts from my old version of nagios that are not working now because of epn...is there anyway to tell nagios not to use epn and use regular perl to read the script, because it works from the command line - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 ------------------------------------------------------------------------- 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 zkenton at outcome.com Wed Sep 26 23:04:39 2007 From: zkenton at outcome.com (zack kenton) Date: Wed, 26 Sep 2007 23:04:39 +0200 (CEST) Subject: turn off epn In-Reply-To: <30D62F21FD4BE1448C156D2A3E30039701ADC7ED@jwmail01.jeld-wen.com> References: <30D62F21FD4BE1448C156D2A3E30039701ADC7ED@jwmail01.jeld-wen.com> Message-ID: <20070926210443.7638D580078@desire.netways.de> Hi Chris So I've done this in two different ways. The first being simply putting /usr/bin/perl before the command, like /usr/bin/perl $USER&/contrib/check_oracle_instance.pl.....and i also tried your method, which is basically the same...now I'm getting "no output" instead of the epn error I was previously getting...but this occurs with 2 different perl scripts so I dont think its unique to the oracle script - zack kenton (zkenton) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=4715 ------------------------------------------------------------------------- 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 Thu Sep 27 00:35:27 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Wed, 26 Sep 2007 15:35:27 -0700 Subject: check commands not working on NagiosQL Message-ID: <2b7af7c40709261535x6b4f0884u9f087aa09cd5b268@mail.gmail.com> I'm having problems with NagiosQL reading certain "check commands", particularly check_nt and check_bl (check_ping, for example, works just fine) They're written right (exactly like I have on my regular Nagios cfg files), but every time I to create a service check with it and try to write the config, I get the following error: "Service check command 'check_bl' specified in service 'RBL_check' for host 'Exchange-Server' not defined anywhere!" AND "Service check command 'check_nt' specified in service 'check_nt_process' for host 'Exchange-Server' not defined anywhere!" Odd, considering the the following checkcommands.cfg settings should work fine. $USER1$/check_nt -H $HOSTADDRESS$ -s password -p 12489 -v PROCSTATE -l $ARG1$ AND $USER1$/check_bl -H $HOSTADDRESS$ -B zen.spamhaus.org bl.spamcop.net dnsbl.ahbl.org dnsbl.njabl.org dnsbl.sorbs.net virbl.dnsbl.bit.nl rbl.efnet.org phishing.rbl.msrbl.net Both of these work from the command line, and again, they are defined *exactly* the same way I have had working on the regular cfg files (before I used the NagiosQL front end). Also, all of the other check commands (which are the exact same way -- /$USER1$/check_whatever [parameters]) work. Any suggestions? ------------------------------------------------------------------------- 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 27 00:37:39 2007 From: marc at ena.com (Marc Powell) Date: Wed, 26 Sep 2007 17:37:39 -0500 Subject: turn off epn In-Reply-To: <20070926210443.7638D580078@desire.netways.de> References: <20070926210443.7638D580078@desire.netways.de> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of zack kenton > Sent: Wednesday, September 26, 2007 4:05 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] turn off epn > > Hi Chris > > So I've done this in two different ways. The first being simply putting > /usr/bin/perl before the command, like /usr/bin/perl > $USER&/contrib/check_oracle_instance.pl.....and i also tried your method, > which is basically the same...now I'm getting "no output" instead of the > epn error I was previously getting...but this occurs with 2 different perl > scripts so I dont think its unique to the oracle script This is the correct way to disable use of ePn without recompiling. The implication is that your scripts really are bombing or otherwise showing an error. When you tested, did you do so as the nagios user? Environment or permissions problems are commonly the culprit. You might want to redirect STDOUT and STDERR to a file to see what it's doing. You should be able to do so by adding '> /tmp/output 2>&1' to the end of the command definition then checking the contents of /tmp/output after nagios has run the plugin. -- 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 Thu Sep 27 01:26:38 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Wed, 26 Sep 2007 16:26:38 -0700 Subject: distributed checks with NT client? Message-ID: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> Is there a way to do (I think it's called) passive checks with an NT server? I have a centralized Nagios server racked off site, and I would like to send a request to certain NT boxes and have NSClient++ (or whatever) ping certain devices on the network. I'm hoping that this is possible on NT, as I don't want to have to build several more Nagios boxes just to have the distributed checking that I need. ------------------------------------------------------------------------- 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 27 03:05:17 2007 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 26 Sep 2007 21:05:17 -0400 Subject: distributed checks with NT client? In-Reply-To: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> References: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> Message-ID: NC_NEt was developed for running both active checks and passive checks.. http://sourceforge.net/projects/nc-net you can download it from sourceforge, asside from accepting Check_nt requests it can also be configured for using passive checks. With Passive checks, you configure the windows server with a buch of checks and it sends the results to the nagios host running NSCA to recieve the checks. THe nagios server needs to also be configured with the same check and host name in order to recieve the data. NC_NEt also supports Passive host checks. Your comment looks like you want to be able to run Scripts and use a single host as a proxy to others. that is a bit different, but NC_NEt has RUNSCRIPT command that would allow you to run your own customized scritps to reach other hosts on the localnetwork. and via NRPE you should be able to use NSClient++ to do the same. Good luck, Hope this helps Tony Author of NC_NEt On 9/26/07, Rogelio Bastardo wrote: > > Is there a way to do (I think it's called) passive checks with an NT > server? > > I have a centralized Nagios server racked off site, and I would like > to send a request to certain NT boxes and have NSClient++ (or > whatever) ping certain devices on the network. > > I'm hoping that this is possible on NT, as I don't want to have to > build several more Nagios boxes just to have the distributed checking > that I need. > > ------------------------------------------------------------------------- > 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 T.OShea at cbs.curtin.edu.au Thu Sep 27 03:11:04 2007 From: T.OShea at cbs.curtin.edu.au (Tony O'Shea) Date: Thu, 27 Sep 2007 09:11:04 +0800 Subject: Compiling nagios-plugins-1.4.9 for Solaris 10 In-Reply-To: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> References: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> Message-ID: Hi all, I hope that you can help me, I am having problems compiling nagios-plugins-1.4.9 for Solaris 10, below is the PATH & LD_LIBRARY_PATH setup. >> LD_LIBRARY_PATH=/usr/share/lib:usr/share/webconsole/lib:/usr/ccs/lib:/us r/lib:/usr/openwin/lib:/usr/sadm/lib:/usr/xpg4/lib:/usr/sfw/lib:/usr/dt/ lib:/usr/X11/lib:/usr/j2se/lib:/usr/snadm/lib:/usr/local/lib:/var/lib:/e tc/lib:/opt/xampp/lib:/usr/local/ssl/lib PATH=:/opt/xampp/bin:/usr/sbin:/usr/openwin/bin:/usr/bin:/usr/local/bin: /usr/local/sbin:/usr/ccs/bin:/usr/ccs/lib:/usr/ucb:/etc:/usr/local/lib/g cc:/usr/sfw/bin:/opt/sfw/bin:/usr/local/nagios/bin:/usr/local/nagios/sbi n:/usr/local/nagios/libexec << I am using the following options only when running configure: ./configure --prefix=/usr/local/nagios/lib --with-cgiurl=/nagios/cgi-bin This is the output I get when I run make: In file included from check_http.c:46: common.h:191: warning: static declaration of 'floorf' follows non-static declaration /bin/bash ../libtool --tag=CC --mode=link gcc -L. -L/usr/local/ssl/lib -o check_http check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -lresolv -lssl -lcrypto -lnsl -lsocket gcc -o check_http check_http.o sslutils.o netutils.o utils.o -L/stage/build/nagios-plugins-1.4.9/plugins -L/usr/local/ssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a -lresolv -lssl -lcrypto -lnsl -lsocket Undefined first referenced symbol in file OpenSSL_add_all_algorithms sslutils.o ld: fatal: Symbol referencing errors. No output written to check_http collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `check_http' Current working directory /stage/build/nagios-plugins-1.4.9/plugins *** Error code 1 The following command caused the error: failcom='exit 1'; \ Thank you for your help. Regards, Tony. ------------------------------------------------------------------------- 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 kenlee at jeld-wen.com.au Thu Sep 27 05:07:11 2007 From: kenlee at jeld-wen.com.au (Ken Lee) Date: Thu, 27 Sep 2007 05:07:11 +0200 (CEST) Subject: notifications 3.0b3 not working. Message-ID: <20070927030711.7DD8B580078@desire.netways.de> Hi all, I am running Nagios 3.0b3 on Redhat AS4 PPC and everything is great, except that my notifications do not work at all. I have sendmail installed and configured and I am able to send mail from the server by simple sendmail commands and by running the command below: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/sendmail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" myemail at address.com.au I look in the nagios log and there is no notification history at all. I have enabled notifications in the nagios.cfg file, my contacts and contact groups seem to be ok and are listed. The timeperiod i am using is the 24/7 so that should not be too much of an issue and everything in the hostc.cfg is there and setup correctly. I was thinking that this problem had to do with the bug in the previous release of version 3 which would not allow contactgroups to get notifications but allowed contacts, so I added contacts and still nothing. After that I upgraded and here I am. I have done a lot of looking around in the last few days and am stuck. Any assistance would be appreciated. - Ken Lee (kenlee) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 adevey at omniture.com Thu Sep 27 05:09:29 2007 From: adevey at omniture.com (Aaron Devey) Date: Wed, 26 Sep 2007 21:09:29 -0600 Subject: how to use servicedependency? In-Reply-To: References: Message-ID: <46FB1EE9.1080305@omniture.com> If I am reading your question right, the dependency works, but currently you get alerts for sv1.dummy1 AND sj2.router1, and you only want alerts for sj2.router1. If this is the case, you could try setting up sv1.dummy1 so that it doesn't alert. Unfortunately, you might run into problems with getting sj2.router1 to recognize a recovery if sv1.dummy1 recovers first. You could try a circular dependency (and I'm not even sure if you can do that in nagios) where sj2.router1 only runs if sv1.dummy1 is failing, and sv1.dummy1 only runs if sj2.router1 is passing. But then you might get a problem where neither check runs because sv1.dummy1 is passing, and sj2.router1 is failing. This is a difficult problem to solve with service dependencies. Basically you want to go critical if both AND fail. But recover if either OR pass. Unfortunately, the way your service dependency works, the status of is directly tied to the status of . And never updates if passes. So you really need to determine the status of both checks and alert accordingly, or you need an event handler for to submit an 'OK' status for when it's passing. The first of those two options is definitely the easiest. It simply consists of a small shell script that runs and if fails, returns the status of . Consider a script such as the following: #!/bin/bash CHECK_ONE="/path-to-checks/check_ping -H $1 -t 2 -p 2 -w 500,50% -c 999,99%" CHECK_TWO="/path-to-checks/check_ping -H $2 -t 2 -p 2 -w 500,50% -c 999,99%" if $CHECK_ONE >/dev/null 2>&1; then echo "Check one OK." exit 0 else exec $CHECK_TWO fi Replacing your own check commands in CHECK_ONE and CHECK_TWO of course. The first one would be the equivalent of your "check-link" command. The second would be the equivalent of your "check_nrpe!check_router1" command. Note that in this case I used $1 and $2, so the first argument to the script would be the first host to check, the second argument would be a second hostname. You don't have to use arguments and could just hard-code the values into your script, but it makes the script more scalable if your installation grows. The second check is ONLY executed if the first one fails. This way you only need one host, one service, and no dependencies. If you named your checkcommand "check_double" the service would be something like: define service { use service-template host_name sj2 service_description sj2.router1 check_command check_double!first_hostname!second_hostname } Good luck! -Aaron Jeremy C. Reed wrote: > > (I posed a couple weeks ago, but only got one response which was different > than what I think I want to do.) > > I am running Nagios 2.9. > > I want: if a check_ping fails then I don't want an alert sent to me > unless a second test (check_nrpe to a remote system that does the same > check_ping) fails. > > I am reading http://nagios.sourceforge.net/docs/2_0/dependencies.html > (I was looking at 3_0 last time.) And I am looking at > http://www.linickx.com/blog/archives/271/how-to-monitor-wordpress-with-nagios/ > > Where is execution_failure_criteria and notification_failure_criteria > documented for 2.9? > > Can someone please provide an example of only sending a problem alert if > two different check_commands fail and the second check_command is not done > if the first one is OK? > > This is what I have: > > define service { > use service-template > host_name sj2 > service_description sj2.router1 > check_command check_nrpe!check_router1 > } > > # The "dependent" is the object that needs something. > define servicedependency { > dependent_host_name sj2 > dependent_service_description sj2.router1 > host_name sv1 > service_description sv1.dummy1 > # o = fail on an OK state, the dependent service will not be actively > # checked if the master service is in OK > execution_failure_criteria o > # notification_failure_criteria o > } > > define service { > use service-template > host_name sv1 > service_description sv1.dummy1 > check_command check-link > } > > > But I am getting two alerts if both don't return OK. I only want one > alert. Also I am unsure how to use the execution_failure_criteria and > notification_failure_criteria. > > And I do not want my "sj2.router1" to even be checked if the first > "sv1.dummy1" is successful. But if sv1.dummy1 fails, then I want the > sj2.router1 check to happen. And if it fails then send my alert. > > > > 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 sudhir at stratogent.com Thu Sep 27 06:47:31 2007 From: sudhir at stratogent.com (Sudhir Damle) Date: Wed, 26 Sep 2007 21:47:31 -0700 Subject: looking for help with NSClient Message-ID: <036a01c800c1$84c28d90$6a0110ac@sdamle> Hi All, I have installed NSClient 2.0.1.0 on Windows 2000 server. Client was working Good till I rebooted the server. Now whenever I start ' Nagios Agent' service, it gets started, application event viewer says 'NSClient is now responding to queries' but service simply stops after that. No error in event viewer. Any help/ suggestion appreciated. Thanks, Sudhir Damle Systems & Operations Stratogent sudhir at stratogent.com Tel: (650) 577-2332 www.stratogent.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 huenseler at twt.de Thu Sep 27 07:30:19 2007 From: huenseler at twt.de (=?iso-8859-1?Q?Dennis_H=FCnseler?=) Date: Thu, 27 Sep 2007 07:30:19 +0200 Subject: notifications 3.0b3 not working. References: <20070927030711.7DD8B580078@desire.netways.de> Message-ID: <8A793F1AC3ED7447B580082FCF608CF9FE24DC@twtexchange1.twt.intern> Hi there, It's hard to find out what goes wrong if we don't get some parts of the log and some parts of the config files. If you don't see any notifications in the logfile(/var/log/messages) there should at least be some lines like Sep 23 11:05:17 caladan nagios: SERVICE ALERT: serv2;SMTP;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds Sep 23 11:06:17 caladan nagios: SERVICE ALERT: serv2;SMTP;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds Sep 23 11:07:17 caladan nagios: SERVICE ALERT: serv2;SMTP;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds Important is the line with the HARD state change, which causes the notification. If there aren't lines like that give us a look at the configs. 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 Ken Lee Sent: Thursday, September 27, 2007 5:07 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] notifications 3.0b3 not working. Hi all, I am running Nagios 3.0b3 on Redhat AS4 PPC and everything is great, except that my notifications do not work at all. I have sendmail installed and configured and I am able to send mail from the server by simple sendmail commands and by running the command below: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/sendmail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" myemail at address.com.au I look in the nagios log and there is no notification history at all. I have enabled notifications in the nagios.cfg file, my contacts and contact groups seem to be ok and are listed. The timeperiod i am using is the 24/7 so that should not be too much of an issue and everything in the hostc.cfg is there and setup correctly. I was thinking that this problem had to do with the bug in the previous release of version 3 which would not allow contactgroups to get notifications but allowed contacts, so I added contacts and still nothing. After that I upgraded and here I am. I have done a lot of looking around in the last few days and am stuck. Any assistance would be appreciated. - Ken Lee (kenlee) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 ------------------------------------------------------------------------- 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 j.gabes at lectra.com Thu Sep 27 08:06:45 2007 From: j.gabes at lectra.com (Gabes Jean) Date: Thu, 27 Sep 2007 08:06:45 +0200 Subject: Dependancies between host and services In-Reply-To: References: <73BD1CEC958A564DB6771C5E97339F2804E27103@SMAIL.eu.lectra.com> Message-ID: <73BD1CEC958A564DB6771C5E97339F2804E278A2@SMAIL.eu.lectra.com> Yes, I've got u in notification_options for theses hosts. But I believed that was for Unknown? Maybe in that case Unknow is like Unreachable (this is logic in fact). I'll try this, thanks a lot, Jean -----Message d'origine----- De?: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Marc Powell Envoy??: mercredi 26 septembre 2007 16:42 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Dependancies between host and services > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gabes Jean > Sent: Wednesday, September 26, 2007 8:29 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Dependancies between host and services > > Hi, > > > > I'm running Nagios 2.5. I've got a lot of distant servers and the network > is not very... reliable :) > > So in a distant place, all servers are child from a router, so if I lost > the router, I don't have 50 alerts, just one host alert. It's done by > parent/child relationship. Good. > The only problem is that the dependency is done in a host level. So, when > I lost network, I receive one Host notification, but 50x5 notifications > for service timeout. I want to make a relationship between services of a > host, and it's status: This shouldn't be happening unless you've configured something specifically to cause it. Nagios understands that if a host is down or unreachable, so are it's services and it will normally suppress notifications for the services. Do you have 'u' specified as a notification_option in your service definition? Do you have host checks for the hosts behind this router that correctly determine the host's state? > If the host is unreachable, don't check the services of this host. Nagios will continue to check the services on the host but is smart enough not to notify you about them if the host is down or unreachable (unless you override that behavior). This is documented at http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service If you need further help, please post a service definition and its associated template, the host definition and template and the parent host definition and template. It's OK to obfuscate IP's and hostnames. -- 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 ------------------------------------------------------------------------- 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 Thu Sep 27 14:30:53 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 27 Sep 2007 08:30:53 -0400 Subject: Compiling nagios-plugins-1.4.9 for Solaris 10 In-Reply-To: References: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> Message-ID: <46FBA27D.6080702@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 26/09/07 09:11 PM, Tony O'Shea wrote: > Hi all, Hi, First of all you should avoid using the Reply button to compose a new message. This breaks threading and there's change many people won't ever look at your post because it's hidden behind an unrelated one. I'm a Nagios-plugins developer but I'm not very experienced with linking issues. Ideally you should subscribe to Nagiosplug-devel and repost here. > I hope that you can help me, I am having problems compiling > nagios-plugins-1.4.9 for Solaris 10, below is the PATH & LD_LIBRARY_PATH > setup. I compared what you have with my Solaris 10 box and I can't find anything wrong... My build has SSL support. I guess you installed OpenSSL from the Solaris 10 package (if no can you please give more details?) Also if you have autoconf/gen/make, gettext, libtool and GNU m4 (not the m4 that comes with Solaris) already installed you may try the following (from the Nagios-plugins directory): $ tools/distclean $ tools/setup Then your normal configure/make. If it fails don't bother installing the required stuff; you might get more help in the Nagiosplug-devel mailing list. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+6J86dZ+Kt5BchYRAmzmAKC8HlEH2q2pqEwil5OozQvQJAZisQCdFIQd GqrrqdabQH0McP3c1ziGeXQ= =QdBC -----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 j.gabes at lectra.com Thu Sep 27 15:21:00 2007 From: j.gabes at lectra.com (Gabes Jean) Date: Thu, 27 Sep 2007 15:21:00 +0200 Subject: Dependancies between host and services In-Reply-To: <73BD1CEC958A564DB6771C5E97339F2804E278A2@SMAIL.eu.lectra.com> References: <73BD1CEC958A564DB6771C5E97339F2804E27103@SMAIL.eu.lectra.com> <73BD1CEC958A564DB6771C5E97339F2804E278A2@SMAIL.eu.lectra.com> Message-ID: <73BD1CEC958A564DB6771C5E97339F2804E4A1BC@SMAIL.eu.lectra.com> Hi, I searched a way to put the service error of unreachable host in a unknown state, but the only way I found is a patch (posted in the dev list). If someone got another way of doing this, I take :) Thanks, Jean -----Message d'origine----- De?: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Gabes Jean Envoy??: jeudi 27 septembre 2007 08:07 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Dependancies between host and services Yes, I've got u in notification_options for theses hosts. But I believed that was for Unknown? Maybe in that case Unknow is like Unreachable (this is logic in fact). I'll try this, thanks a lot, Jean -----Message d'origine----- De?: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Marc Powell Envoy??: mercredi 26 septembre 2007 16:42 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Dependancies between host and services > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gabes Jean > Sent: Wednesday, September 26, 2007 8:29 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Dependancies between host and services > > Hi, > > > > I'm running Nagios 2.5. I've got a lot of distant servers and the network > is not very... reliable :) > > So in a distant place, all servers are child from a router, so if I lost > the router, I don't have 50 alerts, just one host alert. It's done by > parent/child relationship. Good. > The only problem is that the dependency is done in a host level. So, when > I lost network, I receive one Host notification, but 50x5 notifications > for service timeout. I want to make a relationship between services of a > host, and it's status: This shouldn't be happening unless you've configured something specifically to cause it. Nagios understands that if a host is down or unreachable, so are it's services and it will normally suppress notifications for the services. Do you have 'u' specified as a notification_option in your service definition? Do you have host checks for the hosts behind this router that correctly determine the host's state? > If the host is unreachable, don't check the services of this host. Nagios will continue to check the services on the host but is smart enough not to notify you about them if the host is down or unreachable (unless you override that behavior). This is documented at http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service If you need further help, please post a service definition and its associated template, the host definition and template and the parent host definition and template. It's OK to obfuscate IP's and hostnames. -- 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 ------------------------------------------------------------------------- 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 dermoth at aei.ca Thu Sep 27 15:24:23 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 27 Sep 2007 09:24:23 -0400 Subject: Compiling nagios-plugins-1.4.9 for Solaris 10 In-Reply-To: <46FBA27D.6080702@aei.ca> References: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> <46FBA27D.6080702@aei.ca> Message-ID: <46FBAF07.1030006@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/09/07 08:30 AM, Thomas Guyot-Sionnest wrote: > Also if you have autoconf/gen/make, gettext, libtool and GNU m4 (not the > m4 that comes with Solaris) already installed you may try the following > (from the Nagios-plugins directory): > > $ tools/distclean > $ tools/setup > > Then your normal configure/make. If it fails don't bother installing the > required stuff; you might get more help in the Nagiosplug-devel mailing > list. Oh, forget that; those tools are only in Subversion; they're not released. I tried with the release (without running automake/autoconf) and it works as well as with SVN. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+68H6dZ+Kt5BchYRAjO0AKCCjJkWwajh3sO8if3lw3Sc0IebOQCgwVSh 6vuncMjbILvbSD+ogBzPP5c= =HdEU -----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 reed at reedmedia.net Thu Sep 27 15:44:29 2007 From: reed at reedmedia.net (Jeremy C. Reed) Date: Thu, 27 Sep 2007 08:44:29 -0500 (CDT) Subject: how to use servicedependency? In-Reply-To: <46FB1EE9.1080305@omniture.com> References: <46FB1EE9.1080305@omniture.com> Message-ID: On Wed, 26 Sep 2007, Aaron Devey wrote: > If I am reading your question right, the dependency works, but currently > you get alerts for sv1.dummy1 AND sj2.router1, and you only want alerts > for sj2.router1. Either one. I just don't want to get two alerts. > If this is the case, you could try setting up > sv1.dummy1 so that it doesn't alert. Unfortunately, you might run into > problems with getting sj2.router1 to recognize a recovery if sv1.dummy1 > recovers first. You could try a circular dependency (and I'm not even > sure if you can do that in nagios) where sj2.router1 only runs if > sv1.dummy1 is failing, and sv1.dummy1 only runs if sj2.router1 is > passing. But then you might get a problem where neither check runs > because sv1.dummy1 is passing, and sj2.router1 is failing. > > This is a difficult problem to solve with service dependencies. > Basically you want to go critical if both AND B> fail. But recover if either OR pass. Not really an OR. Using the 'servicedependency" I don't want the second check to be done if the first passes. Thanks for the rest of your ideas. It is a little different than what I want. I need the second check (if the first check fails) to be performed on a remote machine. (Your check_double does seem useful and I may use it elsewhere.) Does anyone here use servicedependency? Can you please share an example of what the execution_failure_criteria and notification_failure_criteria mean? 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 scubacuda at gmail.com Thu Sep 27 16:52:18 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Thu, 27 Sep 2007 07:52:18 -0700 Subject: distributed checks with NT client? In-Reply-To: References: <2b7af7c40709261626r1d37e9e2x663f313b672aff91@mail.gmail.com> Message-ID: <2b7af7c40709270752x153677f4xdbde7aa31231dd34@mail.gmail.com> On 9/26/07, Anthony Montibello wrote: > > NC_NEt was developed for running both active checks and passive checks.. > http://sourceforge.net/projects/nc-net > > you can download it from sourceforge, asside from accepting Check_nt > requests it can also be configured for using passive checks. > Perfect, this is exactly what I was looking for! (I'll be implementing this as soon as I fix my NagiosQL glitch (http://www.nagiosql.com/ticket/59] ) Best, Rogelio -------------- 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 dario.bestetti at opservices.com.br Thu Sep 27 17:09:41 2007 From: dario.bestetti at opservices.com.br (Dario B. Bestetti) Date: Thu, 27 Sep 2007 12:09:41 -0300 Subject: RES: looking for help with NSClient In-Reply-To: <036a01c800c1$84c28d90$6a0110ac@sdamle> References: <036a01c800c1$84c28d90$6a0110ac@sdamle> Message-ID: <40315.1385290132$1190906821@news.gmane.org> Sudhir, try this new version for NSClient: http://www.opservices.com.br/index.php?option=com_content&task=view&id=54&It emid=54 _________________________________________________ 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 ..." _________________________________________________ De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em nome de Sudhir Damle Enviada em: quinta-feira, 27 de setembro de 2007 01:48 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] looking for help with NSClient Hi All, I have installed NSClient 2.0.1.0 on Windows 2000 server. Client was working Good till I rebooted the server. Now whenever I start ? Nagios Agent? service, it gets started, application event viewer says ?NSClient is now responding to queries? but service simply stops after that. No error in event viewer. Any help/ suggestion appreciated. Thanks, Sudhir Damle Systems & Operations Stratogent sudhir at stratogent.com Tel: (650) 577-2332 www.stratogent.com -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo. -------------- 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 zkenton at outcome.com Thu Sep 27 18:58:17 2007 From: zkenton at outcome.com (zack kenton) Date: Thu, 27 Sep 2007 18:58:17 +0200 (CEST) Subject: turn off epn In-Reply-To: References: Message-ID: <20070927165817.AF000580078@desire.netways.de> Hi Marc So I've tried everyones methods. Putting perl directly into the command line of commands.cfg, setting up a macros user with /usr/bin/perl, the environmental variables are fine...I just dont think there is a way around embedded perl. - zack kenton (zkenton) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=4719 ------------------------------------------------------------------------- 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 27 19:58:22 2007 From: marc at ena.com (Marc Powell) Date: Thu, 27 Sep 2007 12:58:22 -0500 Subject: turn off epn In-Reply-To: <20070927165817.AF000580078@desire.netways.de> References: <20070927165817.AF000580078@desire.netways.de> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of zack kenton > Sent: Thursday, September 27, 2007 11:58 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] turn off epn > > Hi Marc > > So I've tried everyones methods. Putting perl directly into the command > line of commands.cfg, setting up a macros user with /usr/bin/perl, the > environmental variables are fine...I just dont think there is a way around > embedded perl. I'm quite certain that using the /usr/bin/perl method bypasses embedded perl. Search the archives, you'll find lots of evidence of that. If you want to troubleshoot further, did you capture the STDOUT/STDERR of the plugin while nagios was running it? What was the result? Did you run the plugin as the nagios user from the command line? What was the result? -- 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 Thu Sep 27 20:19:58 2007 From: ae at op5.se (Andreas Ericsson) Date: Thu, 27 Sep 2007 20:19:58 +0200 Subject: turn off epn In-Reply-To: References: Message-ID: <46FBF44E.1080106@op5.se> Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of zack kenton >> Sent: Thursday, September 27, 2007 11:58 AM >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] turn off epn >> >> Hi Marc >> >> So I've tried everyones methods. Putting perl directly into the > command >> line of commands.cfg, setting up a macros user with /usr/bin/perl, the >> environmental variables are fine...I just dont think there is a way > around >> embedded perl. > > I'm quite certain that using the /usr/bin/perl method bypasses embedded > perl. Search the archives, you'll find lots of evidence of that. > Or just chuck one look at the code that runs the check. It opens the file, checks the first line for the handparsed equivalence of the regex "# *!.*perl" before even considering the command cacheable. The perl binary clearly doesn't match that, so it's never considered. Nagios doesn't cache arguments to commands. That would be utterly daft. It would actually make sense to never even open the file if it's bigger than a certain size. Say, oh, 100KiB or something. Perl programs rarely (if ever) grow that large (and if they do they almost certainly don't conform to the rather strict EPN guidelines), and it would save a few cycles for checks that bypass the embedded perl thing this way. -- 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 scott.brynen at sophos.com Thu Sep 27 20:29:48 2007 From: scott.brynen at sophos.com (Scott Brynen) Date: Thu, 27 Sep 2007 11:29:48 -0700 Subject: service/host escallations with additional groups Message-ID: I'm trying to define some service/host escallations that add an additional user to the first notification, however, the additive operator doesn't seem to work define hostescalation{ hostgroup_name * first_notification 1 last_notification 1 contact_groups +servicedesk } (on the first notification, send a note to the servicedesk IN ADDITION to the normal.) It also strikes me that service/host escallations should really match the contactgroups, not hostgroups or servicegroups. something like this define hostescallation{ current_contactgroups unix first_notification 4 last_notification 0 contact_groups unix-secondary-pagers } (for all those hosts that would normally use the contactgroup 'unix' use the contactgroup 'unix-secondary') Am I missing an obvious command somewhere? It seems silly to have to create a separate servicegroup/hostgroup for contacts for escallations given there's already contactgroups -- Unix/Linux System Administrator Tel: 604 484 4322 Web: http://www.sophos.com Sophos - integrated threat management ------------------------------------------------------------------------- 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 lavalamp at spiritual-machines.org Wed Sep 26 04:03:26 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 25 Sep 2007 22:03:26 -0400 Subject: Ndomod v1.4 b4 - no worky In-Reply-To: <2A67EA781EC7F949A2AB0A0D07A86C6A029A8260@mail01.ccia.local> References: <2A67EA781EC7F949A2AB0A0D07A86C6A029A8260@mail01.ccia.local> Message-ID: <1190772206.2983.16.camel@localhost.localdomain> On Fri, 2007-08-10 at 15:51 +1000, Matthew Joyce wrote: > > -> /usr/local/nagios/bin/ndomod.o: cannot open shared object file: No > such file or directory You should begin to associate this error with missing shared libraries (and thus missing dependencies in your package system). Check out the ldd(1) command in you system for example. It is helpful for understanding the concept: $ ldd /usr/bin/smbclient linux-gate.so.1 => (0x0012d000) libreadline.so.5 => /usr/lib/libreadline.so.5 (0x0012e000) libncurses.so.5 => /lib/libncurses.so.5 (0x00163000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00183000) libresolv.so.2 => /lib/libresolv.so.2 (0x001b1000) libnsl.so.1 => /lib/libnsl.so.1 (0x001c5000) libdl.so.2 => /lib/libdl.so.2 (0x001de000) libpopt.so.0 => /usr/lib/libpopt.so.0 (0x001e3000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x001eb000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00219000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x002ac000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x002d2000) libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0x002d5000) liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0x0030f000) libc.so.6 => /lib/libc.so.6 (0x0031d000) libtinfo.so.5 => /lib/libtinfo.so.5 (0x00471000) /lib/ld-linux.so.2 (0x00110000) libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00489000) libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00491000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00494000) libssl.so.6 => /lib/libssl.so.6 (0x004ad000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x004f2000) libz.so.1 => /lib/libz.so.1 (0x00625000) ------------------------------------------------------------------------- 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 lavalamp at spiritual-machines.org Wed Sep 26 03:43:59 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Tue, 25 Sep 2007 21:43:59 -0400 Subject: check_clamav and nrpe In-Reply-To: <46C95F9A.4000402@gmx.net> References: <46C95F9A.4000402@gmx.net> Message-ID: <1190771039.2983.2.camel@localhost.localdomain> Best to run nrpe(8) as some unpriv'd user and setup granular access using sudo(8), group permission, or if your system supports POSIX ACLs, use those. ~BAS On Mon, 2007-08-20 at 11:32 +0200, Nicole H?hnel wrote: > Kalidindi, Vijay schrieb: > > Hi Nicole, > > > > Check the permissions of "check_clamav" plugin whether the nrpe user can execute it. Just give 777 permission to check_clamav and see if it works. Once it works you can change the permission accordingly. > > > > Thanks, > > Vijay > > > > > > > > > Oh yes, I missed read permissions for others. :-[ > > Thanks!!! > > Nicole > > ------------------------------------------------------------------------- > 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: 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 lavalamp at spiritual-machines.org Wed Sep 26 14:29:44 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 26 Sep 2007 08:29:44 -0400 Subject: Can Nagios update configs by SQL from another server? In-Reply-To: <989aee610706270144x61742a9ds900cbda76d269170@mail.gmail.com> References: <989aee610706270144x61742a9ds900cbda76d269170@mail.gmail.com> Message-ID: <1190809784.3501.9.camel@localhost.localdomain> When you say "SQL Server", we'll assume that you mean MS-SQL. You should be able to periodically dynamically generate your config using a small PHP script that uses the MDB(sp?) module. Check out the include_dir and include_file statement documentation for the nagios.cfg. ~BAS On Wed, 2007-06-27 at 12:44 +0400, magic_rooter wrote: > Hello everybody! > > We have server with sql base where there is data for Nagios. I will explain. > There is dynamically updated database with servers and routers. The > structure is simple:name and ip. > And I have server with Nagios (v.2.5) > I saw some addons and plugins for Nagios that store nagios configs in > mysql database: NDOutils, loadconfig.pl and so on... > Can these or maybe other programms go to SQL server, pull data with > the names and ip of servers and routers and insert it to nagios > configs (which are in sql or in .cfg files)? > > Thank you in advance for assistance! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 lavalamp at spiritual-machines.org Fri Sep 28 00:27:09 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Thu, 27 Sep 2007 18:27:09 -0400 Subject: Nagios2 and Apache2 In-Reply-To: <46827B01.7090809@qis.net> References: <46827B01.7090809@qis.net> Message-ID: <1190932029.4155.0.camel@ingress.pitbpa0.priv.collaborativefusion.com> Samples of your apache error log would be useful! ~BAS On Wed, 2007-06-27 at 10:58 -0400, Steve Gregory wrote: > I am running etch and am have a little problem configuring nagios2. The > program is working fine and giving the correct alerts, but the cgi's are > not working with apache2. The calls are bing made to the cgi programs, > but they are not displaying. I'm using the packages that are in the > stable distribution of Debian. Has anyone else encountered this problem? > > Steve > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 scubacuda at gmail.com Fri Sep 28 01:35:26 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Thu, 27 Sep 2007 16:35:26 -0700 Subject: check commands not working on NagiosQL In-Reply-To: <2b7af7c40709261535x6b4f0884u9f087aa09cd5b268@mail.gmail.com> References: <2b7af7c40709261535x6b4f0884u9f087aa09cd5b268@mail.gmail.com> Message-ID: <2b7af7c40709271635m11bf0fb1m49c9d41aad3575ca@mail.gmail.com> On 9/26/07, Rogelio Bastardo wrote: > I'm having problems with NagiosQL reading certain "check commands", > particularly check_nt and check_bl (check_ping, for example, works > just fine) For what it's worth, I created a NagiosQL ticket on the matter: http://www.nagiosql.org/ticket/59 ------------------------------------------------------------------------- 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 livegreat007 at yahoo.com Fri Sep 28 02:17:22 2007 From: livegreat007 at yahoo.com (Live Great) Date: Thu, 27 Sep 2007 17:17:22 -0700 (PDT) Subject: nagios' cgi Message-ID: <182700.62280.qm@web45501.mail.sp1.yahoo.com> Hi, I have installed nagios and its plugins in freebsd. Restarted apache (1.3), and navigated to the nagios webpages of the website, it does display the main page correctly. However when I click any option in the left hand side of the main page, it popup a download screen and asked me whether I want to download the cgi program. The httpd.conf has the following nagios configuration lines written: Order allow,deny Allow from all AddHandler cgi-script .cgi Options ExecCGI ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/ Alias /nagios/ /usr/local/www/nagios/ Note, the apache running in my system has embedded perl module built in. I also attached a screenshoot of the popup screen when I click on any option on the left hand side of the nagios main page. Your suggestion is much appreciated. Thanks SW -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgi.GIF Type: image/gif Size: 11732 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 kenlee at jeld-wen.com.au Fri Sep 28 04:54:03 2007 From: kenlee at jeld-wen.com.au (Ken Lee) Date: Fri, 28 Sep 2007 04:54:03 +0200 (CEST) Subject: notifications 3.0b3 not working. In-Reply-To: <8A793F1AC3ED7447B580082FCF608CF9FE24DC@twtexchange1.twt.intern> References: <8A793F1AC3ED7447B580082FCF608CF9FE24DC@twtexchange1.twt.intern> Message-ID: <20070928025403.486BE580078@desire.netways.de> Hi Dennis Mate, there are no lines similar to this in the messages file, in fact no mention of smtp at all in the latest one. I have also looked in the mail log and the only nagios entries are the tests that I have done. I will now post some config files: Commands.cfg (located /usr/local/nagios/etc/objects) # # SAMPLE NOTIFICATION COMMANDS # # These are some example notification commands. They may or may not work on # your system without modification. As an example, some systems will require # you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below. # ################################################################################ # 'notify-host-by-email' command definition 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\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/sendmail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | usr/sbin/sendmail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } nagios.cfg ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios 3.0b1 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 05-31-2007 # ############################################################################## # LOG FILE # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/usr/local/nagios/var/nagios.log # OBJECT CONFIGURATION FILE(S) # These are the object configuration files in which you define hosts, # host groups, contacts, contact groups, services, etc. # You can split your object definitions across several config files # if you wish (as shown below), or keep them all in a single config file. # You can specify individual object config files as shown below: cfg_file=/usr/local/nagios/etc/objects/commands.cfg cfg_file=/usr/local/nagios/etc/objects/contacts.cfg cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg cfg_file=/usr/local/nagios/etc/objects/templates.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/services.cfg #cfg_file=/usr/local/nagios/etc/contacts.cfg # Definitions for monitoring the local (Linux) host #cfg_file=/usr/local/nagios/etc/objects/localhost.cfg # Definitions for monitoring a Windows machine cfg_file=/usr/local/nagios/etc/objects/windows.cfg # Definitions for monitoring a router/switch #cfg_file=/usr/local/nagios/etc/objects/switch.cfg # Definitions for monitoring a network printer #cfg_file=/usr/local/nagios/etc/objects/printer.cfg # You can also tell Nagios to process all config files (with a .cfg # extension) in a particular directory by using the cfg_dir # directive as shown below: #cfg_dir=/usr/local/nagios/etc/servers #cfg_dir=/usr/local/nagios/etc/printers #cfg_dir=/usr/local/nagios/etc/switches #cfg_dir=/usr/local/nagios/etc/routers # OBJECT CACHE FILE # This option determines where object definitions are cached when # Nagios starts/restarts. The CGIs read object definitions from # this cache file (rather than looking at the object config files # directly) in order to prevent inconsistencies that can occur # when the config files are modified after Nagios starts. object_cache_file=/usr/local/nagios/var/objects.cache # PRE-CACHED OBJECT FILE # This options determines the location of the precached object file. # If you run Nagios with the -p command line option, it will preprocess # your object configuration file(s) and write the cached config to this # file. You can then start Nagios with the -u option to have it read # object definitions from this precached file, rather than the standard # object configuration files (see the cfg_file and cfg_dir options above). # Using a precached object file can speed up the time needed to (re)start # the Nagios process if you've got a large and/or complex configuration. # Read the documentation section on optimizing Nagios to find our more # about how this feature works. precached_object_file=/usr/local/nagios/var/objects.precache # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contents of the status file are deleted every time Nagios # restarts. status_file=/usr/local/nagios/var/status.dat # STATUS FILE UPDATE INTERVAL # Combined with the aggregate_status_updates option, # this option determines the frequency (in seconds) that # Nagios will periodically dump program, host, and # service status data. status_update_interval=10 # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. # Values: 0 = disable commands, 1 = enable commands check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which Nagios should check for external commands. # This value works of the interval_length you specify later. If you leave # that at its default value of 60 (seconds), a value of 1 here will cause # Nagios to check for external commands every minute. If you specify a # number followed by an "s" (i.e. 15s), this will be interpreted to mean # actual seconds rather than a multiple of the interval_length variable. # Note: In addition to reading the external command file at regularly # scheduled intervals, Nagios will also check for external commands after # event handlers are executed. # NOTE: Setting this value to -1 causes Nagios to check the external # command file as often as possible. #command_check_interval=15s command_check_interval=-1 # EXTERNAL COMMAND FILE # This is the file that Nagios checks for external command requests. # It is also where the command CGI will write commands that are submitted # by users, so it must be writeable by the user that the web server # is running as (usually 'nobody'). Permissions should be set at the # directory level instead of on the file, as the file is deleted every # time its contents are processed. command_file=/usr/local/nagios/var/rw/nagios.cmd # EXTERNAL COMMAND BUFFER SLOTS # This settings is used to tweak the number of items or "slots" that # the Nagios daemon should allocate to the buffer that holds incoming # external commands before they are processed. As external commands # are processed by the daemon, they are removed from the buffer. external_command_buffer_slots=4096 # LOCK FILE # This is the lockfile that Nagios will use to store its PID number # in when it is running in daemon mode. lock_file=/usr/local/nagios/var/nagios.lock # TEMP FILE # This is a temporary file that is used as scratch space when Nagios # updates the status log, cleans the comment file, etc. This file # is created, used, and deleted throughout the time that Nagios is # running. temp_file=/usr/local/nagios/var/nagios.tmp # TEMP PATH # This is path where Nagios can create temp files for service and # host check results, etc. temp_path=/tmp # EVENT BROKER OPTIONS # Controls what (if any) data gets sent to the event broker. # Values: 0 = Broker nothing # -1 = Broker everything # = See documentation event_broker_options=-1 # EVENT BROKER MODULE(S) # This directive is used to specify an event broker module that should # by loaded by Nagios at startup. Use multiple directives if you want # to load more than one module. Arguments that should be passed to # the module at startup are seperated from the module path by a space. # # Example: # # broker_module= [moduleargs] #broker_module=/somewhere/module1.o #broker_module=/somewhere/module2.o arg1 arg2=3 debug=0 # LOG ROTATION METHOD # This is the log rotation method that Nagios should use to rotate # the main log file. Values are as follows.. # n = None - don't rotate the log # h = Hourly rotation (top of the hour) # d = Daily rotation (midnight every day) # w = Weekly rotation (midnight on Saturday evening) # m = Monthly rotation (midnight last day of month) log_rotation_method=d # LOG ARCHIVE PATH # This is the directory where archived (rotated) log files should be # placed (assuming you've chosen to do log rotation). log_archive_path=/usr/local/nagios/var/archives # LOGGING OPTIONS # If you want messages logged to the syslog facility, as well as the # Nagios log file set this option to 1. If not, set it to 0. use_syslog=1 # NOTIFICATION LOGGING OPTION # If you don't want notifications to be logged, set this value to 0. # If notifications should be logged, set the value to 1. log_notifications=1 # SERVICE RETRY LOGGING OPTION # If you don't want service check retries to be logged, set this value # to 0. If retries should be logged, set the value to 1. log_service_retries=1 # HOST RETRY LOGGING OPTION # If you don't want host check retries to be logged, set this value to # 0. If retries should be logged, set the value to 1. log_host_retries=1 # EVENT HANDLER LOGGING OPTION # If you don't want host and service event handlers to be logged, set # this value to 0. If event handlers should be logged, set the value # to 1. log_event_handlers=1 # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1. If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option. In # this case, set the value to 0. log_initial_states=0 # EXTERNAL COMMANDS LOGGING OPTION # If you don't want Nagios to log external commands, set this value # to 0. If external commands should be logged, set this value to 1. # Note: This option does not include logging of passive service # checks - see the option below for controlling whether or not # passive checks are logged. log_external_commands=1 # PASSIVE CHECKS LOGGING OPTION # If you don't want Nagios to log passive host and service checks, set # this value to 0. If passive checks should be logged, set # this value to 1. log_passive_checks=1 # GLOBAL HOST AND SERVICE EVENT HANDLERS # These options allow you to specify a host and service event handler # command that is to be run for every host or service state change. # The global event handler is executed immediately prior to the event # handler that you have optionally specified in each host or # service definition. The command argument is the short name of a # command definition that you define in your host configuration file. # Read the HTML docs for more information. #global_host_event_handler=somecommand #global_service_event_handler=somecommand # SERVICE INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds service_inter_check_delay_method=s # MAXIMUM SERVICE CHECK SPREAD # This variable determines the timeframe (in minutes) from the # program start time that an initial check of all services should # be completed. Default is 30 minutes. max_service_check_spread=30 # SERVICE CHECK INTERLEAVE FACTOR # This variable determines how service checks are interleaved. # Interleaving the service checks allows for a more even # distribution of service checks and reduced load on remote # hosts. Setting this value to 1 is equivalent to how versions # of Nagios previous to 0.0.5 did service checks. Set this # value to s (smart) for automatic calculation of the interleave # factor unless you have a specific reason to change it. # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. service_interleave_factor=s # HOST INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" host checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all host checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds host_inter_check_delay_method=s # MAXIMUM HOST CHECK SPREAD # This variable determines the timeframe (in minutes) from the # program start time that an initial check of all hosts should # be completed. Default is 30 minutes. max_host_check_spread=30 # MAXIMUM CONCURRENT SERVICE CHECKS # This option allows you to specify the maximum number of # service checks that can be run in parallel at any given time. # Specifying a value of 1 for this variable essentially prevents # any service checks from being parallelized. A value of 0 # will not restrict the number of concurrent checks that are # being executed. max_concurrent_checks=0 # HOST AND SERVICE CHECK REAPER FREQUENCY # This is the frequency (in seconds!) that Nagios will process # the results of host and service checks. check_result_reaper_frequency=10 # MAX CHECK RESULT REAPER TIME # This is the max amount of time (in seconds) that a single # check result reaper event will be allowed to run before # returning control back to Nagios so it can perform other # duties. max_check_result_reaper_time=30 # CHECK RESULT PATH # This is directory where Nagios stores the results of host and # service checks that have not yet been processed. check_result_path=/usr/local/nagios/var/spool/checkresults # MAX CHECK RESULT FILE AGE # This option determines the maximum age (in seconds) which check # result files are considered to be valid. Files older than this # threshold will be mercilessly deleted without further processing. max_check_result_file_age=3600 # CACHED HOST CHECK HORIZON # This option determines the maximum amount of time (in seconds) # that the state of a previous host check is considered current. # Cached host states (from host checks that were performed more # recently that the timeframe specified by this value) can immensely # improve performance in regards to the host check logic. # Too high of a value for this option may result in inaccurate host # states being used by Nagios, while a lower value may result in a # performance hit for host checks. Use a value of 0 to disable host # check caching. cached_host_check_horizon=15 # CACHED SERVICE CHECK HORIZON # This option determines the maximum amount of time (in seconds) # that the state of a previous service check is considered current. # Cached service states (from service checks that were performed more # recently that the timeframe specified by this value) can immensely # improve performance in regards to predictive dependency checks. # Use a value of 0 to disable service check caching. cached_service_check_horizon=15 # ENABLE PREDICTIVE HOST DEPENDENCY CHECKS # This option determines whether or not Nagios will attempt to execute # checks of hosts when it predicts that future dependency logic test # may be needed. These predictive checks can help ensure that your # host dependency logic works well. # Values: # 0 = Disable predictive checks # 1 = Enable predictive checks (default) enable_predictive_host_dependency_checks=1 # ENABLE PREDICTIVE SERVICE DEPENDENCY CHECKS # This option determines whether or not Nagios will attempt to execute # checks of service when it predicts that future dependency logic test # may be needed. These predictive checks can help ensure that your # service dependency logic works well. # Values: # 0 = Disable predictive checks # 1 = Enable predictive checks (default) enable_predictive_service_dependency_checks=1 # AUTO-RESCHEDULING OPTION # This option determines whether or not Nagios will attempt to # automatically reschedule active host and service checks to # "smooth" them out over time. This can help balance the load on # the monitoring server. # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_reschedule_checks=0 # AUTO-RESCHEDULING INTERVAL # This option determines how often (in seconds) Nagios will # attempt to automatically reschedule checks. This option only # has an effect if the auto_reschedule_checks option is enabled. # Default is 30 seconds. # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_rescheduling_interval=30 # AUTO-RESCHEDULING WINDOW # This option determines the "window" of time (in seconds) that # Nagios will look at when automatically rescheduling checks. # Only host and service checks that occur in the next X seconds # (determined by this variable) will be rescheduled. This option # only has an effect if the auto_reschedule_checks option is # enabled. Default is 180 seconds (3 minutes). # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_rescheduling_window=180 # SLEEP TIME # This is the number of seconds to sleep between checking for system # events and service checks that need to be run. sleep_time=0.25 # TIMEOUT VALUES # These options control how much time Nagios will allow various # types of commands to execute before killing them off. Options # are available for controlling maximum time allotted for # service checks, host checks, event handlers, notifications, the # ocsp command, and performance data commands. All values are in # seconds. service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/usr/local/nagios/var/retention.dat # RETENTION DATA UPDATE INTERVAL # This setting determines how often (in minutes) that Nagios # will automatically save retention data during normal operation. # If you set this value to 0, Nagios will not save retention # data at regular interval, but it will still save retention # data before shutting down or restarting. If you have disabled # state retention, this option has no effect. retention_update_interval=60 # USE RETAINED PROGRAM STATE # This setting determines whether or not Nagios will set # program status variables based on the values saved in the # retention file. If you want to use retained program status # information, set this value to 1. If not, set this value # to 0. use_retained_program_state=1 # USE RETAINED SCHEDULING INFO # This setting determines whether or not Nagios will retain # the scheduling info (next check time) for hosts and services # based on the values saved in the retention file. If you # If you want to use retained scheduling info, set this # value to 1. If not, set this value to 0. use_retained_scheduling_info=1 # RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE) # The following variables are used to specify specific host and # service attributes that should *not* be retained by Nagios during # program restarts. # # The values of the masks are bitwise ANDs of values specified # by the "MODATTR_" definitions found in include/common.h. # For example, if you do not want the current enabled/disabled state # of flap detection and event handlers for hosts to be retained, you # would use a value of 24 for the host attribute mask... # MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24 # This mask determines what host attributes are not retained retained_host_attribute_mask=0 # This mask determines what service attributes are not retained retained_service_attribute_mask=0 # These two masks determine what process attributes are not retained. # There are two masks, because some process attributes have host and service # options. For example, you can disable active host checks, but leave active # service checks enabled. retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 # These two masks determine what contact attributes are not retained. # There are two masks, because some contact attributes have host and # service options. For example, you can disable host notifications for # a contact, but leave service notifications enabled for them. retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). Other settings # have not been tested much, so your mileage is likely to vary... interval_length=60 # AGGRESSIVE HOST CHECKING OPTION # If you don't want to turn on aggressive host checking features, set # this value to 0 (the default). Otherwise set this value to 1 to # enable the aggressive check option. Read the docs for more info # on what aggressive host check is or check out the source code in # base/checks.c use_aggressive_host_checking=0 # SERVICE CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # service checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of service checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_service_checks=1 # PASSIVE SERVICE CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # service checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_service_checks=1 # HOST CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # host checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of host checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_host_checks=1 # PASSIVE HOST CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # host checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_host_checks=1 # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 # EVENT HANDLER USE OPTION # This determines whether or not Nagios will run any host or # service event handlers when it is initially (re)started. Unless # you're implementing redundant hosts, leave this option enabled. # Values: 1 = enable event handlers, 0 = disable event handlers enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION # This determines whether or not Nagios will process performance # data returned from service and host checks. If this option is # enabled, host performance data will be processed using the # host_perfdata_command (defined below) and service performance # data will be processed using the service_perfdata_command (also # defined below). Read the HTML docs for more information on # performance data. # Values: 1 = process performance data, 0 = do not process performance data process_performance_data=0 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILES # These files are used to store host and service performance data. # Performance data is only written to these files if the # enable_performance_data option (above) is set to 1. #host_perfdata_file=/tmp/host-perfdata #service_perfdata_file=/tmp/service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES # These options determine what data is written (and how) to the # performance data files. The templates may contain macros, special # characters (\t for tab, \r for carriage return, \n for newline) # and plain text. A newline is automatically added after each write # to the performance data file. Some examples of what you can do are # shown below. #host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$ #service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$ # HOST AND SERVICE PERFORMANCE DATA FILE MODES # This option determines whether or not the host and service # performance data files are opened in write ("w") or append ("a") # mode. If you want to use named pipes, you should use the special # pipe ("p") mode which avoid blocking at startup, otherwise you will # likely want the defult append ("a") mode. #host_perfdata_file_mode=a #service_perfdata_file_mode=a # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL # These options determine how often (in seconds) the host and service # performance data files are processed using the commands defined # below. A value of 0 indicates the files should not be periodically # processed. #host_perfdata_file_processing_interval=0 #service_perfdata_file_processing_interval=0 # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS # These commands are used to periodically process the host and # service performance data files. The interval at which the # processing occurs is determined by the options above. #host_perfdata_file_processing_command=process-host-perfdata-file #service_perfdata_file_processing_command=process-service-perfdata-file # OBSESS OVER SERVICE CHECKS OPTION # This determines whether or not Nagios will obsess over service # checks and run the ocsp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over services, 0 = do not obsess (default) obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND # This is the command that is run for every service check that is # processed by Nagios. This command is executed only if the # obsess_over_services option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ocsp_command=somecommand # OBSESS OVER HOST CHECKS OPTION # This determines whether or not Nagios will obsess over host # checks and run the ochp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over hosts, 0 = do not obsess (default) obsess_over_hosts=0 # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND # This is the command that is run for every host check that is # processed by Nagios. This command is executed only if the # obsess_over_hosts option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ochp_command=somecommand # TRANSLATE PASSIVE HOST CHECKS OPTION # This determines whether or not Nagios will translate # DOWN/UNREACHABLE passive host check results into their proper # state for this instance of Nagios. This option is useful # if you have distributed or failover monitoring setup. In # these cases your other Nagios servers probably have a different # "view" of the network, with regards to the parent/child relationship # of hosts. If a distributed monitoring server thinks a host # is DOWN, it may actually be UNREACHABLE from the point of # this Nagios instance. Enabling this option will tell Nagios # to translate any DOWN or UNREACHABLE host states it receives # passively into the correct state from the view of this server. # Values: 1 = perform translation, 0 = do not translate (default) translate_passive_host_checks=0 # PASSIVE HOST CHECKS ARE SOFT OPTION # This determines whether or not Nagios will treat passive host # checks as being HARD or SOFT. By default, a passive host check # result will put a host into a HARD state type. This can be changed # by enabling this option. # Values: 0 = passive checks are HARD, 1 = passive checks are SOFT passive_host_checks_are_soft=0 # ORPHANED HOST/SERVICE CHECK OPTIONS # These options determine whether or not Nagios will periodically # check for orphaned host service checks. Since service checks are # not rescheduled until the results of their previous execution # instance are processed, there exists a possibility that some # checks may never get rescheduled. A similar situation exists for # host checks, although the exact scheduling details differ a bit # from service checks. Orphaned checks seem to be a rare # problem and should not happen under normal circumstances. # If you have problems with service checks never getting # rescheduled, make sure you have orphaned service checks enabled. # Values: 1 = enable checks, 0 = disable checks check_for_orphaned_services=1 check_for_orphaned_hosts=1 # SERVICE FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of service results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_service_freshness=1 # SERVICE FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of service check results. If you have # disabled service freshness checking, this option has no effect. service_freshness_check_interval=60 # HOST FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of host results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_host_freshness=0 # HOST FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of host check results. If you have # disabled host freshness checking, this option has no effect. host_freshness_check_interval=60 # FLAP DETECTION OPTION # This option determines whether or not Nagios will try # and detect hosts and services that are "flapping". # Flapping occurs when a host or service changes between # states too frequently. When Nagios detects that a # host or service is flapping, it will temporarily suppress # notifications for that host/service until it stops # flapping. Flap detection is very experimental, so read # the HTML documentation before enabling this feature! # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=1 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES # Read the HTML documentation on flap detection for # an explanation of what this option does. This option # has no effect if flap detection is disabled. low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD-YYYY HH:MM:SS) # euro (DD-MM-YYYY HH:MM:SS) # iso8601 (YYYY-MM-DD HH:MM:SS) # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) # date_format=us # P1.PL FILE LOCATION # This value determines where the p1.pl perl script (used by the # embedded Perl interpreter) is located. If you didn't compile # Nagios with embedded Perl support, this option has no effect. p1_file=/usr/local/nagios/bin/p1.pl # EMBEDDED PERL INTERPRETER OPTION # This option determines whether or not the embedded Perl interpreter # will be enabled during runtime. This option has no effect if Nagios # has not been compiled with support for embedded Perl. # Values: 0 = disable interpreter, 1 = enable interpreter enable_embedded_perl=1 # EMBEDDED PERL USAGE OPTION # This option determines whether or not Nagios will process Perl plugins # and scripts with the embedded Perl interpreter if the plugins/scripts # do not explicitly indicate whether or not it is okay to do so. Read # the HTML documentation on the embedded Perl interpreter for more # information on how this option works. use_embedded_perl_implicitly=1 # ILLEGAL OBJECT NAME CHARACTERS # This option allows you to specify illegal characters that cannot # be used in host names, service descriptions, or names of other # object types. illegal_object_name_chars=`~!$%^&*|'"<>?,()= # ILLEGAL MACRO OUTPUT CHARACTERS # This option allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $HOSTOUTPUT$ # $HOSTPERFDATA$ # $HOSTACKAUTHOR$ # $HOSTACKCOMMENT$ # $SERVICEOUTPUT$ # $SERVICEPERFDATA$ # $SERVICEACKAUTHOR$ # $SERVICEACKCOMMENT$ illegal_macro_output_chars=`~$&|'"<> # REGULAR EXPRESSION MATCHING # This option controls whether or not regular expression matching # takes place in the object config files. Regular expression # matching is used to match host, hostgroup, service, and service # group names/descriptions in some fields of various object types. # Values: 1 = enable regexp matching, 0 = disable regexp matching use_regexp_matching=0 # "TRUE" REGULAR EXPRESSION MATCHING # This option controls whether or not "true" regular expression # matching takes place in the object config files. This option # only has an effect if regular expression matching is enabled # (see above). If this option is DISABLED, regular expression # matching only occurs if a string contains wildcard characters # (* and ?). If the option is ENABLED, regexp matching occurs # all the time (which can be annoying). # Values: 1 = enable true matching, 0 = disable true matching use_true_regexp_matching=0 # ADMINISTRATOR EMAIL/PAGER ADDRESSES # The email and pager address of a global administrator (likely you). # Nagios never uses these values itself, but you can access them by # using the $ADMINEMAIL$ and $ADMINPAGER$ macros in your notification # commands. admin_email=nagios at localhost admin_pager=pagenagios at localhost # DAEMON CORE DUMP OPTION # This option determines whether or not Nagios is allowed to create # a core dump when it runs as a daemon. Note that it is generally # considered bad form to allow this, but it may be useful for # debugging purposes. Enabling this option doesn't guarantee that # a core file will be produced, but that's just life... # Values: 1 - Allow core dumps # 0 - Do not allow core dumps (default) daemon_dumps_core=0 # DEBUG LEVEL # This option determines how much (if any) debugging information will # be written to the debug file. OR values together to log multiple # types of information. # Values: -1 = Everything # 0 = Nothing # 1 = Functions # 2 = Configuration # 4 = Process information # 8 = Scheduled events # 16 = Host/service checks # 32 = Notifications # 64 = Event broker # 128 = Check IPC debug_level=0 # DEBUG VERBOSITY # This option determines how verbose the debug log out will be. # Values: 0 = Brief output # 1 = More detailed # 2 = Very detailed debug_verbosity=1 # DEBUG FILE # This option determines where Nagios should write debugging information. debug_file=/usr/local/nagios/var/nagios.debug # MAX DEBUG FILE SIZE # This option determines the maximum size (in bytes) of the debug file. If # the file grows larger than this size, it will be renamed with a .old # extension. If a file already exists with a .old extension it will # automatically be deleted. This helps ensure your disk space usage doesn't # get out of control when debugging Nagios. max_debug_file_size=1000000 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& an example of hosts.cfg (too many to list) define host { use generic-host ; Name of host template to use host_name sgavcx06 alias Citrix Farm #6 address 192.168.100.59 parents sgavsw05 check_command check-host-alive checks_enabled 1 max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r contact_groups nt-admins } define host { use generic-host ; Name of host template to use host_name sgavsq02 alias SQL server address 192.168.100.53 parents sgavsw05 check_command check-host-alive checks_enabled 1 max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r contact_groups nt-admins } define host { use generic-host ; Name of host template to use host_name sgavdc01 alias AD Directory services address 192.168.100.51 parents sgavsw05 check_command check-host-alive checks_enabled 1 max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r contact_groups nt-admins } &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& contactgroups.cfg # 'nt-admins' contact group definition define contactgroup{ contactgroup_name nt-admins alias NT Administrators members stephenb,kenl,chrisc,helpdesk } &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Timeperiods.cfg ################################################################################ # TIMEPERIOD DEFINITIONS # # SYNTAX: # ################################################################################ # '24x7' timeperiod definition define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 06:00-18:00 tuesday 06:00-18:00 wednesday 06:00-18:00 thursday 06:00-18:00 friday 06:00-18:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-06:00,18:00-24:00 tuesday 00:00-06:00,18:00-24:00 wednesday 00:00-06:00,18:00-24:00 thursday 00:00-06:00,18:00-24:00 friday 00:00-06:00,18:00-24:00 saturday 00:00-24:00 } # 'none' timeperiod definition define timeperiod{ timeperiod_name none alias No Time Is A Good Time } &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& If you need to see anything else, do not hesitate to let me know. I just hope that you see something obvious that I have missed. Thanks - Ken Lee (kenlee) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=4726 ------------------------------------------------------------------------- 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 ed.choy at gmail.com Fri Sep 28 10:16:07 2007 From: ed.choy at gmail.com (Edward D. Choy) Date: Fri, 28 Sep 2007 01:16:07 -0700 Subject: nomal_check_interval minutes to seconds unit change Message-ID: In version 2.9, the default normal_check_interval and retry_check_interval is set to a unit of 1 minute, and am wondering if i can make the units in seconds. 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 Fri Sep 28 10:35:39 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 28 Sep 2007 10:35:39 +0200 Subject: nomal_check_interval minutes to seconds unit change In-Reply-To: References: Message-ID: <46FCBCDB.5080700@op5.se> Edward D. Choy wrote: > In version 2.9, the default normal_check_interval and retry_check_interval > is set to a unit of 1 minute, and am wondering if i can make the units in > seconds. > Read the docs. It's a config variable in nagios.cfg -- 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 Fri Sep 28 10:51:18 2007 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Fri, 28 Sep 2007 09:51:18 +0100 Subject: Nagios and Capacity Planning Message-ID: <6546343904687E41B19D8E5A26AB9F5301722A68@E03MVB2-UKBR.domain1.systemhost.net> Hi All, Does anyone know off a capacity planning add-on for Nagios or are others using data from Nagios to perform capacity planning functions? Regards 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 Michael_Stevens at affymetrix.com Fri Sep 28 17:04:40 2007 From: Michael_Stevens at affymetrix.com (Stevens, Michael) Date: Fri, 28 Sep 2007 08:04:40 -0700 Subject: Wildcards on ckeck_disk Message-ID: <2EB5E682DC612D4CA067A4890785D9110F2A42@EXCH04.affymetrix.com> I'd like to use wildcards on the check_disk (1.4.9 on Solaris) command to exclude the monitoring of some mount points. I have mounts that look like: / /var /other/variable/mountpoints Each users $HOME is automounted at /home/username, and I do not want check_disk to monitor those directories. I've tried using various forms of -x /home/*, but I've not been able to get check_disk to stop monitoring the directories under /home. In a similar thread, someone suggested setting up a for loop to do the excludes. So, I've done this: /usr/local/nagios/libexec/check_disk -w 8% -c 2% -m -x /dev/fd -x /etc/mnttab $(for x in $(/usr/bin/grep home < /etc/mnttab |/usr/bin/awk '{print $2}'); do echo -n " -x $x "; done) This works from the shell, but not if I try to run it under nrpe. Other than putting a wrapper around the above command, is there any way to exclude a list of similar mount points? Thanks in advance, -- Mike Stevens ------------------------------------------------------------------------- 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 fan.jacques at gmail.com Fri Sep 28 17:30:40 2007 From: fan.jacques at gmail.com (Jacques FAN) Date: Fri, 28 Sep 2007 16:30:40 +0100 Subject: Error in libexec Message-ID: <72f6f4340709280830i1b0a0e0bxe1c2ca713ae29d05@mail.gmail.com> Hello All, I reinstall my nagios 2.8, and everything was good during the installation. But when I tried to make ./check_ping -H 10.25.14.150 -w 100.0,80% -c 300.0,100% this error: CRITICAL : Impossible to interprete the ping answer (Impossible d'interpr?ter la r?ponse de la commande pin) someone can help me, cause I've the nagios presentation in about 2 hours Thx -- JFK "In God we trust, the rest we monitore" -------------- 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 Jason.Ellmers at firstgroup.com Fri Sep 28 17:36:18 2007 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Fri, 28 Sep 2007 16:36:18 +0100 Subject: CN=Jason Ellmers/OU=FirstInfo/O=FirstGroup is out of the office. Message-ID: I will be Out of the Office Start Date: 28/09/2007. End Date: 15/10/2007. I will be out of the office starting 28/09/2007 and will not return until 15/10/2007. Thankyou for your mail. I am currently away from the office, returning on 15th October If you need a fault escalating please call the service desk on 0038696 (0870 241 5500) with the case reference and ask for Martina Nicholson who has overall responsibility for the Service Desk Dominic Pioli (Dominic Pioli at firstgroup.com - 07815756259) will be covering in my absence. Please use Dominic as an escalation point for any IT Service Delivery issues to him. Regards ********************************************************************** This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet email is not necessarily secure. First does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email could contain software viruses which could damage your system. First have checked the attachments for viruses before sending, but you should virus-check them before opening. For more information on our range of services or to book your tickets online, please visit:- http://www.firstgroup.com ********************************************************************** ------------------------------------------------------------------------- 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 Michael_Stevens at affymetrix.com Fri Sep 28 17:48:14 2007 From: Michael_Stevens at affymetrix.com (Stevens, Michael) Date: Fri, 28 Sep 2007 08:48:14 -0700 Subject: Error in libexec In-Reply-To: <72f6f4340709280830i1b0a0e0bxe1c2ca713ae29d05@mail.gmail.com> References: <72f6f4340709280830i1b0a0e0bxe1c2ca713ae29d05@mail.gmail.com> Message-ID: <2EB5E682DC612D4CA067A4890785D9110F2A43@EXCH04.affymetrix.com> Have you changed the OS level of the system you are running check_ping from? Perhaps you accidentally installed an old version of the nagios-plugins? I had a similar issue trying to run check_ping 1.3 from a Solaris 10 system. The old version of check_ping did not understand the Solaris 10 ping output. You could restore the original check_ping, or install check_ping from the latest Nagios_plugins. -- Mike ------------------------------------------------------------------------- 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 Fri Sep 28 17:51:12 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Fri, 28 Sep 2007 08:51:12 -0700 Subject: Nagios equivalents to Servers Alive add-ons Message-ID: <2b7af7c40709280851j7e9280ecq423fa4d98a81d3a8@mail.gmail.com> I'm starting to collect Nagios-equivalent solutions to these free Servers Alive add-ons. http://www.serversalive.com/salive/addons.asp Some of the webapp (e.g. webinject) and event log (e.g. check_nt / nc_net / etc) stuff is easy enough, but I'm looking for other F/OSS versions of, say, the AV update checker and SMTP2POP3 plugins. Anyone else have suggestions? I used to use Servers Alive quite heavily until I found Nagios. Hopefully this thread will help others who are also making that transition. -------------- 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 Fri Sep 28 18:01:00 2007 From: marc at ena.com (Marc Powell) Date: Fri, 28 Sep 2007 11:01:00 -0500 Subject: Nagios equivalents to Servers Alive add-ons In-Reply-To: <2b7af7c40709280851j7e9280ecq423fa4d98a81d3a8@mail.gmail.com> References: <2b7af7c40709280851j7e9280ecq423fa4d98a81d3a8@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 Rogelio Bastardo > Sent: Friday, September 28, 2007 10:51 AM > To: Nagios Users mailinglist > Subject: [Nagios-users] Nagios equivalents to Servers Alive add-ons > > I'm starting to collect Nagios-equivalent solutions to these free Servers > Alive add-ons. > > http://www.serversalive.com/salive/addons.asp > > Some of the webapp (e.g. webinject) and event log (e.g. check_nt / nc_net > / etc) stuff is easy enough, but I'm looking for other F/OSS versions of, > say, the AV update checker and SMTP2POP3 plugins. Anyone else have > suggestions? I'm guessing that SMTP2POP3 is equivalent to the contrib/check_email_loop.pl script. http://www.nagiosexchange.org also has many many user contributed plugins. -- 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 Fri Sep 28 18:04:29 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Fri, 28 Sep 2007 09:04:29 -0700 Subject: Nagios equivalents to Servers Alive add-ons In-Reply-To: References: <2b7af7c40709280851j7e9280ecq423fa4d98a81d3a8@mail.gmail.com> Message-ID: <2b7af7c40709280904q2e832c2bjb11ee65b9fd9a7ee@mail.gmail.com> > > I'm guessing that SMTP2POP3 is equivalent to the > contrib/check_email_loop.pl script. http://www.nagiosexchange.org also > has many many user contributed plugins. While googling for "check_email_loop.pl", I found these links on monitoring Microsoft Exchange https://support.op5.se/index.php?option=com_content&task=view&id=43&Itemid=33 https://support.op5.se/index2.php?option=com_content&do_pdf=1&id=43 (These links will, no doubt, be of interest to the typical Servers Alive user.) -------------- 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 zkenton at outcome.com Fri Sep 28 18:48:58 2007 From: zkenton at outcome.com (zack kenton) Date: Fri, 28 Sep 2007 18:48:58 +0200 (CEST) Subject: turn off epn In-Reply-To: <46FBF44E.1080106@op5.se> References: <46FBF44E.1080106@op5.se> Message-ID: <20070928164858.E3A55580078@desire.netways.de> Hi Andreas So what i needed to do was add the path to utils.pm within the perl plugin, as well as add /usr/bin/perl...however, instead of no output I'm not receiving "return code 9 is out of bounds" I've heard of 123 or 127, but does anyone know what 9 means? - zack kenton (zkenton) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=4765 ------------------------------------------------------------------------- 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 zkenton at outcome.com Fri Sep 28 19:16:30 2007 From: zkenton at outcome.com (zack kenton) Date: Fri, 28 Sep 2007 19:16:30 +0200 (CEST) Subject: (Return code of 9 is out of bounds) Message-ID: <20070928171630.DCBF6580078@desire.netways.de> Hi list Does anyone have an idea why I would get (Return code of 9 is out of bounds) with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return? - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 zkenton at outcome.com Fri Sep 28 19:27:48 2007 From: zkenton at outcome.com (zack kenton) Date: Fri, 28 Sep 2007 19:27:48 +0200 (CEST) Subject: (Return code of 9 is out of bounds) Message-ID: <20070928172748.9BD0A580078@desire.netways.de> Hi list Does anyone have an idea why I would get (Return code of 9 is out of bounds) with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return? - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 dermoth at aei.ca Fri Sep 28 19:35:30 2007 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 28 Sep 2007 13:35:30 -0400 Subject: (Return code of 9 is out of bounds) In-Reply-To: <20070928171630.DCBF6580078@desire.netways.de> References: <20070928171630.DCBF6580078@desire.netways.de> Message-ID: <46FD3B62.7030102@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/09/07 01:16 PM, zack kenton wrote: > Hi list > > Does anyone have an idea why I would get (Return code of 9 is out of bounds) with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return? I can't give you any details without seeing your script, but normally it should evaluate the status of whatever is being checked and return 0 for OK, 1 for WARING and 2 for CRITICAL. If you're running external programs then your script should either parse STDOUT/ERR or check the return code (or both) to evaluate the status and return its own value. Don't forget to timeout using SIGALARM to avoid stale processes. FYI there's a Nagios::Plugin CPAN module that can help writing Nagios plugins in Perl. You should see check_stuff.pl (comes in the Module tarball) for examples. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG/Tti6dZ+Kt5BchYRAtsBAKDjG2XqBcKd3A+k/AwxWW7B7XWIfQCg7jm1 MjKPOIM1bCy5XaZkSGRME8A= =t2al -----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 ae at op5.se Fri Sep 28 20:08:09 2007 From: ae at op5.se (Andreas Ericsson) Date: Fri, 28 Sep 2007 20:08:09 +0200 Subject: turn off epn In-Reply-To: <20070928164858.E3A55580078@desire.netways.de> References: <46FBF44E.1080106@op5.se> <20070928164858.E3A55580078@desire.netways.de> Message-ID: <46FD4309.8040802@op5.se> zack kenton wrote: > Hi Andreas > > So what i needed to do was add the path to utils.pm within the perl > plugin, as well as add /usr/bin/perl...however, instead of no output > I'm not receiving "return code 9 is out of bounds" I've heard of 123 > or 127, but does anyone know what 9 means? > I have no idea what you might have done to make it return 9. The error code 9 is EBADF (Bad file descriptor) in C, which you'd get if you'd forgotten to open a file-descriptor (or socket) before trying to read it. Could you post your perl plugin to the list? I'm sure it'd help in debugging this issue. -- 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 zkenton at outcome.com Fri Sep 28 20:12:16 2007 From: zkenton at outcome.com (zack kenton) Date: Fri, 28 Sep 2007 20:12:16 +0200 (CEST) Subject: (Return code of 9 is out of bounds) Message-ID: <20070928181217.6B2AC580078@desire.netways.de> Hi list Does anyone have an idea why I would get (Return code of 9 is out of bounds) with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return? - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.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 zkenton at outcome.com Fri Sep 28 21:42:49 2007 From: zkenton at outcome.com (zack kenton) Date: Fri, 28 Sep 2007 21:42:49 +0200 (CEST) Subject: (Return code of 9 is out of bounds) In-Reply-To: <46FD3B62.7030102@aei.ca> References: <46FD3B62.7030102@aei.ca> Message-ID: <20070928194250.0B447580078@desire.netways.de> Hi Thomas and all, For those of you eager to help me debug...haha...much appreciated #!/usr/bin/perl -w # $Id: check_oracle_instance.pl,v 1.1 2002/04/03 02:58:47 sghosh Exp $ # Copyright (c) 2002 Sven Dolderer # some pieces of Code adopted from Adam vonNieda's oracletool.pl # (http://www.oracletool.com) # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the Perl README file, # with the exception that it cannot be placed on a CD-ROM or similar media # for commercial distribution without the prior approval of the author. # This software is provided without warranty of any kind. require 5.003; use /usr/lib/nagios/libexec/utils.pm; use strict; use Getopt::Long; # We need the DBI and DBD-Oracle Perl modules: require DBI || die "It appears that the DBI module is not installed! aborting...\n"; require DBD::Oracle || die "It appears that the DBD::Oracle module is not installed! aborting...\n"; use vars qw($VERSION $PROGNAME $logfile $debug $state $dbh $database $username $password $message $sql $cursor $opt_asession $opt_nsession $opt_tablespace $opt_nextents $opt_fextents $opt_aextents $privsok $warn $critical); '$Revision: 1.1 $' =~ /^.*(\d+.\d+) \$$/; # Use The Revision from RCS/CVS $VERSION = $1; $0 =~ m!^.*/([^/]+)$!; $PROGNAME = $1; $debug="true"; $logfile = "/tmp/check_oracle_instance.log"; my %ERRORS = (UNKNOWN => -1, OK => 0, WARNING => 1, CRITICAL => 2); # Read cmdline opts: Getopt::Long::Configure('bundling', 'no_ignore_case'); GetOptions ( "V|version" => \&version, "h|help" => \&usage, "u|user=s" => \$username, "p|passwd=s" => \$password, "c|connect=s" => \$database, "a|active-sessions:s" => \$opt_asession, "s|num-sessions:s" => \$opt_nsession, "t|tablespaces:s" => \$opt_tablespace, "n|num-extents:s" => \$opt_nextents, "f|free-extents:s" => \$opt_fextents, "x|allocate-extents" => \$opt_aextents ); ($database && $username && $password) || die "mandatory parameters missing (try -h)\n"; logit(" \$opt_asession = \"$opt_asession\""); logit(" \$opt_nsession = \"$opt_nsession\""); logit(" \$opt_tablespace = \"$opt_tablespace\""); logit(" \$opt_nextents = \"$opt_nextents\""); logit(" \$opt_fextents = \"$opt_fextents\""); logit(" \$opt_aextents = \"$opt_aextents\""); # OSI-specific solution to environment variables if (-f '/etc/profile.d/oracle.sh') { open(ORA, '/etc/profile.d/oracle.sh'); while(my $setting = ) { my ($var, $val) = $setting =~ /\s*(\w+)\s*=\s*(?:"|')(.*?)(?:"|')/; $ENV{$var} = $val; } close(ORA); } logit("$ENV{ORACLE_HOME}"); # so let's connect to the instance... $dbh = dbConnect($database,$username,$password); $message="$database: "; # OSI: we run as a user that does not have 'select any table' privileges, but specific access to $v_* tables #check_sessions($opt_nsession) if ($opt_nsession && $privsok); check_sessions($opt_nsession); check_sessions($opt_asession,"active") if ($opt_asession && $privsok); check_tablespaces($opt_tablespace) if ($opt_tablespace && $privsok); check_nextents($opt_nextents) if ($opt_nextents && $privsok); check_fextents($opt_fextents) if ($opt_fextents && $privsok); check_aextents() if ($opt_aextents && $privsok); $message=$message . "ok. " . getDbVersion($dbh) unless ($state); print "$message\n"; exit $state; sub usage { copyright(); print " This plugin will check various things of an oracle database instance. Prerequisties are: a local oracle client, perl > v5.003, and DBI and DBD::Oracle perl modules. Usage: $PROGNAME -u -p -c [-a /] [-s /] [-t /] [-n /] [-f /] [-x] $PROGNAME [-V|--version] $PROGNAME [-h|--help] "; print " Options: -u, --user=STRING the oracle user -p, --passwd=STRING the oracle password -c, --connect=STRING the oracle connectstring as defined in tnsnames.ora -a, --active-sessions=WARN/CRITICAL check the number of active (user-)sessions WARN(Integer): number of sessions to result in warning status, CRITICAL(Integer): number of sessions to result in critical status -s, --num-sessions=WARN/CRITICAL check the total number of (user-)sessions WARN(Integer): number of sessions to result in warning status, CRITICAL(Integer): number of sessions to result in critical status -t, --tablespaces=WARN/CRITICAL check the percent of used space in every tablespace WARN(Integer): percentage to result in warning status, CRITICAL(Integer): percentage to result in critical status -n, --num-extents=WARN/CRITICAL check the number of extents of every object (excluding SYS schema) WARN(Integer): number of extents to result in warning status, CRITICAL(Integer): number of extents to result in critical status -f, --free-extents=WARN/CRITICAL check the number of free extents of every object: max_extents - #extents WARN(Integer): number of free extents to result in warning status, CRITICAL(Integer): number of free extents to result in critical status -x, --allocate-extents warn if an object cannot allocate a next extent. "; exit $ERRORS{"UNKNOWN"}; } sub version { copyright(); print " $PROGNAME $VERSION "; exit $ERRORS{"UNKNOWN"}; } sub copyright { print "The netsaint plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 2002 Sven Dolderer\n"; } sub logit { my $text = shift; if ($debug) { open (LOG,">>$logfile") || die "Cannot open log file \"$logfile\"!"; print LOG "$text\n"; close (LOG); } } sub dbConnect { logit("Enter subroutine dbConnect"); my $database = shift; my $username = shift; my $password = shift; # Attempt to make connection to the database.. my $data_source = "dbi:Oracle:$database"; $dbh = DBI->connect($data_source,$username,$password,{PrintError=>0}); # Show an error message for these errors. # ORA-12224 - "The connection request could not be completed because the listener is not running." # ORA-01034 - "Oracle was not started up." # ORA-01090 - "Shutdown in progress - connection is not permitted"" # ORA-12154 - "The service name specified is not defined correctly in the TNSNAMES.ORA file." # ORA-12505 - "TNS:listener could not resolve SID given in connect descriptor." # ORA-12545 - "TNS:name lookup failure." unless ($dbh) { logit(" Error message is ~$DBI::errstr~"); if ( $DBI::errstr =~ /ORA-01017|ORA-1017|ORA-01004|ORA-01005/ ) { $message="Login error: ~$DBI::errstr~"; $state=$ERRORS{"UNKNOWN"}; } elsif ( $DBI::errstr =~ /ORA-12224/ ) { $message= "You received an ORA-12224, which usually means the listener is down, or your connection definition in your tnsnames .ora file is incorrect. Check both of these things and try again."; $state=$ERRORS{"CRITICAL"}; } elsif ( $DBI::errstr =~ /ORA-01034/ ) { $message= "You received an ORA-01034, which usually means the database is down. Check to be sure the database is up and try ag ain."; $state=$ERRORS{"CRITICAL"}; } elsif ( $DBI::errstr =~ /ORA-01090/ ) { $message= "You received an ORA-01090, which means the database is in the process of coming down."; $state=$ERRORS{"CRITICAL"}; } elsif ( $DBI::errstr =~ /ORA-12154/ ) { $message= "You received an ORA-12154, which probably means you have a mistake in your TNSNAMES.ORA file for the database that you chose."; $state=$ERRORS{"UNKNOWN"}; } elsif ( $DBI::errstr =~ /ORA-12505/ ) { $message= "You received an ORA-12505, which probably means you have a mistake in your TNSNAMES.ORA file for the database that you chose, or the database you are trying to connect to is not defined to the listener that is running on that node."; $state=$ERRORS{"UNKNOWN"}; } elsif ( $DBI::errstr =~ /ORA-12545/ ) { $message= "You received an ORA-12545, which probably means you have a mistake in your TNSNAMES.ORA file for the database that you chose. (Possibly the node name)."; $state=$ERRORS{"UNKNOWN"}; } else { $message="Unable to connect to Oracle ($DBI::errstr)\n"; $state=$ERRORS{"UNKNOWN"}; } } else { logit(" Login OK."); # check to be sure this user has "SELECT ANY TABLE" privilege. logit(" checking for \"SELECT ANY TABLE\" privilege"); # OSI: see comment above about permissions of nagios user # if (checkPriv("SELECT ANY TABLE") < 1) { # $message="user $username needs \"SELECT ANY TABLE\" privilege."; # $state=$ERRORS{"UNKNOWN"}; # } else { $privsok="yep"; $state=$ERRORS{"OK"}; # } } return ($dbh); } sub getDbVersion { logit("Enter subroutine getDbVersion"); my $dbh = shift; my $oraversion; # Find out if we are dealing with Oracle7 or Oracle8 logit(" Getting Oracle version"); $sql = "select banner from v\$version where rownum=1"; $cursor = $dbh->prepare($sql) or logit("Error: $DBI::errstr"); $cursor->execute; (($oraversion) = $cursor->fetchrow_array); $cursor->finish; logit(" Oracle version = $oraversion"); return $oraversion; } sub checkPriv { logit("Enter subroutine checkPriv"); my ($privilege,$yesno); $privilege = shift; logit(" Checking for privilege \"$privilege\""); $sql = "SELECT COUNT(*) FROM SESSION_PRIVS WHERE PRIVILEGE = '$privilege'"; $cursor=$dbh->prepare($sql); $cursor->execute; $yesno = $cursor->fetchrow_array; $cursor->finish; return($yesno); } sub get_values { logit("Enter subroutine get_values"); my ($args, $inverse, $abort); $args = shift; $inverse = shift; if ($args =~ m!^(\d+)/(\d+)$!) { $warn = $1; $critical = $2; # TODO: check for positive numbers! if (! $inverse && $warn >= $critical) { print "\"$args\": warning threshold must be less than critical threshold. aborting...\n"; $abort="yep"; } if ($inverse && $warn <= $critical) { print "\"$args\": warning threshold must be greater than critical threshold. aborting...\n"; $abort="yep"; } } else { print "\"$args\": invalid warn/critical thresholds. aborting...\n"; $abort="yep"; } exit $ERRORS{"UNKNOWN"} if $abort; logit (" args=$args, warn=$warn, critical=$critical"); } sub check_sessions { logit("Enter subroutine check_sessions"); my ($args, $add, $sqladd, $count); $args = shift; $add = shift || '#'; # Default: Number of sessions $sqladd = "AND STATUS = 'ACTIVE'" if ($add eq "active"); get_values($args); $sql = "SELECT COUNT(*) FROM V\$SESSION WHERE TYPE <> 'BACKGROUND' $sqladd"; $cursor=$dbh->prepare($sql); $cursor->execute; $count = $cursor->fetchrow_array; $cursor->finish; logit (" $add sessions is $count"); if ($count >= $critical) { $message = $message . "$add sessions critical ($count) "; $state=$ERRORS{"CRITICAL"}; } elsif ($count >= $warn) { $message = $message . "$add sessions warning ($count) "; $state=$ERRORS{"WARNING"} if $state < $ERRORS{"WARNING"}; } } sub check_tablespaces { logit("Enter subroutine check_tablespaces"); my ($args, $tablespace, $pctused, $mymsg, $mywarn, $mycritical); $args = shift; $mymsg = "Tablespace usage "; get_values($args); $sql = "SELECT DF.TABLESPACE_NAME \"Tablespace name\", NVL(ROUND((DF.BYTES-SUM(FS.BYTES))*100/DF.BYTES),100) \"Percent used\" FROM DBA_FREE_SPACE FS, (SELECT TABLESPACE_NAME, SUM(BYTES) BYTES FROM DBA_DATA_FILES GROUP BY TABLESPACE_NAME ) DF WHERE FS.TABLESPACE_NAME (+) = DF.TABLESPACE_NAME GROUP BY DF.TABLESPACE_NAME, DF.BYTES ORDER BY 2 DESC"; $cursor=$dbh->prepare($sql); $cursor->execute; while (($tablespace, $pctused) = $cursor->fetchrow_array) { logit (" $tablespace - $pctused% used"); if ($pctused >= $critical) { unless ($mycritical) { $mymsg = $mymsg . "critical: "; $mycritical="yep"; } $mymsg = $mymsg . "$tablespace ($pctused%) "; $state=$ERRORS{"CRITICAL"}; } elsif ($pctused >= $warn) { unless ($mywarn) { $mymsg = $mymsg . "warning: "; $mywarn="yep"; } $mymsg = $mymsg . "$tablespace ($pctused%) "; $state=$ERRORS{"WARNING"} if $state < $ERRORS{"WARNING"}; } } $cursor->finish; $message = $message . $mymsg . " " if ($mycritical || $mywarn); } sub check_nextents { logit("Enter subroutine check_nextents"); my ($args, $owner, $objname, $objtype, $extents, $mymsg, $mywarn, $mycritical); $args = shift; $mymsg = "#Extents "; get_values($args); $sql = "SELECT OWNER \"Owner\", SEGMENT_NAME \"Object name\", SEGMENT_TYPE \"Object type\", COUNT(*) \"Extents\" FROM DBA_EXTENTS WHERE OWNER <> 'SYS' GROUP BY SEGMENT_TYPE, SEGMENT_NAME, TABLESPACE_NAME, OWNER HAVING COUNT(*) >= $warn ORDER BY 4 DESC"; $cursor=$dbh->prepare($sql); $cursor->execute; while (($owner, $objname, $objtype, $extents) = $cursor->fetchrow_array) { if ($extents >= $critical) { unless ($mycritical) { $mymsg = $mymsg . "critical: "; $mycritical="yep"; } $mymsg = $mymsg . "$owner.$objname($objtype)=$extents "; $state=$ERRORS{"CRITICAL"}; } elsif ($extents >= $warn) { unless ($mywarn) { $mymsg = $mymsg . "warning: "; $mywarn="yep"; } $mymsg = $mymsg . "$owner.$objname($objtype)=$extents "; $state=$ERRORS{"WARNING"} if $state < $ERRORS{"WARNING"}; } } $cursor->finish; $message = $message . $mymsg . " " if ($mycritical || $mywarn); } sub check_fextents { logit("Enter subroutine check_fextents"); my ($args, $owner, $objname, $objtype, $extents, $maxextents, $freextents, $mymsg, $mywarn, $mycritical); $args = shift; $mymsg = "Free extents "; get_values($args, "inverse"); $sql = "SELECT OWNER \"Owner\", SEGMENT_NAME \"Object name\", SEGMENT_TYPE \"Object type\", EXTENTS \"Extents\", MAX_EXTENTS \"Max extents\", MAX_EXTENTS - EXTENTS \"Free extents\" FROM DBA_SEGMENTS WHERE (EXTENTS + $warn) >= MAX_EXTENTS AND SEGMENT_TYPE != 'CACHE' ORDER BY 6"; $cursor=$dbh->prepare($sql); $cursor->execute; while (($owner, $objname, $objtype, $extents, $maxextents, $freextents) = $cursor->fetchrow_array) { if ($freextents <= $critical) { unless ($mycritical) { $mymsg = $mymsg . "critical: "; $mycritical="yep"; } $mymsg = $mymsg . "$owner.$objname($objtype)=$extents "; $state=$ERRORS{"CRITICAL"}; } elsif ($freextents <= $warn) { unless ($mywarn) { $mymsg = $mymsg . "warning: "; $mywarn="yep"; } $mymsg = $mymsg . "$owner.$objname($objtype)=$extents/$maxextents "; $state=$ERRORS{"WARNING"} if $state < $ERRORS{"WARNING"}; } } $cursor->finish; $message = $message . $mymsg . " " if ($mycritical || $mywarn); } sub check_aextents { logit("Enter subroutine check_aextents"); my ($args, $owner, $objname, $objtype, $tablespace_name, $mymsg, $mywarn); my (@tablespaces); # Get a list of all tablespaces $sql = "SELECT TABLESPACE_NAME FROM DBA_TABLESPACES ORDER BY TABLESPACE_NAME"; $cursor = $dbh->prepare($sql); $cursor->execute; while ($tablespace_name = $cursor->fetchrow_array) { push @tablespaces, $tablespace_name; } $cursor->finish; # Search every tablespace for objects which cannot allocate a next extent. foreach $tablespace_name(@tablespaces) { logit (" checking tablespace $tablespace_name"); $sql = "SELECT OWNER \"Owner\", SEGMENT_NAME \"Object name\", SEGMENT_TYPE \"Object type\" FROM DBA_SEGMENTS WHERE TABLESPACE_NAME = '$tablespace_name' AND NEXT_EXTENT > (SELECT NVL(MAX(BYTES),'0') FROM DBA_FREE_SPACE WHERE TABLESPACE_NAME = '$tablespace_name')"; $cursor = $dbh->prepare($sql); $cursor->execute; while (($owner, $objname, $objtype) = $cursor->fetchrow_array) { logit (" found: $owner.$objname($objtype)"); unless ($mywarn) { $mymsg = $mymsg . "warning: "; $mywarn="yep"; } $mymsg = $mymsg . "$owner.$objname($objtype) "; $state=$ERRORS{"WARNING"} if $state < $ERRORS{"WARNING"}; } $cursor->finish; } $message = $message . $mymsg . "cannot allocate a next extent. " if $mywarn; } (END) - zack kenton (zkenton) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=4803 ------------------------------------------------------------------------- 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 low at modog.com Fri Sep 28 23:31:49 2007 From: low at modog.com (Seth P. Low) Date: Fri, 28 Sep 2007 17:31:49 -0400 Subject: Windows 2003 - OS (software) mirroring - Monitoring Health References: <20060801151900.532C138029@chuys.eng.intrinsity.com> <20060801163647.F2FB74F4045@desire.netways.de> Message-ID: Hello, I have an environment which includes systems doing disk mirroring using the OS in Windows 2003. Has anyone found a good way to monitor this setup using nagios. Ideally, I would like to know that both volumes are healthy using either NSClient or NRPE. SMTP is an option as well. I didn't see any counters which jumped off the page as being useful but I did look at physical and logical disks. Thanks, -Seth ------------------------------------------------------------------------- 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 livegreat007 at yahoo.com Sat Sep 29 01:19:08 2007 From: livegreat007 at yahoo.com (Live Great) Date: Fri, 28 Sep 2007 16:19:08 -0700 (PDT) Subject: nagios' cgi Message-ID: <264081.96283.qm@web45515.mail.sp1.yahoo.com> HI, thanks for the replies. I m running the following version of Nagios and plugins: # pkg_info | grep -i nagios nagios-2.9_1 Extremely powerful network monitoring system nagios-plugins-1.4.5,1 Plugins for Nagios nagios-snmp-plugins-1.0_5 Additional SNMP plugins for Nagios Thanks SW ----- Original Message ---- From: "Valdinger, Stephen (DOV, MSX)" To: Live Great ; nagios-users at lists.sourceforge.net Sent: Friday, September 28, 2007 10:41:06 PM Subject: RE: [Nagios-users] nagios' cgi You need to add support for cgi to your apache configuration. It may be worth you upgrading to Apache2, depending on what version of Nagios and the plugins you are running? Can you supply us with that information please? It may be beneficial to us in helping you solve this problem. Stephen From: Live Great [mailto:livegreat007 at yahoo.com] Sent: Thursday, September 27, 2007 8:17 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios' cgi Hi, I have installed nagios and its plugins in freebsd. Restarted apache (1.3), and navigated to the nagios webpages of the website, it does display the main page correctly. However when I click any option in the left hand side of the main page, it popup a download screen and asked me whether I want to download the cgi program. The httpd.conf has the following nagios configuration lines written: Order allow,deny Allow from all AddHandler cgi-script .cgi Options ExecCGI ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/ Alias /nagios/ /usr/local/www/nagios/ Note, the apache running in my system has embedded perl module built in. I also attached a screenshoot of the popup screen when I click on any option on the left hand side of the nagios main page. Your suggestion is much appreciated. Thanks SW -------------- 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 livegreat007 at yahoo.com Sat Sep 29 05:18:28 2007 From: livegreat007 at yahoo.com (Live Great) Date: Fri, 28 Sep 2007 20:18:28 -0700 (PDT) Subject: nagios' cgi Message-ID: <873616.40728.qm@web45513.mail.sp1.yahoo.com> I could upgrade to apache2, but there is embperl built into apache as well, that make me a bit lazy to upgrade it. How do you add cgi to apache(1.3) support? Thanks SW ----- Original Message ---- From: "Valdinger, Stephen (DOV, MSX)" To: Live Great ; nagios-users at lists.sourceforge.net Sent: Friday, September 28, 2007 10:41:06 PM Subject: RE: [Nagios-users] nagios' cgi You need to add support for cgi to your apache configuration. It may be worth you upgrading to Apache2, depending on what version of Nagios and the plugins you are running? Can you supply us with that information please? It may be beneficial to us in helping you solve this problem. Stephen From: Live Great [mailto:livegreat007 at yahoo..com] Sent: Thursday, September 27, 2007 8:17 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios' cgi Hi, I have installed nagios and its plugins in freebsd. Restarted apache (1.3), and navigated to the nagios webpages of the website, it does display the main page correctly. However when I click any option in the left hand side of the main page, it popup a download screen and asked me whether I want to download the cgi program. The httpd.conf has the following nagios configuration lines written: Order allow,deny Allow from all AddHandler cgi-script .cgi Options ExecCGI ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/ Alias /nagios/ /usr/local/www/nagios/ Note, the apache running in my system has embedded perl module built in. I also attached a screenshoot of the popup screen when I click on any option on the left hand side of the nagios main page. Your suggestion is much appreciated. Thanks SW -------------- 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 Sat Sep 29 08:20:02 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Fri, 28 Sep 2007 23:20:02 -0700 Subject: Nagios case studies Message-ID: <46FDEE92.9010402@gmail.com> I'm looking for Nagios case studies, particularly ones that show bottom line benefits of Nagios compared to other more expensive ones, such as Tivoli, Openview, or Sitescope. If anyone knows of any, do share! ------------------------------------------------------------------------- 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 Sat Sep 29 09:46:09 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Sat, 29 Sep 2007 00:46:09 -0700 Subject: Nagios equivalents to Servers Alive add-ons In-Reply-To: <2b7af7c40709280904q2e832c2bjb11ee65b9fd9a7ee@mail.gmail.com> References: <2b7af7c40709280851j7e9280ecq423fa4d98a81d3a8@mail.gmail.com> <2b7af7c40709280904q2e832c2bjb11ee65b9fd9a7ee@mail.gmail.com> Message-ID: <2b7af7c40709290046k677971c3vf9faad1db2300e4e@mail.gmail.com> Yet another great Nagios link for Windows admins http://trac.nakednuns.org/nscp/wiki/CheckCounter -------------- 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 Sat Sep 29 19:38:45 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Sat, 29 Sep 2007 10:38:45 -0700 Subject: how to check_bl entire net block Message-ID: <2b7af7c40709291038u12ee9754uc4105b48b751f2f2@mail.gmail.com> Right now, I'm using check_bl, and it works very well for a single IP, but I'd like to run it once a day on a /28 block. (Sure, I could make each IP check one-by-one, but I'm hoping that there is another plugin that will let me use CIDR notation.) -------------- 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 lavalamp at spiritual-machines.org Sat Sep 29 23:13:16 2007 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Sat, 29 Sep 2007 17:13:16 -0400 Subject: (Return code of 9 is out of bounds) In-Reply-To: <20070928172748.9BD0A580078@desire.netways.de> References: <20070928172748.9BD0A580078@desire.netways.de> Message-ID: <1191100400.5997.9.camel@new-host.home> Does your code return anything other than 1 or 0? Error code 9 may be being returned by the interpreter instead of your code. Try running the code as the nagios user and then "echo $?" to check the result code $ sudo -H -u nagios /path/to/pl $ echo $? ~BAS On Fri, 2007-09-28 at 19:27 +0200, zack kenton wrote: > Hi list > > Does anyone have an idea why I would get (Return code of 9 is out of bounds) with my perl plugin. I know of 123 and 127 numbers, but why would a 9 return? > > - zack kenton (zkenton) > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.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 > > > > > > ------------------------------------------------------------------------- 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 Sun Sep 30 07:06:38 2007 From: scubacuda at gmail.com (Rogelio Bastardo) Date: Sat, 29 Sep 2007 22:06:38 -0700 Subject: tutorial on checking MS Exchange with NSClient++ & Nagios Message-ID: <2b7af7c40709292206m664f5c93mb23848f4f4480390@mail.gmail.com> Yet another "how to check Microsoft Exchange Server with Nagios" wiki entry http://nagioswiki.com/wiki/index.php/Nagios_Checks_for_Exchange_Server_200x -------------- 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 daehenoc at optusnet.com.au Sun Sep 30 14:34:01 2007 From: daehenoc at optusnet.com.au (Greg Vickers) Date: Sun, 30 Sep 2007 22:34:01 +1000 Subject: check_lm_sensors problem with ePN Message-ID: <46FF97B9.5070902@optusnet.com.au> Hi all, I've downloaded the check_lm_sensors-2.0.tar.gz plugin from NagiosExchange (http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=1011) and am trying to use it in a Nagios installation. Nagios2 (2.6-2+etch1) is installed on Etch and is being used to check the temperature of the SATA HDDs. When run from a shell the perl runs just fine and behaves as expected. However, when run from inside lm_sensors.cfg: # 'check_lm_sensors' command definition define command{ command_name check_lm_sensors command_line /usr/lib/nagios/plugins/check_lm_sensors -h '$ARG1$'=$ARG2$,$ARG3$ } and from host.cfg define service{ use generic-service host_name newlagaan service_description Check sda temperature check_command check_lm_sensors!sda Temp!50!55 } I get an ePN error from Nagios: Status Information: **ePN failed to compile /usr/lib/nagios/plugins/check_lm_sensors: "Missing right curly or square bracket at (eval 1) line 544, at end of line and: Performance Data: syntax error at (eval 1) line 551, at EOF" at /usr/lib/nagios2/p1.pl line 238. I'm contacting the author to ask if there is an update, and I was wondering if anyone here had come across this problem and/or have some pointers for me? I'm afraid my Perl is quite basic and I don't know how to start diagnosing what is wrong. Thanks, Greg ------------------------------------------------------------------------- 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 Sun Sep 30 23:42:07 2007 From: michaelkintzios at gmail.com (Mick) Date: Sun, 30 Sep 2007 22:42:07 +0100 Subject: Differentiate between monitoring modem Vs router Message-ID: <200709302242.17576.michaelkintzios@gmail.com> Hi All, I want to monitor a host who has a Linksys router, which after 24 hours or so from being power cycled gradually locks out. All attempts to ping, httping, traceroute, fail. Surprisingly, nmap shows: ===================================== Host XX-XXX-XXX-XX.dhcp.kgpt.tn.charter.com (XX.XXX.XXX.XX) appears to be up ... good. ===================================== Sometimes it may find an open port, sometimes not in which case it reports that all ports are filtered. I assume from these tests that the problem lies with the router as opposed to the modem, otherwise I would get a connection refused/failed sort of message, right? Is there a way to set up Nagios to monitor/compare both modem and router? I am thinking along the lines of pinging the router as normal and when that fails repeatedly, to run a command to check the modem. How should I go about setting this up? PS. Don't be shy to go into detail here, I'll probably need it. :) -- 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