From ecables at gmail.com Thu Jul 1 02:18:02 2010 From: ecables at gmail.com (Eric Cables) Date: Wed, 30 Jun 2010 17:18:02 -0700 Subject: Nagios hangs on startup Message-ID: Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a sudden stopped starting. I noticed a lack of alerts over the last day, and when I checked the GUI it indicated that the "next" scheduled check for a service was in the past. I proceeded to stop/start Nagios, but both have failed. Currently when I try to start Nagios using the init script it just hangs: [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start Starting nagios: I've enabled debug logging (-1 level, 2 verbosity), but this is all that shows up in nagios.debug when I issue the above start request (uid 1003 = nagios): [1277942532.270096] [001.0] [pid=46503] drop_privileges() start [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 I can run nagios -v nagios.cfg, and it reports no errors. Here's the output if I run nagios nagios.cfg manually, without invoking daemon mode: [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg Nagios Core 3.2.1 Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 03-09-2010 License: GPL Website: http://www.nagios.org Any tips? I am not sure what the next steps are since both logging and debugging aren't producing output, and Nagios has never taken more than a few seconds to start in the past. -- Eric Cables -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 1 08:11:15 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 01 Jul 2010 08:11:15 +0200 Subject: wiki down? In-Reply-To: <4C2B75A7.8070008@nagios.com> References: <20285738.139.1277400042080.JavaMail.root@zimbra> <4C2B75A7.8070008@nagios.com> Message-ID: <4C2C3183.6050605@univie.ac.at> Tony Yarusso wrote: > Thanks for the note - Ethan's looking into it now. (He just got back > from another trip.) > Maybe no service escalation condition was set ... -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From werner.flamme at ufz.de Thu Jul 1 09:18:26 2010 From: werner.flamme at ufz.de (Werner Flamme) Date: Thu, 01 Jul 2010 09:18:26 +0200 Subject: wiki down? In-Reply-To: <23193A17705DD246AFFFDF09B779F56F2519A89769@EX-IAD6-B.ant.amazon.com> References: <7250942.9.1277901914254.JavaMail.root@zimbra> <23193A17705DD246AFFFDF09B779F56F2519A89769@EX-IAD6-B.ant.amazon.com> Message-ID: <4C2C4142.6050201@ufz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gius, Mark [30.06.2010 18:23]: > I wasn't even aware that there was a wiki until this email thread. What exactly are you missing that the wiki contains? I've never needed anything other than the docs that ship with Nagios. It's hard to tell what you need from the contents of a wiki when you can't access it... Werner -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkwsQUEACgkQk33Krq8b42Pc3gCePyGwhyo28vyJwhHdcFbOqKS/ y9gAn371dSpTXpovCQQiBrvMiRC/Sv19 =OkUt -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 12:40:30 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 13:40:30 +0300 Subject: NRPE: No output returned from plugin error Message-ID: <4C2C709E.2070908@smtp.com> Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this "NRPE: No output returned from plugin" error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get "NRPE: Unable to read output" and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" [Debian host] command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). -- best regards, Yuris Linux System Engineer, SMTP.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edward.stpierre at gmail.com Thu Jul 1 12:59:00 2010 From: edward.stpierre at gmail.com (Edward St Pierre) Date: Thu, 1 Jul 2010 11:59:00 +0100 Subject: Problems with Active Service Checks Message-ID: Hi all, I have the following environment: Distributed Environment 2 x Central Servers 4 x Distributed Servers All the Distributed Servers send services checks back to both Central Servers via the NSCA which works fine. I have two central servers incase there is a failure with one of these nodes. Central Server A is configured to send out all notifications. Central Server B is configured to monitor Central Server A, and in the event a check failure notifications will be enabled. My problem is that with only one active service check I appear to be experiencing massive latency issues with this check ~500 seconds. Does anyone know why this might be? If I cannot get this working within nagios, I might just configure a cronjob to moitor the other server and run the external command in the event of a failure. Any help would be appreciated. Regards Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 1 13:08:44 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 01 Jul 2010 12:08:44 +0100 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2C709E.2070908@smtp.com> References: <4C2C709E.2070908@smtp.com> Message-ID: <4C2C773C.3060808@flatto.net> yuris wrote: > Hi all, > > I have this weird trouble with getting nrpe agents work. My nagios > server hosts on Debian box while agents on Debian and Centos (all > installed from official binary packages) and the problem is check_nrpe > always returns this "NRPE: No output returned from plugin" error when I > check NRPE on any Centos host and this is true with all plugins - all of > them does not return anything. I turned on debug at one Centos host but > still it does not show me anything, when I run from nagios host: > > ./check_nrpe -H centos.host.com -c check_load > > I always get "NRPE: Unable to read output" and there is nothing in > syslog at agent's host in spite of debug is on. > > My assumption was that command definitions on Centos host side use path > to plugins that is different from Debian, for example: > > command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c > 30,25,20" [Debian host] > command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c > 30,25,20" [Centos host] > > but I made symbolic link so that plugins could be called by the same > path - it didn't help. When I run command locally, all works just fine: > > su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" > OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; > load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; > > while from nagios server: > > ./check_nrpe -H centos.host.com -c check_load > NRPE: Unable to read output > > The weird part of it is that all plugins work fine on debian hosts. > Nagios uses the same host, service and command definitions for all > monitored hosts (both debian and centos) and I really wonder what's > wrong with centos nrpe agents :/ > > If anyone have any ideas, please try to help. > > P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents > versions are the same on Debian and Centos (v.2.12). > > from first look it seems that one of your server has SSL installed on it and the other does not and nagios -by default - assumes ( command definitions) to use nrpe with ssl . Try to execute the command on the CentOS hosts , but add "-n " after the host IP , and see if that will help . Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 1 13:12:45 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 01 Jul 2010 12:12:45 +0100 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2C773C.3060808@flatto.net> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> Message-ID: <4C2C782D.60604@flatto.net> Assaf Flatto wrote: > yuris wrote: > >> Hi all, >> >> I have this weird trouble with getting nrpe agents work. My nagios >> server hosts on Debian box while agents on Debian and Centos (all >> installed from official binary packages) and the problem is check_nrpe >> always returns this "NRPE: No output returned from plugin" error when I >> check NRPE on any Centos host and this is true with all plugins - all of >> them does not return anything. I turned on debug at one Centos host but >> still it does not show me anything, when I run from nagios host: >> >> ./check_nrpe -H centos.host.com -c check_load >> >> I always get "NRPE: Unable to read output" and there is nothing in >> syslog at agent's host in spite of debug is on. >> >> My assumption was that command definitions on Centos host side use path >> to plugins that is different from Debian, for example: >> >> command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c >> 30,25,20" [Debian host] >> command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c >> 30,25,20" [Centos host] >> >> but I made symbolic link so that plugins could be called by the same >> path - it didn't help. When I run command locally, all works just fine: >> >> su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" >> OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; >> load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; >> >> while from nagios server: >> >> ./check_nrpe -H centos.host.com -c check_load >> NRPE: Unable to read output >> >> The weird part of it is that all plugins work fine on debian hosts. >> Nagios uses the same host, service and command definitions for all >> monitored hosts (both debian and centos) and I really wonder what's >> wrong with centos nrpe agents :/ >> >> If anyone have any ideas, please try to help. >> >> P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents >> versions are the same on Debian and Centos (v.2.12). >> >> >> > from first look it seems that one of your server has SSL installed on it > and the other does not and nagios -by default - assumes ( command > definitions) to use nrpe with ssl . > > Try to execute the command on the CentOS hosts , but add "-n " after the > host IP , and see if that will help . > > Assaf > > Clarification : ./check_nrpe -H centos.host.com -n -c check_load -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 13:12:26 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 14:12:26 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2C782D.60604@flatto.net> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> Message-ID: <4C2C781A.90106@smtp.com> well, ./check_nrpe -H centos.host.com -n -c check_load CHECK_NRPE: Error receiving data from daemon and I see this in centos.host syslog "nrpe[22928]: Error: Could not complete SSL handshake. 1" when issue command with "-n" option. -- wbr, yuris Assaf Flatto wrote: > Assaf Flatto wrote: > >> yuris wrote: >> >> >>> Hi all, >>> >>> I have this weird trouble with getting nrpe agents work. My nagios >>> server hosts on Debian box while agents on Debian and Centos (all >>> installed from official binary packages) and the problem is check_nrpe >>> always returns this "NRPE: No output returned from plugin" error when I >>> check NRPE on any Centos host and this is true with all plugins - all of >>> them does not return anything. I turned on debug at one Centos host but >>> still it does not show me anything, when I run from nagios host: >>> >>> ./check_nrpe -H centos.host.com -c check_load >>> >>> I always get "NRPE: Unable to read output" and there is nothing in >>> syslog at agent's host in spite of debug is on. >>> >>> My assumption was that command definitions on Centos host side use path >>> to plugins that is different from Debian, for example: >>> >>> command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c >>> 30,25,20" [Debian host] >>> command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c >>> 30,25,20" [Centos host] >>> >>> but I made symbolic link so that plugins could be called by the same >>> path - it didn't help. When I run command locally, all works just fine: >>> >>> su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" >>> OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; >>> load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; >>> >>> while from nagios server: >>> >>> ./check_nrpe -H centos.host.com -c check_load >>> NRPE: Unable to read output >>> >>> The weird part of it is that all plugins work fine on debian hosts. >>> Nagios uses the same host, service and command definitions for all >>> monitored hosts (both debian and centos) and I really wonder what's >>> wrong with centos nrpe agents :/ >>> >>> If anyone have any ideas, please try to help. >>> >>> P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents >>> versions are the same on Debian and Centos (v.2.12). >>> >>> >>> >>> >> from first look it seems that one of your server has SSL installed on it >> and the other does not and nagios -by default - assumes ( command >> definitions) to use nrpe with ssl . >> >> Try to execute the command on the CentOS hosts , but add "-n " after the >> host IP , and see if that will help . >> >> Assaf >> >> >> > Clarification : > > ./check_nrpe -H centos.host.com -n -c check_load > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 13:17:59 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 14:17:59 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2C781A.90106@smtp.com> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> Message-ID: <4C2C7967.2070609@smtp.com> openssl installed on all hosts, so it seems unlikely that this is the reason.. -- wbr, yuris yuris wrote: > well, > > ./check_nrpe -H centos.host.com -n -c check_load > CHECK_NRPE: Error receiving data from daemon > > and I see this in centos.host syslog "nrpe[22928]: Error: Could not > complete SSL handshake. 1" when issue command with "-n" option. > > -- > wbr, > yuris > > > Assaf Flatto wrote: > >> Assaf Flatto wrote: >> >> >>> yuris wrote: >>> >>> >>> >>>> Hi all, >>>> >>>> I have this weird trouble with getting nrpe agents work. My nagios >>>> server hosts on Debian box while agents on Debian and Centos (all >>>> installed from official binary packages) and the problem is check_nrpe >>>> always returns this "NRPE: No output returned from plugin" error when I >>>> check NRPE on any Centos host and this is true with all plugins - all of >>>> them does not return anything. I turned on debug at one Centos host but >>>> still it does not show me anything, when I run from nagios host: >>>> >>>> ./check_nrpe -H centos.host.com -c check_load >>>> >>>> I always get "NRPE: Unable to read output" and there is nothing in >>>> syslog at agent's host in spite of debug is on. >>>> >>>> My assumption was that command definitions on Centos host side use path >>>> to plugins that is different from Debian, for example: >>>> >>>> command[check_load]="/usr/lib/nagios/plugins/check_load -w 15,10,5 -c >>>> 30,25,20" [Debian host] >>>> command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c >>>> 30,25,20" [Centos host] >>>> >>>> but I made symbolic link so that plugins could be called by the same >>>> path - it didn't help. When I run command locally, all works just fine: >>>> >>>> su nrpe -c "/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" >>>> OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; >>>> load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; >>>> >>>> while from nagios server: >>>> >>>> ./check_nrpe -H centos.host.com -c check_load >>>> NRPE: Unable to read output >>>> >>>> The weird part of it is that all plugins work fine on debian hosts. >>>> Nagios uses the same host, service and command definitions for all >>>> monitored hosts (both debian and centos) and I really wonder what's >>>> wrong with centos nrpe agents :/ >>>> >>>> If anyone have any ideas, please try to help. >>>> >>>> P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents >>>> versions are the same on Debian and Centos (v.2.12). >>>> >>>> >>>> >>>> >>>> >>> from first look it seems that one of your server has SSL installed on it >>> and the other does not and nagios -by default - assumes ( command >>> definitions) to use nrpe with ssl . >>> >>> Try to execute the command on the CentOS hosts , but add "-n " after the >>> host IP , and see if that will help . >>> >>> Assaf >>> >>> >>> >>> >> Clarification : >> >> ./check_nrpe -H centos.host.com -n -c check_load >> >> >> >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From juki.emma at gmail.com Thu Jul 1 13:49:19 2010 From: juki.emma at gmail.com (Julius Kidubuka) Date: Thu, 1 Jul 2010 14:49:19 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2C7967.2070609@smtp.com> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> Message-ID: Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; *# 'check_nrpe' command definition define command{ command_name check_nrpe_no_ssl command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } * Then in your specific service definitions have the check_command line read; *check_command check_nrpe_no_ssl!* Hope this helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.wolfe at robertwolfe.org Thu Jul 1 14:13:12 2010 From: robert.wolfe at robertwolfe.org (Robert Wolfe) Date: Thu, 1 Jul 2010 08:13:12 -0400 Subject: NRPE: No output returned from plugin error References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> Message-ID: <50BE9C7135A64147819E42376C136B262945@dc1.wolfe.local> This is what I did. Some of my servers have nrpe compiled with SSL and some without so I just created two commands in commands.cfg for it -- one to check with NRPE with SSL and one without. ____ _ _______ / __ \ | / / ___/ Robert Wolfe / /_/ / | /| / /\__ \ Robert Wolfe Software / _, _/| |/ |/ /___/ / Web : http://www.robertwolfe.org /_/ |_| |__/|__//____/ Debian Blog : http://debian.robertwolfe.org ________________________________ From: Julius Kidubuka [mailto:juki.emma at gmail.com] Sent: Thu 7/1/2010 7:49 AM To: yuris at smtp.com; Nagios Users List Subject: Re: [Nagios-users] NRPE: No output returned from plugin error Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; # 'check_nrpe' command definition define command{ command_name check_nrpe_no_ssl command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } Then in your specific service definitions have the check_command line read; check_command check_nrpe_no_ssl! Hope this helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Jul 1 14:46:17 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 1 Jul 2010 07:46:17 -0500 Subject: NRPE: No output returned from plugin error In-Reply-To: References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> Message-ID: I had a very similar problem with checks coming from Ubuntu 8.04 and 10.04 destined for RHEL. I had to disable SSL on both ends and set the encryption method to 0. I would also check the NRPE config to make sure the passphrases match if you are using them. Greg Pangrazio On Thu, Jul 1, 2010 at 6:49 AM, Julius Kidubuka wrote: > Yuris, > > You could try compiling nrpe without ssl and then in your commands.cfg file > have something like this; > > # 'check_nrpe' command definition > define command{ > ??????? command_name??? check_nrpe_no_ssl > ??????? command_line??? $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n > ??????? } > > Then in your specific service definitions have the check_command line read; > > ?check_command?????????????????? check_nrpe_no_ssl! > > > Hope this helps. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Thu Jul 1 14:52:25 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 1 Jul 2010 13:52:25 +0100 Subject: Help with creating a pnp4nagios template In-Reply-To: References: Message-ID: On 29 June 2010 22:37, Mirza Dedic wrote: > I was hoping someone out there can help me here, below is my perfdata output > for checking disk space on remote Win32/64 servers that have NSClient++ > installed. > > The perfdata received is in the format of: 'C:'=35.62G;3.99;1.99;0;39.98; > ... > Can someone give me an example of a rrd template I would use for this so > that I can build off it? I use check_nt rather than check_nrpe so this one might need some tweaking: ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Thu Jul 1 15:05:43 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 1 Jul 2010 14:05:43 +0100 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: On 1 July 2010 01:18, Eric Cables wrote: > Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a > sudden stopped starting.? I noticed a lack of alerts over the last day, and > when I checked the GUI it indicated that the "next" scheduled check for a > service was in the past.? I proceeded to stop/start Nagios, but both have > failed. > > Currently when I try to start Nagios using the init script it just hangs: > [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start > Starting nagios: > > I've enabled debug logging (-1 level, 2 verbosity), but this is all that > shows up in nagios.debug when I issue the above start request (uid 1003 = > nagios): > [1277942532.270096] [001.0] [pid=46503] drop_privileges() start > [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 > > I can run nagios -v nagios.cfg, and it reports no errors. > > Here's the output if I run nagios nagios.cfg manually, without invoking > daemon mode: > [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg > > Nagios Core 3.2.1 > Copyright (c) 2009-2010 Nagios Core Development Team and Community > Contributors > Copyright (c) 1999-2009 Ethan Galstad > Last Modified: 03-09-2010 > License: GPL > > Website: http://www.nagios.org > > Any tips?? I am not sure what the next steps are since both logging and > debugging aren't producing output, and Nagios has never taken more than a > few seconds to start in the past. What, if anything, shows up in your nagios.log file? Check you don't already have a nagios daemon running (ps -ef | grep nagios) before you start it again. Check that the lock file isn't there from the previous invocation (if you did a standard install from source tarballs the file is /var/lock/subsys/nagios). Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd doesn't exist before you start nagios. Use full pathnames when attempting to verify your config, for example: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 16:16:57 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 17:16:57 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> Message-ID: <4C2CA359.9000609@smtp.com> I strongly doubt it has any relation to ssl: NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org) Version: 2.12 Last Modified: 03-10-2008 License: GPL v2 with exemptions (-l for more info) SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required TCP Wrappers Available this is output from nrpe (Centos binary package) that shows it's compiled with ssl/tls support. Openssl library is installed as well. Anyway. I tried suggested workaround, defining "check_nrpe_no_ssl" as "$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n" and defining service as "check_nrpe_no_ssl!check_load" and running nrpe deamon no centos host with "-n" option - result is just the same, "NRPE: Unable to read output" However, when I do "./check_nrpe -H centos.host.com" it does return me nrpe version correctly ("NRPE v2.12"). From all this steps I figured that it is not about ssl at all - nrpe version is returned correctly with ssl and without it. Interesting, that in nagios server debug log I see that remote NRPE returns output that nagios check_nrpe cannot parse, it returns similar output, that I would get if call /usr/sbin/nrpe without arguments: [1277983505.131702] [016.2] [pid=17495] Parsing check output... [1277983505.131711] [016.2] [pid=17495] Short Output: (No output returned from plugin) [1277983505.131719] [016.2] [pid=17495] Long Output: NRPE Plugin for Nagios\nCopyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org)\nVersion: 2.12\nLast Modified: 03-10-2008\nLicense: GPL v2 with exemptions (-l for more info)\nSSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required\n\nUsage: check_nrpe -H [-n] [-u] [-p ] [-t ] [-c ] [-a ]\n\nOptions:\n -n = Do no use SSL\n -u = Make socket timeouts return an UNKNOWN state instead of CRITICAL\n = The address of the host running the NRPE daemon\n [port] = The port on which the daemon is running (default=5666)\n [timeout] = Number of seconds before connection times out (default=10)\n [command] = The name of the command that the remote daemon should run\n [arglist] = Optional arguments that should be passed to the command. Multiple\n arguments should be separated by a space. If provided, this must be\n the last option supplied on the command line.\n -h,--help Print this short help.\n -l,--license Print licensing information.\n -n,--no-ssl Do not initial an ssl handshake with the server, talk in plaintext.\n\nNote:\nThis plugin requires that you have the NRPE daemon running on the remote host.\nYou must also have configured the daemon to associate a specific plugin command\nwith the [command] option you are specifying here. Upon receipt of the\n[command] argument, the NRPE daemon will run the appropriate plugin command and\nsend the plugin output and return code back to *this* plugin. This allows you\nto execute plugins on remote hosts and 'fake' the results to make Nagios think\nthe plugin is being run locally.\n\n so that seems to me as if NRPE does not understand arguments from check_nrpe or something... any ideas? -- best regards, yuris Greg Pangrazio wrote: > I had a very similar problem with checks coming from Ubuntu 8.04 and > 10.04 destined for RHEL. I had to disable SSL on both ends and set > the encryption method to 0. > > I would also check the NRPE config to make sure the passphrases match > if you are using them. > > > Greg Pangrazio > > > > > > On Thu, Jul 1, 2010 at 6:49 AM, Julius Kidubuka wrote: > >> Yuris, >> >> You could try compiling nrpe without ssl and then in your commands.cfg file >> have something like this; >> >> # 'check_nrpe' command definition >> define command{ >> command_name check_nrpe_no_ssl >> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n >> } >> >> Then in your specific service definitions have the check_command line read; >> >> check_command check_nrpe_no_ssl! >> >> >> Hope this helps. >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 1 16:33:17 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 01 Jul 2010 15:33:17 +0100 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2CA359.9000609@smtp.com> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> <4C2CA359.9000609@smtp.com> Message-ID: <4C2CA72D.9010802@flatto.net> yuris wrote: > I strongly doubt it has any relation to ssl: > > NRPE - Nagios Remote Plugin Executor > Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org) > Version: 2.12 > Last Modified: 03-10-2008 > License: GPL v2 with exemptions (-l for more info) > SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required > TCP Wrappers Available > > this is output from nrpe (Centos binary package) that shows it's > compiled with ssl/tls support. Openssl library is installed as well. > > Anyway. I tried suggested workaround, defining "check_nrpe_no_ssl" as > "$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n" and defining service > as "check_nrpe_no_ssl!check_load" and running nrpe deamon no centos host > with "-n" option - result is just the same, "NRPE: Unable to read output" > > However, when I do "./check_nrpe -H centos.host.com" it does return me > nrpe version correctly ("NRPE v2.12"). > > From all this steps I figured that it is not about ssl at all - nrpe > version is returned correctly with ssl and without it. > > Interesting, that in nagios server debug log I see that remote NRPE > returns output that nagios check_nrpe cannot parse, it returns similar > output, that I would get if call /usr/sbin/nrpe without arguments: > > so that seems to me as if NRPE does not understand arguments from > check_nrpe or something... > > any ideas? > > -- > best regards, > yuris > > Yuris.. Can you upload a sample nrpe.cfg from one of the centos servers ? That might shed more light on the issue ? -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Thu Jul 1 16:28:59 2010 From: honia2002 at hotmail.com (Honia A) Date: Thu, 1 Jul 2010 10:28:59 -0400 Subject: heck result path is not a valid directory Message-ID: Hi all, I installed Nagios on a 32-bit system (CentOS 5.3) following the directions given here: http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 Everything went well and I ran nagios -v /etc/nagios/nagios.cfg and got no errors or warnings. But when I tried to start Nagios, it failed. Checked the log file and it reads: [1277993818] Error in configuration file '/etc/nagios/nagios.cfg' - Line 466 (Check result path is not a valid directory) [1277993818] Nagios 3.2.1 starting... (PID=27996) [1277993818] Local time is Thu Jul 01 10:16:58 EDT 2010 [1277993818] LOG VERSION: 2.0 [1277993818] Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=27996) Then I opened nagios.cfg file and found this: check_result_path=/var/nagios/spool/checkresults I am pretty sure it's a permission error, but can't seem to fix it. I tried the followings: chmod 777 /var/nagios/spool/checkresults chown -R nagios apache /var/nagios/spool/checkresults ./usermod nagios apache chown -R apache:nagios checkresults And some more permission commands, but no luck. I would really appreciate it if someone could please help me with this. Thanks, h _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Thu Jul 1 16:35:11 2010 From: honia2002 at hotmail.com (Honia A) Date: Thu, 1 Jul 2010 10:35:11 -0400 Subject: Check result path is not a valid directory Message-ID: Hi all, I installed Nagios on a 32-bit system (CentOS 5.3) following the directions given here: http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 Everything went well and I ran nagios -v /etc/nagios/nagios.cfg and got no errors or warnings. But when I tried to start Nagios, it failed. Checked the log file and it reads: [1277993818] Error in configuration file '/etc/nagios/nagios.cfg' - Line 466 (Check result path is not a valid directory) [1277993818] Nagios 3.2.1 starting... (PID=27996) [1277993818] Local time is Thu Jul 01 10:16:58 EDT 2010 [1277993818] LOG VERSION: 2.0 [1277993818] Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=27996) Then I opened nagios.cfg file and found this: check_result_path=/var/nagios/spool/checkresults I am pretty sure it's a permission error, but can't seem to fix it. I tried the followings: chmod 777 /var/nagios/spool/checkresults chown -R nagios apache /var/nagios/spool/checkresults ./usermod nagios apache chown -R apache:nagios checkresults And some more permission commands, but no luck. I would really appreciate it if someone could please help me with this. Thanks, h _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 1 16:40:40 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 01 Jul 2010 15:40:40 +0100 Subject: heck result path is not a valid directory In-Reply-To: References: Message-ID: <4C2CA8E8.5060804@flatto.net> Honia A wrote: > Hi all, > > I installed Nagios on a 32-bit system (CentOS 5.3) following the > directions given here: > http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 > > Everything went well and I ran nagios -v /etc/nagios/nagios.cfg and > got no errors or warnings. But when I tried to start Nagios, it failed. > > Checked the log file and it reads: > > [1277993818] Error in configuration file '/etc/nagios/nagios.cfg' - > Line 466 (Check result path is not a valid directory) > [1277993818] Nagios 3.2.1 starting... (PID=27996) > [1277993818] Local time is Thu Jul 01 10:16:58 EDT 2010 > [1277993818] LOG VERSION: 2.0 > [1277993818] Bailing out due to one or more errors encountered in the > configuration files. Run Nagios from the command line with the -v > option to verify your config before restarting. (PID=27996) > > Then I opened nagios.cfg file and found this: > check_result_path=/var/nagios/spool/checkresults > > I am pretty sure it's a permission error, but can't seem to fix it. I > tried the followings: > > chmod 777 /var/nagios/spool/checkresults > chown -R nagios apache /var/nagios/spool/checkresults > ./usermod nagios apache > chown -R apache:nagios checkresults > > And some more permission commands, but no luck. I would really > appreciate it if someone could please help me with this. Under what user/group is nagios running ? what is the current permissions of the /var/nagios/spool/checkresults directory ? have you also checked parent directory permissions ? it is ok that the target dir has 777 access , but if /var/nagios does not , this is a dead point . -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 16:44:06 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 17:44:06 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2CA72D.9010802@flatto.net> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> <4C2CA359.9000609@smtp.com> <4C2CA72D.9010802@flatto.net> Message-ID: <4C2CA9B6.2000304@smtp.com> There is nrpe.cfg: log_facility=daemon pid_file=/var/run/nrpe.pid server_port=5666 nrpe_user=nrpe nrpe_group=nrpe allowed_hosts=nagios.domain dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 command[check_users]="/usr/lib64/nagios/plugins/check_users -w 5 -c 10" command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20" command[check_disk]="/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup00-LogVol00" command[check_zombie_procs]="/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z" command[check_total_procs]="/usr/lib64/nagios/plugins/check_procs -w 200 -c 300" -- wbr, yuris Assaf Flatto wrote: > yuris wrote: > >> I strongly doubt it has any relation to ssl: >> >> NRPE - Nagios Remote Plugin Executor >> Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org) >> Version: 2.12 >> Last Modified: 03-10-2008 >> License: GPL v2 with exemptions (-l for more info) >> SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required >> TCP Wrappers Available >> >> this is output from nrpe (Centos binary package) that shows it's >> compiled with ssl/tls support. Openssl library is installed as well. >> >> Anyway. I tried suggested workaround, defining "check_nrpe_no_ssl" as >> "$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n" and defining service >> as "check_nrpe_no_ssl!check_load" and running nrpe deamon no centos host >> with "-n" option - result is just the same, "NRPE: Unable to read output" >> >> However, when I do "./check_nrpe -H centos.host.com" it does return me >> nrpe version correctly ("NRPE v2.12"). >> >> From all this steps I figured that it is not about ssl at all - nrpe >> version is returned correctly with ssl and without it. >> >> Interesting, that in nagios server debug log I see that remote NRPE >> returns output that nagios check_nrpe cannot parse, it returns similar >> output, that I would get if call /usr/sbin/nrpe without arguments: >> >> so that seems to me as if NRPE does not understand arguments from >> check_nrpe or something... >> >> any ideas? >> >> -- >> best regards, >> yuris >> >> >> > Yuris.. > > Can you upload a sample nrpe.cfg from one of the centos servers ? > > That might shed more light on the issue ? > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Thu Jul 1 16:45:24 2010 From: honia2002 at hotmail.com (Honia A) Date: Thu, 1 Jul 2010 10:45:24 -0400 Subject: heck result path is not a valid directory In-Reply-To: <4C2CA8E8.5060804@flatto.net> References: , <4C2CA8E8.5060804@flatto.net> Message-ID: Hi and thank you for your reply. Here are the outputs: [root at localhost ~]# cd /var/nagios/spool/ [root at localhost spool]# ls -l drwxrwxrwx 2 nagios nagios 4096 Jul 1 10:25 checkresults [root at localhost var]# cd /var [root at localhost var]# ls -l drwxrwxrwx 5 nagios nagios 4096 Jul 1 09:16 nagios Please let me know what my mistake is... Thanks, h > Date: Thu, 1 Jul 2010 15:40:40 +0100 > From: nagios at flatto.net > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] heck result path is not a valid directory > > Honia A wrote: > > Hi all, > > > > I installed Nagios on a 32-bit system (CentOS 5.3) following the > > directions given here: > > http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 > > > > Everything went well and I ran nagios -v /etc/nagios/nagios.cfg and > > got no errors or warnings. But when I tried to start Nagios, it failed. > > > > Checked the log file and it reads: > > > > [1277993818] Error in configuration file '/etc/nagios/nagios.cfg' - > > Line 466 (Check result path is not a valid directory) > > [1277993818] Nagios 3.2.1 starting... (PID=27996) > > [1277993818] Local time is Thu Jul 01 10:16:58 EDT 2010 > > [1277993818] LOG VERSION: 2.0 > > [1277993818] Bailing out due to one or more errors encountered in the > > configuration files. Run Nagios from the command line with the -v > > option to verify your config before restarting. (PID=27996) > > > > Then I opened nagios.cfg file and found this: > > check_result_path=/var/nagios/spool/checkresults > > > > I am pretty sure it's a permission error, but can't seem to fix it. I > > tried the followings: > > > > chmod 777 /var/nagios/spool/checkresults > > chown -R nagios apache /var/nagios/spool/checkresults > > ./usermod nagios apache > > chown -R apache:nagios checkresults > > > > And some more permission commands, but no luck. I would really > > appreciate it if someone could please help me with this. > Under what user/group is nagios running ? > > what is the current permissions of the /var/nagios/spool/checkresults > directory ? > > have you also checked parent directory permissions ? it is ok that the > target dir has 777 access , but if /var/nagios does not , this is a dead > point . > > -- > Never,Ever Cut A Deal With a Dragon > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Jul 1 17:07:53 2010 From: benny at bennyvision.com (C. Bensend) Date: Thu, 1 Jul 2010 10:07:53 -0500 Subject: NRPE: No output returned from plugin error In-Reply-To: <4C2CA9B6.2000304@smtp.com> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> <4C2CA359.9000609@smtp.com> <4C2CA72D.9010802@flatto.net> <4C2CA9B6.2000304@smtp.com> Message-ID: <85b88d225a22453333a2f8d2018d67c7.squirrel@webmail.stinkweasel.net> > command[check_users]="/usr/lib64/nagios/plugins/check_users -w 5 -c 10" > command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c > 30,25,20" > command[check_disk]="/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% > -p /dev/mapper/VolGroup00-LogVol00" > command[check_zombie_procs]="/usr/lib64/nagios/plugins/check_procs -w 5 > -c 10 -s Z" > command[check_total_procs]="/usr/lib64/nagios/plugins/check_procs -w 200 > -c 300" Have you tried those without double quotes? If 'check_nrpe -H host' works, but 'check_nrpe -H host -c command' doesn't, it's a problem with the plugin, pure and simple. Be it path, incorrect usage, bad arguments, whatever, it's complaining about the execution of (or inability to execute) the plugin. Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Thu Jul 1 17:30:18 2010 From: yuris at smtp.com (yuris) Date: Thu, 01 Jul 2010 18:30:18 +0300 Subject: NRPE: No output returned from plugin error In-Reply-To: <85b88d225a22453333a2f8d2018d67c7.squirrel@webmail.stinkweasel.net> References: <4C2C709E.2070908@smtp.com> <4C2C773C.3060808@flatto.net> <4C2C782D.60604@flatto.net> <4C2C781A.90106@smtp.com> <4C2C7967.2070609@smtp.com> <4C2CA359.9000609@smtp.com> <4C2CA72D.9010802@flatto.net> <4C2CA9B6.2000304@smtp.com> <85b88d225a22453333a2f8d2018d67c7.squirrel@webmail.stinkweasel.net> Message-ID: <4C2CB48A.7080801@smtp.com> Bingo! I suspected that it's something really stupid, like typo or something like almost always in cases like this! thanks everybody involved and especially Benny :) -- wbr, yuris C. Bensend wrote: >> command[check_users]="/usr/lib64/nagios/plugins/check_users -w 5 -c 10" >> command[check_load]="/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c >> 30,25,20" >> command[check_disk]="/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% >> -p /dev/mapper/VolGroup00-LogVol00" >> command[check_zombie_procs]="/usr/lib64/nagios/plugins/check_procs -w 5 >> -c 10 -s Z" >> command[check_total_procs]="/usr/lib64/nagios/plugins/check_procs -w 200 >> -c 300" >> > > Have you tried those without double quotes? > > If 'check_nrpe -H host' works, but 'check_nrpe -H host -c command' > doesn't, it's a problem with the plugin, pure and simple. Be it path, > incorrect usage, bad arguments, whatever, it's complaining about the > execution of (or inability to execute) the plugin. > > Benny > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Thu Jul 1 17:31:01 2010 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Thu, 1 Jul 2010 16:31:01 +0100 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server Message-ID: Hi, I have a centos nagios server monitoring services via NRPE plugin, getting the following error for solaris remote host, I have checked my /usr/local/Nagios/etc/nrpe.cfg file and NRPE service is up and running and listening on port 5666 , but still cannot worked what the problem is, can anyone shed any light on this please. --- CHECK_NRPE: Error - Could not complete SSL handshake. Best regards, -Najeeb ----------------------------------------------- Najeeb Aslam Unix Systems Administrator, Youthnet UK 50 Featherstone St, London, EC1Y 8RT | najeeb.aslam at youthnet.org Direct: 0207 250 5750 ext. 234 |Switchboard: 0207 250 5700 | Fax: 0207 250 3695 Websites: www.youthnet.org | www.do-it.org.uk | www.thesite.org | www.lifetracks.com P Before printing, please think about the environment ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 1 17:51:17 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 01 Jul 2010 16:51:17 +0100 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server In-Reply-To: References: Message-ID: <4C2CB975.90109@flatto.net> Najeeb Aslam wrote: > > Hi, > > > > I have a centos nagios server monitoring services via NRPE plugin, > getting the following error for solaris remote host, I have checked my > /usr/local/Nagios/etc/nrpe.cfg file and NRPE service is up and running > and listening on port 5666 , but still cannot worked what the problem > is, can anyone shed any light on this please. > > > > --- > > CHECK_NRPE: Error - Could not complete SSL handshake. > > > > > > Best regards, > > > Your nrpe is (host or client) demands SSL and the other does not use it . Find out which and change it so either both use ssl or neither use it. Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Thu Jul 1 21:00:12 2010 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Thu, 1 Jul 2010 20:00:12 +0100 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server In-Reply-To: <4C2CB975.90109@flatto.net> References: <4C2CB975.90109@flatto.net> Message-ID: Hi Assaf and all, The strange this is I've configured 5 other solaris based remote hosts the same way with ssl for nrpe but works fine with the same centos based nagios server. Any other ideas? Regards, -Najeeb -----Original Message----- From: Assaf Flatto [mailto:nagios at flatto.net] Sent: 01 July 2010 16:51 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server Najeeb Aslam wrote: > > Hi, > > > > I have a centos nagios server monitoring services via NRPE plugin, > getting the following error for solaris remote host, I have checked my > /usr/local/Nagios/etc/nrpe.cfg file and NRPE service is up and running > and listening on port 5666 , but still cannot worked what the problem > is, can anyone shed any light on this please. > > > > --- > > CHECK_NRPE: Error - Could not complete SSL handshake. > > > > > > Best regards, > > > Your nrpe is (host or client) demands SSL and the other does not use it . Find out which and change it so either both use ssl or neither use it. Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Jul 1 22:01:31 2010 From: benny at bennyvision.com (C. Bensend) Date: Thu, 1 Jul 2010 15:01:31 -0500 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server In-Reply-To: References: <4C2CB975.90109@flatto.net> Message-ID: > The strange this is I've configured 5 other solaris based remote hosts the > same way with ssl for nrpe but works fine with the same centos based > nagios server. Is your Nagios server in the 'allowed_hosts' option in the client's nrpe.cfg? Can you telnet from your Nagios server to port 5666 on the client? Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Thu Jul 1 22:47:19 2010 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Thu, 1 Jul 2010 21:47:19 +0100 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server In-Reply-To: References: <4C2CB975.90109@flatto.net> Message-ID: Hi Benny, Below is a successful telnet session from my centos nagios server to the solaris remote host. As requested in my nrpe.cfg file on the solaris remote host I have loop back ip address 127.0.0.1 for 'allowed_host' not the ip address of the centos nagios server, but before it was working fine... [root at centos ~]# netstat -an |grep 5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN [root at centos ~]# telnet 195.194.49.175 5666 Trying 195.194.49.175... Connected to 195.194.49.175 (195.194.49.175). Escape character is '^]'. Connection closed by foreign host. [root at centos ~]# Regards, -Najeeb -----Original Message----- From: C. Bensend [mailto:benny at bennyvision.com] Sent: 01 July 2010 21:02 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server > The strange this is I've configured 5 other solaris based remote hosts the > same way with ssl for nrpe but works fine with the same centos based > nagios server. Is your Nagios server in the 'allowed_hosts' option in the client's nrpe.cfg? Can you telnet from your Nagios server to port 5666 on the client? Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.com Thu Jul 1 22:50:20 2010 From: srmiller at interbel.com (Scott Miller) Date: Thu, 1 Jul 2010 14:50:20 -0600 Subject: Postfix Mail Queue Plugin Message-ID: Hello all, I'm wanting to monitor a Postifx Mail Queue on a local machine, and found the below plugin (some years ago). The machine is a FreeBSD 8 with Nagios 3.2.1 and Postfix 2.7.0. I?ve used the below plugin on a Fedora 8 machine, with no problems, but FreeBSD seems to have problems with it. The error reads: (Service check did not exit properly) and the logs show: Warning: Check of service 'Postfix Mail Queue' on host 'localhost' did not exit properly! I did modify just one line: use lib "/usr/local/nagios/libexec" ; to use lib "/usr/local/libexec/nagios" ; Anyone see what I?m doing wrong? I've googled and googled, but to no avail. Thanks! Scott Miller -------------------------------- -------------------------------- #check_mailq #! /usr/bin/perl -w # Copyright (c) 2002 Oregon State University - Network Engineering # All rights reserved. # # $Id: check_postfix_mailq,v 1.2 2004/11/18 21:01:58 kveton Exp $ # $Source: /data/cvsroot/eng/nagios/check_postfix_mailq,v $ # This is a Nagios monitoring plugin that will check the status of # the Postfix mailq on the local machine. It is best used with # something like NRPE for remote access. BEGIN { if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { $PROGNAME = $2; } } require 5.004; use POSIX; use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_v $verbose $PROGNAME $opt_w $opt_c $opt_t $status $state $msg $msg_q); use lib "/usr/local/libexec/nagios" ; use utils qw(%ERRORS &print_revision &usage &support); use Data::Dumper; # function prototypes sub print_help (); sub print_usage ($); sub help (); sub version (); sub get_version (); # paranoia central delete @ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; $PROGNAME = "check_mailq"; Getopt::Long::Configure('bundling', 'no_ignore_case'); GetOptions ("V|version" => \&version, "h|help" => \&help, "w|warning=s" => \$opt_w, "c|critical=s" => \$opt_c); # set the defaults for warn ($opt_w) || ($opt_w = shift) || ($opt_w = 2000); my $warning = $1 if ($opt_w =~ /([0-9]+)/); # set the defaults for critical ($opt_c) || ($opt_c = shift) || ($opt_c = 5000); my $critical = $1 if ($opt_c =~ /([0-9]+)/); # for the final processing of the output my $state = 'UNKNOWN'; my $answer = 'Could not initialize tests.'; # Just in case of problems, let's not hang NetSaint $SIG{'ALRM'} = sub { print ("ERROR: No response from postfix mailq (alarm)\n"); exit $ERRORS{"UNKNOWN"}; }; alarm(30); # let's get to it my $result = `/usr/local/sbin/postqueue -p`; if ( $result =~ /-- (\d+) Kbytes in (\d+) Request[s]*\./ ) { if ( $2 > $critical ) { $state = 'CRITICAL'; } elsif ( $2 > $warning ) { $state = 'WARNING'; } else { $state = 'OK'; } $answer = "Postfix mailq has $2 messages queued for a total of $1 Kbytes."; } elsif ( $result =~ /Mail queue is empty/ ) { $state = 'OK'; $answer = 'Mail queue is empty'; } else { $state = 'CRITICAL'; $answer = "Could not connect to local mailq. Postfix may be down."; } if ( $state eq 'CRITICAL' or $state eq 'WARNING' or $state eq 'UNKNOWN' ) { print "$state: $answer\n"; } else { print "OK: $answer\n"; } exit $ERRORS{$state}; # ############################################################3 ############################################################3 # Standard Netsaint Support Functions sub print_usage ($) { my ($error) = @_; print "Usage: $PROGNAME [--help|h] [-w ] [-c ]\n"; if ( $error ) { print "$error\n"; exit $ERRORS{'UNKNOWN'}; } } sub get_version () { return '$ Revision: 1.0.0 $'; } sub print_help () { my $version = get_version(); print "\nCopyright (c) 2002 Oregon State University -- $PROGNAME, $version\n"; print_usage(''); my $usage = qq{ -w Warning service page threshold. -c Critical service page threshold. -h This message. }; print $usage; } sub version () { print_revision($PROGNAME, get_version() ); exit $ERRORS{'OK'}; } sub help () { print_help(); exit $ERRORS{'OK'}; } # ############################################################ -------------------------------- -------------------------------- #commands.cfg # 'check_mailq' command definition define command{ command_name check_mailq command_line $USER1$/check_mailq -w $ARG1$ -c $ARG2$ } -------------------------------- -------------------------------- #localhost.cfg # Define a service to check mailq on postfix mail server # warning of > 50 # critical if > 100 define service{ use local-service ; Name of service template to use host_name localhost service_description Postfix Mail Queue check_command check_mailq!50!100 } ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Thu Jul 1 23:09:04 2010 From: ecables at gmail.com (Eric Cables) Date: Thu, 1 Jul 2010 14:09:04 -0700 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: Thanks for the reply. I ended up rebooting the box, which fixed the problem temporarily, but it has resurfaced again. When I drill down into a service check it says that the next check will be processed at a time that has already passed. For example: Last Check: 13:09 Next Check: 13:11 The current time on, however, is 14:02... When I try to stop the process via the init script I get the following: [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh stop Stopping nagios: .......... Warning - nagios did not exit in a timely manner The cmd file does not exist prior to attempting to start, after stopping, but I back to the problem where Nagios will not start and instead hangs indefenitely when requested to start. [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh start Starting nagios: <-- hangs here I'm not sure about the lock file, this is a FreeBSD install from source, and I don't see a /var/lock directory at all. Everything Nagios related is installed in /usr/local/nagios as far as I can tell. There doesn't seem to be anything of interest in nagios.log, as the last entry just reports a notification that was sent out prior to Nagios losing its functionality. Any other tips? I'm not exactly sure why a reboot fixed this before, but any speculation is appreciated. -- Eric Cables On Thu, Jul 1, 2010 at 6:05 AM, Jim Avery wrote: > On 1 July 2010 01:18, Eric Cables wrote: > > Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a > > sudden stopped starting. I noticed a lack of alerts over the last day, > and > > when I checked the GUI it indicated that the "next" scheduled check for a > > service was in the past. I proceeded to stop/start Nagios, but both have > > failed. > > > > Currently when I try to start Nagios using the init script it just hangs: > > [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start > > Starting nagios: > > > > I've enabled debug logging (-1 level, 2 verbosity), but this is all that > > shows up in nagios.debug when I issue the above start request (uid 1003 = > > nagios): > > [1277942532.270096] [001.0] [pid=46503] drop_privileges() start > > [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 > > > > I can run nagios -v nagios.cfg, and it reports no errors. > > > > Here's the output if I run nagios nagios.cfg manually, without invoking > > daemon mode: > > [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg > > > > Nagios Core 3.2.1 > > Copyright (c) 2009-2010 Nagios Core Development Team and Community > > Contributors > > Copyright (c) 1999-2009 Ethan Galstad > > Last Modified: 03-09-2010 > > License: GPL > > > > Website: http://www.nagios.org > > > > Any tips? I am not sure what the next steps are since both logging and > > debugging aren't producing output, and Nagios has never taken more than a > > few seconds to start in the past. > > What, if anything, shows up in your nagios.log file? > > Check you don't already have a nagios daemon running (ps -ef | grep > nagios) before you start it again. > > Check that the lock file isn't there from the previous invocation (if > you did a standard install from source tarballs the file is > /var/lock/subsys/nagios). > > Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd > doesn't exist before you start nagios. > > Use full pathnames when attempting to verify your config, for example: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Jul 1 23:17:35 2010 From: benny at bennyvision.com (C. Bensend) Date: Thu, 1 Jul 2010 16:17:35 -0500 Subject: Returning "CHECK_NRPE: Error - Could not complete SSL handshake' on Nagios server In-Reply-To: References: <4C2CB975.90109@flatto.net> Message-ID: > Below is a successful telnet session from my centos nagios server to the > solaris remote host. As requested in my nrpe.cfg file on the solaris > remote host I have loop back ip address 127.0.0.1 for 'allowed_host' not > the ip address of the centos nagios server, but before it was working > fine... > > [root at centos ~]# netstat -an |grep 5666 > tcp 0 0 0.0.0.0:5666 0.0.0.0:* > LISTEN > > [root at centos ~]# telnet 195.194.49.175 5666 > Trying 195.194.49.175... > Connected to 195.194.49.175 (195.194.49.175). > Escape character is '^]'. > Connection closed by foreign host. > [root at centos ~]# If you don't have your Nagios server specified in allowed_hosts, NRPE will refuse to talk to your Nagios server. Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Thu Jul 1 23:15:43 2010 From: ecables at gmail.com (Eric Cables) Date: Thu, 1 Jul 2010 14:15:43 -0700 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: Here are a few more details I've been able to gather. Here's the output of a truss on the init script w/ the start statement: Starting nagios:write(1,"Starting nagios:",16) = 16 (0x10) fork(0x90,0xbfbfe9f8,0xa,0x8062a35,0x0,0x0) = 55445 (0xd895) getpgrp(0x0,0x0,0xd895,0x0,0x2831c0c0,0x0) = 55444 (0xd894) wait4(0xffffffff,0xbfbfe9d8,0x2,0x0,0x213,0x1) = 55445 (0xd895) stat("/sbin/su",0xbfbfe6f8) ERR#2 'No such file or directory' stat("/bin/su",0xbfbfe6f8) ERR#2 'No such file or directory' stat("/usr/sbin/su",0xbfbfe6f8) ERR#2 'No such file or directory' stat("/usr/bin/su",{ mode=-r-sr-xr-x ,inode=14512669,size=14496,blksize=4096 }) = 0 (0x0) fork(0x0,0x0,0x4b156e10,0x0,0x0,0x0) = 55446 (0xd896) getpgrp(0x0,0x0,0xd896,0x0,0x2831c0c0,0x0) = 55444 (0xd894) ^^^ This is where it hangs. ps -ax | grep nagios shows the following: 55443 6 I+ 0:00.02 truss /usr/local/etc/rc.d/nagios.sh start 55444 6 IX 0:00.01 /bin/sh /usr/local/etc/rc.d/nagios.sh start 55447 6 S 0:00.07 su - nagios -c touch /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat Here is retention.dat (not sure why it would hang here): -rw------- 1 nagios nagios 2008435 Jul 1 12:26 retention.dat These are really the only clues I'm able to find at this point. -- Eric Cables On Thu, Jul 1, 2010 at 2:09 PM, Eric Cables wrote: > Thanks for the reply. I ended up rebooting the box, which fixed the > problem temporarily, but it has resurfaced again. When I drill down into a > service check it says that the next check will be processed at a time that > has already passed. > > For example: > Last Check: 13:09 > Next Check: 13:11 > > The current time on, however, is 14:02... > > When I try to stop the process via the init script I get the following: > [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh stop > Stopping nagios: .......... > Warning - nagios did not exit in a timely manner > > The cmd file does not exist prior to attempting to start, after stopping, > but I back to the problem where Nagios will not start and instead hangs > indefenitely when requested to start. > > [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh start > Starting nagios: <-- hangs here > > I'm not sure about the lock file, this is a FreeBSD install from source, > and I don't see a /var/lock directory at all. Everything Nagios related is > installed in /usr/local/nagios as far as I can tell. > > There doesn't seem to be anything of interest in nagios.log, as the last > entry just reports a notification that was sent out prior to Nagios losing > its functionality. > > Any other tips? I'm not exactly sure why a reboot fixed this before, but > any speculation is appreciated. > > -- Eric Cables > > > > On Thu, Jul 1, 2010 at 6:05 AM, Jim Avery wrote: > >> On 1 July 2010 01:18, Eric Cables wrote: >> > Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a >> > sudden stopped starting. I noticed a lack of alerts over the last day, >> and >> > when I checked the GUI it indicated that the "next" scheduled check for >> a >> > service was in the past. I proceeded to stop/start Nagios, but both >> have >> > failed. >> > >> > Currently when I try to start Nagios using the init script it just >> hangs: >> > [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start >> > Starting nagios: >> > >> > I've enabled debug logging (-1 level, 2 verbosity), but this is all that >> > shows up in nagios.debug when I issue the above start request (uid 1003 >> = >> > nagios): >> > [1277942532.270096] [001.0] [pid=46503] drop_privileges() start >> > [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 >> > >> > I can run nagios -v nagios.cfg, and it reports no errors. >> > >> > Here's the output if I run nagios nagios.cfg manually, without invoking >> > daemon mode: >> > [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg >> > >> > Nagios Core 3.2.1 >> > Copyright (c) 2009-2010 Nagios Core Development Team and Community >> > Contributors >> > Copyright (c) 1999-2009 Ethan Galstad >> > Last Modified: 03-09-2010 >> > License: GPL >> > >> > Website: http://www.nagios.org >> > >> > Any tips? I am not sure what the next steps are since both logging and >> > debugging aren't producing output, and Nagios has never taken more than >> a >> > few seconds to start in the past. >> >> What, if anything, shows up in your nagios.log file? >> >> Check you don't already have a nagios daemon running (ps -ef | grep >> nagios) before you start it again. >> >> Check that the lock file isn't there from the previous invocation (if >> you did a standard install from source tarballs the file is >> /var/lock/subsys/nagios). >> >> Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd >> doesn't exist before you start nagios. >> >> Use full pathnames when attempting to verify your config, for example: >> >> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Thu Jul 1 23:36:04 2010 From: ecables at gmail.com (Eric Cables) Date: Thu, 1 Jul 2010 14:36:04 -0700 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: Well, I tried to duplicate the command that is showing up in the 'ps -xw' output, and it just hangs. [nagios at psdbsd01 (~)]$ whoami nagios [nagios at psdbsd01 (~)]$ su - nagios -c touch /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat ^^ hangs here. In fact, if I just try to 'su - nagios' the process hangs as well. Using su with other parameters works, however, so the binary seems to function: [nagios at psdbsd01 (~)]$ su - Password: [root at psdbsd01 (~)]# And su - nagios from the root user appears to work fine. [root at psdbsd01 (~)]# su - nagios [nagios at psdbsd01 (~)]$ But su - nagios does not (as the nagios user): [nagios at psdbsd01 (~)]$ su - nagios ^^ hangs Sorry for all the noise. -- Eric Cables On Thu, Jul 1, 2010 at 2:15 PM, Eric Cables wrote: > Here are a few more details I've been able to gather. > > Here's the output of a truss on the init script w/ the start statement: > Starting nagios:write(1,"Starting nagios:",16) = 16 > (0x10) > fork(0x90,0xbfbfe9f8,0xa,0x8062a35,0x0,0x0) = 55445 (0xd895) > getpgrp(0x0,0x0,0xd895,0x0,0x2831c0c0,0x0) = 55444 (0xd894) > wait4(0xffffffff,0xbfbfe9d8,0x2,0x0,0x213,0x1) = 55445 (0xd895) > stat("/sbin/su",0xbfbfe6f8) ERR#2 'No such file or > directory' > stat("/bin/su",0xbfbfe6f8) ERR#2 'No such file or > directory' > stat("/usr/sbin/su",0xbfbfe6f8) ERR#2 'No such file or > directory' > stat("/usr/bin/su",{ mode=-r-sr-xr-x > ,inode=14512669,size=14496,blksize=4096 }) = 0 (0x0) > fork(0x0,0x0,0x4b156e10,0x0,0x0,0x0) = 55446 (0xd896) > getpgrp(0x0,0x0,0xd896,0x0,0x2831c0c0,0x0) = 55444 (0xd894) > > ^^^ This is where it hangs. > > ps -ax | grep nagios shows the following: > 55443 6 I+ 0:00.02 truss /usr/local/etc/rc.d/nagios.sh start > 55444 6 IX 0:00.01 /bin/sh /usr/local/etc/rc.d/nagios.sh start > 55447 6 S 0:00.07 su - nagios -c touch > /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat > > Here is retention.dat (not sure why it would hang here): > -rw------- 1 nagios nagios 2008435 Jul 1 12:26 retention.dat > > These are really the only clues I'm able to find at this point. > > -- Eric Cables > > > > On Thu, Jul 1, 2010 at 2:09 PM, Eric Cables wrote: > >> Thanks for the reply. I ended up rebooting the box, which fixed the >> problem temporarily, but it has resurfaced again. When I drill down into a >> service check it says that the next check will be processed at a time that >> has already passed. >> >> For example: >> Last Check: 13:09 >> Next Check: 13:11 >> >> The current time on, however, is 14:02... >> >> When I try to stop the process via the init script I get the following: >> [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh stop >> Stopping nagios: .......... >> Warning - nagios did not exit in a timely manner >> >> The cmd file does not exist prior to attempting to start, after stopping, >> but I back to the problem where Nagios will not start and instead hangs >> indefenitely when requested to start. >> >> [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh start >> Starting nagios: <-- hangs here >> >> I'm not sure about the lock file, this is a FreeBSD install from source, >> and I don't see a /var/lock directory at all. Everything Nagios related is >> installed in /usr/local/nagios as far as I can tell. >> >> There doesn't seem to be anything of interest in nagios.log, as the last >> entry just reports a notification that was sent out prior to Nagios losing >> its functionality. >> >> Any other tips? I'm not exactly sure why a reboot fixed this before, but >> any speculation is appreciated. >> >> -- Eric Cables >> >> >> >> On Thu, Jul 1, 2010 at 6:05 AM, Jim Avery wrote: >> >>> On 1 July 2010 01:18, Eric Cables wrote: >>> > Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a >>> > sudden stopped starting. I noticed a lack of alerts over the last day, >>> and >>> > when I checked the GUI it indicated that the "next" scheduled check for >>> a >>> > service was in the past. I proceeded to stop/start Nagios, but both >>> have >>> > failed. >>> > >>> > Currently when I try to start Nagios using the init script it just >>> hangs: >>> > [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start >>> > Starting nagios: >>> > >>> > I've enabled debug logging (-1 level, 2 verbosity), but this is all >>> that >>> > shows up in nagios.debug when I issue the above start request (uid 1003 >>> = >>> > nagios): >>> > [1277942532.270096] [001.0] [pid=46503] drop_privileges() start >>> > [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 >>> > >>> > I can run nagios -v nagios.cfg, and it reports no errors. >>> > >>> > Here's the output if I run nagios nagios.cfg manually, without invoking >>> > daemon mode: >>> > [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg >>> > >>> > Nagios Core 3.2.1 >>> > Copyright (c) 2009-2010 Nagios Core Development Team and Community >>> > Contributors >>> > Copyright (c) 1999-2009 Ethan Galstad >>> > Last Modified: 03-09-2010 >>> > License: GPL >>> > >>> > Website: http://www.nagios.org >>> > >>> > Any tips? I am not sure what the next steps are since both logging and >>> > debugging aren't producing output, and Nagios has never taken more than >>> a >>> > few seconds to start in the past. >>> >>> What, if anything, shows up in your nagios.log file? >>> >>> Check you don't already have a nagios daemon running (ps -ef | grep >>> nagios) before you start it again. >>> >>> Check that the lock file isn't there from the previous invocation (if >>> you did a standard install from source tarballs the file is >>> /var/lock/subsys/nagios). >>> >>> Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd >>> doesn't exist before you start nagios. >>> >>> Use full pathnames when attempting to verify your config, for example: >>> >>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Fri Jul 2 00:24:30 2010 From: ecables at gmail.com (Eric Cables) Date: Thu, 1 Jul 2010 15:24:30 -0700 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: So I found an obscure "su hangs" message board posting that recommended restarting syslogd. I am running syslog-ng, and after restarting the daemon I was able to start Nagios without any problems. Local 'su - nagios' commands also work without any delay. I suspect that some interaction between Nagios and syslog-ng is causing Nagios to stop working, and the subsequent restart fails as a result of that original problem. I'll probably move this problem to the syslog-ng mailing list, but has anyone ever seen this before? At the very least maybe this will provide someone who has this problem in the future with more information. -- Eric Cables On Thu, Jul 1, 2010 at 2:36 PM, Eric Cables wrote: > Well, I tried to duplicate the command that is showing up in the 'ps -xw' > output, and it just hangs. > > [nagios at psdbsd01 (~)]$ whoami > nagios > [nagios at psdbsd01 (~)]$ su - nagios -c touch > /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat > > ^^ hangs here. > > In fact, if I just try to 'su - nagios' the process hangs as well. > > Using su with other parameters works, however, so the binary seems to > function: > [nagios at psdbsd01 (~)]$ su - > Password: > [root at psdbsd01 (~)]# > > And su - nagios from the root user appears to work fine. > [root at psdbsd01 (~)]# su - nagios > [nagios at psdbsd01 (~)]$ > > But su - nagios does not (as the nagios user): > [nagios at psdbsd01 (~)]$ su - nagios > > ^^ hangs > > Sorry for all the noise. > > -- Eric Cables > > > > On Thu, Jul 1, 2010 at 2:15 PM, Eric Cables wrote: > >> Here are a few more details I've been able to gather. >> >> Here's the output of a truss on the init script w/ the start statement: >> Starting nagios:write(1,"Starting nagios:",16) = 16 >> (0x10) >> fork(0x90,0xbfbfe9f8,0xa,0x8062a35,0x0,0x0) = 55445 (0xd895) >> getpgrp(0x0,0x0,0xd895,0x0,0x2831c0c0,0x0) = 55444 (0xd894) >> wait4(0xffffffff,0xbfbfe9d8,0x2,0x0,0x213,0x1) = 55445 (0xd895) >> stat("/sbin/su",0xbfbfe6f8) ERR#2 'No such file or >> directory' >> stat("/bin/su",0xbfbfe6f8) ERR#2 'No such file or >> directory' >> stat("/usr/sbin/su",0xbfbfe6f8) ERR#2 'No such file or >> directory' >> stat("/usr/bin/su",{ mode=-r-sr-xr-x >> ,inode=14512669,size=14496,blksize=4096 }) = 0 (0x0) >> fork(0x0,0x0,0x4b156e10,0x0,0x0,0x0) = 55446 (0xd896) >> getpgrp(0x0,0x0,0xd896,0x0,0x2831c0c0,0x0) = 55444 (0xd894) >> >> ^^^ This is where it hangs. >> >> ps -ax | grep nagios shows the following: >> 55443 6 I+ 0:00.02 truss /usr/local/etc/rc.d/nagios.sh start >> 55444 6 IX 0:00.01 /bin/sh /usr/local/etc/rc.d/nagios.sh start >> 55447 6 S 0:00.07 su - nagios -c touch >> /usr/local/nagios/var/nagios.log /usr/local/nagios/var/retention.dat >> >> Here is retention.dat (not sure why it would hang here): >> -rw------- 1 nagios nagios 2008435 Jul 1 12:26 retention.dat >> >> These are really the only clues I'm able to find at this point. >> >> -- Eric Cables >> >> >> >> On Thu, Jul 1, 2010 at 2:09 PM, Eric Cables wrote: >> >>> Thanks for the reply. I ended up rebooting the box, which fixed the >>> problem temporarily, but it has resurfaced again. When I drill down into a >>> service check it says that the next check will be processed at a time that >>> has already passed. >>> >>> For example: >>> Last Check: 13:09 >>> Next Check: 13:11 >>> >>> The current time on, however, is 14:02... >>> >>> When I try to stop the process via the init script I get the following: >>> [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh stop >>> Stopping nagios: .......... >>> Warning - nagios did not exit in a timely manner >>> >>> The cmd file does not exist prior to attempting to start, after stopping, >>> but I back to the problem where Nagios will not start and instead hangs >>> indefenitely when requested to start. >>> >>> [nagios at psdbsd01 (~/var)]$ /usr/local/etc/rc.d/nagios.sh start >>> Starting nagios: <-- hangs here >>> >>> I'm not sure about the lock file, this is a FreeBSD install from source, >>> and I don't see a /var/lock directory at all. Everything Nagios related is >>> installed in /usr/local/nagios as far as I can tell. >>> >>> There doesn't seem to be anything of interest in nagios.log, as the last >>> entry just reports a notification that was sent out prior to Nagios losing >>> its functionality. >>> >>> Any other tips? I'm not exactly sure why a reboot fixed this before, but >>> any speculation is appreciated. >>> >>> -- Eric Cables >>> >>> >>> >>> On Thu, Jul 1, 2010 at 6:05 AM, Jim Avery wrote: >>> >>>> On 1 July 2010 01:18, Eric Cables wrote: >>>> > Sorry to bug the list, but my 3.2.1 installation of Nagios has all of >>>> a >>>> > sudden stopped starting. I noticed a lack of alerts over the last >>>> day, and >>>> > when I checked the GUI it indicated that the "next" scheduled check >>>> for a >>>> > service was in the past. I proceeded to stop/start Nagios, but both >>>> have >>>> > failed. >>>> > >>>> > Currently when I try to start Nagios using the init script it just >>>> hangs: >>>> > [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start >>>> > Starting nagios: >>>> > >>>> > I've enabled debug logging (-1 level, 2 verbosity), but this is all >>>> that >>>> > shows up in nagios.debug when I issue the above start request (uid >>>> 1003 = >>>> > nagios): >>>> > [1277942532.270096] [001.0] [pid=46503] drop_privileges() start >>>> > [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003 >>>> > >>>> > I can run nagios -v nagios.cfg, and it reports no errors. >>>> > >>>> > Here's the output if I run nagios nagios.cfg manually, without >>>> invoking >>>> > daemon mode: >>>> > [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg >>>> > >>>> > Nagios Core 3.2.1 >>>> > Copyright (c) 2009-2010 Nagios Core Development Team and Community >>>> > Contributors >>>> > Copyright (c) 1999-2009 Ethan Galstad >>>> > Last Modified: 03-09-2010 >>>> > License: GPL >>>> > >>>> > Website: http://www.nagios.org >>>> > >>>> > Any tips? I am not sure what the next steps are since both logging >>>> and >>>> > debugging aren't producing output, and Nagios has never taken more >>>> than a >>>> > few seconds to start in the past. >>>> >>>> What, if anything, shows up in your nagios.log file? >>>> >>>> Check you don't already have a nagios daemon running (ps -ef | grep >>>> nagios) before you start it again. >>>> >>>> Check that the lock file isn't there from the previous invocation (if >>>> you did a standard install from source tarballs the file is >>>> /var/lock/subsys/nagios). >>>> >>>> Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd >>>> doesn't exist before you start nagios. >>>> >>>> Use full pathnames when attempting to verify your config, for example: >>>> >>>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaden.bentley at gmail.com Fri Jul 2 01:56:25 2010 From: jaden.bentley at gmail.com (Jaden Bentley) Date: Thu, 1 Jul 2010 16:56:25 -0700 Subject: randomize a service's check interval Message-ID: Hello, One of the services we monitor is a web server which we've installed bot detection on. The bot detection works by looking at the standard deviation of requests from a specific host. We don't want our own monitoring to get blocked by our bot detection script, and for a variety of reasons, we don't want to deal with putting in exceptions in our bot detection system. We used to monitor with a manually written script. It was easy then: it ran in a loop, and after each check, it would sleep for 5 minutes plus another 0-300 seconds, with the specific number of seconds chosen at random. We're having trouble porting this into our shiny new nagios monitoring system. The only idea I've had so far involves changing the service check interval to something large (say 60 minutes), as a 'fallback' in case of failure, and then having the service check itself re-schedule itself by sending nagios a command. I'm not sure that would work and it seems pretty ugly and I'm not sure if it would be that easy to implement (mostly because I haven't worked with manual nagios commands before). Can anyone think of a better way? Thanks in advance, Jaden -- Jaden Bentley jaden.bentley at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Fri Jul 2 02:00:26 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 2 Jul 2010 01:00:26 +0100 Subject: Nagios hangs on startup In-Reply-To: References: Message-ID: I would guess this problem has more to do with the O/S than Nagios itself. Certainly, under Red Hat or Debian flavours of Linux, the start/stop script is called "nagios" rather than "nagios.sh" and lives under /etc/init.d . It might be worth checking what the differences are. Having said that, if I recall I had to make some changes to the standard init script to get it working nicely under Ubuntu. It's one of those areas where it would be really nice if all the distro people could agree a standard and stick to it! ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Fri Jul 2 02:12:47 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 2 Jul 2010 01:12:47 +0100 Subject: randomize a service's check interval In-Reply-To: References: Message-ID: On 2 July 2010 00:56, Jaden Bentley wrote: > Hello, > One of the services we monitor is a web server which we've installed bot > detection on. ?The bot detection works by looking at the standard deviation > of requests from a specific host. ?We don't want our own monitoring to get > blocked by our bot detection script, and for a variety of reasons, we don't > want to deal with putting in exceptions in our bot detection system. > We used to monitor with a manually written script. ?It was easy then: it ran > in a loop, and after each check, it would sleep for 5 minutes plus another > 0-300 seconds, with the specific number of seconds chosen at random. > We're having trouble porting this into our shiny new nagios monitoring > system. > The only idea I've had so far involves changing the service check interval > to something large (say 60 minutes), as a 'fallback' in case of failure, and > then having the service check itself re-schedule itself by sending nagios a > command. ?I'm not sure that would work and it seems pretty ugly and I'm not > sure if it would be that easy to implement (mostly because I haven't worked > with manual nagios commands before). > Can anyone think of a better way? You can set up the check as a passive check in Nagios. Run the check from a similar looping script like you had before to do the random timing stuff and have it send the result back to nagios either directly using the command interface or using send_nsca and have nsca submit the result to Nagios. See: http://nagios.sourceforge.net/docs/3_0/passivechecks.html and the nsca_wrapper script is useful for such stuff. See: http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA-Wrapper/details ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Fri Jul 2 08:25:55 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 2 Jul 2010 07:25:55 +0100 Subject: Postfix Mail Queue Plugin In-Reply-To: References: Message-ID: On 1 July 2010 21:50, Scott Miller wrote: > > Hello all, > > ? I'm wanting to monitor a Postifx Mail Queue on a local machine, and found the below plugin (some years ago). ?The machine is a FreeBSD 8 with Nagios 3.2.1 and Postfix 2.7.0. ?I?ve used the below plugin on a Fedora 8 machine, with no problems, but FreeBSD seems to have problems with it. ?The error reads: (Service check did not exit properly) and the logs show: Warning: Check of service 'Postfix Mail Queue' on host 'localhost' did not exit properly! > > ? I did modify just one line: > > use lib "/usr/local/nagios/libexec" ; > to > use lib "/usr/local/libexec/nagios" ; > > Anyone see what I?m doing wrong? ?I've googled and googled, but to no avail. What happens if you run the plugin script at the command line (make sure you are logged in as the nagios user first)? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaden.bentley at gmail.com Fri Jul 2 08:35:17 2010 From: jaden.bentley at gmail.com (Jaden Bentley) Date: Thu, 1 Jul 2010 23:35:17 -0700 Subject: randomize a service's check interval In-Reply-To: References: Message-ID: On Thu, Jul 1, 2010 at 5:12 PM, Jim Avery wrote: > On 2 July 2010 00:56, Jaden Bentley wrote: > > The only idea I've had so far involves changing the service check > interval > > to something large (say 60 minutes), as a 'fallback' in case of failure, > and > > then having the service check itself re-schedule itself by sending nagios > a > > command. I'm not sure that would work and it seems pretty ugly and I'm > not > > sure if it would be that easy to implement (mostly because I haven't > worked > > with manual nagios commands before). > > Can anyone think of a better way? > > You can set up the check as a passive check in Nagios. Run the check > from a similar looping script like you had before to do the random > timing stuff and have it send the result back to nagios either > directly using the command interface or using send_nsca and have nsca > submit the result to Nagios. > > See: > > http://nagios.sourceforge.net/docs/3_0/passivechecks.html > > and the nsca_wrapper script is useful for such stuff. See: > > > http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA-Wrapper/details > > > That makes a lot of sense. Don't know why I didn't think of that. Thank you very much!! -- Jaden Bentley jaden.bentley at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgius at createspace.com Fri Jul 2 17:44:01 2010 From: mgius at createspace.com (Gius, Mark) Date: Fri, 2 Jul 2010 11:44:01 -0400 Subject: randomize a service's check interval In-Reply-To: References: Message-ID: <23193A17705DD246AFFFDF09B779F56F2519B43856@EX-IAD6-B.ant.amazon.com> You'll also probably want to set up freshness checking for this service, so that if the script stops sending in data, Nagios will take steps to manually scrape the info, or restart the script. http://nagios.sourceforge.net/docs/3_0/freshness.html -Gius From: Jaden Bentley [mailto:jaden.bentley at gmail.com] Sent: Thursday, July 01, 2010 11:35 PM To: Nagios Users List Subject: Re: [Nagios-users] randomize a service's check interval On Thu, Jul 1, 2010 at 5:12 PM, Jim Avery > wrote: On 2 July 2010 00:56, Jaden Bentley > wrote: > The only idea I've had so far involves changing the service check interval > to something large (say 60 minutes), as a 'fallback' in case of failure, and > then having the service check itself re-schedule itself by sending nagios a > command. I'm not sure that would work and it seems pretty ugly and I'm not > sure if it would be that easy to implement (mostly because I haven't worked > with manual nagios commands before). > Can anyone think of a better way? You can set up the check as a passive check in Nagios. Run the check from a similar looping script like you had before to do the random timing stuff and have it send the result back to nagios either directly using the command interface or using send_nsca and have nsca submit the result to Nagios. See: http://nagios.sourceforge.net/docs/3_0/passivechecks.html and the nsca_wrapper script is useful for such stuff. See: http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA-Wrapper/details That makes a lot of sense. Don't know why I didn't think of that. Thank you very much!! -- Jaden Bentley jaden.bentley at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DStrezov at postbank.bg Mon Jul 5 17:44:02 2010 From: DStrezov at postbank.bg (Daniel E. Strezov) Date: Mon, 5 Jul 2010 18:44:02 +0300 Subject: Change max_concurrent_checks for a service? References: Message-ID: Hi all, I'm trying to find out a way to change the max_concurrent_checks parameter, but just for one particular service. The reason I need this is that this service checks the available bandwidth to a remote host by generating traffic for some given time. Running many service checks at the same time will cause the 100Mbps interface of the monitoring server to get jammed. These traffic checks run daily in a 2-hours window with 30 mins check period and under normal circumstances each of them takes about 10 secs. Cheers, Daniel. Disclaimer: This communication is confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication by mistake, please notify us immediately by responding to this email and then delete it from your system. Eurobank EFG Bulgaria AD is not responsible for, nor endorses, any opinion, recommendation, conclusion, solicitation, offer or agreement or any information contained in this communication. Eurobank EFG Bulgaria AD cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. If you suspect that the message may have been intercepted or amended, please call the sender. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Mon Jul 5 18:36:39 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 5 Jul 2010 17:36:39 +0100 Subject: Change max_concurrent_checks for a service? In-Reply-To: References: Message-ID: On 5 July 2010 16:44, Daniel E. Strezov wrote: > Hi all, > > I'm trying to find out a way to change the max_concurrent_checks > parameter, but just for one particular service. The reason I need this > is that this service checks the available bandwidth to a remote host by > generating traffic for some given time. Running many service checks at > the same time will cause the 100Mbps interface of the monitoring server > to get jammed. These traffic checks run daily in a 2-hours window with > 30 mins check period and under normal circumstances each of them takes > about 10 secs. I would run those checks from a script in cron, and have them send the results as passive checks to Nagios. That way you can guarantee at what time they will run. See: http://nagios.sourceforge.net/docs/3_0/passivechecks.html ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 6 11:25:17 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 06 Jul 2010 11:25:17 +0200 Subject: Change max_concurrent_checks for a service? In-Reply-To: References: Message-ID: <4C32F67D.60708@op5.se> On 07/05/2010 05:44 PM, Daniel E. Strezov wrote: > Hi all, > > I'm trying to find out a way to change the max_concurrent_checks > parameter, but just for one particular service. The reason I need this > is that this service checks the available bandwidth to a remote host by > generating traffic for some given time. Running many service checks at > the same time will cause the 100Mbps interface of the monitoring server > to get jammed. These traffic checks run daily in a 2-hours window with > 30 mins check period and under normal circumstances each of them takes > about 10 secs. > You want to set the parallellize_check variable to 0 for that particular check. That will cause nagios to ensure that no other checks are running at the same time, hogging the bandwidth you're trying to test. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From 13.sward.13 at gmail.com Tue Jul 6 15:17:37 2010 From: 13.sward.13 at gmail.com (Scott Ward) Date: Tue, 6 Jul 2010 08:17:37 -0500 Subject: Trouble with latency Message-ID: I am having major latency problems, 700 seconds in some cases. I am pretty sure that it is coming from ndo and mysql. Anybody have any mysql configs or changes to ndo that can help. Right now I am using the default ndo config and made some changes to allocate more memory to mysql and that's pretty much it. ~Scott Ward -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 6 15:35:12 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 06 Jul 2010 14:35:12 +0100 Subject: Trouble with latency In-Reply-To: References: Message-ID: <4C333110.5020300@flatto.net> Scott I encountered a similar issue with ndo and mysql when the tables grew to a monstrous size , and ndo had trouble doing the updates to the DB. Check the tables sizes and see if you can trim them to a more "manageable" size. Personally i truncate the tables that grow to fast every week as the data i need the ndo for is never more then a day old . Assaf Scott Ward wrote: > I am having major latency problems, 700 seconds in some cases. I am > pretty sure that it is coming from ndo and mysql. Anybody have any > mysql configs or changes to ndo that can help. Right now I am using > the default ndo config and made some changes to allocate more memory > to mysql and that's pretty much it. -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From 13.sward.13 at gmail.com Tue Jul 6 15:37:24 2010 From: 13.sward.13 at gmail.com (Scott Ward) Date: Tue, 6 Jul 2010 08:37:24 -0500 Subject: Trouble with latency In-Reply-To: <4C333110.5020300@flatto.net> References: <4C333110.5020300@flatto.net> Message-ID: The problem with that is that we need to retain the information for at least 6 months possibly more. ~Scott Ward On Tue, Jul 6, 2010 at 8:35 AM, Assaf Flatto wrote: > > Scott > > I encountered a similar issue with ndo and mysql when the tables grew to > a monstrous size , and ndo had trouble doing the updates to the DB. > > Check the tables sizes and see if you can trim them to a more > "manageable" size. > > Personally i truncate the tables that grow to fast every week as the > data i need the ndo for is never more then a day old . > > Assaf > > Scott Ward wrote: > > I am having major latency problems, 700 seconds in some cases. I am > > pretty sure that it is coming from ndo and mysql. Anybody have any > > mysql configs or changes to ndo that can help. Right now I am using > > the default ndo config and made some changes to allocate more memory > > to mysql and that's pretty much it. > > > -- > Never,Ever Cut A Deal With a Dragon > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dsurovtsev at yahoo.com Tue Jul 6 15:57:20 2010 From: dsurovtsev at yahoo.com (dmitry surovtsev) Date: Tue, 6 Jul 2010 06:57:20 -0700 (PDT) Subject: Is it possible to view MPLS layer 2 and/or 3 channels Message-ID: <130768.43837.qm@web30204.mail.mud.yahoo.com> Hi all, For network monitoring is it possible to view MPLS layer 2 and/or 3 channels with Nagios (like SMARTS, very commercial product? VPNs? What can we offer in return? TIA, Dima ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Tue Jul 6 16:58:28 2010 From: honia2002 at hotmail.com (Honia A) Date: Tue, 6 Jul 2010 10:58:28 -0400 Subject: Nagios share directory doesn't exist Message-ID: Hi all, I installed Nagios via yum using this instruction: http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 And next I would like to install NagVis: http://www.nagvis.org/docs/1.2/installation_instructions But I can't seem to find Nagios share directory. I understand if I had build Nagios via the source, the share directory would have been in /usr/local/nagios/share but now that I have installed it via yum, where will the share directory be? Thanks, h _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 herb-j.com Tue Jul 6 16:40:38 2010 From: nagios at herb-j.com (Herb J.) Date: Tue, 06 Jul 2010 10:40:38 -0400 Subject: Trouble with latency In-Reply-To: References: <4C333110.5020300@flatto.net> Message-ID: <4C334066.7060109@herb-j.com> You may wish to periodically off-load the historical data to a second database and clean up the primary one periodically. Having a smaller database would help immensely when NDO periodically truncates old data. Also, make sure that you have the proper database table indexes created. Also consider converting the tables to InnoDB. The default install of NDO doesn't have things fully optimized as well as it should be for large installations. Missing indexes would also cause MySQL to hang while searching the tables for old data to remove, and with MyISAM the table would be locked during the delete. On 07/06/2010 09:37 AM, Scott Ward wrote: > The problem with that is that we need to retain the information for at > least 6 months possibly more. > > ~Scott Ward > > > On Tue, Jul 6, 2010 at 8:35 AM, Assaf Flatto > wrote: > > > Scott > > I encountered a similar issue with ndo and mysql when the tables > grew to > a monstrous size , and ndo had trouble doing the updates to the DB. > > Check the tables sizes and see if you can trim them to a more > "manageable" size. > > Personally i truncate the tables that grow to fast every week as the > data i need the ndo for is never more then a day old . > > Assaf > > Scott Ward wrote: > > I am having major latency problems, 700 seconds in some cases. I am > > pretty sure that it is coming from ndo and mysql. Anybody have any > > mysql configs or changes to ndo that can help. Right now I am using > > the default ndo config and made some changes to allocate more memory > > to mysql and that's pretty much it. > > > -- > Never,Ever Cut A Deal With a Dragon > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- > http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 17:48:27 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 16:48:27 +0100 Subject: Change max_concurrent_checks for a service? In-Reply-To: <4C32F67D.60708@op5.se> References: <4C32F67D.60708@op5.se> Message-ID: On 6 July 2010 10:25, Andreas Ericsson wrote: > On 07/05/2010 05:44 PM, Daniel E. Strezov wrote: >> Hi all, >> >> I'm trying to find out a way to change the max_concurrent_checks >> parameter, but just for one particular service. The reason I need this >> is that this service checks the available bandwidth to a remote host by >> generating traffic for some given time. Running many service checks at >> the same time will cause the 100Mbps interface of the monitoring server >> to get jammed. These traffic checks run daily in a 2-hours window with >> 30 mins check period and under normal circumstances each of them takes >> about 10 secs. >> > > You want to set the parallellize_check variable to 0 for that particular > check. That will cause nagios to ensure that no other checks are running > at the same time, hogging the bandwidth you're trying to test. I think the parallelize_check directive for services is deprecated in Nagios 3. Even if it does still work in version 3 Nagios, I would question whether it is desireable to have Nagios not run any other checks at all for ten whole seconds while one of these checks is run, especially if there are quite a few of them. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 17:54:39 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 16:54:39 +0100 Subject: Nagios share directory doesn't exist In-Reply-To: References: Message-ID: On 6 July 2010 15:58, Honia A wrote: > Hi all, > > I installed Nagios via yum using this instruction: > http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 > > And next I would like to install NagVis: > http://www.nagvis.org/docs/1.2/installation_instructions > But I can't seem to find Nagios share directory. > > I understand if I had build Nagios via the source, the share directory would > have been in /usr/local/nagios/share but now that I have installed it via > yum, where will the share directory be? > > Thanks, > h Take a look in cgi.cfg in your Nagios config directory at the "physical_html_path" directive. That will show you where the equivalent directory for your install is. If you are contemplating installing a few third-party add-ons for Nagios then I strongly recommend you start from a standard install from sources. It can be a right pain trying to work out how to install stuff in a non-standard way otherwise. I found this out myself too from bitter experience! hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 6 17:55:42 2010 From: ae at op5.se (Andreas Ericsson) Date: Tue, 06 Jul 2010 17:55:42 +0200 Subject: Change max_concurrent_checks for a service? In-Reply-To: References: <4C32F67D.60708@op5.se> Message-ID: <4C3351FE.6060402@op5.se> On 07/06/2010 05:48 PM, Jim Avery wrote: > On 6 July 2010 10:25, Andreas Ericsson wrote: >> On 07/05/2010 05:44 PM, Daniel E. Strezov wrote: >>> Hi all, >>> >>> I'm trying to find out a way to change the max_concurrent_checks >>> parameter, but just for one particular service. The reason I need this >>> is that this service checks the available bandwidth to a remote host by >>> generating traffic for some given time. Running many service checks at >>> the same time will cause the 100Mbps interface of the monitoring server >>> to get jammed. These traffic checks run daily in a 2-hours window with >>> 30 mins check period and under normal circumstances each of them takes >>> about 10 secs. >>> >> >> You want to set the parallellize_check variable to 0 for that particular >> check. That will cause nagios to ensure that no other checks are running >> at the same time, hogging the bandwidth you're trying to test. > > > > I think the parallelize_check directive for services is deprecated in Nagios 3. > It isn't, and probably never will be. > Even if it does still work in version 3 Nagios, I would question > whether it is desireable to have Nagios not run any other checks at > all for ten whole seconds while one of these checks is run, especially > if there are quite a few of them. > Well, if you want to do a hard test on available bandwidth you really have to send a lot of data. Contaminating the result of one test with data from other tests running at the same time makes this particular test completely useless. So either scrap that check, make it non-parallellizable, or just live with the fact that the results of it may be contaminated. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 18:03:43 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 17:03:43 +0100 Subject: Trouble with latency In-Reply-To: <4C334066.7060109@herb-j.com> References: <4C333110.5020300@flatto.net> <4C334066.7060109@herb-j.com> Message-ID: On 6 July 2010 15:40, Herb J. wrote: > You may wish to periodically off-load the historical data to a second > database and clean up the primary one periodically. Having a smaller > database would help immensely when NDO periodically truncates old data. > > Also, make sure that you have the proper database table indexes created. > Also consider converting the tables to InnoDB. The default install of NDO > doesn't have things fully optimized as well as it should be for large > installations. Missing indexes would also cause MySQL to hang while > searching the tables for old data to remove, and with MyISAM the table would > be locked during the delete. Amen to all that. Another trick which seems to make a huge difference was to create a file "/etc/mysql/conf/conf.d/nagios.cnf containing: [mysqld] innodb_flush_log_at_trx_commit = 2 I'm not a MySQL dba so can't explain what this does precisely. Suffice it to say you sacrifice a bit of reliability for some speed. Anyone looking to implement this change is recommended to read up on what it is before doing it. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Tue Jul 6 18:20:08 2010 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Tue, 6 Jul 2010 12:20:08 -0400 Subject: Are NSClient++ and NRPE mutually exclusive? Message-ID: I've got NSClient++ installed on a number of Windows XP and W2K servers reporting on such things as disk utilization, memory, load. This all works fine. I'd like to take it to the next level defining my own external scripts. But the examples all show using the command, check_nrpe on the linux/nagios side. Can't they be run under check_nt (something like $USER1$/check_nt -p 12489 -H $HOSTADDRESS$ -s mysecret -v check_something) Or must I also install check_nrpe on the linux side? And if so, do I need to install the windows nrpe as well? On the Windows side, the config file is basically the default with the following additions to the "[External Scripts]" section: check_something=C:\myscripts\check_something.vbs check_test=C:\myscripts\psloggedon.exe TIA ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 18:21:38 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 17:21:38 +0100 Subject: Change max_concurrent_checks for a service? In-Reply-To: <4C3351FE.6060402@op5.se> References: <4C32F67D.60708@op5.se> <4C3351FE.6060402@op5.se> Message-ID: On 6 July 2010 16:55, Andreas Ericsson wrote: > On 07/06/2010 05:48 PM, Jim Avery wrote: >> I think the parallelize_check directive for services is deprecated in Nagios 3. >> > > It isn't, and probably never will be. That's not what the Changelog file from the source tarball for nagios 3.2.1 says: * Service check logic changes: - 'parallelize' option in service definitions deprecated/no longer used - Added cached_service_check_horizon option for enabling use of cached service check results - Added enable_predictive_service_dependency_checks for enabling predictive checks of dependent services And it's no longer listed in the v3 documentation at: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service but was in version 2: http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service I still reckon it's better to run such a check from an external script and submit the results passively to Nagios. If contamination is a problem you can run the checks in serial from the same script and run them on a clean server to avoid clashes with anything else which might be on the local lan. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven at nierlein.de Tue Jul 6 18:29:46 2010 From: sven at nierlein.de (Sven Nierlein) Date: Tue, 06 Jul 2010 18:29:46 +0200 Subject: Change max_concurrent_checks for a service? In-Reply-To: <4C3351FE.6060402@op5.se> References: <4C32F67D.60708@op5.se> <4C3351FE.6060402@op5.se> Message-ID: <4C3359FA.30403@nierlein.de> Hi, On 06.07.2010 17:55, Andreas Ericsson wrote: >> I think the parallelize_check directive for services is deprecated in Nagios 3. >> >> > It isn't, and probably never will be. > He is right: html/docs/whatsnew.html:
  • The parallelize directive in service definitions is now deprecated and no longer used. All service checks are run in parallel in Nagios 3.
  • I also checked the source, it isn't used anywhere. Regards, Sven ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Tue Jul 6 21:23:05 2010 From: honia2002 at hotmail.com (Honia A) Date: Tue, 6 Jul 2010 15:23:05 -0400 Subject: Nagios share directory doesn't exist In-Reply-To: References: , Message-ID: Hi Jim, Thanks for your reply. You're right, I am going to start fresh and this time will install it from the source. I did a rpm -e nagios and it removed the package but when I do a find / -name nagios, it finds the followings: /etc/nagios /var/log/nagios /var/nagios /home/username/nagvis-1.5/uifx/src/modules/gmap/domain/nagios /usr/lib/nagios /usr/share/nagios /usr/share/nagios/nagvis/uifx/src/modules/gmap/domain/nagios Should I manually delete those? Also, can you please point me to a step by step instruction on how to correctly install nagios from the source? Thanks in advance, h > Date: Tue, 6 Jul 2010 16:54:39 +0100 > From: jim at jimavery.me.uk > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios share directory doesn't exist > > On 6 July 2010 15:58, Honia A wrote: > > Hi all, > > > > I installed Nagios via yum using this instruction: > > http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 > > > > And next I would like to install NagVis: > > http://www.nagvis.org/docs/1.2/installation_instructions > > But I can't seem to find Nagios share directory. > > > > I understand if I had build Nagios via the source, the share directory would > > have been in /usr/local/nagios/share but now that I have installed it via > > yum, where will the share directory be? > > > > Thanks, > > h > > > Take a look in cgi.cfg in your Nagios config directory at the > "physical_html_path" directive. That will show you where the > equivalent directory for your install is. > > If you are contemplating installing a few third-party add-ons for > Nagios then I strongly recommend you start from a standard install > from sources. It can be a right pain trying to work out how to > install stuff in a non-standard way otherwise. I found this out > myself too from bitter experience! > > hth, > > Jim > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 23:01:41 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 22:01:41 +0100 Subject: Are NSClient++ and NRPE mutually exclusive? In-Reply-To: References: Message-ID: On 6 July 2010 17:20, dave stern - e-mail.pluribus.unum wrote: > I've got NSClient++ installed on a number of Windows XP and > W2K servers reporting on such things as disk utilization, memory, > load. This all works fine. I'd like to take it to the next level defining > my own external scripts. But the examples all show using the > command, check_nrpe on the linux/nagios side. > > Can't they be run under check_nt > (something like $USER1$/check_nt -p 12489 -H $HOSTADDRESS$ -s mysecret > -v check_something) > Or must I also install check_nrpe on the linux side? And if so, do I need > to install the windows nrpe as well? > > On the Windows side, the config file is basically the default with the > following additions to the > "[External Scripts]" section: > > check_something=C:\myscripts\check_something.vbs > check_test=C:\myscripts\psloggedon.exe > > TIA "nrpe" stands for "Nagios Remote Plugin Executor" or something like that. NSClient++ as well as doing lots of other things will listen for and (if configured to do so) respond to nrpe requests. In Nagios, the "check_nrpe" plugin is used to request remote execution of a plugin and to receive the result. Put simply, if you want to run a plugin and get the result but the plugin is actually run on the remote (in this case Windows) server rather than the local Nagios server you use nrpe. You don't need to install the nrpe daemon on the Nagios side, but you do need to use the check_nrpe plugin to query the other systems. The relevant page in the documentation is http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe but to be honest if you want a really good head start in understanding Nagios I recommend the book "Nagios" by Wolfgang Barth published by NoStarch Press. No doubt there are other good books around and I'm not up to date with the latest but I found that one really helpful myself. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Tue Jul 6 23:22:44 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 6 Jul 2010 22:22:44 +0100 Subject: Nagios share directory doesn't exist In-Reply-To: References: Message-ID: On 6 July 2010 20:23, Honia A wrote: > Hi Jim, > > Thanks for your reply. You're right, I am going to start?fresh and this time > will install it from the source. > > I did a rpm -e nagios and it removed the package but when I do a find / > -name nagios, it finds the followings: > > /etc/nagios > /var/log/nagios > /var/nagios > /home/username/nagvis-1.5/uifx/src/modules/gmap/domain/nagios > /usr/lib/nagios > /usr/share/nagios > /usr/share/nagios/nagvis/uifx/src/modules/gmap/domain/nagios > > > Should I manually delete those? So long as you are pretty sure you don't need them yes you could no problem. Your main nagios config will be what's under /etc/nagios so if you have set up anything you want to keep you might want to take a backup of that. > Also, can you please point me to a step by step instruction on how to > correctly install nagios from the source? I would think the Fedora quick start would be pretty similar to Centos so in the official docs see http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html Alternatively, google for a Centos-specific guide for example: http://www.kernelhardware.org/install-nagios-on-centos-5/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raanders at cyber-office.net Tue Jul 6 23:58:43 2010 From: raanders at cyber-office.net (Roderick A. Anderson) Date: Tue, 06 Jul 2010 14:58:43 -0700 Subject: sysv init script fails to reload. Message-ID: <4C33A713.8050404@cyber-office.net> Sorry for a fairly lame question but I mostly deal with the monitoring box when things go wrong or something new is needed. This is: CentOS 5.5 nagios 3.2.1-4.el5.rf # service nagios reload nagios (pid 24630) is running... Reloading nagios: [FAILED] and ... # service nagios restart Stopping nagios: [FAILED] Starting nagios: # service nagios status nagios (pid 24630) is running.. This is an upgrade of Nagios from 3.0.6 done the beginning of June. We're pretty sure other changes that required a reload have been since then. Any clues? Color me puzzled, Rod -- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyarusso at nagios.com Wed Jul 7 05:11:14 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 06 Jul 2010 17:11:14 -1000 Subject: sysv init script fails to reload. In-Reply-To: <4C33A713.8050404@cyber-office.net> References: <4C33A713.8050404@cyber-office.net> Message-ID: <4C33F052.2000100@nagios.com> Most likely there's a syntax error in your configuration somewhere. Running the config validation ('nagios -v pathtomainconfigfile') should give you more information. -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raanders at cyber-office.net Wed Jul 7 00:21:21 2010 From: raanders at cyber-office.net (Roderick A. Anderson) Date: Tue, 06 Jul 2010 15:21:21 -0700 Subject: sysv init script fails to reload. In-Reply-To: <4C33F052.2000100@nagios.com> References: <4C33A713.8050404@cyber-office.net> <4C33F052.2000100@nagios.com> Message-ID: <4C33AC61.9050503@cyber-office.net> On 07/06/2010 08:11 PM, Tony Yarusso wrote: > Most likely there's a syntax error in your configuration somewhere. > Running the config validation ('nagios -v pathtomainconfigfile') should > give you more information. > Wish it was that simple. :-) There are a pile of warnings for hosts without services using both 'nagios -v $NAGIOSPATH/nagios.cfg' and 'service nagios configtest' but that is all. Rod -- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyarusso at nagios.com Wed Jul 7 05:30:18 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 06 Jul 2010 17:30:18 -1000 Subject: sysv init script fails to reload. In-Reply-To: <4C33AC61.9050503@cyber-office.net> References: <4C33A713.8050404@cyber-office.net> <4C33F052.2000100@nagios.com> <4C33AC61.9050503@cyber-office.net> Message-ID: <4C33F4CA.4050101@nagios.com> On 7/6/2010 12:21 PM, Roderick A. Anderson wrote: > Wish it was that simple. :-) There are a pile of warnings for hosts > without services using both 'nagios -v $NAGIOSPATH/nagios.cfg' and > 'service nagios configtest' but that is all. > Anything interesting in the nagios.log file or /var/log/messages then? -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raanders at cyber-office.net Wed Jul 7 06:13:22 2010 From: raanders at cyber-office.net (Roderick A. Anderson) Date: Tue, 06 Jul 2010 21:13:22 -0700 Subject: sysv init script fails to reload. In-Reply-To: <4C33F4CA.4050101@nagios.com> References: <4C33A713.8050404@cyber-office.net> <4C33F052.2000100@nagios.com> <4C33AC61.9050503@cyber-office.net> <4C33F4CA.4050101@nagios.com> Message-ID: <4C33FEE2.70006@cyber-office.net> On 07/06/2010 08:30 PM, Tony Yarusso wrote: > On 7/6/2010 12:21 PM, Roderick A. Anderson wrote: >> Wish it was that simple. :-) There are a pile of warnings for hosts >> without services using both 'nagios -v $NAGIOSPATH/nagios.cfg' and >> 'service nagios configtest' but that is all. >> > > Anything interesting in the nagios.log file or /var/log/messages then? Looked but didn't see anything 'interesting' but the defaults for logging look to be ***everything*** and going to syslog also. I started tuning it down a bit but "reload" doesn't work :-) so I'll have to kill -15 the pid to get the logging down to where I can see anything. I also need to look at the init script a little closer to see if there was some change during the upgrade (3.0.6 - 3.2.1) that I'm not seeing. Thanks to all for your suggestions. I got pulled sideways (right after posting) so have to get back to it again. I was hoping this was a problem that others had seen (I've only been on the list about a year). Looks like it's a dig-deeper thing. Rod -- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mathias.adler at rebtel.com Wed Jul 7 08:41:37 2010 From: mathias.adler at rebtel.com (Mathias Adler) Date: Wed, 7 Jul 2010 08:41:37 +0200 Subject: Nagios notifications Message-ID: <4B27155520357F40B66920DD4F83715A0118D12854@reb-se-srv-19> Hi All, I'm looking for a way to use different notification groups at state WARNING and CRITICAL in Nagios. Basically I don't want wake people up in the middle of the night for a warning, but I do want that for a critical alarm I can't find a way of make different between crit and warn within a service?! BR Mathias Mathias Adler Infrastructure Manager Rebtel Networks AB Augustendalsv?gen 19, 7th floor Box 1182 131 27 Nacka Strand Sweden Mobile: +46 70 667 47 41 Fax: +46 8 716 18 20 mathias.adler at rebtel.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaden.bentley at gmail.com Wed Jul 7 09:08:49 2010 From: jaden.bentley at gmail.com (Jaden Bentley) Date: Wed, 7 Jul 2010 00:08:49 -0700 Subject: Nagios notifications In-Reply-To: <4B27155520357F40B66920DD4F83715A0118D12854@reb-se-srv-19> References: <4B27155520357F40B66920DD4F83715A0118D12854@reb-se-srv-19> Message-ID: On Tue, Jul 6, 2010 at 11:41 PM, Mathias Adler wrote: > Hi All, > I'm looking for a way to use different notification groups at state WARNING > and CRITICAL in Nagios. > > Basically I don't want wake people up in the middle of the night for a > warning, but I do want that for a critical alarm > > I can't find a way of make different between crit and warn within a > service?! > > BR > Mathias > > > > One way is to create multiple contacts for the same people. Using a combination of service_notification_options to manage what types of notifications people get and service_notification_period and host_notification_period you should be able to get an behaviour that meets your needs. -- Jaden Bentley jaden.bentley at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Wed Jul 7 09:31:41 2010 From: mmelin at gmail.com (Martin Melin) Date: Wed, 7 Jul 2010 09:31:41 +0200 Subject: Nagios notifications In-Reply-To: <4B27155520357F40B66920DD4F83715A0118D12854@reb-se-srv-19> References: <4B27155520357F40B66920DD4F83715A0118D12854@reb-se-srv-19> Message-ID: On Wed, Jul 7, 2010 at 8:41 AM, Mathias Adler wrote: > Hi All, > I'm looking for a way to use different notification groups at state WARNING > and CRITICAL in Nagios. > > Basically I don't want wake people up in the middle of the night for a > warning, but I do want that for a critical alarm > > I can't find a way of make different between crit and warn within a > service?! IMHO, the "correct" way is to use escalations with escalation_period and escalation_options to specify different behavior during the night. You can have two escalation chains, one that is in effect for weeknights and weekends and one that is in effect during normal business hours. You can also specify that a certain contact should only be notified for certain states, but then you'd have to have two contact definitions. This would be a good idea if you have a dedicated "on call" email and/or phone number. Best regards Martin Melin ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan.wheeler at stfc.ac.uk Wed Jul 7 16:04:08 2010 From: jonathan.wheeler at stfc.ac.uk (jonathan.wheeler at stfc.ac.uk) Date: Wed, 7 Jul 2010 15:04:08 +0100 Subject: orphaned service and hosts checks Message-ID: We have a large configuration (32823 services across 1377 hosts) which uses distributed monitoring (master and slave servers). Since I have merged checks from 2 old slave servers to a single new, much more powerful slave server, the new slave server has been logging a large number of orphaned service and host checks. For example, of 24347 lines in the current log file, 4489 refer to orphaned service checks and 808 refer to host checks. The slave server runs 17985 checks for 732 hosts. Does anyone know what sort of problem causes orphaned checks ? Is there any tuning that I can apply to solve this problem ? Running command "nagios -s /etc/nagios/nagios.cfg" does not suggest any configuration changes. My servers run Scientific Linux version 5.2 (SL 5 is a recompiled version of Redhat 5). Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory -- Scanned by iCritical. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 smetj.net Wed Jul 7 17:22:13 2010 From: nagios at smetj.net (Jelle Smet) Date: Wed, 07 Jul 2010 17:22:13 +0200 Subject: =?utf-8?q?Availability_report_excluding_scheduled_?= =?utf-8?q?downtime=3F?= Message-ID: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> Hi List, How can I create an availability report of a hostgroup which does NOT take the scheduled downtime of the individual hosts into account? Cheers, -- Jelle Smet http://www.smetj.net ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Thu Jul 8 00:39:17 2010 From: ecables at gmail.com (Eric Cables) Date: Wed, 7 Jul 2010 15:39:17 -0700 Subject: Availability report excluding scheduled downtime? In-Reply-To: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> References: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> Message-ID: I've been wondering this myself. -- Eric Cables On Wed, Jul 7, 2010 at 8:22 AM, Jelle Smet wrote: > > Hi List, > > > > How can I create an availability report of a hostgroup which does NOT take > > the scheduled downtime of the individual hosts into account? > > > > Cheers, > > > > -- > > Jelle Smet > > http://www.smetj.net > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Thu Jul 8 05:00:54 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Wed, 7 Jul 2010 21:00:54 -0600 Subject: setting ENV for checks in commands.cfg Message-ID: <947502DA-DD0C-4354-9B0B-564D74EE2131@stubhub.com> Hi, I need to set up my checks in command.cfg to source an ENV file before running a command however I am not sure how I can do this since the semicolon (;) is designated as the comment sign. For instance, I want to do something like this: # check_oracle_login define command{ command_name check_oracle_login command_line . $USER20$/oracle_env_$ARG1$; $USER1$/solaris-libexec/check_oracle --tns $ARG1$ } Anyone know how I can do this? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Thu Jul 8 05:17:00 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Thu, 8 Jul 2010 13:17:00 +1000 Subject: setting ENV for checks in commands.cfg In-Reply-To: <947502DA-DD0C-4354-9B0B-564D74EE2131@stubhub.com> References: <947502DA-DD0C-4354-9B0B-564D74EE2131@stubhub.com> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3F5948790A@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Litwin, Matthew [mailto:mlitwin at stubhub.com] > Sent: Thursday, 8 July 2010 13:01 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] setting ENV for checks in commands.cfg > > Hi, I need to set up my checks in command.cfg to source an ENV file > before running a command however I am not sure how I can do this since > the semicolon (;) is designated as the comment sign. For instance, I > want to do something like this: > > # check_oracle_login > define command{ > command_name check_oracle_login > command_line . $USER20$/oracle_env_$ARG1$; $USER1$/solaris- > libexec/check_oracle --tns $ARG1$ > } > > Anyone know how I can do this? Write a small wrapper script. Have $ARG1$ be passed. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Thu Jul 8 05:11:49 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Wed, 7 Jul 2010 21:11:49 -0600 Subject: setting ENV for checks in commands.cfg In-Reply-To: <947502DA-DD0C-4354-9B0B-564D74EE2131@stubhub.com> References: <947502DA-DD0C-4354-9B0B-564D74EE2131@stubhub.com> Message-ID: <853F7A02-F74B-4631-8EA6-93E883B4FD57@stubhub.com> Never mind, the documentation has this little workaround: NOTE: You may not include a semicolon (;) in the command_line directive, because everything after it will be ignored as a config file comment. You can work around this limitation by setting one of the $USER$ macros in your resource file to a semicolon and then referencing the appropriate $USER$ macro in the command_line directive in place of the semicolon. On Jul 7, 2010, at 8:00 PM, Litwin, Matthew wrote: Hi, I need to set up my checks in command.cfg to source an ENV file before running a command however I am not sure how I can do this since the semicolon (;) is designated as the comment sign. For instance, I want to do something like this: # check_oracle_login define command{ command_name check_oracle_login command_line . $USER20$/oracle_env_$ARG1$; $USER1$/solaris-libexec/check_oracle --tns $ARG1$ } Anyone know how I can do this? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cosmin.neagu at omnilogic.ro Thu Jul 8 09:12:07 2010 From: cosmin.neagu at omnilogic.ro (Cosmin Neagu) Date: Thu, 08 Jul 2010 10:12:07 +0300 Subject: Checking DHCP In-Reply-To: <96D3C579-A4A8-4C58-9D8A-44AF19191993@ena.com> References: <96D3C579-A4A8-4C58-9D8A-44AF19191993@ena.com> Message-ID: <4C357A47.2040501@omnilogic.ro> Hi All, I now this is an old post, but i have a problem in monitoring a dhcp server. Nagios is installed on a machine that is not on the same lan as the dhcp server. After reading the help, i tried something like this: cosmin at cacti-1:/usr/local/nagios/libexec> *./check_dhcp -v -u -s 10.0.0.2 -i eth1* Requested server address: 10.0.0.2 DHCP socket: 3 Hardware address: 00:50:56:a1:4f:bf Pretending to be relay client 192.168.53.250 DHCPDISCOVER to 10.0.0.2 port 67 DHCPDISCOVER XID: 96024288 (0x5B936E0) DHCDISCOVER ciaddr: 0.0.0.0 DHCDISCOVER yiaddr: 0.0.0.0 DHCDISCOVER siaddr: 0.0.0.0 DHCDISCOVER giaddr: 192.168.53.250 send_dhcp_packet result: 548 No (more) data received (nfound: 0) Result=ERROR Total responses seen on the wire: 0 Valid responses for this machine: 0 CRITICAL: No DHCPOFFERs were received. This CRITICAL answer is given even if i can see the server giving an ip address from the same class as nagios ip (192.168.53.250). I even see dhcp binding on the server: R1#sh ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.53.1 0050.56a1.4fbf Jul 08 2010 09:44 AM Automatic Now, the problem is that the dhcp server is giving up addreses not in the same subnet as nagios ip address. So if i try something like this: cosmin at cacti-1:/usr/local/nagios/libexec> *./check_dhcp -v -u -s 10.0.0.2 -r 1.0.0.8 -i eth1* Requested server address: 10.0.0.2 DHCP socket: 3 Hardware address: 00:50:56:a1:4f:bf Pretending to be relay client 192.168.53.250 DHCPDISCOVER to 10.0.0.2 port 67 DHCPDISCOVER XID: 1649874259 (0x62571553) DHCDISCOVER ciaddr: 0.0.0.0 DHCDISCOVER yiaddr: 0.0.0.0 DHCDISCOVER siaddr: 0.0.0.0 DHCDISCOVER giaddr: 192.168.53.250 send_dhcp_packet result: 548 No (more) data received (nfound: 0) Result=ERROR Total responses seen on the wire: 0 Valid responses for this machine: 0 CRITICAL: No DHCPOFFERs were received. where 10.0.0.2 is the ip of dhcp server and 1.0.0.8 an address from a pool configured on the server, i receive no reply. The server respond like: *Jul 8 10:04:15.783: DHCPD: there is no address pool for 192.168.53.250 //this is the ip address of nagios. So from what i see on the server: DHCPD: DHCPDISCOVER received from client 0050.56a1.4fbf through relay 192.168.53.250 DHCPD: Seeing if there is an internally specified pool class DHCPD: there is no address pool for 192.168.53.250 I thing that nagios sets the relay agent ip address in dhcp header to be the ip address of the interface from where the dhcpdiscover is sent. Is there any posibilities to control this, i mean to put in that header whatever ip address i want for dhcp relay agent? Otherwise, i thing nagios cand only monitor dhcp servers on the same lan/subnet. and i realy need a remote solution for monitoring. Thx for help. Cosmin Neagu NOC Team Leader Str. I. G. Duca nr 36 Otopeni, Judetul Ilfov, 075100 Romania Tel: 021 303 3159 / 0732 669 193 www.omnilogic.ro Marc Powell wrote: > On Jan 14, 2010, at 7:33 AM, Eduardo Barreto wrote: > > >> Hi All, >> >> Does anybody knows or have a clue on how to check a dhcp server, I've tried direct no success and then I'm trying to monitor it through nrpe. >> I'll appreciate any help >> > > There's a check_dhcp plugin in the standard plugins to verify that a DHCP server his handing out leases. You need to run it from a host on the LAN that your DHCP server answers on. In most cases you cannot run this plugin on the DHCP server itself as they are most often configured *not* to give answers to themselves. If you're limited to running something on the DHCP server itself, you'll likely only be able to look to see if the DHCP process/service is running. How that's done depends on the OS of the server and how you can get to it from the Nagios machine. > > -- > Marc > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From komuch at gmail.com Thu Jul 8 10:28:04 2010 From: komuch at gmail.com (Komuch) Date: Thu, 8 Jul 2010 10:28:04 +0200 Subject: Nagios Master - Slave Message-ID: Hi, This is my first time ;) Can anyone tell me something about distributed monitoring ? We have two type of networks - public and corporate network. In corporate network(s) we have a lot of devices which aren't monitored now... Nagios server is located in public network and can't be connected to any corporate network (i thought i can add another NIC to server but it is impossible for security reasons) So... my question is... is it possible to run one or more another nagios as a slave (one of each corporate network) which can send information from all tests to master ? Thanks for help Regards P. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 8 10:52:18 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 08 Jul 2010 09:52:18 +0100 Subject: Nagios Master - Slave In-Reply-To: References: Message-ID: <4C3591C2.9000609@flatto.net> Komuch wrote: > Hi, > > This is my first time ;) > > Can anyone tell me something about distributed monitoring ? > > We have two type of networks - public and corporate network. > > In corporate network(s) we have a lot of devices which aren't > monitored now... > > Nagios server is located in public network and can't be connected to > any corporate network (i thought i can add another NIC to server but > it is impossible for security reasons) > > So... my question is... is it possible to run one or more another > nagios as a slave (one of each corporate network) which can send > information from all tests to master ? > > Thanks for help > > Regards > > P. The short answer is yes , but you will have to have two ports open to allow access for the results to be send. read this chapter in the nagios documentation and that should give you a more detailed explanation on how it is done . http://nagios.sourceforge.net/docs/3_0/distributed.html -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 8 11:28:07 2010 From: ae at op5.se (Andreas Ericsson) Date: Thu, 08 Jul 2010 11:28:07 +0200 Subject: Availability report excluding scheduled downtime? In-Reply-To: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> References: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> Message-ID: <4C359A27.7060100@op5.se> On 07/07/2010 05:22 PM, Jelle Smet wrote: > > Hi List, > > > > How can I create an availability report of a hostgroup which does NOT take > > the scheduled downtime of the individual hosts into account? > Try the reporting tool in Ninja. It can do what you want. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 8 12:16:02 2010 From: holger at CIS.FU-Berlin.DE (Holger =?iso-8859-1?Q?Wei=DF?=) Date: Thu, 8 Jul 2010 12:16:02 +0200 Subject: Checking DHCP In-Reply-To: <4C357A47.2040501@omnilogic.ro> References: <96D3C579-A4A8-4C58-9D8A-44AF19191993@ena.com> <4C357A47.2040501@omnilogic.ro> Message-ID: <20100708101602.GS61645@CIS.FU-Berlin.DE> * Cosmin Neagu [2010-07-08 10:12]: > So from what i see on the server: > DHCPD: DHCPDISCOVER received from client 0050.56a1.4fbf through relay > 192.168.53.250 > DHCPD: Seeing if there is an internally specified pool class > DHCPD: there is no address pool for 192.168.53.250 Why can't you simply add an entry for 192.168.53.250 to the DHCP server configuration? > I thing that nagios sets the relay agent ip address in dhcp header to > be the ip address of the interface from where the dhcpdiscover is > sent. Is there any posibilities to control this, i mean to put in > that header whatever ip address i want for dhcp relay agent? No, because the server uses that IP address for the reply. That is, if you fake the field in question ("giaddr"), you won't get a response. > Otherwise, i thing nagios cand only monitor dhcp servers on the same > lan/subnet. check_dhcp's "-u" option works just fine if the server is configured appropriately. (And of course, you could use a "real" DHCP relay agent instead of check_dhcp's "-u" option.) Holger ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Jul 8 12:57:28 2010 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 8 Jul 2010 03:57:28 -0700 Subject: Nagios Master - Slave In-Reply-To: References: Message-ID: Yes, you can do that. Look for distributed monitoring in the documentation. It's fairly simple to set up. Keep in mind that if you declare the public Nagios server to be the master, that means that information leaves the corporate network; you may not want to do that. You could also declare the corporate Nagios server to be the master. In that case, the public server would send information to the corporate one. Or you could keep the two completely separate. From: Komuch [mailto:komuch at gmail.com] Sent: Thursday, July 08, 2010 1:28 AM To: Nagios Mailinglist Subject: [Nagios-users] Nagios Master - Slave Hi, This is my first time ;) Can anyone tell me something about distributed monitoring ? We have two type of networks - public and corporate network. In corporate network(s) we have a lot of devices which aren't monitored now... Nagios server is located in public network and can't be connected to any corporate network (i thought i can add another NIC to server but it is impossible for security reasons) So... my question is... is it possible to run one or more another nagios as a slave (one of each corporate network) which can send information from all tests to master ? Thanks for help Regards P. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Thu Jul 8 13:52:32 2010 From: a31modela at hotmail.com (steve f) Date: Thu, 8 Jul 2010 07:52:32 -0400 Subject: Questions on Distributed / Remote Monitoring Message-ID: In my environment, I have over 400 remote locations, each with 2 servers & 15 linux clients. I have set up a Nagios 3 host server here at corporate running NRPE to monitor the servers at each location. I also want to monitor the 15 linux clients at each location, I wanted to have one of the servers in each remote location check the clients and report to the host Nagios server instead of having all report back. Would each local server have to have nagios core installed to monitor the local clients? And then report back to the main core server ? Can the NRPE running on the local server be used to check the client & then report it back to the host server? Could I use a check_by_ssh from the local server to the client and still get the info back to the main Nagios server? Should I run NSCA to get passive checks from the clients to the main server? I assume with nsca, each client would have to still report back, if so, I might as well just use active checks. Could I do a multiple parent-child with the main server being a parent to each remote server & each remote server being a parent to all of the local clients? I am looking for the most straightforward & least taxing way to the admin ( me ) and the systems/network to do this. Thanks, Steve _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ryan.c.ash.lu4w at statefarm.com Thu Jul 8 16:01:16 2010 From: ryan.c.ash.lu4w at statefarm.com (Ryan C Ash) Date: Thu, 8 Jul 2010 07:01:16 -0700 Subject: Running Nagios on Vmware In-Reply-To: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> References: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> Message-ID: <0E224CCCAB9A374293F138E39621972C0E3AB7C2@WPSCV6MN.OPR.STATEFARM.ORG> Is anyone aware of documentation or test cases showing whether or not running Nagios on VMware is a good idea? I realize the common opinion is that it is a bad idea due to I/O but I am looking for something a bit more in depth. Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgauthier at lastar.com Thu Jul 8 16:11:06 2010 From: jgauthier at lastar.com (Jason Gauthier) Date: Thu, 8 Jul 2010 10:11:06 -0400 Subject: Running Nagios on Vmware Message-ID: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> >Is anyone aware of documentation or test cases showing whether or not running Nagios on VMware is a good idea? I realize the common opinion is that it >is a bad idea due to I/O but I am looking for something a bit more in depth. >Thanks I think it depends on your environment. I'm running Nagios and Cacti on Hyper-V with 165 hosts and 487 services. It seems to be fine. Sometimes apache is slow to respond. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Jul 8 16:18:38 2010 From: benny at bennyvision.com (C. Bensend) Date: Thu, 8 Jul 2010 09:18:38 -0500 Subject: Running Nagios on Vmware In-Reply-To: <0E224CCCAB9A374293F138E39621972C0E3AB7C2@WPSCV6MN.OPR.STATEFARM.ORG> References: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> <0E224CCCAB9A374293F138E39621972C0E3AB7C2@WPSCV6MN.OPR.STATEFARM.ORG> Message-ID: <8c328e5e467b8c4dbcd7486f96ab3ddc.squirrel@webmail.stinkweasel.net> > Is anyone aware of documentation or test cases showing whether or not > running Nagios on VMware is a good idea? I realize the common opinion is > that it is a bad idea due to I/O but I am looking for something a bit more > in depth. I would also be interested in seeing some more detailed information. I hear it again and again on the lists that it's bad, but I've been running my production Nagios server on an ESX VM for 6 months and the performance is actually better than running it on a comparable physical box. And yes, I understand the flaws in running a monitoring system on a resource that I'm monitoring. :) It's simply *much* more cost effective and easier administratively for me to run on a VM. I would prefer a physical box myself, just to not have that set of dependencies. A few numbers: * ESX VM running on our production ESX clusters: 2 x CPU, 2GB RAM, usually about ~ 2s host and service latency * Physical box: 1 x CPU (4 cores), 2GB RAM, usually about ~ 50s host and service latency I ran that way for three weeks testing, and the performance on the physical box was much, much worse. Benny -- "Well, we *could* hunt down the perpetr? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ryan.c.ash.lu4w at statefarm.com Thu Jul 8 16:20:16 2010 From: ryan.c.ash.lu4w at statefarm.com (Ryan C Ash) Date: Thu, 8 Jul 2010 07:20:16 -0700 Subject: Running Nagios on Vmware In-Reply-To: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> Message-ID: <0E224CCCAB9A374293F138E39621972C0E3AB846@WPSCV6MN.OPR.STATEFARM.ORG> Sorry. It probably would of helped to include some of this information. It would be a large deployment in terms of what I have seen others using. There could be ~12 servers each with ~1,500 hosts and 300,000 service checks (almost all NSCA). We expect a lot of service checks per host so we want to keep the number of hosts homed to each server below 2,000. I hope this helps. Thanks BTW if anyone has scalability documentation it would help us do some server sizing. -----Original Message----- From: Jason Gauthier [mailto:jgauthier at lastar.com] Sent: Thursday, July 08, 2010 9:11 AM To: Nagios Users List Subject: Re: [Nagios-users] Running Nagios on Vmware >Is anyone aware of documentation or test cases showing whether or not running Nagios on VMware is a good idea? I realize the common opinion is that it >is a bad idea due to I/O but I am looking for something a bit more in depth. >Thanks I think it depends on your environment. I'm running Nagios and Cacti on Hyper-V with 165 hosts and 487 services. It seems to be fine. Sometimes apache is slow to respond. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgs at uvm.edu Thu Jul 8 16:26:10 2010 From: kgs at uvm.edu (Kent Saunders) Date: Thu, 08 Jul 2010 10:26:10 -0400 Subject: Running Nagios on Vmware In-Reply-To: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> Message-ID: <4C35E002.1030109@uvm.edu> # Is anyone aware of documentation or test cases showing whether or not running Nagios on VMware is a good idea? I realize the common opinion is that it is a bad idea due to I/O but I am looking for something a bit more in depth. We run a large part of our environment on VMware, however there are certain things that we deem worthy of hardware, Nagios being one of them. Since we rely on Nagios to inform us of problems across our environment, we need it to be highly reliable, with performance being a lesser consideration. We've experience issues with VMware that cause large numbers of guests to lock up, and if this happened to Nagios we wouldn't know, or have as deep a level of alerting. However, if you really like the idea of running it in a vm, I'd suggest putting a simple "is Nagios alive" type test outside VMware somewhere, to give you an extra layer of protection should the guest have troubles. I've not compared performance between hardware and a guest, so can't comment there. -kent ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Thu Jul 8 16:13:55 2010 From: jpratt at norwich.edu (James Pratt) Date: Thu, 8 Jul 2010 10:13:55 -0400 Subject: Running Nagios on Vmware In-Reply-To: <0E224CCCAB9A374293F138E39621972C0E3AB7C2@WPSCV6MN.OPR.STATEFARM.ORG> References: <4de3136c62bd391d9ab936b0e3330a50@mail.smetj.net> <0E224CCCAB9A374293F138E39621972C0E3AB7C2@WPSCV6MN.OPR.STATEFARM.ORG> Message-ID: <24B6509E4191AF44B60A24EAA3B4AD4983A35D@nuexchg.norwich.edu> > >-----Original Message----- > >From: Ryan C Ash [mailto:ryan.c.ash.lu4w at statefarm.com] > >Sent: Thursday, July 08, 2010 10:01 AM > >To: Nagios users > >Subject: [Nagios-users] Running Nagios on Vmware > > > >Is anyone aware of documentation or test cases showing whether or not running > >Nagios on VMware is a good idea? I realize the common opinion is that it is a > >bad idea due to I/O but I am looking for something a bit more in depth. > > > >Thanks > > > > Not really, however it's been discussed on the list now and again - I think for the most part, most agree it is just a bad idea, however, I suppose you could run it on a separate vm instance, depending on your shop/site. Here, I will always run it on external hardware, as we run 99% virtual/ESX so putting in the cluster im monitoring would just be a counter-productive. :-P Cheers, James ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maxhetrick at verizon.net Thu Jul 8 16:52:28 2010 From: maxhetrick at verizon.net (Max Hetrick) Date: Thu, 08 Jul 2010 10:52:28 -0400 Subject: Running Nagios on Vmware In-Reply-To: <4C35E002.1030109@uvm.edu> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> <4C35E002.1030109@uvm.edu> Message-ID: <4C35E62C.5050705@verizon.net> Kent Saunders wrote: > > We run a large part of our environment on VMware, however there are > certain things that we deem worthy of hardware, Nagios being one of > them. Since we rely on Nagios to inform us of problems across our > environment, we need it to be highly reliable, with performance being a > lesser consideration. We've experience issues with VMware that cause > large numbers of guests to lock up, and if this happened to Nagios we > wouldn't know, or have as deep a level of alerting. > > However, if you really like the idea of running it in a vm, I'd suggest > putting a simple "is Nagios alive" type test outside VMware somewhere, > to give you an extra layer of protection should the guest have troubles. Same here. We take the philosophy with wanting Nagios on separate hardware running nothing else but monitoring and graphing/trending. For the exact same reasons listed, we want to know if there's a problem with one of our virtualization servers, and if Nagios was a VM on the same box that's having a problem, we wouldn't get those notifications. My Nagios instance is on an older server with a RAID 1, and of course backed up, so it could easily be restored should the machine die. Of course running it as a VM allows the use of snapshots and very very easy backup and restores, but I still think having it isolated is important. Regards, Max ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 pepsico.com Thu Jul 8 16:55:37 2010 From: mark.frost1 at pepsico.com (Frost, Mark {PBC}) Date: Thu, 8 Jul 2010 10:55:37 -0400 Subject: Running Nagios on Vmware In-Reply-To: <4C35E002.1030109@uvm.edu> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> <4C35E002.1030109@uvm.edu> Message-ID: In my experience, there are weird things that happen with timing. That is, the time on a VM should be sync'd with a time source so no time is lost. However, the VM has what I like to think of as "seconds of variable length". So when we tested with a VM a few years ago, the latency and execution timings and calculations were really screwy. There were checks that Nagios thought ran in "-0.15" seconds, for example. Considering that this was information that we cared about, we chose to stick with a physical box. And yes, I/O is now an increasing concern for us so a VM would be even less likely. That said, I know another team who has much lighter requirements (they just want alerts, don't care about latencies (yet)) and they've been on a VM for years now with Nagios. Mark ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vicjalan at gmail.com Thu Jul 8 17:08:29 2010 From: vicjalan at gmail.com (Victor Lanza) Date: Thu, 8 Jul 2010 11:08:29 -0400 Subject: Running Nagios on Vmware In-Reply-To: <4C35E002.1030109@uvm.edu> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> <4C35E002.1030109@uvm.edu> Message-ID: <002a01cb1eaf$6da68210$48f38630$@com> I run 2 Nagios with MRTG on 2 separate VMs on separate sites myself and have been for over year. Since we have 2 sites, to circumvent the issue with monitoring the ESXi server I leave that to the other site. Site A monitors the ESXi server in Site B and vice versa. This also helps in monitoring network resources of each site. If there is indeed an issue with the virtualization server, I would still get notified. -----Original Message----- From: Kent Saunders [mailto:kgs at uvm.edu] Sent: Thursday, July 08, 2010 10:26 AM To: Nagios Users List Subject: Re: [Nagios-users] Running Nagios on Vmware # Is anyone aware of documentation or test cases showing whether or not running Nagios on VMware is a good idea? I realize the common opinion is that it is a bad idea due to I/O but I am looking for something a bit more in depth. We run a large part of our environment on VMware, however there are certain things that we deem worthy of hardware, Nagios being one of them. Since we rely on Nagios to inform us of problems across our environment, we need it to be highly reliable, with performance being a lesser consideration. We've experience issues with VMware that cause large numbers of guests to lock up, and if this happened to Nagios we wouldn't know, or have as deep a level of alerting. However, if you really like the idea of running it in a vm, I'd suggest putting a simple "is Nagios alive" type test outside VMware somewhere, to give you an extra layer of protection should the guest have troubles. I've not compared performance between hardware and a guest, so can't comment there. -kent ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 herb-j.com Thu Jul 8 17:12:43 2010 From: nagios at herb-j.com (Herb J.) Date: Thu, 08 Jul 2010 11:12:43 -0400 Subject: Running Nagios on Vmware In-Reply-To: <0E224CCCAB9A374293F138E39621972C0E3AB846@WPSCV6MN.OPR.STATEFARM.ORG> References: <05512FF87225CE4B85EB365B7FE8A19801EB785A@server51.ctg.com> <0E224CCCAB9A374293F138E39621972C0E3AB846@WPSCV6MN.OPR.STATEFARM.ORG> Message-ID: <4C35EAEB.3020100@herb-j.com> For that size of a deployment you will definitely want to use dedicated hardware. Also, with 300,000 services the standard nagios web interface could end up being quite slow. Our deployment has just over 21,000 services (multiple remote collectors feeding data back into a primary collector, all dual dual-core or dual quad-core Xeons with 4-8GB RAM). Even though the main server is overpowered and has lots of spare server resources, it takes 6 seconds for *any* page to be rendered (we store the Nagios status file on a ramdisk but it still takes several seconds to parse 35MB of text on every page reload). Due to the number of people we have using it (anywhere from 20-40 users refreshing the page twice a minute), we were forced long ago to build a custom front end that is integrated into an existing equipment database (which is also used to build the Nagios config files) using NDOutils to extract the data from Nagios. (I still need to test and implement a better solution than NDO due to the amount of time it takes to repopulate the database after reloading the Nagios configs.) In order to head off any future scaling issues, I've even began abstracting various functionality out of Nagios into external scripts, e.g., sending notifications (sending a Jabber notification takes almost a second for the script to initialize the connection to our Jabber server, which is way too long and causes latency in Nagios when there are multiple host/service issues), adding/removing comments and acknowledgements, and as scheduling downtime (it's hard to usefully save historical comment, acknowledgement, and downtime data using only Nagios). On 07/08/2010 10:20 AM, Ryan C Ash wrote: > Sorry. It probably would of helped to include some of this information. > It would be a large deployment in terms of what I have seen others > using. There could be ~12 servers each with ~1,500 hosts and 300,000 > service checks (almost all NSCA). We expect a lot of service checks per > host so we want to keep the number of hosts homed to each server below > 2,000. I hope this helps. > > Thanks > > BTW if anyone has scalability documentation it would help us do some > server sizing. > > > > -----Original Message----- > From: Jason Gauthier [mailto:jgauthier at lastar.com] > Sent: Thursday, July 08, 2010 9:11 AM > To: Nagios Users List > Subject: Re: [Nagios-users] Running Nagios on Vmware > > > >> Is anyone aware of documentation or test cases showing whether or not >> > running Nagios on VMware is a good idea? I realize the common opinion > is that it>is a bad idea due to I/O but I am looking for something a > bit more in depth. > > >> Thanks >> > > I think it depends on your environment. I'm running Nagios and Cacti on > Hyper-V with 165 hosts and 487 services. It seems to be fine. > Sometimes apache is slow to respond. > > > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by Sprint What will you do first with > EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Thu Jul 8 22:54:48 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Thu, 8 Jul 2010 14:54:48 -0600 Subject: user lists in cgi.cfg Message-ID: Hi, is there a means to define a list of user accounts that cfg.cfg uses in authorized_for_system_commands, authorized_for_system_commands, etc... so you can define this list in one place rather than explicitly at each directive? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From billschoolcraft at yahoo.com Fri Jul 9 06:51:59 2010 From: billschoolcraft at yahoo.com (Bill Schoolcraft) Date: Thu, 8 Jul 2010 21:51:59 -0700 (PDT) Subject: "check_nrpe!check_users" with no args vs with args... Message-ID: <264397.12476.qm@web31908.mail.mud.yahoo.com> Whew... did not think this would work, but it's the only combo that DID work... I only have two servers configured right now here at home, Ubuntu-10.04 (localhost with Nagios 3.20) and CentOS-5.4 (NRPE 2.12) I had tried just "check_nrpe!check_users" with the args on the NRPE (remotehost) side and when running automatically, would get confusion on the Nagios interface [state-unknown] and [arg-suggestions]. Manually the handshakes with no args on the localhost and args on the NRPE remotehost, worked fine but as a last resort before hitting the sack I loaded up both sides with args and BINGO... the interface all turned green. Bought the last copy of the new Wolfgang Barth book this week and in one week the book looks years old from usage but what I did below was just a hack and it worked... Maybe tomorrow morning after some sleep it will all seem logical... Below is what finally turned the the remote host screen green... ################################################################# check_command check_nrpe!check_users!5.0!10.0 command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10 ################################################################# check_command check_nrpe!check_procs!250!400 command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 ################################################################# check_command check_nrpe!check_load!5.0!4.0!3.0!10.0!6.0!4.0 command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 ################################################################# check_command check_nrpe!check_disk!20%!10% command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p / ################################################################# ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cosmin.neagu at omnilogic.ro Fri Jul 9 08:41:26 2010 From: cosmin.neagu at omnilogic.ro (Cosmin Neagu) Date: Fri, 09 Jul 2010 09:41:26 +0300 Subject: Checking DHCP In-Reply-To: <20100708101602.GS61645@CIS.FU-Berlin.DE> References: <96D3C579-A4A8-4C58-9D8A-44AF19191993@ena.com> <4C357A47.2040501@omnilogic.ro> <20100708101602.GS61645@CIS.FU-Berlin.DE> Message-ID: <4C36C496.7040903@omnilogic.ro> Well...thanks for the comment. I thing you are right...i will add a pool for that ip address, just so it can give me an offer. Holger Wei? wrote: > * Cosmin Neagu [2010-07-08 10:12]: > >> So from what i see on the server: >> DHCPD: DHCPDISCOVER received from client 0050.56a1.4fbf through relay >> 192.168.53.250 >> DHCPD: Seeing if there is an internally specified pool class >> DHCPD: there is no address pool for 192.168.53.250 >> > > Why can't you simply add an entry for 192.168.53.250 to the DHCP server > configuration? > > >> I thing that nagios sets the relay agent ip address in dhcp header to >> be the ip address of the interface from where the dhcpdiscover is >> sent. Is there any posibilities to control this, i mean to put in >> that header whatever ip address i want for dhcp relay agent? >> > > No, because the server uses that IP address for the reply. That is, if > you fake the field in question ("giaddr"), you won't get a response. > > >> Otherwise, i thing nagios cand only monitor dhcp servers on the same >> lan/subnet. >> > > check_dhcp's "-u" option works just fine if the server is configured > appropriately. (And of course, you could use a "real" DHCP relay agent > instead of check_dhcp's "-u" option.) > > Holger > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From borat.gunter-gM/Ye1E23mwN+BqQ9rBEUg at public.gmane.org Fri Jul 9 10:39:48 2010 From: borat.gunter-gM/Ye1E23mwN+BqQ9rBEUg at public.gmane.org (borat Gunter) Date: Fri, 9 Jul 2010 10:39:48 +0200 Subject: check_snmp OID numbers limited? Message-ID: Dear all, I have found an interesting point as I test my switch-ports by so: *define service{ use router-service host_name switch1 service_description portstest check_command snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12] } define command { command_name snmp_ports command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports' } *With this definition nagios shows *critical *status, but as I *reduced *the number of OIDs, *only from 1.3.6.1.2.1.2.2.1.8.21 to 1.3.6.1.2.1.2.2.1.8.48*, then nagios shows *OK*, after I add any of a OID from* *1.3.6.1.2.1.2.2.1.8.1 to 1.3.6.1.2.1.2.2.1.8.20, nagios gives out again the *critical *status. Although with snmpwalk have I all the 1 to 48 Ports with 1(Up) or 2(Down) status. Any Help? thanks very much in advance. best regards. ------------------------------ ------------------------------------------------------------------ Hallo Zusammen, Ich ?berwache gerade mein Switch-Ports, insg. 48 Ports, habe mit *define service{ use router-service host_name switch1 service_description portstest check_command snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12] } define command { command_name snmp_ports command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports' } *probiert und bekomme ich Critical-Meldung, obwohl alle Ports antwortet mit entweder 1 oder 2. *Dann habe ich von OID 1.3.6.1.2.1.2.2.1.8.48 angefangen und Anzahl zunehmend getestet*, bis zu 1.3.6.1.2.1.2.2.1.8.21 (d.h.check_command snmp_ports!1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12] ), meldet das Plugin immer *OK *Zustand, dann egal mit 1.3.6.1.2.1.2.2.1.8.20 oder 1.3.6.1.2.1.2.2.1.8.1 hinzugef?gt, nur *ein OID mehr*, dann meldet das Plugin *Critical*, obwohl per snmpwalk-Abfragen kriege ich ganz normale R?ckmeldung 1 oder 2. Kann Jemand mir weiter helfen? Vielen Dank im Voraus, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stuart.Jones at health.wa.gov.au Fri Jul 9 13:15:13 2010 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Fri, 9 Jul 2010 19:15:13 +0800 Subject: Nagios & Tivoli Enterprise Console [TEC] Message-ID: Has anyone tried forwarding Nagios host or service alerts to a Tivoli Enterprise Console [TEC]? If so what methodology did you employee? Typically a host would use postemsg to forward status / event messages to a TEC. Thx, Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Fri Jul 9 14:51:01 2010 From: yuris at smtp.com (yuris) Date: Fri, 09 Jul 2010 15:51:01 +0300 Subject: Nagiosgrapher problem with building graph for particular check_service Message-ID: <4C371B35.1050300@smtp.com> Hi all, I use check_milter which is basically check_tcp with some arguments, it gives output like this: TCP OK - 0.002 second response time on port 1313|time=0.001912s;;;0.000000;10.000000 it's very similar to output from check_ldap: LDAP OK - 0.006 seconds response time|time=0.006278s;;;0.000000 I have defined ngraph for check_milter very similar to check_ldap: define ngraph{ service_name Milter graph_perf_regex time=\s*([0-9.]+) graph_value sec graph_units second graph_legend response time on port 1313 rrd_plottype LINE2 rrd_color 0000ff } define ngraph{ service_name LDAP graph_perf_regex time=\s*([0-9.]+) graph_value sec graph_units seconds graph_legend LDAP Response time rrd_plottype LINE2 rrd_color 00a000 } And the problem is that graphs for Milter are not shown, Nagiosgrapher complains that "some error occured": RRD Error: No DS called 'sec' in '/var/lib/nagiosgrapher/rrd//457eb765jjf8905k0000567849c.rrd' I wonder why "graph_value sec" is ok for LDAP graph but does not suit for different service with almost identical output? and I see no errors in ngraph.log: 2010-07-09 08:32:55 PIPE: node142 Milter TCP OK - 0.050 second response time on port 1313 time=0.049644s;;;0.000000;10.000000n 2010-07-09 08:32:55 VALUES: [node142][Milter]: sec=0.049644 2010-07-09 08:32:55 RRD: rrdtool update /var/lib/nagiosgrapher/rrd/node142/4bab581d80135b9823fd2a54001423a4.rrd --template=sec N:0.049644 Please help me figure out what's wrong did I do? -- best regards, Yuris Linux System Engineer, SMTP.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Fri Jul 9 15:24:19 2010 From: lists at xodus.org (Marc Powell) Date: Fri, 9 Jul 2010 08:24:19 -0500 Subject: Nagiosgrapher problem with building graph for particular check_service In-Reply-To: <4C371B35.1050300@smtp.com> References: <4C371B35.1050300@smtp.com> Message-ID: <9EF174BA-02B4-4C50-A506-F7D05C093CD1@xodus.org> On Jul 9, 2010, at 7:51 AM, yuris wrote: > > And the problem is that graphs for Milter are not shown, Nagiosgrapher > complains that "some error occured": > > RRD Error: No DS called 'sec' in > '/var/lib/nagiosgrapher/rrd//457eb765jjf8905k0000567849c.rrd' It seems you may have been modifying the definition at least once. Try deleting the rrd file and allowing it to be recreated based on your current definition. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Fri Jul 9 16:13:59 2010 From: yuris at smtp.com (yuris) Date: Fri, 09 Jul 2010 17:13:59 +0300 Subject: Nagiosgrapher problem with building graph for particular check_service In-Reply-To: <9EF174BA-02B4-4C50-A506-F7D05C093CD1@xodus.org> References: <4C371B35.1050300@smtp.com> <9EF174BA-02B4-4C50-A506-F7D05C093CD1@xodus.org> Message-ID: <4C372EA7.2070406@smtp.com> You are right, I've been changing definition couple of times, and since I have not been changing it for some some time (like 30 minutes) rrd file was updated on it's own and graph started to work! So it seems like manual deleting of rrd file is not absolutely necessary, it's possible to just wait for some time and it will be updated automatically. Thanks for the help! -- best regards, yuris Marc Powell wrote: > On Jul 9, 2010, at 7:51 AM, yuris wrote: > > >> And the problem is that graphs for Milter are not shown, Nagiosgrapher >> complains that "some error occured": >> >> RRD Error: No DS called 'sec' in >> '/var/lib/nagiosgrapher/rrd//457eb765jjf8905k0000567849c.rrd' >> > > It seems you may have been modifying the definition at least once. Try deleting the rrd file and allowing it to be recreated based on your current definition. > > -- > Marc > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Fri Jul 9 19:16:27 2010 From: shadhin71 at gmail.com (Shadhin Rahman) Date: Fri, 9 Jul 2010 13:16:27 -0400 Subject: failover setup help Message-ID: All, I have a failover setup with nagios. I also have ndoUtils setup for collecting historical data. My setup is described below. master server - running nagios and ndoutils collecting data. The master is also sending host state and service state data using nsca to failover server. master server has active host check, service check and notification enabled. slave server - running nagios and partial ndoutil. no active checks are being done in this slave server. The slave server also has notification disabled. nsca daemon is listening for service and host status from master server. The problem: I am facing the problem where acknowledgements and comments are not up to date in the slave server. I can possibly transfer the retention file to slave server and fix the comments part of the problem. However I do not know how to get all the acknowledgements transfer to the slave server. It would be great if someone can point me to the right direction, how I can solve the acknowledgement problem I describe above. Thanks in advance. -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Sat Jul 10 02:24:15 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Fri, 9 Jul 2010 18:24:15 -0600 Subject: using multiple templates Message-ID: <3238037C-D023-4CB1-9843-0F466135925A@stubhub.com> Are there any consequences to using multiple templates other than that the last one defined gets precedence? I would like to have sevice templates the do things like define notifications interval separately from escalation path, time periods etc.... I was thinking of ending up with something like this: define{ name some_services use an_escalation_template use a_notification_template use an_action_template .... } Assuming there is no collisions in namespace, this should work, right? ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Sat Jul 10 17:39:52 2010 From: work at paul.dubuc.org (Paul M Dubuc) Date: Sat, 10 Jul 2010 11:39:52 -0400 Subject: using multiple templates In-Reply-To: <3238037C-D023-4CB1-9843-0F466135925A@stubhub.com> References: <3238037C-D023-4CB1-9843-0F466135925A@stubhub.com> Message-ID: <4C389448.1060907@paul.dubuc.org> Litwin, Matthew wrote: > Are there any consequences to using multiple templates other than that the last one defined gets precedence? I would like to have sevice templates the do things like define notifications interval separately from escalation path, time periods etc.... > > I was thinking of ending up with something like this: > > define{ > name some_services > use an_escalation_template > use a_notification_template > use an_action_template > .... > } > > Assuming there is no collisions in namespace, this should work, right? Have you tried it? I don't know if separate 'use' directives work. I use a comma separated list with one 'use' directive: use an_escalation_template,a_notification_template,an_action_template Remember that the order is important. Anything defined in the first template takes precedence. See "Multiple Inheritance Sources" here for more details: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ralf.prengel at comline.de Mon Jul 12 09:03:57 2010 From: ralf.prengel at comline.de (prengel) Date: Mon, 12 Jul 2010 09:03:57 +0200 Subject: a way to monitor notebooks offline and to transfer the informations after some weeks Message-ID: <4C3ABE5D.3050100@comline.de> Hallo, my problem: I ve several notebooks without regular contact to my nagios-system. It could happen that they are 4 weeks "on the road". I m looking for a way to collect informations like CPU-Load, smartmon-informations and themperatures and to store them local on the notebook. If a connection is possible all dates should be transfered to the nagios-server. The problem: Most of the notebooks are windos-systems. Some are linux-systems. Any hints? Ralf Prengel Manager Customer Care Comline AG Hauert 8 D-44227 Dortmund/Germany Fon +49 231 97575 904 Fax +49 231 97575 257 Mobil +49 151 10831 157 EMail Ralf.Prengel at comline.de www.comline.de Vorstand Stephan Schilling, Erwin Leonhardi Aufsichtsrat Dr. Franz Schoser (Vorsitzender) HR Dortmund B 14570 USt.-ID-Nr. DE 124727422 F?r die Erstellung unserer Dokumente benutzen wir die Produkte aus dem Microsoft Office 2007 Paket. Sollte sich ein Anhang in der Mail befinden, der mit einer ?lteren Office Version nicht ge?ffnet werden kann, installieren Sie bitte das Compatibility Pack f?r Office 2007. http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=de ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Mon Jul 12 14:17:11 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 12 Jul 2010 13:17:11 +0100 Subject: check procs odd behaviour Message-ID: <4C3B07C7.4010001@flatto.net> Hello All In the last couple of weeks i noticed an odd occurrence in the output of the check_procs on my master Nagios server the default command : check_local_procs , gives out the following output : WARNING;PROCS WARNING: 380 processes with STATE = RSZDT Although when executing the command manually the server shows a different output - usually more along the lines like this : OK;PROCS OK: 78 processes with STATE = RSZDT I know that the state of the server is not exact when I run the check manually and when nagios executes it , but i still feel there is something wrong. Initially i thought that there is something wrong with the command definition , but that was rulled out , then i thought it might be a problem in the plugin , so i recompiled it and re installed , that did not solve the issue . I Stopped Nagios completely to make sure all nagios processes are cleared form the process table , but still the issue returns , my last idea is to reboot the server ( which I loath to do ) , does anyone have encountered a similar issue ? I am using nagios 3.2.0 from source on SLES 10.3 64bit. -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carl.Friend at mathworks.com Mon Jul 12 14:29:13 2010 From: Carl.Friend at mathworks.com (Carl Friend) Date: Mon, 12 Jul 2010 08:29:13 -0400 Subject: ndoutils 1.4b7 vs 1.4b9 Message-ID: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> Greetings, I tried updating my (perfectly working, mind you) ndoutils from 1.4b7 to 1.4b9 over the weekend and was primarily rewarded with segfaults and other grief which has resisted investigation and fixes. The errors were introduced in 1.4b8 and persist into 1.4b9. I'm running on Solaris-10 SPARC. The last SQL query I seem to see in the debug log is when the ndo2db daemon tries inserting a row into the Nagios_customvariables table. I'm tired of banging my head on it. Does anybody know when the next version is due out that'll fix the segfaults? Cheers! ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Mon Jul 12 18:06:05 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 12 Jul 2010 17:06:05 +0100 Subject: a way to monitor notebooks offline and to transfer the informations after some weeks In-Reply-To: <4C3ABE5D.3050100@comline.de> References: <4C3ABE5D.3050100@comline.de> Message-ID: <4C3B3D6D.6090006@flatto.net> prengel wrote: > Hallo, > > my problem: > > I ve several notebooks without regular contact to my nagios-system. It > could happen that they are 4 weeks "on the road". > I m looking for a way to collect informations like CPU-Load, > smartmon-informations and themperatures and to store them local on the > notebook. > If a connection is possible all dates should be transfered to the > nagios-server. > The problem: > Most of the notebooks are windos-systems. > Some are linux-systems. > > > Any hints? > Hello Ralf I think that a nagios server is not the solution for the issue you are having , yes you could write a local ( i.e notebook) script that when it detect the office /any network it will submit the data to the nagios server ( via a secure method) , however the nagios server itself will report those units as down most of the time ,and I am uncertain about backlog_record_injection to help with stats or presentation on the nagios server , unless you just want to nagios server to be a central point to store the files. As for the linux/windows based , perl is a wonderful thing that runs on both platforms . Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbrooks at oddelement.com Mon Jul 12 19:39:30 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Mon, 12 Jul 2010 13:39:30 -0400 Subject: checks per host Message-ID: hey gang, I'm trying to get a sense of what's normal for the number of checks per host. I'm pushing nagios to a number of servers and the list of things I want to monitor keeps growing. For some servers, I've got > 30 checks - some > 50. what is "normal" out there? is there a practical limit? i'm using nagios 3 on centos 5 to monitor windows with nsclient++ 3.8. cheers, J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.bader at gmail.com Mon Jul 12 20:24:58 2010 From: kyle.bader at gmail.com (Kyle Bader) Date: Mon, 12 Jul 2010 11:24:58 -0700 Subject: checks per host In-Reply-To: References: Message-ID: > I'm trying to get a sense of what's normal for the number of checks per > host. If you had a data set of information on Nagios installations you may find an average service checks/hosts ratio but I don't really understand the purpose. People are going to want to monitor different things and at different scales the number of things that they can checked per host may be limited because of the sheer number of hosts and the nagios server(s) ability to process them. If your service checks are all being performed in a timely fashion then I wouldn't worry about checking too many things. If you find yourself wishing you had a nagios alert for something, add a service check and see if the nagios servers(s) are still able to process their checks satisfactorily. -- Kyle ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naguselist at greatlakedata.com Mon Jul 12 19:10:28 2010 From: naguselist at greatlakedata.com (gregwm) Date: Mon, 12 Jul 2010 12:10:28 -0500 Subject: nagios@ became postmaster@ Message-ID: apparently nagios notifications stopped being mailed by nagios@ and started being mailed by postmaster@ when we upgraded from 3.2.0 to 3.2.1. is there a way to get that back to nagios@? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Mon Jul 12 20:47:51 2010 From: perldork at webwizarddesign.com (Max) Date: Mon, 12 Jul 2010 14:47:51 -0400 Subject: checks per host In-Reply-To: References: Message-ID: On Mon, Jul 12, 2010 at 1:39 PM, Joel Brooks wrote: > hey gang, > > I'm trying to get a sense of what's normal for the number of checks per > host. > > I'm pushing nagios to a number of servers and the list of things I want to > monitor keeps growing. > > For some servers, I've got > 30 checks - some > 50. > > what is "normal" out there? > > is there a practical limit? The limit is what your HW can handle and what your people can handle seeing per host. Our teams try to make checks that check multiple elements at once to reduce the numbers of checks per host without loss of alarm granularity - for example, our disk checks check all partitions on a host and allow for rich thresholding - user can specify many thresholds to check per service. Same for critical processes - one check to look for all critical processes and report any that have failed. - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Mon Jul 12 20:48:56 2010 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Mon, 12 Jul 2010 14:48:56 -0400 Subject: checks per host In-Reply-To: References: Message-ID: As pointed out, normal depends on your environment. Some sites only check a handful of things per host; some check more. The bigger issue is if your server can handle the number of checks and in a timely fashion. Look at nagios parameters Max_service_check_spread, max_host_check_spread as well as the various params for individual services such as check_interval If you have a check that takes a long time to complete, you'll probably want to run it less frequently. If the client were Unix, not windows, you'd have the luxury of being able to run the check on the host in question. This can be done either via cron and have it generate a status file that nagios then checks or using NSCA. On Mon, Jul 12, 2010 at 1:39 PM, Joel Brooks wrote: > hey gang, > > I'm trying to get a sense of what's normal for the number of checks per > host. > > I'm pushing nagios to a number of servers and the list of things I want to > monitor keeps growing. > > For some servers, I've got > 30 checks - some > 50. > > what is "normal" out there? > > is there a practical limit? > > i'm using nagios 3 on centos 5 to monitor windows with nsclient++ 3.8. > > cheers, > > J > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbrooks at oddelement.com Mon Jul 12 22:38:21 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Mon, 12 Jul 2010 16:38:21 -0400 Subject: checks per host Message-ID: Thanks guys. I'm not so worried about the monitoring server. It has lots of head room, and/but I will continue to monitor that. I was mainly interested to know about people's experiences using nagios with a lot of checks per host in terms of usability (web interface), configuration, etc. i.e. would it be of any value to focus on checking multiple items per check rather than having an individual check per monitored item as one person suggested. I'm just wondering what people think of using the tools with 100 (or more) checks per host. ..just general opinion / experiences... also wondering about load from checks on the monitored hosts... i.e. it would suck if monitoring actually caused degradation in performance... does having a lot of checks on a host cause problems? i.e. I've got the basics covered - cpu, memory, disk. now i'm adding a lot of application specific checks - queues, performance counters, log file pattern matches, etc. is there a break point (not on the nagios server, but rather on the clients, or in the UI)? thanks for the replies. J > As pointed out, normal depends on your environment. Some sites only > check a handful > of things per host; some check more. The bigger issue is if your > server can handle > the number of checks and in a timely fashion. Look at nagios parameters > Max_service_check_spread, > max_host_check_spread > as well as the various params for individual services such as > check_interval > > If you have a check that takes a long time to complete, you'll probably > want to > run it less frequently. > > If the client were Unix, not windows, you'd have the luxury of being > able to run > the check on the host in question. This can be done either via cron and > have it > generate a status file that nagios then checks or using NSCA. > On Mon, Jul 12, 2010 at 1:39 PM, Joel Brooks wrote: > hey gang, > > I'm trying to get a sense of what's normal for the number of checks per > host. > > I'm pushing nagios to a number of servers and the list of things I want to > monitor keeps growing. > > For some servers, I've got > 30 checks - some > 50. > > what is "normal" out there? > > is there a practical limit? > > i'm using nagios 3 on centos 5 to monitor windows with nsclient++ 3.8. > > cheers, > > J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Mon Jul 12 23:04:54 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 12 Jul 2010 22:04:54 +0100 Subject: checks per host In-Reply-To: References: Message-ID: On 12 July 2010 18:39, Joel Brooks wrote: > hey gang, > > I'm trying to get a sense of what's normal for the number of checks per > host. > > I'm pushing nagios to a number of servers and the list of things I want to > monitor keeps growing. > > For some servers, I've got > 30 checks - some > 50. > > what is "normal" out there? > > is there a practical limit? The golden rule I use is only monitor something if someone actually wants to know. In practice this means I monitor disk space, memory, cpu and whether the virus checker is ok for almost every WIntel server, but everything else just depends. The support teams soon tell me if they don't want monitoring on something! I guess the most checks I have on any server is about 40 - where the server runs stuff for half a dozen similar accounts and each account needs a handful of checks. The most I have on any 'host' is 94 - where a wireless switch has 90-odd access points connected and I need to know if any of them drop off. There are lots of devices which I just ping - a third party does the detailed monitoring for those - I do the ping to make sure the third party is doing their job okay. Whether all this is 'normal' I can't say for sure. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew1.li at citi.com Tue Jul 13 05:07:08 2010 From: andrew1.li at citi.com (Li, Andrew1 ) Date: Tue, 13 Jul 2010 13:07:08 +1000 Subject: Notification from past scheduled downtime events Message-ID: <1278990427.29437.227.camel@localhost> Hi All, My understanding is that when there's a schedule downtime for a host, there should be no notification sent out for all services for that host. In our setup, we get notification for a "service down" during the host schedule downtime period because it looks like that the check result of that event is stored in nagios/var/spool/checkresults/xxx and reap_check_results() comes along sometime after the schedule downtime and generates output based on the old results. This causes some annoying SMS alerts because they come in a day later at odd times. Have anyone seen this before? Let me know if I need to provide more info for you to comment. Thanks, Andrew ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Tue Jul 13 09:48:48 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 13 Jul 2010 09:48:48 +0200 Subject: ndoutils 1.4b7 vs 1.4b9 In-Reply-To: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> Message-ID: <4C3C1A60.6040306@univie.ac.at> Hi, Carl Friend wrote: > I tried updating my (perfectly working, mind you) ndoutils from > 1.4b7 to 1.4b9 over the weekend and was primarily rewarded with > segfaults and other grief which has resisted investigation and > fixes. The errors were introduced in 1.4b8 and persist into 1.4b9. > I'm running on Solaris-10 SPARC. The last SQL query I seem to see > in the debug log is when the ndo2db daemon tries inserting a row > into the Nagios_customvariables table. > Well I've sent a patch a few months ago to nagios-devel but iirc it's only in CVS, not within a new beta release. An Icinga user pointed me to that problem. http://markmail.org/message/jsolx6j6jl74aqpj https://dev.icinga.org/issues/219 > I'm tired of banging my head on it. Does anybody know when the > next version is due out that'll fix the segfaults? > Currently NDOUtils stands without a maintainer... http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg32080.html I'd recommend staying at 1.4b7 since 1.4b9 SQL schema is a bit screwed regarding unique constraints next to the binary selects instead of case sensitive collation. Search the mailing list archives for further information on that. Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carl.Friend at mathworks.com Tue Jul 13 15:27:18 2010 From: Carl.Friend at mathworks.com (Carl Friend) Date: Tue, 13 Jul 2010 09:27:18 -0400 Subject: ndoutils 1.4b7 vs 1.4b9 In-Reply-To: <4C3C1A60.6040306@univie.ac.at> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> <4C3C1A60.6040306@univie.ac.at> Message-ID: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80F4C@EXCHANGE-AH.ad.mathworks.com> Michael Friedrich writes: > Well I've sent a patch a few months ago to nagios-devel but iirc it's > only in CVS, not within a new beta release. An Icinga user pointed me to > that problem. > > http://markmail.org/message/jsolx6j6jl74aqpj > https://dev.icinga.org/issues/219 I caught one of those (the errant declaration) but missed the botched int vs. long problem. Since I located the patch, I'll give things another go this evening if I get time. Thanks! > I'd recommend staying at 1.4b7 since 1.4b9 SQL schema is a bit screwed > regarding unique constraints next to the binary selects instead of case > sensitive collation. I looked at the lists and didn't see the indices and constraints alluded to here. Can you point them out, please. I'll back out the changes I applied to the database with the 1.4b9 update. However, 1.4b9 *does* provide some additional indices that dramatically speed up certain maintenance operations, so I don't want to lose those. Cheers! +-----------------------------------------+----------------------------+ | Carl Richard Friend (UNIX Sysadmin) | Natick, Massachusetts, USA | | Minicomputer Collector / Enthusiast | 01760-2098 | | mailto:carl_friend at mathworks.com +----------------------------+ | http://users.rcn.com/crfriend/museum | ICBM: +42:18:00 -71:21:03 | +-----------------------------------------+----------------------------+ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Jul 13 21:27:44 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 13 Jul 2010 15:27:44 -0400 Subject: Going Nuts trying to get check_by_ssh to work Message-ID: Hello All, have been banging my head against the wall trying to get check_by_ssh to work. No matter what I try to do, I keep getting Remote command execution failed: . I have verified that I can ssh to the remote pc from the server as both root & the nagios user with no problem or password request so the key gen is fine. If I run check_ssh -H hostname, I gt back a response so I also know ssh is running ok on the target machine. Do not see any issues in the logs, as far as I can tell, it should be working fine. Am I missing something here? I have tried running the check_by_ssh plugin from the command line with no success , specifying ports, protocol, user, etc ./check_by_ssh -H pbylinux7 -C '/usr/local/nagios/libexec/check_ssh' -2 -4 -p 22 and have created the following check : services.cfg define service { use local-service ; check current load on machine hostgroup_name ssh-nagios-services service_description Current Load check_command check_ssh_load!5.0,4.0,3.0!10.0,6.0,4.0 } in command.cfg # 'check_ssh_load' command definition define command { command_name check_ssh_load command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$" } hostgroup has also been added _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 13 21:51:09 2010 From: benny at bennyvision.com (C. Bensend) Date: Tue, 13 Jul 2010 14:51:09 -0500 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: Message-ID: <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net> > I have tried running the check_by_ssh plugin from the command line with no > success , specifying ports, protocol, user, etc > > ./check_by_ssh -H pbylinux7 -C '/usr/local/nagios/libexec/check_ssh' -2 -4 > -p 22 Have you tried using the *IP* instead of the hostname? Depending on how you have your service check defined, it's probably using the IP, and if that's the case, it's probably waiting on you to accept the remote host's key. Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From timwest at warwickshire.gov.uk Tue Jul 13 21:49:17 2010 From: timwest at warwickshire.gov.uk (timwest at warwickshire.gov.uk) Date: Tue, 13 Jul 2010 20:49:17 +0100 Subject: Tim West is out of the office Message-ID: I will be out of the office starting 13/07/2010 and will not return until 15/07/2010. This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Jul 13 22:27:59 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 13 Jul 2010 16:27:59 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net> References: , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net> Message-ID: Thanks for the reply, yes I have tried it with both ip & name with the same results. I assume that the command line check should work as I have written it here correct? /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4 Remote command execution failed: I do see on the client in /var/log/secure log : sshd[7044]: Accepted publickey for nagios from 172.xx.xx.xx port 42117 ssh2 so this should mean the ssh was successful correct? Steve _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Tue Jul 13 22:52:06 2010 From: benny at bennyvision.com (C. Bensend) Date: Tue, 13 Jul 2010 15:52:06 -0500 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net> Message-ID: > Thanks for the reply, yes I have tried it with both ip & name with the > same results. > > I assume that the command line check should work as I have written it here > correct? > > /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C > '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4 > > Remote command execution failed: > > > I do see on the client in /var/log/secure log : sshd[7044]: Accepted > publickey for nagios from 172.xx.xx.xx > port 42117 ssh2 > > so this should mean the ssh was successful correct? If that's the case, yes, your authentication is fine. As the nagios user on the remote host, *copy-and-pasting* that exact command (inside the single quotes) into the shell works? Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Jul 13 23:06:53 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 13 Jul 2010 17:06:53 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , Message-ID: yes running the check on the client works fine : /usr/local/nagios/libexec> ./check_users -w 5 -c 8 USERS OK - 1 users currently logged in |users=1;5;8;0 I am beginning to think it has to be something really stupid... Thanks, Steve > Date: Tue, 13 Jul 2010 15:52:06 -0500 > From: benny at bennyvision.com > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work > > > > Thanks for the reply, yes I have tried it with both ip & name with the > > same results. > > > > I assume that the command line check should work as I have written it here > > correct? > > > > /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C > > '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4 > > > > Remote command execution failed: > > > > > > I do see on the client in /var/log/secure log : sshd[7044]: Accepted > > publickey for nagios from 172.xx.xx.xx > > port 42117 ssh2 > > > > so this should mean the ssh was successful correct? > > If that's the case, yes, your authentication is fine. > > As the nagios user on the remote host, *copy-and-pasting* that exact > command (inside the single quotes) into the shell works? > > Benny > > > -- > "Well, we *could* hunt down the perpetrators, pool some $$, and > hire 3 or 4 baseball-bat wielding professional explainers to go > explain our position to them. Figuring out how to do so without > breaking any laws is the tough part..." > -- Valdis Kletnieks, 2009-01-23 > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Tue Jul 13 23:17:13 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 13 Jul 2010 17:17:13 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , Message-ID: I also tried this as well from the server , which does work.... ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 Authorized users only. USERS OK - 0 users currently logged in |users=0;5;8;0 This tells me that 1. ssh as Nagios works 2. the check_users script runs on the remote client fine 3. 2 - way communication is good between the client & sever as I got the response back I am thinking there has to be something funky in the check_by_ssh script. Sound right ?? > Date: Tue, 13 Jul 2010 15:52:06 -0500 > From: benny at bennyvision.com > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work > > > > Thanks for the reply, yes I have tried it with both ip & name with the > > same results. > > > > I assume that the command line check should work as I have written it here > > correct? > > > > /usr/local/nagios/libexec> ./check_by_ssh -H 172.xx.xx.xx -C > > '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2 -4 > > > > Remote command execution failed: > > > > > > I do see on the client in /var/log/secure log : sshd[7044]: Accepted > > publickey for nagios from 172.xx.xx.xx > > port 42117 ssh2 > > > > so this should mean the ssh was successful correct? > > If that's the case, yes, your authentication is fine. > > As the nagios user on the remote host, *copy-and-pasting* that exact > command (inside the single quotes) into the shell works? > > Benny > > > -- > "Well, we *could* hunt down the perpetrators, pool some $$, and > hire 3 or 4 baseball-bat wielding professional explainers to go > explain our position to them. Figuring out how to do so without > breaking any laws is the tough part..." > -- Valdis Kletnieks, 2009-01-23 > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Wed Jul 14 00:22:35 2010 From: benny at bennyvision.com (C. Bensend) Date: Tue, 13 Jul 2010 17:22:35 -0500 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , Message-ID: > I also tried this as well from the server , which does work.... > > ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 > > Authorized users only. > > USERS OK - 0 users currently logged in |users=0;5;8;0 > > > This tells me that > 1. ssh as Nagios works > 2. the check_users script runs on the remote client fine > 3. 2 - way communication is good between the client & sever as I got the > response back > > I am thinking there has to be something funky in the check_by_ssh script. > Sound right ?? Waitaminute... Where did that "Authorized users only" part come from? Nagios expects a single line of text, and SSH commands typically don't display banners (in my experience). Is that a banner that appears from the remote host? I wonder if that is confusing things. Can it be temporarily disabled to see if it changes the behavior? Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Wed Jul 14 00:33:41 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 13 Jul 2010 18:33:41 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , , , , , Message-ID: If I remember, that line is in the sshd.config for the auth users banner. I should be able to comment it out to test it. Didn't think about that... I'll dial in when I get home & try it.. Thanks Benny for the info, Steve > Date: Tue, 13 Jul 2010 17:22:35 -0500 > From: benny at bennyvision.com > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work > > > > I also tried this as well from the server , which does work.... > > > > ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 > > > > Authorized users only. > > > > USERS OK - 0 users currently logged in |users=0;5;8;0 > > > > > > This tells me that > > 1. ssh as Nagios works > > 2. the check_users script runs on the remote client fine > > 3. 2 - way communication is good between the client & sever as I got the > > response back > > > > I am thinking there has to be something funky in the check_by_ssh script. > > Sound right ?? > > Waitaminute... Where did that "Authorized users only" part come > from? > > Nagios expects a single line of text, and SSH commands typically > don't display banners (in my experience). Is that a banner that > appears from the remote host? I wonder if that is confusing > things. Can it be temporarily disabled to see if it changes the > behavior? > > Benny > > > -- > "Well, we *could* hunt down the perpetrators, pool some $$, and > hire 3 or 4 baseball-bat wielding professional explainers to go > explain our position to them. Figuring out how to do so without > breaking any laws is the tough part..." > -- Valdis Kletnieks, 2009-01-23 > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Wed Jul 14 01:03:59 2010 From: benny at bennyvision.com (C. Bensend) Date: Tue, 13 Jul 2010 18:03:59 -0500 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , , , Message-ID: <82d1b5511ce66d35c8cb1757ba6bd1f2.squirrel@webmail.stinkweasel.net> > If I remember, that line is in the sshd.config for the auth users banner. > I should be able to comment it out to test it. > > Didn't think about that... I'll dial in when I get home & try it.. If you're running a recent release of OpenSSH, you might be able to use a match directive to skip the banner for connections originating with your Nagios server... Off the top of my head, I don't recall if that is one of the options you can override with match. Please let us know what happens! Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raanders at cyber-office.net Wed Jul 14 01:57:49 2010 From: raanders at cyber-office.net (Roderick A. Anderson) Date: Tue, 13 Jul 2010 16:57:49 -0700 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: <82d1b5511ce66d35c8cb1757ba6bd1f2.squirrel@webmail.stinkweasel.net> References: , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , , , <82d1b5511ce66d35c8cb1757ba6bd1f2.squirrel@webmail.stinkweasel.net> Message-ID: <4C3CFD7D.8040203@cyber-office.net> On 07/13/2010 04:03 PM, C. Bensend wrote: > >> If I remember, that line is in the sshd.config for the auth users banner. >> I should be able to comment it out to test it. >> >> Didn't think about that... I'll dial in when I get home& try it.. > > If you're running a recent release of OpenSSH, you might be able > to use a match directive to skip the banner for connections > originating with your Nagios server... Off the top of my head, > I don't recall if that is one of the options you can override > with match. The simplest way I've found to avoid the banner is to do it like this. ssh root at host.example.com 'cat /etc/rsyslog.conf' \\||/ Rod -- > > Please let us know what happens! > > Benny > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirko.stefanelli at gmail.com Wed Jul 14 11:59:35 2010 From: mirko.stefanelli at gmail.com (mirko stefanelli) Date: Wed, 14 Jul 2010 11:59:35 +0200 Subject: ndomod Segmentation fault Message-ID: Hi to all, I have problem with ndomod, I ran nagios on Ubuntu Server "Linux srvnagios 2.6.24-23-server #1 SMP Wed Apr 1 22:22:14 UTC 2009 i686 GNU/Linux", nagios version is 3.2.1. When I try to lunch ndomod from command line as: /usr/local/nagios/bin/ndomod.o -c /usr/local/nagios/etc/ndomod.cfg the result is: root at srvnagios:~/ndoutils-1.4b9# /usr/local/nagios/bin/ndomod.o -c /usr/local/nagios/etc/ndomod.cfg Segmentation fault root at srvnagios:~/ndoutils-1.4b9# I also try to run it with strace, this is the output: root at srvnagios:~/ndoutils-1.4b9# strace /usr/local/nagios/bin/ndomod.o -c /usr/local/nagios/etc/ndomod.cfg execve("/usr/local/nagios/bin/ndomod.o", ["/usr/local/nagios/bin/ndomod.o", "-c", "/usr/local/nagios/etc/ndomod.cfg"...], [/* 24 vars */]) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 13751 detached I have seen that on nagios log file are these messages: [1279100453] Nagios 3.2.1 starting... (PID=22219) [1279100453] Local time is Wed Jul 14 11:40:53 CEST 2010 [1279100453] LOG VERSION: 2.0 [1279100453] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1279100453] ndomod: Could not open data sink! I'll keep trying, but some output may get lost... [1279100453] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. But the file ndo.sock is not create. ndomod.cfg: ##################################################################### # NDOMOD CONFIG FILE # # Last Modified: 09-05-2007 ##################################################################### # INSTANCE NAME # This option identifies the "name" associated with this particular # instance of Nagios and is used to seperate data coming from multiple # instances. Defaults to 'default' (without quotes). instance_name=default # OUTPUT TYPE # This option determines what type of output sink the NDO NEB module # should use for data output. Valid options include: # file = standard text file # tcpsocket = TCP socket # unixsocket = UNIX domain socket (default) #output_type=file #output_type=tcpsocket output_type=unixsocket # OUTPUT # This option determines the name and path of the file or UNIX domain # socket to which output will be sent if the output type option specified # above is "file" or "unixsocket", respectively. If the output type # option is "tcpsocket", this option is used to specify the IP address # of fully qualified domain name of the host that the module should # connect to for sending output. #output=/usr/local/nagios/var/ndo.dat #output=127.0.0.1 output=/usr/local/nagios/var/ndo.sock # TCP PORT # This option determines what port the module will connect to in # order to send output. This option is only vlaid if the output type # option specified above is "tcpsocket". tcp_port=5668 # OUTPUT BUFFER # This option determines the size of the output buffer, which will help # prevent data from getting lost if there is a temporary disconnect from # the data sink. The number of items specified here is the number of # lines (each of variable size) of output that will be buffered. output_buffer_items=5000 # BUFFER FILE # This option is used to specify a file which will be used to store the # contents of buffered data which could not be sent to the NDO2DB daemon # before Nagios shuts down. Prior to shutting down, the NDO NEB module # will write all buffered data to this file for later processing. When # Nagios (re)starts, the NDO NEB module will read the contents of this # file and send it to the NDO2DB daemon for processing. buffer_file=/usr/local/nagios/var/ndomod.tmp # FILE ROTATION INTERVAL # This option determines how often (in seconds) the output file is # rotated by Nagios. File rotation is handled by Nagios by executing # the command defined by the file_rotation_command option. This # option has no effect if the output_type option is a socket. file_rotation_interval=14400 # FILE ROTATION COMMAND # This option specified the command (as defined in Nagios) that is # used to rotate the output file at the interval specified by the # file_rotation_interval option. This option has no effect if the # output_type option is a socket. # # See the file 'misccommands.cfg' for an example command definition # that you can use to rotate the log file. #file_rotation_command=rotate_ndo_log # FILE ROTATION TIMEOUT # This option specified the maximum number of seconds that the file # rotation command should be allowed to run before being prematurely # terminated. file_rotation_timeout=60 # RECONNECT INTERVAL # This option determines how often (in seconds) that the NDO NEB # module will attempt to re-connect to the output file or socket if # a connection to it is lost. reconnect_interval=15 # RECONNECT WARNING INTERVAL # This option determines how often (in seconds) a warning message will # be logged to the Nagios log file if a connection to the output file # or socket cannot be re-established. reconnect_warning_interval=15 #reconnect_warning_interval=900 # DATA PROCESSING OPTION # This option determines what data the NDO NEB module will process. # Do not mess with this option unless you know what you're doing!!!! # Read the source code (include/ndbxtmod.h) to determine what values # to use here. Values from source code should be OR'ed to get the # value to use here. A value of -1 will cause all data to be processed. # Read the source code (include/ndomod.h) and look for "NDOMOD_PROCESS_" # to determine what values to use here. Values from source code should # be OR'ed to get the value to use here. A value of -1 will cause all # data to be processed. data_processing_options=-1 # CONFIG OUTPUT OPTION # This option determines what types of configuration data the NDO # NEB module will dump from Nagios. Values can be OR'ed together. # Values: # 0 = Don't dump any configuration information # 1 = Dump only original config (from config files) # 2 = Dump config only after retained information has been restored # 3 = Dump both original and retained configuration config_output_options=2 Did you have any idea? Regards, Mirko -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 14 12:19:40 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 14 Jul 2010 11:19:40 +0100 Subject: ndomod Segmentation fault In-Reply-To: References: Message-ID: <4C3D8F3C.7040800@flatto.net> Hello Mirko If you go back a couple of days to a thread named "ndoutils 1.4b7 vs 1.4b9" You'll see that the ndo utility has not been maintained for a while and the latest version 1.4b9 has some known issues . http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg32080.html If your had 1.4b7 working , it is recommended to remain in that version . I use it on nagios 3.2.0 with no issues , and since there is no "supported" update in sight i think this will be around for a long while ( unless you count the IdoUtils that comes out from the Icinga fork) . Assaf mirko stefanelli wrote: > Hi to all, > > I have problem with ndomod, I ran nagios on Ubuntu Server "Linux > srvnagios 2.6.24-23-server #1 SMP Wed Apr 1 22:22:14 UTC 2009 i686 > GNU/Linux", nagios version is 3.2.1. When I try to lunch ndomod from > command line as: > > /usr/local/nagios/bin/ndomod.o -c /usr/local/nagios/etc/ndomod.cfg > > the result is: > > config_output_options=2 > > Did you have any idea? > > Regards, > Mirko > > > -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Wed Jul 14 13:50:38 2010 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Wed, 14 Jul 2010 12:50:38 +0100 Subject: Cannot open command file for update Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occurred while attempting to commit your command for processing. I did however recently do a restore of the machine (I restored an old copy of the VM and then copied over the backup data). When I change the permissions, next time I click commit, it goes back to being un-openable: [root at nagios servers]# ls -al /usr/local/nagios/var/r* /usr/local/nagios/var/rw: total 2 drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 . drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 .. prw-rw---- 1 nagios nagios 0 Jul 14 12:40 nagios.cmd B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carl.Friend at mathworks.com Wed Jul 14 13:52:00 2010 From: Carl.Friend at mathworks.com (Carl Friend) Date: Wed, 14 Jul 2010 07:52:00 -0400 Subject: ndomod Segmentation fault In-Reply-To: References: Message-ID: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA81173@EXCHANGE-AH.ad.mathworks.com> Greetings, I had this problem a few days ago when I tried upgrading from 1.4b7 to 1.4b9, and thanks to Mr. Michael Friedrich who passed along these links: http://markmail.org/message/jsolx6j6jl74aqpj https://dev.icinga.org/issues/219 I was able to solve the segfault issue. However, once the segfaults were solved, it appears that 1.4b9 is rather slower than 1.4b7. Given this, I'll second the recommendation to stay at 1.4b7, although if you have a very large number of hosts and/or services you may want to add some indexes to the database schema to improve the basic housekeeping performance as old data get culled out. +-----------------------------------------+----------------------------+ | Carl Richard Friend (UNIX Sysadmin) | Natick, Massachusetts, USA | | Minicomputer Collector / Enthusiast | 01760-2098 | | mailto:carl_friend at mathworks.com +----------------------------+ | http://users.rcn.com/crfriend/museum | ICBM: +42:18:00 -71:21:03 | +-----------------------------------------+----------------------------+ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From guidosh at gmail.com Wed Jul 14 14:17:58 2010 From: guidosh at gmail.com (Guy Waugh) Date: Wed, 14 Jul 2010 13:17:58 +0100 Subject: Cannot open command file for update In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> References: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> Message-ID: Hi Brian, On my system the /usr/local/nagios/var/rw directory has permissions drwxrwsr-x. This is the only difference I can see between my system and yours. Regards, Guy. On 14 July 2010 12:50, Brian O'Mahony wrote: > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' > for update! > > The permissions on the external command file and/or directory may be > incorrect. Read the FAQs on how to setup proper permissions. > > An error occurred while attempting to commit your command for processing. > > > > I did however recently do a restore of the machine (I restored an old copy > of the VM and then copied over the backup data). > > > > > > When I change the permissions, next time I click commit, it goes back to > being un-openable: > > > > [root at nagios servers]# ls -al /usr/local/nagios/var/r* > > > > /usr/local/nagios/var/rw: > > total 2 > > drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 . > > drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 .. > > prw-rw---- 1 nagios nagios 0 Jul 14 12:40 nagios.cmd > > > > B > > > > The information in this email is confidential and may be legally privileged. > It is intended solely for the addressee. Access to this email by anyone else > is unauthorized. If you are not the intended recipient, any disclosure, > copying, distribution or any action taken or omitted to be taken in reliance > on it, is prohibited and may be unlawful. If you are not the intended > addressee please contact the sender and dispose of this e-mail. Thank you. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Wed Jul 14 15:47:40 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Wed, 14 Jul 2010 08:47:40 -0500 Subject: NDO only processing some hosts Message-ID: Is there a way to limit which hosts get put into the NDO database? My install is getting a bit big and NDO is taking up too much of the CPU and making the system sluggish. If i turn of NDO it works fine. I use ndo for some custom pages for groups that do not have access to nagios and only need to check like 80 services and 40 hosts for those pages and the other 800 hosts and 3000 services don't need to be in the database. Maybe I am missing some NDO optimizations too? The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should not be having any problems. Greg Pangrazio pangrazi at gmail.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Wed Jul 14 15:40:01 2010 From: lists at xodus.org (Marc Powell) Date: Wed, 14 Jul 2010 08:40:01 -0500 Subject: Cannot open command file for update In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> References: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> Message-ID: <9F0B710E-AA6C-40D2-9FA1-5BE214146EE4@xodus.org> On Jul 14, 2010, at 6:50 AM, Brian O'Mahony wrote: > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! > The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. > An error occurred while attempting to commit your command for processing. > [root at nagios servers]# ls -al /usr/local/nagios/var/r* > > /usr/local/nagios/var/rw: > total 2 > drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 . > drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 .. > prw-rw---- 1 nagios nagios 0 Jul 14 12:40 nagios.cmd Stop nagios and run 'make install-commandmode' from the original tarball you installed from or -- chmod 775 /usr/local/nagios/var/rw chmod g+s /usr/local/nagios/var/rw make sure that the user your web server runs as is a member of the nagcmd group restart apache, restart nagios. HTH -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 herb-j.com Wed Jul 14 16:05:14 2010 From: nagios at herb-j.com (Herb J.) Date: Wed, 14 Jul 2010 10:05:14 -0400 Subject: NDO only processing some hosts In-Reply-To: References: Message-ID: <4C3DC41A.9040000@herb-j.com> Unless you wish to somehow modify the source code to ignore certain hosts (a very risky proposition unless you are good at C), I'd recommend against trying to limit the number of hosts that NDO puts in the database. Also, having that many services in NDO shouldn't be an issue with the hardware you are running (we have almost 7 times as many hosts and services in our Nagios installation and NDO doesn't take any time to save the data). There are a number of database optimizations that can be done to the MySQL database tables. For starters, make sure all of your tables are using InnoDB instead of MyISAM. Secondly, you may wish to lower the amount of time that NDO saves some of the various metrics (e.g., service check data) because smaller tables are easier to prune old data from. And depending on the data you need exported, you may also wish to modify the "data_processing_options directive in the NDO config file. Depending on how you extract the data from the NDO database, you may need to add an extra table index here and there to speed things up. On 07/14/2010 09:47 AM, Greg Pangrazio wrote: > Is there a way to limit which hosts get put into the NDO database? My > install is getting a bit big and NDO is taking up too much of the CPU > and making the system sluggish. If i turn of NDO it works fine. > > I use ndo for some custom pages for groups that do not have access to > nagios and only need to check like 80 services and 40 hosts for those > pages and the other 800 hosts and 3000 services don't need to be in > the database. > > Maybe I am missing some NDO optimizations too? > > The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should > not be having any problems. > > Greg Pangrazio > pangrazi at gmail.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Wed Jul 14 16:10:03 2010 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Wed, 14 Jul 2010 15:10:03 +0100 Subject: Cannot open command file for update In-Reply-To: <9F0B710E-AA6C-40D2-9FA1-5BE214146EE4@xodus.org> References: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDC5D@MAIL06.curamsoftware.com> <9F0B710E-AA6C-40D2-9FA1-5BE214146EE4@xodus.org> Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF301430C9BDD6B@MAIL06.curamsoftware.com> Brilliant Mark, thanks Can you explain how this would have happened? TBH the OS restore was from last Dedember-ish, when I first installed nagios, but I don't remember doing this step previously... Thanks B -----Original Message----- From: Marc Powell [mailto:lists at xodus.org] Sent: Wednesday, July 14, 2010 2:40 PM To: Nagios Users List Subject: Re: [Nagios-users] Cannot open command file for update On Jul 14, 2010, at 6:50 AM, Brian O'Mahony wrote: > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! > The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. > An error occurred while attempting to commit your command for processing. > [root at nagios servers]# ls -al /usr/local/nagios/var/r* > > /usr/local/nagios/var/rw: > total 2 > drwxr-xr-x 2 nagios nagcmd 1024 Jul 14 12:40 . > drwxrwxrwx 6 nagios nagios 1024 Jul 14 12:42 .. > prw-rw---- 1 nagios nagios 0 Jul 14 12:40 nagios.cmd Stop nagios and run 'make install-commandmode' from the original tarball you installed from or -- chmod 775 /usr/local/nagios/var/rw chmod g+s /usr/local/nagios/var/rw make sure that the user your web server runs as is a member of the nagcmd group restart apache, restart nagios. HTH -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steve.Onotsky at broadridge.com Wed Jul 14 16:29:36 2010 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Wed, 14 Jul 2010 10:29:36 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: References: , , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , , , , , Message-ID: <30A417B62E7EE448B3864ADC881CEFD60D785586@missemsa01.bsg.ad.adp.com> Steve F., Try `touch .hushlogin` as the nagios user, in its homedir, on the target host. That *should* cause ssh to suppress any remote-side banner/motd from being displayed in-session. I learned that one a few years ago, when automating some business logic, to reduce the amount of logging taking place. It should suit your purposes here (if it is, in fact, that extra line of text that's throwing off the check). Cheers From: steve f [mailto:a31modela at hotmail.com] Sent: July-13-10 18:34 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work If I remember, that line is in the sshd.config for the auth users banner. I should be able to comment it out to test it. Didn't think about that... I'll dial in when I get home & try it.. Thanks Benny for the info, Steve > Date: Tue, 13 Jul 2010 17:22:35 -0500 > From: benny at bennyvision.com > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work > > > > I also tried this as well from the server , which does work.... > > > > ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 > > > > Authorized users only. > > > > USERS OK - 0 users currently logged in |users=0;5;8;0 > > > > > > This tells me that > > 1. ssh as Nagios works > > 2. the check_users script runs on the remote client fine > > 3. 2 - way communication is good between the client & sever as I got the > > response back > > > > I am thinking there has to be something funky in the check_by_ssh script. > > Sound right ?? > > Waitaminute... Where did that "Authorized users only" part come > from? > > Nagios expects a single line of text, and SSH commands typically > don't display banners (in my experience). Is that a banner that > appears from the remote host? I wonder if that is confusing > things. Can it be temporarily disabled to see if it changes the > behavior? > > Benny > > > -- > "Well, we *could* hunt down the perpetrators, pool some $$, and > hire 3 or 4 baseball-bat wielding professional explainers to go > explain our position to them. Figuring out how to do so without > breaking any laws is the tough part..." > -- Valdis Kletnieks, 2009-01-23 > > > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Wed Jul 14 16:47:28 2010 From: a31modela at hotmail.com (steve f) Date: Wed, 14 Jul 2010 10:47:28 -0400 Subject: Going Nuts trying to get check_by_ssh to work In-Reply-To: <4C3CFD7D.8040203@cyber-office.net> References: , , , <8f7d869c465698dce28f3b195f46f20e.squirrel@webmail.stinkweasel.net>, , , , , , , , , <82d1b5511ce66d35c8cb1757ba6bd1f2.squirrel@webmail.stinkweasel.net>, <4C3CFD7D.8040203@cyber-office.net> Message-ID: Thanks for your help with this. I commented out the sshd.conf section calling for a banner & resent the following successfully: /usr/local/nagios/libexec> ./check_by_ssh -H 10.X.XXX.XXX -C '/usr/local/nagios/libexec/check_load -w 5.0 -c 10.0' OK - load average: 0.12, 0.15, 0.16|load1=0.120;5.000;10.000;0; load5=0.150;5.000;10.000;0; load15=0.160;5.000;10.000;0; Edited the nagios cfg files & looks good now. I cannot run my clients without the banner , due to SOX & PCI compliance. So, what I was able to do is run the check_by_ssh plugin with the -q option and after putting the banner piece back in, the check works perfect. ./check_by_ssh -H 10.xxx.xxx.xxx -C '/usr/local/nagios/libexec/check_load -w 5.0 -c 10.0' -q OK - load average: 0.55, 0.33, 0.22|load1=0.550;5.000;10.000;0; load5=0.330;5.000;10.000;0; load15=0.220;5.000;10.000;0; Again, thanks for your involvement getting this resolved, Rod & Benny. Hopefully it helps someone else down the road. Regards, Steve > Date: Tue, 13 Jul 2010 16:57:49 -0700 > From: raanders at cyber-office.net > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work > > On 07/13/2010 04:03 PM, C. Bensend wrote: > > > >> If I remember, that line is in the sshd.config for the auth users banner. > >> I should be able to comment it out to test it. > >> > >> Didn't think about that... I'll dial in when I get home& try it.. > > > > If you're running a recent release of OpenSSH, you might be able > > to use a match directive to skip the banner for connections > > originating with your Nagios server... Off the top of my head, > > I don't recall if that is one of the options you can override > > with match. > > The simplest way I've found to avoid the banner is to do it like this. > > ssh root at host.example.com 'cat /etc/rsyslog.conf' > > > \\||/ > Rod > -- > > > > Please let us know what happens! > > > > Benny > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Wed Jul 14 17:31:27 2010 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Wed, 14 Jul 2010 17:31:27 +0200 Subject: Nagios for iPhone Message-ID: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> Hi, Anyone using an easy interface for Nagios on iPhone? I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone. Any hints? Ciao, Giorgio ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Wed Jul 14 18:19:20 2010 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 14 Jul 2010 12:19:20 -0400 Subject: Nagios for iPhone In-Reply-To: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> Message-ID: <4C3DE388.70304@gmail.com> I didn't want to expose our Nagios URL to the world as if it was compromised it would give an attacker way too much "inside knowledge" of our network. I believe Nagios is fairly secure, but its a lot of PHP and other open source scripting languages, as well as third party addons that may not hold up too well to brute force attempts or might even have some lazy coding. As such, I have an outside server with a hardened access rule that acts as a proxy to the inside Nagios URL, then use iNag to monitor it. Best $10 I've ever spent. A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan On 7/14/10 11:31 AM, Giorgio Zarrelli wrote: > Hi, > > Anyone using an easy interface for Nagios on iPhone? > > I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone. > > Any hints? > > Ciao, > > Giorgio > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Wed Jul 14 19:23:31 2010 From: lscarneiro at veltrac.com.br (Leonardo Carneiro - Veltrac) Date: Wed, 14 Jul 2010 14:23:31 -0300 Subject: Nagios for iPhone In-Reply-To: <4C3DE388.70304@gmail.com> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <4C3DE388.70304@gmail.com> Message-ID: <4C3DF293.6070406@veltrac.com.br> Ahnn... WHAT? On 07/14/2010 01:19 PM, Andrew Davis wrote: > I didn't want to expose our Nagios URL to the world as if it was > compromised it would give an attacker way too much "inside knowledge" > of our network. I believe Nagios is fairly secure, but its a lot of > PHP and other open source scripting languages, as well as third party > addons that may not hold up too well to brute force attempts or might > even have some lazy coding. As such, I have an outside server with a > hardened access rule that acts as a proxy to the inside Nagios URL, > then use iNag to monitor it. Best $10 I've ever spent. > A. Davis > Email:nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > > On 7/14/10 11:31 AM, Giorgio Zarrelli wrote: >> Hi, >> >> Anyone using an easy interface for Nagios on iPhone? >> >> I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone. >> >> Any hints? >> >> Ciao, >> >> Giorgio >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first --http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirde at oppy.com Wed Jul 14 19:58:56 2010 From: mirde at oppy.com (Mirza Dedic) Date: Wed, 14 Jul 2010 10:58:56 -0700 Subject: Error with PNP4Nagios / RRDTools Message-ID: My RRD graphs were working fine, but for some reason I get this on one of my graphs: ERROR: STDERR => *** attempt to put segment in horiz list twice (red background with that error) Is there a way to clear this and have the graph continue graphing? Thanks. The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgius at createspace.com Wed Jul 14 20:13:42 2010 From: mgius at createspace.com (Gius, Mark) Date: Wed, 14 Jul 2010 14:13:42 -0400 Subject: Nagios for iPhone In-Reply-To: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> Message-ID: <23193A17705DD246AFFFDF09B779F56F2519DEC140@EX-IAD6-B.ant.amazon.com> I'm not aware of any Iphone-specific interfaces, but I know that if you put In the element, the safari (and android) browser will attempt to do things to make everything fit reasonably on the screen. This site (http://www.iphonemicrosites.com/articles/6-tips-to-optimize-your-current-site-for-the-iphone/) seems to have some reasonable suggestions for quick fixes you can try to make the default interface look better on mobile browsers. -Gius > -----Original Message----- > From: Giorgio Zarrelli [mailto:zarrelli at linux.it] > Sent: Wednesday, July 14, 2010 8:31 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios for iPhone > > Hi, > > Anyone using an easy interface for Nagios on iPhone? > > I do not mean some native iPhone app, I mean something server side like > Nagios 4 iPhone. > > Any hints? > > Ciao, > > Giorgio > ----------------------------------------------------------------------- > ------- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Wed Jul 14 20:37:31 2010 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Wed, 14 Jul 2010 20:37:31 +0200 Subject: Nagios for iPhone In-Reply-To: <4C3DE388.70304@gmail.com> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <4C3DE388.70304@gmail.com> Message-ID: Eheheheh, Thanks for your advice, anyway I neve meant to' expose Nagios. It's for internal use only. Ciao, Giorgio Il giorno 14/lug/2010, alle ore 18:19, Andrew Davis ha scritto: > I didn't want to expose our Nagios URL to the world as if it was compromised it would give an attacker way too much "inside knowledge" of our network. I believe Nagios is fairly secure, but its a lot of PHP and other open source scripting languages, as well as third party addons that may not hold up too well to brute force attempts or might even have some lazy coding. As such, I have an outside server with a hardened access rule that acts as a proxy to the inside Nagios URL, then use iNag to monitor it. Best $10 I've ever spent. > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > On 7/14/10 11:31 AM, Giorgio Zarrelli wrote: >> >> Hi, >> >> Anyone using an easy interface for Nagios on iPhone? >> >> I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone. >> >> Any hints? >> >> Ciao, >> >> Giorgio >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Wed Jul 14 20:38:35 2010 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Wed, 14 Jul 2010 20:38:35 +0200 Subject: Nagios for iPhone In-Reply-To: <23193A17705DD246AFFFDF09B779F56F2519DEC140@EX-IAD6-B.ant.amazon.com> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <23193A17705DD246AFFFDF09B779F56F2519DEC140@EX-IAD6-B.ant.amazon.com> Message-ID: Nice hint, thank you! Ciao, Giorgio Il giorno 14/lug/2010, alle ore 20:13, "Gius, Mark" ha scritto: > I'm not aware of any Iphone-specific interfaces, but I know that if you put > > > > In the element, the safari (and android) browser will attempt to do things to make everything fit reasonably on the screen. > > This site (http://www.iphonemicrosites.com/articles/6-tips-to-optimize-your-current-site-for-the-iphone/) seems to have some reasonable suggestions for quick fixes you can try to make the default interface look better on mobile browsers. > > -Gius > >> -----Original Message----- >> From: Giorgio Zarrelli [mailto:zarrelli at linux.it] >> Sent: Wednesday, July 14, 2010 8:31 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Nagios for iPhone >> >> Hi, >> >> Anyone using an easy interface for Nagios on iPhone? >> >> I do not mean some native iPhone app, I mean something server side like >> Nagios 4 iPhone. >> >> Any hints? >> >> Ciao, >> >> Giorgio >> ----------------------------------------------------------------------- >> ------- >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 20:42:59 2010 From: webknowledge at gmail.com (Marcel) Date: Wed, 14 Jul 2010 15:42:59 -0300 Subject: Nagios for iPhone In-Reply-To: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> Message-ID: I use the statuswml.cgi and it works like a charm. Ah, and I use it as part of the NAGROID, that I looove!!! On Wed, Jul 14, 2010 at 12:31 PM, Giorgio Zarrelli wrote: > Hi, > > Anyone using an easy interface for Nagios on iPhone? > > I do not mean some native iPhone app, I mean something server side like > Nagios 4 iPhone. > > Any hints? > > Ciao, > > Giorgio > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Jul 14 20:52:50 2010 From: webknowledge at gmail.com (Marcel) Date: Wed, 14 Jul 2010 15:52:50 -0300 Subject: Nagios for iPhone In-Reply-To: References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <4C3DE388.70304@gmail.com> Message-ID: Well, Android powered devices with rooted Operational Systems have the ability to connect through VPN and then that's all good. With certificates and paranoid security stuff! regards, On Wed, Jul 14, 2010 at 3:37 PM, Giorgio Zarrelli wrote: > Eheheheh, > > Thanks for your advice, anyway I neve meant to' expose Nagios. It's for > internal use only. > > Ciao, > > Giorgio > > Il giorno 14/lug/2010, alle ore 18:19, Andrew Davis ha > scritto: > > I didn't want to expose our Nagios URL to the world as if it was > compromised it would give an attacker way too much "inside knowledge" of our > network. I believe Nagios is fairly secure, but its a lot of PHP and other > open source scripting languages, as well as third party addons that may not > hold up too well to brute force attempts or might even have some lazy > coding. As such, I have an outside server with a hardened access rule that > acts as a proxy to the inside Nagios URL, then use iNag to monitor it. Best > $10 I've ever spent. > > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > > On 7/14/10 11:31 AM, Giorgio Zarrelli wrote: > > Hi, > > Anyone using an easy interface for Nagios on iPhone? > > I do not mean some native iPhone app, I mean something server side like Nagios 4 iPhone. > > Any hints? > > Ciao, > > Giorgio > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- > http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Wed Jul 14 21:20:08 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Wed, 14 Jul 2010 15:20:08 -0400 Subject: Running a command when Nagios config changes In-Reply-To: <4C3C1A60.6040306@univie.ac.at> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> <4C3C1A60.6040306@univie.ac.at> Message-ID: <4C3E0DE8.7040604@paul.dubuc.org> I would like to have some way of running a command only when Nagios is started, or is restarted from the "Process Commands" menu, or any time Nagios reloads its configuration files. Is there a way to do this? I thought about writing it as a localhost service plugin that simply does nothing if $LASTSERVICECHECK$ > $PROCESSSTARTTIME$ but that doesn't seem optimal. It this the best solution? It would be nice if I could write it as an event handler, but events are only for host or service state changes. This is a Nagios process state change. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 15 02:50:15 2010 From: perlskuul at gmail.com (Goke Ade) Date: Thu, 15 Jul 2010 01:50:15 +0100 Subject: Download nagios tar file. In-Reply-To: References: Message-ID: Hello all, Can someone send me the link to download nagios tar files? Not trial version plz. Thanks On 7/15/10, Goke Ade wrote: > Hello all, > > Can someone send me the link to download nagios tar files? > > Not trial version plz. > > Thanks > > -- > Sent from my mobile device > -- Sent from my mobile device ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Thu Jul 15 05:10:10 2010 From: lists at xodus.org (Marc Powell) Date: Wed, 14 Jul 2010 22:10:10 -0500 Subject: Download nagios tar file. In-Reply-To: References: Message-ID: On Jul 14, 2010, at 7:50 PM, Goke Ade wrote: > Hello all, > > Can someone send me the link to download nagios tar files? http://www.nagios.org, of course. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 15 10:50:15 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 15 Jul 2010 09:50:15 +0100 Subject: Download nagios tar file. In-Reply-To: References: Message-ID: <4C3ECBC7.8010700@flatto.net> Goke Ade wrote: > Hello all, > > Can someone send me the link to download nagios tar files? > > Not trial version plz. > > Thanks > > On 7/15/10, Goke Ade wrote: > >> Hello all, >> >> Can someone send me the link to download nagios tar files? >> >> Not trial version plz. >> >> Thanks >> >> -- >> Sent from my mobile device >> >> > > Just a short question , where did you find a nagios trial version ? Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Thu Jul 15 12:24:45 2010 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Thu, 15 Jul 2010 11:24:45 +0100 Subject: Hiding the hostgroup_name on the Hostgroup Overview screen Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF301430CA982BC@MAIL06.curamsoftware.com> Is there any way rto do this? Ie hide whats in brackets. Im using the hostgroups to split up the different architectures, as well as physical/VM. However, I found I have to put for example "a-windows-base-hostgroup" to get it to be first in list. As I can set the Alias as "Windows Servers" can I disable the bit in brackets ? Thanks B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 15 13:18:52 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 15 Jul 2010 13:18:52 +0200 Subject: ndoutils 1.4b7 vs 1.4b9 In-Reply-To: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80F4C@EXCHANGE-AH.ad.mathworks.com> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> <4C3C1A60.6040306@univie.ac.at> <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80F4C@EXCHANGE-AH.ad.mathworks.com> Message-ID: <4C3EEE9C.9030805@univie.ac.at> Hi, Carl Friend wrote: >> Well I've sent a patch a few months ago to nagios-devel but iirc it's >> only in CVS, not within a new beta release. An Icinga user pointed me to >> that problem. >> >> http://markmail.org/message/jsolx6j6jl74aqpj >> https://dev.icinga.org/issues/219 >> > I caught one of those (the errant declaration) but missed the > botched int vs. long problem. Since I located the patch, I'll give > things another go this evening if I get time. Thanks! > The int vs long problem is normally handled by the compiler, I just changed the way queries are being prepared and handled due to the fact that I wanted IDOUtils to support Postgresql and Oracle too in combination with Icinga Core and the new Icinga Web. So this is a minor flaw, and not causing segfaults on NDOUtils - I just provided that patch too in order to resolve all issues. Sadly this did not reach the community yet, but it can be easily patched yourself - as you just did ;-) > I looked at the lists and didn't see the indices and constraints > alluded to here. Can you point them out, please. Hmmm well we had several discussions on nagios-devel and some off-list too. And especially while developing on the Nagios fork, Icinga. Basically it came up with the duplicated row issue on the servicechecks table which happened to affect systemcommands and timedevents too. It was a major bug in Icinga IDOUtils back in November 2009, which has been evaluated and fixed - also providing upgrade scripts for preventing data loss of existing installations. Postgresql and Oracle were not affected since their unique constraints are fulfilled within the WHERE clauses too. Was quite an easy way to resolve that, but the discussion about NDOUtils having that bug too on the nagios-devel lists died silently in a proposed RFC and nothing happened since then. http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg29949.html http://markmail.org/message/uhpzyksg4dieiulh#query:[Nagios-devel]%20[RFC]%20-%20NDOUtils%20duplicate%20lines%20problem+page:1+mid:qnt2titl2px3cck2+state:results http://markmail.org/message/kz56ajbcthumdx7r?q=[Nagios-devel]+NODutils:+Duplicate+lines+in+servicechecks+table+for+each+service+check&page=1&refer=lxmgqlihzdy4jbg2 http://markmail.org/message/lxmgqlihzdy4jbg2 The proposed way to fix that can be found in the Icinga Dev Tracker: https://dev.icinga.org/issues/173 https://dev.icinga.org/issues/181 https://dev.icinga.org/issues/195 https://dev.icinga.org/issues/209 Considering the newly introduced BINARY select of rows within the objects table - as we discussed about case sensitive WHERE conditions - it comes to another performance issue. The binary comparison of two values might work in smaller environments and without the need of hitting quite high performance on queries. Since MySQL does not set the case sensitive collation to columns by default, the binary comparison was just a workaround to compare that bit by bit. The real solution would have been in changing the collation (thanks to William Preston, the binary selects are gone in IDOUtils 1.0.2) The discussion is quite pro binary, but after my report, nothing else happened. http://markmail.org/message/hga5hsaeo4pcl6fi?q=[Nagios-devel]+Case-insensitive+objects+in+NDOutils You can follow the resolution here: https://dev.icinga.org/issues/361 > changes I applied to the database with the 1.4b9 update. However, > 1.4b9 *does* provide some additional indices that dramatically speed > up certain maintenance operations, so I don't want to lose those. > 1.4b9 does not provide all of them in the mods file, some are still missing (https://dev.icinga.org/issues/228 and GIT repository). And the schema proposes MyISAM as DB engine, which is rather bad if you have some other cleaning scripts running (like Nagios XI proposes an external php cronjob cleaner next to the normal one - which is just lol). MyISAM enforces full table locks and if a DELETE interferes with an INSERT - holy shit, that will be fun for *domod and the core. That's one of the reasons why Icinga IDOUtils insist on InnoDB as DB engine because the housekeeping has been extended into its own thread, not interfering with the normal INSERT/UPDATE procedure. InnoDB slows down an INSERT a bit, but the overall benefit of only having a row lock and cleaning old historical data parallel to getting new data is just wonderful. We had some reports that IDO2DB in comparison with NDO2DB runs ~30% faster... But this patch is rather big and unified for Icinga IDOUtils, developed initially by Hendrik, tested by the team and finally reworked by myself catching up with the community in 1.0.1 - check the blog entries on www.icinga.org :) There are some other bugfixes, and some feature rich enhancements, but regarding the more or less dead development and even more the behavior of Nagios Enterprises and its president cannot convince me to backport those patches onto the actual NDOUtils code. Sadly to say for the community, but well. Anyways, if you consider patching those things yourself, consider Icinga with IDOUtils as an alternative too. Kind regards, Michael PS: Sorry for mentioning Icinga and fork and so on. Since it catches up with the topic, I think it's worth to talk about that a bit with the Nagios community too. -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 15 13:42:29 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 15 Jul 2010 13:42:29 +0200 Subject: NDO only processing some hosts In-Reply-To: References: Message-ID: <4C3EF425.3030605@univie.ac.at> Greg Pangrazio wrote: > Is there a way to limit which hosts get put into the NDO database? My > install is getting a bit big and NDO is taking up too much of the CPU > and making the system sluggish. If i turn of NDO it works fine. > > I use ndo for some custom pages for groups that do not have access to > nagios and only need to check like 80 services and 40 hosts for those > pages and the other 800 hosts and 3000 services don't need to be in > the database. > > Maybe I am missing some NDO optimizations too? > egrep -v "^#|^%" ndo2db.cfg egrep -v "^#|^%" ndomod.cfg version? and consider like mentioned setting data processing options, and the data trimming options. > The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should > not be having any problems. > normally I/O problems if the RDBMS is on the same host. Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 15 13:47:09 2010 From: perlskuul at gmail.com (Goke Ade) Date: Thu, 15 Jul 2010 12:47:09 +0100 Subject: Download nagios tar file. In-Reply-To: <4C3ECBC7.8010700@flatto.net> References: <4C3ECBC7.8010700@flatto.net> Message-ID: It is on http://www.nagios.com/products/nagiosxi/try Thank you On 7/15/10, Assaf Flatto wrote: > Goke Ade wrote: >> Hello all, >> >> Can someone send me the link to download nagios tar files? >> >> Not trial version plz. >> >> Thanks >> >> On 7/15/10, Goke Ade wrote: >> >>> Hello all, >>> >>> Can someone send me the link to download nagios tar files? >>> >>> Not trial version plz. >>> >>> Thanks >>> >>> -- >>> Sent from my mobile device >>> >>> >> >> > Just a short question , where did you find a nagios trial version ? > > Assaf > > -- > Never,Ever Cut A Deal With a Dragon > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Sent from my mobile device ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ryan.c.ash.lu4w at statefarm.com Thu Jul 15 14:13:31 2010 From: ryan.c.ash.lu4w at statefarm.com (Ryan C Ash) Date: Thu, 15 Jul 2010 05:13:31 -0700 Subject: Running a command when Nagios config changes In-Reply-To: <4C3E0DE8.7040604@paul.dubuc.org> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com><4C3C1A60.6040306@univie.ac.at> <4C3E0DE8.7040604@paul.dubuc.org> Message-ID: We run on redhat linux and I use a common init script in /etc/rc.d/init.d/. That would be an easy place to add that additional script. Currently it maintains our pnp4nagios, nsca listener, ndoutils, etc. -----Original Message----- From: Paul M. Dubuc [mailto:work at paul.dubuc.org] Sent: Wednesday, July 14, 2010 2:20 PM To: Nagios Users List Subject: [Nagios-users] Running a command when Nagios config changes I would like to have some way of running a command only when Nagios is started, or is restarted from the "Process Commands" menu, or any time Nagios reloads its configuration files. Is there a way to do this? I thought about writing it as a localhost service plugin that simply does nothing if $LASTSERVICECHECK$ > $PROCESSSTARTTIME$ but that doesn't seem optimal. It this the best solution? It would be nice if I could write it as an event handler, but events are only for host or service state changes. This is a Nagios process state change. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Jul 15 16:12:18 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 15 Jul 2010 09:12:18 -0500 Subject: NDO only processing some hosts In-Reply-To: <4C3EF425.3030605@univie.ac.at> References: <4C3EF425.3030605@univie.ac.at> Message-ID: ndo2db: ndo2db_user=nagios ndo2db_group=nagios socket_type=unix socket_name=/var/cache/nagios3/ndo.sock tcp_port=5668 db_servertype=mysql db_host=localhost db_port= db_name=ndoutils db_prefix=nagios_ db_user=php_user db_pass=php_p at ssw0rd max_timedevents_age=60 max_systemcommands_age=90 max_servicechecks_age=90 max_hostchecks_age=90 max_eventhandlers_age=1440 debug_level=0 debug_verbosity=1 debug_file=@localstatedir@/ndo2db.debug max_debug_file_size=1000000 ndomod: instance_name=default output_type=unixsocket output=/var/cache/nagios3/ndo.sock tcp_port=5668 output_buffer_items=5000 buffer_file=/var/cache/nagios3/ndomod.tmp file_rotation_interval=14400 file_rotation_timeout=60 reconnect_interval=15 reconnect_warning_interval=15 data_processing_options=-1 config_output_options=2 NDO2DB 1.4b7 Thanks, Greg Pangrazio pangrazi at gmail.com On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich wrote: > Greg Pangrazio wrote: >> Is there a way to limit which hosts get put into the NDO database? ?My >> install is getting a bit big and NDO is taking up too much of the CPU >> and making the system sluggish. ?If i turn of NDO it works fine. >> >> I use ndo for some custom pages for groups that do not have access to >> nagios and only need to check like 80 services and 40 hosts for those >> pages and the other 800 hosts and 3000 services don't need to be in >> the database. >> >> Maybe I am missing some NDO optimizations too? >> > egrep -v "^#|^%" ndo2db.cfg > egrep -v "^#|^%" ndomod.cfg > > version? > > and consider like mentioned setting data processing options, and the > data trimming options. > >> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should >> not be having any problems. >> > > normally I/O problems if the RDBMS is on the same host. > > Kind regards, > Michael > > > > -- > DI (FH) Michael Friedrich > michael.friedrich at univie.ac.at > Tel: +43 1 4277 14359 > > Vienna University Computer Center > Universitaetsstrasse 7 A-1010 Vienna, Austria > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 15 16:37:00 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 15 Jul 2010 16:37:00 +0200 Subject: NDO only processing some hosts In-Reply-To: References: <4C3EF425.3030605@univie.ac.at> Message-ID: <4C3F1D0C.5090109@univie.ac.at> Hi, Greg Pangrazio wrote: > max_timedevents_age=60 > If you remove that from data_processing_options, it won't be used in the future. > max_systemcommands_age=90 > max_servicechecks_age=90 > max_hostchecks_age=90 > max_eventhandlers_age=1440 > Quite low values, could be that the cleanup interferes with the inserts (it's cyclic every 60 seconds), but that's just a minor thought. Can you show me a SQL> SELECT COUNT(*) AS CNT FROM nagios_objects; and the summary count of your host and services for futher recommendations. > data_processing_options=-1 > Check on that. Do you really need all data or is it just for pulling status data? You might wanna check this nifty calculator too http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/ The first thing you won't ever need are the timed events. Icinga IDOUtils sample configs have been patched in order to prevent timed event data inserts by default. 182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2) 183 184 data_processing_options=67108861 If you consider far less than that, you might want to check the proposed settings for NagVis (found somewhere at nagios-portal.org) 186 # If you are planning to use NagVis you may want to use the following setting: 187 # 188 #data_processing_options=4061953 But, this is the most common recommandation ;-) 189 # 190 # You may have to experiment in your environment and find the best value yourself! > NDO2DB 1.4b7 > good. read the other thread about newer versions if interested. Kind regards, Michael > > Thanks, > Greg Pangrazio > pangrazi at gmail.com > > > > > On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich > wrote: > >> Greg Pangrazio wrote: >> >>> Is there a way to limit which hosts get put into the NDO database? My >>> install is getting a bit big and NDO is taking up too much of the CPU >>> and making the system sluggish. If i turn of NDO it works fine. >>> >>> I use ndo for some custom pages for groups that do not have access to >>> nagios and only need to check like 80 services and 40 hosts for those >>> pages and the other 800 hosts and 3000 services don't need to be in >>> the database. >>> >>> Maybe I am missing some NDO optimizations too? >>> >>> >> egrep -v "^#|^%" ndo2db.cfg >> egrep -v "^#|^%" ndomod.cfg >> >> version? >> >> and consider like mentioned setting data processing options, and the >> data trimming options. >> >> >>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should >>> not be having any problems. >>> >>> >> normally I/O problems if the RDBMS is on the same host. >> >> Kind regards, >> Michael >> >> >> >> -- >> DI (FH) Michael Friedrich >> michael.friedrich at univie.ac.at >> Tel: +43 1 4277 14359 >> >> Vienna University Computer Center >> Universitaetsstrasse 7 A-1010 Vienna, Austria >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Thu Jul 15 16:59:53 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Thu, 15 Jul 2010 10:59:53 -0400 Subject: Running a command when Nagios config changes In-Reply-To: References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com><4C3C1A60.6040306@univie.ac.at> <4C3E0DE8.7040604@paul.dubuc.org> Message-ID: <4C3F2269.5070401@paul.dubuc.org> Ryan C Ash wrote: > > > > Paul M. Dubuc wrote >> >> I would like to have some way of running a command only when Nagios is >> started, or is restarted from the "Process Commands" menu, or any time >> Nagios reloads its configuration files. Is there a way to do this? I >> thought about writing it as a localhost service plugin that simply does >> nothing if >> >> $LASTSERVICECHECK$> $PROCESSSTARTTIME$ >> >> but that doesn't seem optimal. It this the best solution? It would be >> nice if I could write it as an event handler, but events are only for >> host or service state changes. This is a Nagios process state change. > > We run on redhat linux and I use a common init script in > /etc/rc.d/init.d/. That would be an easy place to add that > additional script. Currently it maintains our pnp4nagios, nsca > listener, ndoutils, etc. Thanks for your response. What I really need is something that will run my script anytime Nagios reads its config files (possible configuration change) so this is only a partial solution. Executing the "Restart the Nagios process" process command from the Process Info screen doesn't create a new Nagios process (it has the same PID after the restart), but it does cause Nagios to reload the configuration and resets the $PROCESSSTARTTIME$ macro value. The localhost plugin I describe above does the job, but I wouldn't be able to guarantee that it would run promptly after the restart event and there seems to be no way to have it just run once instead of at intervals. This isn't a problem for my current use so I can keep doing it this way. It would be nice for Nagios to have a process restart (or config changed) event for which one cold write an event handler script. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Jul 15 17:13:37 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 15 Jul 2010 10:13:37 -0500 Subject: NDO only processing some hosts In-Reply-To: <4C3F1D0C.5090109@univie.ac.at> References: <4C3EF425.3030605@univie.ac.at> <4C3F1D0C.5090109@univie.ac.at> Message-ID: I don't really care about historical data so i was reducing those times to get data out of the DB faster and improve startup times. Should I go back to the defaults there? Here is the SQL +------+ | CNT | +------+ | 3232 | +------+ Really I only need service and host status nothing else is of use to me. Does that mean i want the service status data and/or the service check data. I assume that the host should match. Greg Pangrazio pangrazi at gmail.com On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich wrote: > Hi, > > Greg Pangrazio wrote: >> max_timedevents_age=60 >> > If you remove that from data_processing_options, it won't be used in the > future. > >> max_systemcommands_age=90 >> max_servicechecks_age=90 >> max_hostchecks_age=90 >> max_eventhandlers_age=1440 >> > > Quite low values, could be that the cleanup interferes with the inserts > (it's cyclic every 60 seconds), but that's just a minor thought. > > Can you show me a > > SQL> SELECT COUNT(*) AS CNT FROM nagios_objects; > > and the summary count of your host and services for futher recommendations. > >> data_processing_options=-1 >> > > Check on that. Do you really need all data or is it just for pulling > status data? > You might wanna check this nifty calculator too > http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/ > > The first thing you won't ever need are the timed events. Icinga > IDOUtils sample configs have been patched in order to prevent timed > event data inserts by default. > > ?182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2) > ?183 > ?184 data_processing_options=67108861 > > If you consider far less than that, you might want to check the proposed > settings for NagVis (found somewhere at nagios-portal.org) > > ?186 # If you are planning to use NagVis you may want to use the > following setting: > ?187 # > ?188 #data_processing_options=4061953 > > But, this is the most common recommandation ;-) > > ?189 # > ?190 # You may have to experiment in your environment and find the best > value yourself! > > >> NDO2DB 1.4b7 >> > > good. read the other thread about newer versions if interested. > > Kind regards, > Michael > >> >> Thanks, >> Greg Pangrazio >> pangrazi at gmail.com >> >> >> >> >> On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich >> ?wrote: >> >>> Greg Pangrazio wrote: >>> >>>> Is there a way to limit which hosts get put into the NDO database? ?My >>>> install is getting a bit big and NDO is taking up too much of the CPU >>>> and making the system sluggish. ?If i turn of NDO it works fine. >>>> >>>> I use ndo for some custom pages for groups that do not have access to >>>> nagios and only need to check like 80 services and 40 hosts for those >>>> pages and the other 800 hosts and 3000 services don't need to be in >>>> the database. >>>> >>>> Maybe I am missing some NDO optimizations too? >>>> >>>> >>> egrep -v "^#|^%" ndo2db.cfg >>> egrep -v "^#|^%" ndomod.cfg >>> >>> version? >>> >>> and consider like mentioned setting data processing options, and the >>> data trimming options. >>> >>> >>>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should >>>> not be having any problems. >>>> >>>> >>> normally I/O problems if the RDBMS is on the same host. >>> >>> Kind regards, >>> Michael >>> >>> >>> >>> -- >>> DI (FH) Michael Friedrich >>> michael.friedrich at univie.ac.at >>> Tel: +43 1 4277 14359 >>> >>> Vienna University Computer Center >>> Universitaetsstrasse 7 A-1010 Vienna, Austria >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > -- > DI (FH) Michael Friedrich > michael.friedrich at univie.ac.at > Tel: +43 1 4277 14359 > > Vienna University Computer Center > Universitaetsstrasse 7 A-1010 Vienna, Austria > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 15 17:30:27 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 15 Jul 2010 17:30:27 +0200 Subject: NDO only processing some hosts In-Reply-To: References: <4C3EF425.3030605@univie.ac.at> <4C3F1D0C.5090109@univie.ac.at> Message-ID: <4C3F2993.6030601@univie.ac.at> Greg Pangrazio wrote: > I don't really care about historical data so i was reducing those > times to get data out of the DB faster and improve startup times. > Check on indexes for the MySQL schema. there is a -mod sql script next to the normal db schema definition. > Should I go back to the defaults there? > No it's just fine. The defaults are set to high imho, I patched that in IDOUtils too. > Here is the SQL > +------+ > | CNT | > +------+ > | 3232 | > +------+ > > Really I only need service and host status nothing else is of use to me. > Ok, so basically you need to sum up all needed values e.g. containing 'status'. > Does that mean i want the service status data and/or the service check > data. I assume that the host should match. > checks are considered historical. kind regards, Michael > Greg Pangrazio > pangrazi at gmail.com > > > On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich > wrote: > >> Hi, >> >> Greg Pangrazio wrote: >> >>> max_timedevents_age=60 >>> >>> >> If you remove that from data_processing_options, it won't be used in the >> future. >> >> >>> max_systemcommands_age=90 >>> max_servicechecks_age=90 >>> max_hostchecks_age=90 >>> max_eventhandlers_age=1440 >>> >>> >> Quite low values, could be that the cleanup interferes with the inserts >> (it's cyclic every 60 seconds), but that's just a minor thought. >> >> Can you show me a >> >> SQL> SELECT COUNT(*) AS CNT FROM nagios_objects; >> >> and the summary count of your host and services for futher recommendations. >> >> >>> data_processing_options=-1 >>> >>> >> Check on that. Do you really need all data or is it just for pulling >> status data? >> You might wanna check this nifty calculator too >> http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/ >> >> The first thing you won't ever need are the timed events. Icinga >> IDOUtils sample configs have been patched in order to prevent timed >> event data inserts by default. >> >> 182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2) >> 183 >> 184 data_processing_options=67108861 >> >> If you consider far less than that, you might want to check the proposed >> settings for NagVis (found somewhere at nagios-portal.org) >> >> 186 # If you are planning to use NagVis you may want to use the >> following setting: >> 187 # >> 188 #data_processing_options=4061953 >> >> But, this is the most common recommandation ;-) >> >> 189 # >> 190 # You may have to experiment in your environment and find the best >> value yourself! >> >> >> >>> NDO2DB 1.4b7 >>> >>> >> good. read the other thread about newer versions if interested. >> >> Kind regards, >> Michael >> >> >>> Thanks, >>> Greg Pangrazio >>> pangrazi at gmail.com >>> >>> >>> >>> >>> On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich >>> wrote: >>> >>> >>>> Greg Pangrazio wrote: >>>> >>>> >>>>> Is there a way to limit which hosts get put into the NDO database? My >>>>> install is getting a bit big and NDO is taking up too much of the CPU >>>>> and making the system sluggish. If i turn of NDO it works fine. >>>>> >>>>> I use ndo for some custom pages for groups that do not have access to >>>>> nagios and only need to check like 80 services and 40 hosts for those >>>>> pages and the other 800 hosts and 3000 services don't need to be in >>>>> the database. >>>>> >>>>> Maybe I am missing some NDO optimizations too? >>>>> >>>>> >>>>> >>>> egrep -v "^#|^%" ndo2db.cfg >>>> egrep -v "^#|^%" ndomod.cfg >>>> >>>> version? >>>> >>>> and consider like mentioned setting data processing options, and the >>>> data trimming options. >>>> >>>> >>>> >>>>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should >>>>> not be having any problems. >>>>> >>>>> >>>>> >>>> normally I/O problems if the RDBMS is on the same host. >>>> >>>> Kind regards, >>>> Michael >>>> >>>> >>>> >>>> -- >>>> DI (FH) Michael Friedrich >>>> michael.friedrich at univie.ac.at >>>> Tel: +43 1 4277 14359 >>>> >>>> Vienna University Computer Center >>>> Universitaetsstrasse 7 A-1010 Vienna, Austria >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> >>> >> >> -- >> DI (FH) Michael Friedrich >> michael.friedrich at univie.ac.at >> Tel: +43 1 4277 14359 >> >> Vienna University Computer Center >> Universitaetsstrasse 7 A-1010 Vienna, Austria >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Thu Jul 15 17:38:26 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Thu, 15 Jul 2010 10:38:26 -0500 Subject: NDO only processing some hosts In-Reply-To: References: <4C3EF425.3030605@univie.ac.at> <4C3F1D0C.5090109@univie.ac.at> Message-ID: So i set data_processing_options to 12480 moved the timeouts back to the standards I am still seeing the same behavior. As soon as I start ndoutils the service and host checks stop. In the performance info the number of checks in the last 1min goes to 0 and if i wait long enough the 5 min also goes to 0. As soon as I stop ndoutils it picks right up. Greg Pangrazio pangrazi at gmail.com On Thu, Jul 15, 2010 at 10:13 AM, Greg Pangrazio wrote: > I don't really care about historical data so i was reducing those > times to get data out of the DB faster and improve startup times. > > Should I go back to the defaults there? > > Here is the SQL > +------+ > | CNT ?| > +------+ > | 3232 | > +------+ > > Really I only need service and host status nothing else is of use to me. > > Does that mean i want the service status data and/or the service check > data. ?I assume that the host should match. > > Greg Pangrazio > pangrazi at gmail.com > > > On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich > wrote: >> Hi, >> >> Greg Pangrazio wrote: >>> max_timedevents_age=60 >>> >> If you remove that from data_processing_options, it won't be used in the >> future. >> >>> max_systemcommands_age=90 >>> max_servicechecks_age=90 >>> max_hostchecks_age=90 >>> max_eventhandlers_age=1440 >>> >> >> Quite low values, could be that the cleanup interferes with the inserts >> (it's cyclic every 60 seconds), but that's just a minor thought. >> >> Can you show me a >> >> SQL> SELECT COUNT(*) AS CNT FROM nagios_objects; >> >> and the summary count of your host and services for futher recommendations. >> >>> data_processing_options=-1 >>> >> >> Check on that. Do you really need all data or is it just for pulling >> status data? >> You might wanna check this nifty calculator too >> http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/ >> >> The first thing you won't ever need are the timed events. Icinga >> IDOUtils sample configs have been patched in order to prevent timed >> event data inserts by default. >> >> ?182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2) >> ?183 >> ?184 data_processing_options=67108861 >> >> If you consider far less than that, you might want to check the proposed >> settings for NagVis (found somewhere at nagios-portal.org) >> >> ?186 # If you are planning to use NagVis you may want to use the >> following setting: >> ?187 # >> ?188 #data_processing_options=4061953 >> >> But, this is the most common recommandation ;-) >> >> ?189 # >> ?190 # You may have to experiment in your environment and find the best >> value yourself! >> >> >>> NDO2DB 1.4b7 >>> >> >> good. read the other thread about newer versions if interested. >> >> Kind regards, >> Michael >> >>> >>> Thanks, >>> Greg Pangrazio >>> pangrazi at gmail.com >>> >>> >>> >>> >>> On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich >>> ?wrote: >>> >>>> Greg Pangrazio wrote: >>>> >>>>> Is there a way to limit which hosts get put into the NDO database? ?My >>>>> install is getting a bit big and NDO is taking up too much of the CPU >>>>> and making the system sluggish. ?If i turn of NDO it works fine. >>>>> >>>>> I use ndo for some custom pages for groups that do not have access to >>>>> nagios and only need to check like 80 services and 40 hosts for those >>>>> pages and the other 800 hosts and 3000 services don't need to be in >>>>> the database. >>>>> >>>>> Maybe I am missing some NDO optimizations too? >>>>> >>>>> >>>> egrep -v "^#|^%" ndo2db.cfg >>>> egrep -v "^#|^%" ndomod.cfg >>>> >>>> version? >>>> >>>> and consider like mentioned setting data processing options, and the >>>> data trimming options. >>>> >>>> >>>>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should >>>>> not be having any problems. >>>>> >>>>> >>>> normally I/O problems if the RDBMS is on the same host. >>>> >>>> Kind regards, >>>> Michael >>>> >>>> >>>> >>>> -- >>>> DI (FH) Michael Friedrich >>>> michael.friedrich at univie.ac.at >>>> Tel: +43 1 4277 14359 >>>> >>>> Vienna University Computer Center >>>> Universitaetsstrasse 7 A-1010 Vienna, Austria >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> >> >> >> -- >> DI (FH) Michael Friedrich >> michael.friedrich at univie.ac.at >> Tel: +43 1 4277 14359 >> >> Vienna University Computer Center >> Universitaetsstrasse 7 A-1010 Vienna, Austria >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Thu Jul 15 20:58:57 2010 From: honia2002 at hotmail.com (Honia A) Date: Thu, 15 Jul 2010 14:58:57 -0400 Subject: Adding a line to GUI Message-ID: Hi all, I am new to Nagios and has installed Nagios-3.2.1 on a CentOs machine. When I log in to the GUI and click on the pages from the left frame, I see a grey-ish box on all the pages which has a title corresponding to the page I click on and the rest reads: Last Updated: Thu Jul 15 14:58:26 EDT 2010 Updated every 90 seconds Nagios? Core? 3.2.1 - www.nagios.org Logged in as nagiosadmin I am trying to add a simple line to this box that warns users to be careful not to change anything, but can't seem to find the file in charge with this. Can someone please help me with this? Thanks, h _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at jimavery.me.uk Thu Jul 15 21:30:57 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 15 Jul 2010 20:30:57 +0100 Subject: Adding a line to GUI In-Reply-To: References: Message-ID: On 15 July 2010 19:58, Honia A wrote: > Hi all, > > I am new to Nagios and has installed Nagios-3.2.1 on a CentOs machine. When > I log in to the GUI and click on the pages from the left frame, I see > a?grey-ish box on all the pages which has a title corresponding to the page > I click on and the rest reads: > > Last Updated: Thu Jul 15 14:58:26 EDT 2010 > Updated every 90 seconds > Nagios? Core? 3.2.1 - www.nagios.org > Logged in as nagiosadmin > > I am trying to add a simple?line to this box that warns users to be careful > not to change anything, but can't seem?to find the file in charge with this. > > Can someone please help me with this? I guess it's probably not quite what you're after, but is this any help? :- http://nagios.sourceforge.net/docs/3_0/cgiincludes.html I haven't tried it myself btw. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Thu Jul 15 21:44:34 2010 From: honia2002 at hotmail.com (Honia A) Date: Thu, 15 Jul 2010 15:44:34 -0400 Subject: Adding a line to GUI In-Reply-To: References: , Message-ID: HI Jim, It was very helpful thank you. I did a search for *.ssi on the same machine I have Nagios installed. But it didn't return anything. My question is if there is a way to change an existing text... I appreciate your input though. Regards, h > Date: Thu, 15 Jul 2010 20:30:57 +0100 > From: jim at jimavery.me.uk > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Adding a line to GUI > > On 15 July 2010 19:58, Honia A wrote: > > Hi all, > > > > I am new to Nagios and has installed Nagios-3.2.1 on a CentOs machine. When > > I log in to the GUI and click on the pages from the left frame, I see > > a grey-ish box on all the pages which has a title corresponding to the page > > I click on and the rest reads: > > > > Last Updated: Thu Jul 15 14:58:26 EDT 2010 > > Updated every 90 seconds > > Nagios? Core? 3.2.1 - www.nagios.org > > Logged in as nagiosadmin > > > > I am trying to add a simple line to this box that warns users to be careful > > not to change anything, but can't seem to find the file in charge with this. > > > > Can someone please help me with this? > > > I guess it's probably not quite what you're after, but is this any help? :- > > http://nagios.sourceforge.net/docs/3_0/cgiincludes.html > > I haven't tried it myself btw. > > hth, > > Jim > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bparish at cognex.com Thu Jul 15 22:02:14 2010 From: bparish at cognex.com (Parish, Brent) Date: Thu, 15 Jul 2010 16:02:14 -0400 Subject: Adding a line to GUI In-Reply-To: References: , Message-ID: Hi. If you are ok with posting it on the first (main) page, that is editable ( see the main.php file under your nagios/share directory) If you want to keep that message on all the pages (e.g. in that little gray box), it looks like that is generated in each of the cgi pages, which is compiled code. These can be found in the Nagios/sbin directory. It makes sense that you could edit the cgi source code and just recompile those.... - Brent From: Honia A [mailto:honia2002 at hotmail.com] Sent: Thursday, July 15, 2010 3:45 PM To: Nagios-users Subject: Re: [Nagios-users] Adding a line to GUI HI Jim, It was very helpful thank you. I did a search for *.ssi on the same machine I have Nagios installed. But it didn't return anything. My question is if there is a way to change an existing text... I appreciate your input though. Regards, h > Date: Thu, 15 Jul 2010 20:30:57 +0100 > From: jim at jimavery.me.uk > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Adding a line to GUI > > On 15 July 2010 19:58, Honia A wrote: > > Hi all, > > > > I am new to Nagios and has installed Nagios-3.2.1 on a CentOs machine. When > > I log in to the GUI and click on the pages from the left frame, I see > > a grey-ish box on all the pages which has a title corresponding to the page > > I click on and the rest reads: > > > > Last Updated: Thu Jul 15 14:58:26 EDT 2010 > > Updated every 90 seconds > > Nagios(r) Core(tm) 3.2.1 - www.nagios.org > > Logged in as nagiosadmin > > > > I am trying to add a simple line to this box that warns users to be careful > > not to change anything, but can't seem to find the file in charge with this. > > > > Can someone please help me with this? > > > I guess it's probably not quite what you're after, but is this any help? :- > > http://nagios.sourceforge.net/docs/3_0/cgiincludes.html > > I haven't tried it myself btw. > > hth, > > Jim > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Thu Jul 15 23:08:24 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Thu, 15 Jul 2010 17:08:24 -0400 Subject: How to find active check status for a service? Message-ID: <4C3F78C8.1010908@paul.dubuc.org> Is there some programmatic way to find out whether or not active checks are enabled or disabled for a service in Nagios. We have a requirement for an audit to provide notifications for certain critical services that may have their active checks disabled so they aren't left that way any longer than necessary. Thanks, Paul Dubuc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Jul 15 23:28:49 2010 From: holger at CIS.FU-Berlin.DE (Holger =?iso-8859-1?Q?Wei=DF?=) Date: Thu, 15 Jul 2010 23:28:49 +0200 Subject: How to find active check status for a service? In-Reply-To: <4C3F78C8.1010908@paul.dubuc.org> References: <4C3F78C8.1010908@paul.dubuc.org> Message-ID: <20100715212849.GO4606669@CIS.FU-Berlin.DE> * Paul M. Dubuc [2010-07-15 17:08]: > Is there some programmatic way to find out whether or not active checks are > enabled or disabled for a service in Nagios. We have a requirement for an > audit to provide notifications for certain critical services that may have > their active checks disabled so they aren't left that way any longer than > necessary. You could parse the status file, see ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/disabled-notifications for an example. Holger ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Thu Jul 15 23:53:10 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Thu, 15 Jul 2010 17:53:10 -0400 Subject: How to find active check status for a service? In-Reply-To: <20100715212849.GO4606669@CIS.FU-Berlin.DE> References: <4C3F78C8.1010908@paul.dubuc.org> <20100715212849.GO4606669@CIS.FU-Berlin.DE> Message-ID: <4C3F8346.2000705@paul.dubuc.org> Holger Wei? wrote: > * Paul M. Dubuc [2010-07-15 17:08]: >> Is there some programmatic way to find out whether or not active checks are >> enabled or disabled for a service in Nagios. We have a requirement for an >> audit to provide notifications for certain critical services that may have >> their active checks disabled so they aren't left that way any longer than >> necessary. > > You could parse the status file, see > > ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/disabled-notifications > > for an example. Thanks! Using MK Livestatus (http://mathias-kettner.de/checkmk_livestatus.html) is also a possibility. Paul Dubuc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 gmail.com Fri Jul 16 00:22:40 2010 From: tonvoon at gmail.com (Ton Voon) Date: Thu, 15 Jul 2010 23:22:40 +0100 Subject: How to find active check status for a service? In-Reply-To: <4C3F78C8.1010908@paul.dubuc.org> References: <4C3F78C8.1010908@paul.dubuc.org> Message-ID: On 15 Jul 2010, at 22:08, Paul M. Dubuc wrote: > Is there some programmatic way to find out whether or not active > checks are > enabled or disabled for a service in Nagios. We have a requirement > for an > audit to provide notifications for certain critical services that > may have > their active checks disabled so they aren't left that way any longer > than > necessary. If you don't mind setting it global wide, you can use the retained_(host|service)_attribute_mask: http://nagios.sourceforge.net/docs/3_0/configmain.html This was added by Ethan a few years back, inspired by some code we contributed from Opsview for our slave cluster failover logic, where we reset certain flags in the retained.dat file on a reload. This means you can strip the "active_checks_enabled" to always be based on the configuration file setting. Ton ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 gmail.com Fri Jul 16 00:32:49 2010 From: tonvoon at gmail.com (Ton Voon) Date: Thu, 15 Jul 2010 23:32:49 +0100 Subject: failover setup help In-Reply-To: References: Message-ID: <4FDADBB3-83A6-49F1-AE02-B2C4B09885A8@gmail.com> On 9 Jul 2010, at 18:16, Shadhin Rahman wrote: > All, > I have a failover setup with nagios. I also have ndoUtils setup > for collecting historical data. My setup is described below. > > master server - running nagios and ndoutils collecting data. The > master is also sending host state and service state data using nsca > to failover server. master server has active host check, service > check and notification enabled. > > slave server - running nagios and partial ndoutil. no active checks > are being done in this slave server. The slave server also has > notification disabled. nsca daemon is listening for service and > host status from master server. > > The problem: I am facing the problem where acknowledgements and > comments are not up to date in the slave server. I can possibly > transfer the retention file to slave server and fix the comments > part of the problem. However I do not know how to get all the > acknowledgements transfer to the slave server. > > It would be great if someone can point me to the right direction, > how I can solve the acknowledgement problem I describe above. > Thanks in advance. You probably want to analyse what we've done in Opsview (http://opsview.com ). There's two parts to this problem: 1) How to send commands to multiple Nagios instances 2) How to keep them in sync In this screencast, http://www.opsview.com/learn/demos-tutorials/how-opsview-uses-nagios , (registration required), about 04:30 in, I mention a broker module we developed called "altinity_distributed_commands". It hooks into Nagios and, for certain commands, writes them out so that a separate process can take those and push it out to slave systems. This is how we solve (1). For (2), we added some new code to Nagios (its in our development repo: http://github.com/tonvoon/opsview-nagios) there is a synchronise ability, at reload time or via an external command called "SYNC_STATE_INFORMATION", where it reads a retention.dat-like file and changes certain characteristics of a host/service, such as whether it is acknowledged or not. This allows the Opsview master to be the single source of state information for all its slave systems. Ton ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew1.li at citi.com Fri Jul 16 01:37:05 2010 From: andrew1.li at citi.com (Li, Andrew1 ) Date: Fri, 16 Jul 2010 09:37:05 +1000 Subject: messages for boss In-Reply-To: <62101.10.160.5.67.1277485438.squirrel@correoweb.dap.es> References: <20100625144615.ee4a6199.etorres@dap.es> <0E224CCCAB9A374293F138E39621972C0E22AB1A@WPSCV6MN.OPR.STATEFARM.ORG> <62101.10.160.5.67.1277485438.squirrel@correoweb.dap.es> Message-ID: <1279237025.29437.389.camel@localhost> On Sat, 2010-06-26 at 03:03, etorres at dap.es wrote: > if disable notifications for all services. > > Not notify the other, no? Not really. You can control notification in each service definition. Check out the Nagios doc "Configuring Nagios"->"Object definitions". Andrew ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ecables at gmail.com Fri Jul 16 01:56:36 2010 From: ecables at gmail.com (Eric Cables) Date: Thu, 15 Jul 2010 16:56:36 -0700 Subject: Running a command when Nagios config changes In-Reply-To: <4C3F2269.5070401@paul.dubuc.org> References: <0528A1CB48AB5B4FA0D8FD7E0D94D81DA04AA80C2C@EXCHANGE-AH.ad.mathworks.com> <4C3C1A60.6040306@univie.ac.at> <4C3E0DE8.7040604@paul.dubuc.org> <4C3F2269.5070401@paul.dubuc.org> Message-ID: Why not use SEC (http://simple-evcorr.sourceforge.net/), or something similar, to watch the nagios.log file and match on a regexp pattern. When that pattern is seen, run the script of your choice. I assume that anytime the Nagios process is restarted a log will be generated there. -- Eric Cables On Thu, Jul 15, 2010 at 7:59 AM, Paul M. Dubuc wrote: > Ryan C Ash wrote: > > > > > > > > Paul M. Dubuc wrote > >> > >> I would like to have some way of running a command only when Nagios is > >> started, or is restarted from the "Process Commands" menu, or any time > >> Nagios reloads its configuration files. Is there a way to do this? I > >> thought about writing it as a localhost service plugin that simply does > >> nothing if > >> > >> $LASTSERVICECHECK$> $PROCESSSTARTTIME$ > >> > >> but that doesn't seem optimal. It this the best solution? It would be > >> nice if I could write it as an event handler, but events are only for > >> host or service state changes. This is a Nagios process state change. > > > > We run on redhat linux and I use a common init script in > > /etc/rc.d/init.d/. That would be an easy place to add that > > additional script. Currently it maintains our pnp4nagios, nsca > > listener, ndoutils, etc. > > Thanks for your response. > > What I really need is something that will run my script anytime Nagios > reads > its config files (possible configuration change) so this is only a partial > solution. Executing the "Restart the Nagios process" process command from > the > Process Info screen doesn't create a new Nagios process (it has the same > PID > after the restart), but it does cause Nagios to reload the configuration > and > resets the $PROCESSSTARTTIME$ macro value. The localhost plugin I describe > above does the job, but I wouldn't be able to guarantee that it would run > promptly after the restart event and there seems to be no way to have it > just > run once instead of at intervals. This isn't a problem for my current use > so > I can keep doing it this way. > > It would be nice for Nagios to have a process restart (or config changed) > event for which one cold write an event handler script. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danilo.godec at agenda.si Fri Jul 16 09:02:38 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Fri, 16 Jul 2010 09:02:38 +0200 Subject: One notification for a host or service? Message-ID: <4C40040E.8010206@agenda.si> Hello, is it possible to setup Nagios 3 so that only one notification is sent out for a downed host or service, but still have the possibility of escalating to a 2nd (3rd, ...) level contact if the problem hasn't been fixed 'in time'? And when the host/service recovers, only contacts that have been notified about 'down' should receive 'RECOVERY' notification. I tried doing it with a 'dummy' default contact and escalations, but I can't quite get it. So my 'host' templates include: check_interval 1 retry_interval 1 max_check_attempts 2 notification_interval 1 notification_options d,r contact_groups dummy Then I added these escalations: define hostescalation { hostgroup_name MYGROUP contact_groups my_real_contact_group first_notification 3 last_notification 4 notification_interval 0 escalation_period 24x7 escalation_options d,u } define hostescalation { hostgroup_name MYGROUP contact_groups my_real_contact_group first_notification 1 last_notification 0 notification_interval 0 escalation_period 24x7 escalation_options r } This *almost* works - the problem is, I always get a RECOVERY notification - even if the host recovers before I wasn't notified about the DOWN. Is there a better way for doing this? Danilo -------------- next part -------------- A non-text attachment was scrubbed... Name: danilo_godec.vcf Type: text/x-vcard Size: 216 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harald.boehmecke at bertelsmann.de Fri Jul 16 13:23:39 2010 From: harald.boehmecke at bertelsmann.de (Harald =?ISO-8859-1?Q?B=F6hmecke?=) Date: Fri, 16 Jul 2010 13:23:39 +0200 Subject: Nagios Freeze after Eventhandler execution In-Reply-To: <4C3DE388.70304@gmail.com> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <4C3DE388.70304@gmail.com> Message-ID: <1279279419.2605.123.camel@BDI12718> Hi All, Need help with an Eventhandler! After Nagios (successfully) executes the eventhandler, no further checks are done on any host. Nagios is like in a stopped or stalled state. Here is my config. I actually took it from the manual: define service { host_name blah service_description NSCA use local_1m check_command check_tcp!5667 event_handler handler_restart_nsca event_handler_enabled 1 register 1 } define command { command_name handler_restart_nsca command_line /usr/share/nagios3/plugins/eventhandlers/restart-nsca $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } /usr/share/nagios3/plugins/eventhandlers/restart-nsca #!/bin/sh # # Event handler script for restarting the web server on the local machine # # Note: This script will only restart the web server if the service is # retried 3 times (in a "soft" state) or if the web service somehow # manages to fall into a "hard" error state. # # What state is the NSCA service in? case "$1" in OK) # The service just came back up, so don't do anything... ;; WARNING) # We don't really care about warning states, since the service is probably still running... ;; UNKNOWN) # We don't know what might be causing an unknown error, so don't do anything... ;; CRITICAL) # Aha! The HTTP service appears to have a problem - perhaps we should restart the server... # Is this a "soft" or a "hard" state? case "$2" in # We're in a "soft" state, meaning that Nagios is in the middle of retrying the # check before it turns into a "hard" state and contacts get notified... SOFT) # What check attempt are we on? We don't want to restart the web server on the first # check, because it may just be a fluke! case "$3" in # Wait until the check has been tried 3 times before restarting the web server. # If the check fails on the 4th time (after we restart the web server), the state # type will turn to "hard" and contacts will be notified of the problem. # Hopefully this will restart the web server successfully, so the 4th check will # result in a "soft" recovery. If that happens no one gets notified because we # fixed the problem! 3) echo -n "Restarting NSCA service (3rd soft critical state)..." # Call the init script to restart the NSCA server /etc/init.d/nsca restart ;; esac ;; # The HTTP service somehow managed to turn into a hard error without getting fixed. # It should have been restarted by the code above, but for some reason it didn't. # Let's give it one last try, shall we? # Note: Contacts have already been notified of a problem with the service at this # point (unless you disabled notifications for this service) HARD) echo -n "Restarting HTTP service..." # Call the init script to restart the NSCA server /etc/init.d/nsca restart ;; esac ;; esac exit 0 Mit freundlichem Gru?, Harald B?hmecke Network / Infrastructure Services Informationstechnologie D-CSIT-ICS ------------------------------------------------- arvato services An der Autobahn 33310 G?tersloh http://www.arvato-services.de harald.milz at bertelsmann.de Tel. +49 (0) 52 41 - 80-85660 Fax. +49 (0) 52 41 - 80-9391 Mobile +49 (0) 160-473-9965 arvato direct services GmbH: Sitz G?tersloh| Amtsgericht G?tersloh HRB 3826 | Gesch?ftsf?hrer Ralf Bierfischer, Bodo Kr?nfeld, Markus Schmedtmann, Eckhard S?dmersen ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Diese E-Mail und eventuelle Anlagen k?nnen vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht gestattet ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This e-mail and any attachments may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is forbidden. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Fri Jul 16 14:47:55 2010 From: honia2002 at hotmail.com (Honia A) Date: Fri, 16 Jul 2010 08:47:55 -0400 Subject: Adding a line to GUI In-Reply-To: References: , , , , Message-ID: Thanks for your reply Bret. I would like the second idea (keep that message on all the pages in that same gray box). So I looked into that directory you mentioned (/usr/local/nagios/sbin) but they are all the compiled cgi files. When I opened them with UltraEdit and Notepad, they were not editable, the lines look something like this (below). Is there any way I could edit them or may be there are pre-compiled versions of the files which I could edit? Thanks, h 8?h? ??????% Date: Thu, 15 Jul 2010 20:30:57 +0100 > From: jim at jimavery.me.uk > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Adding a line to GUI > > On 15 July 2010 19:58, Honia A wrote: > > Hi all, > > > > I am new to Nagios and has installed Nagios-3.2.1 on a CentOs machine. When > > I log in to the GUI and click on the pages from the left frame, I see > > a grey-ish box on all the pages which has a title corresponding to the page > > I click on and the rest reads: > > > > Last Updated: Thu Jul 15 14:58:26 EDT 2010 > > Updated every 90 seconds > > Nagios? Core? 3.2.1 - www.nagios.org > > Logged in as nagiosadmin > > > > I am trying to add a simple line to this box that warns users to be careful > > not to change anything, but can't seem to find the file in charge with this. > > > > Can someone please help me with this? > > > I guess it's probably not quite what you're after, but is this any help? :- > > http://nagios.sourceforge.net/docs/3_0/cgiincludes.html > > I haven't tried it myself btw. > > hth, > > Jim > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started. _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Fri Jul 16 15:06:39 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Fri, 16 Jul 2010 15:06:39 +0200 Subject: Adding a line to GUI In-Reply-To: References: , , , , Message-ID: <4C40595F.4070200@univie.ac.at> Honia A wrote: > Thanks for your reply Bret. > > I would like the second idea (keep that message on all the pages in > that same gray box). So I looked into that directory you mentioned > (/usr/local/nagios/sbin) but they are all the compiled cgi files. When > I opened them with UltraEdit and Notepad, they were not editable, the > lines look something like this (below). > > Is there any way I could edit them or may be there are pre-compiled > versions of the files which I could edit? you have to edit the appropriate .c files and then recompile the cgis out of them. since this a generic box, it's only defined once. $ grep -r display_info_table * points to cgi/cgiutils.c Within this function you will see a bunch of html code within printf calls. There you can edit/add your preferred line. e.g. adding below if(current_authdata!=NULL) printf("Logged in as %s
    \n",(!strcmp(current_authdata->username,""))?"?":current_authdata->username); this printf("beware of the nagios root, don't change anything!
    \n"); After that, run make clean && make cgis && sudo make install-cgis Should do the trick ;-) Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Fri Jul 16 16:10:00 2010 From: yuris at smtp.com (yuris) Date: Fri, 16 Jul 2010 17:10:00 +0300 Subject: Nagios plugin always returns 0 value Message-ID: <4C406838.2060209@smtp.com> Hello, I made a plugin that counts mails in particular postfix queues and when invoke from shell at remote host (mail server) it returns me valid values on stdout: ./check_postfixq.sh -w 30000 -c 50000 -p OK - total mails in queues: 10606 | mail in queues=10606;30000;50000;0 but when I invoke it from Nagios server it always returns 0 as if all queues are empty: ./check_nrpe -H mail.server.hostname -c check_postfixq OK - total mails in queues: 0 | mail in queues=0;30000;50000;0 What's wrong with this plugin? If any configs are necessary or something I'll provide them. If anyone have any reasonable idea please share. -- best regards, yuris ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Fri Jul 16 16:50:42 2010 From: benny at bennyvision.com (C. Bensend) Date: Fri, 16 Jul 2010 09:50:42 -0500 Subject: Nagios plugin always returns 0 value In-Reply-To: <4C406838.2060209@smtp.com> References: <4C406838.2060209@smtp.com> Message-ID: > I made a plugin that counts mails in particular postfix queues and when > invoke from shell at remote host (mail server) it returns me valid > values on stdout: > > ./check_postfixq.sh -w 30000 -c 50000 -p > OK - total mails in queues: 10606 | mail in queues=10606;30000;50000;0 > > but when I invoke it from Nagios server it always returns 0 as if all > queues are empty: > > ./check_nrpe -H mail.server.hostname -c check_postfixq > OK - total mails in queues: 0 | mail in queues=0;30000;50000;0 > > What's wrong with this plugin? If any configs are necessary or something > I'll provide them. If anyone have any reasonable idea please share. Two things: 1) Make sure your custom plugin is trapping errors correctly, because I bet that: 2) The user that Nagios is running the plugin as does not have the permissions to look at the mail queue. If you're using NRPE or some other method to run the custom plugin on the remote host, it should be running as a non-privileged user. And typically, non-privileged users cannot see the mail queue... Benny -- "Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part..." -- Valdis Kletnieks, 2009-01-23 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Fri Jul 16 16:52:28 2010 From: yuris at smtp.com (yuris) Date: Fri, 16 Jul 2010 17:52:28 +0300 Subject: Nagios plugin always returns 0 value In-Reply-To: <9A66C6E3-3DAF-4C4F-891E-6FF3BD294873@opsview.com> References: <4C406838.2060209@smtp.com> <9A66C6E3-3DAF-4C4F-891E-6FF3BD294873@opsview.com> Message-ID: <4C40722C.6090007@smtp.com> Thank you! it was permissions issue, nrpe user could not execute "find" upon postfix spool directory so I added necessary privileges to /etc/sudoers on remote host and "sudo" prefix to command definition in nrpe.cfg and it started working :) -- best regards, yuris Duncan Ferguson wrote: > On 16 Jul 2010, at 15:10, yuris wrote: > >> What's wrong with this plugin? If any configs are necessary or something >> I'll provide them. If anyone have any reasonable idea please share. >> > > Always test plugins by running them as nagios (not root) and outside the directory the script is in > > $ libexec/check_postfixq.sh -w 30000 -c 50000 -p > > as this is how nagios runs them. > > Duncs > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > > > > > Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK > > UK: +44 (0) 845 057 7887 > USA: +1 866 879 9184 > Fax: +44 (0) 1189 074 071 > email: duncan.ferguson at opsera.com > Skype: duncan_j_ferguson > Web: www.opsview.com > > This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 opsview.com Fri Jul 16 16:55:25 2010 From: duncan.ferguson at opsview.com (Duncan Ferguson) Date: Fri, 16 Jul 2010 15:55:25 +0100 Subject: Nagios plugin always returns 0 value In-Reply-To: <4C406838.2060209@smtp.com> References: <4C406838.2060209@smtp.com> Message-ID: <7382CEC7-41F8-4BE8-8CF9-98DE5C75D163@opsview.com> On 16 Jul 2010, at 15:10, yuris wrote: > > What's wrong with this plugin? If any configs are necessary or something > I'll provide them. If anyone have any reasonable idea please share. Always test plugins by running them as nagios (not root) and outside the directory the script is in $ libexec/check_postfixq.sh -w 30000 -c 50000 -p as this is how nagios runs them. You'll pick up any problems running scripts much quicker that way. Duncs -- Duncan Ferguson Senior Developer/Support Engineer -------------- next part -------------- A non-text attachment was scrubbed... Name: opsview-logo-email_100px.png Type: image/png Size: 2258 bytes Desc: not available URL: -------------- next part -------------- Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK UK: +44 (0) 845 057 7887 USA: +1 866 879 9184 Fax: +44 (0) 1189 074 071 email: duncan.ferguson at opsera.com Skype: duncan_j_ferguson Web: www.opsview.com This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbrooks at oddelement.com Fri Jul 16 17:08:22 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Fri, 16 Jul 2010 11:08:22 -0400 Subject: dynamic checks Message-ID: Hi all, This is a long post, but (I think) it's an interesting problem... I'm struggling a little with a check procedure I'm trying to create. I'm a long time nagios user and I *know* there's a way to do this, but I'm having problems wrapping my head around the best way to achieve the desired effect. I have a data center that i monitor with nagios. I have a number of database servers (about 40) with a number of customers (about 500). I have a number of application checks that I need to do on these databases - things like a data import queue, number of active threads, etc. These checks need to be run for each database and there are a number of checks to perform for each (about 10). In other words, there's about 10 checks x 500 customer database checks (5,000) checks in total. The first problem is that I need to move a customer's database from one server to another from time to time for various reasons (capacity / performance, etc). This means all the checks for that customer database have to move from one database host to another. What I've done so far is to create dynamic service checks for each of these application counters. The checks do the following: execute a query against the current host's master database and retrieve a list of customer database instances on this host. for each database, query the relevant application counter. If there are any problems (warn or crit thresholds surpassed), the check returns warn or crit and lists only the databases that are in trouble. e.g.: WARN: at least one database is in trouble. \n Customer1: import queue is > 500. OK, so far so good. When I move a customer database, the check on the old server just doesn't get that customer's database in the list anymore and the check on the new server begins checking it. Great. First problem solved. Now the tricky part. I'm using PNP to graph performance data. The check script described above returns a LONG perfdata string with perfdata for each database. the way PNP works, it creates one big RRD file for each check - in other words, it creates one rrd file with data sources for each customer database on that server. When a customer database moves to a new database server, the rrd file is not - can not be - updated, so the perfdata just stops for that customer database. It is not easy to move a data source from one rrd file to another, so i have a conundrum. One way to fix this is to simply create a check on nagios for each customer database. If a database moves, just delete the check on the old server and create it on the new server. move the relevant rrd file to it's new home under the new server's PNP directory and we're done. but that means maintaining 5000 or so check commands on the nagios server and all the associated overhead of running so many checks. The way I have it now, there's only 10 * 40 (400) checks - which is much more manageable. I looked at using check_multi, but it suffers the same problem - the perfdata is returned for all child checks in one perfdata string. What I need is a way to dynamically build service checks for each database server. I'm thinking about a check command does: for each db in `cat db-server-host-name.txt`; do check_nrpe -H db-server-host-name -c check_app -a customer1 done but I'm not sure how this would work in terms of nagios service check definitions. One possibility is to use another script outside of nagios that does something like: in nagios.cfg: cfg_file=/etc/nagios/database-checks.cfg for each serverin `cat db-servers.txt`; do ' query master database, get a list of customer databases ' dump list to db-server-host-name.txt done for each db in `cat db-server-host-name.txt`; do ' modify database-checks.cfg ' create service definitions for each database on each database server done service nagios reload or something like that. I'm open to suggestions if anyone has a better way to do this... maybe i'm over-complicating this - i have been buried in this conundrum for a few days and may not be seeing the trees anymore... :/ Thank you all! J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From honia2002 at hotmail.com Fri Jul 16 18:09:42 2010 From: honia2002 at hotmail.com (Honia A) Date: Fri, 16 Jul 2010 12:09:42 -0400 Subject: Adding a line to GUI In-Reply-To: <4C40595F.4070200@univie.ac.at> References: , , , , , , , , , <4C40595F.4070200@univie.ac.at> Message-ID: Michael, Thank you very much! It did the trick :-) Regards, h Date: Fri, 16 Jul 2010 15:06:39 +0200 From: michael.friedrich at univie.ac.at To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Adding a line to GUI Honia A wrote: Thanks for your reply Bret. I would like the second idea (keep that message on all the pages in that same gray box). So I looked into that directory you mentioned (/usr/local/nagios/sbin) but they are all the compiled cgi files. When I opened them with UltraEdit and Notepad, they were not editable, the lines look something like this (below). Is there any way I could edit them or may be there are pre-compiled versions of the files which I could edit? you have to edit the appropriate .c files and then recompile the cgis out of them. since this a generic box, it's only defined once. $ grep -r display_info_table * points to cgi/cgiutils.c Within this function you will see a bunch of html code within printf calls. There you can edit/add your preferred line. e.g. adding below if(current_authdata!=NULL) printf("Logged in as %s
    \n",(!strcmp(current_authdata->username,""))?"?":current_authdata->username); this printf("beware of the nagios root, don't change anything!
    \n"); After that, run make clean && make cgis && sudo make install-cgis Should do the trick ;-) Kind regards, Michael -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From svoll.voip at gmail.com Fri Jul 16 19:06:35 2010 From: svoll.voip at gmail.com (Scott Voll) Date: Fri, 16 Jul 2010 10:06:35 -0700 Subject: Error in configuration File..... Line 1 Null Value? Message-ID: So I'm a first timer to Nagios. Loved it at my old job, but I never managed it. Looks like I may be managing it at the new job. I've read through install guides and Googled a lot. Maybe it's something easy I'm just not getting. When I try and test the config I get: [root at localhost bin]# sudo nagios /usr/bin/nagios -v /etc/nagios/nagios.cfg Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Error in configuration file '/usr/bin/nagios' - Line 1 (NULL value) <-- Looks like the Nagios Program has an issue????? or the config file? Nagios 2.9 starting... (PID=17206) Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=17206) I have double check that the files are there. They are pointing in the right directories, permissions seem to be set and and file access allowed. Can someone give me a pointer in the right direction? TIA Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From edward.stpierre at gmail.com Fri Jul 16 19:21:22 2010 From: edward.stpierre at gmail.com (Edward St Pierre) Date: Fri, 16 Jul 2010 18:21:22 +0100 Subject: Error in configuration File..... Line 1 Null Value? In-Reply-To: References: Message-ID: Do: sudo /usr/bin/nagios -v /etc/nagios/nagios.cfg That should sort that out On 16 Jul 2010 18:12, "Scott Voll" wrote: So I'm a first timer to Nagios. Loved it at my old job, but I never managed it. Looks like I may be managing it at the new job. I've read through install guides and Googled a lot. Maybe it's something easy I'm just not getting. When I try and test the config I get: [root at localhost bin]# sudo nagios /usr/bin/nagios -v /etc/nagios/nagios.cfg Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Error in configuration file '/usr/bin/nagios' - Line 1 (NULL value) <-- Looks like the Nagios Program has an issue????? or the config file? Nagios 2.9 starting... (PID=17206) Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=17206) I have double check that the files are there. They are pointing in the right directories, permissions seem to be set and and file access allowed. Can someone give me a pointer in the right direction? TIA Scott ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jc_322 at hotmail.com Fri Jul 16 21:01:58 2010 From: jc_322 at hotmail.com (The Champ) Date: Fri, 16 Jul 2010 19:01:58 +0000 Subject: NSCA error: log do not record any data. Message-ID: Good day, I just installed NSCA. I tried to test it with commands below and seems like it cant carry the actual data/mesg. out puts:: test file: [code] >cat test localhost test abc [/code] File sent: [code] > ./src/send_nsca localhost -c sample-config/send_nsca.cfg < test 0 data packet(s) sent to host successfully. [/code] Results from /var/log/message:: [code] Jul 16 14:20:09 XXXXXXX nsca[20897]: Handling the connection... Jul 16 14:20:09 XXXXXXX nsca[20897]: End of connection... [/code] Configurations: [code] >grep -v '#' /usr/local/nagios/etc/nsca.cfg | grep "^\w" pid_file=/var/run/nsca.pid server_port=5667 nsca_user=nagios nsca_group=nagios debug=1 command_file=/usr/local/nagios/var/rw/nagios.cmd alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump aggregate_writes=0 append_to_file=0 max_packet_age=30 decryption_method=1 [/code] [code] grep -v '#' sample-config/send_nsca.cfg | grep "^\w" encryption_method=1 [/code] Please help. _________________________________________________________________ Game on: Challenge friends to great games on Messenger http://go.microsoft.com/?linkid=9734387 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlgibbs at utica.edu Fri Jul 16 21:56:08 2010 From: jlgibbs at utica.edu (Jeremy Gibbs) Date: Fri, 16 Jul 2010 15:56:08 -0400 Subject: Nagios Services Message-ID: Hi. This is a default check nagios has in it's config file for checking link status on a switch. define service{ use generic-service host_name DC-6509 service_description Port 1 Link Status check_command check_snmp!-C onsite -o ifOperStatus.1 -r 1 -m RFC1213-MIB } It works fine Where it says hostname, I would generally have to do this host_name DC-6509, Switch-1, Switch-2, Switch-3, Switch-4, switch-5 Now, as you can imagine, if I have multiple services I want to monitor, I would rather have a group with all these hosts, Then I could do something like... hostgroups switches Then I wouldn't have so much work to do. Is this passable? -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Fri Jul 16 23:10:28 2010 From: mmelin at gmail.com (Martin Melin) Date: Fri, 16 Jul 2010 23:10:28 +0200 Subject: Nagios Services In-Reply-To: References: Message-ID: On Fri, Jul 16, 2010 at 9:56 PM, Jeremy Gibbs wrote: > Hi. > This is a default check nagios has in it's config file for checking link > status on a switch. > define service{ > ?? ? ? ?use ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service > ?? ? ? ?host_name ? ? ? ? ? ? ? ?DC-6509 > ?? ? ? ?service_description ? ? Port 1 Link Status > ?? ? ? ?check_command ? ? ? ?check_snmp!-C onsite -o ifOperStatus.1 -r 1 -m > RFC1213-MIB > ?? ? ? ?} > > It works fine > > Where it says hostname, I would generally have to do this > > ?host_name ? ? ? ? ? ? ? DC-6509, Switch-1, Switch-2, Switch-3, Switch-4, > switch-5 > Now, as you can imagine, if I have multiple services I want to monitor, I > would rather have a group with all these hosts, Then I could do something > like... > hostgroups ? ? ? ? ? ? ? switches > Then I wouldn't have so much work to do. > Is this passable? hostgroup_name: This directive is used to specify the short name(s) of the hostgroup(s) that the service "runs" on or is associated with. Multiple hostgroups should be separated by commas. The hostgroup_name may be used instead of, or in addition to, the host_name directive. Source: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service Regards Martin Melin ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From art at lumenergi.com Sat Jul 17 01:12:30 2010 From: art at lumenergi.com (Art Elsea, Jr) Date: Fri, 16 Jul 2010 16:12:30 -0700 Subject: Caught SIGSEGV, shutting down.. Message-ID: <4C40E75E.8030802@k-lab-resources.com> I just installed nagios 3.2.1 on a healthy Ubuntu 10.04.1 desktop. The install went without incident and after some work on the configuration files, I get no errors or warnings when I run "nagios3 -v /etc/nagios3/nagios.cfg". I start nagios using "/etc/init.d/nagios3 start" I open Firefox 3.6.6 and point it at http://localhost/nagios3/, I get a login dialog box, and login with my admin credentials with NO difficulty. Problem is I am getting an error when I click on Hosts, Map, Services, etc., in the left hand column... see below: Also when I run "ps -ef | grep nagios", nagios is not running. The /var/log/nagios3/nagios.log has the following entries (truncated to the last few errors): [1279315908] Nagios 3.2.0 starting... (PID=21610) [1279315908] Local time is Fri Jul 16 14:31:48 PDT 2010 [1279315908] LOG VERSION: 2.0 [1279315908] Finished daemonizing... (New PID=21611) [1279315908] Caught SIGSEGV, shutting down... [1279316061] Nagios 3.2.0 starting... (PID=21762) [1279316061] Local time is Fri Jul 16 14:34:21 PDT 2010 [1279316061] LOG VERSION: 2.0 [1279316062] Finished daemonizing... (New PID=21763) [1279316062] Caught SIGSEGV, shutting down... Begin Error Message: Whoops! *Error: Could not read host and service status information!* The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios. Some other things you should check in order to resolve this error include: 1. Check the Nagios log file for messages relating to startup or status data errors. 2. Always verify configuration options using the *-v* command-line option before starting or restarting Nagios! Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. End Error Message: Anyone seen this before? I'm really stuck and I have read most of the 358 page manual. Thanks in advance, Art Elsea, Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aelsea.vcf Type: text/x-vcard Size: 134 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamsda_1 at yahoo.com Sat Jul 17 02:44:39 2010 From: jamsda_1 at yahoo.com (jimj) Date: Fri, 16 Jul 2010 17:44:39 -0700 (PDT) Subject: Macro for link in emails Message-ID: <69002.79524.qm@web50901.mail.re2.yahoo.com> Hello, I'm wondering if there's a way to add a link to email alerts that would provide the URL to the problem? I looked around on the macros page and could find any that might provide this. I'm hoping to have my email alerts look something like: ***** Nagios ***** Notification Type: PROBLEM http:///nagios/cgi-bin/extinfo.cgi?type=2&host=somehost&service=Partition+%2Fbackup Service: Partition /backup Host: somehost State: CRITICAL Alert Details: DISK CRITICAL - free space: /backup 89638 MB (6% inode=98%): -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vpoliset at ikanos.com Sat Jul 17 13:36:36 2010 From: vpoliset at ikanos.com (Vamsikrishna Polisetty) Date: Sat, 17 Jul 2010 17:06:36 +0530 Subject: check_apc_pdu.pl Message-ID: <6E38AAB58839B640B93D3DE9341A013001344233@GALLUS.india.ikanos.com> Hi Can you help me in using check_apc_pdu.pl in nagios configuration. I configured commands.cfg # 'check_apc_pdu' command definition define command{ command_name check_apc_pdu command_line $USER1$/check_apc_pdu.pl -H $HOSTADDRESS$ } Service define service{ use generic-service host_name blrapcrack4P1 service_description HEALTH check_command check_apc_pdu } I switched off one outlet but the Status is Current Status: OK (for 0d 1h 51m 46s) Status Information: OK: All Outlets ok. Performance Data: load=0 Current Attempt: 1/3 (HARD state) Last Check Time: 07-17-2010 17:07:07 Check Type: ACTIVE Check Latency / Duration: 0.190 / 5.841 seconds Next Scheduled Check: 07-17-2010 17:17:07 Last State Change: 07-17-2010 15:17:07 Last Notification: N/A (notification 0) Is This Service Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 07-17-2010 17:08:52 ( 0d 0h 0m 1s ago Thanks Vamsi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carlos at dsag.jazztel.es Sun Jul 18 12:39:47 2010 From: carlos at dsag.jazztel.es (Carlos de Santa-Ana Garcia) Date: Sun, 18 Jul 2010 12:39:47 +0200 Subject: Macro for link in emails In-Reply-To: <69002.79524.qm@web50901.mail.re2.yahoo.com> References: <69002.79524.qm@web50901.mail.re2.yahoo.com> Message-ID: <4C42D9F3.8090401@dsag.jazztel.es> El 17/07/2010 2:44, jimj escribi?: > > Hello, > > > I'm wondering if there's a way to add a link to email alerts that > would provide the URL to the problem? I looked around on the macros > page and could find any that might provide this. I'm hoping to have my > email alerts look something like: > > > ***** Nagios ***** > Notification Type: PROBLEM > > http:///nagios/cgi-bin/extinfo.cgi?type=2&host=somehost&service=Partition+%2Fbackup > > > Service: Partition /backup > Host: somehost > State: CRITICAL > Alert Details: > DISK CRITICAL - free space: /backup 89638 MB (6% inode=98%): > > Hi You can use the HOST/SERVICE ALIAS to send anything you like. For example a link to the ILO. Greets -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyarusso at nagios.com Mon Jul 19 19:24:24 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Mon, 19 Jul 2010 12:24:24 -0500 Subject: Download nagios tar file. In-Reply-To: References: <4C3ECBC7.8010700@flatto.net> Message-ID: <4C448A48.3020905@nagios.com> On 7/15/2010 6:47 AM, Goke Ade wrote: > It is on http://www.nagios.com/products/nagiosxi/try > > Thank you > This is for Nagios XI, the commercial extension to Nagios. The free open-source core is always available from http://nagios.org/download/core . -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ron at tvnz.co.nz Tue Jul 20 01:29:12 2010 From: ron at tvnz.co.nz (Ron Wilson) Date: Tue, 20 Jul 2010 11:29:12 +1200 Subject: nagios Monitor Message-ID: <7D85034F6BBBD540AF52C59CED3AA1E803A12C5B@AKVXCH02.tvnzad.tvnz.co.nz> I am interested in somehow monitoring my Nagios setup to ensure it is running and working correctly. At present Nagios monitors and alerts for problems but if anything happened to Nagios server we would not necessarily know. I toyed with idea of setting up a dummy check that alerts at certain time each night but that seems a long winded way to achieve certainty. Maybe I need a separate application just checking Nagios server. Any ideas? ________________________________ -- Ron Wilson Systems Engineer Television New Zealand P.O. Box 3819 Auckland, New Zealand Phone 649-916-7560 A conclusion is the place where you get tired of thinking. (Arthur Bloch) ________________________________ ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bram at openminds.be Tue Jul 20 02:25:58 2010 From: bram at openminds.be (Bram Gillemon) Date: Tue, 20 Jul 2010 02:25:58 +0200 Subject: nagios Monitor In-Reply-To: <7D85034F6BBBD540AF52C59CED3AA1E803A12C5B@AKVXCH02.tvnzad.tvnz.co.nz> References: <7D85034F6BBBD540AF52C59CED3AA1E803A12C5B@AKVXCH02.tvnzad.tvnz.co.nz> Message-ID: <4ADF7644-6ADB-473F-8614-6214E15A932B@openminds.be> What i've done to check if my nagios setup is still working is, i configured a HTTP check, to check a page somewhere on a server, it's a simple php page, you can find it on the following url. http://bugoff.be/wp-content/uploads/monitoringcheck.phps then create a cronjob on the server where you put this file to check if the file is updated. */5 * * * * cd /var/www/; /usr/bin/php -f monitoringcheck.php cron Kr, Bram Gillemon On 20 Jul 2010, at 01:29, Ron Wilson wrote: > I am interested in somehow monitoring my Nagios setup to ensure it is running and working correctly. At present Nagios monitors and alerts for problems but if anything happened to Nagios server we would not necessarily know. I toyed with idea of setting up a dummy check that alerts at certain time each night but that seems a long winded way to achieve certainty. Maybe I need a separate application just checking Nagios server. > Any ideas? > > -- > Ron Wilson > Systems Engineer > Television New Zealand > P.O. Box 3819 > Auckland, New Zealand > Phone 649-916-7560 > A conclusion is the place where you get tired of thinking. (Arthur Bloch) > ========================================================== > For more information on the Television New Zealand Group, visit us > online at tvnz.co.nz > ========================================================== > CAUTION: This e-mail and any attachment(s) contain information that > is intended to be read only by the named recipient(s). This information > is not to be used or stored by any other person and/or organisation. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ron at tvnz.co.nz Tue Jul 20 04:40:27 2010 From: ron at tvnz.co.nz (Ron Wilson) Date: Tue, 20 Jul 2010 14:40:27 +1200 Subject: nagios Monitor In-Reply-To: <4ADF7644-6ADB-473F-8614-6214E15A932B@openminds.be> References: <7D85034F6BBBD540AF52C59CED3AA1E803A12C5B@AKVXCH02.tvnzad.tvnz.co.nz> <4ADF7644-6ADB-473F-8614-6214E15A932B@openminds.be> Message-ID: <7D85034F6BBBD540AF52C59CED3AA1E803A12C63@AKVXCH02.tvnzad.tvnz.co.nz> Yes but that is passive. If you do not get an alert you presume it is all OK But if the ngaios system was misbehaving for instance or maybe your sms notification was down you would not know. What is really needed is a check independent of ngaios and that can use an alerting system separate from ngaios. It could check and say regular iintervals alerting only if it the check fails From: Bram Gillemon [mailto:bram at openminds.be] Sent: Tuesday, 20 July 2010 12:26 p.m. To: Nagios Users List Subject: Re: [Nagios-users] nagios Monitor What i've done to check if my nagios setup is still working is, i configured a HTTP check, to check a page somewhere on a server, it's a simple php page, you can find it on the following url. http://bugoff.be/wp-content/uploads/monitoringcheck.phps then create a cronjob on the server where you put this file to check if the file is updated. */5 * * * * cd /var/www/; /usr/bin/php -f monitoringcheck.php cron Kr, Bram Gillemon On 20 Jul 2010, at 01:29, Ron Wilson wrote: I am interested in somehow monitoring my Nagios setup to ensure it is running and working correctly. At present Nagios monitors and alerts for problems but if anything happened to Nagios server we would not necessarily know. I toyed with idea of setting up a dummy check that alerts at certain time each night but that seems a long winded way to achieve certainty. Maybe I need a separate application just checking Nagios server. Any ideas? ________________________________ -- Ron Wilson Systems Engineer Television New Zealand P.O. Box 3819 Auckland, New Zealand Phone 649-916-7560 A conclusion is the place where you get tired of thinking. (Arthur Bloch) ________________________________ ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first____________________________________ ___________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ralf.prengel at comline.de Tue Jul 20 07:02:57 2010 From: ralf.prengel at comline.de (prengel) Date: Tue, 20 Jul 2010 07:02:57 +0200 Subject: nsclient++ and WMI looking for examples and ideas Message-ID: <4C452E01.9090808@comline.de> Hallo, I m looking for examples and ideas about using the combination nsclient++ and wmi to check windows-systems. I found some basic tutorials. Thanks Ralf Prengel Manager Customer Care Comline AG Hauert 8 D-44227 Dortmund/Germany Fon +49 231 97575 904 Fax +49 231 97575 257 Mobil +49 151 10831 157 EMail Ralf.Prengel at comline.de www.comline.de Vorstand Stephan Schilling, Erwin Leonhardi Aufsichtsrat Dr. Franz Schoser (Vorsitzender) HR Dortmund B 14570 USt.-ID-Nr. DE 124727422 F?r die Erstellung unserer Dokumente benutzen wir die Produkte aus dem Microsoft Office 2007 Paket. Sollte sich ein Anhang in der Mail befinden, der mit einer ?lteren Office Version nicht ge?ffnet werden kann, installieren Sie bitte das Compatibility Pack f?r Office 2007. http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=de ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 20 08:36:19 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 20 Jul 2010 07:36:19 +0100 Subject: nagios Monitor In-Reply-To: <7D85034F6BBBD540AF52C59CED3AA1E803A12C63@AKVXCH02.tvnzad.tvnz.co.nz> References: <7D85034F6BBBD540AF52C59CED3AA1E803A12C5B@AKVXCH02.tvnzad.tvnz.co.nz> <4ADF7644-6ADB-473F-8614-6214E15A932B@openminds.be> <7D85034F6BBBD540AF52C59CED3AA1E803A12C63@AKVXCH02.tvnzad.tvnz.co.nz> Message-ID: <4C4543E3.8070709@flatto.net> Ron Wilson wrote: > > Yes but that is passive. If you do not get an alert you presume it is > all OK But if the ngaios system was misbehaving for instance or maybe > your sms notification was down you would not know. What is really > needed is a check independent of ngaios and that can use an alerting > system separate from ngaios. It could check and say regular iintervals > alerting only if it the check fails > > > simple bash script will do can run on the machine or another host This will be psuodo code #!/bin/bash $result = curl -D - http://nagioshost/nagios/tac.cgi |grep -v {some parameter} #get the cgi to reply if $result != (value we want) # nagios is down mail -s " Nagios is dead " your at email.here -c mobile at smsc.provider.com < /a/file/with/text That is about the gist of it. Assaf ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pr.sekharreddy at gmail.com Tue Jul 20 09:38:50 2010 From: pr.sekharreddy at gmail.com (Pallavolu Reddi Sekhar Reddy) Date: Tue, 20 Jul 2010 13:08:50 +0530 Subject: Nagios DiskIO & Network IO Message-ID: Hi, I am trying to add the commands in Nagios Server the Disk_IO and Network IO on CentOS Box. Disk IO UNKNOWN 07-20-2010 12:59:42 0d 14h 51m 34s 3/3 NRPE: Unable to read output Can someone please help me with this? -- P.R.Sekhar Reddy +91-9035738528 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 20 12:27:38 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 20 Jul 2010 11:27:38 +0100 Subject: Nagios DiskIO & Network IO In-Reply-To: References: Message-ID: <4C457A1A.2030608@flatto.net> Pallavolu Reddi Sekhar Reddy wrote: > Hi, > > I am trying to add the commands in Nagios Server the Disk_IO and > Network IO on CentOS Box. > Disk IO > > > > > > UNKNOWN 07-20-2010 12:59:42 0d 14h 51m 34s 3/3 NRPE: Unable to > read output > > > Can someone please help me with this? Did you compile the nrpe with ssl or with out ? Is the check_nrpe command is using ssl ( default) or not ( has -n in the arguments )? also restart the nrpe daemon with the Debug option and see what it says in the log (/var/log/messages ) when you are attempting the execute the check from the command line. Assad -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Jul 20 15:23:23 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 20 Jul 2010 08:23:23 -0500 Subject: nsclient++ and WMI looking for examples and ideas In-Reply-To: <4C452E01.9090808@comline.de> References: <4C452E01.9090808@comline.de> Message-ID: I use the WMI checks since it requires less work on the end machine, nsclient required me to login and install software on like 300 machines. What are you running nagios on? Linux(flavor) or windows? Greg Pangrazio pangrazi at gmail.com On Tue, Jul 20, 2010 at 12:02 AM, prengel wrote: > Hallo, > > I m looking for examples and ideas about using the combination > nsclient++ and wmi to check windows-systems. > I found some basic tutorials. > > Thanks > ?Ralf Prengel > Manager > Customer Care > Comline AG > Hauert 8 > D-44227 Dortmund/Germany > > Fon +49 231 97575 904 > Fax +49 231 97575 257 > Mobil +49 151 10831 157 > EMail Ralf.Prengel at comline.de > > > www.comline.de > Vorstand Stephan Schilling, Erwin Leonhardi > Aufsichtsrat Dr. Franz Schoser (Vorsitzender) HR Dortmund B 14570 USt.-ID-Nr. DE 124727422 > > F?r die Erstellung unserer Dokumente benutzen wir die Produkte aus dem Microsoft Office 2007 Paket. > Sollte sich ein Anhang in der Mail befinden, der mit einer ?lteren Office Version nicht ge?ffnet werden kann, > installieren Sie bitte das Compatibility Pack f?r Office 2007. > http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=de > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 20 18:36:09 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 20 Jul 2010 17:36:09 +0100 Subject: High latency on small installation Message-ID: <4C45D079.6000004@flatto.net> Hello All I am having a problem with very high latency on my main nagios server (3.2.0 from source on SLES 10.3 x64). I recompiled the core with the embedded perl and that helped for a while to lower the latency but it keeps growing to times that are not reasonable for this size of a nagios installation . The setup of this server is as the main nagios with two other server sending passive results to it , one server's time interval is 40 sec (doing mainly http queries ) and the other has a 1 minute interval , and monitors Switches ,firewalls and hosts. The machine is a dual CPU Quad core , 6 GB ram and the load is about 3.3 . I've attached the output of nagiostats below and the directives of nagios.cfg . moving the result/ stats to a ramfs is not an option at this time ( i know about this , but sadly not a viable option). Thanks CURRENT STATUS DATA ------------------------------------------------------ Status File: /usr/local/nagios/var/status.dat Status File Age: 0d 0h 0m 30s Status File Version: 3.2.0 Program Running Time: 0d 1h 46m 11s Nagios PID: 27584 Used/High/Total Command Buffers: 8 / 141 / 4096 Total Services: 2687 Services Checked: 2687 Services Scheduled: 2638 Services Actively Checked: 2638 Services Passively Checked: 49 Total Service State Change: 0.000 / 56.710 / 0.071 % Active Service Latency: 376.745 / 438.212 / 413.404 sec Active Service Execution Time: 0.040 / 26.399 / 0.439 sec Active Service State Change: 0.000 / 56.710 / 0.072 % Active Services Last 1/5/15/60 min: 0 / 1088 / 2627 / 2638 Passive Service Latency: 9.664 / 47.661 / 30.084 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 10 / 49 / 49 / 49 Services Ok/Warn/Unk/Crit: 2673 / 11 / 1 / 2 Services Flapping: 4 Services In Downtime: 0 Total Hosts: 244 Hosts Checked: 244 Hosts Scheduled: 219 Hosts Actively Checked: 232 Host Passively Checked: 12 Total Host State Change: 0.000 / 0.000 / 0.000 % Active Host Latency: 0.018 / 435.890 / 400.684 sec Active Host Execution Time: 0.041 / 4.136 / 3.944 sec Active Host State Change: 0.000 / 0.000 / 0.000 % Active Hosts Last 1/5/15/60 min: 0 / 96 / 219 / 219 Passive Host Latency: 0.184 / 67.224 / 18.642 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 244 / 0 / 0 Hosts Flapping: 0 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 21 / 129 / 357 Scheduled: 20 / 124 / 334 On-demand: 1 / 5 / 23 Parallel: 20 / 124 / 335 Serial: 0 / 0 / 0 Cached: 1 / 5 / 22 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 297 / 1481 / 4462 Scheduled: 297 / 1481 / 4462 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 21 / 37 / 37 External Commands Last 1/5/15 min: 77 / 350 / 1030 log_file=/usr/local/nagios/var/nagios.log cfg_dir=/usr/local/nagios/etc/objects cfg_dir=/usr/local/nagios/etc/LFI cfg_dir=/usr/local/nagios/etc/GB cfg_dir=/usr/local/nagios/etc/DE cfg_dir=/usr/local/nagios/etc/SE cfg_dir=/usr/local/nagios/etc/NOR-CLOUD cfg_dir=/usr/local/nagios/etc/network cfg_dir=/usr/local/nagios/etc/Leaf cfg_dir=/usr/local/nagios/etc/sites object_cache_file=/usr/local/nagios/var/objects.cache precached_object_file=/usr/local/nagios/var/objects.precache resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.dat status_update_interval=10 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/var/spool/nagios/nagios.cmd external_command_buffer_slots=4096 lock_file=/var/run/nagios/nagios.lock temp_file=/usr/local/nagios/nagios.tmp temp_path=/tmp event_broker_options=-1 broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_passive_checks=1 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=5 max_check_result_reaper_time=30 check_result_path=/var/spool/nagios max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=0 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=60 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/lib/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata obsess_over_services=0 obsess_over_hosts=0 translate_passive_host_checks=1 passive_host_checks_are_soft=0 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=1 host_freshness_check_interval=120 additional_freshness_latency=10 enable_flap_detection=1 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=euro p1_file=/usr/lib/nagios/p1.pl enable_embedded_perl=1 use_embedded_perl_implicitly=1 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=nagios at localhost admin_pager=pagenagios at localhost daemon_dumps_core=0 use_large_installation_tweaks=1 enable_environment_macros=1 free_child_process_memory=1 debug_level=0 debug_verbosity=0 debug_file=/usr/local/nagios/var/nagios.debug max_debug_file_size=1000000 -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Jul 20 18:53:34 2010 From: dario.bestetti at opservices.com.br (Dario B. Bestetti (OpServices)) Date: Tue, 20 Jul 2010 13:53:34 -0300 (BRT) Subject: Looking for beta-users Message-ID: <22133249.56357.1279644814042.JavaMail.root@mail.opservices.com.br> I know, this is not the best way or place to send this message, but since it might interest all Nagios users, we would like to select a few beta-users for a product the we are about to launch in the next weeks. If you are interested in being a bet user of OpViews Connector, please answer this email in private. Below a short description of what is OpViews Connector: OpViews Connector is an application developed to add advanced visualization functionalities for "Nagios-based" management applications, the opensource most popular network and systems management platform. OpViews allows Nagios, Nagios XI, OpMon, GroundWork, Op5 and Icinga's users easily build business and infra-structures dashboards through an user friendly GUI. OpViews Editor (included) allow users from the above platforms get monitoring indicators and informations direct from their databases and show them in an graphic and animated dashboard, which make it perfect to show IT status on large screens, without having to write a single line of code. Using the Advanced Nagios Adapter (ANA) you don't have to make any modifications in your opensource monitoring application and the results are presented fully integrated in your monitoring environment. ANA allows you to connect and extract data direct from your monitoring databases, no matter what "Nagios-based" database broker you are using and without having to write any code. As a requirement to use OpViews Connector you must use one of the following "Nagios-based" database broker on your server: - ndoutils - IDOUtils - Opdb - Merlin - Mk Livestatus On the browser/client side the only requirement is Adobe Flash Player 10.1 or superior installed in your desktop. _________________________________________________ Dario B. Bestetti OpServices R. F?lix da Cunha, 1009 - Sala 501 Porto Alegre, RS - CEP 90570-001 Fone 55(51)32753588 Mobile 55(51)81518218 Fax 55(51)32753588 Email dario.bestetti at opservices.com.br "Taking control has never been so easy" _________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Tue Jul 20 22:52:07 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 20 Jul 2010 22:52:07 +0200 Subject: Looking for beta-users In-Reply-To: <22133249.56357.1279644814042.JavaMail.root@mail.opservices.com.br> References: <22133249.56357.1279644814042.JavaMail.root@mail.opservices.com.br> Message-ID: <4C460C77.1050900@univie.ac.at> You could consider sending it to those mailinglists too: icinga-users at lists.sourceforge.net op5-users at lists.op5.com On 2010-07-20 18:53, Dario B. Bestetti (OpServices) wrote: > I know, this is not the best way or place to send this message, but > since it might interest all Nagios users, we would like to select a > few beta-users for a product the we are about to launch in the next > weeks. If you are interested in being a bet user of OpViews Connector, > please answer this email in private. Below a short description of what > is OpViews Connector: > > *OpViews Connector is an application developed to add advanced > visualization functionalities for "Nagios-based" management > applications, the opensource most popular network and systems > management platform.** OpViews allows Nagios, Nagios XI, OpMon, > GroundWork, Op5 and Icinga's users easily build business and > infra-structures dashboards through an user friendly GUI. OpViews > Editor (included) allow users from the above platforms get monitoring > indicators and informations direct from their databases and show them > in an graphic and animated dashboard, which make it perfect to show IT > status on large screens, without having to write a single line of code. * > > Using the Advanced Nagios Adapter (ANA) you don't have to make any > modifications in your opensource monitoring application and the > results are presented fully integrated in your monitoring environment. > ANA allows you to connect and extract data direct from your monitoring > databases, no matter what "Nagios-based" database broker you are using > and without having to write any code. > > As a requirement to use OpViews Connector you must use one of the > following "Nagios-based" database broker on your server: > *- ndoutils* > *- IDOUtils* > *- Opdb* > - Merlin > - Mk Livestatus > > On the browser/client side the only requirement is Adobe Flash Player > 10.1 or superior installed in your desktop. > > _________________________________________________ > Dario B. Bestetti OpServices > R. F?lix da Cunha, 1009 - Sala 501 > Porto Alegre, RS - CEP 90570-001 > Fone 55(51)32753588 Mobile 55(51)81518218 > Fax 55(51)32753588 Email dario.bestetti at opservices.com.br > > "Taking control has never been so easy" > _________________________________________________ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nkeshav12 at gmail.com Wed Jul 21 12:06:55 2010 From: nkeshav12 at gmail.com (keshav murthy) Date: Wed, 21 Jul 2010 15:36:55 +0530 Subject: effective use of NSClient++ Eventlog management Message-ID: Dear all, We are moving from pnsclient to NSclient++ for all our windows client. We would like to use the Event log management available with NSClient++. We would like to do the following (if it is feasible) Top Ten events in all the clients overall. Critical Event IDs on any server: We are looking for only the critical event ID's (like a AD account lockout event ID etc) to be captured and reported to the nagios server. Have anybody started using this eventlog management effectively and what are your way of putting it in place. Cheers Keshav -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Wed Jul 21 13:46:39 2010 From: lists at xodus.org (Marc Powell) Date: Wed, 21 Jul 2010 06:46:39 -0500 Subject: High latency on small installation In-Reply-To: <4C45D079.6000004@flatto.net> References: <4C45D079.6000004@flatto.net> Message-ID: On Jul 20, 2010, at 11:36 AM, Assaf Flatto wrote: > Hello All > > > I am having a problem with very high latency on my main nagios server > (3.2.0 from source on SLES 10.3 x64). > I recompiled the core with the embedded perl and that helped for a > while to lower the latency but it keeps growing to times that are not > reasonable for this size of a nagios installation . > event_broker_options=-1 > broker_module=/usr/local/nagios/bin/ndomod-3x.o Is it better if you disable the event broker? If so, search the archives for information about it and database tuning. There has been somewhat recent discussion about higher latency as the database grows in size. > process_performance_data=1 > host_perfdata_command=process-host-perfdata > service_perfdata_command=process-service-perfdata Is it better if you disable this? If so, see if there's any performance tuning information for the addon you are using. > enable_environment_macros=1 Disable this if you are not explicitly using it. Chances are very high that you are not. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yuris at smtp.com Wed Jul 21 14:27:52 2010 From: yuris at smtp.com (yuris) Date: Wed, 21 Jul 2010 15:27:52 +0300 Subject: building graph (via nagiosgrapher) for non-standard plugin Message-ID: <4C46E7C8.1020301@smtp.com> Hello everybody, recently I have been deploying few custom nagios plugins and was configuring graphs for them rather intuitively, based on standard graphs configs. But today I deployed check_diskio.pl plugin ( http://www.nagioswiki.com/wiki/index.php/Check_Disk_IO_via_NRPE ) and now would like to configure nagiosgrapher to build graphs to reflect disk i/o performance - but the problem is that I cannot adopt any of standard ngraphes because stdout of check_diskio does not similar to stdouts of standard plugins. It's actually like this: ./check_diskio.pl -d / -w 2 -c 3 --uom=B --factor=Mi CHECK_DISKIO OK - xvda 639.82 KB/s | WRITE=631761B;2097152;3145728 READ=23412B;2097152;3145728 TOTAL=655173B;2097152;3145728 Could anyone give me some hint how can I write custom check_diskio.ncfg so that graph would reflext perfdata dynamics (read/write/total) ? Yet I have not find any documentation that would explain how to do that. -- best regards, yuris ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 21 14:45:27 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 21 Jul 2010 13:45:27 +0100 Subject: High latency on small installation In-Reply-To: References: <4C45D079.6000004@flatto.net> Message-ID: <4C46EBE7.4070706@flatto.net> >> event_broker_options=-1 >> broker_module=/usr/local/nagios/bin/ndomod-3x.o >> > > Is it better if you disable the event broker? If so, search the archives for information about it and database tuning. There has been somewhat recent discussion about higher latency as the database grows in size. > > I was part of that thread , and i can not remove it since we need it for the nagviz . >> process_performance_data=1 >> host_perfdata_command=process-host-perfdata >> service_perfdata_command=process-service-perfdata >> > > Is it better if you disable this? If so, see if there's any performance tuning information for the addon you are using. > > Again - needed for pnp4nagios we use for our graphs. >> enable_environment_macros=1 >> > > Disable this if you are not explicitly using it. Chances are very high that you are not. > That hit the spot right one . Active Service Latency: 5.034 / 462.816 / 197.907 sec and dropping Thanks Marc. -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 21 15:02:14 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 21 Jul 2010 14:02:14 +0100 Subject: High latency on small installation In-Reply-To: <4C46EBE7.4070706@flatto.net> References: <4C45D079.6000004@flatto.net> <4C46EBE7.4070706@flatto.net> Message-ID: <4C46EFD6.3010409@flatto.net> Assaf Flatto wrote: >>> event_broker_options=-1 >>> broker_module=/usr/local/nagios/bin/ndomod-3x.o >>> >>> >> Is it better if you disable the event broker? If so, search the archives for information about it and database tuning. There has been somewhat recent discussion about higher latency as the database grows in size. >> >> >> > I was part of that thread , and i can not remove it since we need it > for the nagviz . > >>> process_performance_data=1 >>> host_perfdata_command=process-host-perfdata >>> service_perfdata_command=process-service-perfdata >>> >>> >> Is it better if you disable this? If so, see if there's any performance tuning information for the addon you are using. >> >> >> > Again - needed for pnp4nagios we use for our graphs. > >>> enable_environment_macros=1 >>> >>> >> Disable this if you are not explicitly using it. Chances are very high that you are not. >> >> > That hit the spot right one . > Active Service Latency: 5.034 / 462.816 / 197.907 sec > and dropping > > Thanks Marc. > > Guess my joy was too pre mature , after the change it dropped all the way to 170 sec and then started climbing back up , not again it stands on Active Service Latency: 5.679 / 441.738 / 384.102 sec I have removed the ndo broker and that helped by lowering the latency to Active Service Latency: 0.129 / 441.738 / 268.447 sec It does mean i will lose the nagviz and the nagiosBP plugin . but for now it will have to do -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harald.boehmecke at bertelsmann.de Wed Jul 21 15:07:42 2010 From: harald.boehmecke at bertelsmann.de (Harald =?ISO-8859-1?Q?B=F6hmecke?=) Date: Wed, 21 Jul 2010 15:07:42 +0200 Subject: Nagios Freeze after Eventhandler execution In-Reply-To: <1279279419.2605.123.camel@BDI12718> References: <32C82089-1B88-48F9-A177-B2FD1251E416@linux.it> <4C3DE388.70304@gmail.com> <1279279419.2605.123.camel@BDI12718> Message-ID: <1279717662.2758.42.camel@BDI12718> Hi, Still experiencing the same issue. Does anybody know why Nagios Freezes after executing the eventhandler? Thanks, Harald > Hi All, > > Need help with an Eventhandler! > > After Nagios (successfully) executes the eventhandler, no further > checks are done on any host. Nagios is like in a stopped or stalled > state. > > Here is my config. I actually took it from the manual: > > define service { > host_name blah > service_description NSCA > use local_1m > check_command check_tcp!5667 > event_handler handler_restart_nsca > event_handler_enabled 1 > register 1 > > } > define command { > command_name handler_restart_nsca > > command_line /usr/share/nagios3/plugins/eventhandlers/restart-nsca $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ > > } > > > /usr/share/nagios3/plugins/eventhandlers/restart-nsca > > #!/bin/sh > # > # Event handler script for restarting the web server on the local > machine > # > # Note: This script will only restart the web server if the service is > # retried 3 times (in a "soft" state) or if the web service > somehow > # manages to fall into a "hard" error state. > # > > > # What state is the NSCA service in? > case "$1" in > OK) > # The service just came back up, so don't do anything... > ;; > WARNING) > # We don't really care about warning states, since the service is > probably still running... > ;; > UNKNOWN) > # We don't know what might be causing an unknown error, so don't do > anything... > ;; > CRITICAL) > # Aha! The HTTP service appears to have a problem - perhaps we should > restart the server... > > # Is this a "soft" or a "hard" state? > case "$2" in > > # We're in a "soft" state, meaning that Nagios is in the middle of > retrying the > # check before it turns into a "hard" state and contacts get > notified... > SOFT) > > # What check attempt are we on? We don't want to restart the web > server on the first > # check, because it may just be a fluke! > case "$3" in > > # Wait until the check has been tried 3 times before restarting the > web server. > # If the check fails on the 4th time (after we restart the web > server), the state > # type will turn to "hard" and contacts will be notified of the > problem. > # Hopefully this will restart the web server successfully, so the 4th > check will > # result in a "soft" recovery. If that happens no one gets notified > because we > # fixed the problem! > 3) > echo -n "Restarting NSCA service (3rd soft critical state)..." > # Call the init script to restart the NSCA server > /etc/init.d/nsca restart > ;; > esac > ;; > > # The HTTP service somehow managed to turn into a hard error without > getting fixed. > # It should have been restarted by the code above, but for some reason > it didn't. > # Let's give it one last try, shall we? > # Note: Contacts have already been notified of a problem with the > service at this > # point (unless you disabled notifications for this service) > HARD) > echo -n "Restarting HTTP service..." > # Call the init script to restart the NSCA server > /etc/init.d/nsca restart > ;; > esac > ;; > esac > exit 0 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From darren at brucetelecom.com Wed Jul 21 15:22:16 2010 From: darren at brucetelecom.com (Darren Hill) Date: Wed, 21 Jul 2010 09:22:16 -0400 Subject: notification script In-Reply-To: References: , <4C2B8B49.4070804@brucetelecom.com> Message-ID: <4C46F488.5000000@brucetelecom.com> Hi, I'm having a hard time having my notification script figure out whether the notification is a service or host notification, and then use qpage to send it out. Here's what I have so far. I'm using opsview which does not allow seperate commands for host and service, so I have to write the smarts into the notification script. #!/usr/bin/perl use strict; use lib '/usr/local/nagios/perl/lib'; my $contact = $ENV{NAGIOS_CONTACTNAME}; my $command = '/usr/local/bin/qpage'; my $text; if ( $ENV{NAGIOS_SERVICEDESC} ) { $text = "$ENV{NAGIOS_SERVICEDESC} on $ENV{NAGIOS_HOSTNAME} is $ENV{NAGIOS_SERVICESTATE}: $ENV{NAGIOS_SERVICEOUTPUT} "; } else { $text = "$ENV{NAGIOS_HOSTNAME} is $ENV{NAGIOS_HOSTSTATE}: $ENV{NAGIOS_HOSTOUTPUT}"; } my @command = ( $command, '-p', $contact, $text ); Any ideas? Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 21 17:09:47 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 21 Jul 2010 16:09:47 +0100 Subject: High latency on small installation In-Reply-To: References: <4C45D079.6000004@flatto.net> Message-ID: <4C470DBB.7080204@flatto.net> Could it be that the more service check I move off the main Nagios server an on to the tested hosts to run via NRPE , that the Latency will increase ? Assaf Marc Powell wrote: > On Jul 20, 2010, at 11:36 AM, Assaf Flatto wrote: > > >> Hello All >> >> >> I am having a problem with very high latency on my main nagios server >> (3.2.0 from source on SLES 10.3 x64). >> I recompiled the core with the embedded perl and that helped for a >> while to lower the latency but it keeps growing to times that are not >> reasonable for this size of a nagios installation . >> > > >> event_broker_options=-1 >> broker_module=/usr/local/nagios/bin/ndomod-3x.o >> > > Is it better if you disable the event broker? If so, search the archives for information about it and database tuning. There has been somewhat recent discussion about higher latency as the database grows in size. > > >> process_performance_data=1 >> host_perfdata_command=process-host-perfdata >> service_perfdata_command=process-service-perfdata >> > > Is it better if you disable this? If so, see if there's any performance tuning information for the addon you are using. > > >> enable_environment_macros=1 >> > > Disable this if you are not explicitly using it. Chances are very high that you are not. > > -- > -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ERinguet at optosecurity.com Wed Jul 21 17:04:23 2010 From: ERinguet at optosecurity.com (Etienne Ringuet) Date: Wed, 21 Jul 2010 11:04:23 -0400 Subject: check_snmp v3 authentication Message-ID: Hello, I am trying to use check_snmp to monitor different snmp states on our hardware. Our system uses snmp v3. If I use snmpget to access it, it works: eringuet at test:/usr/lib/nagios/plugins$ snmpget -a MD5 -l authNoPriv -u USERNAME -A PASSWORD -v3 192.168.1.150 sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15742663) 1 day, 19:43:46.63 But when using check_snmp I get "no securityname specified": eringuet at test:/usr/lib/nagios/plugins$ ./check_snmp -H 192.168.1.150 -o sysUpTime.0 -P3 -l authNoPriv -U USERNAME -a MD5 -A PASSWORD External command error: snmpget: No securityName specified (Sub-id not found: (top) -> sysUpTime) Am I missing something? Thanks, Etienne ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdougher at inch.com Wed Jul 21 22:07:40 2010 From: mdougher at inch.com (Matthew Dougherty) Date: Wed, 21 Jul 2010 16:07:40 -0400 Subject: Change notification on CRITICAL: Return code of 126 is out of bounds Message-ID: <1279742860.4187.1744.camel@mdougher-laptop> When file permissions are wrong or other issues occur, nagios may be prevented from executing a test but it generates a CRITICAL service alert. In this case I do not want to notify the application owner but instead the nagios owner. Is there a way to identify how this is handled? Matthew Dougherty mdougher at inch.com 973-325-8556 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a31modela at hotmail.com Wed Jul 21 22:38:12 2010 From: a31modela at hotmail.com (steve f) Date: Wed, 21 Jul 2010 16:38:12 -0400 Subject: ? on Distributed Server Config Message-ID: I was hoping to find some more detailed info on setting up nsca for distributed server config. Anyone know of some documentation besides whats in the Nagios 3.x docs, either on line or book ? I just seem to be missing the connection between the send_nsca plugin and the actual plugin running on the box I want to monitor from the central server. Here is my issue: I have my central server set up ( call it nagios1), 1 dist server with bare bones nagios set up & running on it ( call it nagiosdist1). I have been able to send an nsca message to central server by running the following from a script : #!/bin/bash CFG="//usr/local/nagios/etc/send_nsca.cfg" CMD="nagiosdist1;named;3;UNKNOWN - just an NSCA test" /bin/echo $CMD | /usr/local/nagios/bin/send_nsca -H nagios1 -d ';' -c $CFG So now that I have nsca communication, what I want to be able to do is this using nsca from nagiosdist1, send check results from a linux pc to the central server. I have all of the plugins on the linux pc and have successfully run the following from the command line from the nagiosdist1 server ( before I configured it as a nsca server) ./check_by_ssh -H IP_OF_LINUX_PC -C '/usr/local/nagios/libexec/check_load -w 5.0 -c 10.0' -q I assume I should be able to run this with an nsca wrapper & get it up to the central server would t be as simple as this in the services.cfg on the dist server? define service { use generic-service host_name LINUX_PC service_description Current Load via ssh check_command submit_check_result!check_ssh_load!5.0,4.0,3. 0!10.0,6.0,4.0 } Thanks, Steve _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ron at tvnz.co.nz Thu Jul 22 00:51:34 2010 From: ron at tvnz.co.nz (Ron Wilson) Date: Thu, 22 Jul 2010 10:51:34 +1200 Subject: effective use of NSClient++ Eventlog management In-Reply-To: References: Message-ID: <7D85034F6BBBD540AF52C59CED3AA1E803A12C74@AKVXCH02.tvnzad.tvnz.co.nz> I have tried several times over the past year but never managed to get the check_eventlog working. If you have any success do tell us about it From: keshav murthy [mailto:nkeshav12 at gmail.com] Sent: Wednesday, 21 July 2010 10:07 p.m. To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] effective use of NSClient++ Eventlog management Dear all, We are moving from pnsclient to NSclient++ for all our windows client. We would like to use the Event log management available with NSClient++. We would like to do the following (if it is feasible) Top Ten events in all the clients overall. Critical Event IDs on any server: We are looking for only the critical event ID's (like a AD account lockout event ID etc) to be captured and reported to the nagios server. Have anybody started using this eventlog management effectively and what are your way of putting it in place. Cheers Keshav ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dj_lien at hotmail.com Thu Jul 22 09:42:22 2010 From: dj_lien at hotmail.com (Dj Lien) Date: Thu, 22 Jul 2010 07:42:22 +0000 Subject: Windows Print Queue Monitoring... In-Reply-To: References: Message-ID: Can anyone point me in the direction on some documentation, how to monitor print queues on a 2008 Window server. I have the NSClient++ installed on this box, I just need to know if I'm barking up the right tree :) A quick web search is not getting anything thats helpful Thanks in AdvanceLien _________________________________________________________________ http://clk.atdmt.com/UKM/go/197222280/direct/01/ Do you have a story that started on Hotmail? Tell us now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Jul 22 12:31:03 2010 From: benny at bennyvision.com (C. Bensend) Date: Thu, 22 Jul 2010 05:31:03 -0500 Subject: Windows Print Queue Monitoring... In-Reply-To: References: Message-ID: > Can anyone point me in the direction on some documentation, how to monitor > print queues on a 2008 Window server. I have the NSClient++ installed on > this box, I just need to know if I'm barking up the right tree :) A quick > web search is not getting anything thats helpful There are a number of performance counters available that should allow you to check any number of things, including total queued jobs, jobs per queue, errors, pages, etc. Do a search on TechNet, you'll find a bunch. At least that's where I found the counters I use on 2003, I doubt 2008 will be much different... Benny -- "Something's going on in this house - last night, I saw a face!" "Did it have a nose?" "Yes!" "That sounds like a face all right." -- Scary Movie 4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 smetj.net Thu Jul 22 21:23:38 2010 From: nagios at smetj.net (Jelle Smet) Date: Thu, 22 Jul 2010 19:23:38 +0000 (UTC) Subject: effective use of NSClient++ Eventlog management References: Message-ID: > Critical Event IDs on any server: We are looking for only the critical event >ID's (like a AD account lockout event ID etc) to be captured and reported to the >nagios server. have a look at: http://www.smetj.net/wiki/Molog It will require you to roll up your sleeves a bit, but it scales quite well. MoLog can handle syslogs & eventlogs. Personally, I think the trick is to initially report on all criticals and warnings and filter out uninteresting alerts along the way. You'll reach a point we're you'll be alerted on the interesting eventid's pretty quickly... ? Hope it helps, Jelle ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 smetj.net Fri Jul 23 10:17:16 2010 From: nagios at smetj.net (Jelle Smet) Date: Fri, 23 Jul 2010 10:17:16 +0200 Subject: Submitting passive checks directly after adding new objects. Message-ID: Hi list, I have 2 questions: When new objects are added to Nagios it can take on my installation up to 30 seconds before they appear. Where does this delay come from? Related to that, when I submit "disable commands" for the newly added hosts into the command pipe straight after a reload, could that mean these commands can get lost as at that moment they couldn't find a matching host? Cheers, -- Jelle Smet http://www.smetj.net ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbrooks at oddelement.com Fri Jul 23 18:12:34 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Fri, 23 Jul 2010 12:12:34 -0400 Subject: check_mssql question Message-ID: hi all, I've got a question about the check_mssql plugin. I've got the plugin defined as so: # command 'check_mssql_db_online' define command{ command_name check_mssql_db_online command_line $USER1$/check_mssql -H $HOSTALIAS$ -p $ARG1$ -U "$USER10$" -P "$USER11$" -D "$ARG2$" -o } USER10 = username USER11 = password This check is checking the status of the tempdb on an mssql server. The check is execute as: check_mssql -H server1.domain.tld -p 1433 -U username -P password -D tempdb -o When i run the command by hand on the commandline, it works fine. When I test the command in the web UI, it works fine. When the check command runs on schedule, it fails with UNKNOWN state and a message saying the login failed. how can i debug this to figure out why it fails when running on schedule, but works fine when running by hand...? thx, J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Fri Jul 23 19:02:19 2010 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 23 Jul 2010 18:02:19 +0100 Subject: check_mssql question In-Reply-To: References: Message-ID: <4C49CB1B.30100@flatto.net> Joel Brooks wrote: > hi all, > > I've got a question about the check_mssql plugin. I've got the plugin > defined as so: > > # command 'check_mssql_db_online' > define command{ > command_name check_mssql_db_online > command_line $USER1$/check_mssql -H $HOSTALIAS$ > -p $ARG1$ -U "$USER10$" -P "$USER11$" -D "$ARG2$" -o > } > > USER10 = username > USER11 = password > > This check is checking the status of the tempdb on an mssql server. > The check is execute as: > > check_mssql -H server1.domain.tld -p 1433 -U username -P password -D > tempdb -o > > When i run the command by hand on the commandline, it works fine. > > When I test the command in the web UI, it works fine. > > When the check command runs on schedule, it fails with UNKNOWN state > and a message saying the login failed. > > how can i debug this to figure out why it fails when running on > schedule, but works fine when running by hand...? > > thx, you are using the macro $HOSTALIAS$ , try changing it to $HOSTADDRESS$ or $HOSTNAME$ Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cwfox at us.fujitsu.com Fri Jul 23 19:22:11 2010 From: cwfox at us.fujitsu.com (Camron W. Fox) Date: Fri, 23 Jul 2010 07:22:11 -1000 Subject: TEST to Nagios Users List Message-ID: <4C49CFC3.8050903@us.fujitsu.com> Alle, This is just a test. I haven't received any mail from the list in almost a month. Best Regards, Camron -- Camron W. Fox Hilo Office High Performance Computing Group Fujitsu Management Services of America, Inc. E-mail: cwfox at us.fujitsu.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Fri Jul 23 21:36:11 2010 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Fri, 23 Jul 2010 15:36:11 -0400 Subject: IPv6 Dual-Stack and Nagios Message-ID: <4C49EF2B.6070205@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm looking for information about how people are handling dual-stack IPv4/IPv6 machines within Nagios. Since the host_name field has to be unique, you can't have two nagios definitions for the same host, but with difference addresses ... You can always modify the host_name slightly to make it unique, but that breaks any plugin that depends on the host_name. I'd like to avoid having to re-define everything in Nagios with an IPv6 focus, but to, instead, merely add a new definition with a v6 address and have it "just work"... Thanks, - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkxJ7ysACgkQO80o6DJ8Uvl3nACdEX1bTpfFDf1DD2P81JXUSamm hXQAn2fx/zdVasAfqB8/sN1eyrh4iKPA =OhKa -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.elsen at gmail.com Fri Jul 23 22:59:13 2010 From: mark.elsen at gmail.com (Mark Elsen) Date: Fri, 23 Jul 2010 22:59:13 +0200 Subject: TEST to Nagios Users List In-Reply-To: <4C49CFC3.8050903@us.fujitsu.com> References: <4C49CFC3.8050903@us.fujitsu.com> Message-ID: > > ? ? ? ?This is just a test. I haven't received any mail from the list in > almost a month. > Both philosophically and technically it can be argued that this test won't help you. Unless you reply (but there's more to think about here,then you may be aware of) :-) M. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Sat Jul 24 21:29:54 2010 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 24 Jul 2010 12:29:54 -0700 Subject: effective use of NSClient++ Eventlog management In-Reply-To: <7D85034F6BBBD540AF52C59CED3AA1E803A12C74@AKVXCH02.tvnzad.tvnz.co.nz> References: <7D85034F6BBBD540AF52C59CED3AA1E803A12C74@AKVXCH02.tvnzad.tvnz.co.nz> Message-ID: I wrote my own event log management plugin because I didn't find one that I liked. You can download it as part of the Sourceforge tntnagiosplugins project. It should work with NSClient++ (although admittedly I am not testing against that). It reports critical and warning events on the specified host (it will exclude a number of events that are known to be harmless, for instance DCOM 10009 and about a dozen or so other ones). The "top ten events" seems like interesting functionality, but doesn't really fit very well into the Nagios philosophy. Nagios can ultimately only distinguish between OK, WARNING, CRITICAL. There are better tools for statistical analysis. The collection of plugins also contains a separate plugin that reports on login errors. From: Ron Wilson [mailto:ron at tvnz.co.nz] Sent: Wednesday, July 21, 2010 3:52 PM To: Nagios Users List Subject: Re: [Nagios-users] effective use of NSClient++ Eventlog management I have tried several times over the past year but never managed to get the check_eventlog working. If you have any success do tell us about it From: keshav murthy [mailto:nkeshav12 at gmail.com] Sent: Wednesday, 21 July 2010 10:07 p.m. To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] effective use of NSClient++ Eventlog management Dear all, We are moving from pnsclient to NSclient++ for all our windows client. We would like to use the Event log management available with NSClient++. We would like to do the following (if it is feasible) Top Ten events in all the clients overall. Critical Event IDs on any server: We are looking for only the critical event ID's (like a AD account lockout event ID etc) to be captured and reported to the nagios server. Have anybody started using this eventlog management effectively and what are your way of putting it in place. Cheers Keshav ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanta.linux at gmail.com Sun Jul 25 07:11:09 2010 From: quanta.linux at gmail.com (quanta) Date: Sun, 25 Jul 2010 12:11:09 +0700 Subject: Only Nagios doesn't works with sendmail? Message-ID: <4C4BC76D.5050309@gmail.com> Hi, I am using sendmail 8.13.8-8 with Gmail SMTP. sendmail works fine with OSSEC or test from command line, but it has problem with Nagios: sendmail[9026]: NOQUEUE: SYSERR(nagios): can not chdir(/var/spool/clientmqueue/): Permission denied Add the *smmsp* user to *nagios* group, I get the another error: sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied The permissions of related files: -rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail -rw-r--r-- 1 root root 59061 Jun 30 11:23 sendmail.cf -rw-r--r-- 1 root root 40336 Jun 30 12:18 submit.cf drwxrwx--- 2 smmsp smmsp 114688 Jul 22 22:00 /var/spool/clientmqueue/ drwx------ 2 root mail 4096 Jul 22 22:24 /var/spool/mqueue/ Nagios only send mail if I changed the permission of */var/spool/clientmqueue* to 777, but it is a dirty solution and I got the warning: sendmail[30462]: dangerous permissions=40777 on queue directory /var/spool/clientmqueue/ PS: Nagios on the another server works fine with 770 permission of /var/spool/clientmqueue. Can anyone help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Sun Jul 25 08:24:38 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Sun, 25 Jul 2010 00:24:38 -0600 Subject: Dependencies and notifications Message-ID: Hello everyone, could I please ask for some assisntance / am-I-off-my-rocker soft of advice I am working with using dependencies and I am having a problem that while dependencies are successfully suppressing the execution of monitors because their dependencies are not being satisfied which is what I expect, however notifications are continuing to go out, even though they have the same criteria, which is NOT what I expect because they are the same criteria: execution_failure_criteria c,u,p notification_failure_criteria c,u,p The monitors that were held in the PENDING state because their dependency was never satisfied since the monitor was created are not sending notifications, but the ones that managed to "squeak in" a CRITICAL state read before further checks were suppressed thereafter continue to send out alert notifications. This is not what my understand of how notification dependencies worked. Is there some other directive that I need to make it so monitors that are in a CRITICAL state do not send further notifications if their dependencies are not satisfied? One this that I did that was unusual mas making a service dependency template to try to streamline my services.cfg so I didn't need to use a dependencies.cfg. Here is the template: define servicedependency { name generic-dependency execution_failure_criteria c,u,p notification_failure_criteria c,u,p inherits_parent 1 register 0 } and here is an example of a service that uses it: define service{ use standard-app-service hostgroup_name Apache service_description Apache_Status servicegroups Apache_Status check_command check_apachestatus_nrpe!localhost } define servicedependency { use generic-dependency hostgroup_name Apache dependent_service_description Apache_Status service_description NRPE_Available } Is this just a case of me not understanding how dependencies are supposed to work or is something else weird going on here? Thanks in advance for any help. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Sun Jul 25 16:17:06 2010 From: lists at xodus.org (Marc Powell) Date: Sun, 25 Jul 2010 09:17:06 -0500 Subject: Only Nagios doesn't works with sendmail? In-Reply-To: <4C4BC76D.5050309@gmail.com> References: <4C4BC76D.5050309@gmail.com> Message-ID: <0E891152-6BDB-415D-89C6-356959F1D6E6@xodus.org> On Jul 25, 2010, at 12:11 AM, quanta wrote: > Hi, > > I am using sendmail 8.13.8-8 with Gmail SMTP. > sendmail works fine with OSSEC or test from command line, but it has problem with Nagios: > > sendmail[9026]: NOQUEUE: SYSERR(nagios): can not chdir(/var/spool/clientmqueue/): Permission denied > > Add the smmsp user to nagios group, I get the another error: If you were going to try this, it would be the other way around (nagios in the smmsp group), but that's the wrong thing to do either way. > sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied > > The permissions of related files: > > > -rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail You appear to have a broken sendmail on this machine. What's different between the two? Shouldn't this be group 'smmsp'? Is sendmail's confRunAsUser the same on both machines? -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From quanta.linux at gmail.com Sun Jul 25 16:57:49 2010 From: quanta.linux at gmail.com (quanta) Date: Sun, 25 Jul 2010 21:57:49 +0700 Subject: Only Nagios doesn't works with sendmail? In-Reply-To: <0E891152-6BDB-415D-89C6-356959F1D6E6@xodus.org> References: <4C4BC76D.5050309@gmail.com> <0E891152-6BDB-415D-89C6-356959F1D6E6@xodus.org> Message-ID: <4C4C50ED.4020903@gmail.com> On 07/25/2010 09:17 PM, Marc Powell wrote: > On Jul 25, 2010, at 12:11 AM, quanta wrote: > > >> Hi, >> >> I am using sendmail 8.13.8-8 with Gmail SMTP. >> sendmail works fine with OSSEC or test from command line, but it has problem with Nagios: >> >> sendmail[9026]: NOQUEUE: SYSERR(nagios): can not chdir(/var/spool/clientmqueue/): Permission denied >> >> Add the smmsp user to nagios group, I get the another error: >> > If you were going to try this, it would be the other way around (nagios in the smmsp group), but that's the wrong thing to do either way. > I alse tried but nothing changes: /etc/group:smmsp:x:51:apache,nagios /etc/group:nagios:x:503:apache,smmsp > >> sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied >> >> The permissions of related files: >> >> >> -rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail >> > You appear to have a broken sendmail on this machine. What's different between the two? Shouldn't this be group 'smmsp'? Is sendmail's confRunAsUser the same on both machines? > > > -- > Marc > Why does it still work with OSSEC or even from command line? There is no difference between two: both of them run as smmsp user: # grep -i runasuser /etc/mail/submit.cf O RunAsUser=smmsp > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Mon Jul 26 04:39:11 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Sun, 25 Jul 2010 20:39:11 -0600 Subject: Dependencies suppressing execution but not notification Message-ID: <337140A7-0346-4B3D-92BD-34F1FFD02C89@stubhub.com> Hi, Here is hopefully a more clear explanation of the problem I posted last night. I have configured dependancies to suppress notifications when the master dependency is not OK or WARNING and while I am finding they work in suppressing command execution, notification suppression doesn't seem to be happening as the alerts keep coming for them. This is an example of the problem: Setup: Apache_Webhits service depends on Apache_Status service being OK or WARNING for both execution and notification Apparent order of events: 1. Apache_Webhits returned UNKNOWN because apache was probably down 2. Apache_Status soon goes CRITICAL because it definitely is down alright 3. Nagios stops further execution of Apache_Webhits 4. In the GUI I turn off notifications for Apache_Status for that server until the problem is fixed. Problem: Apache_Webhits continues to send out notifications that it is CRITICAL though I would have expected the behavior to suppress further notification, but it clearly is just sending notifications as usual. Is that expected behavior? Based on my understanding I would thing further notifications would cease in this case. My configs: One this that I did that was unusual mas making a service dependency template to try to streamline my services.cfg so I didn't need to use a dependencies.cfg. It seemed to work just fine but I am mentioning it because it doesn't seem to be explicitly documented. Here is the template: define servicedependency { name generic-dependency execution_failure_criteria c,u,p notification_failure_criteria c,u,p inherits_parent 1 register 0 } and here is the example described above: # Apache_Webhits define service{ use standard-app-service hostgroup_name Apache service_description Apache_Webhits servicegroups Apache_Webhits check_command check_webhits_nrpe } define servicedependency { use generic-dependency hostgroup_name Apache dependent_service_description Apache_Webhits service_description Apache_Status } ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From seloureiro at hotmail.com Mon Jul 26 15:28:56 2010 From: seloureiro at hotmail.com (Sergio Loureiro) Date: Mon, 26 Jul 2010 15:28:56 +0200 Subject: [Mac OS X 10.6] Problem loading ndomod broker module Message-ID: Hi All, I've installed Nagios 3.2.1 from the sources on a Mac OS X 10.6 and I've installed ndoutils 1.4b9. I get the following error on the logs: Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> file not found But the file is there and the permissions are ok. Looking at the code I saw that in the base/nebmods.c there is a copy of the library towards the temp directory that is then loaded and erased. On my temp directory i have the temporary file that is a copy but never erased. So, the error comes from the line (i'm using libtool): mod->module_handle=lt_dlopen(output_file); And i guess i'm getting a Mac OS X specific problem with dlopen because i've been using nagios on linux for a long time without trouble. Any hints? Thanks Sergio _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 ffeijo at ffeijo.com Mon Jul 26 16:20:42 2010 From: ffeijo at ffeijo.com (Fernando Feijo) Date: Mon, 26 Jul 2010 09:20:42 -0500 Subject: [Mac OS X 10.6] Problem loading ndomod broker module In-Reply-To: References: Message-ID: <0C515D0B-6773-4534-B50C-6726F4EF7BDA@ffeijo.com> Sergio, Not quite what you asked, but did you try the Darwin ports path? http://nagios.darwinports.com/ Fernando On Jul 26, 2010, at 8:28 AM, Sergio Loureiro wrote: > Hi All, > > I've installed Nagios 3.2.1 from the sources on a Mac OS X 10.6 and I've installed ndoutils 1.4b9. > > I get the following error on the logs: > Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> file not found > > But the file is there and the permissions are ok. Looking at the code I saw that in the base/nebmods.c there is a copy of the library towards the temp > directory that is then loaded and erased. On my temp directory i have the temporary file that is a copy but never erased. > > So, the error comes from the line (i'm using libtool): > mod->module_handle=lt_dlopen(output_file); > > And i guess i'm getting a Mac OS X specific problem with dlopen because i've been using nagios on linux for a long time without trouble. > Any hints? > > Thanks > Sergio > > > > Hotmail: Powerful Free email with security by Microsoft. Get it now. ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 seloureiro at hotmail.com Mon Jul 26 19:09:09 2010 From: seloureiro at hotmail.com (Sergio) Date: Mon, 26 Jul 2010 17:09:09 +0000 (UTC) Subject: [Mac OS X 10.6] Problem loading ndomod broker module References: <0C515D0B-6773-4534-B50C-6726F4EF7BDA@ffeijo.com> Message-ID: Hi Fernando, Thanks for your answer, i tried the nagios darwin port as well, and it works fine but i cannot load ndoutils. There is no port for ndoutils and this is the module that does not load. Do you use ndoutils on Mac OS X 10.6? Cheers Sergio ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Mon Jul 26 22:19:20 2010 From: lmw94002 at hotmail.com (Mathew Walker) Date: Mon, 26 Jul 2010 16:19:20 -0400 Subject: effective use of NSClient++ Eventlog management In-Reply-To: References: , <7D85034F6BBBD540AF52C59CED3AA1E803A12C74@AKVXCH02.tvnzad.tvnz.co.nz>, Message-ID: I use: http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Windows/NagEventLog It works pretty good, and you can set it up to alert for specific errors or look for all and filter out fluff ones. I even went to far as to figure out the registry settings and push updates for the eventIDs to filter via GPO. Maybe not as glamourous, but it worked pretty good in our environment. -- Mat W. - http://www.techadre.com From: subscription at kkeane.com To: nagios-users at lists.sourceforge.net Date: Sat, 24 Jul 2010 12:29:54 -0700 Subject: Re: [Nagios-users] effective use of NSClient++ Eventlog management I wrote my own event log management plugin because I didn?t find one that I liked. You can download it as part of the Sourceforge tntnagiosplugins project. It should work with NSClient++ (although admittedly I am not testing against that). It reports critical and warning events on the specified host (it will exclude a number of events that are known to be harmless, for instance DCOM 10009 and about a dozen or so other ones). The ?top ten events? seems like interesting functionality, but doesn?t really fit very well into the Nagios philosophy. Nagios can ultimately only distinguish between OK, WARNING, CRITICAL. There are better tools for statistical analysis. The collection of plugins also contains a separate plugin that reports on login errors. From: Ron Wilson [mailto:ron at tvnz.co.nz] Sent: Wednesday, July 21, 2010 3:52 PM To: Nagios Users List Subject: Re: [Nagios-users] effective use of NSClient++ Eventlog management I have tried several times over the past year but never managed to get the check_eventlog working. If you have any success do tell us about it From: keshav murthy [mailto:nkeshav12 at gmail.com] Sent: Wednesday, 21 July 2010 10:07 p.m. To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] effective use of NSClient++ Eventlog management Dear all, We are moving from pnsclient to NSclient++ for all our windows client. We would like to use the Event log management available with NSClient++. We would like to do the following (if it is feasible) Top Ten events in all the clients overall. Critical Event IDs on any server: We are looking for only the critical event ID's (like a AD account lockout event ID etc) to be captured and reported to the nagios server. Have anybody started using this eventlog management effectively and what are your way of putting it in place. Cheers Keshav==========================================================For more information on the Television New Zealand Group, visit usonline at tvnz.co.nz ==========================================================CAUTION: This e-mail and any attachment(s) contain information thatis intended to be read only by the named recipient(s). This informationis not to be used or stored by any other person and/or organisation. _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 will at demdex.com Tue Jul 27 00:06:45 2010 From: will at demdex.com (Will Chase) Date: Mon, 26 Jul 2010 18:06:45 -0400 Subject: SSL Confirmation Message-ID: <4C4E06F5.7050903@demdex.com> New user to the group here... Sorry if this is a repeated question, I haven't been able to find it in searches. I have a few machines running CentOS 5.5. I have a working Nagios configuration installed, monitoring some basic and non-basic checks, most over NRPE. I was asked me to make sure that the data is encrypted over SSL, and after doing some research, it looks to me like NRPE operates over SSL by default if both host & client have compatible version of openssl. Can anyone verify that this is true? I have run "check_nrpe" manually and verified that the handshake occurs without the "-n" flag. If I add the flag, the handshake fails... Which leads me to believe it's already running over SSL. If this is true, where is the encryption info stored by default (keys, etc)? Thanks, W ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.wolfe at robertwolfe.org Tue Jul 27 04:04:19 2010 From: robert.wolfe at robertwolfe.org (Robert Wolfe) Date: Mon, 26 Jul 2010 22:04:19 -0400 Subject: SSL Confirmation References: <4C4E06F5.7050903@demdex.com> Message-ID: <50BE9C7135A64147819E42376C136B26296D@dc1.wolfe.local> by default, in the configure script for nrpe detects the openssl libs, then it will build nrpe with ssl enabled by default unless you explicitly tell it not to, IIRC. Sent from my hospital bed in Niagara Falls, ____ _ _______ / __ \ | / / ___/ Robert Wolfe / /_/ / | /| / /\__ \ Robert Wolfe Software / _, _/| |/ |/ /___/ / Web : http://www.robertwolfe.org /_/ |_| |__/|__//____/ Debian Blog : http://debian.robertwolfe.org ________________________________ From: Will Chase [mailto:will at demdex.com] Sent: Mon 7/26/2010 6:06 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] SSL Confirmation New user to the group here... Sorry if this is a repeated question, I haven't been able to find it in searches. I have a few machines running CentOS 5.5. I have a working Nagios configuration installed, monitoring some basic and non-basic checks, most over NRPE. I was asked me to make sure that the data is encrypted over SSL, and after doing some research, it looks to me like NRPE operates over SSL by default if both host & client have compatible version of openssl. Can anyone verify that this is true? I have run "check_nrpe" manually and verified that the handshake occurs without the "-n" flag. If I add the flag, the handshake fails... Which leads me to believe it's already running over SSL. If this is true, where is the encryption info stored by default (keys, etc)? Thanks, W ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5216 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 nkeshav12 at gmail.com Tue Jul 27 07:19:32 2010 From: nkeshav12 at gmail.com (keshav murthy) Date: Tue, 27 Jul 2010 10:49:32 +0530 Subject: effective use of NSClient++ Eventlog management In-Reply-To: References: <7D85034F6BBBD540AF52C59CED3AA1E803A12C74@AKVXCH02.tvnzad.tvnz.co.nz> Message-ID: Thanks Kevin/Mat/Jel and Ron. I will try them and take which one suits best. On Tue, Jul 27, 2010 at 1:49 AM, Mathew Walker wrote: > I use: > http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Windows/NagEventLog > > It works pretty good, and you can set it up to alert for specific errors or > look for all and filter out fluff ones. I even went to far as to figure out > the registry settings and push updates for the eventIDs to filter via GPO. > Maybe not as glamourous, but it worked pretty good in our environment. > > -- > Mat W. - http://www.techadre.com > > > > ------------------------------ > From: subscription at kkeane.com > > To: nagios-users at lists.sourceforge.net > Date: Sat, 24 Jul 2010 12:29:54 -0700 > > Subject: Re: [Nagios-users] effective use of NSClient++ Eventlog management > > I wrote my own event log management plugin because I didn?t find one that > I liked. You can download it as part of the Sourceforge tntnagiosplugins > project. It should work with NSClient++ (although admittedly I am not > testing against that). > > > > It reports critical and warning events on the specified host (it will > exclude a number of events that are known to be harmless, for instance DCOM > 10009 and about a dozen or so other ones). > > > > The ?top ten events? seems like interesting functionality, but doesn?t > really fit very well into the Nagios philosophy. Nagios can ultimately only > distinguish between OK, WARNING, CRITICAL. There are better tools for > statistical analysis. > > > > The collection of plugins also contains a separate plugin that reports on > login errors. > > > > *From:* Ron Wilson [mailto:ron at tvnz.co.nz] > *Sent:* Wednesday, July 21, 2010 3:52 PM > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] effective use of NSClient++ Eventlog > management > > > > I have tried several times over the past year but never managed to get the > check_eventlog working. If you have any success do tell us about it > > > > *From:* keshav murthy [mailto:nkeshav12 at gmail.com] > *Sent:* Wednesday, 21 July 2010 10:07 p.m. > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] effective use of NSClient++ Eventlog management > > > > Dear all, > > > > We are moving from pnsclient to NSclient++ for all our windows client. We > would like to use the Event log management available with NSClient++. > > > > We would like to do the following (if it is feasible) > > > > Top Ten events in all the clients overall. > > Critical Event IDs on any server: We are looking for only the critical > event ID's (like a AD account lockout event ID etc) to be captured and > reported to the nagios server. > > > > Have anybody started using this eventlog management effectively and what > are your way of putting it in place. > > > > Cheers > > Keshav > > ========================================================== > > For more information on the Television New Zealand Group, visit us > > online at tvnz.co.nz > > ========================================================== > > CAUTION: This e-mail and any attachment(s) contain information that > > is intended to be read only by the named recipient(s). This information > > is not to be used or stored by any other person and/or organisation. > > > ------------------------------ > The New Busy is not the too busy. Combine all your e-mail accounts with > Hotmail. Get busy. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 standalone.sysadmin at gmail.com Tue Jul 27 17:35:17 2010 From: standalone.sysadmin at gmail.com (Matt Simmons) Date: Tue, 27 Jul 2010 11:35:17 -0400 Subject: Nagios Community Down? Message-ID: I'm getting a 302 whenever I try to connect to the Nagios community site (http://community.nagios.org/) as linked to by the main site. Is this related to the wiki issue or something else? (Or did I not get the memo?) --Matt -- LITTLE GIRL: But which cookie will you eat FIRST? COOKIE MONSTER: Me think you have misconception of cookie-eating process. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 27 17:44:53 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 27 Jul 2010 16:44:53 +0100 Subject: Nagios Community Down? In-Reply-To: References: Message-ID: <4C4EFEF5.4000701@flatto.net> Matt Simmons wrote: > I'm getting a 302 whenever I try to connect to the Nagios community > site (http://community.nagios.org/) as linked to by the main site. > > Is this related to the wiki issue or something else? (Or did I not get > the memo?) > > --Matt > > > I am able to access the website , with no problems. Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Tue Jul 27 19:20:36 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 27 Jul 2010 19:20:36 +0200 Subject: Nagios Community Down? In-Reply-To: References: Message-ID: <4C4F1564.6060203@univie.ac.at> On 2010-07-27 17:35, Matt Simmons wrote: > I'm getting a 302 whenever I try to connect to the Nagios community > site (http://community.nagios.org/) as linked to by the main site. > This has been redirecting to the main page for a while now. Probably because the Nagios community site has been hacked if this blog post tells the truth. http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html "It looks like a .htaccess redirection, but it might be something else. They are using an old version of WordPress, which may explain the compromise. We recommend people stay way from the site until it gets fixed." > Is this related to the wiki issue or something else? (Or did I not get > the memo?) > The wiki could have suffered from that too, but if no-one affiliated to those servers tells anything, we can just guess. Kind regards, Michael -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 fax: +43 1 4277 14279 web: http://www.univie.ac.at/zid Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carl at personnelware.com Tue Jul 27 20:26:57 2010 From: carl at personnelware.com (Carl Karsten) Date: Tue, 27 Jul 2010 13:26:57 -0500 Subject: timeperiod not behaving as expected Message-ID: So I took over someone's nagios setup - it works fine except it checks that a box is up 24x7 but the box has a cronjob that does 0600 ifup, 2000 ifdown; so I get a wad of email every night telling me the box is down, and then the resolved when it comes back up. So I tried to fix it, and now I get more email. Here is a diff of what I changed, my credit_card_hours, and the part of server.cfg that I think is relevant. juser at four:~/temp$ diff nag0.txt nag1.txt 1d0 < 6c5 < check_period 24x7 ; By default, Linux hosts are checked round the clock --- > check_period credit_card_hours 12,14c11,12 < ; Note that the notification_period variable is being overridden from < ; the value that is inherited from the generic-host template! < notification_interval 60 ; Resend notifications every 2 hours --- > > notification_interval 60 define timeperiod{ timeperiod_name credit_card_hours alias when credit cards can be processed sunday 06:00-20:00 monday 06:00-20:00 tuesday 06:00-20:00 wednesday 06:00-20:00 thursday 06:00-20:00 friday 06:00-20:00 saturday 06:00-20:00 define host{ use linux-server ; This template inherits other values from the generic-host template host_name mcve.cteusa.com ; The name of this host hostgroups linux-servers check_period credit_card_hours check_interval 5 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period 24x7 ; Linux admins hate to be woken up, so we only notify during the day notification_interval 60 notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 1 } define service{ use generic-service ; Inherit default values from a template host_name mcve.cteusa.com service_description SMTP check_command check_smtp!-t 5 } define service{ use generic-service ; Inherit default values from a template host_name mcve.cteusa.com service_description SSH check_command check_ssh } define service{ use generic-service ; Name of service template to use host_name mcve.cteusa.com service_description PING check_command check_ping!100.0,20%!500.0,60% } -- Carl K ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From standalone.sysadmin at gmail.com Tue Jul 27 21:45:22 2010 From: standalone.sysadmin at gmail.com (Matt Simmons) Date: Tue, 27 Jul 2010 15:45:22 -0400 Subject: Nagios Community Down? In-Reply-To: <4C4F1564.6060203@univie.ac.at> References: <4C4F1564.6060203@univie.ac.at> Message-ID: Do the people who run the website look at this list, or does anyone have the contact for them? On Tue, Jul 27, 2010 at 1:20 PM, Michael Friedrich wrote: > On 2010-07-27 17:35, Matt Simmons wrote: >> I'm getting a 302 whenever I try to connect to the Nagios community >> site (http://community.nagios.org/) as linked to by the main site. >> > > This has been redirecting to the main page for a while now. Probably > because the Nagios community site has been hacked if this blog post > tells the truth. > > http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html > > "It looks like a .htaccess redirection, but it might be something else. > They are using an old version of WordPress, which may explain the > compromise. We recommend people stay way from the site until it gets fixed." > > >> Is this related to the wiki issue or something else? (Or did I not get >> the memo?) >> > > The wiki could have suffered from that too, but if no-one affiliated to > those servers tells anything, we can just guess. > > Kind regards, > Michael > > -- > DI (FH) Michael Friedrich > > Vienna University Computer Center > Universitaetsstrasse 7 A-1010 Vienna, Austria > > email: ?michael.friedrich at univie.ac.at > phone: ?+43 1 4277 14359 > fax: ? ?+43 1 4277 14279 > web: ? ?http://www.univie.ac.at/zid > > Icinga Core& ?IDOUtils Developer > http://www.icinga.org > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- LITTLE GIRL: But which cookie will you eat FIRST? COOKIE MONSTER: Me think you have misconception of cookie-eating process. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyarusso at nagios.com Tue Jul 27 22:27:25 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 27 Jul 2010 15:27:25 -0500 Subject: Nagios Community Down? In-Reply-To: References: <4C4F1564.6060203@univie.ac.at> Message-ID: <1280262445.7275.3.camel@ubuntu-desktop.SSG5-Serial> On Tue, 2010-07-27 at 15:45 -0400, Matt Simmons wrote: > Do the people who run the website look at this list, or does anyone > have the contact for them? > > On Tue, Jul 27, 2010 at 1:20 PM, Michael Friedrich > wrote: > > On 2010-07-27 17:35, Matt Simmons wrote: > >> I'm getting a 302 whenever I try to connect to the Nagios community > >> site (http://community.nagios.org/) as linked to by the main site. > >> > > > > This has been redirecting to the main page for a while now. Probably > > because the Nagios community site has been hacked if this blog post > > tells the truth. > > > > http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html > > I don't actually run the site, but am in the same office as the guy who does, so...close enough. :) I can confirm that it is indeed still the result of the WordPress installation being hacked, as Michael noted. I don't know what our plan or timeline for addressing it is. -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Tue Jul 27 22:50:14 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 27 Jul 2010 21:50:14 +0100 Subject: timeperiod not behaving as expected In-Reply-To: References: Message-ID: <4C4F4686.4060306@flatto.net> Carl You have the right idea but wrong setup . What you want to do it check : credit_card_hours . and notification changed to : credit_card_hours , that means it will only alert you in the hours that it is not " administratively down". so have these directives changed : notification_period credit_card_hours check_period credit_card_hours that should solve your alerts issue. Assaf Carl Karsten wrote: > So I took over someone's nagios setup - it works fine except it checks > that a box is up 24x7 but the box has a cronjob that does 0600 ifup, > 2000 ifdown; so I get a wad of email every night telling me the box > is down, and then the resolved when it comes back up. So I tried to > fix it, and now I get more email. > > Here is a diff of what I changed, my credit_card_hours, and the part > of server.cfg that I think is relevant. > > juser at four:~/temp$ diff nag0.txt nag1.txt > 1d0 > < > 6c5 > < check_period 24x7 ; By > default, Linux hosts are checked round the clock > --- > >> check_period credit_card_hours >> > 12,14c11,12 > < ; Note that > the notification_period variable is being overridden from > < ; the value > that is inherited from the generic-host template! > < notification_interval 60 ; Resend > notifications every 2 hours > --- > >> notification_interval 60 >> > > > define timeperiod{ > timeperiod_name credit_card_hours > alias when credit cards can be processed > > sunday 06:00-20:00 > monday 06:00-20:00 > tuesday 06:00-20:00 > wednesday 06:00-20:00 > thursday 06:00-20:00 > friday 06:00-20:00 > saturday 06:00-20:00 > > > define host{ > use linux-server ; This > template inherits other values from the generic-host template > host_name mcve.cteusa.com ; The > name of this host > hostgroups linux-servers > check_period credit_card_hours > check_interval 5 ; Actively > check the host every 5 minutes > retry_interval 1 ; Schedule > host check retries at 1 minute intervals > max_check_attempts 10 ; Check each > Linux host 10 times (max) > check_command check-host-alive ; Default > command to check Linux hosts > notification_period 24x7 ; Linux admins hate to > be woken up, so we only notify during the day > > notification_interval 60 > notification_options d,u,r ; Only send > notifications for specific host states > contact_groups admins ; > Notifications get sent to the admins by default > register 1 > } > > define service{ > use generic-service ; Inherit default > values from a template > host_name mcve.cteusa.com > service_description SMTP > check_command check_smtp!-t 5 > } > define service{ > use generic-service ; Inherit default > values from a template > host_name mcve.cteusa.com > service_description SSH > check_command check_ssh > } > define service{ > use generic-service ; Name > of service template to use > host_name mcve.cteusa.com > service_description PING > check_command check_ping!100.0,20%!500.0,60% > } > > > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdougher at inch.com Wed Jul 28 00:18:46 2010 From: mdougher at inch.com (Matthew Dougherty) Date: Tue, 27 Jul 2010 18:18:46 -0400 Subject: Is there a way to have Nagios generate a non-critical event for "Return code of 126 is out of bounds" In-Reply-To: <4C4F4686.4060306@flatto.net> References: <4C4F4686.4060306@flatto.net> Message-ID: <1280269126.2610.8.camel@mdougher-laptop> When file permissions are wrong or other issues occur, nagios may be prevented from executing a test but it generates a CRITICAL service alert. In this case I do not want to notify the application owner but instead the nagios owner and I don't want it to be CRITICAL because it doesn't indicate a service outage. Is there a way configure how this is handled? Matthew Dougherty mdougher at inch.com 973-325-8556 Matthew Dougherty mdougher at inch.com 973-325-8556 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 mikealeonetti at gmail.com Wed Jul 28 04:51:09 2010 From: mikealeonetti at gmail.com (Mike A. Leonetti) Date: Tue, 27 Jul 2010 22:51:09 -0400 Subject: Advice on setting up escalations Message-ID: <4C4F9B1D.5070504@gmail.com> Because people say that I go about things in a too complicated way, rather than just posting what I want to do I'd like to try posting my goal :D. The goal is this: - "Account managers" get alerts of only their clients (which consist of certain hosts and all of their services) during work hours - "On-call technicians" get alerts of only clients after hours. - "Escalation team" gets alerts of all clients 24x7 but only if the alert isn't responded to after 1 alert. - "Nagios admin" gets alerted on all alerts I have nagios functioning now with a 24x7 notification schedule just notifying a group of people, but my company wanted to switch it up. Some direction on the best way of doing this would be very appreciated. Thanks. -- Mike A. Leonetti As warm as green tea ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ledondo2000 at gmail.com Wed Jul 28 09:51:24 2010 From: ledondo2000 at gmail.com (Mika Chu) Date: Wed, 28 Jul 2010 15:51:24 +0800 Subject: About service contacts Message-ID: Dear, I am a beginning user of nagios, and trying to find a convenient way to define different service contacts. For example this, define service{ name check_ssh use generic-service service_description SSH host_name mail,file,backup check_command check_ssh } if the mail server ssh has problem, I want to notify user A. If file server ssh has prolem, I want to notify user B, and etc. Please advice how to do that? Thanks a lot! -- --- Mika Chu ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From georgyboy at gmail.com Wed Jul 28 10:07:36 2010 From: georgyboy at gmail.com (Jorge Gil) Date: Wed, 28 Jul 2010 10:07:36 +0200 Subject: About service contacts In-Reply-To: References: Message-ID: Dear, I copy you a working example of my Nagios, just define two times the service with different contacts -it will make it work different for warning different administrators of different servers: define service{ use generic-service host_name www2 service_description HTTP check_command check_http is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 notification_interval 0 notification_period 24x7 notification_options c,r,w,u,f notifications_enabled 1 } define service{ use generic-service host_name www2 service_description HTTP check_command check_http is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 contacts fernando,steria notification_interval 0 notification_period 24x7 notification_options c,r,w,u,f notifications_enabled 1 } Kind regards, Jorge On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu wrote: > Dear, > > I am a beginning user of nagios, and trying to find a convenient way > to define different service contacts. For example this, > > define service{ > name check_ssh > use generic-service > service_description SSH > host_name mail,file,backup > check_command check_ssh > } > > if the mail server ssh has problem, I want to notify user A. If file > server ssh has prolem, I want to notify user B, and etc. > > Please advice how to do that? > Thanks a lot! > -- > --- > Mika Chu > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 opsera.com Wed Jul 28 10:12:19 2010 From: ton.voon at opsera.com (Ton Voon) Date: Wed, 28 Jul 2010 09:12:19 +0100 Subject: Nagios Plugins 1.4.15 released! Message-ID: <1D7DC8BE-0381-4AB4-B7CB-55B873154B75@opsera.com> The Nagios Plugin development team are proud to announce a new release of the Nagios Plugins! More details at http://nagiosplugins.org/nagiosplugins-1.4.15 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 ledondo2000 at gmail.com Wed Jul 28 10:14:15 2010 From: ledondo2000 at gmail.com (Mika Chu) Date: Wed, 28 Jul 2010 16:14:15 +0800 Subject: About service contacts In-Reply-To: References: Message-ID: Hello Jorge, If the http service on your www2 host down, I believe all of contacts will get the notification? Is it possible only let your fernando & steria get the notification, but we can use less define in .cfg file? 2010/7/28, Jorge Gil : > Dear, > > I copy you a working example of my Nagios, just define two times the service > with different contacts -it will make it work different for warning > different administrators of different servers: > > define service{ > use generic-service > host_name www2 > service_description HTTP > check_command check_http > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 > notification_interval 0 > notification_period 24x7 > notification_options c,r,w,u,f > notifications_enabled 1 > } > > define service{ > use generic-service > host_name www2 > service_description HTTP > check_command check_http > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > contacts fernando,steria > notification_interval 0 > notification_period 24x7 > notification_options c,r,w,u,f > notifications_enabled 1 > } > > Kind regards, > Jorge > > On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu wrote: > >> Dear, >> >> I am a beginning user of nagios, and trying to find a convenient way >> to define different service contacts. For example this, >> >> define service{ >> name check_ssh >> use generic-service >> service_description SSH >> host_name mail,file,backup >> check_command check_ssh >> } >> >> if the mail server ssh has problem, I want to notify user A. If file >> server ssh has prolem, I want to notify user B, and etc. >> >> Please advice how to do that? >> Thanks a lot! >> -- >> --- >> Mika Chu >> >> >> ------------------------------------------------------------------------------ >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://ad.doubleclick.net/clk;226879339;13503038;l? >> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > -- --- Mika Chu ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From georgyboy at gmail.com Wed Jul 28 10:21:57 2010 From: georgyboy at gmail.com (Jorge Gil) Date: Wed, 28 Jul 2010 10:21:57 +0200 Subject: About service contacts In-Reply-To: References: Message-ID: Yes, i edited the extract of the config file You wanted www1 to notify contact1, use the first service deinition and for www2 to notify contact2, the second like: define service{ use generic-service host_name www1 service_description HTTP check_command check_http is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 notification_interval 0 notification_period 24x7 notification_options c,r,w,u,f notifications_enabled 1 } define service{ use generic-service host_name www2 service_description HTTP check_command check_http is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 contacts fernando,steria notification_interval 0 notification_period 24x7 notification_options c,r,w,u,f notifications_enabled 1 } I hope now it s more clear. Jorge On Wed, Jul 28, 2010 at 10:14 AM, Mika Chu wrote: > Hello Jorge, > If the http service on your www2 host down, I believe all of contacts > will get the notification? > > Is it possible only let your fernando & steria get the notification, > but we can use less define in .cfg file? > > 2010/7/28, Jorge Gil : > > Dear, > > > > I copy you a working example of my Nagios, just define two times the > service > > with different contacts -it will make it work different for warning > > different administrators of different servers: > > > > define service{ > > use generic-service > > host_name www2 > > service_description HTTP > > check_command check_http > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 2 > > normal_check_interval 5 > > retry_check_interval 5 > > contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r,w,u,f > > notifications_enabled 1 > > } > > > > define service{ > > use generic-service > > host_name www2 > > service_description HTTP > > check_command check_http > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 2 > > normal_check_interval 5 > > retry_check_interval 5 > > contacts fernando,steria > > notification_interval 0 > > notification_period 24x7 > > notification_options c,r,w,u,f > > notifications_enabled 1 > > } > > > > Kind regards, > > Jorge > > > > On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu wrote: > > > >> Dear, > >> > >> I am a beginning user of nagios, and trying to find a convenient way > >> to define different service contacts. For example this, > >> > >> define service{ > >> name check_ssh > >> use generic-service > >> service_description SSH > >> host_name mail,file,backup > >> check_command check_ssh > >> } > >> > >> if the mail server ssh has problem, I want to notify user A. If file > >> server ssh has prolem, I want to notify user B, and etc. > >> > >> Please advice how to do that? > >> Thanks a lot! > >> -- > >> --- > >> Mika Chu > >> > >> > >> > ------------------------------------------------------------------------------ > >> The Palm PDK Hot Apps Program offers developers who use the > >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share > >> of $1 Million in cash or HP Products. Visit us here for more details: > >> http://ad.doubleclick.net/clk;226879339;13503038;l? > >> http://clk.atdmt.com/CRS/go/247765532/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > -- > --- > Mika Chu > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 ledondo2000 at gmail.com Wed Jul 28 10:33:48 2010 From: ledondo2000 at gmail.com (Mika Chu) Date: Wed, 28 Jul 2010 16:33:48 +0800 Subject: About service contacts In-Reply-To: References: Message-ID: Dear Jorge, I think I had a mistake I defined a name for every service, so nagios warns me if I define different contact, about name conflict. Your answer is correct me, thanks a lot! 2010/7/28, Jorge Gil : > Yes, i edited the extract of the config file > > You wanted www1 to notify contact1, use the first service deinition > and for www2 to notify contact2, the second > > like: > > define service{ > use generic-service > host_name www1 > service_description HTTP > check_command check_http > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 > notification_interval 0 > notification_period 24x7 > notification_options c,r,w,u,f > notifications_enabled 1 > } > > define service{ > use generic-service > host_name www2 > service_description HTTP > check_command check_http > is_volatile 0 > check_period 24x7 > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > contacts fernando,steria > notification_interval 0 > notification_period 24x7 > notification_options c,r,w,u,f > notifications_enabled 1 > } > > I hope now it s more clear. > Jorge > > On Wed, Jul 28, 2010 at 10:14 AM, Mika Chu wrote: > >> Hello Jorge, >> If the http service on your www2 host down, I believe all of contacts >> will get the notification? >> >> Is it possible only let your fernando & steria get the notification, >> but we can use less define in .cfg file? >> >> 2010/7/28, Jorge Gil : >> > Dear, >> > >> > I copy you a working example of my Nagios, just define two times the >> service >> > with different contacts -it will make it work different for warning >> > different administrators of different servers: >> > >> > define service{ >> > use generic-service >> > host_name www2 >> > service_description HTTP >> > check_command check_http >> > is_volatile 0 >> > check_period 24x7 >> > max_check_attempts 2 >> > normal_check_interval 5 >> > retry_check_interval 5 >> > contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4 >> > notification_interval 0 >> > notification_period 24x7 >> > notification_options c,r,w,u,f >> > notifications_enabled 1 >> > } >> > >> > define service{ >> > use generic-service >> > host_name www2 >> > service_description HTTP >> > check_command check_http >> > is_volatile 0 >> > check_period 24x7 >> > max_check_attempts 2 >> > normal_check_interval 5 >> > retry_check_interval 5 >> > contacts fernando,steria >> > notification_interval 0 >> > notification_period 24x7 >> > notification_options c,r,w,u,f >> > notifications_enabled 1 >> > } >> > >> > Kind regards, >> > Jorge >> > >> > On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu wrote: >> > >> >> Dear, >> >> >> >> I am a beginning user of nagios, and trying to find a convenient way >> >> to define different service contacts. For example this, >> >> >> >> define service{ >> >> name check_ssh >> >> use generic-service >> >> service_description SSH >> >> host_name mail,file,backup >> >> check_command check_ssh >> >> } >> >> >> >> if the mail server ssh has problem, I want to notify user A. If file >> >> server ssh has prolem, I want to notify user B, and etc. >> >> >> >> Please advice how to do that? >> >> Thanks a lot! >> >> -- >> >> --- >> >> Mika Chu >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> The Palm PDK Hot Apps Program offers developers who use the >> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> >> of $1 Million in cash or HP Products. Visit us here for more details: >> >> http://ad.doubleclick.net/clk;226879339;13503038;l? >> >> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >> >> _______________________________________________ >> >> Nagios-users mailing list >> >> Nagios-users at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: Please include Nagios version, plugin version (-v) and OS when >> >> reporting any issue. >> >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> > >> >> >> -- >> --- >> Mika Chu >> > -- --- Mika Chu ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at quux.de Wed Jul 28 11:11:56 2010 From: lists at quux.de (Jens Link) Date: Wed, 28 Jul 2010 11:11:56 +0200 Subject: IPv6 Dual-Stack and Nagios In-Reply-To: <4C49EF2B.6070205@lafayette.edu> (Jason Frisvold's message of "Fri\, 23 Jul 2010 15\:36\:11 -0400") References: <4C49EF2B.6070205@lafayette.edu> Message-ID: <87r5io6kdf.fsf@oban.berlin.quux.de> Jason Frisvold writes: > Hi all, > > I'm looking for information about how people are handling > dual-stack IPv4/IPv6 machines within Nagios. Since the host_name field > has to be unique, you can't have two nagios definitions for the same > host, but with difference addresses ... You can always modify the > host_name slightly to make it unique, but that breaks any plugin that > depends on the host_name. currently I' using two host names e.g. example.com and example.com_ipv6 It's a little extra work but I couldn't think of a better way when I first added IPv6 checks to my Nagios installation. Speaking of IPv6: I'm really missing IPv6 support for nrpe. Jens -- ------------------------------------------------------------------------- | Foelderichstr. 40 | 13595 Berlin, Germany | +49-151-18721264 | | http://blog.quux.de | jabber: jenslink at guug.de | ------------------- | ------------------------------------------------------------------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlgibbs at utica.edu Wed Jul 28 14:51:27 2010 From: jlgibbs at utica.edu (Jeremy Gibbs) Date: Wed, 28 Jul 2010 08:51:27 -0400 Subject: Ability to warn when number goes bellow warning level In-Reply-To: References: Message-ID: I have many UPS systems. I would like to warn when the battery gets below 90% and go critical when it goes below 80%. Is there a way to do this? Thanks -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/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 nagios at flatto.net Wed Jul 28 15:06:02 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 28 Jul 2010 14:06:02 +0100 Subject: Ability to warn when number goes bellow warning level In-Reply-To: References: Message-ID: <4C502B3A.9090802@flatto.net> Jeremy Gibbs wrote: > I have many UPS systems. I would like to warn when the battery gets > below 90% and go critical when it goes below 80%. Is there a way to > do this? > > Thanks > try this , looks like it might be what you need http://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Environmental/check_ups_alarm -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carl at personnelware.com Wed Jul 28 16:02:55 2010 From: carl at personnelware.com (Carl Karsten) Date: Wed, 28 Jul 2010 09:02:55 -0500 Subject: timeperiod not behaving as expected In-Reply-To: <4C4F4686.4060306@flatto.net> References: <4C4F4686.4060306@flatto.net> Message-ID: I made that change, and also backed the end of the period off a min to avoid the race between the check and the ifdown. /etc/init.d/nagios reload, still got an email every hour it was down: first: Date/Time: Tue Jul 27 20:03:34 CDT 2010 last: Date/Time: Wed Jul 28 05:03:34 CDT 2010 recovery notice: Date/Time: Wed Jul 28 06:03:34 CDT 2010 define timeperiod{ timeperiod_name credit_card_hours alias when credit cards can be processed sunday 06:00-19:59 monday 06:00-19:59 tuesday 06:00-19:59 wednesday 06:00-19:59 thursday 06:00-19:59 friday 06:00-19:59 saturday 06:00-19:59 } define host{ use linux-server ; This template inherits other values from the generic-host template host_name mcve.cteusa.com ; The name of this host hostgroups linux-servers check_period credit_card_hours check_interval 5 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period credit_card_hours notification_interval 60 notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 1 } define service{ use generic-service ; Inherit default values from a template host_name mcve.cteusa.com service_description SMTP check_command check_smtp!-t 5 } On Tue, Jul 27, 2010 at 4:50 PM, Assaf Flatto wrote: > Carl > > You have the right idea but wrong setup . > What you want to do it check : credit_card_hours . > and notification changed to ?: credit_card_hours , that means it will > only alert you in the hours that it is not " administratively down". > > so have these directives changed : > > notification_period ? ? credit_card_hours > > check_period ? ?credit_card_hours > > that should solve your alerts issue. > > Assaf > Carl Karsten wrote: >> So I took over someone's nagios setup - it works fine except it checks >> that a box is up 24x7 but the box has a cronjob that does 0600 ifup, >> 2000 ifdown; ?so I get a wad of email every night telling me the box >> is down, and then the resolved when it comes back up. ?So I tried to >> fix it, and now I get more email. >> >> Here is a diff of what I changed, my credit_card_hours, and the part >> of server.cfg that I think is relevant. >> >> juser at four:~/temp$ diff nag0.txt nag1.txt >> 1d0 >> < >> 6c5 >> < ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?24x7 ? ? ? ? ? ?; By >> default, Linux hosts are checked round the clock >> --- >> >>> ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?credit_card_hours >>> >> 12,14c11,12 >> < ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ; Note that >> the notification_period variable is being overridden from >> < ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ; the value >> that is inherited from the generic-host template! >> < ? ? ? ? notification_interval ? ? ? ? ? 60 ? ? ? ? ? ? ?; Resend >> notifications every 2 hours >> --- >> >>> ? ? ? ? notification_interval ? ? ? ? ? 60 >>> >> >> >> define timeperiod{ >> ? ? ? ? timeperiod_name credit_card_hours >> ? ? ? ? alias ? ? ? ? ? when credit cards can be processed >> >> ? ? ? ? sunday ? ? ? ? ?06:00-20:00 >> ? ? ? ? monday ? ? ? ? ?06:00-20:00 >> ? ? ? ? tuesday ? ? ? ? 06:00-20:00 >> ? ? ? ? wednesday ? ? ? 06:00-20:00 >> ? ? ? ? thursday ? ? ? ?06:00-20:00 >> ? ? ? ? friday ? ? ? ? ?06:00-20:00 >> ? ? ? ? saturday ? ? ? ?06:00-20:00 >> >> >> define host{ >> ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? linux-server ? ?; This >> template inherits other values from the generic-host template >> ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ? mcve.cteusa.com ? ? ? ? ; The >> name of this host >> ? ? ? ? hostgroups ? ? ? ? ? ? ? ? ? ? ?linux-servers >> ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?credit_card_hours >> ? ? ? ? check_interval ? ? ? ? ? ? ? ? ?5 ? ? ? ? ? ? ? ; Actively >> check the host every 5 minutes >> ? ? ? ? retry_interval ? ? ? ? ? ? ? ? ?1 ? ? ? ? ? ? ? ; Schedule >> host check retries at 1 minute intervals >> ? ? ? ? max_check_attempts ? ? ? ? ? ? ?10 ? ? ? ? ? ? ?; Check each >> Linux host 10 times (max) >> ? ? ? ? check_command ? ? ? ? ? ? ? ? ? check-host-alive ; Default >> command to check Linux hosts >> ? ? ? ? notification_period ? ? ? ? ? ? 24x7 ? ?; Linux admins hate to >> be woken up, so we only notify during the day >> >> ? ? ? ? notification_interval ? ? ? ? ? 60 >> ? ? ? ? notification_options ? ? ? ? ? ?d,u,r ? ? ? ? ? ; Only send >> notifications for specific host states >> ? ? ? ? contact_groups ? ? ? ? ? ? ? ? ?admins ? ? ? ? ?; >> Notifications get sent to the admins by default >> ? ? ? ? register ? ? ? ? ? ? ? ? ? ? ? ?1 >> ? ? ? ? } >> >> define service{ >> ? ? ? ? use ? ? ? ? ? ? generic-service ? ? ? ? ; Inherit default >> values from a template >> ? ? ? ? host_name ? ? ? ? ? ? ? mcve.cteusa.com >> ? ? ? ? service_description ? ? SMTP >> ? ? ? ? check_command ? check_smtp!-t 5 >> ? ? ? ? } >> define service{ >> ? ? ? ? use ? ? ? ? ? ? generic-service ? ? ? ? ; Inherit default >> values from a template >> ? ? ? ? host_name ? ? ? ? ? ? ? mcve.cteusa.com >> ? ? ? ? service_description ? ? SSH >> ? ? ? ? check_command ? check_ssh >> ? ? ? ? } >> define service{ >> ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service ? ? ? ? ; Name >> of service template to use >> ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ? mcve.cteusa.com >> ? ? ? ? service_description ? ? ? ? ? ? PING >> ? ? ? ? check_command ? ? ? ? ? ? ? ? ? check_ping!100.0,20%!500.0,60% >> ? ? ? ? } >> >> >> > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Carl K ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 28 16:15:09 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 28 Jul 2010 15:15:09 +0100 Subject: timeperiod not behaving as expected In-Reply-To: References: <4C4F4686.4060306@flatto.net> Message-ID: <4C503B6D.9050600@flatto.net> Carl Karsten wrote: > I made that change, and also backed the end of the period off a min to > avoid the race between the check and the ifdown. /etc/init.d/nagios > reload, still got an email every hour it was down: > > first: Date/Time: Tue Jul 27 20:03:34 CDT 2010 > last: Date/Time: Wed Jul 28 05:03:34 CDT 2010 > recovery notice: Date/Time: Wed Jul 28 06:03:34 CDT 2010 > > define timeperiod{ > timeperiod_name credit_card_hours > alias when credit cards can be processed > > sunday 06:00-19:59 > monday 06:00-19:59 > tuesday 06:00-19:59 > wednesday 06:00-19:59 > thursday 06:00-19:59 > friday 06:00-19:59 > saturday 06:00-19:59 > } > > > > define host{ > use linux-server ; This > template inherits other values from the generic-host template > host_name mcve.cteusa.com ; The > name of this host > hostgroups linux-servers > check_period credit_card_hours > check_interval 5 ; Actively > check the host every 5 minutes > retry_interval 1 ; Schedule > host check retries at 1 minute intervals > max_check_attempts 10 ; Check each > Linux host 10 times (max) > check_command check-host-alive ; Default > command to check Linux hosts > notification_period credit_card_hours > notification_interval 60 > notification_options d,u,r ; Only send > notifications for specific host states > contact_groups admins ; > Notifications get sent to the admins by default > register 1 > } > > define service{ > use generic-service ; Inherit default > values from a template > host_name mcve.cteusa.com > service_description SMTP > check_command check_smtp!-t 5 > } > > You'll need to define the check time and notification time for the services too . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carl at personnelware.com Wed Jul 28 16:13:19 2010 From: carl at personnelware.com (Carl Karsten) Date: Wed, 28 Jul 2010 10:13:19 -0400 Subject: timeperiod not behaving as expected In-Reply-To: <4C503B6D.9050600@flatto.net> References: <4C4F4686.4060306@flatto.net> <4C503B6D.9050600@flatto.net> Message-ID: On Wed, Jul 28, 2010 at 10:15 AM, Assaf Flatto wrote: > Carl Karsten wrote: >> I made that change, and also backed the end of the period off a min to >> avoid the race between the check and the ifdown. ?/etc/init.d/nagios >> reload, still got an email every hour it was down: >> >> first: Date/Time: Tue Jul 27 20:03:34 CDT 2010 >> last: Date/Time: Wed Jul 28 05:03:34 CDT 2010 >> recovery notice: Date/Time: Wed Jul 28 06:03:34 CDT 2010 >> >> define timeperiod{ >> ? ? ? ? timeperiod_name credit_card_hours >> ? ? ? ? alias ? ? ? ? ? when credit cards can be processed >> >> ? ? ? ? sunday ? ? ? ? ?06:00-19:59 >> ? ? ? ? monday ? ? ? ? ?06:00-19:59 >> ? ? ? ? tuesday ? ? ? ? 06:00-19:59 >> ? ? ? ? wednesday ? ? ? 06:00-19:59 >> ? ? ? ? thursday ? ? ? ?06:00-19:59 >> ? ? ? ? friday ? ? ? ? ?06:00-19:59 >> ? ? ? ? saturday ? ? ? ?06:00-19:59 >> ? ? ? ? } >> >> >> >> define host{ >> ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? linux-server ? ?; This >> template inherits other values from the generic-host template >> ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ? mcve.cteusa.com ? ? ? ? ; The >> name of this host >> ? ? ? ? hostgroups ? ? ? ? ? ? ? ? ? ? ?linux-servers >> ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?credit_card_hours >> ? ? ? ? check_interval ? ? ? ? ? ? ? ? ?5 ? ? ? ? ? ? ? ; Actively >> check the host every 5 minutes >> ? ? ? ? retry_interval ? ? ? ? ? ? ? ? ?1 ? ? ? ? ? ? ? ; Schedule >> host check retries at 1 minute intervals >> ? ? ? ? max_check_attempts ? ? ? ? ? ? ?10 ? ? ? ? ? ? ?; Check each >> Linux host 10 times (max) >> ? ? ? ? check_command ? ? ? ? ? ? ? ? ? check-host-alive ; Default >> command to check Linux hosts >> ? ? ? ? notification_period ? ? ? ? ? ? credit_card_hours >> ? ? ? ? notification_interval ? ? ? ? ? 60 >> ? ? ? ? notification_options ? ? ? ? ? ?d,u,r ? ? ? ? ? ; Only send >> notifications for specific host states >> ? ? ? ? contact_groups ? ? ? ? ? ? ? ? ?admins ? ? ? ? ?; >> Notifications get sent to the admins by default >> ? ? ? ? register ? ? ? ? ? ? ? ? ? ? ? ?1 >> ? ? ? ? } >> >> define service{ >> ? ? ? ? use ? ? ? ? ? ? generic-service ? ? ? ? ; Inherit default >> values from a template >> ? ? ? ? host_name ? ? ? ? ? ? ? mcve.cteusa.com >> ? ? ? ? service_description ? ? SMTP >> ? ? ? ? check_command ? check_smtp!-t 5 >> ? ? ? ? } >> >> > You'll need to define the check time and notification time for the > services too . > > I figured it was something like that. There are only 3, but it seems like I should use a template. is there a recommended place? (timeperiods, linuxservers.cfg...) -- Carl K ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rewt at dvdmenus.net Wed Jul 28 16:15:08 2010 From: rewt at dvdmenus.net (John Antram) Date: Wed, 28 Jul 2010 10:15:08 -0400 Subject: Ability to warn when number goes bellow warning level In-Reply-To: References: Message-ID: <4C503B6C.7000604@dvdmenus.net> Jeremy, if you already have apcupsd ( www.apcupsd.com ) installed on the target "ups hosts" you can use check_apcupsd ( http://exchange.nagios.org/directory/Plugins/Hardware/UPS/APC/check_apcupsd/details ) I have a good many ups units deployed to workstations and keep an eye on them with nagios through this plugin. It is a bash script however, so it won't work if your nagios system is windows. I have extended the code to report several other variables as well, it is easy to do. John Antram Subatomic Digital Essex Junction Vermont, 05452 rewt at dvdmenus.net On 7/28/2010 8:51 AM, Jeremy Gibbs wrote: > I have many UPS systems. I would like to warn when the battery gets > below 90% and go critical when it goes below 80%. Is there a way to > do this? > > Thanks > > > -- > Jeremy L. Gibbs > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 223-2383 > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 28 16:35:28 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 28 Jul 2010 15:35:28 +0100 Subject: timeperiod not behaving as expected In-Reply-To: References: <4C4F4686.4060306@flatto.net> <4C503B6D.9050600@flatto.net> Message-ID: <4C504030.7090900@flatto.net> Carl Karsten wrote: > On Wed, Jul 28, 2010 at 10:15 AM, Assaf Flatto wrote: > >> Carl Karsten wrote: >> >>> I made that change, and also backed the end of the period off a min to >>> avoid the race between the check and the ifdown. /etc/init.d/nagios >>> reload, still got an email every hour it was down: >>> >>> first: Date/Time: Tue Jul 27 20:03:34 CDT 2010 >>> last: Date/Time: Wed Jul 28 05:03:34 CDT 2010 >>> recovery notice: Date/Time: Wed Jul 28 06:03:34 CDT 2010 >>> >>> define timeperiod{ >>> timeperiod_name credit_card_hours >>> alias when credit cards can be processed >>> >>> sunday 06:00-19:59 >>> monday 06:00-19:59 >>> tuesday 06:00-19:59 >>> wednesday 06:00-19:59 >>> thursday 06:00-19:59 >>> friday 06:00-19:59 >>> saturday 06:00-19:59 >>> } >>> >>> >>> >>> define host{ >>> use linux-server ; This >>> template inherits other values from the generic-host template >>> host_name mcve.cteusa.com ; The >>> name of this host >>> hostgroups linux-servers >>> check_period credit_card_hours >>> check_interval 5 ; Actively >>> check the host every 5 minutes >>> retry_interval 1 ; Schedule >>> host check retries at 1 minute intervals >>> max_check_attempts 10 ; Check each >>> Linux host 10 times (max) >>> check_command check-host-alive ; Default >>> command to check Linux hosts >>> notification_period credit_card_hours >>> notification_interval 60 >>> notification_options d,u,r ; Only send >>> notifications for specific host states >>> contact_groups admins ; >>> Notifications get sent to the admins by default >>> register 1 >>> } >>> >>> define service{ >>> use generic-service ; Inherit default >>> values from a template >>> host_name mcve.cteusa.com >>> service_description SMTP >>> check_command check_smtp!-t 5 >>> } >>> >>> >>> >> You'll need to define the check time and notification time for the >> services too . >> >> >> > > I figured it was something like that. There are only 3, but it > seems like I should use a template. is there a recommended place? > (timeperiods, linuxservers.cfg...) > > > Personally i have a file called servicetemplates.cfg . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From carl at personnelware.com Wed Jul 28 16:59:44 2010 From: carl at personnelware.com (Carl Karsten) Date: Wed, 28 Jul 2010 09:59:44 -0500 Subject: timeperiod not behaving as expected In-Reply-To: <4C504030.7090900@flatto.net> References: <4C4F4686.4060306@flatto.net> <4C503B6D.9050600@flatto.net> <4C504030.7090900@flatto.net> Message-ID: On Wed, Jul 28, 2010 at 10:35 AM, Assaf Flatto wrote: > Carl Karsten wrote: >> On Wed, Jul 28, 2010 at 10:15 AM, Assaf Flatto wrote: >> >>> Carl Karsten wrote: >>> >>>> I made that change, and also backed the end of the period off a min to >>>> avoid the race between the check and the ifdown. ?/etc/init.d/nagios >>>> reload, still got an email every hour it was down: >>>> >>>> first: Date/Time: Tue Jul 27 20:03:34 CDT 2010 >>>> last: Date/Time: Wed Jul 28 05:03:34 CDT 2010 >>>> recovery notice: Date/Time: Wed Jul 28 06:03:34 CDT 2010 >>>> >>>> define timeperiod{ >>>> ? ? ? ? timeperiod_name credit_card_hours >>>> ? ? ? ? alias ? ? ? ? ? when credit cards can be processed >>>> >>>> ? ? ? ? sunday ? ? ? ? ?06:00-19:59 >>>> ? ? ? ? monday ? ? ? ? ?06:00-19:59 >>>> ? ? ? ? tuesday ? ? ? ? 06:00-19:59 >>>> ? ? ? ? wednesday ? ? ? 06:00-19:59 >>>> ? ? ? ? thursday ? ? ? ?06:00-19:59 >>>> ? ? ? ? friday ? ? ? ? ?06:00-19:59 >>>> ? ? ? ? saturday ? ? ? ?06:00-19:59 >>>> ? ? ? ? } >>>> >>>> >>>> >>>> define host{ >>>> ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? linux-server ? ?; This >>>> template inherits other values from the generic-host template >>>> ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ? mcve.cteusa.com ? ? ? ? ; The >>>> name of this host >>>> ? ? ? ? hostgroups ? ? ? ? ? ? ? ? ? ? ?linux-servers >>>> ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?credit_card_hours >>>> ? ? ? ? check_interval ? ? ? ? ? ? ? ? ?5 ? ? ? ? ? ? ? ; Actively >>>> check the host every 5 minutes >>>> ? ? ? ? retry_interval ? ? ? ? ? ? ? ? ?1 ? ? ? ? ? ? ? ; Schedule >>>> host check retries at 1 minute intervals >>>> ? ? ? ? max_check_attempts ? ? ? ? ? ? ?10 ? ? ? ? ? ? ?; Check each >>>> Linux host 10 times (max) >>>> ? ? ? ? check_command ? ? ? ? ? ? ? ? ? check-host-alive ; Default >>>> command to check Linux hosts >>>> ? ? ? ? notification_period ? ? ? ? ? ? credit_card_hours >>>> ? ? ? ? notification_interval ? ? ? ? ? 60 >>>> ? ? ? ? notification_options ? ? ? ? ? ?d,u,r ? ? ? ? ? ; Only send >>>> notifications for specific host states >>>> ? ? ? ? contact_groups ? ? ? ? ? ? ? ? ?admins ? ? ? ? ?; >>>> Notifications get sent to the admins by default >>>> ? ? ? ? register ? ? ? ? ? ? ? ? ? ? ? ?1 >>>> ? ? ? ? } >>>> >>>> define service{ >>>> ? ? ? ? use ? ? ? ? ? ? generic-service ? ? ? ? ; Inherit default >>>> values from a template >>>> ? ? ? ? host_name ? ? ? ? ? ? ? mcve.cteusa.com >>>> ? ? ? ? service_description ? ? SMTP >>>> ? ? ? ? check_command ? check_smtp!-t 5 >>>> ? ? ? ? } >>>> >>>> >>>> >>> You'll need to define the check time and notification time for the >>> services too . >>> >>> >>> >> >> I figured it was something like that. ? ?There are only 3, but it >> seems like I should use a template. ?is there a recommended place? >> (timeperiods, linuxservers.cfg...) >> >> >> > Personally i have a file called servicetemplates.cfg ?. > how does this look: /usr/local/nagios/etc/objects$ grep servicetemplates ../nagios.cfg cfg_file=/usr/local/nagios/etc/objects/servicetemplates.cfg /usr/local/nagios/etc/objects$ cat servicetemplates.cfg # servicetemplates.cfg define service{ name credit-card-box-service use local-service ; Inherit from that notification_period credit_card_hours check_period credit_card_hours register 0 } $vim linuxserver.cfg... define service{ use credit-card-box-service host_name mcve.cteusa.com service_description SMTP check_command check_smtp!-t 5 } -- Carl K ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Wed Jul 28 17:21:53 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 28 Jul 2010 16:21:53 +0100 Subject: timeperiod not behaving as expected In-Reply-To: References: <4C4F4686.4060306@flatto.net> <4C503B6D.9050600@flatto.net> <4C504030.7090900@flatto.net> Message-ID: <4C504B11.4090707@flatto.net> > how does this look: > > /usr/local/nagios/etc/objects$ grep servicetemplates ../nagios.cfg > cfg_file=/usr/local/nagios/etc/objects/servicetemplates.cfg > > /usr/local/nagios/etc/objects$ cat servicetemplates.cfg > # servicetemplates.cfg > define service{ > name credit-card-box-service > use local-service ; Inherit from that > notification_period credit_card_hours > check_period credit_card_hours > register 0 > } > > $vim linuxserver.cfg... > > define service{ > use credit-card-box-service > host_name mcve.cteusa.com > service_description SMTP > check_command check_smtp!-t 5 > } > > Looks good . should make your nights quieter and stop working on the box for both the server checks and service checks. -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlgibbs at utica.edu Thu Jul 29 03:05:07 2010 From: jlgibbs at utica.edu (Jeremy Gibbs) Date: Wed, 28 Jul 2010 21:05:07 -0400 Subject: Ability to warn when number goes bellow warning level In-Reply-To: <4C503B6C.7000604@dvdmenus.net> References: <4C503B6C.7000604@dvdmenus.net> Message-ID: This is the code I am using to check it. define command{ command_name snmp_ups_capa command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l 'Adv. Battery Capacity' -u '%' } So what I would like to do is this define command{ command_name snmp_ups_capa command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -w 90 -c 80 -l 'Adv. Battery Capacity' -u '%' } Except when it's below 90 and 80. I would like to try to get this to work first. Then I can think about install apcupsd. Thanks On Wed, Jul 28, 2010 at 10:15 AM, John Antram wrote: > Jeremy, if you already have apcupsd ( www.apcupsd.com ) installed on the > target "ups hosts" you can use check_apcupsd ( > http://exchange.nagios.org/directory/Plugins/Hardware/UPS/APC/check_apcupsd/details) > > I have a good many ups units deployed to workstations and keep an eye on > them with nagios through this plugin. It is a bash script however, so it > won't work if your nagios system is windows. I have extended the code to > report several other variables as well, it is easy to do. > > John Antram > Subatomic Digital > Essex Junction Vermont, 05452 > rewt at dvdmenus.net > > > > On 7/28/2010 8:51 AM, Jeremy Gibbs wrote: > > I have many UPS systems. I would like to warn when the battery gets below > 90% and go critical when it goes below 80%. Is there a way to do this? > > Thanks > > > -- > Jeremy L. Gibbs > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 223-2383 > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l?http://clk.atdmt.com/CRS/go/247765532/direct/01/ > > > _______________________________________________ > Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tracy.phillips at amerinap.com Thu Jul 29 05:03:08 2010 From: tracy.phillips at amerinap.com (Tracy Phillips) Date: Wed, 28 Jul 2010 20:03:08 -0700 Subject: Building RPM's from provided nagios-plugins.spec Message-ID: Hi List! I am building RPM's (on RHEL 5.5 x86_64) from the provided nagios-plugins.spec file. The build goes well, however after the install when I try to install the RPM's I get the following: error: Failed dependencies: perl(Net::SNMP) is needed by nagios-plugins-1.4.14-1.x86_64 How can I get clean build without the perl(Net::SNMP) dependencies? Just for kicks, I even installed the net-snmp-perl rpm and still get the dependency error. I am looking for a solution to remove the dependency from the RPM, not circumventing with --nodeps Any ideas? Thanks in advance, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raanders at cyber-office.net Thu Jul 29 05:44:51 2010 From: raanders at cyber-office.net (Roderick A. Anderson) Date: Wed, 28 Jul 2010 20:44:51 -0700 Subject: Building RPM's from provided nagios-plugins.spec In-Reply-To: References: Message-ID: <4C50F933.3040702@cyber-office.net> Tracy Phillips wrote: > Hi List! > > I am building RPM's (on RHEL 5.5 x86_64) from the provided > nagios-plugins.spec file. > > The build goes well, however after the install when I try to install the > RPM's I get the following: > > error: Failed dependencies: > perl(Net::SNMP) is needed by nagios-plugins-1.4.14-1.x86_64 > > How can I get clean build without the perl(Net::SNMP) dependencies? I don't think you can get there. You'll need to install perl-Net-SNMP. This can be found at the Rpmforge repo. \\||/ Rod -- > > Just for kicks, I even installed the net-snmp-perl rpm and still get the > dependency error. > > I am looking for a solution to remove the dependency from the RPM, not > circumventing with --nodeps > > Any ideas? > > Thanks in advance, > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Thu Jul 29 05:59:13 2010 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Wed, 28 Jul 2010 21:59:13 -0600 Subject: Dependencies suppressing execution but not notification In-Reply-To: <337140A7-0346-4B3D-92BD-34F1FFD02C89@stubhub.com> References: <337140A7-0346-4B3D-92BD-34F1FFD02C89@stubhub.com> Message-ID: <506622C1-D0E0-41C2-8B7B-04517456862B@stubhub.com> No responses. Was it because it looked overcomplicated, too long, just something? Spelling cortical provided by iPhone. On Jul 25, 2010, at 7:45 PM, "Litwin, Matthew" wrote: > Hi, > > Here is hopefully a more clear explanation of the problem I posted last night. > > I have configured dependancies to suppress notifications when the master dependency is not OK or WARNING and while I am finding they work in suppressing command execution, notification suppression doesn't seem to be happening as the alerts keep coming for them. > > This is an example of the problem: > > Setup: > Apache_Webhits service depends on Apache_Status service being OK or WARNING for both execution and notification > > Apparent order of events: > 1. Apache_Webhits returned UNKNOWN because apache was probably down > 2. Apache_Status soon goes CRITICAL because it definitely is down alright > 3. Nagios stops further execution of Apache_Webhits > 4. In the GUI I turn off notifications for Apache_Status for that server until the problem is fixed. > > Problem: Apache_Webhits continues to send out notifications that it is CRITICAL though I would have expected the behavior to suppress further notification, but it clearly is just sending notifications as usual. Is that expected behavior? Based on my understanding I would thing further notifications would cease in this case. > > My configs: > > One this that I did that was unusual mas making a service dependency template to try to streamline my services.cfg so I didn't need to use a dependencies.cfg. It seemed to work just fine but I am mentioning it because it doesn't seem to be explicitly documented. Here is the template: > > define servicedependency { > name generic-dependency > execution_failure_criteria c,u,p > notification_failure_criteria c,u,p > inherits_parent 1 > register 0 > } > > and here is the example described above: > > # Apache_Webhits > define service{ > use standard-app-service > hostgroup_name Apache > service_description Apache_Webhits > servicegroups Apache_Webhits > check_command check_webhits_nrpe > } > define servicedependency { > use generic-dependency > hostgroup_name Apache > dependent_service_description Apache_Webhits > service_description Apache_Status > } > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Thu Jul 29 06:23:30 2010 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Thu, 29 Jul 2010 14:23:30 +1000 Subject: Building RPM's from provided nagios-plugins.spec In-Reply-To: References: Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3F59487936@off-win2003-01.ausregistrygroup.local> > From: Tracy Phillips [mailto:tracy.phillips at amerinap.com] > Sent: Thursday, 29 July 2010 13:03 > > Hi List! > > I am building RPM's (on RHEL 5.5 x86_64) from the provided > nagios-plugins.spec file. > > The build goes well, however after the install when I try to install > the RPM's I get the following: > > error: Failed dependencies: > perl(Net::SNMP) is needed by nagios-plugins-1.4.14-1.x86_64 > > How can I get clean build without the perl(Net::SNMP) dependencies? > > Just for kicks, I even installed the net-snmp-perl rpm and still get > the dependency error. > > I am looking for a solution to remove the dependency from the RPM, > not circumventing with --nodeps > > Any ideas? I prefer the SPEC file that breaks each of the individual plugins into its own sub-package, which I think was the Fedora version of the SPEC file. perl(Net::SNMP) is provided by an extra perl module, available from CPAN, RPMforge (http://packages.sw.be/perl-Net-SNMP/) or EPEL (http://download.fedora.redhat.com/pub/epel/5/SRPMS/repoview/perl-Net-SNMP.html). The perl module is a requirement of the check_ifstatus/check_ifoperstatus plugins. You could try removing them from the EXTRA_DIST line of the plugins-scripts/Makefile.in file, and see how you go. Stuart ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Patrik.Bat at cypoint.se Thu Jul 29 08:15:26 2010 From: Patrik.Bat at cypoint.se (=?iso-8859-1?Q?Patrik_B=E5t?=) Date: Thu, 29 Jul 2010 08:15:26 +0200 Subject: host escalation! Message-ID: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> Hello, im trying to get host escalation on a host_group, but its not working at all, I get all alarms from all hosts and the first notification. This is my escalation config: define hostescalation{ hostgroup_name hg_monitor first_notification 2 last_notification 5 notification_interval 10 contacts patrikba-esc } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 flatto.net Thu Jul 29 11:49:58 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 29 Jul 2010 10:49:58 +0100 Subject: host escalation! In-Reply-To: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> References: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> Message-ID: <4C514EC6.2000108@flatto.net> Patrik B?t wrote: > > Hello, im trying to get host escalation on a host_group, but its not > working at all, I get all alarms from all hosts and the first > notification. > > > > This is my escalation config: > > > > define hostescalation{ > > hostgroup_name hg_monitor > > first_notification 2 > > last_notification 5 > > notification_interval 10 > > contacts patrikba-esc > > } > the definitions look correct , are you sure that nagios is reading them ? Can you check the host escalations in the configuration menu ? -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Thu Jul 29 12:05:56 2010 From: mmelin at gmail.com (Martin Melin) Date: Thu, 29 Jul 2010 12:05:56 +0200 Subject: host escalation! In-Reply-To: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> References: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> Message-ID: Escalations don't overwrite the standard notification behavior. My bet is that you 1) have your contact included in a contact_group that's in a template used by all hosts or 2) that your email address is in another contact definition as well. Best regards Martin Melin On Thu, Jul 29, 2010 at 8:15 AM, Patrik B?t wrote: > Hello, im trying to get host escalation on a host_group, but its not working > at all, I get all alarms from all hosts and the first notification. > > > > This is my escalation config: > > > > define hostescalation{ > > ??????? hostgroup_name????????????????? hg_monitor > > ??? first_notification????? 2 > > ??? last_notification?????? 5 > > ??? notification_interval?? 10 > > ??? contacts??????????????? patrikba-esc > > ??? } > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Patrik.Bat at cypoint.se Thu Jul 29 12:38:31 2010 From: Patrik.Bat at cypoint.se (=?iso-8859-1?Q?Patrik_B=E5t?=) Date: Thu, 29 Jul 2010 12:38:31 +0200 Subject: host escalation! In-Reply-To: References: <49550341AA321E408F1DCC048349F0A2013E6EAA95F5@cyexch01.office.local> Message-ID: <49550341AA321E408F1DCC048349F0A2013E6EAA95F9@cyexch01.office.local> Yes, that is correct, notice that when I was removing the escalation. -----Ursprungligt meddelande----- Fr?n: Martin Melin [mailto:mmelin at gmail.com] Skickat: den 29 juli 2010 12:06 Till: Nagios Users List ?mne: Re: [Nagios-users] host escalation! Escalations don't overwrite the standard notification behavior. My bet is that you 1) have your contact included in a contact_group that's in a template used by all hosts or 2) that your email address is in another contact definition as well. Best regards Martin Melin On Thu, Jul 29, 2010 at 8:15 AM, Patrik B?t wrote: > Hello, im trying to get host escalation on a host_group, but its not > working at all, I get all alarms from all hosts and the first notification. > > > > This is my escalation config: > > > > define hostescalation{ > > ??????? hostgroup_name????????????????? hg_monitor > > ??? first_notification????? 2 > > ??? last_notification?????? 5 > > ??? notification_interval?? 10 > > ??? contacts??????????????? patrikba-esc > > ??? } > > > > ---------------------------------------------------------------------- > -------- The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tracy.phillips at amerinap.com Thu Jul 29 17:11:55 2010 From: tracy.phillips at amerinap.com (Tracy Phillips) Date: Thu, 29 Jul 2010 08:11:55 -0700 Subject: Building RPM's from provided nagios-plugins.spec In-Reply-To: <8CEF048B9EC83748B1517DC64EA130FB3F59487936@off-win2003-01.ausregistrygroup.local> References: <8CEF048B9EC83748B1517DC64EA130FB3F59487936@off-win2003-01.ausregistrygroup.local> Message-ID: On Wed, Jul 28, 2010 at 9:23 PM, Stuart Browne < stuart.browne at ausregistry.com.au> wrote: > > The perl module is a requirement of the check_ifstatus/check_ifoperstatus > plugins. You could try removing them from the EXTRA_DIST line of the > plugins-scripts/Makefile.in file, and see how you go. > > Stuart Thanks Stuart! That did it. Your tip is very much appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Thu Jul 29 18:50:24 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 29 Jul 2010 12:50:24 -0400 Subject: Recommended network map software Message-ID: Hi there -- I am running Nagios 3.1.2, and I am looking to have a network map of the nodes that are being monitored as one of the available screens. The idea behind the map is to have a logical representation of the physical location for the various nodes. Can anyone recommend an add-on to Nagios that would accomplish this task? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Thu Jul 29 18:28:16 2010 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 29 Jul 2010 08:28:16 -0800 Subject: Check ActiveSync Message-ID: Is there a plugin that allows me to check if I can make an ActiveSync connection to an exchange server? I've found plugins that use, for example, check_nt to check various parameters of the exchange server, and of course I can make sure that IMAP and SMTP connections are working, but I haven't found one to check if I can actually make an activesync/exchange connection., i.e. if my users can actually connect. Thanks. ----------------------------------------------- Israel Brewster Computer Support Technician II Era Alaska 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x7293 ----------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Israel Brewster.vcf Type: text/directory Size: 417 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Thu Jul 29 19:31:48 2010 From: mmelin at gmail.com (Martin Melin) Date: Thu, 29 Jul 2010 19:31:48 +0200 Subject: Recommended network map software In-Reply-To: References: Message-ID: Have a look at http://www.nagvis.org/ Best regards Martin Melin On Thu, Jul 29, 2010 at 6:50 PM, Kaplan, Andrew H. wrote: > Hi there -- > > I am running Nagios 3.1.2, and I am looking to have a network map of the > nodes that are being monitored as one of the > available screens. The idea behind the map is to have a logical > representation of the physical location for the various nodes. > > Can anyone recommend an add-on to Nagios that would accomplish this task? > Thanks. > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ahendrix at createspace.com Thu Jul 29 19:08:12 2010 From: ahendrix at createspace.com (Hendrix, Austin) Date: Thu, 29 Jul 2010 13:08:12 -0400 Subject: Ability to warn when number goes bellow warning level In-Reply-To: References: <4C503B6C.7000604@dvdmenus.net> Message-ID: This should be doable with the check_snmp plugin. I have nagios-plugins-snmp-1.4.13-9.fc8 on one of my EC2 instances, and the snmp plugin seems to operate as follows (quoted from check_snmp --help) -w, --warning=INTEGER_RANGE(s) Range(s) which will not result in a WARNING status -c, --critical=INTEGER_RANGE(s) Range(s) which will not result in a CRITICAL status Notes: - Ranges are inclusive and are indicated with colons. When specified as 'min:max' a STATE_OK will be returned if the result is within the indicated range or is equal to the upper or lower bound. A non-OK state will be returned if the result is outside the specified range. - If specified in the order 'max:min' a non-OK state will be returned if the result is within the (inclusive) range. - Upper or lower bounds may be omitted to skip checking the respective limit. - Bare integers are interpreted as upper limits. So you might try: define command{ command_name snmp_ups_capa command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -w 90: -c 80: -l 'Adv. Battery Capacity' -u '%' } (note the added colons after 80 and 90, to indicate that they are the lower bounds for their ranges) Regards, -Austin (sorry if this shows up at html-email; I'm still kicking outlook in the shins to try to get it to do what I want) From: Jeremy Gibbs [mailto:jlgibbs at utica.edu] Sent: Wednesday, July 28, 2010 6:05 PM To: Nagios Users List Subject: Re: [Nagios-users] Ability to warn when number goes bellow warning level This is the code I am using to check it. define command{ command_name snmp_ups_capa command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l 'Adv. Battery Capacity' -u '%' } So what I would like to do is this define command{ command_name snmp_ups_capa command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -w 90 -c 80 -l 'Adv. Battery Capacity' -u '%' } Except when it's below 90 and 80. I would like to try to get this to work first. Then I can think about install apcupsd. Thanks On Wed, Jul 28, 2010 at 10:15 AM, John Antram > wrote: Jeremy, if you already have apcupsd ( www.apcupsd.com ) installed on the target "ups hosts" you can use check_apcupsd ( http://exchange.nagios.org/directory/Plugins/Hardware/UPS/APC/check_apcupsd/details ) I have a good many ups units deployed to workstations and keep an eye on them with nagios through this plugin. It is a bash script however, so it won't work if your nagios system is windows. I have extended the code to report several other variables as well, it is easy to do. John Antram Subatomic Digital Essex Junction Vermont, 05452 rewt at dvdmenus.net On 7/28/2010 8:51 AM, Jeremy Gibbs wrote: I have many UPS systems. I would like to warn when the battery gets below 90% and go critical when it goes below 80%. Is there a way to do this? Thanks -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tyarusso at nagios.com Thu Jul 29 22:28:14 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Thu, 29 Jul 2010 15:28:14 -0500 Subject: Recommended network map software In-Reply-To: References: Message-ID: <1280435294.10608.1.camel@ubuntu-desktop.SSG5-Serial> On Thu, 2010-07-29 at 19:31 +0200, Martin Melin wrote: > Have a look at http://www.nagvis.org/ > > Best regards > Martin Melin I'd second that - NagVis rocks. If you want, you can also see some examples of ways to customize the NagVis Automap in the doc I wrote up, http://library.nagios.com/library/products/nagiosxi/documentation/269-integrating-nagvis-with-nagios-xi (this hasn't been updated for NagVis 1.5 yet though). -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Thu Jul 29 23:25:17 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 29 Jul 2010 23:25:17 +0200 Subject: Recommended network map software In-Reply-To: <1280435294.10608.1.camel@ubuntu-desktop.SSG5-Serial> References: <1280435294.10608.1.camel@ubuntu-desktop.SSG5-Serial> Message-ID: <4C51F1BD.8000605@univie.ac.at> On 2010-07-29 22:28, Tony Yarusso wrote: > http://library.nagios.com/library/products/nagiosxi/documentation/269-integrating-nagvis-with-nagios-xi (this hasn't been updated for NagVis 1.5 yet though). > Just to mention, that the parent-child relations needs to be done within the configs (or an appropriate config tool, as nagiosxi uses the free oss tool named nagiosql, but other can do the trick too, even vi(m)). The overall rest how to install and configure can be found straight into the nagvis docs. So it's all about Nagios Core and not dependent on the Nagios XI environment. http://docs.nagvis.org/1.5/en_US/index.html you can also ask over here: http://www.nagios-portal.org/wbb/index.php?page=Board&boardID=42 Kind regards, Michael -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 fax: +43 1 4277 14279 web: http://www.univie.ac.at/zid Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.teslja at gmail.com Fri Jul 30 13:31:34 2010 From: alex.teslja at gmail.com (Aex) Date: Fri, 30 Jul 2010 11:31:34 +0000 (UTC) Subject: Service notification Message-ID: Hi everybody I have a lot of servers. And I have service with name "check-host-alive". If some server down, I get only "Host Notification" from this server and no notifications from services. But I want get "Service Notification" for "check-host-alive" service even if server down. How can I enable service notification if server down for a specific service? ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.teslja at gmail.com Fri Jul 30 14:08:23 2010 From: alex.teslja at gmail.com (Aex) Date: Fri, 30 Jul 2010 12:08:23 +0000 (UTC) Subject: Service notification References: Message-ID: Aex gmail.com> writes: > > Hi everybody > > I have a lot of servers. And I have service with name "check-host-alive". > If some server down, I get only "Host Notification" from this server and no > notifications from services. But I want get "Service Notification" for > "check-host-alive" service even if server down. > How can I enable service notification if server down for a specific service? > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Nagios-users mailing list > Nagios-users lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > I explain, for why it's need. A some servers have a strong security policy and ICMP has been disabled on these servers. Nagios checks that server unavailable and don't sends "service notifications", but in fact - server is up. Could you please help me? ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at xodus.org Fri Jul 30 14:19:26 2010 From: lists at xodus.org (Marc Powell) Date: Fri, 30 Jul 2010 07:19:26 -0500 Subject: Service notification In-Reply-To: References: Message-ID: <8B53E489-E062-43C4-AFF9-2EB749E8AFBB@xodus.org> On Jul 30, 2010, at 7:08 AM, Aex wrote: > I explain, for why it's need. A some servers have a strong security policy and > ICMP has been disabled on these servers. Nagios checks that server unavailable > and don't sends "service notifications", but in fact - server is up. Use a different host check. The ICMP host check is just one that works for most people. If it doesn't work for you, change it to something that does (i.e. accurately reflects to you whether the host is 'up' or 'working') or disable it entirely. -- Marc ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ERinguet at optosecurity.com Fri Jul 30 15:37:45 2010 From: ERinguet at optosecurity.com (Etienne Ringuet) Date: Fri, 30 Jul 2010 09:37:45 -0400 Subject: check_snmp v3 authentication Message-ID: Hello, I am trying to use check_snmp to monitor different snmp states on our hardware. Our system uses snmp v3. If I use snmpget to access it, it works: eringuet at test:/usr/lib/nagios/plugins$ snmpget -a MD5 -l authNoPriv -u USERNAME -A PASSWORD -v3 192.168.1.150 sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15742663) 1 day, 19:43:46.63 But when using check_snmp I get "no securityname specified": eringuet at test:/usr/lib/nagios/plugins$ ./check_snmp -H 192.168.1.150 -o sysUpTime.0 -P3 -l authNoPriv -U USERNAME -a MD5 -A PASSWORD External command error: snmpget: No securityName specified (Sub-id not found: (top) -> sysUpTime) Am I missing something? Thanks, Etienne -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.teslja at gmail.com Fri Jul 30 16:15:36 2010 From: alex.teslja at gmail.com (Aex) Date: Fri, 30 Jul 2010 14:15:36 +0000 (UTC) Subject: Service notification References: <8B53E489-E062-43C4-AFF9-2EB749E8AFBB@xodus.org> Message-ID: Ok, I mean that if server down - service notification cannot be send. How can I reconfigure Nagios to send service notification if server down? ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.teslja at gmail.com Fri Jul 30 16:54:07 2010 From: alex.teslja at gmail.com (Aex) Date: Fri, 30 Jul 2010 14:54:07 +0000 (UTC) Subject: Service notification References: <8B53E489-E062-43C4-AFF9-2EB749E8AFBB@xodus.org> Message-ID: Ok, I mean that if server down - service notification cannot be send. How can I reconfigure Nagios to send service notification from specific service even if server down? ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 herb-j.com Fri Jul 30 18:54:15 2010 From: nagios at herb-j.com (Herb J.) Date: Fri, 30 Jul 2010 12:54:15 -0400 Subject: Service notification In-Reply-To: References: <8B53E489-E062-43C4-AFF9-2EB749E8AFBB@xodus.org> Message-ID: <4C5303B7.7070503@herb-j.com> Nagios won't do that. If I recall correctly, when the host check fails, it refuses to generate any further service notifications for that host until the host check succeeds again. It also won't generate service recovery notifications when those services actually come back online either. Our solution for that was to add a second host check (i.e., create a new "define command" block) for devices that don't respond to PING. For those devices, we configure them to use the new host check (i.e., use the command you just created for that host's "check command" directive) that checks HTTP status. I work at a web hosting company, so 100% of our servers listen on either PING, HTTP, or FTP, so we have those three choices for the host check. You will need to create another host check (or two or three if necessary) that can be used for the devices that don't respond to PING and configure those devices to use one of the alternate host checks. On 07/30/2010 10:54 AM, Aex wrote: > Ok, I mean that if server down - service notification cannot be send. > How can I reconfigure Nagios to send service notification from specific service > even if server down? > > > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Fri Jul 30 21:38:40 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 30 Jul 2010 15:38:40 -0400 Subject: Nagvis 1.5.1 installation question Message-ID: Hi there -- I am going through the motions of installing NagVis 1.5.1 onto our Nagios 3.1.2 server. I have completed the installation of the check_mk 1.1.6p1 software, and made sure to select the default settings for it. When I run the install script for NagVis, all prerequisites are found, and I make sure to select mklivestatus as the Backend. However, when the installer gets to the Livestatus Socket, it looks for it in the /usr/local/nagios/rw/live directory, but says it is missing. The installer lists the valid socket formats, and asks me to enter the MKLivestatus socket. I am not familiar with what that would be, and whether or not check_mk should be started in daemon mode or in some other way. Can someone provide some insight into this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null